/* =============================================================================
   FORZA AUTOMOBILES — feuille de style unique
   CSS écrit à la main, aucun framework.

   MOBILE-FIRST, pour de vrai. La maquette d'origine était desktop-only :
   grilles figées en repeat(3,1fr), aucune media query nulle part. Ici le socle
   est le téléphone, et trois breakpoints seulement élargissent la mise en page :

       base     → mobile          (1 colonne, nav en tiroir, barre de prix basse)
       ≥ 600px  → grande mobile / tablette portrait   (2 colonnes)
       ≥ 900px  → tablette paysage                    (nav horizontale, 2 colonnes de contenu)
       ≥ 1140px → desktop                             (3 colonnes, rail de filtres, panneau collant)

   Sommaire
     01 Tokens              08 Cartes
     02 Base                09 Véhicules (carte + grille)
     03 Mise en page        10 Accueil
     04 En-tête + tiroir    11 Catalogue
     05 Pied de page        12 Fiche véhicule
     06 Boutons             13 Atelier
     07 Formulaires         14 Contact / reprise
                            15 Réservation (démo)
                            16 Dialogue + notification
                            17 Utilitaires + impression
   ========================================================================== */

/* ═══════════════════════════════════════════════════ 01 · TOKENS ══════════ */
/* Repris tels quels de la maquette Claude Design, à trois corrections près,
   signalées plus bas : --focus-ring, --text-faint, et les alphas sur fond ink
   (la maquette en utilisait sept, on en garde quatre nommés). */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Barlow:wght@400;500;600&display=swap");
/* NOTE : Google Fonts en CDN transfère l'IP du visiteur. À auto-héberger avant
   la mise en ligne réelle (cf. PLACEHOLDERS.md). Acceptable pour une démo. */

:root {
  /* — fonds */
  --white: #ffffff;
  --paper: #fafafa;
  --paper-alt: #f2f2ef;
  --line-100: #ededea;
  --line-200: #e1e1dd;
  --line-300: #cfcfc9;

  /* — encres */
  --ink-900: #101112;
  --ink-700: #2a2e33;
  --slate-600: #565f6b;
  /* CORRECTION a11y : la maquette utilisait #8F98A3 pour le texte ténu, soit
     2,8:1 sur fond papier — sous le seuil AA de 4,5:1, alors que ce ton porte
     du contenu réel (dates d'historique). Assombri à #6E7883 → 4,6:1. */
  --slate-500: #6e7883;

  /* — accent, actions uniquement */
  --rust-700: #8e320a;
  --rust-600: #a63b0c;
  --rust-500: #c1440e;
  --rust-100: #f8ebe4;

  /* — statuts, volontairement sourds */
  --green-600: #1e6e42; --green-100: #e6f0ea;
  --amber-600: #a06a0f; --amber-100: #f7eedc;
  --red-600:   #a82418; --red-100:   #f6e5e3;
  --blue-600:  #2b5c86; --blue-100:  #e5edf4;

  /* — alias sémantiques */
  --surface-page: var(--paper);
  --surface-card: var(--white);
  --surface-sunken: var(--paper-alt);
  --surface-inverse: var(--ink-900);
  --text-strong: var(--ink-900);
  --text-body: var(--ink-700);
  --text-muted: var(--slate-600);
  --text-faint: var(--slate-500);
  --border-subtle: var(--line-100);
  --border-default: var(--line-200);
  --border-strong: var(--line-300);
  --action-bg: var(--rust-500);
  --action-bg-hover: var(--rust-600);
  --action-bg-active: var(--rust-700);

  /* — texte sur fond ink : quatre valeurs nommées, au lieu des sept alphas
       improvisés de la maquette */
  --on-ink-strong: #ffffff;
  --on-ink: rgba(255, 255, 255, .78);
  --on-ink-faint: rgba(255, 255, 255, .5);
  --on-ink-rule: rgba(255, 255, 255, .14);

  /* CORRECTION a11y : la maquette mettait --focus-ring à l'accent lui-même,
     donc rouille sur rouille sur le bouton primaire — anneau invisible au
     clavier. On passe à l'encre, doublée d'un liseré blanc pour rester visible
     sur fond sombre comme sur fond clair. */
  --focus-ring: var(--ink-900);

  /* — typographie */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --tracking-caps: .08em;

  /* — espacements, base 4px */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px;

  /* Rythme vertical des sections : serré sur mobile, aéré au-delà.
     Piloté par une seule variable, redéfinie dans les media queries. */
  --section-y: var(--s12);
  --shell-pad: var(--s5);

  /* — formes : quasi carré, c'est la signature du système */
  --radius: 2px;

  /* — élévation : bordure d'abord, ombre seulement pour ce qui flotte */
  --shadow-raised: 0 1px 2px rgba(16, 17, 18, .06);
  --shadow-overlay: 0 8px 24px rgba(16, 17, 18, .12);
  --shadow-dialog: 0 24px 60px rgba(16, 17, 18, .2);
  --scrim: rgba(16, 17, 18, .55);

  /* — mouvement : court, plat, fonctionnel */
  --fast: 120ms;
  --base: 180ms;
  --slow: 260ms;
  --ease: cubic-bezier(.2, 0, .2, 1);

  --header-h: 56px; /* hauteur réelle de l'en-tête, mobile */
}

