/* DataHouse — ardoise et blanc, vert épinette et brique ; Barlow et Barlow Condensed. */
@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-weight: 500; font-display: swap; src: url(../fonts/barlow-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-weight: 700; font-display: swap; src: url(../fonts/barlow-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-display: swap; src: url(../fonts/barlow-condensed-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format('woff2'); }

:root {
  --bg: #f3f5f4;
  --surface: #ffffff;
  --surface-2: #eef1ef;
  --line: #dde2df;
  --text: #16181d;
  --muted: #5d6662;
  --faint: #8f9893;
  --accent: #16181d;
  --on-accent: #ffffff;
  --brand: #1e7a4f;
  --brand-soft: #e3f1e9;
  --good: #1e7a4f;
  --good-bg: #e3f1e9;
  --bad: #b8432f;
  --bad-bg: #f8e7e3;
  --mid: #8a7a2e;
  --shadow: 0 12px 32px rgba(22, 24, 29, .10), 0 1px 3px rgba(22, 24, 29, .06);
  --radius: 14px;
  --top: 64px;
  --display: 'Barlow Condensed', Barlow, system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1113; --surface: #171a1d; --surface-2: #1f2327; --line: #2b3035; --text: #eef1ef; --muted: #a4ada8;
    --faint: #6f7873; --accent: #eef1ef; --on-accent: #16181d; --brand: #4cc58a; --brand-soft: #143021; --good: #4cc58a;
    --good-bg: #143021; --bad: #f07a63; --bad-bg: #3a1a14; --mid: #d9c46b; --shadow: 0 12px 32px rgba(0, 0, 0, .5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1113; --surface: #171a1d; --surface-2: #1f2327; --line: #2b3035; --text: #eef1ef; --muted: #a4ada8;
  --faint: #6f7873; --accent: #eef1ef; --on-accent: #16181d; --brand: #4cc58a; --brand-soft: #143021; --good: #4cc58a;
  --good-bg: #143021; --bad: #f07a63; --bad-bg: #3a1a14; --mid: #d9c46b; --shadow: 0 12px 32px rgba(0, 0, 0, .5); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: Barlow, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.45;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow: hidden;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.005em; margin: 0; }
h1, h2, .big, .big2, .kpi-v, .strat-p, .plan .price { font-family: var(--display); }
button, input, select { font: inherit; color: inherit; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; height: calc(var(--top) + var(--safe-top)); padding-top: calc(10px + var(--safe-top)) !important; z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: 10px max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
  background: var(--surface); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.logo { width: 28px; height: 28px; }
.search { position: relative; flex: 1; max-width: 560px; display: flex; align-items: center; margin-left: auto; }
.search > .ic { position: absolute; left: 14px; color: var(--muted); }
.search input {
  width: 100%; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface-2);
  padding: 0 16px 0 42px; outline: none; transition: border-color .15s, background .15s;
}
.search input:focus { border-color: var(--text); background: var(--surface); }
.results {
  position: absolute; top: 50px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); overflow-x: hidden; overflow-y: auto; max-height: min(60vh, 420px); z-index: 40;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.res { display: flex; gap: 12px; width: 100%; padding: 11px 14px; border: 0; background: none; text-align: left; cursor: pointer; align-items: center; }
.res:hover, .res.on { background: var(--surface-2); }
.res span { display: flex; flex-direction: column; min-width: 0; }
.res small { color: var(--muted); }
.res b { font-weight: 600; }
.menu {
  position: absolute; top: calc(var(--top) + var(--safe-top) - 4px); right: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: none; flex-direction: column; min-width: 230px;
}
.menu.show { display: flex; }
.menu a { padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.menu a:hover { background: var(--surface-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* ---------- Boutons et puces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 22px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-decoration: none;
  font-weight: 600; transition: transform .1s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { width: 44px; padding: 0; flex: none; }
.icon-btn.on { color: #e0a800; }
.icon-btn.on .ic { fill: currentColor; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-weight: 500; white-space: nowrap;
}
.chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.icon-chip { padding: 0 9px; display: inline-flex; align-items: center; }

/* ---------- Carte ---------- */
.stage { position: fixed; inset: calc(var(--top) + var(--safe-top)) 0 0 0; }
#map { position: absolute; inset: 0; }
.metrics { position: absolute; top: 12px; left: 0; right: 0; padding: 0 12px 10px; display: flex; gap: 6px; z-index: 5; overflow-x: auto; scrollbar-width: none; pointer-events: none; }
.metrics::-webkit-scrollbar { display: none; }
.metrics .chip { pointer-events: auto; flex: none; }
body.has-demo .metrics { top: 40px; }
body.has-demo .legend { top: 84px; }
.metrics .chip { box-shadow: var(--shadow); }
.legend {
  position: absolute; left: 12px; top: 56px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; font-size: 13px; box-shadow: var(--shadow); z-index: 5; display: none;
}
.legend.show { display: block; }
.lg-t { font-weight: 600; margin-bottom: 6px; }
.lg-i { display: flex; align-items: center; gap: 8px; }
.lg-i span { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); }
.zoomhint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--on-accent);
  padding: 8px 16px; border-radius: 20px; font-weight: 600; font-size: 14px; z-index: 5; pointer-events: none; box-shadow: var(--shadow);
}
.zoomhint.loading::after { content: ' …'; }
.maplibregl-ctrl-group { border-radius: 12px !important; overflow: hidden; }
.maplibregl-ctrl-bottom-right { bottom: 8px; }
.demo { position: fixed; top: calc(var(--top) + var(--safe-top)); left: 0; right: 0; z-index: 6; background: #e0a800; color: #000; text-align: center; font-weight: 600; font-size: 12px; padding: 5px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Panneau (fiche) ---------- */
.sheet {
  position: fixed; z-index: 20; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.sheet-body { overflow-y: auto; padding: 4px 18px calc(40px + var(--safe-bottom)); flex: 1; overscroll-behavior: contain; }
.sheet-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; background: var(--surface-2); z-index: 3; }
.sheet-body { scroll-padding-top: 100px; }
.handle { display: none; }
@media (min-width: 900px) {
  .sheet { top: calc(var(--top) + var(--safe-top) + 12px); right: 12px; bottom: 12px; width: 440px; border-radius: 20px; border: 1px solid var(--line); transform: translateX(120%); }
  .sheet.open { transform: none; }
  .sheet-body { padding-top: 18px; }
  body.sheet-open .maplibregl-ctrl-bottom-right { right: 464px; }
}
@media (max-width: 899px) {
  .sheet { left: 0; right: 0; bottom: 0; height: 52vh; height: 52dvh; border-radius: 22px 22px 0 0; transform: translateY(100%);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), height .25s cubic-bezier(.2, .8, .2, 1); }
  .sheet.open { transform: none; }
  .sheet.open.full { height: calc(100vh - var(--top) - var(--safe-top) - 8px); height: calc(100dvh - var(--top) - var(--safe-top) - 8px); }
  .handle { display: flex; justify-content: center; padding: 10px 0 6px; cursor: grab; touch-action: none; }
  .handle span { width: 44px; height: 5px; border-radius: 3px; background: var(--line); }
  .sheet-close { top: 8px; }
  .zoomhint { bottom: 18px; }
  body.sheet-open .zoomhint, body.sheet-open .maplibregl-ctrl-bottom-right { display: none; }
  .brand span { display: none; }
}

.sh-head { padding: 6px 48px 12px 0; position: relative; }
.sh-head h2 { font-size: 30px; line-height: 1.05; margin-top: 4px; font-weight: 600; }
.sh-actions { display: flex; gap: 8px; margin-top: 12px; }
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 500; }
.eyebrow a { text-decoration: none; border-bottom: 1px solid var(--line); }
.hero { padding: 16px; border-radius: var(--radius); background: var(--surface-2); margin: 4px 0 12px; }
.big { font-size: 52px; font-weight: 600; letter-spacing: -.01em; line-height: 1; margin: 6px 0 12px; }
.big2 { font-size: 26px; font-weight: 700; }
.sub { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.range-track { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--line), var(--text) 50%, var(--line)); opacity: .9; }
.range-dot { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 4px solid var(--text); transform: translate(-50%, -50%); }
.range-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 600; }
details.how { margin-top: 12px; }
details.how summary { cursor: pointer; display: flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; list-style: none; }
details.how summary::-webkit-details-marker { display: none; }
.calc { margin-top: 10px; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.kpi-l { font-size: 12px; color: var(--muted); }
.kpi-v { font-size: 23px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-s { font-size: 11px; color: var(--faint); }
.kpi.up .kpi-v { color: var(--good); }
.kpi.down .kpi-v { color: var(--bad); }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 12px; background: var(--surface); }
.card h3 { font-size: 16px; margin-bottom: 10px; }
.card.cta { background: var(--surface-2); text-align: center; display: flex; flex-direction: column; gap: 10px; }
.card.cta p { margin: 0; color: var(--muted); }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.row:last-child { border-bottom: 0; }
.row span { color: var(--muted); }
.row b { font-weight: 600; text-align: right; }
.row.good b { color: var(--good); }
.row.bad b { color: var(--bad); }
.grid2 { display: grid; grid-template-columns: 1fr; }
.note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.note.center, .center { text-align: center; }
.lead { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.lead b { color: var(--text); }
.hint { text-align: center; color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); padding: 24px 4px; text-align: center; }
.loading { color: var(--muted); }
.flag { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; margin: 0 0 12px; }
.flag.good { background: var(--good-bg); color: var(--good); }
.flag.bad { background: var(--bad-bg); color: var(--bad); }

.hist { width: 100%; height: auto; display: block; }
.hbar { fill: var(--line); }
.hmark { stroke: var(--text); stroke-width: 2; }
.hdot { fill: var(--text); }
.htick { fill: var(--muted); font-size: 11px; font-family: inherit; }

.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 8px -18px 12px; padding: 0 18px; scrollbar-width: none; position: sticky; top: 40px; background: var(--surface); z-index: 1; padding-block: 8px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; white-space: nowrap; }
.tab.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.form-grid .field { margin: 0; }
.field input, .field select {
  height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 12px; width: 100%;
  color: var(--text); font-size: 16px; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--text); }
