/* =========================================
   1. VARIABLES & RESET (Green IT)
   ========================================= */
:root {
    /* Palette extraite de la maquette "test learning gate.png" */
    --color-forest: #2C4F28;    /* Vert foncé (Textes forts, Footer) */
    --color-leaf: #4CAF50;      /* Vert vif (Accents, Logos) */
    --color-accent: #E67E22;    /* Orange (Boutons, Highlights) */
    --color-cream: #FDFBF7;     /* Fond principal (chaleureux, pas blanc clinique) */
    --color-white: #FFFFFF;     /* Fond cartes */
    --color-text: #333333;      /* Texte courant */
    --color-grey-light: #E5E5E5;
    --color-bg-default : #ffe9d4;
    
    /* Typographie (Système natif pour performance max) */
    --font-heading: 'Merriweather', 'Georgia', serif; /* Aspect institutionnel/sérieux */
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Espacement & Layout */
    --container-width: 1200px;
    --radius-btn: 50px;         /* Boutons arrondis (pill) */
    --radius-card: 12px;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.05);
}

/* Reset minimaliste */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--color-cream);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block;margin:auto; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   2. UI KIT (Boutons & Typo)
   ========================================= */
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-forest); font-weight: 700; }
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; text-align: center; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Boutons "Pill" comme sur la maquette */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}
.btn-primary:hover { background-color: #d35400; transform: translateY(-2px); }

.btn-outline {
    border-color: var(--color-forest);
    color: var(--color-forest);
}
.btn-outline:hover { background-color: var(--color-forest); color: var(--color-white); }

.link-arrow {
    font-weight: 600;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: underline;
}

/* Badge "Projet Novembre 2025" */
.badge-version {
    background-color: var(--color-forest);
    color: var(--color-white);
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

p.subtitle {
    text-align: center;
}
/* =========================================
   3. HEADER
   ========================================= */
.main-header {
    padding: 20px 0;
    background: var(--color-cream);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-menu ul { display: flex; gap: 30px; align-items: center; }
.nav-menu a { font-weight: 500; font-size: 0.9rem; }
.nav-menu a:hover { color: var(--color-accent); }

/* =========================================
   4. SECTIONS (Homepage)
   ========================================= */

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: left; /* Aligné gauche comme maquette */
    max-width: 100%; /* Limite largeur lecture */
    background-color: var(--color-bg-default);
}
.hero h1 span { color: var(--color-forest); } /* "LEARNING RESPONSABLE" en vert */
.hero .lead { font-size: 1.1rem; margin-bottom: 2rem; color: #555; max-width: 600px; }
.cta-group { display: flex; gap: 20px; align-items: center; }

/* Mood Switcher (Visuel) */
.mood-switcher-bar {
    background: var(--color-white);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
    font-size: 0.8rem;
    font-weight: 700;
}
.dots { display: flex; gap: 5px; }
.dot { width: 12px; height: 12px; border-radius: 50%; cursor: pointer; border: none; }
.dot.orange { background: var(--color-accent); }
.dot.green { background: var(--color-forest); }
.dot.mixed { background: linear-gradient(45deg, var(--color-accent), var(--color-forest)); }

/* Enjeu National (2 Cartes bordure gauche) */
.section-enjeu { padding: 60px 0; background: var(--color-white); }
.section-enjeu .subtitle { text-align: center; max-width: 700px; margin: 0 auto 50px auto; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.card-border {
    background: var(--color-cream);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent); /* Trait orange vertical */
    box-shadow: var(--shadow-soft);
}
.card-border:nth-child(2) { border-left-color: var(--color-forest); } /* Trait vert pour le 2eme */

/* Infrastructure (3 Piliers) */
.section-piliers { padding: 80px 0; background: var(--color-cream); }
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.card-pilier {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: transform 0.3s;
}
.card-pilier:hover { transform: translateY(-5px); }

.number-badge {
    width: 40px; height: 40px;
    background: var(--color-forest);
    color: white;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: bold;
    margin-bottom: 20px;
}
.number-badge.orange { background: var(--color-accent); }

/* Tiers de Confiance */
.section-confiance { padding: 80px 0; }
.confiance-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.placeholder-img {
    background: #ddd;
    height: 300px;
    border-radius: var(--radius-card);
    display: flex; align-items: center; justify-content: center;
    color: #666;
}

/* =========================================
   5. FOOTER
   ========================================= */

#main-footer {
    background-color: var(--color-forest); /* Vert Foncé */
    color: var(--color-white);
    padding: 60px 0 20px 0;
    margin-top: auto; /* Garde le footer en bas même si page vide */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

#main-footer h4 {
    color: var(--color-accent); /* Orange */
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    display: inline-block;
}

#main-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

#main-footer a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-links li {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Empilement vertical sur mobile */
        text-align: center;
    }
	.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    }
	.grid-3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin-top: 40px;
    }
}



/* --- AJOUTS POUR CONTENU DRAFTIUM --- */

/* Section Bénéfices (Grille 3x2) */
.section-benefits { padding: 80px 0; background-color: var(--color-white); }
.benefit-card {
    background: var(--color-cream);
    padding: 30px;
    border-radius: 8px;
    transition: 0.3s;
    border: 1px solid transparent;
}
.benefit-card:hover {
    border-color: var(--color-leaf);
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
}
.benefit-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--color-forest); }
.benefit-card p { font-size: 0.95rem; color: #555; margin-bottom: 0; }
.benefit-icon { 
    font-size: 2rem; margin-bottom: 15px; color: var(--color-accent); 
}

/* Section Marketplace (Call to Action distinct) */
.section-marketplace {
    background-color: var(--color-forest);
    color: var(--color-white);
    padding: 80px 0;
    text-align: center;
}
.section-marketplace h2 { color: var(--color-white); }
.section-marketplace .subtitle { color: rgba(255,255,255,0.9); margin-bottom: 40px; }
.marketplace-grid {
    display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px;
}
.tag {
    background: rgba(255,255,255,0.1); padding: 10px 20px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.2);
}

