/* --- VARIABLES & RESET --- */
:root {
    --primary: #1e3a5f;       /* Bleu nuit (confiance) */
    --primary-dark: #142b46;  /* Bleu nuit foncé (hover) */
    --accent: #f5b301;        /* Jaune électrique (accent / CTA) */
    --accent-dark: #d99a00;   /* Jaune foncé (hover CTA) */
    --cta-text: #142b46;      /* Texte sur boutons jaunes */
    --text-main: #1f2933;     /* Gris très foncé (texte) */
    --text-light: #6b7785;    /* Gris texte secondaire */
    --bg-light: #f4f7fb;      /* Gris bleuté très clair */
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(16,42,67,0.06);
    --shadow-md: 0 8px 20px rgba(16,42,67,0.08);
    --shadow-lg: 0 16px 36px rgba(16,42,67,0.12);
    --radius: 12px;
    --container: 900px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fdfdfd;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* --- LAYOUT --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}
.container:has(.page-layout) {
    max-width: 1200px;
}

/* --- TYPOGRAPHIE --- */
h1, h2, h3 { color: var(--text-main); letter-spacing: -0.5px; font-weight: 700; }
h1 { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.2; }
h2 { font-size: 1.8rem; margin: 3rem 0 1.5rem; position: relative; display: inline-block; }
h2::after {
    content: ''; display: block; width: 40px; height: 4px; 
    background: var(--primary); margin-top: 8px; border-radius: 2px;
}
p { margin-bottom: 1.5rem; color: #4a5568; }
strong { color: var(--text-main); font-weight: 600; }

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #eef3f8 100%);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    margin: 40px auto;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(30,58,95, 0.1);
}
.hero p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto 30px; }

/* Hero inside 2-column layout (pages villes & nationales) */
.page-content .hero {
    text-align: left;
    padding: 34px 30px;
    margin: 0 0 30px;
    background: linear-gradient(135deg, #ffffff 0%, #e7eef8 100%);
    border: 1px solid #dde7f2;
    border-left: 5px solid var(--accent);
    box-shadow: var(--shadow-sm);
}
.page-content .hero p {
    margin: 0 0 20px;
    color: var(--text-light);
}
.page-content .hero h1 {
    font-size: 2rem;
    color: var(--primary);
}
.page-content .hero h1::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--accent);
    margin-top: 12px;
    border-radius: 2px;
}
.page-content .stats-box {
    justify-content: flex-start;
}

/* --- STATS BOX (Les badges) --- */
.stats-box {
    display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px;
}
.stat {
    background: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    display: flex; align-items: center; gap: 8px;
    font-size: 0.95rem;
}
.stat--install,
.stat--kwc,
.stat--sun,
.stat--irrad   { background: #eef3f8; color: var(--primary); border-color: #cdddee; }

/* --- BOUTONS --- */
.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--cta-text);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(245,179,1, 0.35);
    border: none; cursor: pointer; font-size: 1rem;
}
.cta-button:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245,179,1, 0.45);
}

