/* =============================================
   DÉPANNAGE AUTO NICE — site.css
   Système du design « Accueil » (Claude Design), porté en CSS statique.

   Pages : index, services, zone, faq, contact, a-propos.
   Générées par tools/build-pages.js — modifier les fragments dans
   tools/pages/, pas les fichiers HTML à la racine.

   Écarts volontaires par rapport à l'export du design, relevés à la
   vérification :
   - rendu statique : plus de runtime React / Claude Design (~600 Ko de JS) ;
   - barre d'actions fixe à droite : le design décalait TOUTE la page de
     248px (bande blanche à droite, fond du hero et du pied coupés). Ici seul
     le contenu se décale, les fonds restent pleine largeur ;
   - entre 901 et 1400px le design affichait la barre mobile sur un
     ordinateur portable : l'en-tête y porte à la place numéro + demande ;
   - mobile : le menu passait sur une deuxième ligne de liens de 30px de
     haut. Il devient un bouton « Menu » ;
   - hero : la première photo est visible dès l'affichage et reste visible
     si l'utilisateur a demandé moins d'animations (le design laissait
     alors un hero noir) ;
   - toutes les cibles tactiles ≥ 44px, boutons dépliants avec aria-expanded.
   ============================================= */

:root {
  --ink: #16160f;
  --ink-2: #4a4a42;
  --muted: #5c5c53;
  --line: #e0e0d7;
  --line-2: #c4c4b8;
  --soft: #faf8f6;
  --paper: #ffffff;
  --accent: #b34800;        /* texte et bordures orange — AA sur blanc */
  --accent-hover: #8f3900;
  --fill: #ff6b00;          /* aplats orange uniquement */
  --fill-hover: #ff8533;
  --on-dark-accent: #ff9a4d;
  --dark: #0f0f0e;
  --foot: #16160f;
  --foot-text: #d6d6cf;
  --foot-muted: #8d8d84;
  --foot-line: #2b2b26;
  --live: #4ade80;
  --wa: #1a7f2e;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Chakra Petch', system-ui, sans-serif;
  --rail-w: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--fill); outline-offset: 2px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 16px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.ic {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic-sm { width: 18px; height: 18px; }
.ic-lg { width: 26px; height: 26px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.mono { font-family: var(--mono); }
.kicker {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
}

/* ── En-tête ─────────────────────────────── */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hd-in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  margin-right: auto; padding: 8px 0; min-height: 44px;
  text-decoration: none; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-bar { width: 10px; height: 34px; background: var(--fill); flex-shrink: 0; }
.brand-txt { display: flex; flex-direction: column; }
.brand-name {
  font-weight: 700; font-size: 1.05rem; letter-spacing: .04em;
  text-transform: uppercase; line-height: 1.25;
}
.brand-sub {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}

.nav { display: flex; gap: 20px; }
.nav a {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--fill); }

/* Sélecteur de langue : FR · EN · IT. */
.langs { display: inline-flex; align-items: center; gap: 2px; padding-left: 14px; border-left: 1px solid var(--line); }
.nav .langs a { min-width: 30px; justify-content: center; font-size: .66rem; letter-spacing: .08em; color: var(--muted); }
.nav .langs a[aria-current="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }

.hd-actions { display: none; align-items: center; gap: 10px; }
.hd-call {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 46px; padding: 4px 14px; text-decoration: none;
  border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--mono); line-height: 1.2;
}
.hd-call small { font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; }
.hd-call strong { font-size: .95rem; white-space: nowrap; }
.brand-name { white-space: nowrap; }
/* Ancres : le titre visé ne passe pas sous l'en-tête collant. */
[id] { scroll-margin-top: 84px; }
.hd-call:hover { background: var(--fill); border-color: var(--fill); color: var(--ink); }
.hd-cta {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 16px; text-decoration: none;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem;
}
.hd-cta:hover { background: var(--accent); color: #fff; }

.menu-btn {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 12px;
  background: none; border: 1px solid var(--line); color: var(--ink);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; cursor: pointer;
}
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

/* ── Boutons ─────────────────────────────── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 15px 26px; text-decoration: none;
  font-family: var(--sans); font-weight: 700; font-size: 1.05rem;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-orange { background: var(--fill); color: var(--ink); }
.btn-orange:hover { background: var(--fill-hover); color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { border-color: var(--on-dark-accent); color: var(--on-dark-accent); }
.btn-dark { background: var(--ink); color: #fff; font-size: 1rem; min-height: 50px; }
.btn-dark:hover { background: var(--accent); color: #fff; }

/* ── Hero d'accueil ──────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.hero-bg { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 50%;
}
.hero-slide.s1 { background-image: url("img/hero-1.webp"); background-position: center 45%; }
/* Les photos 2 et 3 n'apparaissent qu'après 7 et 14 s : elles ne se
   téléchargent qu'une fois la page affichée (classe posée par site.js),
   ce qui retire ~290 Ko du chargement initial sur mobile. */
.hero-slide.s2 { background-position: center 55%; opacity: 0; }
.hero-slide.s3 { opacity: 0; }
.hero.ready .hero-slide.s2 { background-image: url("img/hero-2.webp"); }
.hero.ready .hero-slide.s3 { background-image: url("img/hero-3.webp"); }
/* Mobile : photos de 900 px (≈55 Ko au lieu de 150), sous un voile sombre
   qui rend la différence de netteté invisible. */
@media (max-width: 700px) {
  .hero-slide.s1 { background-image: url("img/hero-1-m.webp"); }
  .hero.ready .hero-slide.s2 { background-image: url("img/hero-2-m.webp"); }
  .hero.ready .hero-slide.s3 { background-image: url("img/hero-3-m.webp"); }
}
/* La photo 1 est posée en fond et ne s'éteint jamais : les deux autres
   passent par-dessus. Plus de hero noir au chargement. */
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.s2 { animation: hero-x 21s ease-in-out infinite 7s; }
  .hero-slide.s3 { animation: hero-x 21s ease-in-out infinite 14s; }
}
@keyframes hero-x {
  0% { opacity: 0; } 5% { opacity: 1; } 30% { opacity: 1; } 35% { opacity: 0; } 100% { opacity: 0; }
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.68) 55%, rgba(10,10,10,.86) 100%);
}
.hero-in {
  position: relative;
  padding-top: clamp(56px, 9vw, 108px); padding-bottom: clamp(52px, 8vw, 92px);
}
.live {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: #ffd0a8;
  border: 1px solid rgba(255, 154, 77, .5); padding: 6px 12px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: live 1.6s infinite; }
}
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.04; font-weight: 700;
  letter-spacing: -.015em; margin-bottom: 20px; max-width: 18ch;
}
.hero h1 em { font-style: normal; color: var(--on-dark-accent); }
/* Changement de ville animé (« after effect ») : voir site.js.
   Lettres en ligne-bloc pour pouvoir les déplacer ; chaque mot reste
   insécable. Le trait orange qui balaie la ville est un dégradé de fond,
   ce qui suit le texte même s'il passe sur deux lignes. */
