/* ============================================================
   KONTEL — Design System Professionnel
   Couleurs: Blanc #FFFFFF | Vert vif #1FA64A | Noir #0A0A0A | Rouge vif #E2231A
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green:       #1FA64A;
    --green-light: #34C95F;
    --green-dark:  #11a843;
    --red:         #E2231A;
    --red-dark:    #C71D14;
    --black:       #322b2b;
    --black-soft:  #373030;
    --white:       #FFFFFF;
    --gray-100:    #f8f9fa;
    --gray-200:    #e9ecef;
    --gray-400:    #adb5bd;
    --gray-600:    #6c757d;
    --gray-800:    #494c4f;

    --font-display: 'Montserrat', sans-serif;
    --font-body:    'Open Sans', sans-serif;

    --topbar-h:  40px;
    --navbar-h:  80px;
    --total-h:   calc(var(--topbar-h) + var(--navbar-h));

    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.18);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    background: var(--green); /* ✅ SEULEMENT LE FOND CHANGE EN VERT */
    color: rgba(255,255,255,.75); /* Le texte reste inchangé */
    height: var(--topbar-h);
    font-size: 12px;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: .03em;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
}
.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar-left { display: flex; gap: 20px; }
.topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-left i { color: #ffffff; /* Icônes en blanc pour être visibles sur le vert */ }
.topbar-right { display: flex; align-items: center; gap: 20px; }

/* Switcher de langue */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1); /* Légèrement ajusté pour le fond vert */
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    padding: 3px 12px;
}
.lang-switcher a {
    color: rgba(255,255,255,.6);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    transition: color var(--transition);
    display: flex; align-items: center; gap: 4px;
}
.lang-switcher a.active,
.lang-switcher a:hover { color: var(--white); }
.lang-switcher a.active { color: var(--white); }
.lang-switcher .divider { color: rgba(255,255,255,.3); }
.lang-switcher .flag { font-size: 13px; }

.topbar-social { display: flex; gap: 10px; }
.topbar-social a {
    color: rgba(255,255,255,.5);
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    transition: all var(--transition);
    font-size: 11px;
}
.topbar-social a:hover { color: var(--green); border-color: var(--white); background: var(--white); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: var(--topbar-h);
    left: 0; right: 0;
    height: var(--navbar-h);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    z-index: 999;
    transition: all var(--transition);
}
.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255,255,255,.99);
}
.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Logo Image */
.navbar-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-image {
    height: 50px; /* Ajustez selon la taille de votre logo */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-logo:hover .logo-image {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .logo-image {
        height: 40px;
    }
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .logo-name { color: var(--white); font-size: 18px; }


/* Navigation links */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: flex-end;
}
.nav-item { position: relative; }
.nav-link {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--gray-800);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; gap: 5px;
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--green); background: rgba(31,166,74,.08); }
.nav-arrow {
    font-size: 9px;
    transition: transform var(--transition);
}
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* Contact button */
.nav-link-contact {
    background: var(--red);
    color: var(--white) !important;
    border-radius: var(--radius-sm);
    margin-left: 8px;
}
.nav-link-contact:hover {
    background: var(--red-dark) !important;
    color: var(--white) !important;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,.06);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: all var(--transition);
    overflow: hidden;
}
.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-links,
.mega-links {
    list-style: none;
    padding: 8px;
}
.dropdown-links li a,
.mega-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-800);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.dropdown-links li a i,
.mega-links li a i {
    width: 18px;
    text-align: center;
    color: var(--green);
    font-size: 13px;
}
.dropdown-links li a:hover,
.mega-links li a:hover {
    background: rgba(31,166,74,.08);
    color: var(--green);
    padding-left: 18px;
}

/* Mega dropdown */
.mega-dropdown {
    left: 0;
    transform: none;
    min-width: 320px;
}
.mega-dropdown.services-dropdown { min-width: 360px; }
.nav-item:hover .mega-dropdown {
    transform: translateY(0);
}
.mega-inner { padding: 4px; }
.mega-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 8px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 4px;
}
.mega-header i { color: var(--green); font-size: 18px; }
.mega-header h3 {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray-600);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition);
}
.nav-overlay.active { opacity: 1; }

/* ============================================================
   BODY OFFSET (for fixed header)
   ============================================================ */