.input-wrap { position: relative; }
.input-wrap i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--faint); font-size: 13px; pointer-events: none; }
.input-wrap input { padding-right: 46px; }
.check-line { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 14px; }

.table { font-size: 14px; }
.tr { display: grid; grid-template-columns: 1fr 58px 64px 64px; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: center; }
.tr span:not(:first-child) { text-align: right; }
.tr span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr.th { color: var(--muted); font-size: 12px; }
a.tr:hover { background: var(--surface-2); }

.strategies { display: grid; gap: 8px; }
.strat { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.strat-n { font-size: 13px; color: var(--muted); font-weight: 600; }
.strat-p { font-size: 22px; font-weight: 700; }
.strat p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

ul.check { padding: 0; margin: 8px 0 0; list-style: none; }
ul.check li { padding: 6px 0 6px 22px; position: relative; font-size: 14px; }
ul.check li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
ul.pc { list-style: none; margin: 0; padding: 0; }
ul.pc li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
ul.pc li:last-child { border: 0; }
ul.pc b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 14px; }
ul.pc li.pro b { background: var(--good-bg); color: var(--good); }
ul.pc li.con b { background: var(--bad-bg); color: var(--bad); }
ul.pc li.mix b { background: var(--surface-2); color: var(--muted); }
ul.pc em { color: var(--faint); font-style: normal; }
ul.news { list-style: none; margin: 0; padding: 0; }
ul.news li { padding: 10px 0 10px 12px; border-left: 3px solid var(--line); margin-bottom: 8px; }
ul.news li.pro { border-color: var(--good); }
ul.news li.con { border-color: var(--bad); }
ul.news a { font-weight: 600; text-decoration: none; }
ul.news small { display: block; color: var(--muted); }
ul.news p { margin: 4px 0 0; font-size: 14px; }
ul.sources { list-style: none; padding: 0; margin: 0; }
ul.sources li { padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.sources small { display: block; color: var(--muted); }

.gauge-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.gauge { width: 128px; flex: none; }
.gtrack { fill: none; stroke: var(--line); stroke-width: 10; stroke-linecap: round; }
.gval { fill: none; stroke-width: 10; stroke-linecap: round; stroke: var(--mid); }
.gauge.good .gval { stroke: var(--good); }
.gauge.bad .gval { stroke: var(--bad); }
.gnum { font-size: 26px; font-weight: 700; fill: var(--text); font-family: inherit; }
.mrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; font-size: 14px; padding: 4px 0; color: var(--muted); }
.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--mid); border-radius: 4px; }
.meter.good span { background: var(--good); }
.meter.bad span { background: var(--bad); }