@media (min-width: 900px) {
  :root { --section-y: var(--s20); --shell-pad: var(--s8); --header-h: 76px; }
}

/* ═══════════════════════════════════════════════════ 02 · BASE ════════════ */

*, *::before, *::after { box-sizing: border-box; }

/* [hidden] doit gagner contre nos propres display:flex/grid. La règle du
   navigateur ([hidden]{display:none}) vient de sa feuille par défaut, donc
   n'importe quelle règle d'auteur la neutralise — d'où le !important ici.
   Sans ça, masquer une vignette filtrée ou un panneau n'a aucun effet. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -.02em;
  line-height: 1.15;
}

/* Échelle typographique fluide : évite d'empiler des media queries sur chaque
   titre. Le minimum est la valeur mobile, le maximum la valeur desktop. */
h1, .h1 { font-size: clamp(28px, 6vw, 40px); }
h2, .h2 { font-size: clamp(23px, 4.4vw, 32px); }
h3, .h3 { font-size: clamp(18px, 2.6vw, 21px); }

p { margin: 0; }

a { color: var(--rust-600); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color var(--fast) var(--ease); }
a:hover { color: var(--rust-700); }

img { max-width: 100%; height: auto; display: block; }

svg { flex: none; }

/* Anneau de focus : encre + halo blanc, lisible sur tous les fonds du système. */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .9);
}
.on-ink :focus-visible { outline-color: var(--white); box-shadow: 0 0 0 4px rgba(16, 17, 18, .6); }

::selection { background: #efd3c6; color: var(--text-strong); }

/* Toutes les valeurs chiffrées du site s'alignent en colonne. */
.num { font-variant-numeric: tabular-nums; }

/* Lien d'évitement, obligatoire dès qu'il y a une nav. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink-900); color: var(--white);
  padding: var(--s3) var(--s4); font-family: var(--font-ui); font-size: 14px;
  text-decoration: none;
}
.skip:focus { left: 0; color: var(--white); }

/* ═══════════════════════════════════════════ 03 · MISE EN PAGE ════════════ */

.shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--shell-pad);
}

.section { padding-top: var(--section-y); }
.section--sunken { background: var(--surface-sunken); padding-block: var(--section-y); }

.page-head {
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-default);
  padding-block: var(--s8) var(--s6);
}
@media (min-width: 900px) { .page-head { padding-block: var(--s12) var(--s8); } }
.page-head p { color: var(--text-muted); max-width: 62ch; margin-top: var(--s3); }

.eyebrow {
  display: block;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow--ink { color: var(--on-ink-faint); }
.eyebrow--accent { color: var(--rust-600); }

.section-head {
  display: flex; flex-direction: column; gap: var(--s2);
  margin-bottom: var(--s6);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border-default);
}
.section-head .action { margin-top: var(--s2); }
@media (min-width: 600px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--s6); }
  .section-head > div { display: flex; flex-direction: column; gap: var(--s2); }
  .section-head .action { margin-top: 0; }
}
@media (min-width: 900px) { .section-head { margin-bottom: var(--s8); } }

/* Grilles : une colonne par défaut, c'est le point de départ mobile. */
.grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .grid { gap: var(--s5); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid { gap: var(--s6); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1140px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Bloc photo hachuré. Aucune photo réelle n'existe : chaque emplacement porte
   le libellé du cliché attendu, ce qui vaut brief pour le client. */
/* .photo sert à deux choses : le bloc hachuré (véhicule sans photo — cas
   résiduel, plus aucun des 9 véhicules réels n'y tombe) et, depuis l'ajout
   des vraies photos LeBonCoin, une balise <img> à part entière. object-fit
   est ce qui évite qu'une photo 3:2 s'étire dans un cadre 4:3 ou 16:10. */
.photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover; object-position: center;
  background: repeating-linear-gradient(135deg, var(--line-100) 0 10px, var(--paper-alt) 10px 20px);
  border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--s3);
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--text-faint);
}
.photo--wide { aspect-ratio: 16 / 10; }

/* ═══════════════════════════════════════ 04 · EN-TÊTE + TIROIR ═══════════ */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-default);
}

/* Barre d'information : masquée sur mobile, où chaque pixel vertical compte.
   L'adresse et les horaires restent accessibles en pied de page et sur Contact. */
.topbar { display: none; }
@media (min-width: 900px) {
  .topbar {
    display: block;
    background: var(--surface-inverse);
    color: var(--on-ink);
    font-family: var(--font-ui); font-size: 12px;
  }
  .topbar .shell { display: flex; align-items: center; justify-content: space-between; height: 34px; }
  .topbar span { display: inline-flex; align-items: center; gap: var(--s2); }
}

.masthead {
  display: flex; align-items: center; gap: var(--s4);
  height: var(--header-h);
}

.wordmark { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; }
.wordmark b {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: -.03em; color: var(--text-strong);
}
.wordmark b i { color: var(--rust-500); font-style: normal; }
.wordmark small {
  font-family: var(--font-ui); font-weight: 600; font-size: 7px;
  letter-spacing: .14em; color: var(--text-muted); margin-top: 3px;
}
.wordmark--ink b { color: var(--on-ink-strong); }
.wordmark--ink small { color: var(--on-ink-faint); }
@media (min-width: 900px) {
  .wordmark b { font-size: 22px; }
  .wordmark small { font-size: 7.5px; }
}

