/* --- CSS Reset & Variables --- */
:root {
    --brand-teal: #00A8A8;
    --brand-teal-light: #E6F7F7;
    --brand-orange: #FF8A00;
    --brand-orange-dark: #FF8C2A;
    --brand-dark: #1A2B4B;
    --brand-gray: #6B7280;
    --gradient-main: linear-gradient(90deg, #00B4B4 0%, #FF7B00 100%);
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #a4a7ad;
    --gray-400: #858991;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --container-max-width: 1250px;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--gray-900);
    background-color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header --- */
.hamburger {
    cursor: pointer;
    background: none;
    border: none;
    color: var(--brand-dark);
    display: none; /* Masqué par défaut, affiché sur mobile via JS */
}

.main-header {
    position: fixed;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-100);
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-content {
    display: flex; /* <- Passe en flex au lieu de grid */
    align-items: center;
    justify-content: space-between; /* Logo | Nav | Boutons */
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 24px;
}

.logo {
    position: relative;
    line-height: 0; 
    max-width: 140px;/* plus besoin de display ici */
}

.nav-desktop {
    display: none;
    gap: 1.5rem;
    width: max-content; /* prend juste ce qu'il faut */
    justify-self: center; /* centre la colonne du milieu dans le grid */
}

.nav-wrapper{
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--brand-teal);
}

.nav-link.active {
    color: var(--brand-teal);
    font-weight: 600;
    border-bottom: 2px solid var(--brand-teal);
    padding-bottom: 0.25rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-outline {
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    background-color: var(--brand-teal);
    color: white;
    font-weight: 600;
    transition: var(--transition);
    display: none;
    width: max-content; /* prend juste ce qu'il faut */
    justify-self: center; /* centre la colonne du milieu dans le grid */
}

.btn-outline:hover {
    background-color: var(--brand-teal);
    color: var(--white);
}

.btn-primary {
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    background-color: var(--brand-orange);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(242, 140, 40, 0.2);
    transition: var(--transition);
    width: max-content; /* prend juste ce qu'il faut */
    justify-self: center; /* centre la colonne du milieu dans le grid */
}

.btn-primary:hover {
    opacity: 0.9;
}

@media (max-width:1024px){

    .nav-wrapper{
        display:none;
    }

    .nav-wrapper.active {
        display: flex;
        position: fixed;
        width: 50%;
        background: #fff;
        box-shadow: 0 10px 15px rgba(0, 0, 0, .1);
        justify-self: anchor-center;
        top: 18%;
        left: 28%;
        height: calc(100vh - 70px);
        overflow-y: auto;   /* scroll vertical */
        overflow-x: hidden;
        z-index: 999;
    }

    .nav-wrapper.active .nav-desktop,
    .nav-wrapper.active .header-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
   
}

main {
    margin-top: 125px;
}

.accent-line {
    width: 64px;
    height: 6px;
    background: linear-gradient(
        90deg,
        var(--brand-teal) 0%,
        var(--brand-teal) 40%,
        var(--brand-orange) 60%,
        var(--brand-orange) 100%
    );
    border-radius: 9999px;
    margin-top: 1rem;
    display: block; /* important si c'est un span ou un div vide */
}

.dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray-500);
}

.dot.active {
    background-color: var(--brand-teal);
}

/* --- Features Section --- */
.features {
    padding: 0 0 3rem 0;
    margin-top: -5rem;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    align-items: center;
    justify-items: center;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.border {
    border: 2px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* ombre très douce */
    border-radius: 1.5rem; /* optionnel: rend l'ombre plus jolie */
}

.feature {
    width: 100%; /* il faut une largeur */
    margin: 0 auto; /* auto à gauche et droite */
}

.feature-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature:not(:first-child) {
    border-left: 2px solid var(--gray-200);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
}

.feature-icon-wrapper .icon {
    width: 40px;
    height: 40px;
}

.feature-icon-wrapper.teal { 
    background-color: #bce0d8; 
    color: var(--brand-teal); 
}

.feature-icon-wrapper.orange { 
    background-color: #fad68f; 
    color: var(--brand-orange); 
}

.feature-card h3 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.65rem;
    color: var(--gray-800);
}

/* --- Stats Section --- */
.stats {
    padding: 1rem 0;
}

.stats-card{
    padding: 2rem;
    border-radius: 1.5rem;
    background-color: #ceecec;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    display: flex;
    justify-content: center; /* centre horizontal */
    align-items: center;     /* centre vertical */
    height: auto; /* il faut une hauteur au parent */
    gap: 1rem;

}

.stat-item:not(:first-child) {
    border-left: 2px solid #8cd3d3;
}


.stat-item .icon{
    width: 56px;
    height: 56px;
    color: var(--brand-teal);
}

.stat-content .stat-num {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1.2;
}

