/* Charging Check v3 — design system
   Outil de terrain haut de gamme : une décision par écran, grandes cibles, contraste fort en plein soleil.
   Identité : marine profond + « étincelle » vert électrique, typographie Archivo étendue. Clair et sombre. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"), url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
:root {
  --bg: #EEF1F6; --bg-2: #E4E9F2; --surface: #FFFFFF; --surface-2: #F4F6FA; --ink: #0B1B3A; --muted: #47546F; --line: #D5DCE8; --line-strong: #96A4BD;
  --navy: #0B1B3A; --navy-2: #16306A; --on-navy: #FFFFFF; --on-navy-muted: #C2CDE3;
  --primary: #0B1B3A; --on-primary: #FFFFFF; --primary-mark: #C8F04B;
  --accent: #1D4ED8; --accent-soft: #E4ECFF;
  --spark: #C8F04B; --on-spark: #0B1B3A;
  --ok: #15803D; --ok-bg: #E2F5E9; --info: #8A5206; --info-bg: #FFF3D9; --warn: #B93C0A; --warn-bg: #FFE9D8;
  --alert: #B91C1C; --alert-bg: #FDE4E4; --neutral: #475569; --neutral-bg: #E9EDF3;
  --danger: #C81E1E; --on-danger: #FFFFFF;
  --led-green: #16C35A; --led-yellow: #F5C518; --led-red: #EF3B3B;
  --shadow-1: 0 1px 2px rgba(11, 27, 58, .05), 0 4px 14px rgba(11, 27, 58, .05);
  --shadow-2: 0 2px 4px rgba(11, 27, 58, .06), 0 14px 34px rgba(11, 27, 58, .10);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 18px; --r-sm: 12px; --tap: 58px;
  --t-fast: 140ms; --t-med: 260ms; --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060B17; --bg-2: #0A1224; --surface: #0F182D; --surface-2: #152039; --ink: #EAF0FA; --muted: #A9B4CB; --line: #23304E; --line-strong: #4A5B80;
    --navy: #0F2147; --navy-2: #1B3877;
    --primary: #C8F04B; --on-primary: #0B1B3A; --primary-mark: #0B1B3A;
    --accent: #9DBBFF; --accent-soft: #182A52;
    --ok: #5DD08D; --ok-bg: #0E2A1B; --info: #F4B952; --info-bg: #2A2110; --warn: #FF9D61; --warn-bg: #2D1A0F;
    --alert: #FF8585; --alert-bg: #2F1414; --neutral: #AAB6CC; --neutral-bg: #19223A;
    --danger: #D92B2B;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .45), 0 18px 40px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060B17; --bg-2: #0A1224; --surface: #0F182D; --surface-2: #152039; --ink: #EAF0FA; --muted: #A9B4CB; --line: #23304E; --line-strong: #4A5B80;
  --navy: #0F2147; --navy-2: #1B3877;
  --primary: #C8F04B; --on-primary: #0B1B3A; --primary-mark: #0B1B3A;
  --accent: #9DBBFF; --accent-soft: #182A52;
  --ok: #5DD08D; --ok-bg: #0E2A1B; --info: #F4B952; --info-bg: #2A2110; --warn: #FF9D61; --warn-bg: #2D1A0F;
  --alert: #FF8585; --alert-bg: #2F1414; --neutral: #AAB6CC; --neutral-bg: #19223A;
  --danger: #D92B2B;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .45), 0 18px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  margin: 0; min-height: 100%; color: var(--ink); overflow-x: clip;
  background: var(--bg) linear-gradient(180deg, var(--bg-2), var(--bg) 320px) no-repeat;
  font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button, a, label, summary { touch-action: manipulation; }
button { cursor: pointer; }
a { color: var(--accent); }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
svg.i { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }

/* ───────── Barre supérieure ───────── */
.topbar {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg-2) 86%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent; transition: border-color var(--t-fast);
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-row { max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 8px; min-height: 62px; padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)); }
.icon-btn { width: 48px; height: 48px; flex: none; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink); box-shadow: var(--shadow-1); }
.icon-btn:active { background: var(--surface-2); transform: scale(.96); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 780; font-stretch: 114%; letter-spacing: -.01em; font-size: 17px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.crumb b { font-size: 15px; font-weight: 720; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { margin-left: auto; flex: none; display: flex; align-items: center; gap: 6px; }
.lang-btn, .smoke-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 10px; border-radius: 999px; font-weight: 720; font-size: 14px; background: var(--surface); }
.lang-btn { border: 1px solid var(--line); color: var(--ink); letter-spacing: .04em; }
.smoke-btn { border: 1.5px solid var(--danger); color: var(--danger); max-width: 150px; }
.smoke-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-btn svg.i, .smoke-btn svg.i { width: 18px; height: 18px; }
.lang-btn:active { background: var(--surface-2); }
.smoke-btn:active { background: var(--alert-bg); }
.progress { height: 4px; background: var(--line); position: relative; overflow: hidden; }
.progress > i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--spark)); transition: transform var(--t-med) var(--ease); }
.progress[hidden] { display: none; }
.update-bar { max-width: 656px; margin: 0 auto 8px; padding: 6px 8px 6px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 14px; background: var(--navy); color: var(--on-navy); font-weight: 650; font-size: 14.5px; }
.update-bar button { background: var(--spark); color: var(--on-spark); border: 0; border-radius: 10px; padding: 0 14px; font-weight: 800; min-height: 44px; }