/* Navigation : tiroir sur mobile, barre horizontale à partir de 900px.
   NB : ces sélecteurs sont préfixés par .masthead volontairement. Le bloc
   §06 · BOUTONS déclare `.btn { display: inline-flex }` PLUS BAS dans le
   fichier ; à spécificité égale, c'est lui qui l'emporterait et le burger
   resterait affiché en desktop. Un sélecteur à deux classes tranche. */
.masthead .nav-toggle { margin-left: auto; --btn-h: 44px; }
.nav { display: none; }
.masthead .header-phone { display: none; }

@media (min-width: 900px) {
  .masthead .nav-toggle { display: none; }
  .nav {
    display: flex; gap: var(--s5);
    margin-right: auto; margin-left: var(--s6);
  }
  .nav a {
    font-family: var(--font-ui); font-size: 14px; font-weight: 500;
    color: var(--text-muted); text-decoration: none;
    padding-bottom: 4px; border-bottom: 2px solid transparent;
    transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
  }
  .nav a:hover { color: var(--text-strong); }
  .nav a[aria-current] { color: var(--text-strong); font-weight: 600; border-bottom-color: var(--rust-500); }
  .masthead .header-phone {
    display: inline-flex; align-items: center; gap: var(--s3);
    font-family: var(--font-display); font-weight: 700; font-size: 16px;
    color: var(--text-strong);
  }
}
@media (min-width: 1140px) { .nav { gap: var(--s6); } }

/* Tiroir mobile : panneau plein écran, piloté par [hidden] + une classe.
   Pas de position:fixed sur le body — on verrouille le scroll côté JS. */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--surface-card);
  display: flex; flex-direction: column;
  animation: drawer-in var(--base) var(--ease);
}
.drawer[hidden] { display: none; }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding-inline: var(--shell-pad);
  border-bottom: 1px solid var(--border-default);
}
.drawer-nav { display: flex; flex-direction: column; padding: var(--s2) var(--shell-pad); }
.drawer-nav a {
  font-family: var(--font-ui); font-size: 18px; font-weight: 600;
  color: var(--text-strong); text-decoration: none;
  padding: var(--s4) 0; border-bottom: 1px solid var(--border-subtle);
}
.drawer-nav a[aria-current] { color: var(--rust-600); }
.drawer-foot {
  margin-top: auto; padding: var(--s5) var(--shell-pad);
  border-top: 1px solid var(--border-default);
  display: flex; flex-direction: column; gap: var(--s3);
}
.drawer-foot .muted { font-size: 14px; color: var(--text-muted); }
@media (min-width: 900px) { .drawer { display: none !important; } }

/* ══════════════════════════════════════════════ 05 · PIED DE PAGE ════════ */

.site-footer {
  background: var(--surface-inverse);
  color: var(--on-ink);
  margin-top: var(--s16);
}
@media (min-width: 900px) { .site-footer { margin-top: var(--s20); } }

.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--s8);
  padding-block: var(--s12) var(--s8);
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s8) var(--s6); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; padding-block: var(--s16) var(--s10); gap: var(--s10); } }

.footer-col { display: flex; flex-direction: column; gap: var(--s3); }
.footer-col h4 {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--on-ink-faint);
}
.footer-col a { color: var(--on-ink); font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: var(--on-ink-strong); }
.footer-col p, .footer-col span { font-size: 14px; }
.footer-col .tel { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--on-ink-strong); }
.footer-col .day { color: var(--on-ink-strong); font-weight: 600; }