.type-chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -18px 12px; padding: 0 18px; scrollbar-width: none; }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; text-decoration: none; width: 100%; }
.list-item span { display: flex; flex-direction: column; min-width: 0; }
.list-item small { color: var(--muted); }
.li-v { font-weight: 700; }

.skeleton div { height: 22px; border-radius: 8px; background: var(--surface-2); margin: 18px 0; animation: pulse 1.2s infinite; }
.skeleton div:nth-child(2) { height: 90px; }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------- Synthèse, comparaison ---------- */
.synth { margin: 0; font-size: 15px; line-height: 1.55; }
.sh-actions .btn:not(.icon-btn) { padding: 0 14px; }
.fav-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; }
.fav-row a { text-decoration: none; min-width: 0; }
.fav-row a span { display: flex; flex-direction: column; }
.fav-row input { width: 20px; height: 20px; accent-color: var(--text); }
#cmp-go { margin: 16px 0; }
.cmp-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.cmp-table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 480px; }
.cmp-table th, .cmp-table td { padding: 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.cmp-table th:first-child { text-align: left; color: var(--muted); font-weight: 500; }
.cmp-table tr:first-child th { font-weight: 600; color: var(--text); }
.cmp-table small { display: block; color: var(--muted); font-weight: 400; }
.cmp-table td.win { color: var(--good); font-weight: 700; }
.app-cta { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); margin: 12px 0; text-decoration: none; }
.app-cta small { display: block; color: var(--muted); }

