@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 800; font-display: swap; src: url(/fonts/montserrat-latin-800-normal.woff2) format('woff2'); }

:root {
  --black: #0a0a0a; --ink: #111113; --card: #161618; --card2: #1e1e21; --line: #2b2b30;
  --white: #ffffff; --text: #f2f2f2; --muted: #a6a6ad; --sun: #f5b731; --sun-hover: #ffc94d;
  --ok: #3ccf91; --warn: #ffb547; --err: #ff6b6b; --info: #7cb4ff;
  --radius: 16px; --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--text); font: 16px/1.5 Inter, system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: Montserrat, Inter, sans-serif; font-weight: 800; color: var(--white); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 5vw, 46px); }
h2 { font-size: clamp(22px, 3.4vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
a { color: var(--sun); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sun { color: var(--sun); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--black); padding: 8px 12px; border-radius: 8px; z-index: 1000; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.demo-banner { background: repeating-linear-gradient(45deg, #3a2a00, #3a2a00 12px, #2a1f00 12px, #2a1f00 24px); color: #ffd98a; text-align: center; padding: 8px var(--gutter); font-size: 14px; font-weight: 600; }

.top { position: sticky; top: 0; z-index: 500; background: rgba(10,10,10,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #1c1c1f; padding: 10px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand img { height: 64px; width: auto; display: block; }
.progress { flex: 1; min-width: 0; }
.progress ol { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.progress li { flex: 1; min-width: 0; }
.progress button { all: unset; display: block; width: 100%; cursor: default; }
.progress button[data-reachable="1"] { cursor: pointer; }
.progress .bar { display: block; height: 4px; border-radius: 4px; background: #2a2a2e; transition: background .4s var(--ease); }
.progress .lbl { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress li.done .bar { background: #8a6a1d; }
.progress li.current .bar { background: var(--sun); }
.progress li.current .lbl { color: var(--white); font-weight: 600; }
.progress button:focus-visible { outline: 2px solid var(--sun); border-radius: 4px; }
@media (max-width: 760px) { .progress .lbl { display: none; } .brand img { height: 44px; } .top { gap: 14px; } }

main { flex: 1; outline: none; }
.app { max-width: 1180px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) var(--gutter) 120px; }
.loading { color: var(--muted); }

.step-head { margin-bottom: 24px; }
.step-head .kicker { color: var(--sun); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: #d9d9dd; max-width: 760px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 24px); margin-bottom: 16px; animation: rise .45s var(--ease) both; }
.card h3 { margin-bottom: 12px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
legend { font-weight: 600; color: var(--white); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid #3a3a40; background: var(--card2); color: var(--text); transition: border-color .2s, background .2s, transform .15s; }
.chip input:checked + span { border-color: var(--sun); background: rgba(245,183,49,.14); color: var(--white); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.chip:hover span { border-color: #5a5a62; }

label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-weight: 600; margin-bottom: 6px; color: var(--white); }
label.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid #3a3a40; background: #0f0f11; color: var(--white); font: inherit; }
input:focus, select:focus { border-color: var(--sun); outline: none; box-shadow: 0 0 0 3px rgba(245,183,49,.25); }
input[aria-invalid=true] { border-color: var(--err); }
.inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline > * { flex: 1; min-width: 140px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--sun); flex: none; margin-top: 1px; }
input[type=range] { width: 100%; accent-color: var(--sun); min-height: 32px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent; background: var(--sun); color: var(--black); font: 700 16px Inter, sans-serif; cursor: pointer; text-decoration: none; transition: background .2s, transform .15s, box-shadow .2s; }
.btn:hover { background: var(--sun-hover); box-shadow: 0 10px 30px -12px rgba(245,183,49,.6); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: #3a3a40; color: #8d8d95; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--white); border-color: #44444b; }
.btn.ghost:hover { background: #1f1f23; box-shadow: none; }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn.link { background: none; color: var(--sun); padding: 0; min-height: 0; text-decoration: underline; font-weight: 600; }
.btn.link:hover { box-shadow: none; }
.nav-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 400; background: rgba(10,10,10,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid #1c1c1f; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
.nav-bar .inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.nav-bar .hint { color: var(--muted); font-size: 14px; flex: 1; text-align: center; }
@media (max-width: 600px) { .nav-bar .hint { display: none; } .nav-bar .btn { flex: 1; } }

.notice { border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 15px; border: 1px solid; }
.notice.info { background: rgba(124,180,255,.08); border-color: rgba(124,180,255,.35); }
.notice.warn { background: rgba(255,181,71,.08); border-color: rgba(255,181,71,.4); }
.notice.err { background: rgba(255,107,107,.08); border-color: rgba(255,107,107,.45); }
.notice.ok { background: rgba(60,207,145,.08); border-color: rgba(60,207,145,.4); }
.notice p:last-child { margin: 0; }

.map { height: min(62vh, 560px); min-height: 340px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #1a1a1a; }
.map.tall { height: min(70vh, 640px); }
.leaflet-container { font: 13px Inter, sans-serif; background: #1a1a1a; }
.leaflet-control-attribution { background: rgba(10,10,10,.7) !important; color: #ccc !important; }
.leaflet-control-attribution a { color: var(--sun) !important; }
.vertex { width: 18px !important; height: 18px !important; margin: -9px 0 0 -9px !important; border-radius: 50%; background: var(--sun); border: 3px solid #000; box-shadow: 0 0 0 2px rgba(245,183,49,.35); }
.pan-label { background: var(--sun); color: #000; font-weight: 800; border-radius: 50%; width: 28px !important; height: 28px !important; margin: -14px 0 0 -14px !important; display: grid; place-items: center; font-size: 14px; border: 2px solid #000; }

.suggest { list-style: none; margin: 6px 0 0; padding: 6px; border: 1px solid #3a3a40; border-radius: 12px; background: #121214; }
.suggest li { padding: 12px; border-radius: 8px; cursor: pointer; }
.suggest li[aria-selected=true], .suggest li:hover { background: #24242a; }

.status-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.status-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.badge { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 800; color: #000; }
.badge.ok { background: var(--ok); } .badge.warn { background: var(--warn); } .badge.err { background: var(--err); } .badge.info { background: var(--info); }

.counter { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 12px; text-align: center; margin: 8px 0 12px; }
.counter button { width: 64px; height: 64px; border-radius: 50%; border: 1px solid #44444b; background: var(--card2); color: var(--white); font: 700 30px Inter, sans-serif; cursor: pointer; transition: background .2s, transform .1s; }
.counter button:hover:not([disabled]) { background: #2a2a30; border-color: var(--sun); }
.counter button:active:not([disabled]) { transform: scale(.96); }
.counter button[disabled] { opacity: .35; cursor: not-allowed; }
.counter .big { font: 800 44px Montserrat, sans-serif; color: var(--white); line-height: 1; }
.counter .big small { display: block; font: 500 14px Inter, sans-serif; color: var(--muted); margin-top: 6px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpi { background: var(--card2); border-radius: 12px; padding: 12px 14px; }
.kpi b { display: block; font: 800 22px Montserrat, sans-serif; color: var(--white); }
.kpi b.sun { color: var(--sun); }
.kpi span { font-size: 13px; color: var(--muted); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(245,183,49,.15); color: var(--sun); }
.pill.grey { background: #2a2a30; color: #cfcfd4; }

.pan-row { border-top: 1px solid var(--line); padding: 14px 0; }
.pan-row:first-of-type { border-top: 0; }
.pan-row .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.range-row { display: grid; grid-template-columns: 110px 1fr 70px; gap: 10px; align-items: center; font-size: 14px; }
.range-row output { text-align: right; font-weight: 700; }

.options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.option { position: relative; border: 1px solid #3a3a40; border-radius: 14px; padding: 14px; background: var(--card2); cursor: pointer; display: block; }
.option input { position: absolute; opacity: 0; }
.option:has(input:checked) { border-color: var(--sun); background: rgba(245,183,49,.08); }
.option:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.option b { display: block; color: var(--white); margin-bottom: 4px; }
.option span { font-size: 13px; color: var(--muted); }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td.n, table.data th.n { text-align: right; white-space: nowrap; }
table.data tr.total td { font-weight: 700; color: var(--white); border-bottom: 0; }
.table-wrap { overflow-x: auto; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; margin: 12px 0; background: var(--card); }
details summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--white); }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
/* Étape 3 : budget sur toute la largeur, fourchette sur une ligne ; explication repliable. */
.kpi-wide { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kpi-wide b { white-space: nowrap; overflow-wrap: normal; }
/* Grille fixe à deux colonnes : cases de même largeur, alignées ligne à ligne. */
.kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Étape 3 : sélecteur de stockage compact. */
.store-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.store-opt { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 8px 12px; border: 1px solid #3a3a40; border-radius: 14px; background: var(--card2); cursor: pointer; transition: border-color .2s, background .2s; }
.store-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.store-opt:has(input:checked) { border-color: var(--sun); background: linear-gradient(160deg, rgba(245,183,49,.16), rgba(245,183,49,.04)); }
.store-opt:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.store-opt:hover { border-color: #5a5a62; }
.store-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--muted); background: #232327; }
.store-opt:has(input:checked) .store-ico { color: var(--sun); background: rgba(245,183,49,.12); }
.store-opt b { color: var(--white); font-size: 14px; line-height: 1.25; }
.store-opt span:not(.store-ico) { font-size: 12px; color: var(--muted); }
details.store-info { margin-top: 10px; }
/* Étape 5 : budget estimatif. */
.budget-hero { position: relative; overflow: hidden; display: grid; gap: 6px; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(245,183,49,.35); background: radial-gradient(120% 140% at 0% 0%, rgba(245,183,49,.18), rgba(245,183,49,.03) 60%), var(--card2); }
.budget-eyebrow { font: 700 12px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.budget-amount { font: 800 clamp(28px, 3.4vw, 38px)/1.1 Montserrat, sans-serif; white-space: nowrap; background: linear-gradient(90deg, #ffe08a, #f5b731); -webkit-background-clip: text; background-clip: text; color: transparent; }
.budget-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.budget-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #232327; border: 1px solid var(--line); font-size: 14px; color: var(--text); }
.budget-chips .tick { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(60,207,145,.15); color: #3ccf91; }
.budget-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.budget-stats > div { padding: 14px 16px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.budget-stats b { display: block; font: 800 24px Montserrat, sans-serif; color: var(--white); white-space: nowrap; }
.budget-stats span { font-size: 13px; color: var(--muted); }
details.budget-how { margin-top: 12px; }
/* Étape 4 : visuels (anneaux, facture avant / après). */
.viz { display: flex; flex-direction: column; }
.viz-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.viz-head h3 { margin: 0; }
.viz-badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--sun); background: rgba(245,183,49,.08); border: 1px solid rgba(245,183,49,.25); flex: none; }
.ico { display: inline-grid; place-items: center; }
.viz-q { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(245,183,49,.5); background: rgba(245,183,49,.12); color: var(--sun); font: 700 14px Inter, sans-serif; cursor: pointer; position: relative; }
.viz-q::after { content: ""; position: absolute; inset: -8px; }
.viz-help { margin: -4px 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--card2); color: #d9d9dd; font-size: 14px; }
.donut-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; flex: 1; }
.donut { position: relative; width: 160px; height: 160px; flex: none; }
.donut svg { width: 100%; height: 100%; display: block; }
.donut svg circle:last-child { transition: stroke-dasharray .9s var(--ease); }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-c b { font: 800 32px Montserrat, sans-serif; color: var(--white); line-height: 1; }
.donut-c span { font-size: 12px; color: var(--muted); margin-top: 4px; }
.viz-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; min-width: 0; flex: 1; }
.viz-legend li { display: grid; grid-template-columns: 12px 1fr; gap: 12px; align-items: start; }
.viz-legend i { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; }
.viz-legend b { display: block; font: 800 18px Montserrat, sans-serif; color: var(--white); }
.viz-legend span { font-size: 13px; color: var(--muted); }
.bill-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; margin-bottom: 12px; }
.bill-l { color: var(--muted); font-weight: 600; font-size: 14px; }
.bill-track { height: 34px; border-radius: 10px; background: #232327; overflow: hidden; }
.bill-fill { height: 100%; border-radius: 10px; transition: width .9s var(--ease); }
.bill-fill.before { background: linear-gradient(90deg, #ffd95e, #f5b731); }
.bill-fill.after { background: linear-gradient(90deg, #34d399, #22c55e); }
.bill-v { font: 800 16px Montserrat, sans-serif; white-space: nowrap; color: var(--white); }
.bill-v.after { color: #3ccf91; }
.save-chip { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin: 6px 0 0; padding: 10px 16px; border-radius: 999px; background: rgba(60,207,145,.08); border: 1px solid rgba(60,207,145,.3); color: #3ccf91; font-size: 14px; }
.save-chip b { color: #3ccf91; }
details h4 { margin: 4px 0 8px; color: var(--white); font: 700 15px Inter, sans-serif; }
.kpis-2 .kpi { display: flex; flex-direction: column; justify-content: center; min-height: 84px; }
.kpis-2 .kpi-wide { flex-direction: row; align-items: baseline; justify-content: space-between; min-height: 0; }
.budget-scope { margin: 0 0 12px; padding-left: 18px; color: var(--text); }
.budget-scope li { margin: 2px 0; }
details.reco-why { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 0; margin: 14px 0 6px; }
details.reco-why summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; min-height: 44px; font-weight: 400; color: var(--text); }
details.reco-why summary::-webkit-details-marker { display: none; }
details.reco-why[open] summary { border-bottom: 0; margin-bottom: 0; }
details.reco-why .chev { flex: none; width: 10px; height: 10px; border-right: 2px solid var(--sun); border-bottom: 2px solid var(--sun); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s var(--ease); }
details.reco-why[open] .chev { transform: rotate(225deg) translate(-2px, -2px); }
details.reco-why p, details.reco-why ul { margin: 0 0 8px; color: var(--muted); }
details.reco-why ul { padding-left: 18px; }
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.def { display: grid; gap: 8px; font-size: 14px; }
.def b { color: var(--white); }

.code-input { font: 700 28px/1 Montserrat, monospace !important; letter-spacing: .4em; text-align: center; max-width: 260px; }
.verified { color: var(--ok); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.tagline { font: 800 15px Montserrat, sans-serif; color: var(--muted); }
.tagline b { color: var(--sun); font-weight: 800; }
/* Étape 1 : introduction premium (positionnement, promesse, engagements) et questionnaire. */
.intro { position: relative; display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
.intro::before { content: ""; position: absolute; z-index: -1; left: -10%; top: -120px; width: 70%; height: 520px; background: radial-gradient(closest-side, rgba(245,183,49,.13), transparent); pointer-events: none; }
.intro-copy { display: grid; gap: 22px; align-content: start; }
.intro-copy h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -.02em; margin: 0; }
.eyebrow { margin: 0; font: 700 13px Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--sun); }
.intro .promise { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: #d9d9dd; max-width: 560px; }
.proof { list-style: none; margin: 4px 0 0; padding: 0; max-width: 560px; }
.proof li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid #222226; }
.proof li:last-child { border-bottom: 1px solid #222226; }
.proof b { display: block; color: var(--white); font-weight: 600; margin-bottom: 2px; }
.proof span:not(.proof-icon) { color: var(--muted); font-size: 15px; }
.proof-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--sun); background: rgba(245,183,49,.08); border: 1px solid rgba(245,183,49,.22); }
.intro .tagline { margin: 4px 0 0; }
.intro-form { margin: 0; }
.intro-form h2 { margin-bottom: 4px; }
.form-sub { margin-bottom: 18px; }
@media (min-width: 1000px) {
  .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .intro-copy { position: sticky; top: 120px; padding-top: 8px; }
}

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: #26262b; color: var(--white); border: 1px solid #3a3a40; padding: 12px 18px; border-radius: 12px; z-index: 900; max-width: min(92vw, 520px); box-shadow: 0 20px 50px -20px #000; }
.toast.err { border-color: var(--err); }
.foot { border-top: 1px solid #1c1c1f; padding: 18px var(--gutter) 100px; text-align: center; font-size: 13px; color: var(--muted); }
.foot p { margin: 4px 0; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(0,0,0,.25); border-top-color: currentColor; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }

/* --- v2 : sauvegarde, bulle WhatsApp, financement --- */
.app { padding-bottom: 190px; }
.save-row { margin: 18px 0 0; text-align: center; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.dialog { width: min(560px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); padding: 20px; }
.dialog::backdrop { background: rgba(0,0,0,.7); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.dialog-head h2 { font-size: 22px; }
.dialog-close { background: none; border: 0; color: var(--white); font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.bubble-wrap { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 450; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.bubble { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px 8px 10px; border-radius: 999px; border: 1px solid #2f6f4a; background: #10241a; color: #e9fff2; font: 600 14px Inter, sans-serif; cursor: pointer; box-shadow: 0 10px 30px -12px #000; }
.bubble:hover { background: #163323; }
.bubble-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #25d366; color: #fff; }
.bubble-panel { width: min(320px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 20px 50px -20px #000; }
.bubble-title { font-weight: 700; color: var(--white); margin-bottom: 6px; }
@media (max-width: 600px) { .bubble-label { display: none; } .bubble { padding: 8px; } }
.fin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.durations { display: flex; flex-wrap: wrap; gap: 8px; }
.option.meet { text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 4px; }
.option.meet:hover { border-color: var(--sun); }
.calendly { margin: 12px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.calendly iframe { width: 100%; height: 680px; border: 0; display: block; }

/* --- v4 : expérience mobile (téléphone d'abord, portrait et paysage) --- */
html, body { overflow-x: clip; }
button, .btn, .chip, .option, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
input, select, textarea { scroll-margin: 96px 0 24px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.options { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.kpis { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
.kpi b { overflow-wrap: anywhere; }
.top, .app, .nav-bar, .foot { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.app { padding-bottom: calc(var(--nav-h, 80px) + 64px); }
.foot { padding-bottom: calc(var(--nav-h, 0px) + 24px); }
.toast { bottom: calc(var(--nav-h, 0px) + 12px + env(safe-area-inset-bottom)); }
.progress-now { display: none; margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-lbl { margin-left: 4px; }
.nav-extra:empty { display: none; }
/* Boutons secondaires inactifs (ex. « Annuler » sans modification) : visiblement indisponibles. */
.btn.ghost[disabled], .btn.link[disabled] { background: transparent; color: #6b6b72; border-color: #2b2b30; text-decoration: none; cursor: not-allowed; }
.spinner { vertical-align: -3px; }
.app .spinner { border-color: rgba(255,255,255,.18); border-top-color: var(--sun); }
.app .btn .spinner { border-color: rgba(0,0,0,.25); border-top-color: currentColor; }

/* Zones tactiles : 44 × 44 px minimum sur écran tactile. */
@media (pointer: coarse) {
  .btn.small { min-height: 44px; }
  .btn.link { padding: 12px 4px; margin: -12px -4px; }
  input[type=range] { height: 44px; }
  .leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }
  .dialog-close { min-width: 44px; min-height: 44px; }
}

/* Carte : poignées de sommet plus grandes que le point visible, compteur et plein écran. */
.vertex { width: 40px !important; height: 40px !important; margin: -20px 0 0 -20px !important; background: transparent; border: 0; box-shadow: none; border-radius: 50%; }
.vertex::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--sun); border: 3px solid #000; box-shadow: 0 0 0 2px rgba(245,183,49,.35); }
.map { isolation: isolate; }
.map-card { padding: 12px; }
.map-wrap, .map-area { position: relative; }
.map-tools { padding-top: 4px; }
.map-fs { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #44444b; background: rgba(10,10,10,.85); color: var(--white); font: 700 20px Inter, sans-serif; cursor: pointer; }
.map-counter { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(10,10,10,.9); border: 1px solid #3a3a40; box-shadow: 0 10px 30px -10px #000; max-width: calc(100% - 20px); }
.map-counter[hidden] { display: none; }
.map-counter button { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--sun); color: #000; font: 800 26px/1 Inter, sans-serif; cursor: pointer; }
.map-counter button[disabled] { background: #3a3a40; color: #8d8d95; }
.mc-text { text-align: center; min-width: 0; padding: 0 4px; }
.mc-text b { display: block; color: var(--white); font-size: 15px; white-space: nowrap; }
.mc-text span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.map-full, html.map-full body { overflow: hidden; }
/* L'animation d'apparition laisse une transformation sur la carte parente : elle piégerait la position fixe. */
.map-card, html.map-full .card { animation: none; transform: none; }
.map-wrap.full { position: fixed; inset: 0; z-index: 1000; background: var(--black); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.map-wrap.full .map-area { flex: 1; min-height: 0; }
.map-wrap.full .map { height: 100% !important; min-height: 0; border-radius: 0; border: 0; }
.map-wrap.full .map-tools { background: var(--card); border-top: 1px solid var(--line); padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); max-height: 42vh; overflow: auto; }
.map-wrap.full .map-tools .tool-row { margin: 4px 0; }
.guide { margin: 6px 0 0; padding-left: 20px; }
.guide li { margin-bottom: 4px; }

/* Graphique : lecture au toucher. */
.chart g.m { cursor: pointer; }
.chart g.m.on .hit { fill: rgba(255,255,255,.07); }
.chart-read { font-size: 14px; margin: 8px 0 2px; min-height: 1.5em; }

/* Comparaison : cartes sur téléphone, tableau sur grand écran. */
.cmp-cards { display: none; gap: 10px; }
.cmp { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.cmp.on { border-color: var(--sun); background: linear-gradient(135deg, rgba(245,183,49,.16), rgba(245,183,49,.05)); }
.cmp.on > b { color: var(--sun); }
/* Solution retenue mise en avant dans le tableau (couleur de la charte). */
table.data tr.cmp-on td { background: rgba(245,183,49,.12); color: var(--white); font-weight: 700; border-bottom-color: rgba(245,183,49,.35); }
table.data tr.cmp-on td:first-child { color: var(--sun); box-shadow: inset 3px 0 0 var(--sun); }
table.data tr.cmp-on .pill { margin-left: 8px; background: var(--sun); color: #000; }
.cmp > b { display: flex; justify-content: space-between; gap: 8px; color: var(--white); margin-bottom: 8px; }
.cmp dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0; }
.cmp dt { font-size: 12px; color: var(--muted); }
.cmp dd { margin: 0; font-weight: 700; color: var(--white); }
.pdf-actions { align-items: center; }
.net-banner { position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h, 0px) + 10px); z-index: 460; max-width: 560px; margin: 0 auto; padding: 12px 14px; border-radius: 12px; background: #2a2210; border: 1px solid rgba(255,181,71,.6); color: #ffe2a8; font-size: 14px; box-shadow: 0 10px 30px -12px #000; }

/* Bulle WhatsApp intégrée à la barre de navigation sur téléphone. */
.bubble.docked { width: 48px; height: 48px; min-height: 48px; padding: 0; justify-content: center; flex: none; }
.bubble.docked .bubble-label { display: none; }
.bubble-wrap.docked { bottom: calc(var(--nav-h, 0px) + 8px); }
.wa-inline:empty { display: none; }
.wa-inline .bubble.docked { width: auto; padding: 8px 16px 8px 8px; }
.wa-inline .bubble.docked .bubble-label { display: inline; }

@media (max-width: 760px) {
  .demo-banner { font-size: 12px; padding: 6px 16px; }
  .demo-banner .long { display: none; }
  .top { padding-top: 8px; padding-bottom: 8px; gap: 14px; }
  .brand img { height: 44px; }
  .progress-now { display: block; }
  .progress button { padding: 20px 0; margin: -20px 0; }
  .brand { padding: 0; }
  .app { padding-top: 16px; }
  .step-head { margin-bottom: 16px; }
  .step-head .kicker { display: none; }
  .lead { font-size: 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .intro-copy { gap: 16px; }
  .proof li { padding: 12px 0; }
  .proof span:not(.proof-icon) { font-size: 14px; }
  .nav-bar { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .nav-bar .inner { flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
  .nav-bar .hint { display: block; order: -1; flex: 1 0 100%; text-align: center; font-size: 13px; }
  .nav-bar .hint:empty { display: none; }
  .nav-bar .btn { flex: 1; min-height: 48px; padding: 10px 16px; }
  .nav-bar .btn.back { flex: none; width: 48px; padding: 0; font-size: 20px; }
  .nav-bar .back-lbl, .nav-bar .back-gap { display: none; }
  html.kb .nav-bar, html.kb .bubble-wrap, html.kb .net-banner { display: none; }
  .map { height: 52vh; height: 52svh; min-height: 280px; }
  .map.tall { height: 58vh; height: 58svh; }
  .range-row { grid-template-columns: 92px 1fr 48px; }
  .pan-row .head { flex-wrap: wrap; }
  .results-split > :last-child { order: -1; }
  .kpis-2 .kpi:not(.kpi-wide) { min-height: 96px; padding: 12px; }
  .donut { width: 128px; height: 128px; }
  .donut-c b { font-size: 26px; }
  .donut-c span { font-size: 10px; }
  .budget-amount { font-size: 28px; }
  .budget-stats b { font-size: 19px; }
  .budget-stats > div { padding: 12px; }
  .donut-row { gap: 18px; }
  .bill-row { grid-template-columns: 44px 1fr auto; gap: 10px; }
  .bill-track { height: 28px; }
  .bill-v { font-size: 14px; }
  .save-chip { border-radius: 14px; }
  .kpis-2 .kpi:not(.kpi-wide) b { font-size: 19px; white-space: nowrap; }
  .cmp-cards { display: grid; }
  .cmp-table { display: none; }
  table.data.stack tr { display: grid; padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.data.stack td { display: block; border: 0; padding: 2px 0; }
  .calendly iframe { height: 720px; height: min(720px, 85svh); }
  .pdf-actions .btn { flex: 1 1 140px; }
  .pdf-actions .btn:first-child { flex-basis: 100%; }
  .dialog { width: calc(100vw - 24px); max-height: calc(100svh - 24px); padding: 16px; }
  .code-input { width: 100%; }
  .bubble-wrap:not(.docked) { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .foot { padding-bottom: calc(var(--nav-h, 0px) + 80px); }
}
@media (max-width: 520px) {
  /* Un champ par ligne : saisie confortable et e-mail entièrement visible. */
  .inline > * { flex-basis: 100%; }
}

/* Téléphone en paysage : peu de hauteur, l'en-tête défile avec la page. */
@media (max-height: 500px) and (orientation: landscape) {
  .top { position: static; }
  .map, .map.tall { height: calc(100vh - 120px); height: calc(100svh - 120px); min-height: 200px; }
  .nav-bar { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .nav-bar .btn { min-height: 44px; }
  .calendly iframe { height: calc(100svh - 40px); }
  /* Compteur dans le coin : le centre de la carte (la toiture) reste dégagé. */
  .map-counter { left: auto; right: 10px; transform: none; bottom: 24px; }
}