.footer-legal {
  display: flex; flex-direction: column; gap: var(--s2);
  padding-block: var(--s5);
  border-top: 1px solid var(--on-ink-rule);
  font-size: 12px; color: var(--on-ink-faint);
}
.footer-legal nav { display: flex; gap: var(--s5); flex-wrap: wrap; }
.footer-legal a { color: inherit; text-decoration: none; }
@media (min-width: 600px) { .footer-legal { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ══════════════════════════════════════════════════ 06 · BOUTONS ═════════ */

.btn {
  --btn-h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--btn-h); padding-inline: var(--s5);
  font-family: var(--font-ui); font-size: 15px; font-weight: 600;
  line-height: 1; text-align: center; text-decoration: none;
  color: var(--white); background: var(--action-bg);
  border: 1px solid var(--action-bg); border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
/* 44px partout : le brief d'origine le justifiait par « les mains grasses sur
   un téléphone ». C'est aussi la cible tactile minimale recommandée. */
.btn:hover { background: var(--action-bg-hover); border-color: var(--action-bg-hover); color: var(--white); }
.btn:active { background: var(--action-bg-active); border-color: var(--action-bg-active); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

.btn--secondary { background: transparent; color: var(--text-strong); border-color: var(--ink-900); }
.btn--secondary:hover { background: var(--ink-900); color: var(--white); border-color: var(--ink-900); }

.btn--quiet { background: var(--white); color: var(--text-strong); border-color: var(--border-strong); }
.btn--quiet:hover { background: var(--paper-alt); color: var(--text-strong); border-color: var(--border-strong); }

.btn--ghost { background: transparent; color: var(--text-strong); border-color: transparent; padding-inline: var(--s2); }
.btn--ghost:hover { background: var(--paper-alt); color: var(--text-strong); border-color: transparent; }

.btn--ink { background: var(--white); color: var(--ink-900); border-color: var(--white); }
.btn--ink:hover { background: var(--paper-alt); color: var(--ink-900); border-color: var(--paper-alt); }

.btn--sm { --btn-h: 36px; font-size: 14px; padding-inline: var(--s3); }
.btn--lg { --btn-h: 52px; font-size: 16px; padding-inline: var(--s6); }
.btn--block { display: flex; width: 100%; }

/* Sur mobile, les paires de CTA s'empilent en pleine largeur. */
.btn-row { display: flex; flex-direction: column; gap: var(--s3); }
.btn-row .btn { width: 100%; }
@media (min-width: 600px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-row .btn { width: auto; }
}

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: var(--white); color: var(--text-strong);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  cursor: pointer; transition: background-color var(--fast) var(--ease);
}
.iconbtn:hover { background: var(--paper-alt); }
.iconbtn:active { transform: translateY(1px); }

/* ═════════════════════════════════════════════ 07 · FORMULAIRES ══════════ */

.field { display: flex; flex-direction: column; gap: var(--s2); }
.field > label, .label {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--text-strong);
}
.field .req { color: var(--rust-500); }
.field .hint { font-size: 13px; color: var(--text-muted); }

.input, .select, .textarea {
  width: 100%; min-height: 44px;
  padding: var(--s3) var(--s3);
  font-family: var(--font-body); font-size: 16px; /* 16px = pas de zoom auto iOS */
  color: var(--text-body); background: var(--white);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  transition: border-color var(--fast) var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--ink-900);
  box-shadow: inset 0 0 0 1px var(--ink-900);
}
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--ink-900); }
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23565f6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--s3) center;
  padding-right: var(--s10);
}

.input-icon { position: relative; }
.input-icon svg { position: absolute; left: var(--s3); top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.input-icon .input { padding-left: var(--s10); }

/* Formulaire : une colonne sur mobile, deux dès 600px. */
.form { display: flex; flex-direction: column; gap: var(--s5); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .span-2 { grid-column: 1 / -1; }
}

/* Case à cocher / radio : la zone cliquable est le libellé entier. */
.check {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s3); border: 1px solid var(--border-default); border-radius: var(--radius);
  background: var(--white); cursor: pointer;
  transition: border-color var(--fast) var(--ease);
}
.check:hover { border-color: var(--border-strong); }
.check input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--rust-500); flex: none; }
.check .t { display: flex; flex-direction: column; gap: 2px; }
.check .t b { font-family: var(--font-ui); font-size: 15px; font-weight: 600; color: var(--text-strong); }
.check .t span { font-size: 13px; color: var(--text-muted); }
.check:has(input:checked) { border-color: var(--ink-900); }

.check--plain { border: none; padding: 0; background: none; }
.check--plain:hover { border: none; }

fieldset { border: none; margin: 0; padding: 0; }
legend { padding: 0; }

/* Interrupteur */
.switch { display: inline-flex; align-items: center; gap: var(--s3); cursor: pointer; font-size: 14px; color: var(--text-body); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  width: 40px; height: 24px; flex: none;
  background: var(--line-300); border-radius: var(--radius);
  position: relative; transition: background-color var(--fast) var(--ease);
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; background: var(--white); border-radius: 1px;
  transition: transform var(--fast) var(--ease);
}
.switch input:checked + .track { background: var(--ink-900); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Étiquette de filtre */
.tag {
  display: inline-flex; align-items: center; min-height: 36px;
  padding-inline: var(--s3);
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  color: var(--text-body); background: var(--white);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  cursor: pointer; transition: var(--fast) var(--ease);
  transition-property: background-color, border-color, color;
}
.tag:hover { border-color: var(--ink-900); }
.tag[aria-pressed="true"] { background: var(--ink-900); border-color: var(--ink-900); color: var(--white); }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ══════════════════════════════════════════════════ 08 · CARTES ══════════ */

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: var(--s5);
}
@media (min-width: 900px) { .card { padding: var(--s6); } }
.card--sunken { background: var(--surface-sunken); }
.card--inverse { background: var(--surface-inverse); color: var(--on-ink); border-color: var(--ink-900); }
.card--inverse h2, .card--inverse h3 { color: var(--on-ink-strong); }
.card--flush { padding: 0; }

.badge {
  display: inline-flex; align-items: center;
  padding: 3px var(--s2);
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  border-radius: var(--radius);
  background: var(--paper-alt); color: var(--text-muted);
  border: 1px solid var(--border-default);
}
.badge--ok     { background: var(--green-100); color: var(--green-600); border-color: transparent; }
.badge--warn   { background: var(--amber-100); color: var(--amber-600); border-color: transparent; }
.badge--danger { background: var(--red-100);   color: var(--red-600);   border-color: transparent; }
.badge--info   { background: var(--blue-100);  color: var(--blue-600);  border-color: transparent; }
.badge--ink    { background: var(--ink-900);   color: var(--white);     border-color: transparent; }