.stat-content .stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* --- CTA Section --- */
.cta-banner {
    background: linear-gradient(
        90deg,
        var(--brand-teal) 0%,
        var(--brand-orange) 70%,
        var(--brand-orange) 100%
    );
    border-radius: 2.5rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    color: var(--white);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.cta-banner:hover {
    transform: translateY(-5px);
}

.cta-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
    background-image: radial-gradient(circle, white 1px, transparent 1px);
    background-size: 20px 20px;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.cta-icon-box {
    width: 70px;
    height: 70px;
    background-color: #FFFFFF; /* cercle blanc */
    border-radius: 50%;
    display: flex;

    /* 2 calques de masque : Cercle + Nouvelle Icône */
    -webkit-mask: 
        radial-gradient(circle, black 100%, transparent 100%), /* calque 1: cercle plein */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='black'%3E%3Cpath d='M11.7 2.805a.75.75 0 0 1 .6 0A60.7 60.7 0 0 1 22.83 8.72a.75.75 0 0 1-.231 1.337a50 50 0 0 0-9.902 3.912l-.003.002l-.34.18a.75.75 0 0 1-.707 0A51 51 0 0 0 7.5 12.173v-.224a.36.36 0 0 1 .172-.311a55 55 0 0 1 4.653-2.52a.75.75 0 0 0-.65-1.352a56 56 0 0 0-4.78 2.589a1.86 1.86 0 0 0-.859 1.228a50 50 0 0 0-4.634-1.527a.75.75 0 0 1-.231-1.337A60.7 60.7 0 0 1 11.7 2.805'/%3E%3Cpath d='M13.06 15.473a48.5 48.5 0 0 1 7.666-3.282q.202 2.122.255 4.284a.75.75 0 0 1-.46.711a48 48 0 0 0-8.105 4.342a.75.75 0 0 1-.832 0a48 48 0 0 0-8.104-4.342a.75.75 0 0 1-.461-.71q.053-2.163.255-4.286q1.382.456 2.726.99v1.27a1.5 1.5 0 0 0-.14 2.508c-.09.38-.222.753-.397 1.11q.678.32 1.346.66a6.7 6.7 0 0 0 .551-1.607a1.5 1.5 0 0 0 .14-2.67v-.645a49 49 0 0 1 3.44 1.667a2.25 2.25 0 0 0 2.12 0'/%3E%3Cpath d='M4.462 19.462c.42-.419.753-.89 1-1.395q.68.321 1.347.662a6.7 6.7 0 0 1-1.286 1.794a.75.75 0 0 1-1.06-1.06'/%3E%3C/g%3E%3C/svg%3E") no-repeat center; /* calque 2: nouvelle icône */
    
    mask: 
        radial-gradient(circle, black 100%, transparent 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='black'%3E%3Cpath d='M11.7 2.805a.75.75 0 0 1 .6 0A60.7 60.7 0 0 1 22.83 8.72a.75.75 0 0 1-.231 1.337a50 50 0 0 0-9.902 3.912l-.003.002l-.34.18a.75.75 0 0 1-.707 0A51 51 0 0 0 7.5 12.173v-.224a.36.36 0 0 1 .172-.311a55 55 0 0 1 4.653-2.52a.75.75 0 0 0-.65-1.352a56 56 0 0 0-4.78 2.589a1.86 1.86 0 0 0-.859 1.228a50 50 0 0 0-4.634-1.527a.75.75 0 0 1-.231-1.337A60.7 60.7 0 0 1 11.7 2.805'/%3E%3Cpath d='M13.06 15.473a48.5 48.5 0 0 1 7.666-3.282q.202 2.122.255 4.284a.75.75 0 0 1-.46.711a48 48 0 0 0-8.105 4.342a.75.75 0 0 1-.832 0a48 48 0 0 0-8.104-4.342a.75.75 0 0 1-.461-.71q.053-2.163.255-4.286q1.382.456 2.726.99v1.27a1.5 1.5 0 0 0-.14 2.508c-.09.38-.222.753-.397 1.11q.678.32 1.346.66a6.7 6.7 0 0 0 .551-1.607a1.5 1.5 0 0 0 .14-2.67v-.645a49 49 0 0 1 3.44 1.667a2.25 2.25 0 0 0 2.12 0'/%3E%3Cpath d='M4.462 19.462c.42-.419.753-.89 1-1.395q.68.321 1.347.662a6.7 6.7 0 0 1-1.286 1.794a.75.75 0 0 1-1.06-1.06'/%3E%3C/g%3E%3C/svg%3E") no-repeat center;
    
    -webkit-mask-size: 100% 100%, 50px 50px; /* cercle prend tout, icône 50px */
    mask-size: 100% 100%, 50px 50px;
    
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.cta-text{
    flex: 1;
    max-width: 550px;
}

.cta-text h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cta-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.btn-cta {
    background-color: var(--white);
    color: var(--brand-dark);
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-cta:hover {
    transform: translateX(10px);
}

/* --- Footer --- */
.footer {
    width: 100%;
    background: linear-gradient(
        90deg,
        var(--brand-teal) 0%,
        var(--brand-orange) 70%,
        var(--brand-orange) 100%
    );
    color: var(--white);
    padding-top: 3rem;
    padding-bottom: 2.5rem;
}

.footer .container {
    position: relative;
    width: 100%; /* prend toute la largeur */
    max-width: 100%; /* on annule la limite du site */
    margin: 0; /* on annule le margin auto et les 20px */
    padding: 0 1.5rem; /* on garde un peu de respiration sur les côtés. Mets 0 si tu veux collé bord à bord */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(5, 1fr); /* <- chaque colonne = largeur de son contenu */
    justify-content: space-between; /* optionnel: répartit l'espace restant entre les colonnes */
    margin-bottom: 1rem;
}

.footer-grid > *:nth-child(1),
.footer-grid > *:nth-child(3) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    padding: 0 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 320px;
    margin: 1.5rem 0 2rem;
    font-size: 0.8rem;
}

.footer-brand .logo img{
    width: 40%;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
}

.footer-col{
    font-size: 0.8rem;
    padding: 0 1rem;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.newsletter {
    padding: 0;
}

.input-group {
    position: relative;
    margin-top: 1rem;
}

.input-group input {
    width: 100%;
    background-color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    color: var(--white);
    font-size: 0.875rem;
    outline: none;
}

.input-group input::placeholder {
    color: var(--gray-500);
}

.input-group button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    background-color: var(--brand-orange);
    color: var(--white);
    border-radius: 0.5rem;
    padding: 0 1rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: grid;
    grid-template-columns: 0.7fr repeat(2, 1fr);
}

.footer-legal a {
    padding: 0 1rem;
}

.footer-legal > *:nth-child(1),
.footer-legal > *:nth-child(2) {
    border-right: 2px solid rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
    color: var(--white);
}

/* --- Icons SVGs --- */
.icon { 
    width: 24px; 
    height: 24px; 
    fill: currentColor; 
}

.icon-sm { 
    width: 15px; 
    height: 15px; 
    fill: currentColor; 
}

.stroke-icon { 
    fill: none; 
    stroke: currentColor; 
    stroke-width: 2; 
    stroke-linecap: round; 
    stroke-linejoin: round; 
}

/* ===== RESPONSIVE FIXES ===== */

/* 1. HEADER RESPONSIVE */
@media (min-width: 1024px) {
    .nav-desktop { display: flex; }
    .btn-outline { display: block; }
    .hamburger { display: none; }
}

@media (max-width: 1023px) {
    .header-content {
        grid-template-columns: 1fr auto 1fr; /* logo | burger | vide */
        margin: 12px 20px;
    }
    .logo { justify-self: start; }
    .logo img { max-width: 140px; }
    .hamburger { display: block; justify-self: end; }
    .nav-desktop, .header-actions { display: none; }

    /* Menu mobile qui s'ouvre au clic */
    .nav-desktop.nav-mobile {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
    }
    .nav-desktop.nav-mobile .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--gray-100);
    }
}

/* 2. HERO + SECTIONS GENERALES */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-btns, .social-proof { justify-content: center; }
    .hero-visual { order: -1; } /* image au dessus sur mobile */
    .features { margin-top: 0; } /* enlève le chevauchement sur mobile */
}
/* ===== GRILLES RESPONSIVES ===== */

