/* ==================================
== 1. STYLES GLOBAUX (Reset et Base)
==================================
*/
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

/* ==================================
== 2. MENU PRINCIPAL (Styles Communs)
==================================
*/
.menu-principal {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent; 
    z-index: 10000;
}

/* Couche blanche imperméable sous le menu */
.menu-principal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF; 
    border-bottom: 1px solid #eee;
    z-index: 999; 
}

/* -- 2.1. Logo (Gauche) -- */
.menu-logo {
    flex-shrink: 0;
    position: relative;
    z-index: 1001 !important;
}
.menu-logo img {
    max-height: 80px;
    width: auto;
    display: block;
}

/* -- 2.2. Liens de navigation (Centre - PC) -- */
.menu-liens {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    flex-grow: 1;
    align-items: center;
    flex-wrap: wrap; 
}

.menu-liens li {
    margin: 5px 10px; 
}

.menu-liens a {
    color: rgb(68, 133, 84);
    background-color: transparent;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;     
    display: inline-block;
    line-height: normal;
}

.menu-liens a:hover,
.menu-liens a.active {
    background-color: rgb(68, 133, 84);
    color: #FFFFFF;
}

/* Lien Espace Pro (Admin) Spécifique */
.menu-liens a.admin-link {
    color: #e74c3c; /* Rouge par défaut */
}
.menu-liens a.admin-link:hover,
.menu-liens a.admin-link.active {
    background-color: #e74c3c;
    color: #FFFFFF;
}

/* -- 2.3. Bouton (Droite) -- */
.menu-connexion {
    flex-shrink: 0;
    position: relative; 
    z-index: 1001; /* Pour rester cliquable */
}

.btn-login {
    display: inline-block;
    background-color: #2a8a44;
    color: #ffffff;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.btn-login:hover {
    background-color: #226d36;
}

/* Conteneur navigation global */
.menu-nav-container {
    flex-grow: 1;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap; 
    gap: 10px;
    z-index: 1000;
}

/* ==================================
== 3. STYLES SPÉCIFIQUES AUX PAGES
==================================
*/
/* --- 3.1. Page Vidéo (index.php) - VERSION 2 (Plus petit & Vert) --- */
body.page-video {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; 
    overflow-y: auto;
    font-family: Arial, sans-serif;
    background-color: #ffffff; /* Fond blanc confirmé */
    color: rgb(68, 133, 84); /* Force le vert par défaut sur cette page */
}

/* Le conteneur global */
.home-container {
    padding-top: 30px; 
    padding-bottom: 50px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

/* L'encart vidéo : réduit à 55% */
.home-video-box {
    width: 55%; /* Réduction demandée */
    max-width: 900px; 
    aspect-ratio: 16 / 9; 
    background-color: #000;
    border-radius: 15px; 
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
    margin-bottom: 30px; 
    position: relative;
    z-index: 1;
}

.home-video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Le bloc de texte */
.home-content-box {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

/* Titre en VERT */
.home-content-box h1 {
    color: rgb(68, 133, 84); /* Vert charte */
    font-size: 2.2em;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: none; 
}

/* Paragraphe en VERT */
.home-content-box p {
    color: rgb(68, 133, 84); /* Vert charte */
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 500; /* Un peu plus gras pour la lisibilité du vert */
    text-shadow: none;
    line-height: 1.5;
}

/* Bouton */
.access-button {
    display: inline-block;
    padding: 12px 35px;
    background-color: #2a8a44;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(42, 138, 68, 0.3);
}

.access-button:hover {
    background-color: #015F55;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(1, 95, 85, 0.4);
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .home-video-box {
        width: 90%; /* On garde une bonne taille sur mobile pour voir la vidéo */
    }
    .home-content-box h1 {
        font-size: 1.6em;
    }
}

/* --- 3.2. Page Contenu (index2.php) --- */
body.page-contenu {
    background-color: rgb(220,255,220);
    color: #333;
}

body.page-contenu .menu-liens a:hover,
body.page-contenu .menu-liens a.active {
    background-color: rgb(68, 133, 84);
    color: #FFFFFF;
}

/* Section Héros (Slider) */
#hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 500px 20px;
}
.hero-content {
    position: absolute;  
    bottom: 20px;     
    left: 20px;        
    right: 20px;     
    z-index: 2;
    color: white;
    text-align: center; 
}
.slider-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.slide.active {
    opacity: 1;
}
#hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}
#hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Sections de contenu générales */
section:not(#hero) {
    background-color: #ffffff;
    margin-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
section h2 {
    color: #2a8a44;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}
section h1 {
    color: #FFFFFF;
    text-align: center;
    padding-bottom: 10px;
    font-size:50px;
}

/* "Comment ça marche ?" */
#comment-ca-marche .steps-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
.step {
    flex-basis: 150px;
    text-align: center;
    padding: 15px;
    margin: 10px;
    background-color: #f4f4f4;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-weight: bold;
    color: #333;
    position: relative;
}
/* Styles logo dans step */
.step img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}
/* Tooltip step */
.step .step-tooltip {
    visibility: hidden;
    opacity: 0;
    width: 200px;
    background-color: #2a8a44;
    color: #fff;
    text-align: left;
    font-weight: normal;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 10;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
}
.step .step-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}
.step:hover .step-tooltip {
    visibility: visible;
    opacity: 1;
}

/* "Bénéfices" */
#benefices .benefits-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.benefit-column {
    flex-basis: 30%;
    padding: 10px;
    box-sizing: border-box;
}
.benefit-column h3 {
    color: #2a8a44;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    text-align: center;
}
.benefit-column ul {
    list-style-type: '✓ ';
    padding-left: 20px;
}
.benefit-column li {
    padding: 5px 0;
    line-height: 1.5;
}

