/* =========================================
   1. RESET & BASE (Version Compacte)
   ========================================= */
:root {
    /* Couleurs Officielles EDF */
    --edf-blue-dark: #001A70;    /* Bleu Nuit */
    --edf-blue-primary: #005BBB; /* Bleu Roi */
    --edf-blue-hover: #004494;
    --edf-orange: #FE5800;       /* Orange */
    --edf-green: #2E7D32;
    
    /* UI Compacte */
    --bg-light: #f4f4f4;
    --border-color: #dcdcdc;
    --text-main: #333;
    --radius: 4px; /* Arrondis légers (pas de gros ronds) */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', 'Arial', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 14px; /* Retour à une taille standard */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

.container {
    max-width: 1200px; /* Moins large */
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================
   2. HEADER (Fin et Précis)
   ========================================= */
.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 */
.header-left-group { display: flex; align-items: center; gap: 15px; }
.brand-logo { display: flex; align-items: center; }
.logo-img-wrapper { display: flex; align-items: center; }
.custom-logo { height: 40px; width: auto; display: block; } /* Logo plus petit */

.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 Particulier */
.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-primary); color: #fff !important;
    padding: 6px 12px; border-radius: 3px; font-weight: 600;
}
.client-area-link svg, .client-area-link path { stroke: #fff; }

/* Menu Navigation */
.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-primary); }
.nav-list li a:hover::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
    background: var(--edf-blue-primary);
}

/* =========================================
   3. HERO (Bannière Compacte)
   ========================================= */
