/* --- Reset & Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Arial", sans-serif;
    background-color: #fff;
    color: #333;
}

/* Variables Couleurs EDF */
:root {
    --edf-blue: #001A70;     /* Bleu foncé logo */
    --edf-orange: #FE5800;   /* Orange logo */
    --link-blue: #005BBB;    /* Bleu liens/icônes */
    --bg-gray: #F2F2F2;      /* Gris fond bouton */
    --border-color: #e5e5e5;
}

/* --- Layout Utilitaires --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Header Global Style --- */
.site-header {
    background-color: #fff;
    width: 100%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
}

/* --- Top Bar (Ligne du haut) --- */
.header-top {
    padding: 12px 0;
}

.top-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo Styles */
.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.brand-name {
    font-weight: 900;
    font-size: 24px;
    color: var(--edf-blue);
    letter-spacing: -1px;
}

.brand-separator {
    width: 1px;
    height: 24px;
    background-color: #ccc;
    margin: 0 12px;
}

.brand-region {
    color: var(--edf-blue);
    font-size: 18px;
    font-weight: 400;
}

/* Bouton Particulier */
.segment-btn {
    background-color: var(--bg-gray);
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.segment-btn:hover {
    background-color: #e8e8e8;
}

/* Liens Droite */
.header-right-group {
    display: flex;
    align-items: center;
}

.desktop-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.top-link {
    font-size: 13px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 5px;
}

.client-area-link {
    font-weight: 500;
}

.client-area-link .user-icon {
    margin-right: 2px;
}

/* --- Navigation Bar (Ligne du bas - Desktop) --- */
.header-nav {
    border-top: 1px solid var(--border-color);
    background: #fff;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list li a {
    display: block;
    padding: 15px 0;
    font-size: 14px;
    color: #000;
    position: relative;
    font-weight: 400;
}

.nav-list li a .chevron {
    font-size: 10px;
    margin-left: 5px;
    color: #666;
}

.nav-list li a:hover {
    color: var(--link-blue);
    box-shadow: inset 0 -3px 0 var(--link-blue); 
}

/* --- BANNER STYLE (Nouveau) --- */
.hero-banner {
    /* REMPLACE CECI PAR TON IMAGE */
    background-image: url('img/edf.jpg'); 
    
    /* Couleur de fond de secours si l'image ne charge pas */
    background-color: #333; 
    
    background-size: cover; 
    background-position: center center;
    
    height: 350px; 
    width: 100%;
    
    display: flex;
    align-items: flex-end; /* Pousse le texte en bas */
    padding-bottom: 40px; 
    
    position: relative;
}

/* Voile noir dégradé pour lisibilité */
.hero-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

.banner-title {
    color: #fff;
    font-size: 38px;
    font-weight: 400; 
    z-index: 2; 
    position: relative;
}

/* --- Elements Mobile (Cachés par défaut) --- */
.mobile-menu-btn,
.mobile-user-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* --- RESPONSIVE : Mobile / Tablette (< 992px) --- */
@media screen and (max-width: 992px) {
    
    /* 1. Basculer l'affichage Desktop/Mobile */
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }

    /* 2. Ajustement Hauteur Header */
    .header-top {
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color); 
    }

    /* 3. Agencement Flex Mobile */
    .top-flex {
        justify-content: space-between; 
    }

    /* 4. Gestion du bloc Logo (après le burger) */
    .header-left-group {
        border-left: 1px solid #ddd; /* Ligne grise verticale */
        padding-left: 15px;
        margin-left: 0;
        margin-right: auto; /* Pousse le user à droite */
        gap: 0; /* Pas d'espace supplémentaire */
    }

    /* 5. Ajustements tailles polices mobile */
    .brand-name { font-size: 22px; }
    .brand-region { font-size: 16px; }
    
    .brand-separator {
        height: 20px;
        margin: 0 8px;
    }

    /* 6. Ajustement Bannière Mobile */
    .hero-banner {
        height: 220px; /* Moins haute */
        padding-bottom: 20px;
    }
    
    .banner-title {
        font-size: 26px; /* Titre plus petit */
    }

    /* 7. Positionnement Burger */
    .mobile-menu-btn {
        display: flex;
        padding-right: 15px;
    }




















































    
}


/* --- Section Contenu Principal --- */
.content-section {
    padding: 50px 0;
    background-color: #fff;
}

/* Conteneur de texte plus étroit pour la lecture (comme sur le site officiel) */
.text-container {
    max-width: 900px; 
}

.intro-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

/* --- Style du Bouton --- */
.action-block {
    margin: 30px 0;
    text-align: center; /* Centre le bouton */
}

.action-block p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #001A70;
}

.edf-btn {
    display: inline-block;
    background-color: #005BBB; /* Bleu EDF */
    color: #fff;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s;
}

.edf-btn:hover {
    background-color: #004494; /* Bleu plus fonce au survol */
}

/* --- Image Chèque --- */
.cheque-image-wrapper {
    text-align: center;
    margin: 40px 0;
}

.cheque-img {
    max-width: 300px; /* Ajuste la taille de l'image logo */
    height: auto;
}

