/* ============================================================
   Auto Plus 01 — base : tokens, reset, typographie, composants
   partagés (header, footer, boutons, cartes véhicule, formulaires)
   ============================================================ */

/* ---------- 0. Polices (hébergées sur le site, sous-ensemble latin, variables) ----------
   Archivo : graisse 400 à 900, chasse 100 à 125 %. Manrope : graisse 400 à 800.
   Préchargées dans le <head> (partials/head.html). */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Design tokens ---------- */
:root {
  --navy: #0B1220;          /* fond principal */
  --panel: #111C30;         /* cartes, panneaux */
  --panel-alt: #172540;     /* zone photo des cartes */
  --panel-deep: #0E1729;    /* sections alternées */
  --spotlight: #1E3F7A;     /* halos radiaux */
  --border: #1B2A45;
  --border-strong: #24334F;
  --border-hover: #35507F;
  --line: #16233A;          /* séparateurs header / footer */

  --text: #F4F6FA;
  --text-dim: #A9B4C8;
  --text-muted: #7B8CB0;
  --text-faint: #6F7E9B;

  --accent: #D6321F;        /* rouge Auto Plus (alternatives : #1E5EFF, #E8A317) */
  --accent-soft: #FF6B5B;   /* rouge clair : liens, icônes, eyebrows */
  --accent-tint: #FFE1DD;

  --chrome: linear-gradient(135deg, #FFFFFF, #D9E0EC 35%, #8E9BB5 50%, #C9D2E3 62%, #F4F6FA);

  /* Univers atelier : papier du bon de reprise, lumière froide des néons */
  --paper: #EEF2F8;
  --paper-ink: #0B1220;
  --paper-dim: #3A4B6B;
  --paper-faint: #5B6B8A;
  --paper-line: #C3CCDD;
  --light: 226, 236, 255;   /* r, g, b : à utiliser dans rgba(var(--light), a) */

  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-card: 18px;
  --radius-panel: 22px;
  --radius-input: 12px;
  --radius-pill: 999px;

  --header-h: 88px;
  --gutter: clamp(16px, 5.5vw, 80px);
  --container: 1280px;

  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.35);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 1100px) {
  :root { --header-h: 64px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
}

/* ---------- 2. Reset et base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.is-locked { overflow: hidden; }
main { flex: 1 0 auto; }
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-soft); }
button { font: inherit; color: inherit; }
a, button, .chip, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 4px; }
main[tabindex="-1"]:focus-visible { outline: 0; }
::selection { background: var(--accent); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 200;
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--accent); color: #fff; font-weight: 800;
  transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus, .skip-link:hover { transform: none; color: #fff; }

/* Icônes SVG (sprite) : le sprite lui-même ne prend aucune place (sans style en ligne, interdit par la CSP) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Rouge de l'écusson : suit --accent (le fill du sprite sert de repli) */
.ap-accent { fill: var(--accent, #D6321F); }
.i {
  width: 1em; height: 1em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.i--bold { stroke-width: 2.4; }
.i--thin { stroke-width: 1.8; }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: 96px; }
.section--tight { padding-block: 64px; }
.section--deep { background: var(--panel-deep); }
.section--top-line { border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .section { padding-block: 48px; }
  .section--tight { padding-block: 40px; }
}
@media (max-width: 640px) {
  .section { padding-block: 40px; }
}

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
}
.section-head__text { display: flex; flex-direction: column; gap: 10px; }
.section-head__aside { max-width: 420px; font-size: 15px; line-height: 1.5; color: var(--text-dim); }
@media (max-width: 860px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-head--keep-row { flex-direction: row; align-items: flex-end; }
}

/* ---------- 4. Typographie ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display--xl { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.02; }
.display--lg { font-size: clamp(30px, 3.2vw, 44px); }
.display--md { font-size: clamp(26px, 2.9vw, 40px); letter-spacing: -0.015em; }
.display--sm { font-size: clamp(24px, 2.3vw, 32px); letter-spacing: -0.01em; }
.heading {
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 800;
  line-height: 1.15;
}
.heading--lg { font-size: 24px; }
.heading--md { font-size: 22px; }
.heading--sm { font-size: 20px; }
.heading--xs { font-size: 18px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-soft);
}
.eyebrow--bar::before {
  content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--accent);
}
.eyebrow--dim { color: var(--text-dim); letter-spacing: 0.16em; font-size: 12px; }
@media (max-width: 640px) {
  .eyebrow { font-size: 12px; letter-spacing: 0.16em; gap: 8px; }
  .eyebrow--bar::before { width: 22px; }
}
.lead { font-size: 18px; line-height: 1.55; color: var(--text-dim); }
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.price {
  font-family: var(--font-display); font-stretch: 110%; font-weight: 900; line-height: 1;
}
.is-placeholder { border-bottom: 1px dashed rgba(255, 107, 91, 0.55); cursor: help; }

/* ---------- 5. Boutons, liens, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 15px; font-weight: 700; line-height: 1;
  color: var(--text); background: transparent; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: filter .2s, border-color .2s, background-color .2s, color .2s, transform .2s;
}
.btn .i { font-size: 18px; }
.btn--primary { background: var(--accent); color: #fff; font-weight: 800; }
.btn--primary:hover { background: #BF2A19; color: #fff; }
.btn:active:not(:disabled):not([aria-disabled="true"]) { transform: scale(0.97); }
.btn--ghost { border-color: var(--border-hover); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--light { background: var(--text); color: var(--navy); font-weight: 800; }
.btn--light:hover { color: var(--navy); filter: brightness(0.95); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--md { min-height: 46px; padding: 0 22px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; filter: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap;
}
.link-arrow .i { font-size: 18px; stroke-width: 2.2; transition: transform .2s; }
.u-desktop { display: inline; }
.u-mobile { display: none; }
@media (max-width: 640px) {
  .u-desktop { display: none; }
  .u-mobile { display: inline; }
  .link-arrow { font-size: 14px; }
  .link-arrow .i { font-size: 16px; }
}
.link-arrow:hover .i { transform: translateX(3px); }
.link-accent { color: var(--accent-soft); font-weight: 700; }
.link-accent:hover { color: var(--text); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  background: transparent; color: var(--text);
  font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--text); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--text); color: var(--navy); border-color: var(--text); }
@media (max-width: 1100px) {
  .chip { min-height: 44px; }
}

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--panel); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.tag--check { min-height: 40px; background: transparent; border-color: var(--border-strong); font-weight: 600; font-size: 14px; white-space: normal; }
.tag--check .i { color: var(--accent-soft); font-size: 14px; stroke-width: 2.4; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: var(--radius-pill);
  background: rgba(11, 18, 32, 0.8); color: var(--text);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.badge--accent { background: var(--accent); color: #fff; font-weight: 800; padding: 6px 12px; }
/* Véhicule réservé (portail de gestion) : ambre, pour ne pas se confondre avec Nouveauté */
.card-vehicle__reserve, .tag--reserve { background: #F5D58A; border-color: #F5D58A; color: #2E2200; font-weight: 800; }
.card-vehicle__reserve { padding: 6px 12px; }
.badge--dim { color: var(--text-dim); letter-spacing: 0; text-transform: none; font-size: 11px; }
.demo-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px dashed var(--border-hover); border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); white-space: nowrap;
}
.badge-01 {
  display: inline-flex; align-items: center;
  background: var(--accent); color: #fff; border-radius: 5px; padding: 3px 6px;
  font-size: max(11px, 0.68em); font-stretch: 100%; letter-spacing: 0.08em; line-height: 1;
}

.step-num {
  width: 36px; height: 36px; border-radius: var(--radius-pill); flex-shrink: 0;
  background: var(--panel); border: 1px solid var(--border-hover);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 14px;
}

.vdivider { width: 1px; height: 28px; background: var(--border-strong); flex-shrink: 0; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__ecusson { width: 40px; height: 40px; flex-shrink: 0; }
.brand__word {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-stretch: 110%; font-weight: 800;
  font-size: 19px; line-height: 1; letter-spacing: 0.12em;
}
.nav { display: flex; gap: 32px; font-size: 15px; font-weight: 600; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-soft); }
.site-header__actions { display: flex; align-items: center; gap: 20px; }
.phone-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap;
}
.phone-link .i { font-size: 18px; }
.phone-btn, .burger {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-pill);
  align-items: center; justify-content: center; border: 0; cursor: pointer;
}
.phone-btn { background: var(--accent); color: #fff; font-size: 18px; }
.phone-btn:hover { color: #fff; background: #BF2A19; }
.burger { background: transparent; color: var(--text); font-size: 24px; }
.mobile-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
  background: var(--navy); padding: 24px var(--gutter) 40px; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-nav a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 0 4px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-stretch: 110%; font-weight: 800; font-size: 20px;
}
.mobile-nav a[aria-current="page"] { color: var(--accent-soft); }
.mobile-nav__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .site-header__actions { gap: 12px; }
  .site-header__inner { gap: 16px; }
}
@media (max-width: 1100px) {
  .brand__ecusson { width: 34px; height: 34px; }
  .brand__word { font-size: 16px; gap: 6px; }
  .brand { gap: 8px; }
  .nav, .site-header__actions .phone-link, .site-header__actions .btn { display: none; }
  .site-header__actions { gap: 6px; }
  .phone-btn, .burger { display: inline-flex; }
}
@media (max-width: 860px) {
  /* Pas de flou sur petits écrans : coût GPU permanent au défilement pour un effet peu visible */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 18, 32, 0.97); }
}