/* ───────── Écrans ───────── */
main { outline: none; overflow-x: clip; }
.screen { max-width: 680px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 20px; }
body.has-dock .screen { padding-bottom: calc(var(--dock-h, 140px) + 24px); }
.screen.enter-fwd { animation: in-fwd var(--t-med) var(--ease); }
.screen.enter-back { animation: in-back var(--t-med) var(--ease); }
@keyframes in-fwd { from { opacity: 0; transform: translateX(22px); } }
@keyframes in-back { from { opacity: 0; transform: translateX(-22px); } }
.splash { min-height: 60vh; display: grid; place-items: center; }
.splash i { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.q-head { display: grid; gap: 10px; }
.q-title { font-size: clamp(25px, 6.6vw, 32px); line-height: 1.1; font-weight: 800; font-stretch: 112%; letter-spacing: -.022em; }
.q-lead { color: var(--muted); font-size: 16.5px; max-width: 60ch; }
.ref { justify-self: start; font: 650 12px/1 var(--mono); color: var(--muted); letter-spacing: .02em; padding: 5px 8px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); }
.kicker { font-size: 13px; font-weight: 760; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }

/* ───────── Cartes de choix ───────── */
.opts { display: grid; gap: 10px; }
.opt, .pick {
  width: 100%; min-height: var(--tap); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  text-align: left; padding: 13px 12px 13px 14px; border-radius: var(--r); border: 1.5px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-1);
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
@media (hover: hover) { .opt:hover, .pick:hover, .model:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); } }
.opt:active, .pick:active { transform: scale(.985); }
.opt.selected, .pick.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.opt.impossible { border-style: dashed; box-shadow: none; background: transparent; }
.opt .ico, .pick .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.opt.impossible .ico { background: transparent; color: var(--muted); border-style: dashed; }
.opt .txt, .pick .txt { display: grid; gap: 3px; min-width: 0; }
.opt .lbl, .pick b { font-weight: 660; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.opt .sub, .pick .txt span { font-size: 14.5px; color: var(--muted); line-height: 1.35; }
.opt .note { font-size: 13.5px; color: var(--ink); background: var(--info-bg); border-radius: 9px; padding: 7px 9px; margin-top: 5px; line-height: 1.35; }
.opt .note b { color: var(--info); }
.opt .chev, .pick .chev { color: var(--line-strong); display: grid; }
.opt.selected .chev, .pick.selected .chev { color: var(--accent); }
.pick { min-height: 84px; padding-block: 16px; }
.pick .ico { width: 54px; height: 54px; border-radius: 16px; background: var(--navy); color: var(--spark); border: 0; }
.pick b { font-size: 18.5px; font-weight: 760; font-stretch: 108%; }

/* « Autre » : champ libre */
.other { display: grid; gap: 0; }
.other-toggle { border-style: dashed; box-shadow: none; background: transparent; }
.other-toggle .ico { background: transparent; border-style: dashed; color: var(--accent); }
.other.open .other-toggle { border-style: solid; border-color: var(--accent); background: var(--surface); border-radius: var(--r) var(--r) 0 0; border-bottom-color: transparent; }
.other-box { display: grid; gap: 8px; padding: 14px; border: 1.5px solid var(--accent); border-top: 0; border-radius: 0 0 var(--r) var(--r); background: var(--surface); animation: drop var(--t-med) var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.other-box label, .field label, .lbl-sm { font-weight: 660; font-size: 15px; }
.other-note label { display: flex; align-items: center; gap: 8px; }
.other-note label svg.i { width: 18px; height: 18px; color: var(--accent); }

/* LED */
.led { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: #0B1220; }
.led.blink { outline: 2px dashed var(--c); outline-offset: -5px; }
.led i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent), 0 0 14px 2px var(--c); }
.led.blink i { animation: led 1.1s steps(1, end) infinite; }
@keyframes led { 50% { background: #2A3346; box-shadow: none; } }
.led-green { --c: var(--led-green); } .led-yellow { --c: var(--led-yellow); } .led-red { --c: var(--led-red); }

/* Encadrés */
.callout { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--info-bg); color: var(--ink); font-size: 15px; }
.callout svg.i { color: var(--info); width: 22px; height: 22px; margin-top: 1px; }
.callout.warn { background: var(--warn-bg); }
.callout.warn svg.i { color: var(--warn); }

/* ───────── Checklist ───────── */
.checklist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.check-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; min-height: var(--tap); padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; box-shadow: var(--shadow-1); transition: border-color var(--t-fast), background-color var(--t-fast); }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-row .box { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--line-strong); display: grid; place-items: center; background: var(--surface); transition: background-color var(--t-fast), border-color var(--t-fast); }
.check-row .box svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: opacity var(--t-fast), transform var(--t-fast) var(--ease); }
.check-row.on { border-color: var(--ok); background: var(--ok-bg); }
.check-row.on .box { background: var(--ok); border-color: var(--ok); }
.check-row.on .box svg { opacity: 1; transform: none; }
:root[data-theme="dark"] .check-row.on .box svg { stroke: #06210F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .check-row.on .box svg { stroke: #06210F; } }
.check-row:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.check-row .ctext { display: grid; gap: 2px; overflow-wrap: anywhere; }
.check-row .num { font: 760 12.5px/1.2 var(--font); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.check-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }

/* ───────── Barre d'action collante (dans #dock, hors de l'écran animé) ───────── */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.actionbar .inner { max-width: 648px; margin: 0 auto; display: grid; gap: 8px; }

/* ───────── Boutons ───────── */
.btn { min-height: var(--tap); border-radius: 16px; border: 0; padding: 8px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 740; font-size: 17px; line-height: 1.2; text-align: center; text-decoration: none; transition: transform var(--t-fast) var(--ease), background-color var(--t-fast), opacity var(--t-fast); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .42; pointer-events: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-1); }
.btn-primary svg.i:last-child { color: var(--primary-mark); }
.btn-spark { background: var(--spark); color: var(--on-spark); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--spark) 70%, transparent); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-link { background: none; border: 0; color: var(--accent); font-weight: 660; min-height: 48px; padding: 0 8px; display: inline-flex; align-items: center; gap: 8px; justify-self: center; }
.btn-link svg.i { width: 18px; height: 18px; }
.btn.block { width: 100%; }
.btn-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.btn-row .btn { padding-inline: 10px; min-width: 0; overflow-wrap: anywhere; }
.btn-row:has(> :only-child) { grid-template-columns: 1fr; }