/* --- CALCULATOR --- */
.calc-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid #eee;
    margin: 40px 0;
}
.calc-input-group { display: flex; gap: 10px; margin-top: 15px; }
.calc-input {
    flex: 1; padding: 12px 15px;
    border: 2px solid #e2e8f0; border-radius: 8px;
    font-size: 1rem; transition: border-color 0.2s;
}
.calc-input:focus { border-color: var(--primary); outline: none; }
.calc-btn {
    background: var(--text-main); color: white;
    padding: 12px 25px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
    border: none; cursor: pointer; transition: background 0.2s;
}
.calc-btn:hover { background: #1a252f; }
.calc-res {
    margin-top: 20px; padding: 15px;
    background: #eef3f8; color: #b7791f;
    border-radius: 8px; font-weight: 500; display: none;
    border-left: 4px solid #f5b301;
    line-height: 1.6;
}
.calc-cta {
    display: inline-block;
    margin-top: 15px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.calc-cta:hover { background: var(--primary-dark); }
.calc-slider-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.calc-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
}
.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.calc-slider::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}
.calc-slider-label {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
    min-width: 55px;
}
.calc-compare {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.calc-compare-col {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}
.calc-compare-sale {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.calc-compare-propre {
    background: #eef3f8;
    border: 1px solid #cdddee;
}
.calc-compare-icon { font-size: 1.3rem; }
.calc-compare-label {
    font-size: 0.78rem;
    color: var(--text-light);
    margin: 4px 0;
}
.calc-compare-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}
.calc-compare-unit {
    font-size: 0.75rem;
    color: var(--text-light);
}
.calc-gain {
    margin-top: 12px;
    padding: 12px;
    background: #eef3f8;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    font-size: 0.9rem;
    color: #142b46;
    font-weight: 500;
}
@media (max-width: 600px) {
    .calc-compare { flex-direction: column; }
}

/* --- FAQ --- */
details {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.2s;
}
details:hover { border-color: #cbd5e0; }
summary {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none; /* Cache la flèche par défaut */
    position: relative;
    padding-right: 40px;
}
summary::after {
    content: '+'; position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%); font-size: 1.2rem; color: var(--primary);
}
details[open] summary::after { content: '-'; }
details[open] summary { border-bottom: 1px solid #eee; background: #fcfcfc; }
details p { padding: 20px; margin: 0; font-size: 0.95rem; line-height: 1.7; }

/* --- BREADCRUMBS --- */
.breadcrumbs {
    padding: 20px 0; font-size: 0.9rem; color: var(--text-light);
}
.breadcrumbs a { color: var(--text-light); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--primary); }

/* --- GRID VILLES --- */
.grid-villes, .grid-depts, .list-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.card-link {
    display: block;
    background: var(--white);
    padding: 15px;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}
.card-link:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.card-meta { display: block; font-size: 0.8rem; color: var(--text-light); margin-top: 5px; }

/* --- KPI CARDS (Page Dept) --- */
.kpi-container { display: flex; gap: 20px; margin: 30px 0; }
.kpi-card {
    flex: 1; background: var(--white); padding: 25px;
    border-radius: var(--radius); text-align: center;
    box-shadow: var(--shadow-sm); border: 1px solid #eee;
}
.kpi-val { font-size: 2rem; font-weight: 800; color: var(--primary); display: block; line-height: 1; margin-bottom: 5px; }
.kpi-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); font-weight: 600; }

/* --- FOOTER --- */
footer {
    margin-top: 80px; padding: 40px 0;
    text-align: center; border-top: 1px solid #eee;
    color: var(--text-light); font-size: 0.9rem;
}
footer a { color: var(--text-light); text-decoration: underline; }

/* --- MOBILE --- */
@media (max-width: 600px) {
    h1 { font-size: 1.8rem; }
    .hero { padding: 30px 20px; }
    .kpi-container { flex-direction: column; }
    .calc-input-group { flex-direction: column; }
    .calc-btn { padding: 12px; margin-top: 10px; }
}


/* --- CORRECTIF LISTES (Accueil & Départements) --- */

/* Alignement Grid Accueil & Dept */
.grid-depts, .list-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Cartes un peu plus larges */
    gap: 15px;
    margin-top: 20px;
    padding: 0; /* Reset UL padding */
    list-style: none;
}

/* Style des liens Départements (Accueil) */
.dept-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    padding: 20px;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid #eee;
    border-radius: var(--radius); /* 12px */
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    font-weight: 600;
}
.dept-link:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Badge compteur (Accueil) */
.badge {
    background: #eef3f8;
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Style des liens Villes (Page Département) */
.list-group li a {
    display: block;
    background: var(--white);
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid #eee;
    border-radius: 8px; /* Un peu moins rond que les dept */
    border-left: 4px solid var(--primary); /* Liseré vert à gauche */
    transition: all 0.2s ease;
}
.list-group li a:hover {
    background: #eef3f8; /* Fond vert très pâle */
    transform: translateX(5px); /* Petite animation vers la droite */
    box-shadow: var(--shadow-sm);
}

/* Meta info sous le nom de ville */
.meta {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
    font-weight: 400;
}

/* Titres sections accueil */
h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    margin-top: 50px;
}

.top-cities {
    background: #eef3f8;
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    border: 1px solid #cdddee;
}
.top-cities ul { margin: 0; padding-left: 20px; color: var(--text-main); }
.top-cities li { margin-bottom: 8px; }