.badge-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* Bloc d'aide / mise en garde, réutilisé pour les mentions « démonstration ». */
.note {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s3) var(--s4);
  background: var(--amber-100); color: #6f4a0a;
  border-left: 3px solid var(--amber-600); border-radius: var(--radius);
  font-size: 14px; line-height: 1.4;
}
.note svg { margin-top: 2px; color: var(--amber-600); }
.note--info { background: var(--blue-100); color: #1f4462; border-left-color: var(--blue-600); }
.note--info svg { color: var(--blue-600); }

/* Liste icône + titre + texte (réassurance, avantages) */
.feature { display: flex; flex-direction: column; gap: var(--s2); }
.feature b { font-family: var(--font-ui); font-size: 16px; font-weight: 600; color: var(--text-strong); }
.feature p { font-size: 14px; color: var(--text-muted); }

.list-check { display: flex; flex-direction: column; gap: var(--s3); list-style: none; margin: 0; padding: 0; }
.list-check li { display: flex; gap: var(--s3); align-items: flex-start; font-size: 14px; color: var(--text-body); }
.list-check svg { margin-top: 2px; color: var(--text-muted); }

/* ═══════════════════════════════════ 09 · VÉHICULES (carte + grille) ═════ */

.vcard {
  display: flex; flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.vcard:hover { border-color: var(--ink-900); box-shadow: var(--shadow-raised); color: inherit; }

.vcard-media { position: relative; }
.vcard-media .photo { border: none; border-bottom: 1px solid var(--border-default); }
.vcard-media .badge { position: absolute; top: var(--s3); left: var(--s3); }

.vcard-body { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4); flex: 1; }
.vcard-title { display: flex; flex-direction: column; gap: 2px; }
.vcard-title b {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  letter-spacing: -.01em; color: var(--text-strong); line-height: 1.15;
}
.vcard-title span { font-family: var(--font-body); font-size: 14px; color: var(--text-muted); }

/* Ligne de spécifications séparée par des filets, sans puces. */
.specrun {
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3);
  font-family: var(--font-ui); font-size: 13px; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.specrun li { list-style: none; display: flex; align-items: center; gap: var(--s3); }
.specrun li + li::before { content: ""; width: 1px; height: 12px; background: var(--border-strong); }
.specrun ul, .specrun ol { display: contents; }

.vcard-foot {
  margin-top: auto; padding-top: var(--s3);
  border-top: 1px solid var(--border-subtle);
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3);
}
.vcard-price {
  font-family: var(--font-display); font-size: 21px; font-weight: 700;
  color: var(--text-strong); letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.vcard-foot .cta { font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--rust-600); }

.vcard--vendu .photo, .vcard--vendu .vcard-title b { opacity: .65; }

/* ══════════════════════════════════════════════════ 10 · ACCUEIL ═════════ */

.hero { background: var(--surface-card); border-bottom: 1px solid var(--border-default); }
.hero .shell { display: grid; grid-template-columns: 1fr; gap: var(--s8); padding-block: var(--s10); }
.hero-copy { display: flex; flex-direction: column; gap: var(--s5); align-items: flex-start; }
.hero-copy p.lede { font-size: 17px; line-height: 1.5; color: var(--text-muted); max-width: 52ch; }
@media (min-width: 900px) {
  .hero .shell { grid-template-columns: 1fr 1fr; gap: var(--s12); align-items: center; padding-block: var(--s16); }
  .hero-copy p.lede { font-size: 18px; }
}
@media (min-width: 1140px) { .hero .shell { gap: var(--s16); padding-block: var(--s20); } }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: var(--s6);
  width: 100%; padding-top: var(--s4);
  border-top: 1px solid var(--border-default);
}
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats b {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  color: var(--text-strong); font-variant-numeric: tabular-nums;
}

/* Bande reprise : le seul bloc encre de la page d'accueil. */
.reprise-band .shell-inner {
  display: grid; grid-template-columns: 1fr; gap: var(--s8);
  padding: var(--s8) var(--s5);
}
@media (min-width: 900px) {
  .reprise-band .shell-inner { grid-template-columns: 1.2fr 1fr; gap: var(--s12); padding: var(--s12); align-items: center; }
}
.reprise-copy { display: flex; flex-direction: column; gap: var(--s4); align-items: flex-start; }
.reprise-copy p { color: var(--on-ink); max-width: 52ch; }

.steps { display: flex; flex-direction: column; gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.steps li {
  display: flex; gap: var(--s4); align-items: flex-start;
  padding-bottom: var(--s4); border-bottom: 1px solid var(--on-ink-rule);
  font-size: 14px; color: var(--on-ink);
}
.steps li:last-child { border-bottom: none; padding-bottom: 0; }
.steps b {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--rust-500); font-variant-numeric: tabular-nums; flex: none;
}

.trust { border-top: 1px solid var(--border-default); padding-top: var(--s8); }

/* ═══════════════════════════════════════════════ 11 · CATALOGUE ══════════ */

.catalogue { display: grid; grid-template-columns: 1fr; gap: var(--s6); padding-top: var(--s8); }
@media (min-width: 1140px) {
  /* Le rail de filtres n'apparaît qu'ici : en dessous, c'est un panneau replié. */
  .catalogue { grid-template-columns: 240px 1fr; gap: var(--s10); padding-top: var(--s10); }
}