/* ───────── Accueil ───────── */
.hero {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; color: var(--on-navy); padding: 24px 22px 22px; display: grid; gap: 14px;
  background: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--spark) 22%, transparent), transparent 60%), radial-gradient(120% 90% at 80% 0%, var(--navy-2), var(--navy) 62%);
  box-shadow: var(--shadow-2);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%); }
.eyebrow { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); font-size: 13px; font-weight: 720; letter-spacing: .05em; text-transform: uppercase; }
.eyebrow svg.i { width: 16px; height: 16px; color: var(--spark); fill: var(--spark); }
.hero h1 { font-size: clamp(30px, 8.6vw, 42px); line-height: 1.03; font-weight: 820; font-stretch: 118%; letter-spacing: -.028em; }
.hero h1 em { font-style: normal; color: var(--spark); }
.hero p { color: var(--on-navy-muted); max-width: 46ch; font-size: 16.5px; }
.hero .illus { width: 100%; height: auto; display: block; margin: 0 0 -2px; }
.hero .flow { stroke-dasharray: 6 14; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -40; } }
.hero .btn-spark { min-height: 62px; font-size: 18px; justify-content: space-between; padding-inline: 22px 16px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.facts li { display: grid; gap: 8px; align-content: start; padding: 14px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.3; color: var(--muted); box-shadow: var(--shadow-1); }
.facts b { display: block; color: var(--ink); font-size: 15px; font-weight: 720; margin-bottom: 2px; }
.facts svg.i { color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; box-shadow: var(--shadow-1); }
.card h2 { font-size: 19px; font-weight: 770; font-stretch: 106%; }
.resume { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; border-color: var(--accent); }
.resume .btn-row { grid-column: 1 / -1; }
.resume .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.links { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; }
.foot { text-align: center; color: var(--muted); font-size: 13.5px; }

/* ───────── Véhicules ───────── */
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.model { position: relative; min-height: 132px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); padding: 14px; text-align: left; display: grid; align-content: start; gap: 6px; box-shadow: var(--shadow-1); transition: border-color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.model:active { transform: scale(.98); }
.model.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.model .glyph { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--navy); color: var(--spark); margin-bottom: 4px; }
.model b { font-size: 18.5px; font-weight: 770; font-stretch: 108%; line-height: 1.15; }
.model .sub { font-size: 14px; color: var(--muted); line-height: 1.3; }
.model.soon { border-style: dashed; box-shadow: none; background: transparent; }
.model.soon .glyph { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line-strong); }
.model.soon b { color: var(--muted); }
.model .tag { justify-self: start; margin-top: 4px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px 4px 6px; border-radius: 8px; background: var(--info-bg); color: var(--info); font-size: 12px; font-weight: 740; line-height: 1.2; }
.model .tag svg.i { width: 14px; height: 14px; }