body { padding-top: var(--total-h); }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 12px;
}
.section-eyebrow.red { color: var(--red); }

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--black);
    line-height: 1.15;
    margin-bottom: 16px;
}
.section-header.light h2 { color: var(--white); }

.section-line {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--green), var(--red));
    border-radius: 2px;
    margin-top: 12px;
}
.section-header.center .section-line { margin: 12px auto 0; }
.section-header p {
    font-size: 17px;
    color: var(--gray-600);
    max-width: 560px;
    margin-top: 14px;
}
.section-header.center p { margin: 14px auto 0; }
.section-header.light p { color: rgba(255,255,255,.7); }

/* Section dark bg (réservée aux fonds noirs volontaires, ex: footer) */
.section-dark {
    background: var(--black);
    color: var(--white);
}
.section-green {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
    color: var(--white);
}

/* ============================================================
   DIAGONAL DIVIDER (signature element)
   ============================================================ */
.diagonal-top {
    clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
    margin-top: -40px;
    padding-top: 140px;
}
.diagonal-bottom {
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
    padding-bottom: 140px;
}

/* ============================================================
   NOTE : Le bloc "HERO CAROUSEL" (.hero-carousel, .carousel-slide,
   .slide-bg, .slide-overlay, .slide-wave, .slide-content,
   .slide-inner, .slide-service-badge, .slide-title, .slide-subtitle,
   .slide-actions, .carousel-controls, .carousel-dots, .carousel-dot,
   .carousel-btn, .slide-counter et leurs sous-règles) a été retiré
   d'ici. Il est désormais défini UNIQUEMENT dans le <style> intégré
   de index.php, qui contient la version corrigée (overlay sans
   teinte verte, badge simplifié sans icône). Une seule source de
   vérité, plus de risque de duplication contradictoire.
   ============================================================ */

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(226,35,26,.35);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--white);
}
.btn-outline-green {
    background: transparent;
    color: var(--green);
    border-color: var(--green);
}
.btn-outline-green:hover {
    background: var(--green);
    color: var(--white);
}
.btn-red {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-sm { padding: 9px 18px; font-size: 12px; }
.btn-lg { padding: 16px 36px; font-size: 14px; }

/* ============================================================
   STATS STRIP (under carousel)
   ============================================================ */
.stats-strip {
    background: var(--green);
    padding: 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat-item {
    padding: 28px 24px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.2);
    transition: background var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--green-dark); }
.stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    display: block;
}
.stat-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    margin-top: 4px;
    display: block;
}

/* ============================================================
   SECTION: À PROPOS (home version)
   ============================================================ */
.about-home {
    background: var(--white);
    padding: 100px 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-visual {
    position: relative;
}
.about-img-main {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.about-img-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 6px solid var(--white);
    box-shadow: var(--shadow-md);
}
.about-badge {
    position: absolute;
    top: 30px;
    left: -20px;
    background: var(--green);
    color: var(--white);
    padding: 16px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
}
.about-badge .num {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 900;
    display: block;
    line-height: 1;
}
.about-badge .lbl {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .9;
}

.about-content {}
.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 36px;
}
.highlight-card {
    padding: 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--green);
    transition: all var(--transition);
}
.highlight-card:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--red);
    transform: translateY(-4px);
}
.highlight-card h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--black);
}
.highlight-card p { font-size: 13px; color: var(--gray-600); line-height: 1.6; }

/* ============================================================
   SECTION: SERVICES (home)
   ============================================================ */
.services-home {
    background: var(--gray-100);
    padding: 100px 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all .4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--red));
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }

.service-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--green);
}
.service-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    opacity: .95;
}
.service-card:hover .service-card-img img { transform: scale(1.07); }

/* NOTE : .service-card-icon, .service-card:hover .service-card-icon,
   .service-card-img-placeholder et .service-card-img-placeholder i
   sont retirés d'ici — redéfinis dans index.php (icône blanche au
   lieu de verte, placeholder sans dégradé vert). */

.service-card-body {
    padding: 36px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-card-body h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
    line-height: 1.3;
}
.service-card-body p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 20px;
}
.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green);
    transition: gap var(--transition);
}
.service-card:hover .service-card-link { gap: 10px; color: var(--red); }

/* Services row bottom (2 cards) */
.services-grid-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 28px;
}

/* ============================================================
   SECTION: ÉQUIPE
   ============================================================ */
