/* 1. CONFIGURATION (Variables) */
:root {
    /* Couleurs Officielles EthikSys */
    --color-primary: #0f766e;     /* Vert Océan Profond (Pro & Tech) */
    --color-primary-dark: #0d5e56;
    --color-accent: #d94e09;      /* Orange Brûlé (Action & Dynamisme) */
    --color-accent-hover: #b23808;
    
    --color-dark: #0f172a;        /* Bleu Nuit (Fond Hero / Footer) */
    --color-light: #f8fafc;       /* Gris très clair (Fond sections) */
    --color-white: #ffffff;
    --color-text: #334155;        /* Gris lecture confortable */
    --color-text-light: #64748b;

    /* Espacements & Tailles */
    --container-width: 1100px;
    --header-height: 70px;
    --radius: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* 2. RESET & BASE */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* 3. UTILITAIRES */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--color-light); }
.bg-dark { background-color: var(--color-dark); color: var(--color-white); }
.text-center { text-align: center; }
.mt-large { margin-top: 60px; }
.full-width { width: 100%; text-align: center; }

/* Grilles */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }

/* Boutons */
.btn {
    display: inline-block; padding: 12px 24px; border-radius: var(--radius);
    font-weight: 600; cursor: pointer; text-align: center;
}
.btn-primary { background-color: var(--color-accent); color: white; border: 2px solid var(--color-accent); }
.btn-primary:hover { background-color: var(--color-accent-hover); border-color: var(--color-accent-hover); }

.btn-outline { background-color: transparent; color: var(--color-white); border: 2px solid var(--color-white); }
.btn-outline:hover { background-color: var(--color-white); color: var(--color-dark); }
/* Outline Dark pour fond blanc */
.pricing-card .btn-outline { color: var(--color-primary); border-color: var(--color-primary); }
.pricing-card .btn-outline:hover { background-color: var(--color-primary); color: white; }


/* 4. HEADER & NAV */
.site-header {
    height: var(--header-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    position: fixed; top: 0; width: 100%; z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    display: flex; align-items: center;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo { font-size: 1.5rem; font-weight: 800; color: var(--color-dark); }
.logo span { color: var(--color-primary); }

.main-nav ul { display: flex; gap: 30px; align-items: center; }
.main-nav a { font-weight: 500; font-size: 0.95rem; color: var(--color-dark); }
.main-nav a:hover { color: var(--color-primary); }
.btn-nav {
    background: var(--color-primary); color: white !important;
    padding: 8px 16px; border-radius: var(--radius);
}
.btn-nav:hover { background: var(--color-primary-dark); }

/* Menu Mobile (Burger) */
.menu-toggle { display: none; }
.menu-burger { display: none; cursor: pointer; }


/* 5. HERO SECTION */
.hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
    background-color: var(--color-dark);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Dégradé subtil pro */
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, #1e293b 0%, transparent 50%),
                linear-gradient(to bottom, var(--color-dark), #0f172a);
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.hero-tag {
    display: inline-block; background: rgba(255,255,255,0.1); color: #94a3b8;
    padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
.hero-subtitle { font-size: 1.25rem; color: #cbd5e1; margin-bottom: 40px; }

.trust-badges { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #e2e8f0; }

.hero-actions { display: flex; gap: 15px; justify-content: center; }


/* 6. SERVICES */
.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.2rem; color: var(--color-dark); margin-bottom: 15px; }
.section-header p { font-size: 1.1rem; color: var(--color-text-light); }

.card {
    background: white; padding: 40px 30px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--color-primary); }

.icon-box { font-size: 2.5rem; margin-bottom: 20px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--color-dark); }
.service-card p { font-size: 0.95rem; color: var(--color-text-light); }


/* 7. PRICING */
.pricing-card { text-align: center; position: relative; }
.pricing-card.featured { border: 2px solid var(--color-primary); transform: scale(1.05); z-index: 2; }

.featured-tag {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--color-primary); color: white; padding: 5px 15px;
    border-radius: 20px; font-size: 0.8rem; font-weight: bold;
}
.price { font-size: 3rem; font-weight: 800; color: var(--color-dark); margin: 20px 0; }
.price span { font-size: 1rem; color: var(--color-text-light); font-weight: 400; }
.price-desc { margin-bottom: 30px; font-style: italic; color: var(--color-text-light); }

.check-list { text-align: left; margin-bottom: 30px; }
.check-list li { margin-bottom: 10px; padding-left: 25px; position: relative; color: var(--color-text); }
.check-list li::before {
    content: "✓"; color: var(--color-primary);
    position: absolute; left: 0; font-weight: bold;
}


/* 8. VALEURS & CONTACT */
.value-item strong { display: block; font-size: 1.1rem; margin-bottom: 10px; color: var(--color-primary); }
.value-item p { font-size: 0.95rem; color: #cbd5e1; }

.contact-wrapper { text-align: center; background: white; padding: 60px; border-radius: var(--radius); box-shadow: var(--shadow-lg); border-top: 5px solid var(--color-primary); }
.contact-link { display: inline-block; font-size: 1.5rem; font-weight: bold; margin: 20px 0; color: var(--color-primary); }
.contact-link:hover { text-decoration: underline; }


/* 9. FOOTER */
.site-footer { background: #020617; color: #94a3b8; padding: 60px 0 30px; border-top: 1px solid #1e293b; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.footer-col nav a { margin-left: 20px; transition: color 0.2s; }
.footer-col nav a:hover { color: white; }


/* 10. MOBILE (Responsive) */
@media (max-width: 768px) {
    .site-header { padding: 0 20px; }
    
    /* Burger Menu Logique */
    .menu-burger { display: flex; flex-direction: column; gap: 5px; width: 30px; z-index: 1002; }
    .menu-burger span { height: 3px; width: 100%; background: var(--color-dark); transition: 0.3s; }
    
    .main-nav {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: white; padding-top: 100px; transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1); z-index: 1001;
    }
    .main-nav ul { flex-direction: column; gap: 20px; }
    
    /* Checkbox hack activation */
    .menu-toggle:checked ~ .main-nav { right: 0; }
    .menu-toggle:checked ~ .menu-burger span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .menu-toggle:checked ~ .menu-burger span:nth-child(2) { opacity: 0; }
    .menu-toggle:checked ~ .menu-burger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    .hero h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-col nav a { margin: 0 10px; }
}