/* ---------- Pages ---------- */
.page { position: fixed; inset: calc(var(--top) + var(--safe-top)) 0 0 0; z-index: 22; background: var(--bg); overflow-y: auto; }
.page-inner { max-width: 760px; margin: 0 auto; padding: 24px 18px 80px; }
.page h1 { font-size: 32px; margin: 8px 0 12px; }
.page-close { position: fixed; top: calc(var(--top) + var(--safe-top) + 12px); right: 14px; z-index: 2; }
.auth-box { max-width: 420px; margin: 0 auto; }
.auth-box form { margin-top: 18px; }
.auth-box .btn.wide { margin-bottom: 10px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 18px 0; }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border: 2px solid var(--text); }
.plan .price { font-size: 32px; font-weight: 700; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan ul { padding-left: 18px; margin: 0; flex: 1; font-size: 14px; }
.formula { font-size: 17px; font-weight: 600; padding: 12px; border-radius: 12px; background: var(--surface-2); text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; background: var(--accent); color: var(--on-accent);
  padding: 12px 18px; border-radius: 14px; z-index: 60; max-width: min(92vw, 460px); font-weight: 500; transition: transform .25s; box-shadow: var(--shadow);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast.warn { background: var(--bad); color: #fff; }
.fatal { position: fixed; inset: 40% 10% auto; background: var(--surface); padding: 24px; border-radius: 16px; text-align: center; box-shadow: var(--shadow); z-index: 99; }

/* ---------- Impression (rapport) ---------- */
@page { margin: 14mm; }
.print { display: none; }
@media print {
  body { overflow: visible; background: #fff; color: #000; }
  body.printing > *:not(#rapport) { display: none !important; }
  body.printing #rapport { display: block; font-size: 12px; }
  #rapport h1 { font-size: 22px; margin: 10px 0 2px; }
  #rapport h2 { font-size: 14px; margin: 16px 0 6px; border-bottom: 2px solid #000; padding-bottom: 3px; }
  #rapport .big { font-size: 30px; }
  #rapport table { width: 100%; border-collapse: collapse; }
  #rapport td, #rapport th { border-bottom: 1px solid #ccc; padding: 4px; text-align: left; }
  #rapport .row { padding: 3px 0; font-size: 12px; border-color: #ddd; }
  #rapport .row span { color: #444; }
  .pr-head { display: flex; justify-content: space-between; border-bottom: 3px solid #000; padding-bottom: 8px; }
  .pr-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }
  .pr-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .pr-foot { margin-top: 20px; font-size: 10px; color: #444; border-top: 1px solid #000; padding-top: 6px; }
  #rapport ul.pc li { padding: 3px 0; font-size: 11px; }
  #rapport ul.pc b { background: none !important; color: #000 !important; }
}

/* ---------- Navigation du haut ---------- */
.topnav { display: flex; gap: 2px; margin-left: 4px; }
.topnav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--muted); }
.topnav a:hover { background: var(--surface-2); color: var(--text); }
body:not(.on-home) #nav-carte { display: none; }
body.on-home .topbar .search { visibility: hidden; }
@media (max-width: 899px) {
  .topnav .nav-x { display: none; }
  body.on-home .topbar .search { display: none; }
  body.on-home .topnav { margin-left: auto; }
}

/* ---------- Accueil ---------- */
.home { position: fixed; inset: calc(var(--top) + var(--safe-top)) 0 0 0; z-index: 24; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
body.on-home .stage, body.on-home #demo { visibility: hidden; }
.home-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px calc(40px + var(--safe-bottom)); }
.hero-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 56px 0 64px; }
.hero-home h1 { font-size: clamp(44px, 6.2vw, 80px); line-height: .95; font-weight: 700; letter-spacing: -.015em; max-width: 13ch; }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 46ch; margin: 18px 0 26px; }
.hero-search { position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--text);
  border-radius: 30px; padding: 6px 6px 6px 18px; max-width: 560px; box-shadow: var(--shadow); }
.hero-search > .ic { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; height: 46px; font-size: 17px; }
.hero-search .btn { height: 46px; border-radius: 24px; padding: 0 22px; }
.hero-search .results { top: 64px; }
.hero-search:focus-within { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 2px; }
.villes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 560px; margin-top: 28px; border-top: 1px solid var(--line); }
.ville { display: flex; flex-direction: column; padding: 12px 10px 12px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.ville b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ville span { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--brand); }
.ville:hover b { text-decoration: underline; }
.villes-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.hero-plan { margin: 0; }
.hero-plan canvas { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  opacity: 0; transition: opacity .9s ease; }
.hero-plan canvas.pret { opacity: 1; }
.hero-plan.vide canvas { opacity: 1; background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 14px, var(--surface-2) 14px, var(--surface-2) 15px); }
.hero-plan figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; max-width: 60ch; }
.hero-plan figcaption a { color: var(--text); font-weight: 600; }
.home h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1; margin-bottom: 26px; }
.profils { padding: 48px 0; border-top: 1px solid var(--line); }
.profil-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.profil { text-decoration: none; border-top: 3px solid var(--text); padding-top: 14px; }
.profil h3 { font-family: var(--display); font-size: 28px; font-weight: 600; }
.profil p { color: var(--muted); margin: 6px 0 12px; }
.profil ul { margin: 0; padding: 0; list-style: none; }
.profil li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; }
.profil:hover h3 { color: var(--brand); }
.methode { padding: 48px 0; border-top: 1px solid var(--line); }
.etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: e; }
.etapes li { counter-increment: e; display: flex; flex-direction: column; gap: 6px; }
.etapes li::before { content: counter(e); font-family: var(--display); font-size: 56px; font-weight: 700; line-height: 1; color: var(--brand); }
.etapes b { font-size: 18px; }
.etapes span { color: var(--muted); }
.methode-note { margin: 26px 0 0; color: var(--muted); font-size: 14px; }
.methode-note a { color: var(--text); font-weight: 600; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--accent); color: var(--on-accent);
  border-radius: 22px; padding: 34px 34px; margin: 20px 0 36px; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; opacity: .78; max-width: 52ch; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.cta-band .btn:not(.primary) { background: transparent; color: inherit; border-color: color-mix(in srgb, var(--on-accent) 35%, transparent); }