.fx-w { display: inline-block; white-space: nowrap; }
.fx-l { display: inline-block; will-change: transform, opacity, filter; }
.h-ville {
  background: linear-gradient(var(--fill), var(--fill)) no-repeat 0 100% / 0 .09em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: .04em;
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1.fx-out .fx-l { animation: fx-out .24s cubic-bezier(.55, 0, .8, .2) both; animation-delay: calc(var(--i) * 14ms); }
  .hero h1.fx-in .fx-l { animation: fx-in .62s cubic-bezier(.2, .9, .25, 1.12) both; animation-delay: calc(var(--i) * 30ms); }
  .hero h1.fx-in .h-delai .fx-l { animation-delay: calc(140ms + var(--i) * 22ms); }
  .hero h1.fx-in .h-ville { animation: fx-sweep 1.5s cubic-bezier(.65, 0, .35, 1) .12s both; }
  .hero h1.fx-in .h-delai { animation: fx-glow 1.2s ease .3s both; }
}
@keyframes fx-out {
  to { opacity: 0; transform: translateY(-.42em) rotate(-5deg); filter: blur(6px); }
}
@keyframes fx-in {
  0% { opacity: 0; transform: translateY(.62em) scale(.86) rotate(5deg); filter: blur(8px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes fx-sweep {
  0% { background-position: 0 100%; background-size: 0 .09em; }
  48% { background-position: 0 100%; background-size: 100% .09em; }
  52% { background-position: 100% 100%; background-size: 100% .09em; }
  100% { background-position: 100% 100%; background-size: 0 .09em; }
}
@keyframes fx-glow {
  0%, 100% { text-shadow: none; }
  35% { text-shadow: 0 0 18px rgba(255, 154, 77, .75), 0 0 2px rgba(255, 154, 77, .9); }
}
.rot-pause {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; padding: 0;
  background: none; border: 0; cursor: pointer; color: #bdbdb4;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
}
.rot-pause:hover { color: var(--on-dark-accent); }
.rot-pause[hidden] { display: none; }
/* Engagements illustrés sous le titre (icônes dessinées pour le site). */
.hero-points {
  list-style: none; margin: 0 0 30px; padding: 0; max-width: 620px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px;
}
.hero-points li {
  display: flex; align-items: center; gap: 10px;
  font-size: .92rem; line-height: 1.3; color: #ecece6;
}
.hp-ic {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; color: var(--on-dark-accent);
  background: rgba(255, 154, 77, .12); border: 1px solid rgba(255, 154, 77, .38);
}
.hp-ic .ic { width: 23px; height: 23px; }
.hero-points .hp-prix { grid-column: 1 / -1; font-size: .98rem; }
.hp-prix b { color: var(--on-dark-accent); font-weight: 700; white-space: nowrap; }
@media (min-width: 620px) {
  .hero-points { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; }
  .hero-points li:not(.hp-prix) { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hp-ic { width: 46px; height: 46px; }
  .hp-ic .ic { width: 26px; height: 26px; }
  .hero-points .hp-prix { margin-top: 2px; }
}
/* Apparition en cascade et tracé des icônes au chargement. Le tracé passe
   par stroke-dasharray, hérité par le contenu de <use>. */
@media (prefers-reduced-motion: no-preference) {
  .hero-points li { animation: hp-in .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
  .hero-points li:nth-child(2) { --d: .08s; }
  .hero-points li:nth-child(3) { --d: .16s; }
  .hero-points li:nth-child(4) { --d: .24s; }
  .hero-points li:nth-child(5) { --d: .32s; }
  .hp-ic .ic { stroke-dasharray: 90; animation: hp-trace 1.3s ease-out calc(var(--d, 0s) + .15s) both; }
  .hero-points li:hover .hp-ic { transform: translateY(-2px) rotate(-6deg); }
  .hp-ic { transition: transform .25s ease; }
}
@keyframes hp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hp-trace { from { stroke-dashoffset: 90; } to { stroke-dashoffset: 0; } }

/* ── Bandeau de chiffres ─────────────────── */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  border-bottom: 1px solid var(--line);
}
.fact { padding: 24px 22px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font-family: var(--mono); font-size: 1.45rem; line-height: 1.2; }
.fact span { font-size: .88rem; color: var(--muted); }

/* ── Panneaux dépliants (accueil) ────────── */
.panels {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.panel { background: var(--paper); padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.panel-hd { display: flex; align-items: center; gap: 12px; color: var(--accent); }
.panel-hd h2 { font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink); }
.panel p { color: var(--ink-2); font-size: .95rem; line-height: 1.62; }
.panel-more {
  margin: 2px 0 0; padding: 14px 0 0; list-style: none;
  display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--line);
}
.panel-more[hidden] { display: none; }
.panel-more li { display: flex; gap: 10px; font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
.panel-more li::before { content: '—'; color: var(--accent); }
.panel-act { display: flex; gap: 18px; align-items: center; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.linkbtn, .textlink {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--mono); font-size: .71rem; letter-spacing: .12em;
  text-transform: uppercase;
}
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent); }
.linkbtn:hover { color: var(--accent-hover); }
.textlink { color: var(--muted); text-decoration: none; }
.textlink span { border-bottom: 1px solid var(--line-2); }
.textlink:hover { color: var(--accent); }

/* ── Encart promotionnel ─────────────────── */
.promo {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  border: 1px solid var(--line); border-left: 6px solid var(--fill);
  padding: 24px 26px; background: var(--soft);
}
.promo > .ic { width: 32px; height: 32px; color: var(--accent); }
.promo-txt { flex: 1 1 320px; }
.promo h2 { font-size: 1.1rem; margin: 4px 0; }
.promo p { color: var(--ink-2); font-size: .94rem; line-height: 1.55; max-width: 60ch; }

/* ── En-tête des pages intérieures ───────── */
.intro { padding-top: 56px; padding-bottom: 8px; }
.back {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.back:hover { color: var(--accent); }
.intro h1 {
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; font-weight: 700;
  letter-spacing: -.015em; margin: 8px 0 14px; max-width: 22ch;
}
.lead { font-size: 1.05rem; color: var(--ink-2); line-height: 1.65; max-width: 62ch; }
.lead + .lead { margin-top: 14px; }
.intro .btns { margin-top: 28px; }
.intro-split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 44px; align-items: center; margin-top: 8px;
}
.intro-split h1 { max-width: 20ch; }
.intro-split .lead { line-height: 1.7; max-width: 60ch; }
.intro-img { width: 100%; height: clamp(260px, 36vw, 380px); object-fit: cover; }

/* ── Sections ────────────────────────────── */
.sec { padding-top: 44px; }
.sec-end { padding-bottom: 72px; }
.sec h2.sec-t { font-size: 1.2rem; margin-bottom: 6px; }
.sec-sub { color: var(--ink-2); font-size: .95rem; margin-bottom: 18px; max-width: 60ch; }

/* Grille à filets de 1px, commune aux raisons, services et zones. */
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.grid-wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-col { grid-template-columns: 1fr; }
.cell { background: var(--paper); padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.cell > .ic { width: 26px; height: 26px; color: var(--accent); }
.cell h2 { font-size: 1.05rem; letter-spacing: -.01em; }
.cell h3 { font-size: 1.02rem; letter-spacing: -.01em; }
.cell p { color: var(--ink-2); font-size: .93rem; line-height: 1.62; }
.cell .fact-v { color: var(--ink); font-weight: 700; font-size: 1.05rem; }

/* Cartes de service numérotées. */
.svc { padding: 30px 28px; gap: 12px; }
.svc-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svc-hd .ic { width: 30px; height: 30px; color: var(--accent); }
.svc-num { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; color: var(--muted); }
.svc h2 { font-size: 1.15rem; }
.svc p { font-size: .95rem; }
.svc-meta {
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}

/* Zones. */
.zone { padding: 22px 24px; gap: 8px; }
.zone-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.zone-hd b { font-family: var(--mono); font-size: .85rem; color: var(--accent); }
.zone a { font-weight: 600; }
.delai { white-space: nowrap; }
.svc-meta a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
.small-mono { font-family: var(--mono); font-size: .72rem; color: var(--muted); line-height: 1.7; margin-top: 16px; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: start; }
.map { width: 100%; height: 380px; border: 1px solid var(--line); background: #f0f0e9; }
.map-fallback { padding: 20px; color: var(--muted); font-size: .9rem; }
.map-legend { font-family: var(--mono); font-size: .68rem; color: var(--muted); margin-top: 10px; line-height: 1.7; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-2); color: var(--ink); text-decoration: none;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
}
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.chips span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  background: var(--soft); border: 1px solid var(--line);
  font-family: var(--mono); font-size: .74rem; color: var(--ink-2);
}

/* Encadré sobre (limites, informations légales). */
.aside {
  border: 1px solid var(--line); border-left: 6px solid var(--ink);
  background: var(--soft); padding: 26px 28px; color: var(--ink-2);
}
.aside h2 { font-size: 1.1rem; color: var(--ink); margin-bottom: 10px; }
.aside ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.aside li { display: flex; gap: 10px; }
.aside li::before { content: '—'; color: var(--accent); }

/* Bandeau d'action sombre en bas de page. */
.band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--ink); color: #fff; padding: 28px;
}
.band h2 { font-size: 1.2rem; margin-bottom: 4px; }
.band p { color: var(--foot-text); font-size: .95rem; }
.band p a { color: var(--on-dark-accent); }
.band .btn { font-size: 1rem; min-height: 50px; }

/* Étapes numérotées (accueil). */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.steps li { background: var(--paper); padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.step-n { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--accent); line-height: 1; }
.steps h3 { font-size: 1.02rem; }
.steps p { color: var(--ink-2); font-size: .92rem; line-height: 1.6; }

/* Encart « On vous rappelle ». */
.callback {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 40px; align-items: center;
  border: 1px solid var(--line); border-top: 3px solid var(--fill); background: var(--soft); padding: 28px;
}
.callback h2 { font-size: 1.2rem; margin: 4px 0 6px; }
.callback-txt p:last-child { color: var(--ink-2); font-size: .95rem; line-height: 1.6; max-width: 48ch; }
.callback-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.callback-form .btn, .callback-form .form-status { grid-column: 1 / -1; }
.callback-form .btn { width: 100%; min-height: 52px; }
@media (max-width: 420px) { .callback-form { grid-template-columns: 1fr; } .callback { padding: 22px 18px; } }

/* ── Tarifs : estimateur ─────────────────── */
.estim {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border: 1px solid var(--line); border-top: 3px solid var(--fill);
}
.estim-form { padding: 28px; display: flex; flex-direction: column; gap: 18px; background: var(--soft); }
.estim-form h2 { font-size: 1.2rem; }
.estim-f { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.estim-f legend {
  font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0;
}
.estim [hidden] { display: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label, .chk { position: relative; cursor: pointer; }
.seg input, .chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 10px;
  border: 1px solid var(--line-2); background: #fff; font-weight: 700; font-size: .95rem;
}
.seg input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #fff6ef; color: var(--accent-hover); }
.chk span { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: .95rem; color: var(--ink); }
.chk span::before {
  content: ''; flex: none; width: 22px; height: 22px; border: 1.5px solid var(--line-2); background: #fff;
}
.chk input:checked + span::before {
  border-color: var(--accent); background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.seg input:focus-visible + span, .chk input:focus-visible + span::before { outline: 3px solid var(--fill); outline-offset: 2px; }
.estim input[type=range] { width: 100%; min-height: 44px; accent-color: var(--fill); }
.estim output { color: var(--accent); font-family: var(--mono); font-weight: 700; font-size: .95rem; }
.estim-out { background: var(--ink); color: #fff; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.estim-out .kicker { color: var(--on-dark-accent); }
.estim-total { font-family: var(--mono); font-size: clamp(2.6rem, 7vw, 3.4rem); font-weight: 700; line-height: 1; }
.estim-detail { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; gap: 6px; }
.estim-detail li { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; color: var(--foot-text); }
.estim-detail li b { color: #fff; font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.estim-note { font-size: .82rem; color: var(--foot-text); line-height: 1.55; }
.estim-act { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.estim-act .btn { width: 100%; }
.btn-ghost-dark { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; }

/* Grille de prix. */
.prix { width: 100%; max-width: 780px; border-collapse: collapse; border-top: 1px solid var(--line); }
.prix th, .prix td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .97rem; }
.prix th { font-weight: 400; color: var(--ink-2); padding-right: 20px; }
.prix td { font-family: var(--mono); font-weight: 700; color: var(--ink); white-space: nowrap; text-align: right; }
.prix tr:target th, .prix tr:target td { background: #fff6ef; }
@media (max-width: 520px) { .prix td { white-space: normal; } }

/* Moyens de paiement. */
.pay { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pay li {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  border: 1px solid var(--line-2); background: #fff; font-weight: 700;
}
.pay .ic { color: var(--accent); }

/* ── Guides ──────────────────────────────── */
.essentiel {
  max-width: 780px; border: 1px solid var(--line); border-left: 6px solid var(--fill);
  background: var(--soft); padding: 22px 26px;
}
.essentiel h2 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 10px; }
.essentiel h2 .ic { color: var(--accent); }
.essentiel ul { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); line-height: 1.55; }
.essentiel p { font-size: .92rem; color: var(--ink-2); }
.prose { max-width: 720px; color: var(--ink-2); font-size: 1.02rem; line-height: 1.75; }
.prose h2 { font-size: 1.25rem; color: var(--ink); margin: 36px 0 10px; line-height: 1.3; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; color: var(--ink); margin: 24px 0 6px; line-height: 1.35; }
.prose h3:first-child { margin-top: 0; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { margin: 10px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose ul + p, .prose ol + p { margin-top: 14px; }
.prose strong { color: var(--ink); }
.prose .maj { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; color: var(--muted); line-height: 1.7; }
.cell-link { text-decoration: none; color: inherit; }
.cell-link:hover h3 { color: var(--accent); }
.cell-link .svc-meta { margin-top: auto; }
.links { list-style: none; margin: 0; padding: 0; max-width: 780px; border-top: 1px solid var(--line); }
.links a {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 0;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600;
}
.links a:hover { color: var(--accent); }
.links .ic { color: var(--accent); flex: none; }

/* Catalogue des services (page Services). */
.svc-cat + .svc-cat { margin-top: 8px; }
.svc-list .cell { gap: 8px; }
.svc-list .svc-meta { display: flex; justify-content: space-between; gap: 12px; }

/* ── Demande rapide (fenêtre) ────────────── */
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #146524; color: #fff; }
.btn-sms { background: #1d4f91; color: #fff; }
.btn-sms:hover { background: #163d70; color: #fff; }
html:has(dialog.qr[open]) { overflow: hidden; }
dialog.qr {
  padding: 0; border: 0; color: var(--ink); background: var(--paper);
  width: min(480px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  margin: 0 0 0 auto; box-shadow: -18px 0 48px rgba(15, 15, 14, .25);
}
dialog.qr::backdrop { background: rgba(15, 15, 14, .58); backdrop-filter: blur(3px); }
@media (prefers-reduced-motion: no-preference) {
  dialog.qr[open] { animation: qr-in-x .32s cubic-bezier(.2, .9, .2, 1); }
  dialog.qr[open]::backdrop { animation: qr-fade .3s ease; }
}
@keyframes qr-in-x { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes qr-in-y { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes qr-fade { from { opacity: 0; } to { opacity: 1; } }
.qr-in { display: flex; flex-direction: column; height: 100%; }
.qr-hd {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 22px 16px; border-bottom: 1px solid var(--line); border-top: 4px solid var(--fill);
}
.qr-titre { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.qr-sous { font-size: .9rem; color: var(--ink-2); margin-top: 4px; }
.qr-x {
  flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--soft); border: 1px solid var(--line); color: var(--ink); cursor: pointer;
}
.qr-x:hover { border-color: var(--accent); color: var(--accent); }
.qr-form[hidden] { display: none; }
.qr-form { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 0; display: flex; flex-direction: column; gap: 18px; }
.qr-f { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.qr-f legend, .qr-lab {
  font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); padding: 0;
}
.qr-f legend { margin-bottom: 8px; }
.qr-lab small { font-weight: 400; letter-spacing: .06em; text-transform: none; }
.qr-in-txt {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  min-height: 48px; padding: 11px 13px; border: 1px solid var(--line-2); background: #fff; border-radius: 0;
}
textarea.qr-in-txt { resize: vertical; min-height: 64px; }
.qr-in-txt:focus { outline: 2px solid var(--fill); outline-offset: 0; border-color: var(--fill); }
.qr-gps {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  border: 1px dashed var(--accent); background: #fff6ef; color: var(--accent-hover);
  font: inherit; font-weight: 700; cursor: pointer;
}
.qr-gps:hover { background: #ffecdc; }
.qr-gps.is-ok { border-style: solid; border-color: var(--wa); background: #eaf6ec; color: #14532d; }
.qr-gps-st { font-size: .85rem; color: var(--ink-2); }
.qr-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qr-type, .qr-seg label { position: relative; cursor: pointer; }
.qr-type input, .qr-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qr-type span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 72px; padding: 8px 4px; border: 1px solid var(--line-2); background: #fff;
  font-size: .78rem; font-weight: 700; line-height: 1.15; transition: border-color .15s, background .15s;
}
.qr-type .ic { width: 22px; height: 22px; color: var(--accent); }
.qr-type:hover span { border-color: var(--accent); }
.qr-type input:checked + span, .qr-seg input:checked + span {
  border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #fff6ef; color: var(--accent-hover);
}
.qr-type input:focus-visible + span, .qr-seg input:focus-visible + span { outline: 3px solid var(--fill); outline-offset: 2px; }
.qr-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.qr-seg span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; }
.qr-rdv, .qr-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qr-rdv[hidden] { display: none; }
.qr-rdv > div, .qr-duo > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qr-err { padding: 10px 12px; background: #fdecee; color: #7f1d1d; border-left: 4px solid #cc0026; font-size: .9rem; }
.qr-ft {
  position: sticky; bottom: 0; margin: 0 -22px; padding: 14px 22px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 18px); display: flex; flex-direction: column; gap: 10px;
}
.qr-send { width: 100%; min-height: 54px; }
.qr-alt { font-size: .82rem; color: var(--muted); text-align: center; line-height: 1.6; }
.qr-alt a { color: var(--accent); }
.qr-done { flex: 1; overflow-y: auto; padding: 32px 22px; display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.qr-done[hidden] { display: none; }
.qr-done-ic .ic { width: 56px; height: 56px; padding: 12px; color: #fff; background: var(--wa); border-radius: 50%; }
.qr-done.is-manual .qr-done-ic .ic { background: var(--fill); color: var(--ink); }
.qr-done-txt { color: var(--ink-2); line-height: 1.6; max-width: 36ch; }
.qr-done-act { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.qr-done-act .btn { width: 100%; }
.qr-done-act .btn[hidden] { display: none; }
.qr-done-photo { font-size: .85rem; color: var(--muted); }
@media (max-width: 600px) {
  dialog.qr { width: 100vw; height: auto; max-height: 94dvh; margin: auto 0 0; box-shadow: 0 -12px 40px rgba(15,15,14,.3); }
  @media (prefers-reduced-motion: no-preference) { dialog.qr[open] { animation-name: qr-in-y; } }
  .qr-hd { padding: 16px 16px 12px; }
  .qr-form { padding: 14px 16px 0; gap: 16px; }
  .qr-ft { margin: 0 -16px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .qr-done { padding: 26px 16px calc(20px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) { .qr-types { grid-template-columns: repeat(2, 1fr); } .qr-type span { min-height: 52px; flex-direction: row; } }

/* Formulaire en 4 étapes. */
.qr-prog { list-style: none; margin: 0; padding: 12px 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-bottom: 1px solid var(--line); background: var(--soft); }
.qr-prog[hidden] { display: none; }
.qr-prog li {
  display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .64rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); position: relative; padding-bottom: 8px;
}
.qr-prog li::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.qr-prog li span {
  flex: none; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); background: #fff; font-weight: 700; letter-spacing: 0;
}
.qr-prog li.is-on { color: var(--ink); font-weight: 700; }
.qr-prog li.is-on span { background: var(--fill); border-color: var(--fill); color: var(--ink); }
.qr-prog li.is-on::after, .qr-prog li.is-fait::after { background: var(--fill); }
.qr-prog li.is-fait span { background: var(--ink); border-color: var(--ink); color: #fff; }
.qr-step { display: flex; flex-direction: column; gap: 18px; outline: none; }
.qr-step[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .qr-step:not([hidden]) { animation: qr-step .28s cubic-bezier(.2, .9, .2, 1); }
}
@keyframes qr-step { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.qr-inline { display: flex; gap: 6px; }
.qr-inline .qr-in-txt { flex: 1; min-width: 0; }
.qr-mini {
  flex: none; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); background: #fff;
  font: inherit; font-size: .8rem; font-weight: 700; color: var(--ink); cursor: pointer;
}
.qr-mini:hover { border-color: var(--accent); color: var(--accent); }
.qr-mini[hidden] { display: none; }
.qr-map { height: 190px; border: 1px solid var(--line); background: #eef0ea; }
.qr-map[hidden], .qr-done-map[hidden] { display: none; }
.qr-aide { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.qr-aide[hidden], .qr-dist[hidden], .qr-note[hidden], .qr-sub[hidden] { display: none; }
.qr-aide a { color: var(--accent); }
.qr-dist { font-family: var(--mono); font-size: .76rem; color: var(--accent-hover); font-weight: 700; }
.qr-check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; position: relative; }
.qr-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qr-check span { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.qr-check span::before { content: ''; flex: none; width: 22px; height: 22px; border: 1.5px solid var(--line-2); background: #fff; }
.qr-check input:checked + span::before {
  border-color: var(--accent); background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.qr-check input:focus-visible + span::before { outline: 3px solid var(--fill); outline-offset: 2px; }
.qr-sub { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--soft); border-left: 3px solid var(--fill); }
.qr-sub .qr-sub { padding: 10px 0 0; border: 0; background: none; }
.qr-note { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; line-height: 1.5; padding: 10px 12px; background: #fff6ef; border: 1px solid #ffd4b3; color: var(--ink); }
.qr-note .ic { flex: none; color: var(--accent); margin-top: 1px; }
.qr-note-rouge { background: #fdecee; border-color: #f3b8c1; }
.qr-note-rouge .ic { color: #cc0026; }
.qr-note a { color: #9c0020; font-weight: 700; }
.qr-court { max-width: 140px; }
.qr-seg-3 { grid-template-columns: repeat(3, 1fr); }
.qr-seg-col { grid-template-columns: 1fr; }
.qr-seg-col span { justify-content: flex-start; padding: 0 14px; font-weight: 600; }
.qr-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.qr-cat span { min-height: 64px; font-size: .72rem; }
.qr-duo-chk { justify-content: flex-end; }
.qr-photo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qr-photo-add {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; cursor: pointer;
  border: 1px dashed var(--line-2); background: #fff; font-weight: 700; font-size: .9rem;
}
.qr-photo-add:hover { border-color: var(--accent); color: var(--accent); }
.qr-photo-add[hidden], .qr-photo img[hidden] { display: none; }
.qr-photo img { width: 120px; height: 80px; object-fit: cover; border: 1px solid var(--line); }
#qrPhoto:focus-visible + .qr-photo-add { outline: 3px solid var(--fill); outline-offset: 2px; }
.qr-recap { border: 1px solid var(--line); background: var(--soft); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.qr-recap-t { font-weight: 700; }
.qr-recap dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .88rem; }
.qr-recap dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.qr-recap dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.qr-estim { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.qr-estim[hidden] { display: none; }
.qr-estim-v { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.qr-estim ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .84rem; color: var(--ink-2); }
.qr-estim li { display: flex; justify-content: space-between; gap: 12px; }
.qr-estim li b { font-family: var(--mono); white-space: nowrap; }
.qr-estim .qr-estim-delai { color: var(--accent-hover); font-family: var(--mono); font-size: .76rem; font-weight: 700; }
.qr-nav { display: flex; gap: 8px; }
.qr-nav .qr-send { flex: 1; }
.qr-back { flex: none; background: #fff; border: 1px solid var(--line-2); color: var(--ink); min-height: 54px; padding: 0 16px; font-size: .95rem; }
.qr-back[hidden] { display: none; }
.qr-back:hover { border-color: var(--ink); }
.ic-flip { transform: scaleX(-1); }
.qr-send .ic { order: 2; }
.qr-send.is-envoyer { background: var(--ink); color: #fff; }
.qr-send.is-envoyer:hover { background: #2b2b26; }
.qr-done-map { width: 100%; height: 200px; border: 1px solid var(--line); }
.qr-pin { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--fill); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent), 0 4px 10px rgba(0,0,0,.3); }
.qr-pin-atelier { width: 22px; height: 22px; background: var(--ink); box-shadow: 0 0 0 2px var(--ink), 0 4px 10px rgba(0,0,0,.3); }
/* Fiche du véhicule trouvé par la plaque (js/plaque.js). */
.champ-plaque { text-transform: uppercase; font-family: var(--mono); letter-spacing: .08em; }
.champ-plaque.is-recherche { border-color: var(--accent); }
.champ-plaque.is-trouve { border-color: var(--wa); }

/* ── Plaque française (fenêtre de demande) ──
   Fond blanc réfléchissant, filet noir, bande européenne à gauche et bande
   départementale à droite, comme une vraie plaque SIV. */
.plaque-fr {
  position: relative; display: flex; align-items: stretch; width: 100%; max-width: 440px; height: 66px;
  margin: 4px; background: linear-gradient(180deg, #fff 0%, #f6f6f2 100%);
  border: 2px solid #111; border-radius: 8px; overflow: hidden;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px #c9c9c2, 0 10px 22px rgba(0, 0, 0, .12);
  transition: box-shadow .25s;
}
.plaque-fr:focus-within { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--fill), 0 10px 22px rgba(0, 0, 0, .14); }
.pf-band {
  flex: none; width: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: #0b3d91; color: #fff; font-family: var(--sans); font-weight: 700; line-height: 1;
}
.pf-band b { font-size: 1.1rem; letter-spacing: .02em; }
.pf-etoiles { width: 26px; height: 26px; fill: #ffcc00; }
.pf-embleme { width: 24px; height: 24px; fill: #ffcc00; stroke: #fff; }
.plaque-fr .champ-plaque {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 6px; text-align: center;
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif; font-stretch: condensed;
  font-weight: 700; font-size: clamp(1.7rem, 7.4vw, 2.25rem); letter-spacing: .07em; color: #111;
  text-transform: uppercase;
}
.plaque-fr .champ-plaque:focus { outline: none; }
.plaque-fr .champ-plaque::placeholder { color: #c4c4bc; }
.pf-scan { position: absolute; inset: 0 46px; pointer-events: none; opacity: 0; }
.plaque-fr:has(.is-recherche) .pf-scan {
  opacity: 1;
  background: linear-gradient(90deg, transparent 0, rgba(255, 107, 0, .0) 30%, rgba(255, 107, 0, .32) 50%, rgba(255, 107, 0, 0) 70%, transparent 100%) no-repeat;
  background-size: 45% 100%; animation: pf-scan 1s linear infinite;
}
.plaque-fr:has(.is-trouve) { border-color: #111; }
.plaque-fr:has(.is-trouve)::after {
  content: ""; position: absolute; right: 52px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: var(--wa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
  animation: pf-ok .45s cubic-bezier(.3, 1.6, .5, 1) both;
}
@keyframes pf-scan { from { background-position: -60% 0; } to { background-position: 160% 0; } }
@keyframes pf-ok { from { transform: scale(0); } to { transform: scale(1); } }
@media (max-width: 380px) { .pf-band { width: 38px; } .pf-scan { inset: 0 38px; } .plaque-fr:has(.is-trouve)::after { right: 42px; } }

/* Conseils « Pour votre véhicule » selon la panne (plateau, batterie, pneu…). */
.qr-conseil { border: 1px solid #f3c9a6; border-left: 4px solid var(--fill); background: #fff6ef; padding: 10px 12px; }
.qr-conseil[hidden] { display: none; }
.qr-conseil-t { font-family: var(--mono); font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.qr-conseil ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.qr-conseil li { position: relative; padding-left: 16px; font-size: .86rem; line-height: 1.45; color: var(--ink); }
.qr-conseil li::before { content: "›"; position: absolute; left: 2px; top: -1px; font-weight: 700; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .qr-conseil li { animation: hp-in .35s ease-out both; } }

/* Champs remplis d'après la plaque : liseré vert, petit éclair, étiquette. */
.qr-auto { position: relative; }
.qr-auto.is-auto::after {
  content: "✓ " attr(data-auto); position: absolute; top: 0; right: 0;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; color: #14532d; white-space: nowrap;
}
.qr-duo-chk.qr-auto.is-auto::after { position: static; order: -1; align-self: flex-start; }
@media (max-width: 420px) { .qr-auto.is-auto::after { content: "✓"; font-size: .8rem; font-weight: 700; } }
.qr-auto.is-auto .qr-in-txt, .qr-auto.is-auto .qr-check, .qr-auto.is-auto input:checked + span {
  border-color: var(--wa); background: #f0f9f2;
}
@media (prefers-reduced-motion: no-preference) {
  .qr-auto.is-auto .qr-in-txt, .qr-auto.is-auto .qr-check, .qr-auto.is-auto input:checked + span { animation: auto-flash 1.1s ease-out; }
  .qr-auto.is-auto::after { animation: hp-in .4s ease-out both; }
}
@keyframes auto-flash { 0% { box-shadow: 0 0 0 0 rgba(26, 127, 46, .45); background: #d7f0dc; } 100% { box-shadow: 0 0 0 10px rgba(26, 127, 46, 0); } }
.plaque-statut { font-size: .82rem; color: var(--ink-2); }
.plaque-statut[hidden], .veh-carte[hidden] { display: none; }
.plaque-statut.is-erreur { color: #9c0020; }
.veh-carte { border: 1px solid var(--wa); background: #eaf6ec; padding: 10px 12px; }
.veh-tete { display: flex; align-items: flex-start; gap: 10px; }
.veh-coche { width: 18px; height: 18px; color: var(--wa); flex: none; margin-top: 2px; }
.veh-titre { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.veh-version { font-family: var(--mono); font-size: .72rem; color: var(--ink-2); }
.veh-effacer { background: none; border: 0; padding: 0; min-height: 32px; font: inherit; font-size: .78rem; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.veh-faits { list-style: none; margin: 8px 0 0; padding: 0 0 0 28px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--mono); font-size: .72rem; color: var(--ink-2); }
@media (max-width: 420px) {
  .qr-cats { grid-template-columns: repeat(3, 1fr); }
  .qr-prog { padding: 10px 16px; }
  .qr-prog li { font-size: 0; gap: 0; justify-content: center; }
  .qr-prog li span { font-size: .72rem; }
}

/* Carte « Décrivez votre panne » dans le hero (écrans larges). */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero-card { display: none; }
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .hero-card {
    display: flex; flex-direction: column; gap: 14px; padding: 24px;
    background: rgba(255, 255, 255, .97); color: var(--ink); border-top: 4px solid var(--fill);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  }
  .hero .btn-ghost.js-qr-hide { display: none; }
}
.hero-card h2 { font-size: 1.15rem; }
.hero-card p { font-size: .9rem; color: var(--ink-2); }
.hero-types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hero-types a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 74px;
  border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; text-align: center;
  font-size: .76rem; font-weight: 700; line-height: 1.15; padding: 6px 2px; transition: border-color .15s, background .15s, transform .15s;
}
.hero-types a:hover { border-color: var(--accent); background: #fff6ef; color: var(--accent-hover); transform: translateY(-2px); }
.hero-types .ic { width: 22px; height: 22px; color: var(--accent); }
.hero-card .btn { width: 100%; min-height: 52px; font-size: 1rem; }
.hero-card-alt { font-family: var(--mono); font-size: .72rem; color: var(--muted); text-align: center; }
.hero-card-alt a { color: var(--accent); }

/* ── Texte long (mentions légales) ───────── */
.legal { max-width: 780px; color: var(--ink-2); }
.legal h2 { font-size: 1.15rem; color: var(--ink); margin: 32px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1rem; color: var(--ink); margin: 18px 0 8px; }
.legal p + p, .legal ul + p { margin-top: 10px; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal strong { color: var(--ink); }

/* ── FAQ ─────────────────────────────────── */
.faq { max-width: 780px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 0; font-weight: 700; font-size: 1.05rem;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--accent); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); line-height: 1.7; max-width: 68ch; }

/* ── Contact ─────────────────────────────── */
.info { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.info li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info .ic { color: var(--accent); margin-top: 3px; width: 22px; height: 22px; }
.info small {
  display: block; margin-bottom: 4px; font-family: var(--mono); font-size: .66rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.info a { display: inline-flex; align-items: center; min-height: 44px; }

.form {
  border: 1px solid var(--line); border-top: 3px solid var(--fill);
  padding: 30px; background: var(--soft); display: flex; flex-direction: column; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink);
  min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-2); background: #fff; border-radius: 0;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--fill); outline-offset: 0; border-color: var(--fill); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { width: 100%; font-size: 1rem; min-height: 52px; }
.form-status { padding: 12px 14px; font-size: .92rem; }
.form-status.is-ok { background: #eaf6ec; color: #14532d; border-left: 4px solid var(--wa); }
.envoi-choix { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.form .envoi-choix .btn, .envoi-choix .btn { width: auto; flex: 1 1 130px; min-height: 46px; font-size: .95rem; }
.form-status.is-error { background: #fdecee; color: #7f1d1d; border-left: 4px solid #cc0026; }
.form-help { font-family: var(--mono); font-size: .72rem; color: var(--muted); line-height: 1.6; }

/* ── Pied de page ────────────────────────── */
.ft { background: var(--foot); color: var(--foot-text); }
.ft-in {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px; padding-top: 48px; padding-bottom: 40px;
}
.ft-name { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; color: #fff; }
.ft p { font-size: .9rem; line-height: 1.6; }
.ft-tel { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px;
  font-family: var(--mono); font-size: 1.1rem; font-weight: 700; color: var(--on-dark-accent); text-decoration: none; }
.ft-tel:hover { color: #fff; }
.ft-col { display: flex; flex-direction: column; }
.ft-h {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--foot-muted); margin-bottom: 4px;
}
.ft-col a {
  color: var(--foot-text); text-decoration: none; font-size: .92rem;
  display: inline-flex; align-items: center; min-height: 44px;
}
.ft-col a:hover { color: var(--on-dark-accent); }
.ft-copy {
  border-top: 1px solid var(--foot-line); padding: 16px 20px; text-align: center;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; color: var(--foot-muted);
}

/* ── Actions d'urgence ───────────────────── */
.rail, .bar { display: none; }
.rail a, .bar a { text-decoration: none; }

/* Grand écran : colonne d'actions fixe à droite. */
@media (min-width: 1401px) {
  .rail {
    display: flex; position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
    z-index: 70; flex-direction: column; gap: 8px; width: 208px;
  }
  .rail-call {
    display: flex; flex-direction: column; gap: 2px; padding: 13px 16px;
    background: var(--fill); color: var(--ink); box-shadow: 0 6px 24px rgba(20,20,12,.18);
    font-family: var(--mono);
  }
  .rail-call small { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; }
  .rail-call strong { font-size: 1.05rem; }
  .rail-call:hover { background: var(--fill-hover); color: var(--ink); }
  .rail-btn {
    display: flex; align-items: center; gap: 10px; padding: 13px 16px; min-height: 48px;
    font-weight: 700; font-size: .9rem; box-shadow: 0 6px 24px rgba(20,20,12,.12);
  }
  .rail-dem { background: var(--ink); color: #fff; }
  .rail-dem:hover { background: #2b2b26; color: #fff; }
  .rail-wa { background: #fff; color: var(--ink); border: 1px solid var(--line); }
  .rail-wa:hover { color: var(--wa); }
  .rail-top {
    align-self: flex-end; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--muted); border: 1px solid var(--line);
  }
  .rail-top:hover { color: var(--accent); border-color: var(--accent); }

  /* Le contenu se centre dans l'espace laissé libre par la colonne, sans
     rogner les fonds pleine largeur (hero, pied de page). */
  .wrap {
    margin-left: max(20px, calc((100vw - var(--rail-w) - 1160px) / 2));
    margin-right: var(--rail-w);
  }
}

/* Portable et tablette paysage : numéro + demande dans l'en-tête. */
@media (min-width: 901px) and (max-width: 1400px) {
  .hd-actions { display: flex; }
  .nav { gap: 14px; }
  .brand-sub { display: none; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .brand-sub { display: none; }
  .brand-name { font-size: .92rem; }
  .hd-in { gap: 12px; }
  .nav a { font-size: .64rem; letter-spacing: .04em; }
  .nav { gap: 10px; }
  .langs { padding-left: 8px; }
  .nav .langs a { min-width: 26px; }
  .hd-call small { display: none; }
  .hd-call strong { font-size: .85rem; }
  .hd-cta { padding: 0 12px; font-size: .82rem; }
}
/* Entre 901 et 980 px : l'appel reste, le bouton « Demander » cède la place. */
@media (min-width: 901px) and (max-width: 980px) {
  .hd-cta { display: none; }
}

/* Mobile : menu repliable + barre d'actions en bas. */
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .hd-in { flex-wrap: wrap; gap: 10px; min-height: 60px; }
  .nav {
    display: none; order: 3; width: 100%;
    flex-direction: column; gap: 0; padding: 4px 0 12px;
    border-top: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { font-size: .85rem; min-height: 48px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .langs { border-left: 0; padding: 6px 0 0; gap: 8px; }
  .nav .langs a { border: 1px solid var(--line); min-width: 52px; min-height: 44px; font-size: .78rem; }
  .nav .langs a[aria-current="true"] { border-color: var(--ink); }

  .bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    gap: 1px; background: var(--line); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .bar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 60px; padding: 8px 4px; background: #fff; color: var(--ink);
    font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  }
  .bar .bar-call { flex: 2.2; background: var(--fill); gap: 1px; }
  .bar .bar-top { flex: 0 0 52px; color: var(--muted); }
  .bar-call small { font-size: .58rem; letter-spacing: .14em; }
  .bar-call strong { font-size: .98rem; letter-spacing: 0; }
  body { padding-bottom: calc(61px + env(safe-area-inset-bottom, 0px)); }

  .fact { padding: 18px 16px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts .fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fact b { font-size: 1.15rem; }
  .fact span { font-size: .8rem; }

  .intro { padding-top: 36px; }
  .sec { padding-top: 36px; }
  .sec-end { padding-bottom: 48px; }
  .hero .btn { width: 100%; }
  .map { height: 300px; }
  .form { padding: 22px 18px; }
}
/* Sous 520px, le sous-titre du logo pousse le bouton Menu sur une seconde
   ligne : l'en-tête doublerait de hauteur pour une ligne décorative. */
@media (max-width: 520px) {
  .brand-sub { display: none; }
  .brand-bar { height: 28px; }
}
/* Sous 430px, le bouton Menu passe en icône seule pour tenir sur la ligne du
   logo ; le mot reste annoncé aux lecteurs d'écran. */
@media (max-width: 430px) {
  .menu-btn { padding: 0; width: 44px; justify-content: center; }
  .menu-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap;
  }
}
@media (max-width: 360px) {
  .brand-name { font-size: .92rem; letter-spacing: .02em; }
}
@media (max-width: 380px) {
  .fact b { font-size: 1.02rem; }
}

@media print {
  .hd, .rail, .bar, .hero-bg, .band { display: none !important; }
  .hero { background: none; color: var(--ink); }
}

/* ── Apparition au défilement (site.js ajoute .rv puis .is-vu) ── */
@media (prefers-reduced-motion: no-preference) {
  .rv {
    opacity: 0; transform: translateY(18px);
    transition: opacity .65s cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0s), transform .65s cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0s);
  }
  .rv.is-vu { opacity: 1; transform: none; }
  .rv.is-vu > .cell > .ic,
  .rv.is-vu > .panel .panel-hd > .ic,
  .rv.is-vu.promo > .ic { animation: rv-ic .6s cubic-bezier(.3, 1.5, .5, 1) calc(var(--rv-i, 0s) + .2s) both; }
  .steps > li.rv.is-vu .step-n { animation: rv-n .7s ease-out calc(var(--rv-d, 0s) + .15s) both; }
}
@keyframes rv-ic { from { opacity: 0; transform: scale(.4) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes rv-n { from { opacity: 0; letter-spacing: .5em; } to { opacity: 1; } }
@media print { .rv { opacity: 1 !important; transform: none !important; } }

/* ── Exemples de prix (page Tarifs, guide prix) ── */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ex-card { border: 1px solid var(--line); background: var(--paper); padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.ex-card h3 { font-size: .98rem; line-height: 1.35; letter-spacing: -.01em; }
.ex-sous { font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--muted); }
.ex-card ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ex-card li, .ex-total { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--ink-2); }
.ex-card li b { font-weight: 600; white-space: nowrap; }
.ex-total { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.ex-total b { font-family: var(--mono); font-size: 1.15rem; color: var(--accent); white-space: nowrap; }

/* ── Encadré d'alerte (panne sur autoroute) ── */
.alerte { display: flex; gap: 18px; align-items: flex-start; border: 1px solid #f0c4a0; border-left: 6px solid var(--fill); background: #fff6ef; padding: 22px 24px; }
.alerte > .ic { width: 30px; height: 30px; color: var(--accent); margin-top: 2px; }
.alerte h2 { font-size: 1.15rem; margin-bottom: 10px; }
.alerte ol { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.alerte strong { color: var(--ink); }
@media (max-width: 520px) { .alerte { flex-direction: column; gap: 10px; padding: 18px; } }
.cell .textlink { margin-top: auto; }