header img {
    max-width: 250px; /* Sur mobile on le réduit un peu */
    height: auto;
}

@media (min-width: 768px) {
    header img {
        max-width: 350px; /* Taille réelle sur PC */
    }
}

/* Gestion du bouton header */
.header-cta {
    display: none; /* Caché par défaut (Mobile First) */
}
@media (min-width: 768px) {
    .header-cta {
        display: block;
    }
}
.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef3f8;
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid #cdddee;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.header-cta-btn:hover {
    background: #1e3a5f;
    color: #fff;
    border-color: #1e3a5f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245,179,1, 0.3);
}
.header-cta-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245,179,1, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(245,179,1, 0); }
}

/* FAB mobile : bouton flottant */
.fab-mobile-call {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #1e3a5f;
    border-radius: 50%;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(245,179,1, 0.4);
    z-index: 999;
    animation: fabBounceIn 0.5s ease-out 1s both;
    transition: transform 0.3s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}
.fab-mobile-call.fab-hidden {
    animation: none;
    opacity: 0 !important;
    pointer-events: none;
    transform: scale(0.5) translateY(20px);
}
.fab-mobile-call:active {
    transform: scale(0.92);
    box-shadow: 0 2px 8px rgba(245,179,1, 0.3);
}
@keyframes fabBounceIn {
    0% { opacity: 0; transform: scale(0) translateY(20px); }
    60% { opacity: 1; transform: scale(1.1) translateY(-4px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
@media (min-width: 768px) {
    .fab-mobile-call {
        display: none; /* Caché sur desktop, le header-cta prend le relais */
    }
}

/* --- LAYOUT 2 COLONNES (Page Ville) --- */
.page-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.page-content {
    flex: 3;
    min-width: 0;
}
.page-sidebar {
    flex: 2;
    position: sticky;
    top: 20px;
}
.sidebar-form {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 25px;
    transition: box-shadow 0.3s ease;
}
.sidebar-form-pulse {
    animation: formPulse 0.8s ease-out;
}
@keyframes formPulse {
    0%   { box-shadow: var(--shadow-md); }
    30%  { box-shadow: 0 0 0 6px rgba(30,58,95, 0.35), 0 8px 16px rgba(0,0,0,0.06); }
    60%  { box-shadow: 0 0 0 3px rgba(30,58,95, 0.15), 0 8px 16px rgba(0,0,0,0.06); }
    100% { box-shadow: var(--shadow-md); }
}
.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0 0 6px;
}
.form-social-proof {
    font-size: 0.8rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin: 0 0 15px;
}
.form-privacy-note {
    font-size: 0.78rem;
    color: var(--text-light);
    background: #f8f9fa;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    line-height: 1.4;
}
.success-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}
.success-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-main);
    flex: 1;
}
.success-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .page-layout {
        flex-direction: column;
    }
    .page-sidebar {
        position: static;
        width: 100%;
    }
}

/* --- FORMULAIRE MULTI-ETAPES --- */
.form-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}
.form-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.4s ease;
}
.form-step-title {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 18px;
    font-size: 0.95rem;
}
.form-step {
    display: none;
}
.form-step.active {
    display: block;
}

