/* Calcul Plaques Genève — feuille de style
   Palette : couleurs genevoises. Jaune (boutons principaux, texte noir dessus),
   orange (accents), brun-orange foncé pour les liens et icônes (lisible sur blanc).
   Pas de texte blanc sur jaune ou orange : illisible.
   Typo : Atkinson Hyperlegible (lecture, conçue pour les personnes malvoyantes),
          Barlow (titres), Barlow Semi Condensed (montants et « plaque »). */

@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/AtkinsonHyperlegible-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/BarlowSemiCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/BarlowSemiCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f4f3ef;
  --paper: #ffffff;
  --ink: #000000;
  --text: #1f2724;
  --ink-2: #4a5551;
  --line: #dcd8cd;
  --control: #6f6a60;
  --yellow: #ffc61a;         /* jaune Genève : boutons principaux */
  --yellow-hover: #f5b000;
  --orange: #e8710a;         /* orange : accents, survol, bandeau */
  --accent-ink: #8a3d00;     /* brun-orange foncé : liens, icônes (contraste 8:1 sur blanc) */
  --accent-tint: #fff0bf;    /* fond des pastilles d'icône */
  --accent-wash: #fff9e5;    /* fond des encadrés d'information */
  --warn-ink: #7a2a00;
  --warn-tint: #fde2cc;
  --focus: #e8710a;
  --shadow: 0 1px 2px rgba(60, 35, 0, .06), 0 6px 18px rgba(60, 35, 0, .06);
  --shadow-hover: 0 2px 4px rgba(60, 35, 0, .09), 0 10px 26px rgba(60, 35, 0, .11);

  --font-text: "Atkinson Hyperlegible", "Verdana", "Segoe UI", system-ui, sans-serif;
  --font-head: "Barlow", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --font-plate: "Barlow Semi Condensed", "Barlow", "Arial Narrow", sans-serif;

  --step--1: 1.0625rem;
  --step-0: 1.25rem;
  --step-1: 1.5rem;
  --step-2: 1.875rem;
  --step-3: clamp(2.15rem, 1.35rem + 3.2vw, 3.3rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.5;
}
@media (max-width: 30em) { body { font-size: 1.1875rem; } }

.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Accessibilité ---------- */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--yellow); }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding-top: .85rem; padding-bottom: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.plate-mini {
  font-family: var(--font-plate); font-weight: 700; font-size: 1.05rem; line-height: 1;
  border: 2.5px solid var(--ink); border-radius: 6px; padding: .28rem .5rem .22rem; background: var(--paper);
}
.independent { margin: 0; font-size: var(--step--1); color: var(--ink-2); max-width: none; }

