/* prix-maison.be : identité « pignon » (brique, ardoise, papier) */
:root {
  --paper: #f4eee4;
  --paper-2: #ebe2d3;
  --card: #fffbf5;
  --ink: #1c2226;
  --ink-2: #4b555a;
  --ink-3: #7a8286;
  --brick: #b8472f;
  --brick-d: #8f3321;
  --brick-l: #e9b8a6;
  --ochre: #d9a441;
  --sage: #4f7a5a;
  --line: rgba(28, 34, 38, .13);
  --r: 14px;
  --f-d: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --f-s: 'Newsreader', Georgia, serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--f-d); font-optical-sizing: auto;
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; }
a { color: var(--brick-d); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brick); }
h1, h2, h3 { font-family: var(--f-d); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 6.4vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
small { font-size: .78em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.page-narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 99; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brick); margin-bottom: .7em; }
.lead { font-family: var(--f-s); font-size: clamp(1.1rem, 2.2vw, 1.35rem); line-height: 1.45; color: var(--ink-2); max-width: 36em; }
.small { font-size: .86rem; color: var(--ink-2); }
.note { font-family: var(--f-s); font-size: 1.05rem; color: var(--ink-2); margin-top: 1em; }
.up { color: var(--sage); font-weight: 700; }
.down { color: var(--brick); font-weight: 700; }
.nd { color: var(--ink-3) !important; }

/* Header */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand-logo { display: block; height: 34px; width: auto; }
.logo-mark { width: 30px; height: 30px; color: var(--brick); flex: none; }
.brand-t { font-weight: 800; font-size: 1.18rem; letter-spacing: -.03em; }
.brand-t b { color: var(--brick); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { background: var(--paper-2); }
.nav .nav-cta { background: var(--ink); color: var(--paper); padding: 8px 14px; margin-left: 6px; }
.nav .nav-cta:hover { background: var(--brick-d); color: #fff; }
@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; min-height: 0; padding-top: 10px; padding-bottom: 6px; gap: 6px; }
  .nav { width: 100%; overflow-x: auto; margin: 0 -6px; scrollbar-width: none; }
  .nav a { font-size: .84rem; padding: 7px 6px; white-space: nowrap; }
  .nav .nav-cta { padding: 7px 10px; }
  .nav a:first-child { display: none; }
  .nav .nav-cta { margin-left: auto; }
}