/* ───────── Conclusion ───────── */
.verdict { position: relative; overflow: hidden; border-radius: 26px; padding: 22px 20px; display: grid; gap: 12px; background: var(--tbg); border: 1.5px solid color-mix(in srgb, var(--tc) 38%, transparent); box-shadow: var(--shadow-2); }
.verdict::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--tc); }
.verdict-top { display: flex; align-items: center; gap: 12px; }
.verdict .badge { width: 60px; height: 60px; flex: none; border-radius: 18px; background: var(--tc); color: var(--surface); display: grid; place-items: center; }
.verdict .badge svg.i { width: 32px; height: 32px; stroke-width: 2.4; }
.verdict .kind { font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--tc); }
.verdict h1 { font-size: clamp(24px, 6.4vw, 31px); line-height: 1.14; font-weight: 800; font-stretch: 110%; letter-spacing: -.018em; }
.verdict ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.verdict .ref { background: transparent; }
.quote { margin: 0; padding: 10px 14px; border-left: 4px solid var(--tc); background: var(--surface); border-radius: 0 12px 12px 0; display: grid; gap: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tone-ok { --tc: var(--ok); --tbg: var(--ok-bg); } .tone-info { --tc: var(--info); --tbg: var(--info-bg); } .tone-warn { --tc: var(--warn); --tbg: var(--warn-bg); }
.tone-alert { --tc: var(--alert); --tbg: var(--alert-bg); } .tone-neutral { --tc: var(--neutral); --tbg: var(--neutral-bg); }
.verdict-enter .badge { animation: pop 420ms var(--ease) both; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
.contacts { gap: 14px; }
.contact { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.contact + .contact { border-top: 1px solid var(--line); padding-top: 14px; }
.contact .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--navy); color: var(--spark); display: grid; place-items: center; }
.contact b { display: block; font-size: 17px; }
details.disclose { padding-block: 6px; gap: 0; }
details.disclose summary { cursor: pointer; font-weight: 720; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
details.disclose summary::-webkit-details-marker { display: none; }
details.disclose summary svg { transition: transform var(--t-fast); }
details.disclose[open] summary svg { transform: rotate(180deg); }
.trail { margin: 4px 0 0; padding: 0; list-style: none; display: grid; }
.trail li { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; overflow-wrap: anywhere; }
.trail code { font: 650 12px/1.6 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.trail .q { color: var(--muted); font-size: 13.5px; display: block; }

/* ───────── Formulaire ───────── */
.form { display: grid; gap: 16px; }
fieldset { margin: 0; padding: 16px; display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); min-width: 0; }
legend { float: left; width: 100%; padding: 0; font-weight: 770; font-size: 17.5px; font-stretch: 106%; display: flex; align-items: center; gap: 8px; }
legend svg.i { color: var(--accent); }
legend + * { clear: both; }
.field { display: grid; gap: 6px; min-width: 0; }
.hint { font-size: 13.5px; color: var(--muted); }
input[type=text], input[type=datetime-local], textarea, select {
  width: 100%; min-width: 0; min-height: 54px; padding: 12px 14px; border-radius: 13px; border: 1.5px solid var(--line-strong); background: var(--surface-2); font-size: 17px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
textarea { min-height: 96px; resize: vertical; display: block; }
#f-plate { text-transform: uppercase; font-family: var(--mono); letter-spacing: .04em; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field.err input, .field.err textarea { border-color: var(--alert); }
.err-msg { color: var(--alert); font-size: 14px; font-weight: 640; display: flex; gap: 6px; align-items: center; }
.err-msg svg.i { width: 18px; height: 18px; }
.seg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.9fr); gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 13px; border: 1px solid var(--line); }
.seg button { min-height: 46px; font-size: 15.5px; padding: 4px 6px; border: 0; border-radius: 10px; background: transparent; font-weight: 720; line-height: 1.15; }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-1); }
.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { position: relative; width: 88px; height: 88px; border-radius: 13px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border-radius: 0 0 0 13px; border: 0; background: rgba(7, 13, 26, .78); color: #fff; display: grid; place-items: center; }
.thumb button svg.i { width: 16px; height: 16px; }
.add-photo { width: 88px; min-height: 88px; padding: 6px; border-radius: 13px; border: 1.5px dashed var(--line-strong); background: var(--surface-2); color: var(--accent); display: grid; place-items: center; align-content: center; gap: 4px; font-size: 12.5px; font-weight: 720; line-height: 1.15; text-align: center; }
.add-photo[aria-disabled="true"] { opacity: .5; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 660; font-size: 15px; }
.chip-btn:active { background: var(--accent-soft); }
.geo-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.geo-ok { color: var(--ok); font-weight: 660; font-size: 14.5px; display: inline-flex; gap: 6px; align-items: center; }

/* ───────── Synthèse ───────── */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-2); }
.sheet-head { background: radial-gradient(120% 140% at 90% 0%, var(--navy-2), var(--navy) 60%); color: var(--on-navy); padding: 18px 18px 16px; display: grid; gap: 4px; border-bottom: 4px solid var(--spark); }
.sheet-head b { font-size: 19px; font-stretch: 110%; font-weight: 780; }
.sheet-head span { color: var(--on-navy-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.sheet-body { padding: 16px 18px; display: grid; gap: 16px; }
.kv { display: grid; grid-template-columns: minmax(108px, 36%) 1fr; gap: 8px 12px; margin: 0; font-size: 15.5px; }
.kv dt { color: var(--muted); font-weight: 620; font-size: 14px; overflow-wrap: anywhere; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.mini-verdict { border-left: 4px solid var(--tc); background: var(--tbg); padding: 12px 14px; border-radius: 0 12px 12px 0; display: grid; gap: 4px; overflow-wrap: anywhere; }
.mini-verdict b { color: var(--tc); text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.recipient { display: grid; gap: 4px; justify-items: start; padding: 12px 14px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); }
.recipient code { font: 650 16px/1.35 var(--mono); overflow-wrap: anywhere; }
.recipient .btn-link { justify-self: start; padding: 0; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 15px; }
.send { gap: 14px; }
.send-help { font-size: 14px; color: var(--muted); }
.textcard { white-space: pre-wrap; font: 14px/1.5 var(--mono); margin: 0; overflow-wrap: anywhere; }

/* ───────── Historique ───────── */
.hist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hist button { width: 100%; min-height: var(--tap); text-align: left; display: grid; grid-template-columns: 6px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px 12px 0; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-1); }
.hist .bar { align-self: stretch; background: var(--tc); }
.hist b { display: block; font-size: 16px; }
.hist span span { font-size: 13.5px; color: var(--muted); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty svg.i { width: 36px; height: 36px; color: var(--line-strong); }
.empty b { color: var(--ink); font-size: 18px; }

/* ───────── Fumée ───────── */
.smoke { background: var(--danger); color: #fff; border-radius: 26px; padding: 22px 20px; display: grid; gap: 14px; box-shadow: var(--shadow-2); }
.smoke > svg.i { width: 36px; height: 36px; }
.smoke h1 { font-size: clamp(26px, 7vw, 34px); line-height: 1.08; font-weight: 820; font-stretch: 114%; }
.smoke ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.smoke li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; font-size: 17px; font-weight: 620; line-height: 1.35; }
.smoke li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #A01414; display: grid; place-items: center; font-weight: 820; }
.btn-call { background: #fff; color: #A01414; font-size: 20px; min-height: 66px; }

/* ───────── Toast et boîtes de dialogue ───────── */
.toast-zone { position: fixed; left: 0; right: 0; top: calc(72px + env(safe-area-inset-top, 0px)); z-index: 40; display: grid; justify-items: center; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; max-width: 560px; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-2); font-weight: 640; font-size: 15px; animation: toast var(--t-med) var(--ease); }
@keyframes toast { from { opacity: 0; transform: translateY(-12px); } }
dialog { border: 0; padding: 0; border-radius: 24px; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); background: var(--surface); color: var(--ink); box-shadow: 0 24px 70px rgba(0, 0, 0, .4); overflow: auto; }
dialog[open] { animation: dlg var(--t-med) var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(14px) scale(.98); } }
dialog::backdrop { background: rgba(6, 11, 23, .6); backdrop-filter: blur(3px); }
.dlg { padding: 22px; display: grid; gap: 14px; }
.dlg h2 { font-size: 21px; font-weight: 790; font-stretch: 108%; display: flex; align-items: center; gap: 10px; }
.dlg p { color: var(--muted); }
.soon-dlg { text-align: center; }
.soon-dlg h2 { justify-content: center; font-size: 22px; }
.lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lang-list button { min-height: 54px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 8px; text-align: left; padding: 8px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); }
.lang-list span { font-weight: 700; font-size: 16px; grid-column: 1; }
.lang-list code { font: 600 11.5px/1 var(--mono); color: var(--muted); grid-column: 1; }
.lang-list svg.i { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); width: 20px; height: 20px; }
.lang-list button[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }

@media (max-width: 380px) {
  .btn { font-size: 16px; }
  .btn-row .btn svg.i { display: none; }
  .smoke-btn { padding: 0 11px; }
  .smoke-btn span { display: none; }
  .q-title { font-size: 24px; }
  .facts { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
  .models { grid-template-columns: 1fr; }
  .model { min-height: 0; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
  .model .glyph { grid-row: span 3; margin: 0; }
  .lang-list { grid-template-columns: 1fr; }
  .trail li { grid-template-columns: 1fr; gap: 2px; }
}
@media (min-width: 720px) {
  .screen { padding-top: 32px; }
  .hero { padding: 36px 34px 30px; }
  .models { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .led.blink i, .hero .flow, .splash i { animation: none; }
}
@media (forced-colors: active) {
  .opt, .pick, .check-row, .model { border: 2px solid CanvasText; }
  .led i { forced-color-adjust: none; }
}
@media print { .topbar, #dock, .toast-zone { display: none; } }
.mini-verdict .code, .verdict .ref { text-transform: none; font-family: var(--mono); letter-spacing: 0; }