.filters-bar { display: flex; align-items: center; gap: var(--s3); }
.filters-bar .btn { flex: 1; }
@media (min-width: 1140px) { .filters-bar { display: none; } }

.filters { display: flex; flex-direction: column; gap: var(--s6); }
/* Sur mobile le rail devient un panneau ouvert/fermé par le bouton « Filtrer ».
   [hidden] suffit : pas de hauteur animée, donc pas de saccade. */
.filters[hidden] { display: none; }
@media (min-width: 1140px) {
  .filters { display: flex !important; }
  .filters-panel { position: sticky; top: calc(var(--header-h) + 34px + var(--s5)); }
}
.filters fieldset { display: flex; flex-direction: column; gap: var(--s3); }
.filters .foot {
  display: flex; flex-direction: column; gap: var(--s4); align-items: flex-start;
  padding-top: var(--s4); border-top: 1px solid var(--border-default);
}

.toolbar {
  display: flex; flex-direction: column; gap: var(--s3);
  padding-bottom: var(--s4); border-bottom: 1px solid var(--border-default);
}
.toolbar .count { font-family: var(--font-ui); font-size: 14px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.toolbar .count b { color: var(--text-strong); }
.toolbar .sort { display: flex; align-items: center; gap: var(--s3); }
.toolbar .sort .select { min-width: 0; }
@media (min-width: 600px) {
  .toolbar { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--s4); }
  .toolbar .sort .select { width: 220px; }
}

.results { display: flex; flex-direction: column; gap: var(--s6); }
.empty { text-align: left; }
.empty b { display: block; font-family: var(--font-ui); font-weight: 600; color: var(--text-strong); margin-bottom: var(--s2); }
.empty span { font-size: 14px; color: var(--text-muted); }

/* ══════════════════════════════════════════ 12 · FICHE VÉHICULE ══════════ */

.back { display: inline-flex; align-items: center; gap: var(--s1); padding-block: var(--s4); font-family: var(--font-ui); font-size: 13px; color: var(--text-muted); text-decoration: none; }
.back:hover { color: var(--text-strong); }

.vehicle { display: grid; grid-template-columns: 1fr; gap: var(--s8); align-items: start; }
@media (min-width: 1140px) { .vehicle { grid-template-columns: 1fr 340px; gap: var(--s10); } }

.vehicle-head { display: flex; flex-direction: column; gap: var(--s3); }
.vehicle-head .version { font-size: 17px; color: var(--text-muted); }

/* Galerie : défilement horizontal avec accroche sur mobile (geste naturel),
   visuel principal + vignettes à partir de 600px. */
.gallery { display: flex; flex-direction: column; gap: var(--s3); }
.gallery-main { position: relative; }
.gallery-counter {
  position: absolute; bottom: var(--s3); left: var(--s3);
  background: var(--surface-inverse); color: var(--white);
  font-family: var(--font-ui); font-size: 11px; padding: 4px var(--s2);
  font-variant-numeric: tabular-nums;
}
.gallery-nav { position: absolute; bottom: var(--s3); right: var(--s3); display: flex; gap: var(--s2); }

.gallery-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%;
  gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > * { scroll-snap-align: start; }
@media (min-width: 600px) {
  /* Le nombre de photos varie par véhicule (4 à 10, selon l'annonce source).
     auto-fit (pas auto-fill) : avec peu de vignettes, auto-fill réserverait
     quand même des colonnes vides et laisserait un trou à droite — auto-fit
     les effondre à 0 et laisse le 1fr des vignettes existantes remplir la
     largeur. */
  .gallery-track { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); overflow: visible; }
}
.thumb { padding: 0; background: none; border: 1px solid var(--border-default); cursor: pointer; display: block; }
.thumb[aria-current="true"] { border-color: var(--ink-900); }
.thumb .photo { border: none; }

.tabs { display: flex; gap: var(--s5); overflow-x: auto; border-bottom: 1px solid var(--border-default); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; background: none; border: none; cursor: pointer;
  padding: var(--s3) 0; margin-bottom: -1px;
  font-family: var(--font-ui); font-size: 15px; font-weight: 500;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.tabs button[aria-selected="true"] { color: var(--text-strong); font-weight: 600; border-bottom-color: var(--rust-500); }
.tabpanel { padding-top: var(--s6); }
.tabpanel[hidden] { display: none; }

/* Grille de caractéristiques : 1 colonne mobile → 2 → 3. */
.specs { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border-default); }
@media (min-width: 600px) { .specs { grid-template-columns: repeat(2, 1fr); column-gap: var(--s6); } }
@media (min-width: 900px) { .specs { grid-template-columns: repeat(3, 1fr); } }
.specs div {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4);
  padding: var(--s3) 0; border-bottom: 1px solid var(--border-default);
}
.specs dt { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); }
.specs dd { margin: 0; font-family: var(--font-ui); font-size: 15px; font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; text-align: right; }

.equip { display: grid; grid-template-columns: 1fr; gap: 0 var(--s6); list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .equip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .equip { grid-template-columns: repeat(3, 1fr); } }
.equip li { display: flex; gap: var(--s2); align-items: center; padding: var(--s2) 0; border-bottom: 1px solid var(--border-subtle); font-size: 14px; color: var(--text-body); }
.equip svg { color: var(--green-600); }

