/* --- 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;
    --edf-orange: #FE5800;
    --link-blue: #005BBB;
    --bg-gray: #F2F2F2;
    --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); 
}


/* --- 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) --- */
/* CORRECTION ICI : Ajout de l'accolade ouvrante { */
@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;
        padding-left: 15px;
        margin-left: 0;
        margin-right: auto;
        gap: 0;
    }

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

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

} /* CORRECTION ICI : Ajout de l'accolade fermante } */





/* =========================================
   3. HERO SECTION (Bannière Bleue)
   ========================================= */
.hero-corporate {
    position: relative;
    background-color: #001A70;
    background: linear-gradient(135deg, #001A70 0%, #003399 100%);
    /* Padding bas ajusté pour laisser place à la vague sans créer un gouffre */
    padding: 60px 0 90px 0; 
    color: #fff;
    overflow: hidden;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hero-text-col { flex: 1; max-width: 600px; }

.hero-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-left: 3px solid #FE5800;
}

.hero-heading {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-orange { color: #FE5800; }

.hero-desc {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.hero-features { display: flex; gap: 30px; }
.feature-item { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.feature-icon {
    background-color: #FE5800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.hero-img-col { flex: 1; display: flex; justify-content: flex-end; }
.img-frame { position: relative; max-width: 450px; width: 100%; }
.hero-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 8px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* Vague SVG en bas */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px; /* Hauteur de la vague */
}
.custom-shape-divider-bottom .shape-fill {
    fill: #f4f4f4; /* DOIT correspondre à la couleur du .main-content */
}

/* =========================================
   4. MAIN CONTENT (Formulaire & Infos)
   ========================================= */
.main-content {
    background-color: #f4f4f4;
    padding-bottom: 60px;
    min-height: 60vh;
}

/* Fil d'ariane */
.breadcrumb-bar {
    background-color: #fff;
    padding: 15px 0;
    font-size: 12px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 30px;
}
.breadcrumb-item a { text-decoration: underline; color: #666; }
.breadcrumb-current { color: var(--edf-blue); font-weight: bold; }

/* Layout 2 colonnes */
.corporate-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.col-left { flex: 2; }
.col-right { flex: 1; }

/* Boite Simulation */
.simulation-box {
    background-color: #fff;
    padding: 40px;
    border: 1px solid #dcdcdc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sim-title {
    color: var(--edf-blue);
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: normal;
}
.sim-intro { font-size: 16px; margin-bottom: 30px; }

/* Formulaire */
.form-group { margin-bottom: 25px; }
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}
.input-helper {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #999;
    border-radius: 2px;
    font-size: 16px;
}
.form-group input:focus {
    border-color: var(--link-blue);
    outline: none;
    background-color: #fbfbfb;
}

.btn-edf-official {
    background-color: var(--edf-blue);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
    width: 100%;
    transition: background 0.2s;
}
.btn-edf-official:hover { background-color: var(--link-blue); }

.secure-note {
    margin-top: 20px;
    font-size: 12px;
    color: #2E7D32;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Info Card Droite */
.info-card { background-color: #fff; border: 1px solid #dcdcdc; }
.card-header-blue {
    background-color: var(--link-blue);
    color: #fff;
    padding: 15px 20px;
    font-weight: bold;
}
.card-body { padding: 20px; }
.info-subtitle {
    color: var(--edf-blue);
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: bold;
}
.separator { border: 0; border-top: 1px solid #eee; margin: 15px 0; }
.corp-img { width: 100%; height: auto; display: block; }
.img-placeholder { margin-top: 20px; background: #eee; }

/* =========================================
   5. SECTIONS PROCESS & INFO
   ========================================= */

/* Séparateur fin et discret */
.section-divider {
    height: 1px;
    background-color: #e5e5e5;
    margin: 0 auto; /* Reset des marges */
    margin-top: 40px; /* Espace raisonnable après le formulaire */
    max-width: 1400px;
}

.section-head-center { text-align: center; margin-bottom: 50px; }

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

.orange-line {
    width: 60px;
    height: 4px;
    background-color: #FE5800;
    margin: 0 auto;
}

/* Process Section */
.process-section {
    background-color: #fff;
    padding: 60px 0; /* Padding standard desktop */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.step-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--edf-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 26, 112, 0.2);
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--edf-orange);
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.step-title {
    font-size: 18px;
    color: var(--edf-blue);
    margin-bottom: 10px;
    font-weight: bold;
}
.step-desc { font-size: 14px; color: #555; max-width: 250px; }
.step-arrow { padding-top: 30px; }

/* Info Blue Section */
.info-blue-section {
    background-color: #f0f4f8;
    padding: 50px 0;
}

.info-grid { display: flex; gap: 40px; }

.info-block {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 4px;
    border-left: 5px solid var(--edf-blue);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.info-icon-wrapper {
    background-color: #eef2ff;
    padding: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-h4 {
    color: var(--edf-blue);
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: bold;
    text-transform: uppercase;
}

/* =========================================
   6. FOOTER
   ========================================= */
.site-footer {
    background-color: #fff;
    padding: 30px 0 50px 0;
    margin-top: 0; /* On colle au bloc précédent */
}

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

.footer-logo a { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.footer-brand { font-size: 24px; color: var(--edf-blue); }
.footer-tagline {
    font-family: "Arial", sans-serif;
    color: #777;
    font-style: italic;
    font-size: 15px;
    margin: 0 0 25px 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10px;
    line-height: 1.8;
}
.footer-links li {
    font-size: 13px;
    color: #666;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.footer-links li a:hover { text-decoration: underline; color: var(--edf-blue); }
.footer-links li::after { content: "-"; margin: 0 6px; color: #999; }
.footer-links li:last-child::after { content: none; }


/* =========================================
   7. MEDIA QUERIES (CORRECTION CENTRAGE MOBILE)
   ========================================= */

@media screen and (max-width: 992px) {
    
    /* --- Précédents styles conservés --- */
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    .header-top { padding: 10px 0; border-bottom: 1px solid var(--border-color); }
    .top-flex { justify-content: space-between; }
    .header-left-group { border-left: 1px solid #ddd; padding-left: 15px; margin-left: 0; margin-right: auto; gap: 0; }
    .mobile-menu-btn { display: flex; padding-right: 15px; }
    .brand-name { font-size: 20px; }
    .brand-region { font-size: 15px; }
    .brand-separator { height: 18px; margin: 0 8px; }

    /* Centrage du Hero */
    .hero-corporate { padding: 40px 0 80px 0; text-align: center; }
    .hero-layout { flex-direction: column; gap: 25px; }
    .hero-text-col { margin: 0 auto; }
    .hero-heading { font-size: 26px; margin-bottom: 15px; }
    .hero-desc { font-size: 16px; margin-bottom: 20px; }
    .hero-features { flex-direction: column; align-items: center; gap: 10px; }
    .hero-img-col { justify-content: center; margin-top: 10px; }

    /* --- CORRECTION CENTRAGE FORMULAIRE & SIDEBAR --- */
    .corporate-layout {
        flex-direction: column;
        align-items: center; /* Centre les deux colonnes dans l'écran */
        gap: 30px;
    }

    .col-left, .col-right {
        width: 100%; /* Prend toute la largeur disponible */
        max-width: 500px; /* Évite que le formulaire soit trop large sur tablette */
    }

    /* Boite Simulation */
    .simulation-box {
        padding: 25px 20px;
        text-align: center; /* Centre les titres et textes */
    }
    
    .sim-title { font-size: 22px; text-align: center; }
    .sim-intro { font-size: 14px; text-align: center; }

    /* Centrage des éléments du formulaire */
    .form-group {
        text-align: center; 
    }
    .form-group label {
        text-align: center;
        display: block;
    }
    .input-helper {
        text-align: center;
    }
    .form-group input {
        text-align: center; /* Centre le curseur et le texte (ex: 971) dans le champ */
    }

    /* Centrage de la carte "Bon à savoir" (Sidebar) */
    .info-card {
        text-align: center;
    }
    .card-header-blue {
        text-align: center;
    }
    .info-subtitle {
        text-align: center;
    }
    .card-body p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .separator {
        margin: 15px auto; /* Centre la ligne de séparation */
        width: 50%;
    }

    /* --- Reste du centrage (Etapes, Footer, etc.) --- */
    .section-divider { margin-top: 30px; }
    .section-head-center { margin-bottom: 30px; padding: 0 15px; }
    .section-h2 { font-size: 22px; text-align: center; }
    .orange-line { margin: 0 auto; }
    .process-section { padding: 30px 0; }
    .steps-container { flex-direction: column; align-items: center; gap: 40px; }
    .step-card { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
    .step-desc { margin: 0 auto; }
    .step-arrow { display: none; }
    .step-card:not(:last-child)::after {
        content: "↓";
        display: block;
        margin: 15px auto 0 auto;
        font-size: 20px;
        color: #ccc;
    }
    .info-blue-section { padding: 30px 0; }
    .info-grid { flex-direction: column; gap: 15px; }
    .info-block { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
    .site-footer { padding-top: 20px; }
    .footer-tagline { font-size: 13px; padding: 0 20px; }
    .footer-links { padding: 0 10px; gap: 2px; }
}