/* ---------- 7. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: auto; }
.site-footer__inner { padding-block: 48px 40px; display: flex; flex-direction: column; gap: 40px; }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; }
.site-footer__brand p { font-size: 13px; color: var(--text-dim); }
/* Nom, adresse, horaires, téléphone sur toutes les pages (référencement local) : une ligne par
   information, icône à gauche ; numéro en cible tactile de 44 px */
.site-footer__nap { font-style: normal; display: grid; gap: 10px; margin-top: 8px; }
.site-footer__brand .site-footer__nap-line { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.55; color: var(--text-dim); }
.site-footer__nap .i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent-soft); }
.site-footer__nap-tel { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; justify-self: start; color: var(--text); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.site-footer__nap-tel .i { margin-top: 0; }
.site-footer__nap-tel:hover { color: var(--accent-soft); }
.site-footer__nav { display: flex; gap: 0 40px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.site-footer__nav a, .site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
}
.site-footer__legal { display: flex; gap: 0 24px; flex-wrap: wrap; }
.site-footer__legal a { color: var(--text-dim); }
.site-footer__legal a:hover { color: var(--accent-soft); }
@media (max-width: 860px) {
  .site-footer__inner { padding-block: 24px 32px; gap: 20px; }
  .site-footer__top { flex-direction: column; gap: 16px; }
  .site-footer__nav { gap: 4px 18px; font-size: 13px; }
  .site-footer__bottom { flex-direction: column; gap: 4px; font-size: 12px; }
  .site-footer__legal { gap: 4px 18px; }
}

/* ---------- 8. Carte véhicule ---------- */
.card-vehicle {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card);
  overflow: hidden; color: var(--text);
  transition: transform .2s ease, border-color .2s ease;
}
.card-vehicle:hover { border-color: var(--border-hover); transform: translateY(-3px); color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .card-vehicle:hover { transform: none; }
}
.card-vehicle__media {
  position: relative; height: 210px; background: var(--panel-alt);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-vehicle__spot {
  position: absolute; left: 50%; top: 60%; width: 320px; height: 200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(30, 63, 122, 0.7), rgba(30, 63, 122, 0) 65%);
}
.card-vehicle__placeholder { position: relative; width: 180px; height: 60px; }
/* Carte sans photo : rideau baissé en attendant la photo */
.card-vehicle__media:has(> .card-vehicle__placeholder) {
  background-image: repeating-linear-gradient(180deg,
    rgba(var(--light), 0.05) 0, rgba(var(--light), 0.05) 1px,
    rgba(4, 8, 15, 0) 1px, rgba(4, 8, 15, 0) 25px,
    rgba(4, 8, 15, 0.35) 25px, rgba(4, 8, 15, 0.35) 28px);
}
.card-vehicle__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Centrée dans sa <picture> (bloc pleine largeur), sur l'ombre au sol et la barre rouge */
.card-vehicle__cutout {
  position: relative; display: block; margin-inline: auto; width: 78%; max-height: 82%; object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.55));
}
/* La barre rouge du logo au sol, sous une voiture détourée (comme en haut de l'accueil) */
.card-vehicle__redline {
  position: absolute; left: 20%; right: 20%; bottom: 13%; height: 2px; border-radius: 2px;
  background: var(--accent);
}
.card-vehicle__ground {
  position: absolute; left: 18%; right: 18%; bottom: 14px; height: 16px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0) 78%);
  filter: blur(6px);
}
.card-vehicle__fuel { position: absolute; top: 12px; left: 12px; }
.card-vehicle__new { position: absolute; top: 12px; right: 12px; }
.card-vehicle__note {
  position: absolute; bottom: 12px; left: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
}
.card-vehicle__count { position: absolute; bottom: 12px; right: 12px; padding: 4px 8px; }
.card-vehicle__count .i { font-size: 12px; }
.card-vehicle__body { flex: 1; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.card-vehicle__brand {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim);
}
.card-vehicle__model {
  font-family: var(--font-display); font-stretch: 110%; font-weight: 800; font-size: 20px; line-height: 1.15;
}
.card-vehicle__meta { font-size: 13px; color: var(--text-dim); }
.card-vehicle__foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 8px; gap: 12px; }
.card-vehicle__price { display: flex; flex-direction: column; gap: 2px; }
.card-vehicle__price small { font-size: 12px; color: var(--text-dim); }
.card-vehicle__price strong { font-family: var(--font-display); font-stretch: 110%; font-weight: 900; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.card-vehicle--compact .card-vehicle__media { height: 170px; }
.card-vehicle--compact .card-vehicle__body { padding: 16px 18px 18px; gap: 6px; }
.card-vehicle--compact .card-vehicle__model { font-size: 18px; }
.card-vehicle--compact .card-vehicle__price strong { font-size: 24px; }

/* Grilles de cartes */
.grid-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.grid-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1360px) and (min-width: 641px) {
  /* Cartes trop étroites en 4 colonnes (le pied prix + bouton demande 280 px) */
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .cat-layout .grid-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .grid-cards, .grid-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 640px) {
  .grid-cards, .grid-cards--3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* Variante "défilement horizontal" (accueil mobile) */
  .grid-cards--scroll {
    /* position: relative : les éléments absolus des cartes (textes .sr-only) restent
       dans la rangée défilante au lieu d'élargir la page */
    position: relative;
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    padding-bottom: 8px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter);
    scrollbar-width: none;
  }
  .grid-cards--scroll::-webkit-scrollbar { display: none; }
  .grid-cards--scroll > * { flex: 0 0 270px; scroll-snap-align: start; }
  .grid-cards--scroll .card-vehicle__media { height: 170px; }
  .grid-cards--scroll .card-vehicle__body { padding: 16px 18px 18px; gap: 6px; }
  .grid-cards--scroll .card-vehicle__brand { font-size: 11px; }
  .grid-cards--scroll .card-vehicle__model { font-size: 18px; }
  .grid-cards--scroll .card-vehicle__price strong { font-size: 24px; }
  .grid-cards--scroll .card-vehicle__price small { display: none; }
  .grid-cards--scroll .card-vehicle__foot { align-items: center; padding-top: 6px; }
  .grid-cards--scroll .btn--sm { padding: 0 14px; }
}