/* --- FEATURES --- */
.features {
    margin-top: 0; 
    padding: 3rem 0;
}

@media (min-width: 1024px) {
    .features { margin-top: -5rem; }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr; /* MOBILE: 1 colonne */
    gap: 0;
}

@media (min-width: 640px) and (max-width: 1023px) {
    .features-grid { 
        grid-template-columns: repeat(2, 1fr); /* TABLETTE: 2 colonnes */
    }
}

@media (min-width: 1024px) {
    .features-grid { 
        grid-template-columns: repeat(5, 1fr); /* DESKTOP: 5 colonnes */
    }
}

.feature {
    padding: 1.5rem 1rem;
}

.feature:not(:first-child) {
    border-left: none;
    border-top: 2px solid var(--gray-200); /* séparation horizontale mobile/tablette */
}

@media (min-width: 640px) and (max-width: 1023px) {
    /* 1. FEATURES */
    .features-grid { 
        grid-template-columns: repeat(3, 1fr);
    }

    .feature {
        border-top: none;    /* pas de bordure en bas */
        border-left: none;   /* reset */
        padding: 1.5rem 1rem;
    }

    .feature:not(:first-child) {
        border-top: none;
    }

    /* Toutes les cases SAUF 1ère colonne : 2,3,5,6,8,9... */
    .feature:not(:nth-child(3n+1)) {
        border-left: 2px solid var(--gray-200);
    }
}