/* Hero */
.hero { position: relative; padding: clamp(28px, 6vw, 76px) 0 clamp(36px, 6vw, 80px); overflow: hidden; }
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 90'%3E%3Cpath fill='%23ebe2d3' d='M0 90V52h20v-8h10v-8h10v-8h20v8h10v8h10v8h20V30l30-26 30 26v60h10V40h14v-8h12v-8h14v8h12v8h14v50h10V58h40V26h10v-8h10V8h20v10h10v8h10v64h10V46l26-22 26 22v44h10V36h12v-8h12v-8h16v8h12v8h12v54h10V60h30V44h10v-8h10v-8h20v8h10v8h10v46z'/%3E%3C/svg%3E") repeat-x bottom / 480px 90px;
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 980px) { .hero-in { grid-template-columns: 1.35fr .9fr; align-items: end; gap: 56px; } }
.hero h1 em { font-style: normal; color: var(--brick); display: inline-block; }
.hero-fig {
  background: var(--ink); color: var(--paper); border-radius: var(--r); padding: 26px 24px 22px;
  box-shadow: 0 24px 48px -28px rgba(28, 34, 38, .6);
}
.fig-k { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #c9c0b3; margin: 0 0 .3em; }
.fig-v { font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; margin: 0; line-height: 1; }
.fig-d { margin: .4em 0 1.2em; color: #c9c0b3; }
.fig-d .up { color: #9fd3ab; } .fig-d .down { color: #f0a58f; }
.fig-s { font-size: .84rem; color: #c9c0b3; margin: 1.3em 0 0; }

/* Estimateur */
.est { margin-top: 26px; position: relative; }
.est-type { border: 0; padding: 0; margin: 0 0 12px; display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; }
.est-type label { cursor: pointer; }
.est-type input { position: absolute; opacity: 0; }
.est-type span { display: block; padding: 7px 16px; border-radius: 999px; font-weight: 650; font-size: .95rem; color: var(--ink-2); }
.est-type input:checked + span { background: var(--ink); color: var(--paper); }
.est-type input:focus-visible + span { outline: 3px solid var(--ochre); }
.est-field > label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.est-row { display: flex; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); }
.est-row input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1.08rem var(--f-d); padding: 16px 16px; color: var(--ink); }
.est-row input:focus { outline: none; }
.est-row:focus-within { box-shadow: 6px 6px 0 var(--brick); border-color: var(--brick); }
.est-row button { border: 0; background: var(--brick); color: #fff; font: 700 1rem var(--f-d); padding: 0 22px; cursor: pointer; }
.est-row button:hover { background: var(--brick-d); }
@media (max-width: 520px) {
  .est-row { flex-direction: column; }
  .est-row button { padding: 14px; }
}
.est-note { font-size: .84rem; color: var(--ink-3); margin: 14px 0 0; }
.est-list {
  list-style: none; margin: 8px 0 0; padding: 6px; position: absolute; left: 0; right: 0; z-index: 30;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35);
  max-height: 340px; overflow-y: auto;
}
.est-list li { padding: 9px 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.est-list li[aria-selected="true"], .est-list li:hover { background: var(--paper-2); }
.est-list .s-l { font-weight: 650; }
.est-list .s-s { color: var(--ink-3); font-size: .85rem; white-space: nowrap; }
.est-list .s-c .s-l::before { content: '⌂ '; color: var(--brick); }

/* Jauge */
.jauge { padding-top: 34px; }
.j-track { position: relative; height: 14px; background: repeating-linear-gradient(90deg, rgba(28,34,38,.1) 0 2px, transparent 2px 12px); border-radius: 4px; }
.j-band { position: absolute; top: 0; bottom: 0; background: var(--brick); border-radius: 3px; }
.j-med { position: absolute; top: -8px; bottom: -8px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; }
.j-lab { position: relative; height: 24px; margin-top: 8px; font-size: .78rem; color: var(--ink-2); }
.j-lab span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.j-lab span:first-child { transform: translateX(-100%); }
.j-lab span:last-child { transform: none; }
.j-lab .j-lab-m { top: -56px; transform: translateX(-50%); font-weight: 750; color: var(--ink); font-size: .84rem; }
.j-inv .j-track { background: repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 2px, transparent 2px 12px); }
.j-inv .j-band { background: var(--ochre); }
.j-inv .j-med { background: #fff; }
.j-inv .j-lab, .j-inv .j-lab .j-lab-m { color: #e6ddd0; }
.j-ink .j-band { background: var(--ink-2); }

/* Blocs */
.block { padding: clamp(30px, 5vw, 56px) 16px; }
.block-h { margin-bottom: 22px; max-width: 760px; }
.block-h p:not(.kicker) { color: var(--ink-2); }
.more { margin-top: 18px; font-weight: 650; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps ol { grid-template-columns: repeat(3, 1fr); } }
.steps li { border-top: 3px solid var(--ink); padding-top: 14px; }
.steps b { font-size: .85rem; color: var(--brick); letter-spacing: .1em; }
.steps h2 { font-size: 1.3rem; margin: .3em 0 .3em; }
.steps p { color: var(--ink-2); margin: 0; }

.regions { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .regions { grid-template-columns: repeat(3, 1fr); } }
.reg { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; overflow: hidden; }
.reg::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brick); }
.reg:nth-child(2)::before { background: var(--ochre); } .reg:nth-child(3)::before { background: var(--sage); }
.reg-v { font-size: 2.2rem; font-weight: 800; letter-spacing: -.035em; margin: 0; line-height: 1.1; }
.reg-v small, .reg-a small { display: block; font-size: .8rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.reg-a { font-size: 1.2rem; font-weight: 700; margin: .6em 0; }
.reg-a small { display: inline; }
.reg-d, .reg-n { font-size: .88rem; color: var(--ink-2); margin: .2em 0 0; }

.villes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ville { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: transform .15s, border-color .15s; }
.ville:hover { transform: translateY(-2px); border-color: var(--ink); color: var(--ink); }
.v-nom { font-weight: 750; font-size: 1.1rem; grid-column: 1 / -1; }
.v-m { font-weight: 800; font-size: 1.3rem; color: var(--brick-d); }
.v-m small, .v-a small { display: block; font-size: .72rem; font-weight: 500; color: var(--ink-3); }
.v-a { text-align: right; font-weight: 650; }

.band { background: var(--ink); color: var(--paper); padding: clamp(36px, 6vw, 70px) 0; }
.band-in { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .band-in { grid-template-columns: 1fr 1fr; gap: 64px; } }
.band p { color: #d8cfc2; font-family: var(--f-s); font-size: 1.1rem; }
.band .kicker { color: var(--ochre); font-family: var(--f-d); font-size: .78rem; }
.btn, .btn-ghost { display: inline-block; font: 700 1rem var(--f-d); text-decoration: none; padding: 13px 20px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; }
.btn { background: var(--brick); color: #fff; }
.btn:hover { background: var(--brick-d); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem; padding: 16px 32px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--brick); font-weight: 500; }
.faq details[open] summary::after { content: '−'; }
.faq-a p { font-family: var(--f-s); font-size: 1.08rem; color: var(--ink-2); }

/* Commune */
.c-head { padding: 22px 0 10px; background: linear-gradient(var(--paper-2), var(--paper)); border-bottom: 1px solid var(--line); }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .85rem; color: var(--ink-3); }
.crumbs li + li::before { content: '/'; margin-right: 4px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.c-head h1 .yr { color: var(--brick); }
.c-nl { color: var(--ink-2); font-size: .95rem; margin: -.2em 0 .6em; }
.kpis { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 22px 0 18px; }
@media (min-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px 12px; }
.kpi-k { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.kpi-v { font-size: clamp(2.3rem, 6vw, 3.1rem); font-weight: 800; letter-spacing: -.04em; margin: 0; line-height: 1.1; }
.kpi-m .kpi-v { color: var(--brick-d); }
.kpi-s { font-size: .9rem; color: var(--ink-2); margin: .2em 0 0; }
.syn { font-family: var(--f-s); font-size: clamp(1.08rem, 2vw, 1.25rem); line-height: 1.5; max-width: 50em; color: var(--ink); padding: 8px 0 18px; }
.c-est { padding-top: 26px; }
.est-card { background: var(--card); }
.est-card h2 { font-size: 1.3rem; }
.chart-card { padding-bottom: 14px; }
.chart { width: 100%; height: auto; display: block; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-ax { font: 500 12px var(--f-d); fill: var(--ink-3); }
.c-line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.c-pt { stroke: var(--card); stroke-width: 2; }
.c-end { font: 800 14px var(--f-d); }
.s-m .c-line { stroke: var(--brick); } .s-m .c-pt { fill: var(--brick); } .s-m .c-area { fill: rgba(184, 71, 47, .09); } .s-m .c-end { fill: var(--brick-d); }
.s-a .c-line { stroke: var(--ink); stroke-dasharray: 1 0; } .s-a .c-pt { fill: var(--ink); } .s-a .c-area { fill: rgba(28, 34, 38, .04); } .s-a .c-end { fill: var(--ink); }
.legend { display: flex; gap: 18px; font-size: .9rem; font-weight: 650; margin-bottom: 8px; }
.legend span::before { content: ''; display: inline-block; width: 16px; height: 4px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.lg-m::before { background: var(--brick); } .lg-a::before { background: var(--ink); }
.chart-note { font-size: .92rem; color: var(--ink-2); margin: 10px 0 0; }
.tbl-d { margin-top: 12px; }
.tbl-d summary { cursor: pointer; font-weight: 650; color: var(--brick-d); font-size: .92rem; }
.tbl-w { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; margin-top: 10px; }
.tbl th { text-align: left; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.tbl td:not(:first-child), .tbl th:not(:first-child) { text-align: right; }
.tbl tr.hl td { font-weight: 800; background: rgba(217, 164, 65, .14); }
.tbl a { font-weight: 650; text-decoration: none; }
.tbl a:hover { text-decoration: underline; }
.duo { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .duo { grid-template-columns: 1fr 1fr; } }
.mini h3 { margin-bottom: .1em; }
.mini-v { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: .3em 0 .1em; }
.qcard + .qcard { margin-top: 14px; }
.qcard h3 small { font-weight: 500; color: var(--ink-3); font-size: .8rem; margin-left: 6px; }
.qlist { list-style: none; padding: 0; margin: 10px 0 0; }
.qlist li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'n v' 'b b'; gap: 4px 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
@media (min-width: 760px) { .qlist li { grid-template-columns: minmax(0, 1.2fr) 1fr auto; grid-template-areas: 'n b v'; align-items: center; } }
.q-n { grid-area: n; font-weight: 600; }
.q-bar { grid-area: b; height: 8px; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.q-bar span { display: block; height: 100%; background: var(--brick); border-radius: 4px; }
.qlist li:nth-last-child(-n+5) .q-bar span { background: var(--sage); }
.qlist:not(:has(.q-gap)) li .q-bar span { background: var(--brick); }
.q-v { grid-area: v; text-align: right; font-weight: 750; }
.q-v small { display: block; font-weight: 500; color: var(--ink-3); font-size: .74rem; }
.q-gap { display: block !important; text-align: center; color: var(--ink-3); border: 0 !important; padding: 2px !important; }
.two { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .two { grid-template-columns: 1.2fr 1fr; } }
.two h2 { font-size: 1.5rem; }
.big { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; margin: 0 0 .2em; color: var(--brick-d); line-height: 1; }
.big small { font-size: 1rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.cta-pro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--ochre); border-color: transparent; }
.cta-pro h2 { font-size: 1.4rem; margin: 0 0 .2em; }
.cta-pro p { margin: 0; color: var(--ink); }
.cta-pro .btn { background: var(--ink); }
.cta-pro .btn:hover { background: var(--brick-d); }
.src { font-size: .82rem; color: var(--ink-3); margin-top: 18px; }

/* Résultat estimation */
.res { padding-top: 26px; padding-bottom: 40px; }
.res h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
.res-switch { display: inline-flex; gap: 4px; background: var(--paper-2); padding: 4px; border-radius: 999px; margin-bottom: 18px; }
.res-switch a { padding: 7px 15px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 650; }
.res-switch a[aria-current] { background: var(--ink); color: var(--paper); }
.res-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .res-grid { grid-template-columns: 1.6fr 1fr; } }
.res-main { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.res-k { font-weight: 700; color: var(--ink-2); margin: 0; }
.res-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: clamp(1.55rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: .15em 0; }
.res-v i { font-style: normal; font-size: .4em; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.res-m { font-size: 1.15rem; margin: 0 0 .6em; }
.res-m b { color: var(--brick-d); }
.zone { position: relative; height: 34px; margin-top: -2px; }
.zone span { position: absolute; left: var(--x); transform: translateX(-50%); white-space: nowrap; background: var(--ochre); color: var(--ink); font-weight: 750; font-size: .85rem; padding: 4px 10px; border-radius: 999px; }
.zone span::before { content: ''; position: absolute; left: 50%; top: -6px; margin-left: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--ochre); }
@media (max-width: 560px) { .zone span { left: 50%; } .zone span::before { display: none; } }
.res-src { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: .95rem; color: var(--ink-2); }
.res-src p { margin-bottom: .6em; }
.res-cmp h2 { font-size: 1.25rem; }
.cmp { margin: 0; }
.cmp div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cmp dt { color: var(--ink-2); }
.cmp dd { margin: 0; font-weight: 750; white-space: nowrap; }
.affine { margin-top: 14px; }
.affine-h p { color: var(--ink-2); max-width: 46em; }
.affine-g { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .affine-g { grid-template-columns: 1fr 1fr; } }
.affine fieldset { border: 0; padding: 0; margin: 0; }
.affine legend { font-weight: 700; margin-bottom: 8px; }
.chip { display: inline-block; margin: 0 6px 6px 0; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .92rem; background: var(--paper); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--ochre); }
.affine-r { margin-top: 16px; padding: 16px 18px; background: rgba(217, 164, 65, .16); border-radius: 12px; }
.affine-r p:last-child { margin-bottom: 0; }
.warn { border-left: 6px solid var(--ochre); }
.res .cta-pro { margin-top: 14px; }
.again { margin-top: 40px; max-width: 760px; }
.again h2 { font-size: 1.4rem; }

/* Classements */
.bars { list-style: none; padding: 0; margin: 0; }
.bars li { display: grid; grid-template-columns: 30px 1fr auto; grid-template-areas: 'r n v' 'r b b'; gap: 4px 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .bars li { grid-template-columns: 34px minmax(0, 1fr) 1.3fr 110px; grid-template-areas: 'r n b v'; } }
.b-rank { grid-area: r; font-weight: 800; color: var(--ink-3); }
.b-name { grid-area: n; font-weight: 650; }
.b-name small { display: block; color: var(--ink-3); font-weight: 500; }
.b-name a { text-decoration: none; color: var(--ink); }
.b-name a:hover { color: var(--brick); }
.b-bar { grid-area: b; height: 10px; background: var(--paper-2); border-radius: 5px; overflow: hidden; }
.b-bar span { display: block; height: 100%; background: var(--brick); }
.bars.cheap .b-bar span { background: var(--sage); }
.b-val { grid-area: v; text-align: right; font-weight: 800; }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.provs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.provs a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 700; }
.provs a:hover { border-color: var(--ink); }
.provs small { display: block; font-weight: 500; color: var(--ink-2); }
.az { columns: 2 180px; column-gap: 24px; }
.az a { display: block; padding: 3px 0; text-decoration: none; color: var(--ink); break-inside: avoid; }
.az a:hover { color: var(--brick); }
.az small { color: var(--ink-3); }
.az-h { margin-top: 26px; }

/* Guides */
.prose { font-family: var(--f-s); font-size: 1.16rem; line-height: 1.62; }
.prose h2 { font-family: var(--f-d); margin-top: 1.6em; }
.prose h3 { font-family: var(--f-d); margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .tbl { font-family: var(--f-d); font-size: .95rem; }
.guide-meta { font-size: .9rem; color: var(--ink-3); margin-bottom: 20px; }
.guides { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .guides { grid-template-columns: 1fr 1fr; } }
.guides a { text-decoration: none; color: var(--ink); }
.guides a:hover h2 { color: var(--brick); }
.guides p { color: var(--ink-2); }
.callout { border-left: 5px solid var(--brick); background: var(--card); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 1.4em 0; }

/* Formulaire lead */
.lead-form { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .lead-form { grid-template-columns: 1fr 1fr; } .lead-form .full { grid-column: 1 / -1; } }
.lead-form label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 5px; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; font: 500 1rem var(--f-d); padding: 12px 13px; border: 1.5px solid rgba(28,34,38,.3); border-radius: 10px; background: #fff; color: var(--ink);
}
.lead-form textarea { min-height: 110px; resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 3px rgba(184,71,47,.18); }
.lead-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.lead-form .check input { width: auto; margin-top: 4px; }
.hp { position: absolute !important; left: -5000px !important; }
.errs { background: #fbe4dd; border: 1px solid var(--brick); border-radius: 10px; padding: 12px 16px; color: var(--brick-d); }
.ok { background: #e3efe5; border: 1px solid var(--sage); border-radius: 10px; padding: 16px; }

/* Footer */
.foot { background: var(--ink); color: #d8cfc2; margin-top: 50px; position: relative; }
.skyline { height: 60px; margin-top: -59px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 60'%3E%3Cpath fill='%231c2226' d='M0 60V34h18v-7h9v-7h9v-7h18v7h9v7h9v7h18V20l27-18 27 18v40h9V26h12v-6h11v-6h12v6h11v6h12v34h9V38h36V17h9v-6h9V4h18v7h9v6h9v43h9V30l23-16 23 16v30h9V24h11v-6h11v-6h14v6h11v6h11v36h9V40h27V29h9v-5h9v-6h18v6h9v5h9v31z'/%3E%3C/svg%3E") repeat-x bottom / 480px 60px; }
.foot-in { display: grid; gap: 30px; grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 28px; }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.3fr 1fr 1fr; } }
.brand-inv { color: var(--paper); }
.brand-inv .logo-mark { color: var(--brick); }
.logo-mark .w { stroke: var(--card); }
.logo-mark .d { fill: var(--ochre); }
.brand-inv .logo-mark .w { stroke: var(--paper); }
.foot h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { padding: 3px 0; }
.foot a { color: #e8e0d4; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot p { font-size: .95rem; }
.foot-src { font-size: .8rem; color: #9da3a5; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; padding-bottom: 26px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.s-r1 .c-line { stroke: var(--brick); } .s-r1 .c-pt { fill: var(--brick); } .s-r1 .c-end { fill: var(--brick-d); }
.s-r2 .c-line { stroke: var(--ochre); } .s-r2 .c-pt { fill: var(--ochre); } .s-r2 .c-end { fill: #9b7020; }
.s-r3 .c-line { stroke: var(--sage); } .s-r3 .c-pt { fill: var(--sage); } .s-r3 .c-end { fill: var(--sage); }
.s-r1 .c-area, .s-r2 .c-area, .s-r3 .c-area { fill: none; }
.lg-r1::before { background: var(--brick); } .lg-r2::before { background: var(--ochre); } .lg-r3::before { background: var(--sage); }

.chart-sm { display: none; }
@media (max-width: 600px) { .chart-lg { display: none; } .chart-sm { display: block; } .chart-sm .c-pt { r: 2.5; } }
@media (min-width: 760px) { .grid2 .bars li { grid-template-columns: 30px 1fr auto; grid-template-areas: 'r n v' 'r b b'; } }

.j-lab span.j-l0 { transform: none; }
.j-lab span.j-r0 { transform: translateX(-100%); }

/* Blocs maison : parc, construction, marché, coût */
.parc { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .parc { grid-template-columns: 1fr 1fr; } }
.parc h3, .two h3 { font-size: 1.1rem; margin: 0 0 .7em; }
.pbars { list-style: none; padding: 0; margin: 0; }
.pbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'n v' 'b b'; gap: 3px 12px; padding: 7px 0; }
@media (min-width: 560px) { .pbars li { grid-template-columns: 12.5em minmax(0, 1fr) 4.2em; grid-template-areas: 'n b v'; align-items: center; } }
.pb-n { grid-area: n; font-size: .92rem; color: var(--ink-2); }
.pb-bar { grid-area: b; position: relative; height: 10px; background: var(--paper-2); border-radius: 5px; }
.pb-bar > span { display: block; height: 100%; background: var(--brick); border-radius: 5px; }
.pb-bar i { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.pb-v { grid-area: v; font-weight: 750; text-align: right; white-space: nowrap; }
.pb-v small { display: block; font-size: .72rem; font-weight: 500; color: var(--ink-3); }
.ycols { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 22px; }
.yc { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.yc-b { display: block; width: 100%; max-width: 34px; background: var(--brick); border-radius: 4px 4px 0 0; min-height: 2px; }
.yc:last-child .yc-b { background: var(--brick-d); }
.yc-v { font-size: .68rem; font-weight: 700; color: var(--ink-2); margin-bottom: 3px; white-space: nowrap; }
.yc-y { font-size: .7rem; color: var(--ink-3); margin-top: 4px; }
@media (max-width: 480px) { .yc-v { font-size: .58rem; } .ycols { gap: 2px; } }
.cmp-t { border-bottom: 0 !important; border-top: 2px solid var(--ink); }
.cmp-t dt { font-weight: 700; color: var(--ink) !important; }
.muted { color: var(--ink-3); font-weight: 500; }
.h-sm { font-size: 1.05rem; margin: 1.2em 0 .4em; }
.budget { padding-left: 1.1em; margin: 0 0 .5em; }
.budget li { margin: .3em 0; }
@media (max-width: 560px) { .hide-sm { display: none; } }
.maj { font-size: .82rem; color: var(--ink-3); margin: -6px 0 18px; }
.maj a { color: inherit; }
.guide-villes { margin-top: 34px; }
.guide-villes h2 { font-size: 1.35rem; }
.two > * { min-width: 0; }
.rue-intro { max-width: 46em; margin-bottom: 18px; }
.qrues { margin-top: 14px; }
.qrues h2 { margin-bottom: 8px; }
.rues-idx { margin-top: 8px; }

/* Calculateur des frais d'achat + sources des guides */
.frais-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 900px) { .frais-grid { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.frais-form label { display: block; font-weight: 700; margin: 14px 0 6px; }
.frais-form input[type=text], .frais-form select { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.frais-form input[type=text]:focus, .frais-form select:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 3px rgba(184,71,47,.18); }
.frais-form fieldset { border: 0; padding: 0; margin: 16px 0; }
.frais-form legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.frais-form label.radio { font-weight: 500; margin: 6px 0; display: flex; gap: 8px; align-items: flex-start; }
.frais-form label.radio input { margin-top: .3em; }
.frais-total { display: flex; flex-direction: column; margin: 0 0 12px; }
.frais-total span { color: var(--ink-2); }
.frais-total b { font: 800 clamp(2rem, 6vw, 2.9rem)/1.1 var(--f-d); color: var(--brick-d); }
.frais-total small { color: var(--ink-3); }
.frais-res.is-loading { opacity: .55; }
.frais-res .cmp dd { font-variant-numeric: tabular-nums; }
.frais-res .cmp dt small { display: inline-block; }
.prose .sources { font-family: var(--f-d); font-size: .92rem; color: var(--ink-2); }
.prose .sources li { margin-bottom: .5em; }
.tbl-w { max-width: 100%; }
@media (max-width: 760px) { .nav a[href="/frais-achat-maison/"] { display: none; } }

/* Page rue : « La rue en chiffres » (lib/pages/rue.php, lib/rue-stats.php) */
.rue-chiffres { margin-top: 14px; }
.rue-chiffres h2 { font-size: 1.5rem; }
.rue-chiffres > p { max-width: 62em; }
.rchiffres { margin: 4px 0 6px; display: grid; grid-template-columns: 1fr; column-gap: 32px; }
@media (min-width: 760px) { .rchiffres { grid-template-columns: 1fr 1fr; } }
.rchiffres div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rchiffres dt { color: var(--ink-2); }
.rchiffres dd { margin: 0; font-weight: 750; text-align: right; }
.rchiffres dd small { font-weight: 500; color: var(--ink-3); }
.homo { margin: .4em 0 0; padding-left: 1.2em; }
.homo li { margin: .25em 0; }
