/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ===== PALETTE P9 — ANTHRACITE & CITRON ===== */
:root {
    --navy:       #0a0a12;   /* fond principal */
    --navy-mid:   #16161f;   /* cartes, nav */
    --navy-high:  #1e1e2a;   /* hover, elevated */
    --blue:       #a3e635;   /* accent citron */
    --blue-light: #bef264;   /* citron clair */
    --blue-dark:  #65a30d;   /* citron foncé (contraste) */
    --text-dark:  #f1f5f9;   /* texte principal (sur fond sombre) */
    --text-mid:   #cbd5e1;   /* texte secondaire */
    --text-muted: #b8c4d4;   /* texte atténué */
    --bg-light:   #16161f;   /* sections alternées */
    --border:     #2a2a38;   /* bordures */
    --border-lt:  #32324a;   /* bordures légères */
    --white:      #ffffff;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--navy);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--blue);
}


.nav-logo {
    height: 86px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .nav-logo { height: 58px; }
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
    position: relative;
    z-index: 1100;
}

.hamburger:hover {
    background: rgba(163, 230, 53, 0.08);
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s;
    transform-origin: center;
}

.hamburger.active span {
    background: var(--blue);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== BACKDROP ===== */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ===== TIROIR LATÉRAL DROIT ===== */
.nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    background: var(--navy-mid);
    border-left: 1px solid var(--border);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -24px 0 64px rgba(0, 0, 0, 0.45);
}

.nav-overlay.active {
    transform: translateX(0);
}

.nav-overlay-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 96px 36px 40px;
    text-align: left;
}

.overlay-links {
    list-style: none;
    margin-bottom: 0;
    flex: 1;
}

.overlay-links > li {
    border-bottom: 1px solid var(--border);
}

.overlay-links > li:last-child {
    border-bottom: none;
}

.overlay-links > li > a,
.overlay-dd-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-mid);
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s;
    line-height: 1.2;
    text-align: left;
}

.overlay-links > li > a:hover,
.overlay-dd-trigger:hover,
.overlay-dd-trigger.active {
    color: var(--blue);
}

/* Flèche du dropdown overlay */
.overlay-dd-trigger .ov-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--navy-high);
    font-size: 16px;
    font-weight: 400;
    transition: transform 0.25s, background 0.2s;
    color: var(--text-muted);
    flex-shrink: 0;
}

.overlay-dd-trigger.active .ov-arrow {
    transform: rotate(45deg);
    background: rgba(163, 230, 53, 0.12);
    color: var(--blue);
}

/* Sous-items Services */
.overlay-sub {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding-left: 0;
}

.overlay-sub.open {
    max-height: 300px;
}

.overlay-sub li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 3px;
    transition: color 0.2s, background 0.2s;
}

.overlay-sub li a::before {
    content: '→';
    font-size: 12px;
    color: var(--blue-dark);
}

.overlay-sub li a:hover {
    color: var(--blue);
    background: rgba(163, 230, 53, 0.07);
}

/* CTA overlay */
.overlay-cta {
    display: block;
    margin-top: 36px;
    background: var(--blue);
    color: #0a0a12;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 24px rgba(163, 230, 53, 0.28);
    letter-spacing: -0.2px;
}

.overlay-cta:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(163, 230, 53, 0.38);
}

/* Mobile : tiroir plein largeur */
@media (max-width: 480px) {
    .nav-overlay {
        width: 100%;
        border-left: none;
    }
}

/* ===== HERO ===== */
.hero {
    padding: 190px 0 110px;
    background: linear-gradient(140deg, #06060c 0%, var(--navy) 45%, #0f0f1a 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -8%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(163, 230, 53, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(163, 230, 53, 0.05) 0%, transparent 65%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(163, 230, 53, 0.1);
    border: 1px solid rgba(163, 230, 53, 0.22);
    color: var(--blue-light);
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.6px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 60px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white);
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--blue);
}

.hero p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.55);
    max-width: 560px;
    margin: 0 auto 48px;
    font-weight: 400;
    line-height: 1.65;
}