@media (min-width: 1024px) {
    .feature:not(:first-child) {
        border-left: 2px solid var(--gray-200); /* séparation verticale desktop */
        border-top: none;
    }
}

/* --- STATS --- */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr; /* MOBILE: 1 colonne */
    gap: 0;
}

@media (min-width: 640px) and (max-width: 1023px) {
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr); /* TABLETTE: 2 colonnes */
    }
}

@media (min-width: 1024px) {
    .stats-grid { 
        grid-template-columns: repeat(4, 1fr); /* DESKTOP: 4 colonnes */
    }
}

.stat-item {
    padding: 1.5rem 1rem;
}

.stat-item:not(:first-child) {
    border-left: none;
    border-top: 2px solid #8cd3d3;
}

@media (min-width: 640px) and (max-width: 1023px) {
    /* sur tablette 2 colonnes : on remet la border à gauche pour la 2ème et 4ème */
    .stat-item:nth-child(2n),
    .stat-item:nth-child(4n) {
        border-left: 2px solid #8cd3d3;
    }
    .stat-item:not(:first-child) {
        border-top: none;
    }
}

@media (min-width: 1024px) {
    .stat-item:not(:first-child) {
        border-left: 2px solid #8cd3d3;
        border-top: none;
    }
}

.stat-item .icon { 
    width: 40px; 
    height: 40px; 
}

@media (min-width: 768px) {
    .stat-item .icon { 
        width: 56px; 
        height: 56px; 
    }
}

/* --- FORMATIONS --- */
.formations-grid {
    display: grid;
    grid-template-columns: 1fr; /* MOBILE: 1 colonne */
    gap: 1.5rem;
}

@media (min-width: 640px) and (max-width: 1023px) {
    .formations-grid { 
        grid-template-columns: repeat(2, 1fr); /* TABLETTE: 2 colonnes */
    }
}

@media (min-width: 1024px) {
    .formations-grid { 
        grid-template-columns: repeat(5, 1fr); /* DESKTOP: 5 colonnes */
    }
}

/* 4. SCROLL HORIZONTAL MOBILE */
.projects-scroll, .testimonials-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
}
.project-card, .testimonial-card { scroll-snap-align: start; }

/* 5. CTA ET FOOTER */
.cta-banner { flex-direction: row; }
@media (max-width: 768px) {
    .cta-banner { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
    .cta-content { flex-direction: column; }
}

.footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}
.footer-grid > *:nth-child(1),
.footer-grid > *:nth-child(3) { border-right: none; }
@media (min-width: 1024px) {
    .footer-grid > *:nth-child(1),
    .footer-grid > *:nth-child(3) { border-right: 1px solid rgba(255, 255, 255, 0.1); }
}

.footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
.footer-legal { grid-template-columns: 1fr; }
.footer-legal > * { border-right: none !important; padding: 0.25rem 0; }

/* 6. PETITS FIX MOBILE */
@media (max-width: 600px) {
    .container { padding: 0 1rem; }
    .section-padding { padding: 3rem 0; }
    .btn-outline, .btn-primary { padding: 0.5rem 1rem; font-size: 0.875rem; }
    .feature-card h3 { font-size: 1rem; }
    .feature-card p { font-size: 0.875rem; }
}

/* ===== HEADER BURGER A PARTIR DE 1200px ===== */
@media (min-width: 1201px) {
    .header-content {
        grid-template-columns: auto 1fr auto;
    }
    .nav-wrapper {
        display: contents; /* garde le layout grid sur desktop */
    }
    .nav-desktop { display: flex; }
    .btn-outline { display: block; }
    .hamburger { display: none; }
}

@media (max-width: 1200px) {
    .header-content {
        grid-template-columns: 1fr auto; /* logo | burger */
        margin: 12px 20px;
    }
    
    .logo { justify-self: start; }
    .hamburger { display: block; justify-self: end; }

    .nav-wrapper {
        display: none; /* caché par défaut */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 1.5rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
        z-index: 99;
    }

    /* Quand on clique sur burger */
    .nav-wrapper.nav-mobile {
        display: flex;
    }

    .nav-desktop {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-link {
        padding: 0.9rem 0;
        border-bottom: 1px solid var(--gray-100);
        font-size: 1rem;
        font-weight: 500;
        width: 100%;
        text-align: center;
    }
    .nav-link.active {
        border-bottom: 2px solid var(--brand-teal);
    }

    .header-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        padding-top: 0.5rem;
    }

    .btn-outline, .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}