:root {
    --indigo: #6366f1;
    --indigo-dark: #4f46e5;
    --ink: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f8fafc;
    --radius: 14px;
}
* { 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: #fff; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); }
.brand .logo {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--indigo), #818cf8);
    display: grid; place-items: center; font-size: 18px;
}
.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;
}
.estim-card h2 { font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.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: var(--indigo); color: #fff; font-weight: 600; font-size: 15px;
    padding: 12px 22px; border: 0; border-radius: 9px; cursor: pointer; font-family: inherit;
    transition: background .15s;
}
.btn:hover { background: var(--indigo-dark); }
.btn-full { width: 100%; margin-top: 16px; padding: 13px; }
.btn-ghost { background: #fff; color: var(--indigo-dark); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg); }

/* 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;
}
.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: 18px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.site-nav a:hover { color: var(--indigo-dark); }
@media (max-width: 1024px) { .site-nav { gap: 14px; } .site-nav a { font-size: 13px; } }
@media (max-width: 720px) { .site-nav { gap: 10px; } .site-nav a { font-size: 12.5px; } }

/* 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;
    transition: box-shadow .18s, transform .14s, border-color .14s;
}
.annonce-card:hover {
    box-shadow: 0 20px 44px -18px rgba(15,15,50,.35);
    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;
    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; }