.home-foot { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); padding: 8px 0; }
.home-foot span { font-weight: 700; color: var(--text); margin-right: auto; }
.home-foot a { text-decoration: none; }
.home-foot a:hover { text-decoration: underline; }
@media (max-width: 899px) {
  .hero-home { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 40px; }
  .hero-lead { font-size: 16px; margin: 14px 0 20px; }
  .hero-search { padding-left: 14px; }
  .hero-search .btn { padding: 0 16px; }
  .villes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-plan canvas { aspect-ratio: 4 / 3; }
  .profil-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .etapes { grid-template-columns: 1fr; gap: 20px; }
  .cta-band { padding: 26px 22px; }
}
@media (max-width: 520px) {
  .home-inner { padding-left: 16px; padding-right: 16px; }
  .profil-grid { grid-template-columns: 1fr; }
  .home-foot { flex-direction: column; gap: 10px; }
  .hero-search .btn span, .hero-search .btn { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .hero-plan canvas { transition: none; } }
body.on-home .brand span { display: inline !important; }

/* ---------- Photos de la propriété ---------- */
.photos { margin: 0 0 12px; }
.ph { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 9 / 5; display: grid; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.duo { grid-template-columns: 1fr 1fr; gap: 4px; }
.ph-load { background: linear-gradient(100deg, var(--surface-2) 30%, var(--line) 50%, var(--surface-2) 70%); background-size: 300% 100%; animation: ph 1.4s ease-in-out infinite; }
@keyframes ph { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .ph-load { animation: none; } }
.photos.vide .ph { aspect-ratio: auto; padding: 12px; }
.photos figcaption { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); margin-top: 6px; }
.photos figcaption span { display: inline-flex; align-items: center; gap: 6px; }
.photos figcaption .ic { width: 16px; height: 16px; }
.photos figcaption a { color: var(--text); font-weight: 600; }
.photos figcaption small { font-size: 11px; }

/* ---------- Pastilles de palier (pouces) ---------- */
.palier { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13px; padding: 2px 9px 2px 6px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.palier .ic { width: 16px; height: 16px; }
.palier.favorable { background: var(--good-bg); color: var(--good); }
.palier.neutre { background: var(--surface-2); color: var(--mid); }
.palier.defavorable, .palier.risque { background: var(--bad-bg); color: var(--bad); }
.flag .palier { margin-right: 4px; background: var(--surface); }

/* ---------- Scores par profil ---------- */
.scards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.scard { border-radius: 12px; padding: 10px 10px 8px; background: var(--surface-2); }
.scard summary { list-style: none; cursor: pointer; }
.scard summary::-webkit-details-marker { display: none; }
.scard.favorable { background: var(--good-bg); }
.scard.defavorable { background: var(--bad-bg); }
.sc-n { font-size: 13px; font-weight: 600; color: var(--muted); }
.sc-row { display: flex; align-items: baseline; gap: 4px; margin: 2px 0; }
.sc-ico { align-self: center; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--mid); margin-right: 4px; }
.sc-ico .ic { width: 17px; height: 17px; }
.favorable .sc-ico { background: var(--good); }
.defavorable .sc-ico { background: var(--bad); }
.sc-v { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1; }
.scard small { color: var(--muted); font-size: 12px; }
.favorable .sc-v, .favorable .sc-p { color: var(--good); }
.defavorable .sc-v, .defavorable .sc-p { color: var(--bad); }
.neutre .sc-p { color: var(--mid); }
.sc-p { font-size: 13px; font-weight: 600; }
.sc-f { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); display: grid; gap: 6px; font-size: 12px; }
.sc-f li { display: grid; gap: 3px; }
.scard.na { opacity: .7; }
@media (max-width: 420px) { .sc-v { font-size: 26px; } .scards { gap: 6px; } .scard { padding: 9px 8px 7px; } }