/* Mise en scène d'une photo détourée (ombre au sol + reflet) */
.car-stage { position: relative; }
.car-stage__ground {
  position: absolute; left: 14%; right: 14%; bottom: 8.5%; height: 8%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.32) 55%, rgba(0, 0, 0, 0) 78%);
  filter: blur(10px);
}
.car-stage__img {
  position: relative; width: 100%; height: auto;
  filter: drop-shadow(0 26px 24px rgba(0, 0, 0, 0.55)) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4));
}
.car-stage__reflection {
  position: absolute; left: 0; right: 0; top: 100%; height: 40%; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0) 68%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0) 68%);
}
.car-stage__reflection img { width: 100%; height: auto; transform: scaleY(-1); opacity: 0.5; }

/* Halo radial générique */
.spot {
  position: absolute; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(30, 63, 122, 0.8), rgba(30, 63, 122, 0.3) 40%, rgba(11, 18, 32, 0) 68%);
}

/* ---------- 9. Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 13px; font-weight: 700; color: var(--text-dim); }
.field__hint { font-size: 12px; color: var(--text-muted); }
.field__error { font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--accent-soft); }
.input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-input);
  background: var(--navy); color: var(--text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.3;
  transition: border-color .2s;
}
.input::placeholder { color: var(--text-faint); }
.input:hover { border-color: var(--border-hover); }
.input:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 1px; border-color: var(--border-hover); }
.input[aria-invalid="true"] { border-color: var(--accent); }
.input--sm { min-height: 42px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.input--select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; font-weight: 600;
  background-color: var(--panel);
  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='%23A9B4C8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
textarea.input { min-height: 120px; padding: 12px 14px; resize: vertical; }
.checkbox { display: flex; align-items: center; gap: 10px; min-height: 28px; font-size: 14px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-note { font-size: 12px; color: var(--text-muted); text-align: center; }
.form-status { font-size: 14px; line-height: 1.5; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong); }
.form-status--ok { border-color: rgba(76, 175, 120, 0.6); color: #B7E5C6; }
.form-status--error { border-color: rgba(214, 50, 31, 0.7); color: var(--accent-tint); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .input--sm { min-height: 44px; }
}

/* ---------- 10. Modale, divers ---------- */
.modal {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 16px;
  background: rgba(5, 9, 18, 0.72);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative; width: min(540px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow: auto; overscroll-behavior: contain;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-panel);
  padding: 28px;
}
.modal__content { display: flex; flex-direction: column; gap: 16px; }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px;
  border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-dim);
  display: grid; place-items: center; cursor: pointer; font-size: 22px;
}
.modal__close:hover { color: var(--text); background: var(--border); }
.modal__title { padding-right: 44px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); flex-wrap: wrap; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 24px; color: var(--text-dim); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current="page"] { color: var(--text); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.pagination__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  background: transparent; color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer;
}
.pagination__btn:hover { border-color: var(--text); }
.pagination__btn.is-current { background: var(--text); color: var(--navy); border-color: var(--text); font-weight: 800; }
.pagination__btn:disabled { opacity: .4; cursor: not-allowed; }
.pagination__btn .i { font-size: 16px; stroke-width: 2.2; }