/* Section Formations (Layout Côté à Côté) */
.section-formations { padding: 80px 0; background: var(--color-cream); }
.formation-block {
    background: var(--color-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    height: 100%;
    display: flex; flex-direction: column;
}
.formation-header {
    background: var(--color-forest);
    color: white;
    padding: 20px;
}
.formation-header .partner { font-size: 0.8rem; text-transform: uppercase; color: var(--color-accent); letter-spacing: 1px; }
.formation-body { padding: 30px; flex-grow: 1; }
.formation-body ul { list-style: none; padding: 0; margin-top: 15px; }
.formation-body ul li { 
    position: relative; padding-left: 25px; margin-bottom: 10px; font-size: 0.9rem; color: #555; 
}
.formation-body ul li::before {
    content: "✔"; color: var(--color-leaf); position: absolute; left: 0; top: 0; font-weight: bold;
}

/* Partenaires */
.section-partners { padding: 60px 0; text-align: center; background: var(--color-white); }
.partners-grid { 
    display: flex; gap: 40px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 30px; opacity: 0.6; 
}
.partners-grid img { max-height: 50px; filter: grayscale(100%); transition: 0.3s; }
.partners-grid img:hover { filter: grayscale(0%); opacity: 1; }



/* =========================================
   MOBILE MENU & BURGER
   ========================================= */

/* Par défaut (Desktop) : on cache le burger */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2000;
}

/* Design des 3 barres du burger */
.burger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-forest);
    margin: 5px 0;
    transition: 0.4s;
    border-radius: 2px;
}

/* MEDIA QUERIES : UNIQUEMENT SUR MOBILE (< 768px) */
@media (max-width: 768px) {
    
    /* 1. Afficher le bouton burger */
    .burger-menu {
        display: block;
    }

    /* 2. Cacher/Modifier le menu par défaut */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Caché hors écran à droite */
        width: 80%;   /* Largeur du menu déroulant */
        height: 100vh;
        background-color: var(--color-cream);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 80px 20px;
        transition: right 0.3s ease-in-out;
        z-index: 1500;
    }

    /* 3. État "Actif" (quand on clique) */
    .nav-menu.active {
        right: 0; /* Le menu glisse vers l'intérieur */
    }

    /* 4. Style des liens dans le menu mobile */
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    /* Ajustement bouton contact mobile */
    .mobile-btn {
        text-align: center;
        margin-top: 10px;
        color: white !important; /* Force la couleur blanche sur le bouton orange */
    }

    /* 5. Animation du Burger en "Croix" quand actif */
    .burger-menu.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: var(--color-accent); /* Devient orange */
    }
    .burger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: var(--color-accent);
    }
}

/* =========================================
   PAGE LABELS (Styles spécifiques)
   ========================================= */

/* Comparateur de Niveaux (Engagement vs Certifié) */
.levels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}
.level-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-card);
    border-top: 5px solid #ddd;
    box-shadow: var(--shadow-soft);
}
.level-card.level-1 { border-top-color: var(--color-accent); } /* Orange */
.level-card.level-2 { border-top-color: var(--color-forest); } /* Vert */

.level-card ul { margin-top: 20px; list-style: none; padding: 0; }
.level-card li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.level-card li::before { content: "✔"; color: var(--color-leaf); position: absolute; left: 0; }

/* Timeline des 7 Étapes */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 20px; /* Ligne verticale */
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-grey-light);
}
.timeline-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}
.timeline-step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--color-forest);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-weight: bold;
    z-index: 1;
}
.timeline-step h4 { margin-bottom: 10px; color: var(--color-text); }

/* Détail des Labels (2 colonnes descriptives) */
.label-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}
.label-detail h3 { color: var(--color-forest); border-bottom: 2px solid var(--color-accent); padding-bottom: 10px; display: inline-block; margin-bottom: 20px;}

@media (max-width: 768px) {
    .levels-grid, .label-details-grid { grid-template-columns: 1fr; }
}

/* --- STYLE DU HEADER & MENU MOBILE --- */

/* Par défaut (Desktop) : On cache le burger */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Au-dessus du menu */
}

.burger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333; /* Couleur des barres (A adapter selon votre charte) */
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

/* --- VERSION MOBILE (max-width: 768px) --- */
@media (max-width: 768px) {

    /* 1. Afficher le bouton burger */
    .burger-menu {
        display: block;
    }

    /* 2. Cacher le menu par défaut et le positionner */
    .nav-menu {
        position: fixed; /* Ou absolute selon votre layout */
        top: 0;
        right: -100%; /* On le cache hors écran à droite */
        width: 80%; /* Largeur du menu mobile */
        height: 100vh;
        background-color: #fdfbf7; /* Fond Crème (selon votre charte) */
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding-top: 80px; /* Espace pour ne pas chevaucher le header */
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    /* 3. Classe "active" : Quand le menu est ouvert */
    .nav-menu.active {
        right: 0; /* On le ramène sur l'écran */
    }

    /* 4. Animation du Burger en Croix (X) */
    .burger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}