/* --- Encadré Vert Info (Alert Box) --- */
.info-alert-box {
    background-color: #EBF6E8; /* Fond vert très clair */
    border-left: 5px solid #EBF6E8; /* Optionnel, purement esthétique */
    padding: 20px;
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.alert-icon-col {
    flex-shrink: 0;
    padding-top: 5px;
}

.alert-content-col {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.alert-title {
    color: #005BBB; /* Titre en bleu */
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.alert-content-col p {
    margin-bottom: 10px;
}

.alert-highlight strong {
    color: #005BBB; /* "Attention" en bleu */
}

/* Responsive pour la section contenu */
@media screen and (max-width: 768px) {
    .info-alert-box {
        flex-direction: column; /* Icone au dessus du texte sur mobile */
        gap: 10px;
    }
    
    .text-container {
        padding: 0 20px;
    }
}




/* --- Section Vidéo --- */
.video-section {
    padding: 40px 0 60px 0;
    background-color: #fff;
    text-align: center; /* Centre tout le texte */
}

.section-header {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}

/* Le petit trait orange sous le titre */
.orange-divider {
    width: 50px;
    height: 4px;
    background-color: #FE5800; /* Orange EDF */
    border-radius: 2px;
}

.section-desc {
    max-width: 800px;
    margin: 0 auto 40px auto; /* Centré horizontalement + marge bas */
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

/* --- Style du bloc Vidéo --- */
.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* Important pour positionner le bouton play */
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    /* Ombre légère pour le relief */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

.video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    /* Couleur de fond bleue temporaire si l'image ne charge pas */
    background-color: #004494; 
}

/* Bouton Play (Rond blanc avec triangle bleu) */
.play-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #fff;
    border: none;
    border-radius: 50%; /* Cercle parfait */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.play-btn:hover {
    transform: scale(1.1); /* Grossit légèrement au survol */
}

/* Petite astuce : décaler un peu l'icône triangle pour qu'elle paraisse centrée visuellement */
.play-btn svg {
    margin-left: 4px; 
}

/* Responsive */
@media screen and (max-width: 768px) {
    .play-btn {
        width: 45px;
        height: 45px;
        bottom: 15px;
        left: 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
}






/* --- Section FAQ --- */
.faq-section {
    padding: 50px 0;
    background-color: #fff;
}

.faq-container {
    max-width: 1000px; /* Largeur confortable pour la lecture */
    margin: 0 auto;
    border-top: 1px solid #001A70; /* Ligne bleue tout en haut */
}

.faq-item {
    border-bottom: 1px solid #001A70; /* Ligne de séparation bleue */
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    font-size: 16px;
    font-weight: 600; /* Texte en gras comme sur l'image */
    color: #001A70; /* Bleu foncé EDF */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s;
    font-family: "Arial", sans-serif;
}

.faq-question:hover {
    color: #005BBB; /* Éclaircit légèrement au survol */
}

.faq-icon svg {
    transition: transform 0.3s ease;
}

/* La réponse (cachée par défaut) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0; /* Pas de padding quand fermé */
}

.faq-answer p {
    padding-bottom: 20px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

/* --- Classe active pour l'ouverture (gérée par JS) --- */
.faq-item.active .faq-answer {
    max-height: 200px; /* Hauteur suffisante pour afficher le texte */
    transition: max-height 0.3s ease-in;
}

.faq-item.active .faq-icon svg {
    transform: rotate(180deg); /* La flèche tourne */
}






/* --- Footer Style --- */
.site-footer {
    background-color: #fff;
    padding: 30px 0 50px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo Footer */
.footer-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-bottom: 15px; /* Espace sous le logo */
}

.footer-brand {
    font-size: 24px;
    color: #001A70; /* Bleu EDF */
}

/* Slogan */
.footer-tagline {
    font-family: "Arial", sans-serif;
    color: #777; /* Gris moyen */
    font-style: italic;
    font-size: 15px; /* Taille ajustée comme l'image */
    margin: 0 0 25px 0;
    font-weight: 400;
}

/* --- Liens du Footer (Le style Responsive Nuage) --- */
.footer-links {
    display: flex;
    flex-wrap: wrap; /* C'est ÇA qui fait le rendu "paragraphe" */
    justify-content: center; /* Centre le bloc de liens */
    padding: 0 10px; /* Petite marge sur les côtés en mobile */
    list-style: none;
    line-height: 1.8; /* Espace entre les lignes quand ça wrap */
}

.footer-links li {
    font-size: 13px;
    color: #666;
    display: inline-flex; /* Garde le lien et son tiret ensemble */
    align-items: center;
    white-space: nowrap; /* Empêche de couper un mot (ex: Mentions légales) en deux */
}

.footer-links li a {
    color: #666;
    text-decoration: none;
}

.footer-links li a:hover {
    text-decoration: underline;
    color: #001A70;
}

/* Ajout des tirets "-" après chaque élément */
.footer-links li::after {
    content: "-";
    margin: 0 6px; /* Espace autour du tiret */
    color: #999;
}

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

/* --- Ajustements spécifiques Mobile --- */
@media screen and (max-width: 768px) {
    .site-footer {
        padding: 20px 0 40px 0;
    }

    .footer-tagline {
        font-size: 14px;
        padding: 0 20px; /* Pour éviter que le slogan touche les bords */
    }

    .footer-links {
        /* Sur mobile, on augmente un peu l'espace pour la lisibilité tactile */
        gap: 0; 
        padding: 0 15px;
    }
    
    /* Contrairement au code précédent, on NE MET PAS flex-direction: column ici.
       On laisse le flex-wrap faire le travail comme sur votre image. */
}