/* ---------- Zones de prix et de loyer ---------- */
.zones { display: grid; gap: 10px; }
.zrow { display: grid; grid-template-columns: 82px 1fr; grid-template-areas: 'lab track' '. cap'; column-gap: 10px; row-gap: 3px; align-items: center; }
.zlab { grid-area: lab; font-size: 13px; font-weight: 600; }
.ztrack { grid-area: track; position: relative; height: 14px; border-radius: 7px; background: var(--surface-2); overflow: visible; }
.zcap { grid-area: cap; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.zcap .ic { width: 14px; height: 14px; color: var(--good); }
.zseg { position: absolute; top: 0; bottom: 0; }
.zseg.favorable { background: color-mix(in srgb, var(--good) 55%, transparent); }
.zseg.neutre { background: color-mix(in srgb, var(--mid) 30%, transparent); }
.zseg.defavorable, .zseg.risque { background: color-mix(in srgb, var(--bad) 45%, transparent); }
.zseg.risque { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--bad) 45%, transparent) 0 4px, transparent 4px 8px); }
.ztrack .zseg:first-child { border-radius: 7px 0 0 7px; }
.zmark { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--surface); }
.zmark.prix { background: var(--bad); }
.zmark.eq { background: var(--muted); }
.zlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.zlegend span { display: inline-flex; align-items: center; gap: 6px; }
.zmark-l { display: inline-block; width: 3px; height: 12px; border-radius: 2px; background: var(--text); }
.zmark-l.prix { background: var(--bad); }
.zmark-l.eq { background: var(--muted); }
.zlegend b { color: var(--text); }
.ztags { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; margin-top: 12px; color: var(--muted); }
.ztag { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }

/* ---------- Comparables à 5 colonnes ---------- */
.comps .tr { grid-template-columns: 1fr 52px 70px 42px 60px; gap: 6px; }

/* ---------- Menu du rapport PDF ---------- */
.pdf-wrap { position: relative; }
.pdf-menu { position: absolute; top: 50px; left: 0; z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; min-width: 220px; }
.pdf-menu[hidden] { display: none; }
.pdf-menu > button { text-align: left; padding: 11px 12px; border: 0; background: none; border-radius: 10px; font-weight: 600; cursor: pointer; }
.pdf-menu > button:hover { background: var(--surface-2); }
.pdf-u { display: flex; align-items: center; gap: 6px; padding: 8px 12px 6px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4px; }
.pdf-u button, .seg button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 4px 9px; font-size: 13px; cursor: pointer; }
.pdf-u button.on, .seg button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- Préférences dans le menu ---------- */
.menu-prefs { display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 10px 12px 6px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.seg { display: inline-flex; gap: 4px; }

/* ---------- Connexion Google ---------- */
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0 10px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn.google .ic.g { stroke: none; }

/* ---------- Démographie ---------- */
.dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 18px; margin-bottom: 14px; }
.dbars-t { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.dbar { display: grid; grid-template-columns: 82px 1fr 38px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 2px 0; }
.dbar i { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.dbar b { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
.dbar em { font-style: normal; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.dmini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.dmini div { display: flex; flex-direction: column; }
.dmini b { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.1; }
.dmini span { font-size: 12px; color: var(--muted); }
/* ---------- Grilles chiffrées à 5 niveaux ---------- */
.grille-seg { margin-bottom: 10px; flex-wrap: wrap; }
.grille { width: 100%; border-collapse: collapse; font-size: 13px; }
.grille td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.grille tr:last-child td { border-bottom: 0; }
.grille .g-ico { width: 44px; white-space: nowrap; }
.grille .g-ico .ic { width: 15px; height: 15px; }
.grille tr.favorable .g-ico { color: var(--good); }
.grille tr.neutre .g-ico { color: var(--mid); }
.grille tr.defavorable .g-ico { color: var(--bad); }
.grille .g-p { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.grille .g-e { text-align: right; color: var(--muted); font-size: 12px; white-space: nowrap; width: 84px; }
.grille small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.grille .g-e2 { display: none; }
.grille tr.on td { background: var(--surface-2); }
.grille tr.on td:first-child { box-shadow: inset 3px 0 0 var(--text); }

/* ---------- Quartier, économie, risques ---------- */
h4.sub { font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 4px; }
.lieux { list-style: none; margin: 0; padding: 0; }
.lieux li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lieux li:last-child { border-bottom: 0; }
.lieux li div { display: flex; flex-direction: column; min-width: 0; }
.lieux small { color: var(--muted); font-size: 12px; }
.lieux small a { color: var(--text); }
.lieux li > span { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.prox { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.prox-v { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; }
.prox-v small { font-size: 16px; color: var(--muted); font-weight: 500; }
.mrows { margin-top: 12px; display: grid; gap: 4px; }
.risques { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.risques li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.risques b { font-size: 14px; }
.risques p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.risques .palier { margin-top: 1px; }

/* ---------- Téléphone et application Android ---------- */
@media (max-width: 899px) {
  /* Résultats de recherche : pleine largeur sous la barre du haut, faciles à toucher */
  .topbar .results { position: fixed; top: calc(var(--top) + var(--safe-top) + 4px); left: 8px; right: 8px; max-height: calc(100vh - var(--top) - var(--safe-top) - 24px); }
  .res { padding: 14px 14px; min-height: 56px; }
  .res small { font-size: 13px; }
  .search input { font-size: 16px; } /* évite le zoom automatique au focus */
  /* Onglets collés en haut du panneau, défilement horizontal fluide */
  .tabs { top: 0; margin-right: -18px; padding-right: 56px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .tab { scroll-snap-align: start; flex: none; }
  .sheet-body { -webkit-overflow-scrolling: touch; }
  .kpis { gap: 6px; }
  .kpi { padding: 9px 10px; }
  .kpi-v { font-size: 20px; }
  .metrics { -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .grille td { padding: 8px 4px; }
  .grille .g-e { width: auto; }
  .scards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sh-actions { flex-wrap: wrap; }
}
@media (max-width: 400px) {
  .comps .tr { grid-template-columns: 1fr 48px 62px 56px; }
  .comps .tr span:nth-child(4) { display: none; }
  .grille .g-e { display: none; }
  .grille .g-e2 { display: block; }
  .sc-v { font-size: 24px; }
  .sc-ico { width: 24px; height: 24px; }
  .zrow { grid-template-columns: 70px 1fr; }
}
/* Dans l'application, le panneau s'ouvre en pleine hauteur (moins de défilement imbriqué) */
body.native .sheet.open { height: calc(100vh - var(--top) - var(--safe-top) - 8px); height: calc(100dvh - var(--top) - var(--safe-top) - 8px); }

/* ---------- Aperçu d'une propriété sur la carte ---------- */
.apercu { position: fixed; z-index: 19; left: 12px; right: 12px; bottom: calc(12px + var(--safe-bottom)); background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; }
.apercu[hidden] { display: none; }
.ap-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: var(--surface-2); }
.ap-eyebrow { font-size: 12px; color: var(--muted); padding-right: 44px; }
.ap-adr { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.15; padding-right: 44px; overflow-wrap: anywhere; }
.ap-v { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.1; margin-top: 4px; }
.ap-v small { font-family: Barlow, sans-serif; font-size: 13px; font-weight: 500; color: var(--muted); }
.ap-s, .ap-f { font-size: 13px; color: var(--muted); }
.apercu .btn { margin-top: 10px; }
body.apercu-open .maplibregl-ctrl-bottom-right, body.apercu-open .zoomhint { display: none; }
@media (min-width: 900px) { .apercu { left: 16px; right: auto; bottom: 24px; width: 360px; } }
.sh-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--surface-2); border-radius: 16px; padding: 6px 12px 6px 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; margin: 2px 48px 6px 0; max-width: calc(100% - 48px); }
.sh-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-back .ic { width: 16px; height: 16px; }
.sf-l { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.sf { font-family: var(--display); font-size: 15px; }
.sf.favorable { color: var(--good); } .sf.neutre { color: var(--mid); } .sf.defavorable { color: var(--bad); }
.sc-f small { color: var(--muted); font-size: 11px; }
.comps .tr span:first-child { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.scard[open] { grid-column: 1 / -1; }
.zrow { grid-template-areas: 'lab track' '. ticks' '. cap'; }
.zticks { grid-area: ticks; position: relative; height: 15px; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.zticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.zticks.deux { height: 28px; }
.zticks span.r2 { top: 13px; }
.zmark.off { width: 0; margin-left: 0; background: none; box-shadow: none; top: -3px; bottom: -3px; }
.zmark.off::after { content: ''; position: absolute; top: 50%; transform: translateY(-50%); border: 6px solid transparent; }
.zmark.off.droite::after { right: -2px; border-left: 8px solid var(--text); border-right: 0; }
.zmark.off.gauche::after { left: -2px; border-right: 8px solid var(--text); border-left: 0; }
.zmark.off.prix.droite::after { border-left-color: var(--bad); } .zmark.off.prix.gauche::after { border-right-color: var(--bad); }
.zmark.off.eq.droite::after { border-left-color: var(--muted); } .zmark.off.eq.gauche::after { border-right-color: var(--muted); }
.zlegend small { font-size: 11px; }