.history { display: flex; flex-direction: column; }
.history div {
  display: grid; grid-template-columns: 1fr; gap: var(--s1);
  padding: var(--s4) 0; border-bottom: 1px solid var(--border-default);
}
@media (min-width: 600px) { .history div { grid-template-columns: 110px 1fr; gap: var(--s6); } }
.history time { font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.history b { display: block; font-family: var(--font-ui); font-size: 15px; font-weight: 600; color: var(--text-strong); }
.history p { font-size: 14px; color: var(--text-muted); }

/* Panneau de prix. Sur mobile il est dans le flux, en haut, juste après le
   titre ; à partir de 1140px il devient la colonne de droite, collante. */
.pricebox { display: flex; flex-direction: column; gap: var(--s5); }
.pricebox .amount { display: flex; flex-direction: column; gap: var(--s1); }
.pricebox .amount b {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 8vw, 40px); color: var(--text-strong);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.pricebox .amount span { font-size: 14px; color: var(--text-muted); }
.pricebox .actions { display: flex; flex-direction: column; gap: var(--s3); }
.pricebox .reassure { padding-top: var(--s4); border-top: 1px solid var(--border-default); }
@media (min-width: 1140px) { .pricebox-wrap { position: sticky; top: calc(var(--header-h) + 34px + var(--s5)); } }

/* Barre d'action basse, mobile uniquement. Le prix et le CTA restent atteignables
   pendant toute la lecture de la fiche, sans remonter. */
.pricebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--shell-pad);
  padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom, 0px));
  background: var(--surface-card); border-top: 1px solid var(--border-default);
  box-shadow: 0 -1px 12px rgba(16, 17, 18, .07);
}
.pricebar .p { display: flex; flex-direction: column; line-height: 1.1; }
.pricebar .p b { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.pricebar .p span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--tracking-caps); font-family: var(--font-ui); font-weight: 600; }
.pricebar .btn { margin-left: auto; }
@media (min-width: 1140px) { .pricebar { display: none; } }
/* Réserve d'espace pour que la barre ne masque pas la fin de la page. */
body.has-pricebar { padding-bottom: 76px; }
@media (min-width: 1140px) { body.has-pricebar { padding-bottom: 0; } }

/* ══════════════════════════════════════════════════ 13 · ATELIER ═════════ */

.service-card { display: flex; flex-direction: column; gap: var(--s3); height: 100%; }
.service-card .foot {
  margin-top: auto; padding-top: var(--s4);
  border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap;
}
.service-card .price { font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; }

.tarifs { display: grid; grid-template-columns: 1fr; gap: var(--s8); align-items: start; }
@media (min-width: 900px) { .tarifs { grid-template-columns: 1.4fr 1fr; gap: var(--s10); } }
.tarif-list { border-top: 1px solid var(--border-default); }
.tarif-list div {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) 0; border-bottom: 1px solid var(--border-default);
}
.tarif-list b { display: block; font-family: var(--font-ui); font-size: 16px; font-weight: 600; color: var(--text-strong); }
.tarif-list span { font-size: 14px; color: var(--text-muted); }
.tarif-list .p { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ══════════════════════════════════════ 14 · CONTACT / REPRISE ═══════════ */

.two-col { display: grid; grid-template-columns: 1fr; gap: var(--s6); align-items: start; padding-top: var(--s8); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 340px; gap: var(--s10); padding-top: var(--s12); } }
@media (min-width: 1140px) { .two-col { grid-template-columns: 1fr 380px; } }

.info-line { display: flex; gap: var(--s3); align-items: flex-start; font-size: 15px; color: var(--text-body); }
.info-line svg { margin-top: 3px; color: var(--text-muted); }
.info-tel { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--text-strong); font-variant-numeric: tabular-nums; }

.hours { display: flex; flex-direction: column; gap: var(--s3); padding-top: var(--s4); border-top: 1px solid var(--border-default); }
.hours div { display: flex; justify-content: space-between; gap: var(--s4); font-size: 14px; }
.hours dt { font-family: var(--font-ui); font-weight: 600; color: var(--text-strong); }
.hours dd { margin: 0; color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; }

/* État de confirmation affiché à la place du formulaire, après envoi simulé. */
.sent { display: none; flex-direction: column; gap: var(--s4); align-items: flex-start; text-align: left; }
.sent .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--green-100); color: var(--green-600);
}
.is-sent .sent { display: flex; }
.is-sent .form { display: none; }

/* ══════════════════════════════════ 15 · RÉSERVATION (démonstration) ═════ */

/* Parcours simulé en trois écrans. Rien n'est envoyé, rien n'est encaissé,
   rien n'est stocké. Les champs de carte sont volontairement inertes
   (readonly + tabindex -1 + aria-hidden) : on ne construit pas un formulaire
   de paiement crédible, même pour une démo. */