/* "Valeur Ajoutée" */
#valeur-ajoutee ul {
    list-style-type: '★ ';
    padding-left: 20px;
}
#valeur-ajoutee li {
    padding: 5px 0;
    line-height: 1.5;
}


/* ==================================
== STYLE DU MENU HAMBURGER (Base)
==================================
*/
.menu-burger-checkbox {
    display: none;
}
.menu-burger-btn {
    display: none; /* Caché sur PC */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001 !important;
    position: relative;
}
.menu-burger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: rgb(68, 133, 84);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    position: relative;
    z-index: 1001 !important;
}

/* Animation Burger */
#burger-checkbox:checked ~ .menu-burger-btn span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
#burger-checkbox:checked ~ .menu-burger-btn span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}
#burger-checkbox:checked ~ .menu-burger-btn span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Overlay sombre */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 998 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
#burger-checkbox:checked ~ .menu-overlay {
    opacity: 1;
    visibility: visible;
}


/* ==================================
== 4. MEDIA QUERIES (RESPONSIVITÉ) - CORRIGÉ STYLE BOUTON
==================================
*/
@media (max-width: 1380px) {

    section h1 {
        color: #000000;
        text-align: center;
        padding-bottom: 10px;
    }

    /* 1. Afficher l'icône Hamburger */
    .menu-burger-btn {
        display: flex;
    }

    /* 2. Style du conteneur déroulant (Menu Mobile) */
    .menu-nav-container {
        display: none; /* Caché par défaut */
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #FFFFFF; 
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: center; 
        padding: 20px 0;
        z-index: 1002; /* Très haut */
    }

    /* 3. Ouverture du menu */
    .menu-burger-checkbox:checked ~ .menu-nav-container {
        display: flex; 
    }

    /* --- STYLE "BOUTON" POUR LES LIENS --- */
    
    /* 4. Gestion de la liste */
    .menu-liens {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .menu-liens li {
        width: 100%;
        text-align: center; /* Centre le bouton */
        margin: 5px 0;
    }

    /* 5. Le bouton lui-même */
    .menu-liens a {
        display: inline-block; /* Taille s'adapte au texte */
        width: auto;           /* Pas de pleine largeur */
        padding: 10px 25px;
        border-radius: 5px;
        color: rgb(68, 133, 84); 
        background-color: transparent;
        text-decoration: none;
        font-weight: bold;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        
        /* Reset des propriétés vidéo parasites */
        min-width: unset;
        min-height: unset;
        object-fit: unset;
    }

    /* 6. Style actif / survol (Fond vert) */
    .menu-liens a:hover,
    .menu-liens a.active {
        background-color: rgb(68, 133, 84);
        color: #FFFFFF;
    }
    
    /* Cas Espace Pro sur mobile */
    .menu-liens a.admin-link {
        color: #e74c3c !important; 
    }
    .menu-liens a.admin-link:hover,
    .menu-liens a.admin-link.active {
        background-color: #e74c3c !important;
        color: white !important;
    }

    /* --- CORRECTION VIDÉO (Séparée des liens) --- */
    body.page-video .video-background video {
        width: 100%;
        height: 100%;
        object-fit: contain; 
        min-width: unset;
        min-height: unset;
    }
    
    .menu-connexion {
        margin-top: 15px;
    }
    
    /* --- Styles responsive contenu --- */
    #hero { padding: 300px 20px; }
    #hero h1 { font-size: 2.2rem; }
    #hero p { font-size: 1.1rem; }
    .benefit-column { flex-basis: 100%; margin-bottom: 20px; }
    .step { flex-basis: 40%; }
    
    /* Split layout title */
    .layout-split-title h2 {
        text-align: center;
        margin-bottom: 20px;
    }
    .step-item p {
        padding-left: 0; 
    }
}

@media (max-width: 768px) {
    /* Footer Mobile Fix */
    #top-footer h2 {
        font-size: 1.2rem !important;
        line-height: 1.3;
        margin-top: 5px;
        margin-bottom: 15px;
    }
    #top-footer br { display: none; }

    #footer-top-row {
        display: flex;
        flex-direction: row !important; /* Force la ligne */
        flex-wrap: wrap; 
        justify-content: center;
        gap: 10px;
        text-align: center;
        padding-bottom: 10px;
    }

    .footer-column {
        min-width: unset !important;
        width: 45%; /* Deux colonnes par ligne */
        margin-bottom: 10px;
        flex: 1 1 auto;
    }

    #footer-brand {
        width: 100%;
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        padding-bottom: 10px;
    }
    #footer-brand img {
        height: 40px !important;
        width: auto;
    }
    .footer-column a {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    /* Plan Carbone Mobile */
    .selector-card { flex-direction: column; align-items: flex-start; }
    .plans-tabs { flex-wrap: nowrap; justify-content: flex-start; }
    .page-header h1 { font-size: 1.5rem; }

    /* Tables en cartes */
    .leviers-table, .leviers-table tbody, .leviers-table tr, .leviers-table td {
        display: block; width: 100%; box-sizing: border-box;
    }
    .leviers-table thead { display: none; }
    .leviers-table tbody tr {
        margin-bottom: 20px; background: white; border: 1px solid #ddd;
        border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); padding: 15px;
    }
    .leviers-table td {
        padding: 8px 0; border-bottom: 1px solid #f0f0f0; text-align: left;
    }
    .leviers-table td:last-child { border-bottom: none; text-align: right; padding-top: 10px; }
    
    /* Formulaire ajout */
    tr.add-row {
        background-color: #fcfcfc; border: 2px dashed #2a8a44; margin-top: 30px;
    }
    .add-row input, .add-row select, .add-row textarea { width: 100% !important; margin-bottom: 10px; }
    .add-row button.btn-add { width: 100%; padding: 15px; margin-top: 10px; }

    /* Processus */
    .processus-layout { flex-direction: column; align-items: center; gap: 40px; }
    .processus-image-col { width: 100%; max-width: 300px; }
    .processus-text-col { width: 100%; }
    .processus-step-item p { padding-left: 0; }
    
    /* Avantages */
    .avantages-grid-4col { grid-template-columns: 1fr; }
    
    /* Toolbar & Tasks */
    .toolbar { flex-direction: column; }
    .filter-group { width: 100%; }
    .filter-group select { width: 100%; }
    
    .tasks-card table, .tasks-card tbody, .tasks-card tr, .tasks-card td { display: block; width: 100%; }
    .tasks-card thead { display: none; }
    .tasks-card tbody tr { margin-bottom: 20px; border: 1px solid #eee; border-radius: 10px; background: white; }
    .tasks-card td { padding: 12px 15px; border-bottom: 1px solid #f0f0f0; }
    .tasks-card td:nth-child(1) { background: #f9f9f9; display: flex; justify-content: space-between; }
    .tasks-card td:last-child { border-bottom: none; text-align: center; }
    .btn-validate { display: block; width: 100%; }
}

@media (max-width: 480px) {
     .step { flex-basis: 100%; }
}

/* ==================================
== NOUVEAU : Layouts Split & Components
==================================
*/
.layout-split-container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap; 
    align-items: center; 
    gap: 40px; 
}
.layout-split-title {
    flex-basis: 300px; 
    flex-grow: 1; 
    text-align: left; 
}
.layout-split-title h2 {
    text-align: center;
    border-bottom: none; 
    font-size: 2.5rem; 
    color: rgb(68, 133, 84); 
    line-height: 1.2;
}
.layout-split-content {
    vertical-align: middle;
    text-align: center;
    flex-basis: 0; 
    flex-grow: 999; 
    min-width: 60%; 
}

/* Items étape */
.step-item {
    margin-bottom: 25px; 
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}
.step-item:last-child { border-bottom: none; }
.step-item h3 {
    display: flex; align-items: center; font-size: 1.3rem; color: #2a8a44; margin-bottom: 10px;
}
.step-number {
    font-size: 1.8rem; font-weight: bold; color: #333; margin-right: 15px; line-height: 1;
}
.step-item p {
    font-size: 1rem; line-height: 1.6; color: #555; padding-left: 50px; 
}

/* Items Image + Texte */
.content-item-image {
    margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid #f0f0f0;
}
.content-item-image:last-child { border-bottom: none; }
.content-item-image img {
    width: 100%; height: auto; border-radius: 8px; display: block; margin-bottom: 15px; 
}
.content-item-image .caption {
    font-size: 1rem; line-height: 1.5; color: #555; padding-left: 10px; font-style: italic;
}

/* Items Logo + Texte */
.content-item-logo {
    display: flex; align-items: flex-start; gap: 20px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid #f0f0f0;
}
.content-item-logo:last-child { border-bottom: none; }
.content-item-logo .logo-wrapper { flex-basis: 80px; flex-shrink: 0; }
.content-item-logo .logo-wrapper img { width: 100%; height: auto; display: block; }
.content-item-logo .text-wrapper { flex-grow: 1; }
.content-item-logo .text-wrapper h3 { font-size: 1.3rem; color: #2a8a44; margin: 0 0 10px 0; }
.content-item-logo .text-wrapper p { font-size: 1rem; line-height: 1.6; color: #555; margin: 0; }

/* Image Overlay Box */
.image-overlay-box {
    position: relative; width: 100%; min-height: 450px; border-radius: 8px; overflow: hidden;
    background-size: cover; background-position: center;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.image-overlay-box::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 40%, transparent 100%);
    z-index: 1;
}
.image-overlay-box .overlay-text-content {
    position: relative; z-index: 2; padding: 30px; color: white;
}
.image-overlay-box .caption {
    font-size: 1.1rem; line-height: 1.6; color: #f0f0f0; text-shadow: 0px 1px 3px rgba(0,0,0,0.7);
    margin-bottom: 25px; padding-left: 0;
}
.image-overlay-box p:not(.caption) {
    font-size: 1.3rem; font-weight: bold; color: white; text-shadow: 0px 2px 5px rgba(0,0,0,0.7); margin: 0;
}

/* Map Placeholder */
#map-placeholder {
    width: 100%; height: 550px; background-color: #e9e9e9; border: 1px solid #ccc;
    border-radius: 8px; display: flex; justify-content: center; align-items: center;
    font-style: italic; color: #777; font-size: 1.1rem; margin-top: 20px;
}
.disclaimer-text {
    font-size: 0.9rem; color: #666; font-style: italic; line-height: 1.6;
    border-left: 4px solid #f0f0f0; padding-left: 15px;
}

/* =================================
   FOOTER (Pied de page)
   ================================= */
footer {
    padding: 10px 0;
    background-color: #0A4D0C; 
    color: #FFFFFF;
    border-top: 1px solid #ddd;
    line-height: 1.6;
}
#footer-top-row {
    display: flex; color: #FFFFFF; justify-content: space-between; 
    flex-wrap: wrap; gap: 20px; padding-bottom: 10px;
}
.footer-column { flex: 1 1 200px; min-width: 180px; }
#footer-brand p { font-size: 0.95rem; margin-bottom: 10px; }
.footer-column a {
    display: block; text-decoration: none; color: #FFFFFF; margin-bottom: 8px;
}
.footer-column a:hover { text-decoration: underline; }