.team-section {
    background: var(--white);
    padding: 100px 0;
    border-top: 1px solid var(--gray-200);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.team-card {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
    transition: all var(--transition);
}
.team-card:hover {
    background: var(--white);
    border-color: var(--green);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}
.team-photo {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-light), var(--green));
}
.team-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .92;
    transition: all var(--transition);
}
.team-card:hover .team-photo img { opacity: 1; }
.team-photo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.team-photo-placeholder .initials {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 900;
    color: rgba(255,255,255,.4);
}

/* NOTE : .team-overlay est retiré d'ici — redéfini dans index.php
   avec un dégradé vertical (noir → vert transparent) au lieu du
   fond vert plein uni de cette ancienne version. */

.team-card:hover .team-overlay { opacity: 1; }
.team-social { display: flex; gap: 10px; }
.team-social a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 13px;
    transition: all var(--transition);
}
.team-social a:hover { background: var(--white); color: var(--green); }
.team-info {
    padding: 20px 16px;
}
.team-info h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}
.team-info .role {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green);
}
.team-divider {
    width: 30px; height: 2px;
    background: var(--green);
    margin: 10px auto 0;
    border-radius: 1px;
}

/* ============================================================
   SECTION: OPPORTUNITÉS (home)
   ============================================================ */
.opps-home {
    background: var(--gray-100);
    padding: 100px 0;
}
.opps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.opp-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--gray-200);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.opp-card::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--green);
    transition: width var(--transition);
}
.opp-card.emploi::after { background: var(--red); }
.opp-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.opp-type-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    background: rgba(31,166,74,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    color: var(--green);
    flex-shrink: 0;
}
.opp-card.emploi .opp-type-icon { background: rgba(226,35,26,.08); color: var(--red); }
.opp-body { flex: 1; }
.opp-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green);
    background: rgba(31,166,74,.08);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.opp-card.emploi .opp-badge { color: var(--red); background: rgba(226,35,26,.06); }
.opp-body h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
    line-height: 1.4;
}
.opp-body p { font-size: 13px; color: var(--gray-600); line-height: 1.6; margin-bottom: 14px; }
.opp-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--gray-600);
    flex-wrap: wrap;
}
.opp-meta span { display: flex; align-items: center; gap: 5px; }
.opp-meta i { color: var(--green); }
.opp-card.emploi .opp-meta i { color: var(--red); }

.no-opps {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 24px;
    color: var(--gray-600);
}
.no-opps i { font-size: 48px; margin-bottom: 16px; opacity: .3; }

/* ============================================================
   NOTE : Les sections "PARTENAIRES" et "FOOTER" ont été retirées
   d'ici lors d'une étape précédente de nettoyage. Elles vivent
   désormais entièrement dans includes/footer.php (avec !important
   pour garantir la priorité). Ne pas les réintroduire ici.
   ============================================================ */

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-up:nth-child(2) { transition-delay: .1s; }
.fade-in-up:nth-child(3) { transition-delay: .2s; }
.fade-in-up:nth-child(4) { transition-delay: .3s; }
.fade-in-up:nth-child(5) { transition-delay: .4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .about-grid { gap: 48px; }
}

@media (max-width: 900px) {
    .topbar-left { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { order: -1; }
    .about-img-main { height: 320px; }
    .opps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --navbar-h: 64px; --topbar-h: 36px; }

    .navbar-nav {
        position: fixed;
        top: 0; right: -100%;
        width: 85%; max-width: 340px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 30px;
        gap: 2px;
        transition: right var(--transition);
        z-index: 999;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
        justify-content: flex-start;
    }
    .navbar-nav.open { right: 0; }
    .nav-overlay { display: block; }
    .nav-link { width: 100%; padding: 12px 16px; }
    .nav-toggle { display: flex; }

    .dropdown {
        position: static;
        transform: none !important;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }
    .nav-item.open .dropdown { max-height: 400px; }

    /* NOTE : .hero-carousel, .slide-content, .slide-counter,
       .slide-title sont retirés d'ici — index.php a son propre
       @media (max-width:768px) qui les redéfinit déjà, avec en
       plus la correction de l'overlay mobile. */

    .services-grid { grid-template-columns: 1fr; }
    .services-grid-bottom { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .about-highlights { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .topbar-social { display: none; }

    .section { padding: 70px 0; }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
    .stat-number { font-size: 28px; }
}