/* Radio Cards */
.radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
    background: var(--white);
}
.radio-card:hover {
    border-color: var(--primary);
    background: #eef3f8;
}
.radio-card.selected {
    border-color: var(--primary);
    background: #eef3f8;
    box-shadow: 0 0 0 3px rgba(30,58,95, 0.15);
}
.radio-card input[type="radio"] {
    display: none;
}
.radio-card-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}
.radio-card-content {
    flex: 1;
}
.radio-card-title {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}
.radio-card-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* Badge Recommandé */
.badge-recommande {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Bullet points avantages */
.radio-card-bullets {
    margin: 6px 0 0;
    padding-left: 16px;
    font-size: 0.8rem;
    color: var(--text-main);
    line-height: 1.6;
}
.radio-card-bullets li {
    margin-bottom: 2px;
}

/* Warning DIY */
.form-warning {
    background: #eef3f8;
    border-left: 4px solid #e67e22;
    padding: 12px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 0.8rem;
    color: #7f6003;
    margin-top: 10px;
    display: none;
    line-height: 1.5;
}
.form-warning ul {
    margin: 6px 0 0;
    padding-left: 16px;
}
.form-warning li {
    margin-bottom: 4px;
}
.form-warning .social-proof-text {
    margin-top: 8px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Urgency text */
.form-urgency {
    font-size: 0.8rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-top: 12px;
    padding: 8px 12px;
    background: #eef3f8;
    border-radius: 6px;
    text-align: center;
}

/* Summary */
.form-summary {
    background: #eef3f8;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #cdddee;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-main);
}
.form-step.active .form-summary {
    animation: summarySlideDown 0.4s ease-out;
}
@keyframes summarySlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alerte perte de rendement */
.form-alerte-perte {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    line-height: 1.5;
    border-left: 4px solid;
}
.form-alerte-perte .alerte-perte-header {
    font-size: 0.9rem;
    font-weight: 600;
}
.form-alerte-perte .alerte-perte-desc {
    font-size: 0.75rem;
    margin-top: 4px;
    opacity: 0.85;
}
.form-alerte-perte.niveau-modere {
    background: #eef3f8;
    border-left-color: #f59e0b;
    color: #92400e;
}
.form-alerte-perte.niveau-important {
    background: #fff7ed;
    border-left-color: #f97316;
    color: #9a3412;
}
.form-alerte-perte.niveau-critique {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}
.form-step.active .form-alerte-perte {
    animation: alertePulseIn 0.5s ease-out 0.15s both;
}
@keyframes alertePulseIn {
    0% { opacity: 0; transform: translateY(-8px) scale(0.97); }
    70% { opacity: 1; transform: translateY(1px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Navigation buttons */
.form-nav {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.btn-back {
    background: var(--bg-light);
    color: var(--text-main);
    border: 1px solid #ddd;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.btn-back:hover {
    background: #eee;
}
.btn-next {
    flex: 1;
    background: var(--accent);
    color: var(--cta-text);
    border: none;
    padding: 12px 18px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(245,179,1,0.35);
}
.btn-next:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245,179,1,0.45);
}

/* Form inputs step 3 */
.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.form-input:focus {
    border-color: var(--primary);
    outline: none;
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.shake {
    animation: shake 0.3s ease;
}

/* Form reassurance */
.form-reassurance {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .radio-card { padding: 12px; }
    .radio-card-icon { font-size: 1.4rem; }
    .form-nav { flex-direction: column; }
    .btn-back, .btn-next { width: 100%; text-align: center; }
}

/* --- SOCIAL PROOF CARD --- */
.social-proof-card {
    background: linear-gradient(to right, #ffffff, #f8fafc);
    border-left: 5px solid var(--primary); /* Liseré vert */
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid #eee;
}

.social-icon {
    font-size: 2.5rem;
    background: #eef3f8;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0; /* Empêche l'icône de s'écraser sur mobile */
}

.social-content p {
    margin: 8px 0;
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.5;
}

.social-badge {
    display: inline-block;
    background: #1e3a5f;
    color: white;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.social-stars {
    color: #f5b301; /* Jaune étoile */
    font-size: 0.9rem;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .social-proof-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    .social-icon {
        margin-bottom: 10px;
    }
}
/* --- ARTICLE SEO (pages nationales) --- */
.article-seo { margin-bottom: 30px; }
.article-seo h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.article-seo h3 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; color: var(--text-main); }
.article-seo p, .article-seo li { color: #4a5568; }
.article-seo ul, .article-seo ol { margin: 0 0 1.2rem 1.2rem; }
.article-seo li { margin-bottom: .4rem; }
.article-seo table {
    width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem;
    font-size: .92rem; box-shadow: var(--shadow-sm); border-radius: 8px; overflow: hidden;
}
.article-seo th, .article-seo td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; }
.article-seo thead th { background: var(--primary); color: #fff; font-weight: 600; }
.article-seo tbody tr:nth-child(even) { background: #eef3f8; }
.article-seo .price { white-space: nowrap; font-weight: 600; color: var(--primary-dark); }
.article-seo .note {
    background: #eef3f8; border-left: 4px solid var(--accent);
    padding: 12px 16px; border-radius: 6px; margin: 1.2rem 0; font-size: .92rem;
}
.article-seo .cta-inline {
    display: inline-block; background: var(--accent); color: var(--cta-text); padding: 12px 26px;
    border-radius: 50px; font-weight: 800; text-decoration: none; margin: .5rem 0;
    box-shadow: 0 4px 14px rgba(245,179,1,0.35);
}
.article-seo .cta-inline:hover { background: var(--accent-dark); }
.article-seo .resume {
    background: linear-gradient(135deg, #ffffff 0%, #eef3f8 100%);
    border: 1px solid #cdddee; border-left: 5px solid var(--primary);
    padding: 18px 20px; border-radius: 10px; margin: 0 0 1.8rem;
}
.article-seo .resume h2 { font-size: 1.05rem; margin: 0 0 .5rem; color: var(--primary-dark); text-transform: uppercase; letter-spacing: .5px; }
.article-seo .resume p { margin: 0; font-size: .98rem; color: #3a4654; }

/* --- DONNÉES LOCALES (DVF) pages villes --- */
.local-data {
    background: linear-gradient(135deg, #ffffff 0%, #eef3f8 100%);
    border: 1px solid #cdddee; border-left: 4px solid var(--primary);
    padding: 18px 20px; border-radius: 10px; margin: 25px 0;
}
.local-data h3 { color: var(--primary-dark); font-size: 1.1rem; }
.local-data p { margin: 0 0 .4rem; }
.local-data .source { font-size: .75rem; color: #aaa; margin: 0; }

/* ============== DESIGN POLISH (Confiance Pro v2) ============== */
/* Liseré de marque en haut de page */
body { border-top: 4px solid var(--accent); }

/* Hero accueil : bandeau bleu nuit fort */
.hero--home {
    background: linear-gradient(135deg, #1e3a5f 0%, #142b46 100%);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-lg);
}
.hero--home h1 { color: #fff; font-size: 2.6rem; }
.hero--home p { color: #cdddee; max-width: 680px; }
.hero-cta-row {
    display: flex; align-items: center; justify-content: center;
    gap: 18px; flex-wrap: wrap; margin-top: 8px;
}
.hero-trust { color: #cdddee; font-size: 0.9rem; font-weight: 600; }
@media (max-width: 600px) {
    .hero--home h1 { font-size: 2rem; }
}

/* Titres de région (accueil) — sous-titres, pas des H2 */
.region-title {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 700;
    margin: 34px 0 4px;
    padding: 0;
    border: none;
    letter-spacing: -0.3px;
}

/* --- FOOTER COMMUN (bandeau bleu nuit pleine largeur) --- */
.site-footer {
    background: linear-gradient(135deg, #1e3a5f 0%, #142b46 100%);
    color: #cdddee;
    margin-top: 70px;
    padding: 46px 0 0;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
}
.site-footer__brand strong { color: #fff; font-size: 1.1rem; display: block; margin-bottom: 8px; }
.site-footer__brand p { color: #a8bdd4; font-size: 0.88rem; margin: 0; max-width: 380px; line-height: 1.55; }
.site-footer__col h4 { color: #fff; font-size: 0.95rem; margin: 0 0 12px; }
.site-footer__col a { display: block; color: #cdddee; text-decoration: none; font-size: 0.88rem; margin-bottom: 8px; transition: color 0.2s; }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 16px 0; text-align: center; font-size: 0.8rem; color: #8fa6c0;
}
@media (max-width: 700px) { .site-footer__inner { grid-template-columns: 1fr; gap: 22px; } }

/* --- PAGE CONTACT --- */
.contact-wrap { max-width: 700px; margin: 10px auto 0; }
.contact-wrap h1 { font-size: 2rem; }
.contact-wrap > p { color: var(--text-light); margin-bottom: 24px; }
textarea.form-input { font-family: inherit; }

/* --- LIENS INLINE DANS LE CONTENU (articles, blocs data) --- */
.article-seo a:not(.cta-inline),
.local-data a,
details p a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(30, 58, 95, 0.35);
    text-underline-offset: 2px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.article-seo a:not(.cta-inline):hover,
.local-data a:hover,
details p a:hover {
    color: var(--primary-dark);
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}