#footer-contact-row {
    text-align: center; padding-top: 10px; border-top: 1px solid #eee;
}
#footer-contact-row h3 { font-size: 1.2rem; color: #FFFFFF; margin-bottom: 15px; }
#footer-contact-row p { color: #FFFFFF; margin: 5px 0; font-size: 0.95rem; }

/* =================================
   POPUP LOGIN
   ================================= */
.modal-overlay {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
    position: relative; background-color: #fff; padding: 30px; border-radius: 8px;
    width: 90%; max-width: 400px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.modal-close {
    position: absolute; top: 10px; right: 15px; color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer;
}
.modal-close:hover { color: #333; }
.modal-content h2 { margin-top: 0; margin-bottom: 20px; text-align: center; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input[type="email"], .form-group input[type="password"] {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box;
}
.btn-submit {
    width: 100%; padding: 12px; background-color:rgb(68, 133, 84); color: white;
    border: none; border-radius: 4px; cursor: pointer; font-size: 16px;
}
.btn-submit:hover { background-color: #004494; }
.error-message { color: red; text-align: center; margin-top: 10px; display: none; }

/* =================================
   PROCESSUS (Timeline Alternée)
   ================================= */
section#processus { background-color: #fcfcfc; }
.timeline-container { position: relative; max-width: 900px; margin: 40px auto; }
.timeline-container::before {
    content: ''; position: absolute; width: 4px; background-color: #f0f0f0;
    top: 0; bottom: 0; left: 50%; margin-left: -2px;
}
.timeline-step { padding: 0; position: relative; width: 100%; }
.timeline-step:not(:first-child) { margin-top: -60px; }
.timeline-icon {
    position: absolute; left: 50%; top: 30px; transform: translateX(-50%);
    width: 60px; height: 60px; background-color: #fff; border: 4px solid #f0f0f0;
    border-radius: 50%; z-index: 1; display: flex; justify-content: center; align-items: center; font-size: 2rem;
}
.timeline-content-box {
    position: relative; width: 44%; padding: 20px; padding-bottom: 30px;
    background-color: #2a8a44; color: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.step-header { display: flex; align-items: center; margin-bottom: 15px; }
.step-number-circle {
    display: flex; justify-content: center; align-items: center; flex-shrink: 0;
    width: 30px; height: 30px; background-color: #333; color: white; border-radius: 50%;
    font-weight: bold; font-size: 1.1rem; margin-right: 12px;
}
.timeline-content-box h3 { color: white; font-size: 1.15rem; margin: 0; }
.timeline-content-box p { color: #f0f0f0; font-size: 0.95rem; line-height: 1.6; margin-bottom: 10px; }
.timeline-content-box p:last-child { margin-bottom: 0; }

.timeline-step:nth-child(odd) .timeline-content-box { left: 0; }
.timeline-step:nth-child(even) .timeline-content-box { left: 56%; }

.timeline-content-box::after {
    content: ''; position: absolute; top: 45px; transform: translateY(-50%); width: 0; height: 0; border-style: solid;
}
.timeline-step:nth-child(odd) .timeline-content-box::after {
    right: -14px; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #2a8a44;
}
.timeline-step:nth-child(even) .timeline-content-box::after {
    left: -14px; border-width: 8px 14px 8px 0; border-color: transparent #2a8a44 transparent transparent;
}

/* =================================
   SECTION AVANTAGES (Grille)
   ================================= */
section#vos-avantages, section#pourquoi-rejoindre {
    background-color: #FFFFFF; box-shadow: none; padding-top: 20px; padding-bottom: 20px;
}
.avantage-banner-top, .avantage-banner-bottom {
    text-align: center; max-width: 800px; margin: 20px auto 40px auto;
}
.avantage-banner-top p { font-size: 1.1rem; color: #333; line-height: 1.6; }
.avantage-banner-bottom h3 { color: #333; font-size: 1.4rem; margin-bottom: 20px; }
.avantage-banner-bottom .btn-login { padding: 12px 25px; font-size: 1rem; }

.section-title-box {
    display: inline-block; background-color: #2a8a44; color: white;
    padding: 12px 30px; border-radius: 50px; margin-bottom: 40px;
    position: relative; left: 50%; transform: translateX(-50%);
}
.section-title-box h2 {
    margin: 0; font-size: 1.8rem; color: white; border-bottom: none; padding-bottom: 0;
}

.avantages-grid-4col {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.avantage-item {
    background-color: rgb(220,255,220); padding: 25px; border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); text-align: center;
}
.avantage-item img { height: 150px; width: auto; margin-bottom: 15px; }
.avantage-item h3 { color: #2a8a44; font-size: 1.3rem; margin-top: 0; margin-bottom: 10px; }
.avantage-item p { font-size: 0.95rem; line-height: 1.6; color: #555; margin-bottom: 10px; text-align: left; }
.avantage-item p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
    .avantages-grid-4col { grid-template-columns: 1fr 1fr; gap: 15px; }
}

.contact-status-message {
    padding: 15px 20px; margin-bottom: 20px; border-radius: 6px; font-weight: bold; border: 1px solid transparent;
}
.contact-status-message.error {
    background-color: #ffebee; border-color: #e57373; color: #c62828;
}

/* =========================================================
   SECTION : GESTION PLAN CARBONE
   ========================================================= */
.page-header { 
    background: white; padding: 30px 0; border-bottom: 1px solid #eee; margin-bottom: 30px; text-align: center;
}
.page-header h1 { color: #ffffff !important; margin: 0; font-size: 2rem; }
.page-header p { color: rgba(255, 255, 255, 0.9) !important; margin-top: 10px; font-size: 1.1rem; }

.selector-card { 
    background: white; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px; display: flex; gap: 20px; align-items: flex-end; border: 1px solid #eee;
}
.selector-card .form-group label { color: #2a8a44; }

.plans-tabs { 
    display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 5px; 
}
.plan-tab { 
    background: #f4f4f4; padding: 12px 25px; border-radius: 5px; text-decoration: none;
    color: #555; font-weight: bold; border: 1px solid #ddd; transition: 0.3s;
    white-space: nowrap; display: flex; align-items: center; gap: 8px;
}
.plan-tab:hover { background: #e9f5eb; color: #2a8a44; border-color: #2a8a44; }
.plan-tab.active { background: #2a8a44; color: white; border-color: #2a8a44; }
.plan-tab-new { border-style: dashed; color: #2a8a44; background: white; }

.plan-content { 
    background: white; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden;
    border-top: 5px solid #2a8a44;
}
.plan-header-info { 
    padding: 20px; background: #fcfcfc; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center; 
}

.kpi-box { text-align: center; }
.kpi-val { font-size: 1.8rem; font-weight: bold; color: #2a8a44; }
.kpi-label { font-size: 0.8rem; color: #7f8c8d; text-transform: uppercase; letter-spacing: 1px; }

.table-wrapper { overflow-x: auto; }
.leviers-table { width: 100%; border-collapse: collapse; }
.leviers-table th { background: #2a8a44; color: white; padding: 15px; text-align: left; font-size: 0.95rem; }
.leviers-table td { padding: 15px; border-bottom: 1px solid #eee; vertical-align: top; color: #333; }
.leviers-table tr:hover { background: #f9f9f9; }

.axe-badge { 
    display: inline-block; padding: 4px 10px; background: rgba(42, 138, 68, 0.1);
    color: #2a8a44; border-radius: 4px; font-size: 0.8rem; font-weight: bold; 
}
.val-init { color: #e67e22; font-weight: bold; }
.val-cible { color: #2a8a44; font-weight: bold; }
.arrow { color: #ccc; margin: 0 5px; }

.add-row { background: #fdfefe; border-top: 2px solid #eee; }
.add-row input, .add-row select, .add-row textarea { 
    width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.9rem;
    box-sizing: border-box; font-family: inherit; 
}
.add-row input:focus, .add-row select:focus { outline: none; border-color: #2a8a44; }
.btn-add { 
    background: #2a8a44; color: white; border: none; padding: 10px; border-radius: 4px;
    cursor: pointer; font-weight: bold; width: 100%; transition: background 0.3s;
}
.btn-add:hover { background: #226d36; }

.alert { padding: 15px; margin-bottom: 20px; border-radius: 5px; text-align: center; font-weight: bold; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* =========================================
   VARIABLES & GLOBALS (Modern UI)
   ========================================= */
:root {
    --primary-color: #2c6e49;
    --secondary-color: #4c956c;
    --accent-color: #d4eac8;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --progress-bg: #e5e7eb;
    --badge-company-bg: #e0f2fe;
    --badge-company-text: #0369a1;
    --badge-co2-bg: #ecfdf5;
    --badge-co2-text: #047857;
    --badge-co2-border: #a7f3d0;
}

/* =========================================
   CARTES PROJET & TRACKING
   ========================================= */
.project-card {
    background: var(--card-bg); border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color); margin-bottom: 2rem; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

.project-header {
    padding: 1.5rem; display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 1rem; border-bottom: 1px solid var(--border-color);
}
.project-title { display: flex; align-items: center; gap: 1rem; }
.icon-circle {
    background-color: var(--accent-color); color: var(--primary-color); width: 50px; height: 50px;
    border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.project-info h3 { margin: 0; font-size: 1.25rem; color: var(--text-dark); font-weight: 700; }
.project-info .meta { color: var(--text-light); font-size: 0.9rem; margin-top: 0.25rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.project-badges { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.badge {
    padding: 0.35rem 0.75rem; border-radius: 9999px; font-size: 0.8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem;
}
.badge-company { background-color: var(--badge-company-bg); color: var(--badge-company-text); }
.badge-co2 { background-color: var(--badge-co2-bg); color: var(--badge-co2-text); border: 1px solid var(--badge-co2-border); }

.progress-section { padding: 1.5rem 2rem; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 0.75rem; font-weight: 600; color: var(--text-dark); }
.progress-track { background-color: var(--progress-bg); height: 12px; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--secondary-color), var(--primary-color)); border-radius: 99px; transition: width 1s ease-in-out; }

.details-trigger {
    width: 100%; background: #fafafa; border: none; border-top: 1px solid var(--border-color);
    padding: 1rem; cursor: pointer; font-weight: 500; color: var(--text-light);
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: all 0.2s;
}
.details-trigger:hover { background: #f3f4f6; color: var(--primary-color); }
.details-trigger .fa-chevron-down { transition: transform 0.3s; }
.toggle-checkbox { display: none; }
.details-content { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out; background-color: var(--card-bg); }
.toggle-checkbox:checked + .details-content { max-height: 2000px; border-top: 1px solid var(--border-color); }
.toggle-checkbox:checked ~ label .fa-chevron-down { transform: rotate(180deg); }

.levier-item {
    padding: 1rem 2rem; border-bottom: 1px solid #f3f4f6; display: grid; grid-template-columns: 1fr 200px;
    gap: 1.5rem; align-items: center; transition: background 0.2s;
}
.levier-item:last-child { border-bottom: none; }
.levier-item:hover { background-color: #f9fafb; }
.levier-link {
    text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 1rem;
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; transition: color 0.2s;
}
.levier-link:hover { color: var(--primary-color); }
.levier-desc { font-size: 0.85rem; color: var(--text-light); }
.mini-progress-container { display: flex; flex-direction: column; gap: 0.4rem; }
.mini-progress-track { background: var(--progress-bg); height: 6px; border-radius: 3px; overflow: hidden; width: 100%; }
.mini-progress-fill { background: #3b82f6; height: 100%; border-radius: 3px; }
.mini-stats { font-size: 0.75rem; color: var(--text-light); text-align: right; display: flex; justify-content: space-between; }

.empty-state { text-align: center; padding: 4rem 1rem; background: white; border-radius: 16px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); }
.empty-icon { font-size: 3rem; color: #d1d5db; margin-bottom: 1rem; }

@media (max-width: 768px) {
    .levier-item { grid-template-columns: 1fr; gap: 1rem; }
    .project-badges { align-items: flex-start; text-align: left; width: 100%; margin-top: 1rem; }
    .project-header { flex-direction: column; }
}

/* =========================================
   PAGE RAPPORT (Modern)
   ========================================= */
.btn-back {
    display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-light);
    text-decoration: none; font-weight: 600; margin-bottom: 1.5rem; transition: color 0.2s;
}
.btn-back:hover { color: var(--primary-color); }
.report-card {
    background: var(--card-bg); border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color); padding: 2rem; margin-bottom: 3rem; border-left: 6px solid var(--primary-color);
}
.report-title { margin: 0 0 0.5rem 0; font-size: 1.5rem; color: var(--text-dark); }
.report-meta {
    display: flex; flex-wrap: wrap; gap: 1.5rem; color: var(--text-light); font-size: 0.9rem;
    margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color);
}
.report-meta span { display: flex; align-items: center; gap: 0.4rem; }
.tech-comment {
    background-color: #f8fafc; padding: 1rem; border-radius: 8px; font-style: italic;
    color: var(--text-light); margin-bottom: 2rem; border: 1px dashed var(--border-color);
}
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; }
.kpi-box { text-align: center; padding: 1rem; background: #f9fafb; border-radius: 12px; }
.kpi-label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.5rem; font-weight: 600; }
.kpi-value { font-size: 1.25rem; font-weight: 700; color: var(--text-dark); }
.kpi-value.target { color: var(--primary-color); }

.section-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem;
    margin-top: 3rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem;
}
.section-title { font-size: 1.25rem; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 0.5rem; }
.badge-count { background: var(--text-light); color: white; padding: 0.15rem 0.6rem; border-radius: 10px; font-size: 0.8rem; }

.task-card {
    background: var(--card-bg); border-radius: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color); margin-bottom: 1rem; display: flex; overflow: hidden; transition: transform 0.2s;
}
.task-card:hover { transform: translateX(5px); border-color: #d1d5db; }
.date-box {
    width: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background-color: #f3f4f6; color: var(--text-light); border-right: 1px solid var(--border-color);
    flex-shrink: 0; padding: 0.5rem;
}
.date-box.done { background-color: #ecfdf5; color: #047857; }
.date-box.late { background-color: #fef2f2; color: #b91c1c; }
.date-box.todo { background-color: #f3f4f6; color: var(--text-light); }
.date-day { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.date-month { font-size: 0.75rem; text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.date-year { font-size: 0.7rem; opacity: 0.8; }

.task-body { padding: 1rem 1.5rem; flex-grow: 1; }
.task-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.task-status-badge { font-size: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 6px; font-weight: 600; }
.status-done { background: #d1fae5; color: #065f46; }
.status-todo { background: #fffbeb; color: #92400e; }
.status-late { background: #fee2e2; color: #991b1b; }
.task-meta-date { font-size: 0.85rem; color: var(--text-light); }
.task-comment {
    background: #f9fafb; padding: 0.75rem; border-radius: 6px; font-size: 0.9rem;
    color: var(--text-dark); margin-top: 0.75rem; border-left: 3px solid #3b82f6;
}
.proof-container { margin-top: 1rem; }
.btn-proof {
    display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; text-decoration: none;
    color: #2563eb; background: #eff6ff; padding: 0.5rem 1rem; border-radius: 8px; transition: background 0.2s;
}
.btn-proof:hover { background: #dbeafe; }
.proof-preview { display: block; margin-top: 0.75rem; max-width: 100%; max-height: 200px; border-radius: 8px; border: 1px solid var(--border-color); }

@media (max-width: 600px) {
    .task-card { flex-direction: column; }
    .date-box { width: 100%; flex-direction: row; gap: 0.5rem; height: 40px; border-right: none; border-bottom: 1px solid var(--border-color); }
    .date-day, .date-month, .date-year { font-size: 0.9rem; margin: 0; }
    .report-meta { flex-direction: column; gap: 0.5rem; }
}

/* =========================================
   FORMULAIRES GÉNÉRIQUES
   ========================================= */
.card {
    background: var(--card-bg); border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color); padding: 2rem; margin-bottom: 2rem;
}
.card-header-title {
    margin-top: 0; margin-bottom: 1.5rem; color: var(--text-dark); font-size: 1.25rem; font-weight: 700;
    padding-bottom: 1rem; border-bottom: 1px solid var(--border-color);
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { display: flex; flex-direction: column; }
.form-label { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.5rem; }
.form-input {
    padding: 0.75rem 1rem; border: 1px solid #d1d5db; border-radius: 8px; font-size: 1rem; color: var(--text-dark);
    background-color: #ffffff; transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit;
}
.form-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--accent-color); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem;
    border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-size: 1rem; text-decoration: none;
}
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--secondary-color); transform: translateY(-1px); }
.btn-corporate { background-color: var(--primary-color); color: white; }
.btn-corporate:hover { background-color: var(--secondary-color); }

/* =========================================
   TABLEAUX MODERNES
   ========================================= */
.styled-table { width: 100%; border-collapse: collapse; min-width: 600px; text-align: left; }
.styled-table th {
    background-color: #f8fafc; color: var(--text-light); font-weight: 600; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.05em; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color);
}
.styled-table td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); color: var(--text-dark); font-size: 0.95rem; }
.styled-table tr:last-child td { border-bottom: none; }
.styled-table tr:hover td { background-color: #f9fafb; }
.code-badge { font-family: monospace; background: #f1f5f9; padding: 0.2rem 0.5rem; border-radius: 4px; color: var(--text-dark); font-size: 0.9em; }
.action-link { color: var(--text-light); margin: 0 0.5rem; transition: color 0.2s; font-size: 1.1rem; }
.action-link:hover { color: var(--primary-color); }
.action-link.delete:hover { color: #ef4444; }

/* =========================================
   NOUVEAU PROCESSUS (Image + Texte)
   ========================================= */
section#processus { background-color: #fcfcfc; padding: 60px 20px; }
.processus-layout {
    display: flex; align-items: flex-start; gap: 50px; max-width: 1100px; margin: 0 auto;
}
.processus-image-col { flex: 0 0 35%; display: flex; justify-content: center; }
.processus-image-col img { width: 100%; height: auto; max-width: 400px; display: block; }
.processus-text-col { flex: 1; display: flex; flex-direction: column; gap: 40px; }
.step-header-new { display: flex; align-items: center; margin-bottom: 15px; }
.step-number-new {
    display: flex; justify-content: center; align-items: center; flex-shrink: 0; width: 40px; height: 40px;
    background-color: var(--primary-color); color: white; border-radius: 50%; font-weight: bold; font-size: 1.2rem; margin-right: 15px;
}
.step-header-new h3 { margin: 0; font-size: 1.4rem; color: var(--primary-color); }
.processus-step-item p {
    font-size: 1rem; line-height: 1.6; color: #555; margin-bottom: 15px; padding-left: 55px;
}

/* =================================
   BOUTON PWA
   ================================= */
.pwa-install-btn {
    position: fixed; bottom: 25px; right: 25px; background: white; color: #2a8a44;
    border: 1px solid #2a8a44; padding: 10px 20px; border-radius: 50px; font-size: 0.9rem;
    font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,0.1); cursor: pointer; z-index: 9999;
    display: none; align-items: center; gap: 8px; transition: all 0.3s ease; font-family: inherit;
}
.pwa-install-btn:hover {
    background: #2a8a44; color: white; box-shadow: 0 6px 16px rgba(42, 138, 68, 0.25); transform: translateY(-2px);
}
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.pwa-install-btn.visible { display: flex; animation: slideUpFade 0.5s ease forwards; }
/* =========================================
   STYLE TARTEAUCITRON (COOKIES) - CORÉ
   ========================================= */

/* Conteneur principal : passe au-dessus de tout */
#tarteaucitronRoot {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    z-index: 2147483647 !important; 
    position: fixed !important; 
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; /* Laisse passer les clics sauf sur la popup */
}

/* Rétablit les clics sur les éléments interactifs de la popup */
#tarteaucitronRoot * { 
    pointer-events: auto; 
}

/* Fenêtre centrale (Bandeau et Panneau) */
#tarteaucitronRoot #tarteaucitronAlertBig, 
#tarteaucitronRoot #tarteaucitronPersonalization { 
    background-color: #ffffff !important; 
    color: #333333 !important; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
    border-radius: 12px !important;
    border: none !important;
    padding: 25px !important;
}

/* Header du panneau (Barre verte) */
#tarteaucitronRoot #tarteaucitronBack {
    background-color: #2a8a44 !important; /* Vert CORÉ */
    color: #ffffff !important;
    border-radius: 12px 12px 0 0 !important;
    margin: -25px -25px 20px -25px !important;
    width: calc(100% + 50px) !important;
}

/* Textes */
#tarteaucitronRoot #tarteaucitronDisclaimerAlert,
#tarteaucitronRoot p, 
#tarteaucitronRoot b,
#tarteaucitronRoot span { 
    color: #333333 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

/* Boutons VERTS (Accepter / Enregistrer) */
#tarteaucitronRoot .tarteaucitronCTAButton,
#tarteaucitronRoot .tarteaucitronAllow { 
    background-color: #2a8a44 !important; 
    color: #fff !important; 
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: background 0.3s ease;
}
#tarteaucitronRoot .tarteaucitronCTAButton:hover,
#tarteaucitronRoot .tarteaucitronAllow:hover {
    background-color: #216e36 !important;
}

/* Boutons ROUGES (Refuser) */
#tarteaucitronRoot .tarteaucitronDeny { 
    background-color: #e74c3c !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

/* Lien "Personnaliser" */
#tarteaucitronRoot .tarteaucitronPersonalize {
    color: #555 !important;
    text-decoration: underline !important;
    font-size: 0.9rem !important;
    margin-left: 10px !important;
}
/* ==================================
   SECTION CIBLES (2 Colonnes avec fond)
   ================================== */

.section-cibles {
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.section-cibles h2 {
    color: rgb(68, 133, 84); /* Votre vert charte */
    margin-bottom: 30px;
    font-size: 2em;
    text-transform: uppercase;
}

/* Conteneur Flex pour les deux colonnes */
.cibles-container {
    display: flex;
    justify-content: space-between;
    gap: 30px; /* Espace entre les deux cartes */
}

/* La carte individuelle (qui est aussi un lien <a>) */
.cible-card {
    flex: 1; /* Chaque carte prend 50% de l'espace */
    position: relative;
    display: block;
    height: 400px; /* Hauteur fixe pour uniformiser */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effet au survol */
.cible-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Filtre sombre pour rendre le texte lisible sur l'image */
.cible-overlay {
    background-color: rgba(0, 0, 0, 0.6); /* Noir à 60% d'opacité */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement */
    align-items: center;     /* Centre horizontalement */
    padding: 30px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.cible-card:hover .cible-overlay {
    background-color: rgba(0, 0, 0, 0.5); /* S'éclaircit légèrement au survol */
}

/* Typographie interne */
.cible-card h3 {
    color: #ffffff;
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid #2a8a44; /* Petit souligné vert */
    padding-bottom: 10px;
}

.cible-card p {
    color: #f0f0f0;
    font-size: 1.1em;
    line-height: 1.5;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Faux bouton "Découvrir" */
.cible-btn {
    background-color: #ffffff;
    color: rgb(68, 133, 84);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cible-card:hover .cible-btn {
    background-color: #2a8a44;
    color: #ffffff;
}

/* --- VERSION MOBILE --- */
@media (max-width: 768px) {
    .cibles-container {
        flex-direction: column; /* Les colonnes passent l'une sous l'autre */
    }
    
    .cible-card {
        width: 100%;
        height: auto;     /* Hauteur auto pour s'adapter au texte */
        min-height: 300px;
        margin-bottom: 20px;
    }
}

/* ==================================
   SECTION NARRATIVE (Style "Cartes Empilées")
   ================================== */

.section-narrative-container {
    max-width: 1100px;
    margin: 50px auto; /* Centré horizontalement + marges haut/bas */
    padding: 0 20px;   /* Marge interne pour ne pas coller aux bords sur mobile */
    display: flex;
    flex-direction: column;
    gap: 40px; /* Espace entre chaque carte */
}

/* La carte individuelle */
.narrative-card {
    position: relative;
    width: 100%;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    border-radius: 20px; /* Coins arrondis */
    overflow: hidden;    /* Empêche l'image de dépasser des coins arrondis */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Belle ombre portée */
    transition: transform 0.3s ease;
}

/* Effet léger au survol (optionnel) */
.narrative-card:hover {
    transform: translateY(-5px);
}

/* L'overlay sombre à l'intérieur de la carte */
.narrative-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 100%); /* Dégradé noir pour lisibilité */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px; /* Espace interne confortable */
    box-sizing: border-box;
    color: #ffffff;
}

/* Titres */
.narrative-card-overlay h3 {
    color: #ffffff;
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 25px;
    text-transform: uppercase;
    border-left: 5px solid #2a8a44; /* Barre verte verticale à gauche du titre */
    padding-left: 20px;
    line-height: 1.2;
}

/* Paragraphes */
.narrative-card-overlay p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #f0f0f0;
    max-width: 800px; /* Limite la largeur du texte pour la lecture */
}

/* Texte mis en avant (Question) */
.highlight-text {
    font-weight: bold;
    color: #2a8a44 !important; /* Vert CORÉ */
    font-size: 1.3em !important;
    font-style: italic;
    margin-top: 15px;
}

/* Boîte de conclusion finale */
.final-statement-box {
    background-color: rgba(255, 255, 255, 0.95);
    color: #2a8a44;
    padding: 25px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.3em;
    line-height: 1.5;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: center; /* Centrer ce texte spécifique */
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .section-narrative-container {
        padding: 0 15px;
        margin: 30px auto;
    }

    .narrative-card-overlay {
        padding: 30px 25px; /* Moins de padding sur mobile */
    }

    .narrative-card-overlay h3 {
        font-size: 1.5em;
    }

    .narrative-card-overlay p {
        font-size: 1.1em;
        text-align: left;
    }
    
    .final-statement-box {
        font-size: 1.1em;
        padding: 20px;
    }
}
/* ==============================================
   CORRECTIF MOBILE SPÉCIFIQUE (Page Entreprise)
   ============================================== */
@media (max-width: 768px) {

    /* 1. Ajustement du conteneur principal */
    .section-narrative-container {
        padding: 0 15px;      /* Marge sur les côtés de l'écran */
        margin: 20px auto;
        box-sizing: border-box;
    }

    /* 2. La carte s'adapte au contenu (plus de hauteur fixe) */
    .narrative-card {
        min-height: unset !important; /* Annule la hauteur minimale du PC */
        height: auto !important;      /* La hauteur devient automatique */
        margin-bottom: 25px;          /* Espace entre les cartes */
    }

    /* 3. L'overlay devient 'relatif' pour pousser le bas de la carte */
    .narrative-card-overlay {
        position: relative !important; /* Le texte prend sa place physique */
        height: auto !important;       /* S'adapte au texte */
        padding: 30px 20px !important; /* Marges internes réduites pour gagner de la place */
        border-radius: 20px;           /* Garde les coins ronds */
    }

    /* 4. Réduction de la taille des polices pour le mobile */
    .narrative-card-overlay h3 {
        font-size: 1.4rem !important; /* Titre plus petit */
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .narrative-card-overlay p {
        font-size: 1rem !important;   /* Texte standard lisible */
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    /* 5. Ajustement de la phrase verte en bas */
    .highlight-text {
        font-size: 1.1rem !important;
        margin-top: 10px;
    }

    /* 6. Ajustement de l'encadré blanc final */
    .final-statement-box {
        padding: 15px;
        font-size: 1rem;
    }
}