:root {
    --indigo: #6366f1;
    --indigo-dark: #4f46e5;
    --amber: #f59e0b;
    --ink: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f8fafc;
    --radius: 14px;
    --shadow-card: 0 2px 10px -4px rgba(15, 15, 50, .1);
    --shadow-card-hover: 0 20px 44px -18px rgba(15, 15, 50, .35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg); color: var(--ink); line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo-dark); text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* Header */
.site-header {
    background: rgba(255, 255, 255, .88); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; gap: 16px;
}
.brand {
    display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 16.5px;
    color: var(--ink); white-space: nowrap; flex-shrink: 0; letter-spacing: -.015em;
}
.brand .logo {
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(135deg, var(--indigo), #8b5cf6);
    display: grid; place-items: center; font-size: 19px;
    box-shadow: 0 4px 14px -4px rgba(99, 102, 241, .55), inset 0 1px 0 rgba(255,255,255,.25);
}
.brand-nom { display: inline-flex; align-items: center; gap: 7px; }
.brand-ai {
    display: inline-grid; place-items: center;
    background: linear-gradient(135deg, var(--indigo), #8b5cf6); color: #fff;
    font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
    padding: 3px 7px; border-radius: 6px; line-height: 1;
}
.brand .ai { color: var(--indigo); }
.tag-dev {
    font-size: 12px; font-weight: 600; color: var(--indigo-dark);
    background: #eef2ff; border: 1px solid #c7d2fe; padding: 4px 10px; border-radius: 999px;
}

/* Hero */
.hero {
    background: radial-gradient(circle at 15% -10%, #312e81 0%, #1e1b4b 45%, #0f0f1f 100%);
    color: #e2e8f0; padding: 64px 0 88px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.hero h1 .grad {
    background: linear-gradient(120deg, #a5b4fc, #c4b5fd);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { margin-top: 16px; font-size: 17px; color: #a5b4fc; max-width: 600px; }

/* Estimation form card */
.estim-card {
    background: #fff; border-radius: var(--radius); padding: 26px;
    box-shadow: 0 20px 50px -20px rgba(15, 15, 50, .5);
    margin-top: 32px;
    color: var(--ink);
}
.estim-card h2 { font-size: 17px; font-weight: 700; margin-bottom: 18px; color: var(--ink); }
.field-grid { display: grid; gap: 14px; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
@media (max-width: 720px) { .field-grid { grid-template-columns: 1fr 1fr; } }
.field { position: relative; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
    width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px;
    font-size: 15px; font-family: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus { outline: 2px solid var(--indigo); border-color: var(--indigo); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(180deg, var(--indigo), var(--indigo-dark));
    color: #fff; font-weight: 600; font-size: 15px;
    padding: 12px 22px; border: 0; border-radius: 10px; cursor: pointer; font-family: inherit;
    box-shadow: 0 4px 14px -4px rgba(79, 70, 229, .45), inset 0 1px 0 rgba(255,255,255,.16);
    transition: transform .12s, box-shadow .15s, filter .15s;
}
.btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px -6px rgba(79, 70, 229, .55), inset 0 1px 0 rgba(255,255,255,.16);
}
.btn:active { transform: translateY(0); filter: brightness(.97); }
.btn-full { width: 100%; margin-top: 16px; padding: 13px; }
.btn-ghost {
    background: #fff; color: var(--indigo-dark); border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}
.btn-ghost:hover { background: var(--bg); filter: none; box-shadow: var(--shadow-card); }

/* Sections */
section { padding: 56px 0; }
.section-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.section-sub { color: var(--muted); margin-bottom: 28px; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
    box-shadow: var(--shadow-card);
}
.card .ico { font-size: 22px; }
.card h3 { margin-top: 10px; font-size: 15px; font-weight: 700; }
.card p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* Result */
.result-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.result-head h1 { font-size: 24px; font-weight: 800; }
.result-grid { display: grid; gap: 22px; grid-template-columns: 1.3fr 1fr; margin-top: 24px; }
@media (max-width: 860px) { .result-grid { grid-template-columns: 1fr; } }
.price-box {
    background: linear-gradient(135deg, var(--indigo), #818cf8); color: #fff;
    border-radius: var(--radius); padding: 26px;
}
.price-box .label { font-size: 13px; opacity: .85; font-weight: 600; }
.price-box .price { font-size: 38px; font-weight: 800; margin: 4px 0; letter-spacing: -.02em; }
.price-box .range { font-size: 14px; opacity: .9; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.metric { background: rgba(255,255,255,.14); border-radius: 10px; padding: 12px 14px; }
.metric .m-val { font-size: 19px; font-weight: 700; }
.metric .m-lbl { font-size: 12px; opacity: .85; }
.methode-note { margin-top: 16px; font-size: 11.5px; opacity: .8; line-height: 1.5; }
.panel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; margin-bottom: 22px;
}
.panel h2 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
#map { height: 340px; border-radius: 10px; border: 1px solid var(--line); }
.badge {
    display: inline-block; padding: 4px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
}
.badge.eleve { background: #dcfce7; color: #15803d; }
.badge.moyen { background: #fef9c3; color: #a16207; }
.badge.faible { background: #ffedd5; color: #c2410c; }
.badge.aucun  { background: #fee2e2; color: #b91c1c; }

table.comps { width: 100%; border-collapse: collapse; font-size: 13px; }
table.comps th, table.comps td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); }
table.comps th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
table.comps tbody tr:hover { background: var(--bg); }
.comps-scroll { max-height: 360px; overflow-y: auto; }

.alert {
    padding: 14px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px;
}
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.field-error { color: #dc2626; font-size: 12px; margin-top: 4px; }

/* Lead form */
.lead-box {
    background: #0f172a; color: #e2e8f0; border-radius: var(--radius); padding: 24px;
}
.lead-box h2 { color: #fff; font-size: 17px; }
.lead-box p { color: #94a3b8; font-size: 14px; margin-top: 4px; }
.lead-box .field label { color: #94a3b8; }
.lead-box .field input, .lead-box .field textarea {
    background: #1e293b; border-color: #334155; color: #e2e8f0;
    width: 100%; padding: 10px 12px; border-radius: 8px; font-family: inherit; font-size: 14px;
}
.lead-box .lf-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 14px; }
@media (max-width: 620px) { .lead-box .lf-grid { grid-template-columns: 1fr; } }

/* Fiche de quartier */
.quartier-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.q-tile { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: center; }
.q-val { font-size: 20px; font-weight: 800; color: var(--indigo-dark); }
.q-lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Profil énergétique (DPE) */
.dpe-bars { display: flex; gap: 8px; flex-wrap: wrap; }
.dpe-bar {
    flex: 1; min-width: 64px; border-radius: 9px; padding: 12px 6px;
    text-align: center; color: #1e293b;
}
.dpe-bar .dpe-letter { display: block; font-size: 18px; font-weight: 800; }
.dpe-bar .dpe-count { display: block; font-size: 13px; font-weight: 600; opacity: .85; }
.dpe-A { background: #00834e; color: #fff; }
.dpe-B { background: #4cb847; color: #fff; }
.dpe-C { background: #c3d545; }
.dpe-D { background: #ffec00; }
.dpe-E { background: #f9b233; }
.dpe-F { background: #ec6c2d; color: #fff; }
.dpe-G { background: #d7221f; color: #fff; }

/* Risques du secteur */
.risk-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.risk-tag {
    display: inline-block; padding: 6px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 600;
    background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
}
.risk-tag.risk-sismic { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.risk-tag.risk-argile { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.risk-note { margin-top: 12px; font-size: 12px; color: var(--muted); }

/* Rapport IA */
.report-panel { border-left: 3px solid var(--indigo); }
.report-panel p { color: #334155; font-size: 14.5px; line-height: 1.75; margin-bottom: 12px; }
.report-panel p:last-child { margin-bottom: 0; }

/* Autocomplétion d'adresse */
.ac-list {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
    background: #fff; border: 1px solid var(--line); border-radius: 9px;
    margin-top: 4px; box-shadow: 0 14px 30px -12px rgba(15, 15, 50, .3);
    overflow: hidden; display: none;
}
.ac-list.open { display: block; }
.ac-item { padding: 10px 12px; font-size: 14px; cursor: pointer; color: var(--ink); }
.ac-item:hover { background: #eef2ff; }

/* Navigation */
.site-nav { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; justify-content: flex-end; }
.site-nav > a {
    font-size: 13.5px; font-weight: 600; color: #475569; white-space: nowrap;
    padding: 8px 12px; border-radius: 9px;
    transition: background .13s, color .13s;
}
.site-nav > a:hover { background: #eef2ff; color: var(--indigo-dark); }
.site-nav > a[aria-current="page"] { background: #eef2ff; color: var(--indigo-dark); }

/* Menu déroulant « Outils » */
.nav-plus { position: relative; }
.nav-plus-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: inherit; font-size: 13.5px; font-weight: 600; color: #475569;
    background: none; border: 0; padding: 8px 12px; border-radius: 9px; cursor: pointer;
    transition: background .13s, color .13s;
}
.nav-plus-btn svg { transition: transform .15s; }
.nav-plus:hover .nav-plus-btn, .nav-plus:focus-within .nav-plus-btn {
    background: #eef2ff; color: var(--indigo-dark);
}
.nav-plus:hover .nav-plus-btn svg, .nav-plus:focus-within .nav-plus-btn svg { transform: rotate(180deg); }
.nav-plus-panel {
    position: absolute; top: 100%; right: 0;
    display: none; z-index: 60; min-width: 228px;
    background: #fff; border: 1px solid var(--line); border-radius: 13px;
    box-shadow: 0 24px 50px -20px rgba(15, 15, 50, .35);
    padding: 7px;
}
.nav-plus:hover .nav-plus-panel, .nav-plus:focus-within .nav-plus-panel { display: block; }
.nav-plus-panel > a {
    display: block; padding: 10px 12px; border-radius: 8px;
    font-size: 13.5px; font-weight: 600; color: var(--ink);
    transition: background .12s, color .12s;
}
.nav-plus-panel > a:hover { background: #eef2ff; color: var(--indigo-dark); }

/* CTA header (desktop large uniquement) */
.nav-cta {
    padding: 9px 16px; font-size: 13.5px; border-radius: 10px;
    white-space: nowrap; flex-shrink: 0;
}
@media (max-width: 1180px) { .nav-cta { display: none; } }

/* Menu mobile : hamburger + panneau plein écran */
.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
    border-radius: 8px; flex-shrink: 0;
}
.nav-toggle:hover { background: var(--bg); }
.nav-toggle span {
    display: block; width: 20px; height: 2px; margin: 0 auto;
    background: var(--ink); border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.nav-toggle-actif span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-actif span:nth-child(2) { opacity: 0; }
.nav-toggle-actif span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
    display: none; position: fixed; inset: 64px 0 0 0; z-index: 45;
    background: rgba(15, 15, 35, .45); backdrop-filter: blur(2px);
    opacity: 0; transition: opacity .2s;
}
.nav-overlay-visible { display: block; opacity: 1; }
body.nav-verrou-scroll { overflow: hidden; }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-compte { display: none; }
    .site-nav {
        position: fixed; top: 64px; left: 0; right: 0; z-index: 46;
        background: #fff; flex-direction: column; align-items: stretch;
        gap: 0; padding: 8px 0; max-height: calc(100vh - 64px); overflow-y: auto;
        box-shadow: 0 20px 40px -20px rgba(15, 15, 50, .3);
        transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
        transition: transform .18s ease, opacity .18s ease;
    }
    .site-nav.site-nav-ouvert { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
    .site-nav a {
        font-size: 15px; padding: 13px 24px; border-bottom: 1px solid var(--bg);
        color: var(--ink); border-radius: 0; background: none;
    }
    .site-nav a:last-child { border-bottom: 0; }
    .site-nav > a[aria-current="page"] { color: var(--indigo-dark); background: #eef2ff; }

    /* Le menu « Outils » devient une simple liste à plat dans le panneau mobile */
    .nav-plus { position: static; }
    .nav-plus-btn { display: none; }
    .nav-plus-panel {
        display: block; position: static; min-width: 0;
        background: transparent; border: 0; border-radius: 0;
        box-shadow: none; padding: 0;
    }
    .nav-plus-panel > a { border-radius: 0; }
}

/* Hero compact (pages secondaires) */
.hero-compact { padding: 50px 0 96px; }

/* Annuaire des agences */
.agences-section { padding-top: 0; }
.agences-panel {
    background: #fff; border-radius: var(--radius); padding: 20px;
    box-shadow: 0 24px 60px -28px rgba(15, 15, 50, .55);
    margin-top: -64px; position: relative; z-index: 2;
}
.agences-filtres { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.agences-filtres select, .agences-filtres input {
    padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
    font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
}
.agences-filtres input { min-width: 240px; flex: 1; }
.agences-filtres select:focus, .agences-filtres input:focus { outline: 2px solid var(--indigo); border-color: var(--indigo); }
.agences-compte { font-size: 13px; color: var(--muted); font-weight: 700; margin-left: auto; }

.agences-layout { display: grid; grid-template-columns: 360px 1fr; gap: 16px; }
@media (max-width: 880px) { .agences-layout { grid-template-columns: 1fr; } }
.agences-liste {
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    max-height: 620px; overflow-y: auto;
}
.agence-item { padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.agence-item:last-child { border-bottom: 0; }
.agence-item:hover { background: #eef2ff; }
.agence-item .ai-nom { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.agence-item .ai-adresse { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.agences-liste-vide { padding: 18px 16px; color: var(--muted); font-size: 13px; }
.agences-carte { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
#map-agences { height: 620px; }
@media (max-width: 880px) { #map-agences { height: 440px; } }

/* Carte agences — marqueurs personnalisés */
.ag-marqueur-wrap { background: none; border: 0; }
.ag-marqueur {
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--indigo); border: 3px solid #fff;
    box-shadow: 0 2px 7px rgba(15, 15, 50, .45);
    transition: transform .12s;
}
.ag-marqueur:hover { transform: scale(1.25); }
.cl-cluster { background: none; border: 0; }
.cl-bulle {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; border-radius: 50%;
    color: #fff; font-weight: 700; line-height: 1;
    background: var(--indigo); box-shadow: 0 6px 16px rgba(79, 70, 229, .5);
}
.cl-bulle::after {
    content: ''; position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, .4);
}
.cl-petit { font-size: 12px; }
.cl-moyen { font-size: 13px; background: var(--indigo-dark); }
.cl-grand { font-size: 15px; background: #3730a3; }

/* Carte agences — popups & contrôles Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 12px; box-shadow: 0 16px 36px -10px rgba(15, 15, 50, .4);
}
.leaflet-popup-content { font-family: inherit; font-size: 13px; line-height: 1.55; margin: 12px 15px; }
.leaflet-popup-content strong { color: var(--indigo-dark); font-size: 14px; }
.leaflet-popup-content a { font-weight: 600; }
.leaflet-bar { border: 0; box-shadow: 0 4px 12px rgba(15, 15, 50, .2); }
.leaflet-bar a { color: var(--indigo-dark); }
.leaflet-bar a:first-child { border-radius: 8px 8px 0 0; }
.leaflet-bar a:last-child { border-radius: 0 0 8px 8px; }

/* Fiche agence détaillée */
.agence-item { display: block; text-decoration: none; color: inherit; }
.fil-retour { display: inline-block; color: #a5b4fc; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.fil-retour:hover { color: #fff; }
.agence-entete { display: flex; gap: 18px; align-items: center; }
.agence-logo {
    width: 76px; height: 76px; border-radius: 16px; flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    display: grid; place-items: center; color: #fff; font-size: 32px; font-weight: 800;
    overflow: hidden;
}
.agence-logo img { width: 100%; height: 100%; object-fit: cover; }
.agence-entete h1 { font-size: clamp(23px, 3.4vw, 33px); line-height: 1.15; }
.agence-sous { margin-top: 6px; color: #a5b4fc; font-size: 15px; }
.agence-slogan { margin-top: 6px; color: #c7d2fe; font-style: italic; font-size: 14px; }
.badge-verif {
    display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px;
    background: rgba(34, 197, 94, .2); border: 1px solid rgba(34, 197, 94, .5);
    color: #86efac; font-size: 12px; font-weight: 700;
}
.agence-fiche { display: grid; grid-template-columns: 1fr 340px; gap: 20px; margin-top: -56px; }
@media (max-width: 860px) { .agence-fiche { grid-template-columns: 1fr; margin-top: -40px; } }
.agence-desc { color: #334155; font-size: 14.5px; line-height: 1.7; }
.agence-vide { color: var(--muted); font-size: 14px; font-style: italic; }
.coord-liste { list-style: none; }
.coord-liste li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; gap: 10px; }
.coord-liste li:last-child { border-bottom: 0; }
.coord-liste .ci { width: 20px; flex-shrink: 0; }
#map-agence { height: 260px; border-radius: 10px; }
.agences-similaires { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .agences-similaires { grid-template-columns: 1fr; } }
.similaire-item {
    display: block; text-decoration: none; color: inherit;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
}
.similaire-item:hover { background: var(--bg); border-color: var(--indigo); }
.claim-banner {
    margin-top: 22px; background: #0f172a; color: #e2e8f0; border-radius: var(--radius);
    padding: 22px 26px; display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}
.claim-banner strong { color: #fff; font-size: 17px; }
.claim-banner p { color: #94a3b8; font-size: 14px; margin-top: 4px; max-width: 540px; }
.popup-fiche { display: inline-block; margin-top: 4px; font-weight: 700; }

/* Espace pro */
.field textarea {
    width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px;
    font-size: 14px; font-family: inherit; color: var(--ink); background: #fff; resize: vertical;
    line-height: 1.5;
}
.field textarea:focus { outline: 2px solid var(--indigo); border-color: var(--indigo); }
.pro-card { max-width: 460px; margin-top: 26px; }
.pro-lien { margin-top: 16px; font-size: 14px; color: var(--muted); }
.pro-lien a { font-weight: 600; }
.pro-entete { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* Avis agences */
.etoiles { color: #f59e0b; letter-spacing: 1px; }
.note-globale { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 16px; }
.note-globale strong { font-size: 19px; }
.note-nb { color: var(--muted); font-size: 13px; font-weight: 600; }
.avis-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.avis-tete { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avis-date { color: var(--muted); font-size: 12px; margin-left: auto; }
.avis-txt { margin-top: 6px; font-size: 14px; color: #334155; line-height: 1.6; }
.avis-form { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.avis-form-titre { font-size: 14px; font-weight: 700; margin-bottom: 12px; }

/* Faisabilité */
.fais-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fais-wide { grid-column: 1 / -1; }
.field label .opt { font-weight: 400; color: #94a3b8; font-size: 11px; }
.fais-section-titre {
    font-size: 15px; font-weight: 800; color: var(--indigo-dark);
    margin: 22px 0 10px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.fais-section-titre:first-of-type { margin-top: 10px; padding-top: 0; border-top: 0; }
.fais-verdict {
    margin-top: 24px; display: flex; justify-content: space-between; align-items: center;
    gap: 20px; padding: 22px 26px; border-radius: var(--radius); color: #fff; flex-wrap: wrap;
}
.fais-verdict.ok { background: linear-gradient(135deg, #15803d, #22c55e); }
.fais-verdict.ko { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.fais-verdict .fv-label { font-size: 13px; opacity: .9; }
.fais-verdict .fv-montant { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.fais-verdict .fv-sub { font-size: 12.5px; opacity: .85; margin-top: 4px; }
.fais-verdict .fv-taux { text-align: right; }
.fais-verdict .fv-taux-val { font-size: 26px; font-weight: 800; }
.bilan-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bilan-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.bilan-table td.montant { text-align: right; font-weight: 600; white-space: nowrap; }
.bilan-table tr.sous-total td { font-weight: 700; background: var(--bg); }
.bilan-table tr.total td { font-weight: 800; font-size: 15px; border-top: 2px solid var(--ink); border-bottom: 0; padding-top: 11px; }
.bilan-table tr.total.negatif td { color: #b91c1c; }
table.decaissement td.montant { text-align: right; white-space: nowrap; }
table.decaissement td.neg { color: #b91c1c; font-weight: 700; }
table.decaissement td.pos { color: #15803d; font-weight: 700; }

/* Espace pro — navigation */
.pro-nav { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pro-nav a { font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 8px; }
.pro-nav a.actif { background: #eef2ff; color: var(--indigo-dark); }
.pro-nav a:hover { color: var(--indigo-dark); }

/* Annonces — vue pro (cartes) */
.annonces-pro { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 20px; }
.annonce-pro { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ap-photo {
    height: 160px; background: #f1f5f9 center/cover no-repeat; position: relative;
    display: flex; align-items: center; justify-content: center;
}
.ap-vide { font-size: 32px; opacity: .4; }
.ap-statut {
    position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700;
    padding: 4px 9px; border-radius: 6px; background: #fff; color: #1e293b;
}
.ap-actif { background: #dcfce7; color: #15803d; }
.ap-suspendu { background: #fef9c3; color: #a16207; }
.ap-vendu, .ap-loue { background: #e0e7ff; color: #4338ca; }
.ap-corps { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.ap-titre { font-weight: 700; font-size: 15px; }
.ap-meta { font-size: 12.5px; color: var(--muted); }
.ap-prix { font-weight: 800; font-size: 19px; color: var(--indigo-dark); margin: 2px 0; }
.ap-stats { font-size: 12px; color: var(--muted); }
.ap-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ap-actions .btn { padding: 7px 12px; font-size: 12.5px; }

/* Photos existantes (form) */
.photos-existantes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.photo-cell { position: relative; }
.photo-cell img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.btn-photo-supprimer {
    position: absolute; top: 6px; right: 6px; width: 26px; height: 26px;
    border: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff;
    font-size: 18px; font-weight: 700; cursor: pointer; line-height: 1;
}

/* Annonces — vue publique : filtres */
.annonces-filtres { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.annonces-filtres select, .annonces-filtres input {
    padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
    font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
}
.annonces-filtres input[type="number"] { width: 140px; }
.annonces-filtres input[type="text"] { min-width: 220px; flex: 1; }

.annonces-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 980px) { .annonces-layout { grid-template-columns: 1fr; } }
.annonces-liste { max-height: 640px; overflow-y: auto; padding-right: 4px; display: grid; gap: 12px; }
#map-annonces { height: 640px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (max-width: 980px) { #map-annonces { height: 380px; } }

/* ===== /annonces — Layout pleine largeur style SeLoger ===== */
.annonces-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
    color: #fff; padding: 50px 0 110px; position: relative; overflow: hidden;
}
.annonces-hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(800px 400px at 70% 0%, rgba(245,158,11,.18), transparent 70%);
    pointer-events: none;
}
.annonces-hero .wrap { position: relative; z-index: 1; }
.annonces-hero .badge {
    display: inline-block; background: rgba(255,255,255,.13);
    color: #fff; padding: 6px 13px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: .04em;
    backdrop-filter: blur(4px); margin-bottom: 18px;
}
.annonces-hero h1 {
    font-size: clamp(32px, 4.4vw, 48px); font-weight: 800;
    letter-spacing: -.02em; line-height: 1.05; margin: 0;
}
.annonces-hero .lead {
    font-size: 16px; opacity: .85; max-width: 720px; margin-top: 14px;
}

.annonces-fullwidth {
    max-width: 1640px; margin: -64px auto 0; padding: 0 24px 60px;
    position: relative; z-index: 2;
}

.annonces-filtres-bar {
    background: #fff; border-radius: 14px;
    box-shadow: 0 24px 60px -28px rgba(15, 15, 50, .55);
    padding: 16px 18px; margin-bottom: 22px;
    position: sticky; top: 0; z-index: 30;
}
.annonces-filtres { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.annonces-filtres select, .annonces-filtres input {
    padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px;
    font-size: 13.5px; font-family: inherit; color: var(--ink); background: #fff;
}
.annonces-filtres input[type="number"] { width: 130px; }
.annonces-filtres input[type="text"] { min-width: 220px; flex: 1; max-width: 320px; }
.annonces-filtres select:focus, .annonces-filtres input:focus {
    outline: 2px solid var(--indigo); border-color: var(--indigo);
}
.annonces-compte { font-size: 13px; color: var(--muted); font-weight: 700; margin-left: auto; }

.annonces-grid-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 480px;
    gap: 22px; align-items: start;
}
@media (max-width: 1180px) { .annonces-grid-layout { grid-template-columns: minmax(0, 1fr) 380px; } }
@media (max-width: 900px) { .annonces-grid-layout { grid-template-columns: 1fr; } }

.annonces-grille {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.annonces-vide {
    grid-column: 1 / -1;
    padding: 40px 16px; text-align: center;
    color: var(--muted); font-size: 14px;
    background: #fff; border: 1px dashed var(--line); border-radius: 12px;
}

.annonce-card {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    overflow: hidden; text-decoration: none; color: var(--ink);
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: box-shadow .18s, transform .14s, border-color .14s;
}
.annonce-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
    border-color: rgba(99,102,241,.4);
}
.annonce-card .ac-photo {
    background: #e2e8f0 center/cover no-repeat;
    height: 200px; position: relative;
    display: flex; align-items: center; justify-content: center;
}
.ac-photo-empty { font-size: 38px; opacity: .35; }
.ac-badge-trans {
    background: rgba(15, 23, 42, 0.85); color: #fff;
    padding: 5px 11px; border-radius: 999px;
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .05em; backdrop-filter: blur(6px);
    position: absolute; top: 12px; left: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.ac-badge-trans.location { background: rgba(245, 158, 11, .95); }
.ac-badge-trans.vente { background: rgba(99, 102, 241, .95); }

.annonce-card .ac-corps {
    padding: 14px 16px 16px;
    display: flex; flex-direction: column; gap: 6px;
    flex: 1;
}
.ac-prix {
    font-size: 21px; font-weight: 800; color: var(--indigo-dark);
    letter-spacing: -.015em; line-height: 1.1;
}
.ac-prix-suffix { font-size: 14px; font-weight: 600; opacity: .7; }
.ac-prix-m2 {
    font-size: 11.5px; color: var(--muted); font-weight: 600;
    margin-left: 6px; letter-spacing: 0;
}
.ac-titre {
    font-weight: 700; font-size: 14.5px; line-height: 1.32;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 38px;
}
.ac-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.ac-meta-pill {
    display: inline-flex; align-items: center; gap: 4px;
    background: #f1f5f9; padding: 3px 9px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600; color: #475569;
}
.ac-ville { font-size: 12.5px; color: var(--ink); font-weight: 600; margin-top: 2px; }
.ac-agence { font-size: 11.5px; color: var(--muted); font-style: italic; margin-top: auto; padding-top: 6px; }

.annonces-carte-sticky {
    position: sticky; top: 100px;
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px -16px rgba(15,15,50,.25);
}
#map-annonces { height: calc(100vh - 140px); min-height: 600px; }
@media (max-width: 900px) {
    .annonces-carte-sticky { position: static; }
    #map-annonces { height: 420px; min-height: 0; }
}

/* Annonce — page détail */
.annonce-page { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; margin-top: 22px; }
@media (max-width: 900px) { .annonce-page { grid-template-columns: 1fr; } }
.galerie { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gal-principale {
    width: 100%; height: 420px; object-fit: cover; display: block;
    background: #f1f5f9; align-items: center; justify-content: center;
}
.gal-vide { display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--muted); }
.gal-miniatures { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.gal-mini {
    width: 90px; height: 70px; object-fit: cover; border-radius: 6px; cursor: pointer;
    border: 2px solid transparent; flex-shrink: 0;
}
.gal-mini.actif, .gal-mini:hover { border-color: var(--indigo); }

.annonce-prix {
    background: linear-gradient(135deg, var(--indigo), #818cf8); color: #fff;
    padding: 22px 24px; border-radius: var(--radius);
}
.ap-prix-val { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.ap-prix-val span { font-size: 16px; font-weight: 600; opacity: .85; }
.ap-prix-sub { font-size: 13px; opacity: .85; margin-top: 4px; }

.annonces-liste-grille { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.annonce-carte-mini { grid-template-columns: 1fr; }
.annonce-carte-mini .ac-photo { height: 130px; }

/* Home page — nouvelle version impactante */
.hero-home { padding: 56px 0 80px; position: relative; overflow: hidden; }
.hero-home .hero-deco {
    position: absolute; pointer-events: none; inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(168, 85, 247, .35) 0%, transparent 45%),
        radial-gradient(circle at 15% 80%, rgba(99, 102, 241, .35) 0%, transparent 45%);
    opacity: .9;
}
.hero-home .hero-wrap { position: relative; z-index: 1; }
.hero-home h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.02em; }
.hero-home .lead { font-size: clamp(15px, 1.7vw, 18px); max-width: 720px; }
.hero-home .estim-card h2 { font-size: 18px; margin-bottom: 20px; }
.hero-stats {
    margin-top: 28px; display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.hs-stat {
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px; padding: 14px 16px; backdrop-filter: blur(4px);
}
.hs-val { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.hs-lbl { font-size: 12.5px; color: #c4b5fd; margin-top: 4px; }

.section-head { max-width: 720px; margin-bottom: 30px; }
.section-eyebrow {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--indigo-dark);
    background: #eef2ff; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.section-h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.section-lead { margin-top: 12px; font-size: 16px; color: var(--muted); line-height: 1.65; }

.section-outils { padding: 70px 0; background: #fff; }
.outils-grille {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.outil-carte {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 24px; text-decoration: none; color: var(--ink);
    display: flex; flex-direction: column; gap: 10px;
    box-shadow: var(--shadow-card);
    transition: transform .15s, box-shadow .15s, border-color .15s;
    position: relative; overflow: hidden;
}
.outil-carte::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 50%, rgba(99, 102, 241, .08) 100%);
    opacity: 0; transition: opacity .15s;
}
.outil-carte:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(15, 15, 50, .35); border-color: #c7d2fe; }
.outil-carte:hover::before { opacity: 1; }
.outil-carte > * { position: relative; }
.oc-icone {
    width: 52px; height: 52px; border-radius: 12px;
    display: grid; place-items: center; font-size: 26px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}
.outil-carte h3 { font-size: 18px; font-weight: 800; }
.outil-carte p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.oc-cta {
    margin-top: auto; font-size: 13.5px; font-weight: 700; color: var(--indigo-dark);
}

.section-process { padding: 70px 0; background: var(--bg); }
.process-grille {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.process-etape {
    background: #fff; border-radius: 16px; padding: 28px;
    border: 1px solid var(--line); position: relative;
}
.pe-num {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--indigo); color: #fff;
    display: grid; place-items: center; font-size: 20px; font-weight: 800;
    margin-bottom: 14px;
}
.process-etape h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.process-etape p { font-size: 14px; color: var(--muted); line-height: 1.65; }

.section-sources { padding: 70px 0; background: #fff; }
.sources-grille {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.source-pastille {
    background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
    padding: 16px; text-align: center; font-size: 13px; color: var(--muted);
}
.source-pastille strong { display: block; color: var(--indigo-dark); font-size: 15px; margin-bottom: 4px; }

.section-articles { padding: 70px 0; background: var(--bg); }
.section-articles .blog-grille { max-width: 1080px; margin: 0 auto; }

.section-cta-pro { padding: 60px 0; background: #fff; }
.cta-pro {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
    border-radius: 20px; padding: 40px;
    display: grid; gap: 24px; grid-template-columns: 1.5fr 1fr; align-items: center;
    color: #fff;
}
@media (max-width: 760px) { .cta-pro { grid-template-columns: 1fr; } }
.cta-pro h2 { font-size: 24px; font-weight: 800; line-height: 1.25; margin: 12px 0; }
.cta-pro p { color: #c7d2fe; font-size: 15px; line-height: 1.6; }
.badge-pro {
    display: inline-block; font-size: 12px; font-weight: 700;
    background: rgba(255, 255, 255, .15); color: #fff;
    padding: 5px 12px; border-radius: 999px;
}
.cta-pro-actions { display: flex; flex-direction: column; gap: 10px; }
.cta-pro-actions .btn { background: #fff; color: var(--indigo-dark); }
.cta-pro-actions .btn:hover { background: #eef2ff; }
.cta-pro-actions .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta-pro-actions .btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* Articles — emoji headers */
.bc-image { position: relative; overflow: hidden; }
.bc-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-emoji { font-size: 56px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .25)); }
.article-cover { display: flex; align-items: center; justify-content: center; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover-emoji { font-size: 96px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .3)); }

/* Calculateurs — grille des outils */
.calc-grille {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.calc-carte {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 22px; text-decoration: none; color: var(--ink);
    display: flex; flex-direction: column; gap: 10px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.calc-carte:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -16px rgba(15, 15, 50, .3); border-color: #c7d2fe; }
.cc-icone {
    width: 48px; height: 48px; border-radius: 12px;
    display: grid; place-items: center; font-size: 24px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}
.calc-carte h3 { font-size: 16px; font-weight: 800; }
.calc-carte p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.cc-cta { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--indigo-dark); }

.calc-cat-titre {
    font-size: 18px; font-weight: 800; color: var(--ink);
    margin: 28px 0 14px; letter-spacing: -.01em;
}
.calc-cat-titre:first-child { margin-top: 0; }

/* ===== Fiche commune ===== */
.villes-recherche { position: relative; margin-bottom: 22px; }
.villes-recherche input {
    width: 100%; padding: 14px 18px; font-size: 16px;
    border: 1px solid var(--line); border-radius: 12px;
    font-family: inherit;
}
.villes-recherche input:focus { outline: 2px solid var(--indigo); border-color: var(--indigo); }
.villes-sugg {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 14px 36px -16px rgba(15,15,50,.25);
    z-index: 30; max-height: 320px; overflow-y: auto;
}
.vs-item {
    display: block; padding: 11px 14px; text-decoration: none; color: var(--ink);
    border-bottom: 1px solid var(--line); font-size: 14px;
}
.vs-item:last-child { border-bottom: 0; }
.vs-item:hover { background: #eef2ff; }
.vs-item span { font-size: 12px; color: var(--muted); margin-left: 6px; }

.villes-grille {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.ville-carte {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 14px 16px; text-decoration: none; color: var(--ink);
    transition: transform .14s, box-shadow .14s, border-color .14s;
}
.ville-carte:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -16px rgba(15,15,50,.3);
    border-color: rgba(99,102,241,.4);
}
.vc-nom { font-size: 15px; font-weight: 800; color: var(--ink); }
.vc-dept { font-size: 12px; color: var(--muted); margin-top: 2px; }
.vc-prix { margin-top: 8px; font-size: 17px; font-weight: 800; color: var(--indigo-dark); }
.vc-prix-lbl { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.vc-pop { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* Stats principales fiche ville */
.ville-stats {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 24px;
}
.vs-stat {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--line); border-radius: 14px;
    padding: 18px 20px; position: relative;
}
.vs-stat .vs-icone { font-size: 28px; margin-bottom: 6px; }
.vs-stat .vs-val { font-size: 26px; font-weight: 800; color: var(--indigo-dark); letter-spacing: -.02em; }
.vs-stat .vs-val small { font-size: 13px; font-weight: 600; opacity: .65; margin-left: 4px; }
.vs-stat .vs-lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.vs-evolution {
    font-size: 12px; font-weight: 700; margin-top: 8px;
    padding: 4px 8px; border-radius: 999px;
    display: inline-block; background: #f1f5f9; color: var(--muted);
}
.vs-evolution.positive { background: #dcfce7; color: #15803d; }
.vs-evolution.negative { background: #fee2e2; color: #b91c1c; }

/* Graphiques */
.ville-graphique {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 22px 24px; margin-bottom: 22px;
}
.ville-graphique h2 {
    font-size: 16px; font-weight: 800; color: var(--ink);
    margin: 0 0 14px;
}
.vg-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.vg-head h2 { margin: 0; }
.vg-controles {
    display: flex; gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 9px;
}
.vg-controles label {
    padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer;
    border-radius: 7px; color: var(--muted);
}
.vg-controles input { display: none; }
.vg-controles label:has(input:checked) {
    background: #fff; color: var(--indigo-dark);
    box-shadow: 0 2px 6px rgba(15,15,50,.1);
}
.vg-canvas-wrap { position: relative; height: 360px; }
@media (max-width: 720px) { .vg-canvas-wrap { height: 280px; } }
.vg-empty {
    text-align: center; padding: 28px 18px; background: #fefce8;
    border: 1px dashed #fde68a; border-radius: 10px; margin-top: 14px;
    font-size: 14px; color: #78350f;
}

/* ===== Pagination (vue custom française) ===== */
.pagination-nav {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 6px; margin: 18px 0 8px;
}
.pg-pages { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-item {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 9px;
    font-size: 13.5px; font-weight: 600; color: var(--ink);
    text-decoration: none; transition: all .14s;
}
.pg-item:hover:not(.pg-disabled):not(.pg-active):not(.pg-ellipsis) {
    background: #eef2ff; border-color: var(--indigo); color: var(--indigo-dark);
}
.pg-item.pg-active {
    background: var(--indigo); border-color: var(--indigo);
    color: #fff; cursor: default;
}
.pg-item.pg-disabled {
    color: #cbd5e1; cursor: not-allowed; background: #f8fafc;
}
.pg-item.pg-ellipsis {
    background: transparent; border: 0; color: var(--muted);
    min-width: 24px; padding: 0;
}
.pagination-info {
    text-align: center; font-size: 13px; color: var(--muted);
    margin: 10px 0 0;
}
.pagination-info strong { color: var(--ink); font-weight: 700; }

/* Contexte départemental */
.ville-contexte {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 22px 24px; margin-bottom: 22px;
}
.ville-contexte h2 { font-size: 16px; font-weight: 800; margin: 0 0 14px; }
.vc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.vc-comparaison {
    background: #f8fafc; border: 1px solid var(--line); border-radius: 10px;
    padding: 14px 16px;
}
.vcc-lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.vcc-vals { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 4px; }
.vcc-commune { font-size: 18px; font-weight: 800; color: var(--indigo-dark); }
.vcc-vs { font-size: 11px; color: var(--muted); }
.vcc-dept { font-size: 13px; color: var(--muted); }
.vcc-delta {
    display: inline-block; margin-top: 8px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
}
.vcc-delta.plus { background: #dcfce7; color: #15803d; }
.vcc-delta.moins { background: #fee2e2; color: #b91c1c; }

.ville-transactions {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 22px 24px;
}
.ville-transactions h2 { font-size: 16px; font-weight: 800; margin: 0 0 14px; }

/* Intro SEO sur fiche ville */
.ville-intro {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 22px 26px; margin-bottom: 22px;
}
.ville-intro h2 {
    font-size: 18px; font-weight: 800; color: var(--ink);
    margin: 0 0 12px;
}
.ville-intro p {
    font-size: 14.5px; color: var(--ink); line-height: 1.65;
    margin: 0 0 12px;
}
.ville-intro p:last-child { margin-bottom: 0; }

/* CTA ville (vendre/acheter) */
.ville-cta {
    display: grid; gap: 14px; margin-top: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.vc-card {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid #e0e7ff; border-radius: 14px;
    padding: 20px 22px;
}
.vc-card-titre {
    font-size: 16px; font-weight: 800; color: var(--ink);
    margin-bottom: 6px;
}
.vc-card p {
    font-size: 13.5px; color: var(--muted); line-height: 1.55;
    margin: 0 0 14px;
}

/* Fil d'Ariane */
.breadcrumb {
    font-size: 12.5px; color: var(--muted); margin-bottom: 16px;
}
.breadcrumb a {
    color: var(--indigo-dark); text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--ink); font-weight: 600; }

/* ===== Pages département ===== */
.depts-grille {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.dept-carte {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 16px 18px; text-decoration: none; color: var(--ink);
    transition: transform .14s, box-shadow .14s, border-color .14s;
    display: flex; flex-direction: column; gap: 4px;
}
.dept-carte:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -16px rgba(15,15,50,.3);
    border-color: rgba(99,102,241,.4);
}
.dc-code {
    display: inline-block; background: var(--indigo); color: #fff;
    font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
    padding: 3px 9px; border-radius: 999px; align-self: flex-start;
}
.dc-nom { font-size: 15px; font-weight: 800; color: var(--ink); margin-top: 6px; }
.dc-stats { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.dc-stats span { font-weight: 600; }

/* Calculateurs — page outil (form + résultats) */
.calc-layout {
    display: grid; gap: 22px; grid-template-columns: 1fr 1fr;
}
@media (max-width: 860px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-form, .calc-resultats {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px;
}
.calc-form h2, .calc-resultats h2 {
    font-size: 16px; font-weight: 800; color: var(--indigo-dark);
    margin-bottom: 14px;
}
.calc-form .field { margin-bottom: 12px; }
.calc-form input, .calc-form select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line);
    border-radius: 9px; font-size: 14px; font-family: inherit; color: var(--ink);
    background: #fff;
}
.calc-form input:focus, .calc-form select:focus {
    outline: 2px solid var(--indigo); border-color: var(--indigo);
}
.calc-big {
    background: linear-gradient(135deg, var(--indigo), #818cf8);
    color: #fff; padding: 22px; border-radius: 12px; margin-bottom: 18px;
}
.calc-big-label { font-size: 12px; opacity: .85; font-weight: 600; }
.calc-big-val { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.calc-ligne {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.calc-ligne:last-child { border-bottom: 0; }
.calc-ligne strong { font-weight: 700; color: var(--ink); }
.calc-total { font-size: 15px; padding-top: 14px; border-top: 2px solid var(--ink); }
.calc-total strong { font-size: 18px; font-weight: 800; color: var(--indigo-dark); }

/* Calc — barre d'actions (partage / reset) */
.calc-actions {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
    margin: 18px 0 22px; padding: 14px 16px;
    background: linear-gradient(135deg, #f5f3ff, #eef2ff);
    border: 1px solid #e0e7ff; border-radius: 12px;
}
.calc-actions .ca-titre {
    font-size: 13px; font-weight: 700; color: var(--indigo-dark);
    margin-right: auto;
}
.btn-partage {
    background: var(--indigo); color: #fff;
    padding: 9px 16px; border-radius: 9px;
    font-size: 13px; font-weight: 700; border: 0; cursor: pointer;
    transition: background .14s, transform .12s;
}
.btn-partage:hover { background: var(--indigo-dark); transform: translateY(-1px); }
.btn-partage.btn-copie { background: #10b981; }
.btn-reset {
    background: #fff; color: var(--ink); border: 1px solid var(--line);
    padding: 9px 14px; border-radius: 9px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: border-color .14s, color .14s;
}
.btn-reset:hover { border-color: var(--indigo); color: var(--indigo); }

/* Calc — note explicative sous résultats */
.calc-note {
    font-size: 12.5px; color: var(--muted); line-height: 1.55;
    background: #f8fafc; border: 1px solid var(--line); border-left: 3px solid var(--indigo);
    padding: 12px 14px; border-radius: 8px; margin-top: 16px;
}
.calc-note strong { color: var(--ink); }

/* Calc — Section "Formules" pédagogique */
.calc-formules {
    margin-top: 28px; padding: 22px 24px;
    background: linear-gradient(135deg, #fefce8 0%, #fdf4ff 100%);
    border: 1px solid #fde68a; border-radius: 14px;
}
.calc-formules h3 {
    font-size: 16px; font-weight: 800; color: var(--ink);
    margin: 0 0 14px; display: flex; align-items: center; gap: 8px;
}
.calc-formules h3::before { content: '🧮'; }
.calc-formules .cf-bloc {
    margin-bottom: 14px; padding: 12px 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(252, 211, 77, 0.4);
    border-radius: 9px;
}
.calc-formules .cf-bloc:last-child { margin-bottom: 0; }
.calc-formules .cf-titre {
    font-weight: 700; font-size: 13px; color: var(--indigo-dark);
    margin-bottom: 6px;
}
.calc-formules .cf-formule {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    background: #1e1b4b; color: #c7d2fe;
    padding: 8px 12px; border-radius: 6px;
    font-size: 12.5px; margin: 6px 0;
    overflow-x: auto; white-space: nowrap;
    line-height: 1.5;
}
.calc-formules .cf-formule em { color: #fcd34d; font-style: normal; }
.calc-formules .cf-formule b { color: #fff; font-weight: 700; }
.calc-formules .cf-explication {
    font-size: 12.5px; color: #475569; line-height: 1.6;
    margin-top: 4px;
}
.calc-formules .cf-explication strong { color: var(--ink); }
.calc-formules .cf-source {
    font-size: 11.5px; color: var(--muted); font-style: italic;
    margin-top: 8px; padding-top: 8px; border-top: 1px dashed #fde68a;
}

/* Comparateur de communes — nouvelle version observatoire */
.cmp-vide { padding: 24px 16px; }
.cmp-vide p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.cmp-intro { font-size: 14px; color: var(--ink); margin: 8px 0 24px; }
.cmp-section { margin-top: 26px; padding: 22px; background: var(--bg); border-radius: var(--radius); }
.cmp-section-titre { font-size: 16px; font-weight: 800; color: var(--indigo-dark); margin-bottom: 4px; }
.cmp-section-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.cmp-col {
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.cmp-ville { font-size: 18px; font-weight: 800; color: var(--ink); }
.cmp-info { font-size: 12.5px; color: var(--muted); }
.cmp-metric { padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.cmp-metric:last-of-type { border-bottom: 0; padding-bottom: 0; }
.cmp-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.cmp-valeur { font-size: 18px; font-weight: 800; color: var(--ink); }
.cmp-bar {
    height: 6px; background: var(--line); border-radius: 3px;
    margin-top: 6px; overflow: hidden;
}
.cmp-bar span {
    display: block; height: 100%; background: linear-gradient(90deg, var(--indigo), #818cf8);
    border-radius: 3px; transition: width .4s;
}
.cmp-ecart { font-size: 11px; margin-top: 4px; font-weight: 600; }
.cmp-ecart-haut { color: #b45309; }
.cmp-ecart-bas { color: #047857; }
.cmp-volume { font-size: 11.5px; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--line); }

.cmp-section-rendement { background: linear-gradient(135deg, #eef2ff, #f5f3ff); }
.cmp-rend-bloc {
    padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
    text-align: center; margin-bottom: 10px; position: relative;
}
.cmp-rend-bloc:last-child { margin-bottom: 0; }
.cmp-rend-top { border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .15); }
.cmp-rend-libelle { font-size: 12px; color: var(--muted); font-weight: 600; }
.cmp-rend-valeur { font-size: 26px; font-weight: 800; margin: 6px 0; color: var(--indigo-dark); }
.cmp-rend-badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
}
.cmp-rend-eleve { background: #dcfce7; color: #15803d; }
.cmp-rend-moyen { background: #fef9c3; color: #a16207; }
.cmp-rend-faible { background: #fee2e2; color: #b91c1c; }
.cmp-rend-aucun { background: var(--bg); color: var(--muted); }
.cmp-rend-trophee {
    margin-top: 8px; font-size: 11px; font-weight: 700; color: #b45309;
}
.cmp-methodo {
    margin-top: 24px; padding: 14px 18px; background: #fff;
    border: 1px dashed var(--line); border-radius: 10px;
    font-size: 12px; color: var(--muted); line-height: 1.65;
}

/* Comparateur — version observatoire (ancien) */
.comparateur-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: flex-end; margin-bottom: 18px; }
@media (max-width: 760px) { .comparateur-form { grid-template-columns: 1fr 1fr; } }
.cmp-slot { position: relative; display: flex; flex-direction: column; }
.cmp-slot label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.cmp-slot label .opt { font-weight: 400; font-size: 11px; }
.cmp-saisie {
    padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
    font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
}
.cmp-saisie:focus { outline: 2px solid var(--indigo); border-color: var(--indigo); }
.cmp-suggest { top: calc(100% - 0px); }

.cmp-table-wrap { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp-table th, .cmp-table td {
    padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line);
}
.cmp-table thead th {
    background: var(--bg); color: var(--ink); font-weight: 800; font-size: 14.5px;
    border-bottom: 2px solid var(--indigo);
}
.cmp-table tbody th { color: var(--muted); font-weight: 600; }
.cmp-table .cmp-cp { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.cmp-table td.cmp-haut { background: #ecfdf5; color: #15803d; font-weight: 700; }
.cmp-table td.cmp-bas { background: #fef2f2; color: #b91c1c; font-weight: 700; }

/* Blog */
.blog-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.blog-cat {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
    border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted);
    background: var(--bg); border: 1px solid var(--line); text-decoration: none;
    transition: background .12s, color .12s;
}
.blog-cat:hover { background: #eef2ff; color: var(--indigo-dark); }
.blog-cat.actif { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.blog-cat-n { background: rgba(255,255,255,.25); padding: 1px 7px; border-radius: 10px; font-size: 11px; }
.blog-cat:not(.actif) .blog-cat-n { background: #fff; color: var(--muted); }

.blog-grille {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.blog-carte {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; text-decoration: none; color: var(--ink);
    display: flex; flex-direction: column; transition: box-shadow .15s, transform .12s;
}
.blog-carte:hover { box-shadow: 0 16px 36px -16px rgba(15,15,50,.35); transform: translateY(-2px); }
.bc-image {
    height: 170px; background: linear-gradient(135deg, #6366f1, #818cf8) center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    font-size: 38px; color: rgba(255,255,255,.45);
}
.bc-corps { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bc-meta { font-size: 12px; color: var(--muted); }
.bc-cat { color: var(--indigo-dark); font-weight: 700; }
.bc-titre { font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.bc-extrait { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.bc-pied { margin-top: auto; font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* Article — page détail */
.article-page { padding-bottom: 40px; }
.article-cover {
    height: 360px; background: linear-gradient(135deg, #4f46e5, #818cf8) center/cover no-repeat;
}
.article-wrap { max-width: 760px; margin: 0 auto; padding: 36px 24px; }
.article-meta { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.article-titre { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.article-extrait {
    font-size: 18px; line-height: 1.6; color: #475569;
    border-left: 4px solid var(--indigo); padding: 0 0 0 18px; margin: 24px 0;
    font-weight: 500;
}
.article-contenu { font-size: 17px; line-height: 1.75; color: #1e293b; }
.article-contenu p { margin: 16px 0; }
.article-contenu h2 { font-size: 22px; font-weight: 800; margin: 32px 0 14px; color: var(--ink); }
.article-contenu h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.article-contenu ul, .article-contenu ol { margin: 16px 0 16px 24px; padding-left: 8px; }
.article-contenu li { margin: 6px 0; }
.article-contenu blockquote {
    margin: 20px 0; padding: 12px 18px; border-left: 4px solid var(--indigo);
    background: var(--bg); font-style: italic; color: #475569;
}
.article-contenu a { color: var(--indigo-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-contenu strong { color: var(--ink); font-weight: 700; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.tag-pill {
    font-size: 12px; padding: 4px 11px; border-radius: 999px;
    background: var(--bg); color: var(--muted); font-weight: 600;
}

/* Footer */
.site-footer {
    background: #fff; border-top: 1px solid var(--line);
    padding: 26px 0; font-size: 13px; color: var(--muted); margin-top: 40px;
}

/* Footer enrichi pour SEO / maillage interne */
.site-footer-pro {
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    color: #cbd5e1; padding: 50px 0 24px; margin-top: 60px;
}
.sfp-grid {
    display: grid; gap: 30px;
    grid-template-columns: 1.4fr repeat(4, 1fr);
}
@media (max-width: 980px) {
    .sfp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .sfp-grid { grid-template-columns: 1fr; gap: 22px; }
}
.sfp-col { display: flex; flex-direction: column; gap: 8px; }
.sfp-titre {
    font-size: 14px; font-weight: 800; color: #fff;
    margin-bottom: 6px; letter-spacing: -.01em;
}
.sfp-col a {
    color: #94a3b8; font-size: 13px; text-decoration: none;
    transition: color .14s;
}
.sfp-col a:hover { color: #fff; }
.sfp-col a strong { color: #c7d2fe; }
.sfp-tagline {
    font-size: 13px; line-height: 1.55; color: #94a3b8;
    max-width: 280px;
}
.sfp-bas {
    margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
    font-size: 12px; color: #64748b; display: flex; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}

/* Section villes populaires sur la home */
.section-villes-pop {
    padding: 60px 0; background: #f8fafc;
}
.villes-pop-grille {
    display: grid; gap: 12px; margin-top: 30px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.vp-carte {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 14px 16px; text-decoration: none; color: var(--ink);
    transition: transform .14s, box-shadow .14s, border-color .14s;
}
.vp-carte:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -14px rgba(15,15,50,.3);
    border-color: rgba(99,102,241,.4);
}
.vp-nom { font-size: 16px; font-weight: 800; color: var(--ink); }
.vp-cp { font-size: 12px; color: var(--muted); margin-top: 2px; }
.vp-prix { font-size: 17px; font-weight: 800; color: var(--indigo-dark); margin-top: 8px; }
.vp-prix-lbl { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 4px; }

/* Section FAQ */
.section-faq { padding: 50px 0; background: #fff; }
.faq-liste {
    max-width: 820px; margin: 30px auto 0;
    display: flex; flex-direction: column; gap: 10px;
}
.faq-item {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 0; overflow: hidden;
    transition: border-color .14s, box-shadow .14s;
}
.faq-item[open] {
    border-color: rgba(99,102,241,.4);
    box-shadow: 0 8px 20px -10px rgba(15,15,50,.15);
}
.faq-item summary {
    padding: 18px 22px; font-size: 15px; font-weight: 700;
    color: var(--ink); cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; font-size: 22px; font-weight: 400; color: var(--indigo);
    transition: transform .2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
    padding: 0 22px 20px; margin: 0;
    font-size: 14px; line-height: 1.65; color: var(--muted);
}
.faq-item p strong { color: var(--ink); }

/* FAQ ville (style cohérent avec section-faq) */
.ville-faq {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 22px 24px;
}
.ville-faq h2 { font-size: 16px; font-weight: 800; margin: 0 0 16px; color: var(--ink); }

/* Bloc "villes par département" sur l'index villes */
.villes-dept-bloc {
    display: grid; gap: 22px; margin-top: 20px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.vd-col {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 14px 16px;
}
.vd-titre {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 800; color: var(--ink);
    border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 8px;
}
.vd-titre a { color: var(--ink); text-decoration: none; }
.vd-titre a:hover { color: var(--indigo-dark); }
.vd-code {
    display: inline-block; background: var(--indigo); color: #fff;
    font-size: 11px; font-weight: 800; letter-spacing: .03em;
    padding: 3px 8px; border-radius: 999px;
}
.vd-liste { list-style: none; padding: 0; margin: 0; }
.vd-liste li { border-bottom: 1px dashed #f1f5f9; }
.vd-liste li:last-child { border-bottom: 0; }
.vd-liste li a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 0; text-decoration: none; color: var(--ink);
    font-size: 13px; transition: color .12s;
}
.vd-liste li a:hover { color: var(--indigo-dark); }
.vd-nom { font-weight: 600; }
.vd-prix { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.vd-plus a { color: var(--indigo-dark) !important; font-weight: 700; padding-top: 8px !important; }

/* Page À propos */
.apropos-sources {
    display: grid; gap: 14px; margin: 20px 0;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.ap-source {
    background: #f8fafc; border: 1px solid var(--line); border-radius: 12px;
    padding: 14px 16px;
}
.ap-source-titre {
    font-size: 14px; font-weight: 800; color: var(--indigo-dark);
    margin-bottom: 6px;
}
.ap-source p {
    font-size: 13px; color: var(--ink); line-height: 1.55; margin: 0;
}
.ap-source p strong { color: var(--ink); }
.ap-etapes {
    counter-reset: etape; list-style: none; padding: 0; margin: 18px 0;
    max-width: 780px;
}
.ap-etapes li {
    position: relative; padding: 12px 16px 12px 60px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    margin-bottom: 10px; font-size: 14px; line-height: 1.6; color: var(--ink);
    counter-increment: etape;
}
.ap-etapes li::before {
    content: counter(etape); position: absolute; left: 14px; top: 14px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--indigo); color: #fff;
    display: grid; place-items: center;
    font-size: 14px; font-weight: 800;
}
.ap-etapes li strong { color: var(--indigo-dark); }

/* Plan du site */
.plan-grid {
    display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.plan-col h2 {
    font-size: 14px; font-weight: 800; color: var(--indigo-dark);
    margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.plan-col ul { list-style: none; padding: 0; margin: 0; }
.plan-col li { padding: 5px 0; }
.plan-col a {
    color: var(--ink); text-decoration: none; font-size: 13.5px;
    transition: color .12s;
}
.plan-col a:hover { color: var(--indigo-dark); text-decoration: underline; }

/* ===== Page Marché — baisses de prix (Castorus) ===== */
.baisses-grille {
    display: grid; gap: 16px; margin-top: 4px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.baisse-card {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    overflow: hidden; text-decoration: none; color: var(--ink);
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform .14s, box-shadow .14s, border-color .14s;
}
.baisse-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(239,68,68,.4);
}
.bc-photo {
    height: 180px; background: #e2e8f0 center/cover no-repeat; position: relative;
}
.bc-baisse-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(220, 38, 38, 0.95); color: #fff;
    padding: 6px 12px; border-radius: 999px;
    font-weight: 800; font-size: 13.5px;
    box-shadow: 0 6px 16px rgba(220,38,38,.4);
}
.bc-multi-baisse {
    position: absolute; top: 12px; left: 12px;
    background: rgba(15, 23, 42, 0.78); color: #fff;
    padding: 4px 10px; border-radius: 999px;
    font-weight: 700; font-size: 11.5px; letter-spacing: .03em;
}
.bc-source {
    position: absolute; bottom: 10px; left: 12px;
    background: rgba(255,255,255,.92); color: #1e1b4b;
    padding: 3px 9px; border-radius: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.bc-corps {
    padding: 14px 16px 16px;
    display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.bc-prix-row {
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.bc-prix-actuel {
    font-size: 21px; font-weight: 800; color: var(--indigo-dark);
    letter-spacing: -.015em;
}
.bc-prix-initial {
    font-size: 12.5px; color: #94a3b8;
    text-decoration: line-through; font-weight: 600;
}
.bc-titre {
    font-weight: 700; font-size: 14px; line-height: 1.32;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 36px;
}
.bc-meta {
    font-size: 12px; color: var(--muted); display: flex;
    flex-wrap: wrap; gap: 8px;
}
.bc-pied {
    margin-top: auto; padding-top: 6px;
    font-size: 11.5px; color: var(--muted); font-style: italic;
}

/* Fiche annonce — résumé + historique */
.annonce-resume {
    display: grid; gap: 18px;
    grid-template-columns: 260px 1fr; align-items: center;
}
@media (max-width: 720px) { .annonce-resume { grid-template-columns: 1fr; } }
.ar-photo {
    height: 200px; background: #e2e8f0 center/cover no-repeat;
    border-radius: 12px;
}
.ar-prix-actuel {
    font-size: 30px; font-weight: 800; color: var(--indigo-dark);
    letter-spacing: -.02em;
}
.ar-prix-baisse {
    color: #b91c1c; font-weight: 700; font-size: 14px;
    margin-top: 6px;
}
.ar-prix-initial {
    font-size: 12.5px; color: var(--muted); margin-top: 2px;
    text-decoration: line-through;
}
.ar-meta {
    margin-top: 12px; font-size: 13px; color: var(--ink);
    display: flex; flex-wrap: wrap; gap: 12px;
}
.ar-actions { margin-top: 14px; }

.baisse-neg { color: #b91c1c; font-weight: 700; }
.baisse-pos { color: #15803d; font-weight: 700; }

/* ===== Recherche IA ===== */
.ria-form { margin-top: 28px; }
.ria-barre {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: 16px;
    padding: 10px 10px 10px 18px;
    box-shadow: 0 24px 60px -24px rgba(15, 15, 50, .55);
    border: 2px solid transparent;
    transition: border-color .15s;
}
.ria-barre:focus-within { border-color: var(--indigo); }
.ria-icone { font-size: 22px; }
.ria-barre input {
    flex: 1; border: 0; outline: 0; font-size: 16.5px;
    font-family: inherit; color: var(--ink); background: transparent;
    padding: 10px 0; min-width: 0;
}
.ria-btn { white-space: nowrap; }
@media (max-width: 560px) {
    .ria-barre { flex-wrap: wrap; padding: 10px; }
    .ria-barre input { width: 100%; flex: 1 1 100%; padding: 8px 6px; }
    .ria-btn { width: 100%; }
}

.ria-exemples {
    margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.ria-exemples-titre { font-size: 13px; opacity: .8; font-weight: 600; }
.ria-exemple {
    background: rgba(255,255,255,.12); color: #fff;
    padding: 7px 13px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; text-decoration: none;
    border: 1px solid rgba(255,255,255,.18);
    transition: background .14s;
    backdrop-filter: blur(4px);
}
.ria-exemple:hover { background: rgba(255,255,255,.24); }

.ria-compris {
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border: 1px solid #e0e7ff; border-radius: 14px;
    padding: 16px 18px; margin-bottom: 22px;
}
.ria-compris-titre {
    font-size: 13px; font-weight: 800; color: var(--indigo-dark);
    margin-bottom: 10px;
}
.ria-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ria-chip {
    background: #fff; border: 1px solid #c7d2fe; color: var(--ink);
    padding: 6px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 700;
    box-shadow: 0 2px 6px rgba(99,102,241,.12);
}
.ria-chip-vide { border-style: dashed; color: var(--muted); font-weight: 600; }

/* ===== Favoris ===== */
.fav-btn {
    position: absolute; bottom: 10px; right: 12px;
    width: 38px; height: 38px; border-radius: 50%;
    border: 0; cursor: pointer;
    background: rgba(255,255,255,.92);
    color: #cbd5e1; font-size: 20px; line-height: 1;
    display: grid; place-items: center;
    box-shadow: 0 4px 12px rgba(15,15,50,.25);
    transition: color .14s, transform .12s;
    z-index: 2;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.fav-actif { color: #ef4444; }
.nav-fav {
    display: inline-flex; align-items: center; gap: 4px; color: #ef4444 !important;
    padding: 8px 11px; border-radius: 9px; transition: background .13s;
}
.nav-fav:hover { background: #fef2f2 !important; }
.fav-badge {
    display: none; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: #ef4444; color: #fff; border-radius: 999px;
    font-size: 10.5px; font-weight: 800;
}

/* ===== Alerte email sur la recherche ===== */
.ria-alerte {
    margin-top: 26px;
    background: linear-gradient(135deg, #fff7ed, #fefce8);
    border: 1px solid #fed7aa; border-radius: 14px;
    padding: 18px 20px;
}
.ria-alerte-titre {
    font-size: 14.5px; font-weight: 800; color: #9a3412;
    margin-bottom: 4px;
}
.ria-alerte p { font-size: 13px; color: #7c2d12; margin: 0 0 12px; }
.ria-alerte-form { display: flex; gap: 10px; flex-wrap: wrap; }
.ria-alerte-form input[type="email"] {
    flex: 1; min-width: 220px;
    padding: 11px 14px; border: 1px solid #fed7aa; border-radius: 9px;
    font-size: 14px; font-family: inherit;
}
.ria-alerte-form input[type="email"]:focus { outline: 2px solid #f59e0b; border-color: #f59e0b; }
.ria-alerte-ok {
    background: #dcfce7; border: 1px solid #86efac; color: #166534;
    padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
    margin-top: 26px;
}

/* ═══════════════════════════════════════════════════════════════
   Couche de raffinement global — typographie, interactions, focus
   ═══════════════════════════════════════════════════════════════ */

/* Typographie : rendu premium et hiérarchie plus nette */
body {
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'ss01';
    text-rendering: optimizeLegibility;
}
h1, h2, h3, .section-h2, .section-title { text-wrap: balance; }
p { text-wrap: pretty; }

/* Sélection de texte aux couleurs de la marque */
::selection { background: rgba(99, 102, 241, .22); color: inherit; }

/* Scrollbars fines et discrètes (zones scrollables internes) */
.comps-scroll::-webkit-scrollbar,
.annonces-liste::-webkit-scrollbar,
.villes-sugg::-webkit-scrollbar,
.gal-miniatures::-webkit-scrollbar { width: 8px; height: 8px; }
.comps-scroll::-webkit-scrollbar-thumb,
.annonces-liste::-webkit-scrollbar-thumb,
.villes-sugg::-webkit-scrollbar-thumb,
.gal-miniatures::-webkit-scrollbar-thumb {
    background: #cbd5e1; border-radius: 99px;
}
.comps-scroll::-webkit-scrollbar-thumb:hover,
.annonces-liste::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Focus clavier accessible et cohérent partout */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--indigo);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Liens : transition douce uniforme */
a { transition: color .13s; }

/* Champs de formulaire : focus plus doux (anneau au lieu du outline dur) */
.field input:focus, .field select:focus,
.annonces-filtres select:focus, .annonces-filtres input:focus,
.villes-recherche input:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
}
.field input, .field select,
.annonces-filtres select, .annonces-filtres input,
.villes-recherche input {
    transition: border-color .14s, box-shadow .14s;
}
.field input:hover:not(:focus), .field select:hover:not(:focus) { border-color: #cbd5e1; }

/* Images d'annonces : léger zoom au survol de la carte */
.annonce-card .ac-photo, .baisse-card .bc-photo {
    transition: transform .35s ease;
    transform-origin: center;
    will-change: transform;
}
.annonce-card:hover .ac-photo, .baisse-card:hover .bc-photo { transform: scale(1.035); }
.annonce-card, .baisse-card { isolation: isolate; }
.annonce-card .ac-photo, .baisse-card .bc-photo { overflow: hidden; }

/* Nav active : lien de la page courante mis en évidence */
.site-nav a[aria-current="page"] { color: var(--indigo-dark); }

/* Hero : léger grain lumineux en haut pour la profondeur */
.hero { position: relative; }
.hero::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(165, 180, 252, .5), transparent);
    pointer-events: none;
}

/* Chips exemples (recherche IA) : micro-interaction */
.ria-exemple { transition: background .14s, transform .12s, border-color .14s; }
.ria-exemple:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.4); }

/* Badges de baisse : pulsation subtile pour attirer l'œil */
@media (prefers-reduced-motion: no-preference) {
    .bc-baisse-badge { animation: badge-pop .4s ease-out; }
    @keyframes badge-pop {
        0% { transform: scale(.85); opacity: 0; }
        100% { transform: scale(1); opacity: 1; }
    }
}

/* Tableaux : zébrage discret + coins arrondis propres */
table.comps tbody tr:nth-child(even) { background: rgba(248, 250, 252, .7); }
table.comps tbody tr:hover { background: #eef2ff; }

/* Pied de page : liens avec léger décalage au survol */
.sfp-col a { transition: color .14s, transform .14s; display: inline-block; }
.sfp-col a:hover { transform: translateX(2px); }

/* Stat tiles du hero : survol subtil */
.hs-stat { transition: background .18s, border-color .18s, transform .15s; }
.hs-stat:hover {
    background: rgba(255, 255, 255, .13);
    border-color: rgba(255, 255, 255, .26);
    transform: translateY(-2px);
}

/* Pagination custom : boutons plus généreux au doigt */
.pagination a, .pagination span, .pagination button {
    min-width: 38px; min-height: 38px;
}

/* Mobile : respiration verticale réduite mais régulière */
@media (max-width: 720px) {
    section { padding: 44px 0; }
    .section-outils, .section-process, .section-sources, .section-articles { padding: 48px 0; }
    .hero { padding: 44px 0 68px; }
    .hero-home { padding: 40px 0 60px; }
    .estim-card { padding: 20px 16px; }
    .cta-pro { padding: 28px 22px; }
    .wrap { padding: 0 18px; }
}

/* Mobile : cibles tactiles suffisantes */
@media (max-width: 720px) {
    .btn { padding: 13px 22px; }
    .ria-exemple { padding: 9px 14px; }
}

/* Cartes cliquables : curseur + états actifs cohérents */
.annonce-card:active, .baisse-card:active, .outil-carte:active,
.calc-carte:active, .ville-carte:active { transform: translateY(-1px) scale(.995); }

/* Réduction de mouvement : on désactive les translations décoratives */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* Badge score de rentabilité sur les cartes d'annonces */
.bc-renta {
    display: inline-flex; align-items: center; gap: 5px;
    align-self: flex-start;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border: 1px solid #c7d2fe; color: var(--indigo-dark);
    padding: 4px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .01em;
}
.bc-renta-excellent {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border-color: #86efac; color: #047857;
}

/* Fil d'Ariane sur fond sombre (hero) : version claire lisible */
.hero .breadcrumb, .annonces-hero .breadcrumb { color: rgba(199, 210, 254, .7); }
.hero .breadcrumb a, .annonces-hero .breadcrumb a { color: #c7d2fe; }
.hero .breadcrumb a:hover, .annonces-hero .breadcrumb a:hover { color: #fff; }
.hero .breadcrumb span, .annonces-hero .breadcrumb span { color: #fff; }

/* Fiche annonce : rangée source + scan dans le hero */
.ap-source-row {
    margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.ap-source-pill, .ap-scan-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .12); color: #e0e7ff;
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 7px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 600;
    backdrop-filter: blur(4px);
}
.ap-source-pill strong { color: #fff; }
.ap-scan-pill { font-size: 12.5px; color: #c7d2fe; }
.ap-source-lien {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; color: var(--indigo-dark);
    padding: 8px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 700;
    box-shadow: 0 8px 20px -8px rgba(15, 15, 50, .5);
    transition: transform .12s, box-shadow .15s;
}
.ap-source-lien:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(15, 15, 50, .55); }

/* Prix au m² à côté du prix + badges rentabilité sur les cartes */
.bc-prix-m2 {
    font-size: 12.5px; color: var(--muted); font-weight: 700;
    background: #f1f5f9; padding: 3px 8px; border-radius: 6px;
}
.bc-renta-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(79, 70, 229, .95); color: #fff;
    padding: 5px 11px; border-radius: 999px;
    font-weight: 800; font-size: 11.5px; letter-spacing: .02em;
    box-shadow: 0 6px 16px rgba(79, 70, 229, .4);
    backdrop-filter: blur(4px);
}
.bc-renta-badge-excellent {
    background: rgba(5, 150, 105, .95);
    box-shadow: 0 6px 16px rgba(5, 150, 105, .4);
}
.bc-renta {
    display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap;
    background: #eef2ff; color: var(--indigo-dark);
    padding: 5px 11px; border-radius: 8px;
    font-size: 12px; font-weight: 700; line-height: 1.4;
    align-self: flex-start;
}
.bc-renta-excellent { background: #ecfdf5; color: #059669; }

/* Scan de ville en direct (« recherche en cours ») */
.scan-live {
    display: flex; gap: 16px; align-items: flex-start;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border: 1px solid #c7d2fe; border-radius: 14px;
    padding: 18px 20px; margin-bottom: 20px;
}
.scan-live-titre { font-size: 15px; font-weight: 800; color: var(--indigo-dark); }
.scan-live p { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.55; }
.scan-live-spinner {
    flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px;
    border: 3px solid #c7d2fe; border-top-color: var(--indigo-dark);
    border-radius: 50%; animation: scan-rotation .8s linear infinite;
}
@keyframes scan-rotation { to { transform: rotate(360deg); } }

/* ===== Page Recherche : hero géant centré sur la barre ===== */
.ria-hero-geant { padding: 70px 0 80px; }
.ria-hero-geant .wrap { max-width: 900px; text-align: center; }
.ria-accroche { margin-bottom: 34px; }
.ria-hero-geant h1 {
    font-size: clamp(34px, 5.4vw, 58px); font-weight: 800;
    line-height: 1.06; letter-spacing: -.025em; margin-top: 16px;
}
.ria-hero-geant .lead {
    margin: 18px auto 0; max-width: 620px; font-size: 16.5px; line-height: 1.6;
}
.ria-hero-geant .lead strong { color: #fff; }
.ria-hero-geant .ria-form { margin-top: 0; }
.ria-hero-geant .ria-exemples { justify-content: center; margin-top: 22px; }

/* Barre de recherche surdimensionnée */
.ria-barre-geante {
    padding: 14px 14px 14px 24px; border-radius: 20px;
    box-shadow: 0 34px 80px -28px rgba(10, 8, 45, .75);
}
.ria-barre-geante .ria-icone { font-size: 28px; }
.ria-barre-geante input { font-size: 19px; padding: 14px 0; }
.ria-barre-geante .ria-btn { padding: 15px 30px; font-size: 16px; border-radius: 13px; }
@media (max-width: 560px) {
    .ria-barre-geante { padding: 12px; }
    .ria-barre-geante input { font-size: 16.5px; }
}

/* Bandeau des capacités du moteur */
.ria-capacites {
    margin-top: 40px; display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    text-align: left;
}
.ria-capacite {
    display: flex; flex-direction: column; gap: 2px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 13px; padding: 14px 16px;
    font-size: 12.5px; color: #c7d2fe; line-height: 1.45;
    backdrop-filter: blur(4px);
}
.ria-capacite span { font-size: 20px; margin-bottom: 4px; }
.ria-capacite strong { color: #fff; font-size: 13.5px; font-weight: 700; }

/* ===== Agent IA en recherche : overlay animé ===== */
.agent-overlay {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(15, 14, 45, .82);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
.agent-overlay.visible { opacity: 1; pointer-events: auto; }
.agent-boite {
    background: #fff; border-radius: 20px; padding: 34px 38px;
    max-width: 440px; width: calc(100% - 40px);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
    text-align: center;
}
.agent-avatar {
    width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 22px;
    background: linear-gradient(135deg, var(--indigo), #8b5cf6);
    display: grid; place-items: center; font-size: 38px;
    box-shadow: 0 12px 30px -8px rgba(99, 102, 241, .6);
    animation: agent-pulse 1.6s ease-in-out infinite;
}
@keyframes agent-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 12px 30px -8px rgba(99,102,241,.6); }
    50% { transform: scale(1.06); box-shadow: 0 18px 42px -8px rgba(99,102,241,.8); }
}
.agent-titre { font-size: 18px; font-weight: 800; color: var(--ink); }
.agent-etape {
    margin-top: 12px; min-height: 44px;
    font-size: 14.5px; color: var(--muted); line-height: 1.5;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.agent-etape span { animation: agent-fade .35s ease; }
@keyframes agent-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.agent-barre {
    margin-top: 18px; height: 6px; border-radius: 999px;
    background: #eef2ff; overflow: hidden;
}
.agent-barre i {
    display: block; height: 100%; width: 30%; border-radius: 999px;
    background: linear-gradient(90deg, var(--indigo), #8b5cf6);
    animation: agent-glisse 1.4s ease-in-out infinite;
}
@keyframes agent-glisse {
    0% { margin-left: -30%; } 100% { margin-left: 100%; }
}

/* ===== Widget de suggestions (bouton flottant + panneau) ===== */
.fb-bouton {
    position: fixed; right: 20px; bottom: 20px; z-index: 70;
    display: inline-flex; align-items: center; gap: 7px;
    background: linear-gradient(135deg, var(--indigo), #8b5cf6); color: #fff;
    border: 0; border-radius: 999px; cursor: pointer;
    padding: 12px 18px; font-family: inherit; font-size: 13.5px; font-weight: 700;
    box-shadow: 0 12px 28px -10px rgba(99, 102, 241, .7);
    transition: transform .14s, box-shadow .14s;
}
.fb-bouton:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(99, 102, 241, .8); }
@media (max-width: 560px) {
    .fb-bouton { right: 14px; bottom: 14px; padding: 12px; }
    .fb-bouton span { display: none; }
}

.fb-panneau {
    position: fixed; right: 20px; bottom: 78px; z-index: 71;
    width: min(370px, calc(100vw - 32px));
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 28px 60px -22px rgba(15, 15, 50, .5);
    padding: 16px 18px 18px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .16s, transform .16s, visibility .16s;
}
.fb-panneau.fb-ouvert { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 560px) { .fb-panneau { right: 14px; bottom: 70px; } }

.fb-entete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fb-entete strong { font-size: 15px; }
.fb-fermer {
    background: none; border: 0; cursor: pointer; font-size: 15px;
    color: var(--muted); padding: 4px 7px; border-radius: 7px; line-height: 1;
}
.fb-fermer:hover { background: var(--bg); color: var(--ink); }

.fb-types { display: flex; gap: 6px; margin-bottom: 10px; }
.fb-types label {
    flex: 1; text-align: center; cursor: pointer;
    font-size: 12.5px; font-weight: 600; color: var(--muted);
    border: 1px solid var(--line); border-radius: 9px; padding: 7px 4px;
    transition: background .12s, border-color .12s, color .12s;
}
.fb-types input { display: none; }
.fb-types label:has(input:checked) {
    background: #eef2ff; border-color: #c7d2fe; color: var(--indigo-dark);
}

.fb-panneau textarea, .fb-panneau input[type="email"] {
    width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
    border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
    resize: vertical;
}
.fb-panneau textarea:focus, .fb-panneau input[type="email"]:focus {
    outline: 2px solid var(--indigo); border-color: var(--indigo);
}
.fb-panneau input[type="email"] { margin-top: 10px; }

.fb-zone {
    margin-top: 10px; padding: 12px; text-align: center; cursor: pointer;
    border: 1.5px dashed var(--line); border-radius: 10px;
    font-size: 12.5px; color: var(--muted); font-weight: 600;
    transition: background .12s, border-color .12s;
}
.fb-zone:hover, .fb-zone-active { background: #eef2ff; border-color: var(--indigo); color: var(--indigo-dark); }

.fb-apercu { position: relative; margin-top: 10px; }
.fb-apercu:empty { display: none; }
.fb-apercu img {
    width: 100%; max-height: 160px; object-fit: cover;
    border-radius: 10px; border: 1px solid var(--line); display: block;
}
.fb-retirer {
    position: absolute; top: 7px; right: 7px;
    width: 26px; height: 26px; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(15, 23, 42, .8); color: #fff; font-size: 12px; line-height: 1;
}

.fb-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.fb-statut { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fb-succes { color: #059669; }
.fb-erreur { color: #dc2626; }

/* Pot de miel anti-robots : hors écran, invisible mais rempli par les bots */
.fb-pot {
    position: absolute; left: -9999px; width: 1px; height: 1px;
    overflow: hidden; opacity: 0; pointer-events: none;
}

/* ===== Résultats de recherche : barre tri / vue + carte ===== */
.ria-outils {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
    margin: 0 0 18px; padding: 12px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-card);
}
.ria-compte { margin: 0; font-size: 14px; color: var(--muted); }
.ria-tri { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 600; }
.ria-tri select {
    font-family: inherit; font-size: 13.5px; color: var(--ink);
    padding: 8px 32px 8px 12px; border: 1px solid var(--line); border-radius: 9px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none; -webkit-appearance: none; cursor: pointer;
}
.ria-tri select:focus { outline: 2px solid var(--indigo); border-color: var(--indigo); }
.ria-vues { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.ria-vue {
    padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--muted);
    background: #fff; text-decoration: none; transition: background .12s, color .12s;
}
.ria-vue + .ria-vue { border-left: 1px solid var(--line); }
.ria-vue:hover { background: var(--bg); color: var(--ink); }
.ria-vue-active { background: #eef2ff; color: var(--indigo-dark); }

.ria-carte-wrap {
    position: relative; margin-bottom: 20px;
    border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    box-shadow: var(--shadow-card);
}
#ria-carte { height: 460px; background: #e2e8f0; }
@media (max-width: 720px) { #ria-carte { height: 340px; } }
.ria-carte-vide {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(248, 250, 252, .85); font-size: 14px; color: var(--muted); font-weight: 600;
}
.ria-pin span {
    display: inline-block; white-space: nowrap; transform: translate(-50%, -100%);
    background: var(--indigo-dark); color: #fff; font-weight: 800; font-size: 12px;
    padding: 5px 9px; border-radius: 999px; border: 2px solid #fff;
    box-shadow: 0 6px 16px rgba(79, 70, 229, .45); cursor: pointer;
    transition: transform .12s;
}
.ria-pin span:hover { transform: translate(-50%, -100%) scale(1.08); }
.leaflet-popup-content { margin: 10px 12px; }
.ria-popup { display: block; width: 200px; color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.35; }
.ria-popup img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; display: block; }
.ria-popup strong { color: var(--indigo-dark); font-size: 15px; }
.ria-popup small { color: var(--muted); }
.baisse-card-survol { border-color: var(--indigo) !important; box-shadow: var(--shadow-card-hover) !important; transform: translateY(-3px); }
.baisses-grille-compacte { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Filtres explicites sous la barre d'outils des resultats */
.ria-filtres { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding: 12px 16px; margin: -6px 0 18px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; }
.ria-filtres label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ria-filtres select { font: inherit; font-size: 13px; font-weight: 600; color: var(--ink, #1a1a2e); padding: 7px 28px 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; min-width: 120px; }
.ria-filtres select:focus { outline: 2px solid var(--indigo); border-color: var(--indigo); }
.ria-filtres .ria-filtre-case { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: var(--ink, #1a1a2e); padding-bottom: 8px; cursor: pointer; }
.ria-filtres .ria-filtre-case input { width: 16px; height: 16px; accent-color: var(--indigo); }
.ria-filtres .btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 9px; }
.ria-filtres-reset { font-size: 12px; color: var(--muted); text-decoration: underline; padding-bottom: 9px; }
@media (max-width: 640px) {
  .ria-filtres { padding: 10px 12px; gap: 8px 10px; }
  .ria-filtres label { flex: 1 1 45%; }
  .ria-filtres select { min-width: 0; width: 100%; }
  .ria-filtres .btn-sm { flex: 1 1 100%; }
}

/* =====================================================================
   Design v2 (sept. 2026) : interface plus sobre. Un seul accent, surfaces
   plates, badges discrets, icônes SVG à la place des emojis.
   ===================================================================== */
:root {
    --indigo: #4f46e5;
    --indigo-dark: #4338ca;
    --indigo-soft: #eef2ff;
    --ink: #111827;
    --ink-2: #374151;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f7f7f8;
    --radius: 10px;
    --shadow-card: 0 1px 2px rgba(17, 24, 39, .06);
    --shadow-card-hover: 0 10px 24px -12px rgba(17, 24, 39, .25);
    --navy: #14122b;
}
body { color: var(--ink); background: var(--bg); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.015em; }

/* Icônes inline */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -.16em; flex-shrink: 0; }
h1 .ic, h2 .ic, h3 .ic, .calc-cat-titre .ic, .section-h2 .ic { width: .9em; height: .9em; margin-right: .1em; color: var(--indigo); }
.oc-icone .ic, .cc-icone .ic, .ria-capacite span .ic, .card .ico .ic, .ap-source-titre .ic { width: 22px; height: 22px; color: var(--indigo); }
.ria-icone .ic { width: 22px; height: 22px; color: var(--indigo); }
.nav-plus-panel .ic { width: 15px; height: 15px; color: var(--muted); margin-right: 6px; }
.btn .ic, .ria-btn .ic { width: 16px; height: 16px; }
.sfp-titre .ic { width: 16px; height: 16px; color: #a5b4fc; }
.ria-capacite span .ic { color: #c7d2fe; }

/* Marque */
.brand { font-weight: 700; gap: 10px; }
.brand .logo {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--indigo); box-shadow: none; color: #fff;
}
.brand .logo .ic { width: 18px; height: 18px; color: #fff; }
.brand-ai {
    background: none; color: var(--indigo); font-size: inherit; font-weight: 700;
    padding: 0; letter-spacing: -.01em; border-radius: 0; text-transform: lowercase; display: inline;
}
.brand-nom { gap: 0; }
.brand-ai::before { content: "."; color: var(--indigo); }

/* Boutons */
.btn, .ria-btn {
    background: var(--indigo); box-shadow: none; border-radius: 9px; font-weight: 600;
}
.btn:hover, .ria-btn:hover { filter: none; background: var(--indigo-dark); transform: none; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg); }

/* Header */
.site-header { background: rgba(255,255,255,.92); }
.site-nav a { font-weight: 500; color: var(--ink-2); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--bg); }

/* Heros : fond uni, plus de halos */
.hero, .hero-home, .ria-hero, .ria-hero-geant, .annonces-hero, .ap-hero, .pro-entete, .agence-entete, .ville-entete {
    background: var(--navy);
}
.hero::before, .hero-home .hero-deco, .hero::after { display: none !important; }
.hero h1 .grad, .grad { background: none; -webkit-text-fill-color: #c7d2fe; color: #c7d2fe; }
.hero p.lead, .hero-home .lead, .ria-hero-geant .lead { color: #a5b4fc; }
.section-eyebrow {
    background: none; padding: 0; border-radius: 0; color: var(--indigo);
    font-size: 12px; letter-spacing: .1em; font-weight: 600;
}
.hero .section-eyebrow, .hero-home .section-eyebrow { color: #a5b4fc; }

/* Cartes et surfaces */
.card, .baisse-card, .estim-card, .ria-outils, .ria-filtres, .outil-carte, .blog-carte, .vc-card,
.calc-carte, .pro-card, .agence-item, .dept-carte, .panel, .report-panel, .metric, .q-tile {
    border-radius: var(--radius); box-shadow: var(--shadow-card); border: 1px solid var(--line);
}
.baisse-card:hover, .outil-carte:hover, .blog-carte:hover { transform: none; box-shadow: var(--shadow-card-hover); border-color: #d1d5db; }
.oc-icone { background: var(--indigo-soft); border-radius: 9px; width: 44px; height: 44px; }

/* Recherche IA */
.ria-compris { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ria-compris-titre { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.ria-chip { border-color: var(--line); box-shadow: none; font-weight: 600; background: var(--bg); }
.ria-chip .ic { width: 14px; height: 14px; color: var(--indigo); margin-right: 4px; }
.ria-barre, .ria-barre-geante { border-radius: 14px; box-shadow: 0 20px 50px -30px rgba(0,0,0,.6); }
.ria-capacite { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); border-radius: 10px; backdrop-filter: none; }
.ria-capacite span { margin-bottom: 6px; }
.ria-alerte { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ria-alerte-titre { color: var(--ink); }
.ria-alerte p { color: var(--muted); }
.ria-tri select, .ria-filtres select { border-radius: 8px; font-weight: 500; }
.ria-vues a, .ria-vue { border-radius: 8px; }
.scan-live { border-radius: var(--radius); }

/* Cartes d'annonces */
.bc-renta, .bc-renta-excellent {
    background: var(--indigo-soft); border: 0; color: var(--indigo-dark);
    border-radius: 6px; font-weight: 600; padding: 3px 8px; letter-spacing: 0;
}
.bc-renta-excellent { background: #ecfdf5; color: #047857; }
.bc-renta .ic { width: 12px; height: 12px; }
.bc-source { border-radius: 5px; font-weight: 600; background: rgba(255,255,255,.94); }
.bc-baisse-badge, .badge-baisse, .baisse-badge { border-radius: 6px; font-weight: 600; }
.bc-pied, .bc-scan, .scan-il-y-a { font-style: normal; color: #9ca3af; font-weight: 500; }
.fav-btn { box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.badge { border-radius: 6px; font-weight: 600; }

/* Blocs "source de données", sections mission... */
.ap-source-titre, .cf-source { font-weight: 600; }
.calc-cat-titre { font-weight: 700; }
.tag-pill, .tag-dev { border-radius: 6px; background: var(--bg); border-color: var(--line); color: var(--ink-2); font-weight: 600; }
.article-cover { background: var(--navy); }
.blog-cat, .section-cta-pro { border-radius: var(--radius); }

/* Pied de page */
.site-footer-pro { background: var(--navy); }

/* Formulaires */
input:not([type="checkbox"]):not([type="radio"]), select, textarea { border-radius: 8px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(79,70,229,.35); outline-offset: 1px; border-color: var(--indigo); }


/* =====================================================================
   Page d'accueil v2 : fond clair, une seule colonne de lecture, aucun
   effet decoratif. Tout est prefixe hv2- pour ne pas toucher au reste.
   ===================================================================== */
.hv2 { background: #fff; color: var(--ink); }
.hv2 h1 { font-size: clamp(32px, 4vw, 46px); max-width: 16ch; line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
.hv2 h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 0 0 14px; }
.hv2-sur { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.hv2-texte { font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 56ch; }
.hv2-lien { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--indigo); margin-top: 16px; }
.hv2-lien .ic { width: 16px; height: 16px; transition: transform .15s; }
.hv2-lien:hover .ic { transform: translateX(3px); }
.hv2-section { padding: 72px 0; border-top: 1px solid var(--line); }
.hv2-section-gris { background: var(--bg); }
.hv2-wrap-etroit { max-width: 760px; }
.hv2-deux-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.hv2-entete-ligne { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.hv2-entete-ligne h2 { margin: 0; }
.hv2-entete-ligne .hv2-lien { margin: 0 0 6px; }

/* Hero */
.hv2-hero { padding: 64px 0 72px; background: #fff; }
.hv2-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hv2-lead { margin-top: 20px; font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 54ch; }
.hv2-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hv2-chiffres { display: flex; gap: 32px; margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.hv2-chiffres div { display: flex; flex-direction: column; gap: 2px; }
.hv2-chiffres dt { font-size: 20px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hv2-chiffres dd { margin: 0; font-size: 13px; color: var(--muted); }

.hv2-hero-form {
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px;
    box-shadow: 0 1px 2px rgba(17,24,39,.05), 0 12px 32px -20px rgba(17,24,39,.25);
}
.hv2-form-entete { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.hv2-form-entete h2 { font-size: 18px; margin: 0; }
.hv2-form-entete span { font-size: 12.5px; color: var(--muted); }
.hv2-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; position: relative; }
.hv2-form label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.hv2-form input, .hv2-form select {
    font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; width: 100%;
}
.hv2-form-ligne { display: grid; grid-template-columns: 1.2fr 1fr .8fr .8fr; gap: 10px; }
.hv2-form .btn-full { width: 100%; margin-top: 4px; padding: 13px; font-size: 15px; }
.hv2-form-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.hv2-hero-form .ac-list { top: 100%; }

/* Recherche : exemples */
.hv2-exemples { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hv2-exemples a {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 500; font-size: 15px;
    transition: border-color .15s, background .15s;
}
.hv2-exemples a:hover { border-color: #9ca3af; background: var(--bg); }
.hv2-exemples .ic { width: 16px; height: 16px; color: var(--muted); }

/* Outils */
.hv2-outils { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 28px; }
.hv2-outils a { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: #fff; color: var(--ink); transition: background .15s; }
.hv2-outils a:hover { background: var(--bg); }
.hv2-outils .ic { width: 22px; height: 22px; color: var(--indigo); margin-bottom: 6px; }
.hv2-outils strong { font-size: 15.5px; font-weight: 600; }
.hv2-outils span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* Méthode */
.hv2-etapes { list-style: none; margin: 0; padding: 0; counter-reset: etape; display: flex; flex-direction: column; }
.hv2-etapes li { counter-increment: etape; display: grid; grid-template-columns: 36px 1fr; gap: 4px 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.hv2-etapes li:first-child { border-top: 0; padding-top: 0; }
.hv2-etapes li::before {
    content: counter(etape); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.hv2-etapes strong { font-size: 15.5px; font-weight: 600; }
.hv2-etapes span { font-size: 14px; color: var(--muted); line-height: 1.55; }
.hv2-sources { margin: 44px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Villes */
.hv2-villes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hv2-villes a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 16px 18px; background: #fff; color: var(--ink); }
.hv2-villes a:hover { background: var(--bg); }
.hv2-ville-nom { font-weight: 600; font-size: 15px; }
.hv2-ville-nom small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 4px; }
.hv2-ville-prix { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink-2); white-space: nowrap; }

/* Articles */
.hv2-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hv2-articles a { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.hv2-articles a:hover { border-color: #9ca3af; }
.hv2-art-meta { font-size: 12.5px; color: var(--muted); }
.hv2-articles strong { font-size: 16px; font-weight: 600; line-height: 1.35; }
.hv2-art-extrait { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.hv2-art-lecture { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--muted); }

/* FAQ */
.hv2-faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.hv2-faq details:last-child { border-bottom: 1px solid var(--line); }
.hv2-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.hv2-faq summary::-webkit-details-marker { display: none; }
.hv2-faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 20px; }
.hv2-faq details[open] summary::after { content: '−'; }
.hv2-faq p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.65; font-size: 15px; max-width: 64ch; }

/* Pro */
.hv2-pro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 36px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.hv2-pro h2 { margin-bottom: 10px; }
.hv2-pro-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

@media (max-width: 960px) {
    .hv2-hero-grid, .hv2-deux-col, .hv2-pro { grid-template-columns: 1fr; gap: 32px; }
    .hv2-outils, .hv2-articles { grid-template-columns: 1fr 1fr; }
    .hv2-villes { grid-template-columns: 1fr 1fr; }
    .hv2-pro-actions { justify-content: flex-start; }
}
@media (max-width: 600px) {
    .hv2-hero { padding: 40px 0 48px; }
    .hv2-section { padding: 52px 0; }
    .hv2-form-ligne { grid-template-columns: 1fr 1fr; }
    .hv2-chiffres { flex-wrap: wrap; gap: 18px 28px; }
    .hv2-outils, .hv2-articles, .hv2-villes { grid-template-columns: 1fr; }
    .hv2-entete-ligne { flex-direction: column; align-items: flex-start; }
}

/* Accueil : heros de recherche (agent) */
.hv2-hero-recherche { padding: 72px 0 64px; }
.hv2-hero-recherche .wrap { max-width: 860px; }
.hv2-hero-recherche h1 { max-width: 22ch; font-size: clamp(30px, 3.8vw, 44px); }
.hv2-barre {
    display: flex; align-items: center; gap: 10px; margin-top: 30px; padding: 8px 8px 8px 16px;
    border: 1px solid #d1d5db; border-radius: 12px; background: #fff;
    box-shadow: 0 1px 2px rgba(17,24,39,.05), 0 16px 40px -24px rgba(17,24,39,.35);
}
.hv2-barre:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.hv2-barre .ic { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.hv2-barre input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 17px; padding: 10px 0; min-width: 0; background: transparent; }
.hv2-barre .btn { padding: 12px 20px; white-space: nowrap; }
.hv2-exemples-ligne { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hv2-exemples-ligne a {
    display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
    font-size: 13px; color: var(--ink-2); background: #fff;
}
.hv2-exemples-ligne a:hover { border-color: #9ca3af; color: var(--ink); }
.hv2-agent-etapes {
    list-style: none; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line);
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: ag;
}
.hv2-agent-etapes li { counter-increment: ag; display: flex; flex-direction: column; gap: 4px; padding-left: 34px; position: relative; }
.hv2-agent-etapes li::before {
    content: counter(ag); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
    border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.hv2-agent-etapes strong { font-size: 14.5px; font-weight: 600; }
.hv2-agent-etapes span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.hv2-section-gris .hv2-hero-form { background: #fff; }
@media (max-width: 720px) {
    .hv2-barre { flex-wrap: wrap; padding: 10px; }
    .hv2-barre input { width: 100%; flex: 1 1 100%; padding: 8px 4px; }
    .hv2-barre .btn { width: 100%; }
    .hv2-barre .ic { display: none; }
    .hv2-agent-etapes { grid-template-columns: 1fr; gap: 14px; }
}


/* ===== Espace pro v2 : tableau de bord, leads, flux ===== */
.pro-page { padding: 8px 0 60px; }
.pro-nav { flex-wrap: wrap; gap: 4px; }
.pro-nav a { font-weight: 500; }
.pro-nav a.actif { background: var(--bg); color: var(--ink); font-weight: 600; }
.pro-nav-deco { margin-left: auto; }
.pro-titre { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 26px 0 18px; flex-wrap: wrap; }
.pro-titre h1 { font-size: 26px; }
.pro-tuiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 26px; }
.pro-tuiles div { background: #fff; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.pro-tuiles strong { font-size: 22px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pro-tuiles span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.pro-bloc { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin-bottom: 20px; }
.pro-bloc h2 { font-size: 17px; margin: 0; }
.pro-bloc-entete { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pro-bloc-entete .hv2-lien { margin: 0; }
.pro-bloc-note { font-size: 12.5px; color: var(--muted); }
.pro-bloc-intro { font-size: 14px; color: var(--ink-2); margin: -6px 0 14px; max-width: 80ch; }
.pro-bloc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pro-vide { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; max-width: 76ch; margin: 0; }
.pro-table td, .pro-table th { vertical-align: top; }
.pro-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pro-table-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pro-badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.pro-badge-vert { background: #ecfdf5; color: #047857; }
.pro-badge-indigo { background: var(--indigo-soft); color: var(--indigo-dark); }
.pro-badge-baisse { background: #fef2f2; color: #b91c1c; }
.pro-lien-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--indigo); cursor: pointer; }
.pro-lien-btn:hover { text-decoration: underline; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 7px; }
.pro-deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.pro-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.pro-form label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.pro-form input { font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 8px; width: 100%; }
@media (max-width: 960px) { .pro-tuiles { grid-template-columns: repeat(3, 1fr); } .pro-deux-col { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .pro-tuiles { grid-template-columns: 1fr 1fr; } }


/* ===== Fiche annonce : carte 3D du quartier ===== */
.c3d { margin-top: 24px; }
.c3d-entete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.c3d-entete h2 { font-size: 18px; margin: 0; }
.c3d-note { font-size: 12.5px; color: var(--muted); }
.c3d-carte-wrap { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #eef0f3; }
.c3d-carte { height: 440px; width: 100%; }
.c3d-chargement { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--muted); pointer-events: none; }
.c3d-controles { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 5; }
.c3d-controles button {
    height: 32px; min-width: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-2);
    font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.c3d-controles button .ic { width: 15px; height: 15px; }
.c3d-controles button.actif { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.c3d-pin {
    background: var(--indigo); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 8px;
    box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); position: relative; white-space: nowrap;
}
.c3d-pin::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: var(--indigo); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.c3d-poi { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: pointer; }
.c3d-lieux { margin-top: 12px; }
.c3d-lieux-onglets { display: flex; flex-wrap: wrap; gap: 6px; }
.c3d-lieux-onglets button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.c3d-lieux-onglets button.actif { background: var(--ink); color: #fff; border-color: var(--ink); }
.c3d-lieux-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; }
.c3d-lieux-liste li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.c3d-lieux-liste li span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c3d-lieux-liste em { font-style: normal; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.c3d-point { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.maplibregl-ctrl-attrib { font-size: 10px; }
@media (max-width: 640px) { .c3d-carte { height: 340px; } }
/* Bloc application mobile (accueil) */
.hv2-app-bientot { cursor: default; opacity: .7; }
.hv2-app-note { font-size: 12.5px; color: #6b7280; margin: 10px 0 0; line-height: 1.45; }

/* ===== Fiche d'analyse d'un site d'agence (/agences/site/{domaine}) ===== */
.sa-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.vs-stat-muet { opacity: .55; }
.sa-grille { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 20px; }
.sa-panel { margin-top: 20px; }
.sa-grille .panel { margin: 0; min-width: 0; }
.sa-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sa-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.sa-table td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sa-table td small { display: block; color: var(--muted); font-size: 11.5px; }
.sa-table a { color: var(--indigo-dark); font-weight: 700; text-decoration: none; }
.sa-table tr:hover td { background: #eef2ff; }
.sa-ecart { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f1f5f9; color: var(--muted); }
.sa-ecart.plus { background: #fee2e2; color: #b91c1c; }
.sa-ecart.moins { background: #dcfce7; color: #15803d; }
.sa-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.sa-barres { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sa-barre-lbl { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.sa-barre-lbl span:first-child { font-weight: 700; }
.sa-barre-lbl span:last-child { color: var(--muted); }
.sa-barre { height: 8px; border-radius: 999px; background: #eef2ff; overflow: hidden; }
.sa-barre i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6366f1, #a78bfa); }
.sa-canvas { height: 260px; }
.sa-baisses { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.sa-baisse { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; transition: background .12s; }
.sa-baisse:hover { background: #eef2ff; }
.sa-baisse-pct { flex: 0 0 auto; padding: 8px 10px; border-radius: 10px; background: #fee2e2; color: #b91c1c; font-weight: 800; font-size: 15px; }
.sa-filtres { display: flex; gap: 8px; flex-wrap: wrap; }
.sa-filtres select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 13px; background: #fff; }
.sa-annonces { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.sa-pagination { margin-top: 18px; }
.ac-baisse { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-size: 12px; font-weight: 800; vertical-align: middle; }
.agence-sous a { color: inherit; text-decoration: underline; }
.agence-item .ai-badge { display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 999px; background: #e0e7ff; color: #3730a3; font-size: 11.5px; font-weight: 700; }
.agence-item.suivie { border-left: 3px solid var(--indigo); }
@media (max-width: 860px) {
    .sa-grille { grid-template-columns: 1fr; }
    .sa-table { display: block; overflow-x: auto; }
}

/* ===== /recherche : barre de l'agent ===== */
@property --hv3-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes hv3-tourne { to { --hv3-a: 360deg } }
@keyframes hv3-eclat { 0%, 60% { left: -60% } 100% { left: 130% } }
@keyframes hv3-monte { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }
.ria-hero-geant { background: radial-gradient(1000px 500px at 50% -20%, #4338ca 0%, transparent 60%), #1e1b4b; }
.ria-halo { position: relative; border-radius: 18px; padding: 2px; background: conic-gradient(from var(--hv3-a, 0deg), #6366f1, #fbbf24, #a855f7, #6366f1); animation: hv3-tourne 6s linear infinite; box-shadow: 0 30px 70px -25px rgba(0,0,0,.7), 0 0 70px -15px rgba(99,102,241,.55); }
.ria-halo .ria-barre, .ria-halo .ria-barre-geante { border: 0; border-radius: 16px; box-shadow: none; margin: 0; }
.ria-hero-geant .ria-icone { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff; flex-shrink: 0; }
.ria-hero-geant .ria-icone svg { width: 24px; height: 24px; }
.ria-hero-geant .ria-btn { background: linear-gradient(135deg, #4f46e5, #7c3aed); position: relative; overflow: hidden; }
.ria-hero-geant .ria-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: hv3-eclat 3.5s ease-in-out infinite; }
.ria-hero-geant .ria-barre input::placeholder { color: #64748b; }
.ria-hero-geant .ria-exemple { backdrop-filter: blur(6px); }
.ria-hero-geant .ria-accroche > *, .ria-hero-geant .ria-form, .ria-hero-geant .ria-exemples, .ria-hero-geant .ria-capacites { animation: hv3-monte .8s cubic-bezier(.2,.7,.2,1) both; }
.ria-hero-geant .ria-form { animation-delay: .15s } .ria-hero-geant .ria-exemples { animation-delay: .25s } .ria-hero-geant .ria-capacites { animation-delay: .35s }
.hero-compact .ria-halo { border-radius: 16px; }

/* p10 : fiche agence, annuaire, écart marché — largeurs desktop repassées
   dans leur @media pour ne pas casser le mobile (bug corrigé le 22/09). */
.vs-stat-cher .vs-val { color: #b91c1c; }
.agences-suivies-only { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.agences-suivies-only input { accent-color: var(--indigo); }
.agence-item .ai-nb { float: right; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--indigo); color: #fff; }
.agence-item .ai-badge-gris { background: #f1f5f9; color: var(--muted); }
.agence-item .ai-badge-attente { background: #fef3c7; color: #92400e; }
.sa-pagination nav { display: flex; justify-content: center; }
@media (min-width: 881px) {
    .agences-layout { grid-template-columns: 400px 1fr; }
    .agences-liste { max-height: 640px; }
    .agences-carte #map-agences { height: 640px; }
}
@media (max-width: 880px) {
    .agences-filtres { gap: 8px; }
    .agences-filtres select, .agences-filtres input { flex: 1 1 auto; min-width: 0; }
    .agences-suivies-only { flex-basis: 100%; order: 3; }
    .agences-compte { margin-left: 0; flex-basis: 100%; order: 4; }
    .agences-liste { max-height: 420px; }
}

/* Logos des sites d'agences */
.ai-logo { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; float: left; margin: 1px 10px 0 0; background: #fff; border: 1px solid var(--line); }
.agence-item { overflow: hidden; }
.agence-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ===== Refonte annuaire /agences (22/09) : cartes, avatars, carte plus lisible ===== */
.agences-stats-hero { display: flex; gap: 30px; margin-top: 18px; }
.agences-stats-hero strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.agences-stats-hero span { font-size: 12.5px; color: #a5b4fc; }

.agences-panel { padding: 22px; }
.agences-filtres select, .agences-filtres input { border-radius: 11px; }
.agences-filtres .btn { border-radius: 11px; }

.agence-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 16px; border-bottom: 1px solid var(--line);
    transition: background .12s;
}
.agence-item:hover { background: #f5f6ff; }
.agence-item .ai-corps { min-width: 0; flex: 1; }
.agence-item .ai-nom {
    font-weight: 700; font-size: 13.5px; color: var(--ink);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.agence-item .ai-adresse { font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agence-item.suivie { border-left: 3px solid var(--indigo); padding-left: 13px; }

.ai-avatar {
    position: relative; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    color: #fff; font-weight: 800; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.ai-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.ai-avatar-lettre { position: relative; z-index: 0; pointer-events: none; }

.ai-badge {
    display: inline-flex; align-items: center; margin-top: 6px; padding: 3px 10px;
    border-radius: 999px; background: #e0e7ff; color: #3730a3; font-size: 11px; font-weight: 700;
}
.ai-badge-attente { background: #fef3c7; color: #92400e; }
.ai-badge-gris { background: #f1f5f9; color: var(--muted); }
.ai-nb { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--indigo); color: #fff; }

/* Carte : bulles plus discrètes pour éviter l'effet « amas violet » en vue France entière */
.cl-bulle { box-shadow: 0 4px 12px rgba(79, 70, 229, .4); opacity: .94; }
.cl-bulle::after { border-color: rgba(99, 102, 241, .28); }
.cl-petit { font-size: 11.5px; }
.cl-moyen { font-size: 13px; }
.cl-grand { font-size: 14.5px; }

/* Popups carte */
.leaflet-popup-content { min-width: 190px; font-size: 13px; }
.pp-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pp-tete .ai-avatar { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; }
.pp-tete strong { font-size: 13px; }
.pp-ligne { color: var(--muted); font-size: 12.5px; margin-bottom: 2px; }
.pp-ligne a { color: var(--indigo); }
.popup-fiche { display: inline-block; margin-top: 6px; font-weight: 700; font-size: 12.5px; }

@media (max-width: 880px) {
    .agences-stats-hero { gap: 20px; flex-wrap: wrap; }
}
.ria-signaler { margin-left: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.ria-signaler:hover { border-color: var(--indigo); color: var(--indigo-dark); }
.ria-signaler:disabled { cursor: default; color: #15803d; border-color: #86efac; background: #f0fdf4; }

/* ===== Finitions mobile (23/09) ===== */
.nav-mobile-extra { display: none; }
@media (max-width: 960px) {
    .nav-toggle { position: relative; z-index: 60; }
    .site-nav.ouvert .nav-mobile-extra, .site-nav[data-ouvert] .nav-mobile-extra { display: block; }
    .nav-mobile-extra { display: block; padding: 14px 16px 24px; border-top: 1px solid var(--line); margin-top: 8px; }
    .nav-mobile-extra a { display: block; padding: 11px 0; font-weight: 600; color: var(--ink); }
    .nav-mobile-extra a.btn { display: flex; justify-content: center; color: #fff; margin-bottom: 8px; padding: 12px; }
    .site-nav > a, .nav-plus-panel > a { font-size: 15px; }
}
@media (max-width: 640px) {
    .hero h1, .hero-compact h1 { font-size: 27px; line-height: 1.15; }
    .hero .lead, .hero-compact .lead { font-size: 15px; line-height: 1.5; }
    .hero, .hero-compact { padding-top: 26px; padding-bottom: 60px; }
    .hv3-hero h1 { font-size: 31px; }
    .hv3-hero .lead { font-size: 15px; }
    .hv3-preuves div strong { font-size: 22px; }
    .agences-panel { padding: 14px; margin-top: -40px; }
    .ville-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .vs-stat { padding: 12px; }
    .vs-stat .vs-val { font-size: 20px; }
    .agences-filtres select, .agences-filtres input, .agences-filtres .btn { width: 100%; }
    .annonces-grille, .sa-annonces { grid-template-columns: 1fr; }
    .btn { padding: 11px 16px; }
    .site-footer-pro .sfp-grid { grid-template-columns: 1fr; gap: 18px; }
    .panel { padding: 14px; }
    .panel h2 { font-size: 15px; }
    .ria-outils { flex-wrap: wrap; gap: 10px; }
    .ria-signaler { margin: 8px 0 0; display: inline-block; }
    .ap-source-row { flex-wrap: wrap; gap: 8px; }
    .breadcrumb { font-size: 12px; }
}

/* ===== Comptes visiteurs + menu mobile (23/09) ===== */

.nav-mobile-extra a.btn { background: var(--indigo) !important; color: #fff !important; }
.nav-mobile-extra a.btn-clair { background: #eef2ff !important; color: var(--indigo-dark) !important; }
.cpt-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.cpt-form { margin-top: -56px; }
.cpt-form h2 { font-size: 20px; margin-bottom: 14px; }
.cpt-form label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.cpt-form input { display: block; width: 100%; margin-top: 5px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; font: inherit; font-size: 16px; }
.cpt-btn { width: 100%; justify-content: center; padding: 13px; margin-top: 4px; }
.cpt-alt { margin-top: 14px; font-size: 14px; }
.cpt-legal { font-size: 12px; color: var(--muted); margin-top: 8px; }
.cpt-avantages { padding: 8px 0; }
.cpt-avantages h2 { font-size: 20px; margin-bottom: 14px; }
.cpt-avantages ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cpt-avantages li { display: flex; gap: 12px; align-items: flex-start; }
.cpt-avantages li svg { width: 22px; height: 22px; color: var(--indigo); flex-shrink: 0; margin-top: 2px; }
.cpt-avantages strong { display: block; font-size: 15px; }
.cpt-avantages span { font-size: 13.5px; color: var(--muted); }
.cpt-bloc { margin-bottom: 26px; }
.cpt-bloc h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 10px; }
.cpt-bloc h2 svg { width: 18px; height: 18px; color: var(--indigo); }
.cpt-lien { background: none; border: 0; padding: 0; color: #b91c1c; font: inherit; font-size: 13px; cursor: pointer; }
.hv3-compte { padding: 10px 0 40px; }
.hv3-compte-carte { background: linear-gradient(135deg, #1e1b4b, #4338ca); color: #fff; border-radius: 22px; padding: 34px 36px; display: grid; grid-template-columns: 1fr; box-shadow: 0 30px 60px -30px rgba(30,27,75,.6); }
.hv3-compte-carte .sur { color: #c7d2fe; }
.hv3-compte-carte h2 { font-size: clamp(22px, 3vw, 30px); margin: 6px 0 16px; letter-spacing: -.02em; }
.hv3-compte-liste { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; font-size: 15px; }
.hv3-compte-liste li { display: flex; align-items: center; gap: 10px; }
.hv3-compte-liste svg { width: 18px; height: 18px; color: #fbbf24; }
.hv3-compte-carte .btn { background: #fff; color: var(--indigo-dark); }
.hv3-compte-lien { margin-left: 14px; color: #c7d2fe; font-size: 14px; }
.ria-compte { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 14px; padding: 16px 20px; border-radius: 14px; background: #eef2ff; border: 1px solid #c7d2fe; font-size: 14px; }
.ria-compte .btn { white-space: nowrap; }
@media (max-width: 760px) {
    .cpt-grille { grid-template-columns: 1fr; }
    .cpt-form { margin-top: -40px; }
    .hv3-compte-carte { padding: 24px 20px; }
    .ria-compte { flex-direction: column; align-items: flex-start; }
    .site-nav > .nav-fav { display: none; }
}
@media (max-width: 900px) { .nav-compte { display: none !important; } }

/* Bouton « Créer un compte » du header : nouveau CTA compte (23/09 v2) */
.nav-compte {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 15px; border-radius: 10px; margin-right: 8px;
    font-weight: 700; font-size: 13.5px; color: var(--indigo-dark);
    border: 1.5px solid #c7d2fe; white-space: nowrap; flex-shrink: 0;
    transition: background .13s, border-color .13s;
}
.nav-compte:hover { background: #eef2ff; border-color: var(--indigo); text-decoration: none; }
.nav-compte svg { width: 15px; height: 15px; }