.empty {
  padding: 48px 24px; border: 1px dashed var(--border-hover); border-radius: var(--radius-card);
  text-align: center; color: var(--text-dim); font-size: 15px; line-height: 1.6;
}

.spec {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.spec__label { font-size: 12px; color: var(--text-dim); }
.spec__value { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }

.check-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.check-list li { display: flex; align-items: center; gap: 10px; }
.check-list .i { color: var(--accent-soft); font-size: 16px; stroke-width: 2.4; }

/* Plan d'accès du bloc contact : vrai plan du quartier (OpenStreetMap, scripts/plan-acces.mjs), dessiné
   aux couleurs du site. En haut la vue (dessin, épingle et enseigne en HTML, à taille fixe quel que
   soit le zoom du dessin ; le garage est au centre du dessin, en « slice »), en bas l'adresse et les
   itinéraires : l'épingle n'est jamais cachée. */
.plan {
  --plan-eau: #15304F; --plan-bati: #172338; --plan-rue-5: #1C2940; --plan-rue-4: #24334D; --plan-rue-3: #2C3D5C;
  --plan-rue-2: #3A4D72; --plan-rue-1: #4A5E86; --plan-fer: #7B8CB0;
  display: grid; grid-template-rows: minmax(220px, 1fr) auto; isolation: isolate;
  border-radius: var(--radius-panel); overflow: hidden; border: 1px solid var(--border); background: var(--panel);
}
.plan__vue { position: relative; min-height: 220px; overflow: hidden; }
.plan__dessin { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plan__fond { fill: var(--panel); }
.plan__eau { fill: var(--plan-eau); }
.plan__bati { fill: var(--plan-bati); }
.plan__route, .plan__fer { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.plan__route--5 { stroke: var(--plan-rue-5); stroke-width: 4; }
.plan__route--4 { stroke: var(--plan-rue-4); stroke-width: 7; }
.plan__route--3 { stroke: var(--plan-rue-3); stroke-width: 9; }
.plan__route--2 { stroke: var(--plan-rue-2); stroke-width: 12; }
.plan__route--1 { stroke: var(--plan-rue-1); stroke-width: 15; }
.plan__fer { stroke: var(--plan-fer); stroke-width: 3; stroke-dasharray: 14 10; stroke-linecap: butt; opacity: 0.6; }
.plan__gare circle { fill: var(--panel); stroke: var(--text-dim); stroke-width: 5; }
.plan__gare text, .plan__nom {
  font-family: var(--font-body); font-size: 30px; font-weight: 700; letter-spacing: 0.04em; fill: var(--text-dim);
  paint-order: stroke; stroke: var(--panel); stroke-width: 8px; stroke-linejoin: round;
}
.plan__nom { text-anchor: middle; dominant-baseline: middle; }
/* Épingle centrée sur le garage ; son enseigne au-dessus (la gare est juste au sud-ouest) */
.plan__repere { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); pointer-events: none; }
.plan__epingle {
  width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 22px; box-shadow: 0 0 0 8px rgba(214, 50, 31, 0.22), var(--shadow-card);
}
.plan__enseigne {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap;
  padding: 3px 10px; border-radius: var(--radius-pill); background: var(--navy); border: 1px solid var(--border-strong);
  font-family: var(--font-display); font-stretch: 110%; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text);
}
.plan__credit { position: absolute; right: 10px; bottom: 6px; z-index: 2; font-size: 10px; color: var(--text-faint); }
.plan__credit a { color: inherit; text-decoration: underline; }
.plan__info {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding: 14px 18px 16px; border-top: 1px solid var(--border-strong); background: var(--panel-deep);
}
.plan__texte { display: grid; gap: 4px; min-width: 0; }
.plan__titre { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-soft); }
.plan__adresse { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text); }
.plan__note { font-size: 12px; color: var(--text-dim); }
.plan__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.plan iframe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: no-preference) {
  .plan__epingle { animation: plan-pouls 2.4s var(--ease-out) infinite; }
  @keyframes plan-pouls {
    0%, 100% { box-shadow: 0 0 0 8px rgba(214, 50, 31, 0.22), var(--shadow-card); }
    50% { box-shadow: 0 0 0 14px rgba(214, 50, 31, 0.08), var(--shadow-card); }
  }
}
@media (max-width: 640px) {
  .plan { border-radius: 16px; }
  .plan__info { padding: 12px 14px 14px; }
  .plan__epingle { width: 36px; height: 36px; font-size: 18px; }
  /* Dessin plus petit : noms en plus gros (unités du plan), sinon illisibles */
  .plan__gare text, .plan__nom { font-size: 46px; stroke-width: 12px; }
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- 11. Impression ---------- */
@media print {
  :root {
    --navy: #fff; --panel: #fff; --panel-alt: #f3f4f6; --panel-deep: #fff;
    --text: #111; --text-dim: #444; --text-muted: #555; --text-faint: #666;
    --border: #ccc; --border-strong: #bbb; --border-hover: #999; --line: #ddd;
    --accent-soft: #B3261A;
  }
  html { color-scheme: light; }
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .mobile-nav, .skip-link, .intro-root, .intro-skip, .modal,
  .fiche-bar, .fiche-stage__nav, .fiche-thumbs, .btn, .chip, .pagination, .cat-aside, .ticket, .plan { display: none !important; }
  main { padding-top: 0; }
  .fiche-layout, .cat-layout { grid-template-columns: 1fr !important; }
  .fiche-aside { position: static !important; }
  a { color: inherit; }
}