.resa { position: fixed; inset: 0; z-index: 80; display: flex; }
.resa[hidden] { display: none; }
.resa-scrim { position: absolute; inset: 0; background: var(--scrim); }
.resa-panel {
  position: relative; z-index: 1;
  width: 100%; max-height: 100%; margin-top: auto;
  background: var(--surface-card);
  display: flex; flex-direction: column;
  animation: sheet-up var(--slow) var(--ease);
  overflow: hidden;
}
@keyframes sheet-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 600px) {
  .resa { align-items: center; justify-content: center; padding: var(--s6); }
  .resa-panel { margin: 0; max-width: 560px; border: 1px solid var(--border-default); border-radius: var(--radius); box-shadow: var(--shadow-dialog); }
}

.resa-head {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4) var(--s5); border-bottom: 1px solid var(--border-default);
}
.resa-head h2 { font-size: 18px; }
.resa-head .iconbtn { margin-left: auto; }
.resa-body { padding: var(--s5); overflow-y: auto; display: flex; flex-direction: column; gap: var(--s5); }
.resa-foot {
  display: flex; flex-direction: column-reverse; gap: var(--s3);
  padding: var(--s4) var(--s5); border-top: 1px solid var(--border-default);
  background: var(--surface-card);
}
@media (min-width: 600px) { .resa-foot { flex-direction: row; justify-content: flex-end; } }

.resa-steps { display: flex; gap: var(--s2); padding: var(--s3) var(--s5) 0; }
.resa-steps span { flex: 1; height: 3px; background: var(--border-default); border-radius: 2px; }
.resa-steps span[data-on] { background: var(--rust-500); }

.resa-step[hidden] { display: none; }

.recap { display: flex; gap: var(--s3); align-items: center; padding: var(--s3); background: var(--surface-sunken); border-radius: var(--radius); }
.recap .photo { width: 84px; flex: none; }
.recap b { display: block; font-family: var(--font-ui); font-size: 15px; font-weight: 600; color: var(--text-strong); }
.recap span { font-size: 13px; color: var(--text-muted); }

.pay-line { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--border-default); font-size: 15px; }
.pay-line:last-of-type { border-bottom: none; }
.pay-line b { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--text-strong); font-variant-numeric: tabular-nums; }

/* Faux champs de carte : grisés, non focusables, non saisissables. */
.fake-card { display: grid; grid-template-columns: 1fr; gap: var(--s3); opacity: .55; pointer-events: none; user-select: none; }
.fake-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.fake-field {
  min-height: 44px; display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3); background: var(--paper-alt);
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  font-family: var(--font-ui); font-size: 15px; color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.resa-done { display: flex; flex-direction: column; gap: var(--s4); align-items: flex-start; }
.resa-done .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--green-100); color: var(--green-600);
}

/* ═════════════════════════════════ 16 · DIALOGUE + NOTIFICATION ══════════ */

.dialog { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: var(--s5); }
.dialog[hidden] { display: none; }
.dialog-scrim { position: absolute; inset: 0; background: var(--scrim); }
.dialog-panel {
  position: relative; z-index: 1; width: 100%; max-width: 400px;
  background: var(--surface-card); border-radius: var(--radius);
  box-shadow: var(--shadow-dialog);
  display: flex; flex-direction: column;
  animation: sheet-up var(--slow) var(--ease);
}
.dialog-panel .body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.dialog-panel .body .big { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.dialog-panel .foot { display: flex; gap: var(--s3); padding: var(--s4) var(--s5); border-top: 1px solid var(--border-default); justify-content: flex-end; }

.toast {
  position: fixed; left: var(--s4); right: var(--s4); bottom: var(--s4); z-index: 90;
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s4); background: var(--surface-card);
  border: 1px solid var(--border-default); border-left: 3px solid var(--green-600);
  border-radius: var(--radius); box-shadow: var(--shadow-overlay);
  animation: sheet-up var(--base) var(--ease);
}
.toast[hidden] { display: none; }
.toast b { display: block; font-family: var(--font-ui); font-size: 15px; font-weight: 600; color: var(--text-strong); }
.toast p { font-size: 14px; color: var(--text-muted); }
.toast svg { color: var(--green-600); margin-top: 2px; }
.toast .iconbtn { margin-left: auto; width: 28px; height: 28px; border: none; background: none; }
@media (min-width: 600px) { .toast { left: auto; right: var(--s6); bottom: var(--s6); max-width: 380px; } }
/* Au-dessus de la barre de prix mobile, sinon elle la recouvre. */
body.has-pricebar .toast { bottom: 84px; }
@media (min-width: 1140px) { body.has-pricebar .toast { bottom: var(--s6); } }

/* ═══════════════════════════════ 17 · UTILITAIRES + IMPRESSION ═══════════ */

.muted { color: var(--text-muted); }
.small { font-size: 14px; }
.xsmall { font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.stack--sm { gap: var(--s2); }
.stack--lg { gap: var(--s6); }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.start { align-items: flex-start; }
.mt-auto { margin-top: auto; }
.measure { max-width: 62ch; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
body.is-locked { overflow: hidden; }

/* Le système n'anime que la couleur, l'opacité et 1px de translation. Ici on
   coupe même ça, et le défilement doux, pour qui le demande. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .pricebar, .resa, .dialog, .toast, .filters-bar, .gallery-nav { display: none !important; }
  body { padding-bottom: 0; }
  .card, .vcard { break-inside: avoid; }
}