/* ---------- Structure ---------- */
main.wrap { padding-top: 2.25rem; padding-bottom: 3.5rem; }
main:focus { outline: none; }
@media (max-width: 30em) { main.wrap { padding-top: 1.25rem; } }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0 0 .75rem; color: var(--ink); }
h1 { font-size: var(--step-3); letter-spacing: -.01em; }
h1:focus, h1:focus-visible { outline: none; box-shadow: none; }
h2 { font-size: var(--step-2); margin-top: 2.5rem; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1rem; max-width: 38em; }
.lead { font-size: var(--step-1); line-height: 1.42; color: var(--ink-2); }
.help { color: var(--ink-2); }
a { color: var(--accent-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.sheet { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 1.5rem 1.5rem 1.75rem; }
@media (max-width: 30em) { .sheet { padding: 1.2rem 1.1rem 1.4rem; border-radius: 14px; } }

/* Retour en haut de page */
.back-top {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 1.25rem; min-height: 2.75rem;
  font: inherit; font-weight: 700; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 999px; padding: .35rem 1rem .35rem .75rem; cursor: pointer;
}
.back-top:hover { border-color: var(--ink); }
a.back-top { text-decoration: none; }
.back-top svg { width: 1.1em; height: 1.1em; }

.recap { display: inline-flex; align-items: center; gap: .55rem; font-size: var(--step--1); color: var(--ink-2); margin: 0 0 .9rem; }
.recap .ico-mini { width: 2rem; height: 2rem; border-radius: 9px; background: var(--accent-tint); color: var(--accent-ink); display: inline-grid; place-items: center; flex: none; }
.recap .ico-mini svg { width: 1.35rem; height: 1.35rem; }
.recap strong { color: var(--ink); }

/* ---------- Accueil ---------- */
.tagline { display: inline-flex; align-items: center; gap: .45rem; background: var(--accent-tint); color: var(--accent-ink); font-weight: 700; font-size: var(--step--1); border-radius: 999px; padding: .3rem .85rem .3rem .6rem; margin: 0 0 1.1rem; }
.tagline svg { width: 1.1em; height: 1.1em; }
.hero .lead { margin-bottom: 1.75rem; }

.reassure { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.5rem 0 0; padding: 0; color: var(--ink-2); font-size: var(--step--1); }
.reassure li { display: inline-flex; align-items: center; gap: .4rem; }
.reassure svg { width: 1.15em; height: 1.15em; color: var(--orange); flex: none; }

.bases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
@media (max-width: 44em) { .bases { grid-template-columns: 1fr; } }
.base { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.base h3 { font-size: 1.15rem; margin: 0 0 .3rem; display: flex; align-items: center; gap: .5rem; }
.base h3 svg { width: 1.5rem; height: 1.5rem; color: var(--accent-ink); }
.base p { margin: 0; font-size: var(--step--1); color: var(--ink-2); }
.section-title { font-size: var(--step-1); margin-top: 3rem; }

/* ---------- Grandes cartes de choix ---------- */
.options { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .8rem; }
.option {
  width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 1rem 1.1rem 1rem 1.25rem; min-height: 4.5rem;
  display: flex; align-items: center; gap: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.option:hover { border-color: var(--orange); box-shadow: var(--shadow-hover); }
.option .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.option .label { font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.option .sub { color: var(--ink-2); font-size: var(--step--1); }
.option .chev { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--bg); transition: background .15s, color .15s; }
.option:hover .chev { background: var(--yellow); color: var(--on-primary, #000); }
.option .chev svg { width: 1.2rem; height: 1.2rem; }
.option .ico { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 14px; background: var(--accent-tint); color: var(--accent-ink); display: grid; place-items: center; }
.option .ico svg { width: 2.55rem; height: 2.55rem; stroke-width: 1.8; }
.option.type { padding: 1.1rem 1.1rem 1.1rem 1.1rem; min-height: 5.5rem; }
.option.type .label { font-family: var(--font-head); font-size: 1.5rem; }
@media (max-width: 30em) {
  .option.type { gap: .8rem; padding: 1rem .9rem; }
  .option.type .label { font-size: 1.3rem; }
  .option .ico { width: 3.1rem; height: 3.1rem; }
  .option .ico svg { width: 2.25rem; height: 2.25rem; }
  .option .chev { width: 2rem; height: 2rem; }
}

.options.years { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.options.years .option { justify-content: center; text-align: center; min-height: 4rem; padding: .8rem; }
.options.years .option .label { font-family: var(--font-plate); font-size: 1.45rem; }
.option.unknown { box-shadow: none; background: transparent; border-style: dashed; border-color: var(--control); }
.option.unknown .label { font-size: var(--step-0); color: var(--ink-2); }
.option.unknown:hover { background: var(--paper); }
.options + .options { margin-top: .8rem; }

/* Cartes de versions */
.card-option { align-items: stretch; }
.card-option .title { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; line-height: 1.2; color: var(--ink); }
.card-option ul { list-style: none; margin: .3rem 0 0; padding: 0; }
.card-option li { padding: .05rem 0; }
.card-option .also { color: var(--ink-2); font-size: var(--step--1); margin-top: .25rem; }
.card-option .chev { align-self: center; }

/* ---------- Champs ---------- */
label.field-label { display: block; font-weight: 700; margin: 1.25rem 0 .45rem; color: var(--ink); }
.field-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: stretch; }
.input-wrap { position: relative; flex: 1 1 15rem; min-width: 0; display: flex; }
.input-wrap svg { position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); width: 1.5rem; height: 1.5rem; color: var(--ink-2); pointer-events: none; }
.input-wrap .input { padding-left: 3.1rem; }
.input {
  flex: 1 1 14rem; min-width: 0; width: 100%;
  font: inherit; font-size: 1.35rem; color: var(--ink);
  border: 2px solid var(--control); border-radius: 12px; background: var(--paper);
  padding: .8rem 1rem; min-height: 4.1rem;
}
.input::placeholder { color: #75807b; }
.input.year { flex: 0 1 12rem; font-family: var(--font-plate); font-weight: 600; font-size: 1.6rem; letter-spacing: .04em; }
.input.code { text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-plate); font-weight: 700; font-size: 1.6rem; flex: 0 1 14rem; }
.unit { align-self: center; font-weight: 700; }
.error { color: #9b1c1c; font-weight: 700; margin: .5rem 0 0; }
.input[aria-invalid="true"] { border-color: #9b1c1c; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; color: var(--ink-2); }
.chip { font: inherit; font-size: var(--step--1); color: var(--accent-ink); font-weight: 700; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: .45rem .95rem; min-height: 2.75rem; cursor: pointer; }
.chip:hover { border-color: var(--orange); background: var(--accent-wash); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  min-height: 4.1rem; padding: .7rem 1.6rem; border-radius: 12px; border: 2px solid transparent;
}
.btn-primary { background: var(--yellow); color: var(--on-primary, #000); border-color: var(--yellow-hover); }
.btn-primary:hover { background: var(--yellow-hover); border-color: var(--ink); }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--control); }
.btn-secondary:hover { border-color: var(--ink); }
.btn[aria-busy="true"], .option[aria-busy="true"] { opacity: .65; cursor: progress; }
@media (max-width: 30em) { .field-row .btn { flex: 1 1 100%; } }

.step-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.linklike { font: inherit; background: none; border: 0; padding: .6rem .2rem; color: var(--accent-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 3rem; }
.linklike:hover { color: var(--ink); }

/* ---------- Véhicule identifié ---------- */
.vehicle { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 1.2rem 1.3rem; margin: 1.25rem 0; }
.vehicle .title { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; line-height: 1.2; margin-bottom: .4rem; color: var(--ink); }
.vehicle ul { list-style: none; margin: 0; padding: 0; }
.badge { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; border-radius: 999px; padding: .35rem .9rem; font-size: var(--step--1); }
.badge.ok { background: var(--accent-tint); color: var(--accent-ink); }
.badge.verify { background: var(--warn-tint); color: var(--warn-ink); }
.badge svg { width: 1.1em; height: 1.1em; }
.reasons { margin: .6rem 0 0; padding-left: 1.2rem; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
@media (max-width: 30em) { .actions .btn { flex: 1 1 100%; } }

details.tech { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
details.tech summary { cursor: pointer; font-weight: 700; color: var(--accent-ink); min-height: 2.5rem; display: flex; align-items: center; }
dl.facts { display: grid; grid-template-columns: minmax(9rem, 40%) 1fr; gap: .45rem 1rem; margin: .75rem 0 0; font-size: var(--step--1); }
dl.facts dt { color: var(--ink-2); }
dl.facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Résultat : la plaque ---------- */
.result-head { text-align: center; }
.result-head .result-vehicle { color: var(--ink-2); margin: 0 auto .35rem; }
.result-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.6rem); }
.plate {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .1em .35em;
  margin: 1.25rem auto .6rem; padding: .3em .6em .22em; max-width: 34rem;
  background: var(--paper); color: var(--ink);
  border: 6px solid var(--ink); border-radius: 18px;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 5px var(--ink), var(--shadow-hover);
  font-family: var(--font-plate); font-weight: 700; line-height: 1;
  font-size: clamp(2.6rem, 1.2rem + 7vw, 4.6rem); letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.plate .cur { font-size: .5em; font-weight: 600; letter-spacing: .06em; align-self: center; }
.plate .sep { font-size: .55em; font-weight: 600; }
.per-year { text-align: center; font-weight: 700; margin: 0 auto 1rem; }
.range-intro { text-align: center; font-size: var(--step-1); margin: .75rem auto 1rem; max-width: 30em; }
.range-intro strong { font-family: var(--font-plate); font-size: 1.15em; color: var(--ink); }
.result-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
@media (prefers-reduced-motion: no-preference) {
  .plate.stamp { animation: stamp .45s cubic-bezier(.2, .9, .3, 1.2) both; }
  @keyframes stamp { from { transform: scale(1.06); opacity: 0; } to { transform: none; opacity: 1; } }
}
.switch-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; justify-content: center; margin-top: 1.25rem; }
.switch-row p { margin: 0; }
.years-switch { display: inline-flex; border: 2px solid var(--control); border-radius: 12px; overflow: hidden; background: var(--paper); }
.years-switch button { font: inherit; font-family: var(--font-plate); font-size: 1.2rem; font-weight: 700; border: 0; background: var(--paper); color: var(--ink); padding: .55rem 1.2rem; min-height: 3rem; cursor: pointer; }
.years-switch button + button { border-left: 2px solid var(--control); }
.years-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.result-body { margin-top: 2rem; }
.result-body h2 { margin-top: 0; font-size: var(--step-1); }
.breakdown { list-style: none; margin: .5rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.breakdown li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.breakdown li span:last-child { font-family: var(--font-plate); font-size: 1.12em; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.breakdown li.total { border-bottom: 2px solid var(--ink); font-weight: 700; font-size: var(--step-1); color: var(--ink); }
.notes { margin-top: 1rem; color: var(--ink-2); }
.panel { border-radius: 14px; padding: 1.1rem 1.25rem; margin-top: 1.5rem; }
.panel h3 { font-size: var(--step-0); margin-bottom: .4rem; }
.panel p:last-child { margin-bottom: 0; }
.panel.amber { background: var(--warn-tint); color: #3d1600; }
.panel.info { background: var(--accent-wash); border: 1px solid var(--accent-tint); }
.panel strong, .notes strong { font-family: var(--font-plate); font-size: 1.1em; }
.disclaimer { font-size: var(--step--1); color: var(--ink-2); margin-top: 1.5rem; }

/* Schéma du permis */
.permit-figure { margin: 1.25rem 0; max-width: 24rem; }
.permit-figure svg { width: 100%; height: auto; display: block; }
.permit-figure figcaption { font-size: var(--step--1); color: var(--ink-2); margin-top: .4rem; }

.notice { background: var(--warn-tint); color: #3d1600; border-radius: 12px; padding: 1rem 1.25rem; }
.partner { margin-top: 2rem; }

/* ---------- Simplicité : grille de gros boutons (marques, modèles) ---------- */
.options.grid { grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); }
@media (max-width: 30em) { .options.grid { grid-template-columns: 1fr 1fr; gap: .6rem; } }
.options.grid .option { justify-content: center; text-align: center; min-height: 4.5rem; padding: .8rem .6rem; }
.options.grid .option .label { font-size: 1.25rem; line-height: 1.2; }
form.after { margin-top: 2rem; padding-top: .25rem; border-top: 1px solid var(--line); }

.reassure-line { display: flex; align-items: center; gap: .5rem; color: var(--ink-2); margin-top: 1.25rem; }
.reassure-line svg { width: 1.3em; height: 1.3em; color: var(--orange); flex: none; }
details.more { margin-top: 2rem; }
details.more > summary {
  cursor: pointer; font-weight: 700; color: var(--accent-ink); min-height: 3.5rem;
  display: flex; align-items: center; gap: .6rem; list-style: none;
  border: 1.5px solid var(--line); border-radius: 12px; padding: .6rem 1rem; background: var(--paper);
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; font-size: 1.5rem; line-height: 1; width: 1.5rem; text-align: center; }
details.more[open] > summary::before { content: "\2212"; }
details.more[open] > summary { margin-bottom: 1rem; }
.good { display: flex; align-items: flex-start; gap: .5rem; color: var(--accent-ink); font-weight: 700; }
.good svg { width: 1.3em; height: 1.3em; flex: none; margin-top: .15em; }
.official { font-weight: 700; color: var(--ink); margin: 0 0 .25rem; }
.actions.big .btn { flex: 1 1 12rem; min-height: 4.5rem; font-size: 1.35rem; }
.tech-title { font-size: var(--step-0); margin: 1.75rem 0 .25rem; }
strong.plain { font-family: var(--font-text); font-size: 1em; }
.result-body details.more { margin-top: 1.75rem; }

/* Indication d'attente sur le bouton touché */
.option[aria-busy="true"] .chev { background: transparent; }
.option[aria-busy="true"] .chev svg { display: none; }
.option[aria-busy="true"] .chev::after, .btn[aria-busy="true"]::after {
  content: ""; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  border: 3px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite;
}
.options.grid .option[aria-busy="true"]::after { content: ""; width: 1.1rem; height: 1.1rem; margin-left: .5rem; border-radius: 50%; border: 3px solid var(--orange); border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .option[aria-busy="true"] .chev::after, .btn[aria-busy="true"]::after { animation-duration: 2.4s; } }

/* ---------- Identité genevoise : bandeau jaune et orange ---------- */
.site-header { border-top: 7px solid var(--yellow); box-shadow: inset 0 3px 0 var(--orange); }
.logo { height: 3rem; width: auto; display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .independent { font-size: .9rem; }
@media (max-width: 30em) { .logo { height: 2.6rem; } .brand-name { font-size: 1.15rem; } }
.header-tools { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; }
@media (min-width: 40em) { .header-tools { margin-left: auto; } }
.contact-link {
  font-weight: 700; color: var(--ink); text-decoration: none; background: var(--paper);
  border: 1.5px solid var(--control); border-radius: 999px; padding: .45rem 1rem; min-height: 2.75rem;
  display: inline-flex; align-items: center; gap: .45rem; font-size: var(--step--1);
}
.contact-link:hover { border-color: var(--ink); background: var(--accent-wash); }
.contact-link svg { width: 1.2em; height: 1.2em; color: var(--accent-ink); }

/* Page À propos */
.about p { font-size: 1.2rem; line-height: 1.6; }
.about .sheet > p:first-of-type { font-size: var(--step-1); line-height: 1.45; color: var(--ink); }
.about .panel { margin-top: 1.75rem; }

/* Écran de départ : deux façons de trouver le véhicule */
.start-block { margin-top: 1.25rem; }
.block-title { font-size: var(--step-1); margin: 0 0 .25rem; display: flex; align-items: center; gap: .6rem; }
.step-num { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--yellow); color: var(--on-primary, #000); font-family: var(--font-plate); font-size: 1.25rem; flex: none; }
.start-block .field-label { font-weight: 400; color: var(--text); margin-top: .5rem; }
.or { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; color: var(--ink-2); font-weight: 700; max-width: none; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
details.where { margin-top: 1rem; }
details.where summary { cursor: pointer; color: var(--accent-ink); font-weight: 700; min-height: 2.75rem; display: flex; align-items: center; }
.report { margin-top: 1rem; }
.report a { font-weight: 700; }

/* Formulaire de contact */
.privacy { font-size: var(--step--1); color: var(--ink-2); margin-top: 1rem; }
textarea.input { min-height: 11rem; resize: vertical; line-height: 1.45; }
.form-stack .field-label { margin-top: 1.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.context-line { background: var(--accent-wash); border: 1px solid var(--accent-tint); border-radius: 10px; padding: .6rem .9rem; font-size: var(--step--1); }
.success { background: var(--accent-wash); border: 2px solid var(--yellow); border-radius: 14px; padding: 1.25rem 1.4rem; }

/* ---------- Cantons ---------- */
.brand-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.canton-switch {
  font-weight: 700; font-size: var(--step--1); color: var(--on-primary, #000); background: var(--yellow); text-decoration: none;
  border: 1.5px solid var(--yellow-hover); border-radius: 999px; padding: .45rem 1rem; min-height: 2.75rem; display: inline-flex; align-items: center;
}
.canton-switch:hover { background: var(--yellow-hover); border-color: var(--ink); }
main.wrap.wide { max-width: 62rem; }
.canton-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: .9rem; }
@media (max-width: 30em) { .canton-grid { grid-template-columns: 1fr 1fr; gap: .6rem; } }
.canton-card {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 1rem .6rem .9rem; flex: 1;
  transition: border-color .15s, box-shadow .15s;
}
.canton-card:hover { border-color: var(--c-accent, var(--orange)); box-shadow: var(--shadow-hover); }
.canton-card img { height: 4.1rem; width: auto; max-width: 100%; object-fit: contain; }
.canton-card .canton-name { font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.canton-card.current { border: 3px solid var(--c-accent, var(--orange)); }
.canton-note { font-size: .9rem; color: var(--ink-2); }

/* Comparaison entre cantons */
.compare-link { margin: 1.25rem 0 0; }
.compare-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .5rem; }
.compare-row {
  display: grid; grid-template-columns: 6.5rem 1fr auto; align-items: center; gap: .75rem;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: .6rem .9rem;
}
.compare-row img { width: 100%; height: auto; }
.compare-row .c-name { font-weight: 700; }
.compare-row .c-note { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-2); }
.compare-row .c-amount { font-family: var(--font-plate); font-weight: 700; font-size: 1.35rem; white-space: nowrap; text-align: right; }
.compare-row.current { border: 3px solid var(--yellow); background: var(--accent-wash); }
.compare-row.na .c-amount { font-family: var(--font-text); font-size: var(--step--1); font-weight: 400; color: var(--ink-2); white-space: normal; max-width: 12rem; }
@media (max-width: 30em) { .compare-row { grid-template-columns: 4.5rem 1fr; } .compare-row .c-amount { grid-column: 2; text-align: left; } }

/* Pages explicatives par canton */
.guide h2 { margin-top: 2.5rem; }
.guide h3 { font-size: 1.2rem; margin: 1.5rem 0 .4rem; }
.guide-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.guide-head img { height: 4.5rem; width: auto; }
.guide-head h1 { margin: 0; flex: 1 1 20rem; }
.guide-examples { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.guide-examples details { background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; }
.guide-examples details[open] { border-color: var(--orange); }
.guide-examples summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem; cursor: pointer; list-style: none; min-height: 3.5rem; }
.guide-examples summary::-webkit-details-marker { display: none; }
.guide-examples .g-label { display: flex; flex-direction: column; }
.guide-examples .g-specs { font-size: .95rem; color: var(--ink-2); }
.guide-examples .g-amount { font-family: var(--font-plate); font-weight: 700; font-size: 1.3rem; white-space: nowrap; }
.guide-examples .breakdown { margin: 0; padding: 0 1.1rem 1rem; }
.guide-examples details > .help { padding: 0 1.1rem 1rem; margin: 0; }
.guide .faq p { margin-top: 0; }
.guide-others { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .4rem 1rem; }
.canton-grid > li { display: flex; flex-direction: column; }
.canton-guide { display: block; text-align: center; font-size: .95rem; margin-top: .45rem; color: var(--accent-ink); }
@media (max-width: 30em) { .guide-examples summary { flex-direction: column; align-items: flex-start; gap: .3rem; } }

/* ---------- Pied de page ---------- */
.lang-switch { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.lang-switch .lang-label { font-weight: 700; }
.lang-switch .lang { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .3rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); background: var(--paper); }
.lang-switch a.lang:hover { border-color: var(--ink); }
.lang-switch .lang.current { background: var(--yellow); color: var(--on-primary, #000); border-color: var(--yellow-hover); font-weight: 700; }
.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding: 1.75rem 0 2.5rem; font-size: var(--step--1); color: var(--ink-2); }
.site-footer p { margin: 0 0 .6rem; }
.site-footer strong { color: var(--ink); }

@media print {
  body { background: #fff; font-size: 12pt; }
  .site-header .independent, .step-nav, .actions, .years-switch, .switch-row, .back-top, .skip, details.tech summary { display: none !important; }
  .sheet { border: 0; box-shadow: none; padding: 0; }
  .plate { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px #000; }
}

/* En-tête plus large que le contenu : logo à gauche, contact à droite sur une ligne. */
.site-header .wrap { max-width: 62rem; }