.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== IMAGE PLACEHOLDER QUADRILLÉ ===== */
.img-ph {
    background-color: #191924;
    background-image:
        linear-gradient(rgba(163,230,53,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(163,230,53,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    border: 1.5px dashed rgba(163,230,53,0.16);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.img-ph-icon {
    width: 42px;
    height: 42px;
    opacity: 0.4;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3e635' stroke-width='1.5'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.img-ph-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(163,230,53,0.28);
    text-align: center;
    padding: 0 12px;
}

/* ===== HERO DEUX COLONNES ===== */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: center;
    text-align: left;
}

.hero-grid p {
    max-width: none;
    margin: 0 0 44px;
}

.hero-grid .hero-btns {
    justify-content: flex-start;
}

@media (max-width: 1000px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual { display: none; }
    .hero-grid p { margin: 0 auto 44px; max-width: 560px; }
    .hero-grid .hero-btns { justify-content: center; }
}

/* ===== BOUTONS ===== */
.btn-primary {
    background: var(--blue);
    color: #0a0a12;
    padding: 15px 32px;
    border-radius: 6px;
    font-family: 'Permanent Marker', cursive;
    font-size: 15px;
    letter-spacing: 3px;
    transform: rotate(-1.2deg);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.85), 0 4px 20px rgba(163,230,53,0.2);
    display: inline-block;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary:hover {
    background: var(--blue-light);
    transform: rotate(-1.2deg) translateY(-3px);
    box-shadow: 7px 8px 0 rgba(0,0,0,0.85), 0 8px 28px rgba(163,230,53,0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    padding: 15px 32px;
    border-radius: 6px;
    font-family: 'Permanent Marker', cursive;
    font-size: 15px;
    letter-spacing: 3px;
    border: 2px dashed rgba(255,255,255,0.25);
    transform: rotate(0.9deg);
    box-shadow: 3px 3px 0 rgba(255,255,255,0.07);
    display: inline-block;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.45);
    transform: rotate(0.9deg) translateY(-3px);
    box-shadow: 5px 5px 0 rgba(255,255,255,0.07);
}

/* ===== SECTIONS ===== */
section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

h1 {
    font-family: 'Permanent Marker', cursive;
    letter-spacing: 3px;
}

section h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 14px;
}

.section-sub {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ===== CARDS SERVICES ===== */
.services-apercu {
    background: var(--navy);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.card {
    background: var(--navy-mid);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 42px 34px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    opacity: 0;
    transition: opacity 0.28s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
    border-color: rgba(163, 230, 53, 0.22);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 42px;
    margin-bottom: 22px;
    display: block;
}

.card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 26px;
    font-size: 16.5px;
    line-height: 1.65;
}

.card a {
    color: var(--blue);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.card a:hover {
    gap: 10px;
}

/* ===== POURQUOI ===== */
.pourquoi {
    background: var(--bg-light);
}

.avantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 920px;
    margin: 0 auto;
}

.avantage {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--navy);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 26px 24px;
    transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}

.avantage:hover {
    border-color: rgba(163, 230, 53, 0.28);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.avantage-icon {
    width: 42px;
    height: 42px;
    background: rgba(163, 230, 53, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avantage-icon span {
    color: var(--blue);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.avantage p {
    color: var(--text-mid);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    padding-top: 9px;
}

/* ===== CTA ===== */
.cta {
    background: linear-gradient(140deg, #06060c 0%, #0a0a12 50%, #0f0f1a 100%);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(163, 230, 53, 0.08) 0%, transparent 68%);
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: var(--white);
    font-size: 42px;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 480px;
    margin: 0 auto 44px;
    line-height: 1.6;
}

.cta .btn-primary {
    background: var(--blue);
    color: #0a0a12;
    box-shadow: 0 6px 28px rgba(163, 230, 53, 0.3);
    font-size: 17px;
    padding: 17px 42px;
    font-weight: 700;
}

.cta .btn-primary:hover {
    background: var(--blue-light);
    transform: rotate(-1.2deg) translateY(-3px);
    box-shadow: 7px 8px 0 rgba(0,0,0,0.85), 0 8px 28px rgba(163,230,53,0.35);
}

/* ===== FOOTER ===== */
footer {
    background: #06060c;
    color: var(--text-muted);
    text-align: center;
    padding: 44px 0;
    border-top: 1px solid rgba(163, 230, 53, 0.06);
}

footer p {
    font-size: 14px;
    margin-bottom: 6px;
}

footer a {
    color: var(--blue);
    transition: color 0.2s;
}

footer a:hover {
    color: var(--blue-light);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .navbar .container { height: 70px; }

    .hero h1 {
        font-size: 38px;
        letter-spacing: -1.2px;
    }

    .hero {
        padding: 150px 0 80px;
    }

    h1 { letter-spacing: 0; }

    section h2 {
        font-size: 28px;
    }

    .cta h2 {
        font-size: 30px;
    }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
