/* =========================================
   1. RESET & VARIABLES (DESIGN SYSTEM 2026)
   ========================================= */
:root {
    /* Couleurs officielles EDF */
    --edf-blue-dark: #001A70;    /* Bleu nuit (textes, titres) */
    --edf-blue-primary: #005BBB; /* Bleu électrique (boutons, icônes) */
    --edf-blue-hover: #004494;   /* Survol */
    --edf-orange: #FE5800;       /* Orange (accents) */
    --edf-green-bg: #EBF6E8;     /* Fond alertes vert */
    --edf-green-text: #1E6622;   /* Texte alertes */
    
    /* Neutres */
    --bg-light: #F8F8F8;
    --border-light: #E0E0E0;
    --text-main: #333333;
    --text-light: #666666;
    
    /* Dimensions */
    --container-width: 1200px;
    --header-height-mobile: 60px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Nunito', 'Arial', sans-serif; /* Utilise la font chargée dans le head */
    background-color: #fff;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* Utilitaires */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. HEADER (INTACT - NE PAS TOUCHER)
   ========================================= */
.site-header {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.header-top { padding: 8px 0; border-bottom: 1px solid #eee; }
.top-flex { display: flex; align-items: center; justify-content: space-between; }

/* Logo & Identité */
.header-left-group { display: flex; align-items: center; gap: 15px; }
.brand-logo { display: flex; align-items: center; }
.custom-logo { height: 40px; width: auto; display: block; } 

.brand-separator { width: 1px; height: 20px; background: #ccc; margin: 0 10px; }
.brand-region { color: var(--edf-blue-dark); font-size: 15px; font-weight: 700; }

/* Bouton Menu Mobile (Burger) */
.mobile-menu-btn {
    display: none;
    background: none; border: none; padding: 5px;
    color: var(--edf-blue-dark); font-size: 26px;
    cursor: pointer; align-items: center;
}

/* Bouton Segment */
.segment-btn {
    background-color: #f0f0f0; border: 1px solid #ddd;
    padding: 6px 12px; border-radius: 3px;
    font-size: 13px; color: #333;
    display: flex; align-items: center; gap: 6px;
}

/* Liens Droite */
.header-right-group { display: flex; align-items: center; gap: 15px; }
.desktop-links { display: flex; align-items: center; gap: 20px; }
.top-link { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 5px; }

.client-area-link {
    background-color: var(--edf-blue-light); color: #fff !important;
    padding: 6px 12px; border-radius: 3px; font-weight: 600;
}
.client-area-link svg, .client-area-link path { stroke: #fff; }

/* Bouton Utilisateur Mobile */
.mobile-user-btn {
    display: none;
    background: none; border: none; padding: 5px;
    color: var(--edf-blue-light); cursor: pointer;
    align-items: center; justify-content: center;
}
.mobile-user-btn svg { width: 26px; height: 26px; }

/* Nav */
.header-nav { background: #fff; border-top: 1px solid #eee; }
.nav-list { display: flex; gap: 25px; }
.nav-list li a {
    display: block; padding: 12px 0; font-size: 14px; font-weight: 700;
    color: #333; position: relative;
}
.nav-list li a:hover { color: var(--edf-blue-light); }
.nav-list li a:hover::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
    background: var(--edf-blue-light);
}
/* =========================================
   3. HERO BANNER
   ========================================= */
.hero-banner {
    /* Tu devras t'assurer que l'image existe ou mettre un lien externe */
    background: linear-gradient(rgba(0,26,112,0.4), rgba(0,26,112,0.7)), url('img/edf.jpg') no-repeat center center;
    background-size: cover;
    background-color: var(--edf-blue-dark); /* Fallback */
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align gauche */
    position: relative;
}

.banner-title {
    color: #fff;
    font-size: 42px;
    font-weight: 300; /* Style EDF "Light" */
    margin-top: 40px;
}

/* =========================================
   4. CONTENU PRINCIPAL & ALERTES
   ========================================= */
.content-section {
    padding: 60px 0;
    background-color: #fff;
}

.text-container {
    max-width: 800px; /* Plus étroit pour la lecture */
}

.intro-text {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Bouton d'action principal */
.action-block {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin: 40px 0;
    border: 1px solid #eee;
}

.action-block p {
    font-weight: 700;
    color: var(--edf-blue-dark);
    margin-bottom: 15px;
    font-size: 18px;
}

.edf-btn {
    display: inline-block;
    background-color: var(--edf-blue-primary);
    color: #fff;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 30px; /* Pill shape */
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 91, 187, 0.2);
}

.edf-btn:hover {
    background-color: var(--edf-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 91, 187, 0.3);
}

/* Alerte Info (Verte) */
.info-alert-box {
    background-color: var(--edf-green-bg);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    gap: 20px;
    margin-top: 50px;
    border-left: 6px solid #2E7D32; /* Bordure verte gauche */
}

.alert-icon-col svg {
    stroke: #2E7D32;
}

.alert-title {
    color: #2E7D32;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 800;
}

.alert-content-col {
    color: var(--text-main);
    font-size: 15px;
}

.alert-highlight {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(46, 125, 50, 0.2);
}

/* =========================================
   5. SECTION VIDÉO & FAQ
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    color: var(--edf-blue-dark);
    font-weight: 800;
    margin-bottom: 15px;
}

.orange-divider {
    width: 60px;
    height: 4px;
    background-color: var(--edf-orange);
    margin: 0 auto;
    border-radius: 2px;
}

.video-section {
    background-color: var(--bg-light);
    padding: 60px 0;
    text-align: center;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 16px;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
}

/* FAQ Accordéon */
.faq-section {
    padding: 60px 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-question {
    width: 100%;
    padding: 20px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 700;
    color: var(--edf-blue-dark);
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--edf-blue-primary);
}

.faq-icon {
    margin-left: 15px;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding-bottom: 25px;
    color: var(--text-light);
    font-size: 15px;
}

/* État actif géré par JS */
.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    color: var(--edf-blue-primary);
}

/* =========================================
   5. FOOTER (VERSION COMPACTE & FINE)
   ========================================= */
.site-footer {
    background-color: #fff;
    padding: 30px 0;      /* Réduit de 50px à 30px */
    text-align: center;
    border-top: none;
    margin-top: 0;
}

/* 1. Logo Centré (Plus petit) */
.footer-logo {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px; /* Réduit de 25px à 15px */
}

.footer-custom-logo {
    height: 40px; /* Réduit de 55px à 40px */
    width: auto;
    display: block;
}

/* 2. Slogan (Plus fin) */
.footer-tagline {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;      /* Réduit de 18px à 14px */
    font-weight: 400;
    font-style: italic;
    color: #707070;
    margin: 0 0 20px 0;   /* Réduit de 35px à 20px */
    padding: 0 20px;
}

/* 3. Liens (Plus petits) */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;             /* Espace réduit */
    max-width: 900px;
    margin: 0 auto;
    padding: 0 10px;
}

.footer-links li {
    font-size: 12px;      /* Réduit de 14px à 12px */
    color: #555;
    display: flex;
    align-items: center;
}

.footer-links li a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links li a:hover {
    color: var(--edf-orange);
    text-decoration: underline;
}

/* 4. Tirets */
.footer-links li::after {
    content: "-";
    margin-left: 8px;     /* Marges réduites */
    color: #999;
}

/* Supprime le tiret après le dernier élément */
.footer-links li:last-child::after {
    display: none;
}

.copyright {
    color: #555;
}

/* --- Responsive Mobile --- */
@media screen and (max-width: 768px) {
    .site-footer {
        padding: 20px 0;
    }
    .footer-custom-logo {
        height: 35px;
    }
    .footer-tagline {
        font-size: 13px;
        margin-bottom: 15px;
    }
    .footer-links li {
        font-size: 11px;
    }
    .footer-links li::after {
        margin-left: 5px;
    }
}
/* =========================================
   7. RESPONSIVE & MOBILE (LOGIQUE 2026)
   ========================================= */

/* Par défaut, on masque les éléments mobile sur desktop */
.mobile-only {
    display: none !important;
}

@media screen and (max-width: 992px) {
/* Bascule Affichage */
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }

    /* Header */
    .header-left-group { border-left: 1px solid #eee; padding-left: 10px; margin-left: 5px; margin-right: auto; gap: 0;}
    .mobile-menu-btn { display: block; }
    .brand-region { font-size: 13px; }
    .custom-logo { height: 35px; }


    /* Hero Mobile */
    .hero-banner {
        height: 200px;
        background-position: center bottom;
    }
    
    .banner-title {
        font-size: 28px;
        line-height: 1.2;
    }

    /* Contenu Mobile */
    .content-section {
        padding: 30px 0;
    }
    
    .intro-text {
        font-size: 16px;
    }
    
    .info-alert-box {
        flex-direction: column;
        gap: 10px;
    }
    

}