.hero-corporate {
    background: linear-gradient(135deg, var(--edf-blue-dark) 0%, #002885 100%);
    padding: 30px 0 50px 0; /* Hauteur réduite */
    color: #fff;
}

.hero-layout { display: flex; align-items: center; }
.hero-text-col { max-width: 650px; }

.hero-tag {
    background: rgba(255,255,255,0.15); padding: 4px 8px; border-radius: 3px;
    font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 15px; display: inline-block; border-left: 3px solid var(--edf-orange);
}

.hero-heading { font-size: 32px; font-weight: 700; margin-bottom: 15px; line-height: 1.2; }
.text-orange { color: var(--edf-orange); }

.hero-desc { font-size: 16px; margin-bottom: 20px; color: #eee; }

.hero-features { display: flex; gap: 20px; font-size: 13px; }
.feature-item { display: flex; align-items: center; gap: 8px; }
.feature-icon { color: var(--edf-orange); font-weight: bold; }

/* =========================================
   4. CONTENU & FORMULAIRE (Classique)
   ========================================= */
.main-content {
    margin-top: -30px; /* Chevauchement léger */
    padding-bottom: 50px;
}

.breadcrumb-bar {
    padding: 10px 0; font-size: 11px; color: #666; margin-bottom: 15px;
}
.breadcrumb-current { color: var(--edf-blue-dark); font-weight: bold; }

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

/* Formulaire Box */
.simulation-box {
    background: #fff; padding: 25px; /* Moins d'espace perdu */
    border: 1px solid #ddd; border-radius: var(--radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sim-title { color: var(--edf-blue-dark); font-size: 22px; margin-bottom: 8px; font-weight: 700; }
.sim-intro { font-size: 14px; color: #555; margin-bottom: 20px; }

/* Champs Input (Plus fins) */
.form-group { margin-bottom: 15px; }
.form-group label {
    display: block; font-weight: 700; margin-bottom: 5px;
    font-size: 13px; color: #333;
}
.form-group input {
    width: 100%; padding: 10px; /* Padding réduit */
    border: 1px solid #ccc; border-radius: 3px;
    font-size: 14px; background: #fff;
}
.form-group input:focus { border-color: var(--edf-blue-primary); outline: none; }

/* Bouton (Plus compact) */
.btn-edf-official {
    width: 100%; padding: 12px;
    background-color: var(--edf-blue-primary);
    color: #fff; font-size: 15px; font-weight: 700;
    border-radius: 3px; transition: background 0.2s;
}
.btn-edf-official:hover { background-color: var(--edf-blue-hover); }

.secure-note {
    margin-top: 15px; font-size: 11px; color: var(--edf-green);
    display: flex; align-items: center; justify-content: center; gap: 5px; font-weight: 600;
}

/* Sidebar Droite */
.info-card { background: #fff; border: 1px solid #ddd; border-radius: var(--radius); }
.card-header-blue {
    background: var(--edf-blue-dark); color: #fff; padding: 10px 15px;
    font-weight: 700; font-size: 13px;
}
.card-body { padding: 15px; font-size: 13px; }
.info-subtitle { color: var(--edf-blue-dark); font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.separator { border: 0; border-top: 1px solid #eee; margin: 15px 0; }
.img-placeholder { height: 100px; background: #eee; margin-top: 15px; }

/* =========================================
   5. ETAPES & INFOS
   ========================================= */
.section-divider { height: 1px; background: #ddd; margin: 40px auto; max-width: 1200px; }

.process-section { padding: 30px 0; background: #fff; }
.section-head-center { text-align: center; margin-bottom: 30px; }
.section-h2 { font-size: 24px; color: var(--edf-blue-dark); margin-bottom: 10px; }
.orange-line { width: 40px; height: 3px; background: var(--edf-orange); margin: 0 auto; }

.steps-container { display: flex; justify-content: space-between; gap: 20px; }
.step-card { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }

.step-icon-circle {
    width: 50px; height: 50px; background: var(--edf-blue-primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-bottom: 15px; position: relative;
}
.step-number {
    position: absolute; top: -3px; right: -3px; background: var(--edf-orange);
    color: #fff; width: 18px; height: 18px; border-radius: 50%;
    font-size: 11px; font-weight: bold; border: 2px solid #fff; display: flex; align-items: center; justify-content: center;
}
.step-title { font-size: 16px; font-weight: 700; color: var(--edf-blue-dark); margin-bottom: 5px; }
.step-desc { font-size: 13px; color: #666; }
.step-arrow { padding-top: 15px; opacity: 0.3; width: 20px; }

/* Info Blue Grid */
.info-blue-section { background: #eef2f7; padding: 40px 0; border-top: 1px solid #ddd; }
.info-grid { display: flex; gap: 20px; }
.info-block {
    flex: 1; background: #fff; padding: 20px; border-radius: var(--radius);
    display: flex; gap: 15px; border-left: 3px solid var(--edf-blue-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.info-h4 { color: var(--edf-blue-dark); font-size: 14px; font-weight: 700; margin-bottom: 5px; text-transform: uppercase; }
.info-text p { font-size: 13px; color: #444; }

/* =========================================
   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. MOBILE (Responsive)
   ========================================= */
.mobile-menu-btn, .mobile-user-btn { display: none; background: none; border: none; padding: 5px; }
.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 Centré */
    .hero-corporate { padding: 30px 0; text-align: center; }
    .hero-layout { flex-direction: column; }
    .hero-heading { font-size: 24px; }
    .hero-features { justify-content: center; flex-direction: column; gap: 5px; }

    /* Layout Vertical */
    .main-content { margin-top: 0; padding-top: 20px; }
    .corporate-layout { flex-direction: column; gap: 20px; }
    .col-left, .col-right { width: 100%; }

    /* Formulaire Centré Mobile */
    .simulation-box { padding: 20px 15px; text-align: center; }
    .sim-title { font-size: 20px; }
    .form-group input, .form-group label { text-align: center; }

    /* Process Mobile */
    .steps-container { flex-direction: column; gap: 30px; }
    .step-arrow { display: none; }
    .step-card:not(:last-child)::after { content: "↓"; display: block; font-size: 20px; color: #ddd; margin-top: 15px; }

    /* Info Mobile */
    .info-grid { flex-direction: column; }
    .info-block { flex-direction: column; text-align: center; align-items: center; }

}