/* =========================================================
   Europ'Auto – feuille de style du site public
   ========================================================= */
:root {
  --ink: #0e1014;
  --ink-2: #171a21;
  --ink-3: #232730;
  --paper: #f4f4f2;
  --white: #ffffff;
  --line: #e4e4df;
  --line-2: #cfcfc8;
  --text: #1b1e25;
  --muted: #646a76;
  --muted-2: #8a8f99;
  --red: #d7262c;
  --red-2: #b91e24;
  --red-soft: #fdeeee;
  --green: #1f8a4c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(15, 17, 20, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 17, 20, 0.16);
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
abbr[title] { text-decoration: none; color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 0.8em; }
.eyebrow-light { color: #ff8a8e; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.accent { color: var(--red); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-lg { padding: 1em 1.7em; font-size: 1rem; }
.btn-sm { padding: 0.55em 1em; font-size: 0.85rem; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(215, 38, 44, 0.28); }
.btn-primary:hover { background: var(--red-2); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); background: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.5); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row-stack { flex-direction: column; }
.btn-row-stack .btn { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--font-display); font-weight: 700; color: var(--red); }
.link-arrow .icon { transition: transform 0.2s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.link-back { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; color: var(--muted); }
.link-back:hover { color: var(--ink); }

/* ---------- En-tête (V2) : pastille flottante « Dynamic Island » ---------- */
/* Le menu est une pastille en verre dépoli (fond sombre translucide + flou de ce qui passe dessous), posée en haut
   au centre, par-dessus le contenu (position: fixed). Comme la Dynamic Island de l'iPhone, elle épouse son contenu
   et change de forme avec un léger rebond :
   - en haut de l'accueil, le logo est déjà en grand dans le hero : la pastille est compacte (liens + téléphone) ;
   - dès que le logo du hero est passé dessous (main.js ajoute .show-logo), elle s'élargit et grandit pour
     accueillir le logo au centre.
   - dès qu'on fait défiler la page (.is-scrolled), elle se fait plus petite et plus discrète.
   Le numéro de téléphone n'est plus dans la pastille (Google l'affiche déjà, et il reste dans le pied de page,
   la page Contact et le menu mobile déplié).
   Astuce : la pastille a la largeur de son contenu (max-content). On n'anime que des tailles (logo, hauteur,
   liens) ; la pastille suit d'elle-même, sans calcul en JavaScript.
   --header-h = place maximale occupée depuis le haut de l'écran (marge + hauteur), utilisée par les pages
   pour ne rien cacher dessous (padding de la 1re section, éléments collants). */
:root {
  --pill-top: 14px; --pill-h: 54px; --header-h: calc(var(--pill-top) + var(--pill-h));
  --pill-h-compact: 48px;                           /* haut de l'accueil, sans logo */
  --pill-h-scrolled: 42px;                          /* pendant le défilement */
  --spring: cubic-bezier(0.34, 1.36, 0.64, 1);       /* dépasse un peu sa cible puis revient : effet ressort */
}
.site-header {
  --band: rgba(23, 26, 33, 0.94);   /* fond du menu mobile déplié */
  --pill-now: var(--pill-h);
  --logo-h: 38px; --logo-w: 103px;  /* largeur = hauteur × 1000 / 370 (proportions du logo blanc) */
  position: fixed; top: var(--pill-top); left: 0; right: 0; z-index: 50;
  color: #fff; pointer-events: none; /* seule la pastille capte les clics, pas la bande invisible autour */
}
.page-home .site-header:not(.show-logo):not(.is-scrolled) { --pill-now: var(--pill-h-compact); }
.site-header.is-scrolled { --pill-now: var(--pill-h-scrolled); --logo-h: 28px; --logo-w: 76px; }
.site-header .header-inner {
  pointer-events: auto;
  width: max-content; max-width: calc(100% - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center;
  min-height: var(--pill-now); padding: 0 5px; border-radius: 999px;
  background: rgba(23, 26, 33, 0.5); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  transition: min-height 0.5s var(--spring), background 0.25s;
}
.site-header.is-scrolled .header-inner { background: rgba(23, 26, 33, 0.78); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
/* Ordre dans la pastille : logo | liens (sur mobile : logo | menu) */
.site-header .logo { order: 1; }
.site-nav ul, .nav-toggle { order: 2; }
.site-header .nav-side { display: none; } /* téléphone retiré de la pastille sur ordinateur (il reste dans le menu mobile) */
.site-header .logo {
  flex: none; display: block; line-height: 0; overflow: hidden;
  width: var(--logo-w); margin: 0 10px 0 14px; opacity: 1; visibility: visible;
  transition: width 0.5s var(--spring), margin 0.5s var(--spring), opacity 0.3s ease 0.1s, visibility 0.5s;
}
.page-home .site-header:not(.show-logo) .logo { width: 0; margin: 0; opacity: 0; visibility: hidden; transition-delay: 0s; }
.site-header .logo img { display: block; height: var(--logo-h); width: var(--logo-w); max-width: none; transition: width 0.5s var(--spring), height 0.5s var(--spring); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink); }
.logo-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--red); color: #fff; font-size: 1.25rem; box-shadow: 0 6px 14px rgba(215, 38, 44, 0.3); }
.logo-text b { color: var(--red); font-weight: 800; }
.site-nav { display: contents; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav li a { display: inline-block; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: rgba(255, 255, 255, 0.75); white-space: nowrap; transition: color 0.2s, background 0.2s, padding 0.5s var(--spring), font-size 0.5s var(--spring); }
.site-header.is-scrolled .site-nav li a { padding: 6px 12px; font-size: 0.86rem; }
.site-nav li a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.site-nav li a.is-active { color: #fff; background: rgba(255, 255, 255, 0.14); }
.nav-side { display: flex; align-items: center; gap: 18px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta { padding: 0.6em 1.15em; white-space: nowrap; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 999px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .site-header .header-inner, .site-header .logo, .site-header .logo img, .site-nav li a { transition: none; }
}
/* Hors de l'accueil : la pastille est posée sur du blanc, son verre doit être opaque (sinon elle paraît grise),
   et la première section de la page commence sous elle (son fond remonte jusqu'en haut : pas de bande). */
body:not(.page-home) .header-inner { background: rgba(23, 26, 33, 0.9); }
body:not(.page-home) main > :first-child { padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px)); }

/* Menu replié : sous 1000px les liens ne tiennent plus dans la pastille.
   Menu à gauche, logo au centre, bouton « Appeler » à droite ; en haut de l'accueil, sans logo, la pastille
   n'est plus qu'une petite gélule ☰ ☎. Le menu s'ouvre en carte sous la pastille. */
@media (max-width: 1000px) {
  :root { --pill-top: 10px; --pill-h: 52px; --pill-h-compact: 48px; --pill-h-scrolled: 44px; }
  .site-header .header-inner { padding: 0 2px; }
  .site-header .logo { margin: 0 4px 0 14px; }
  .nav-toggle { display: flex; }
  .site-header.is-scrolled .nav-toggle { width: 40px; height: 40px; }
  .site-header .nav-side { display: flex; order: 3; } /* dans la carte du menu déplié : le bouton téléphone reste disponible */
  /* La pastille est étroite : la carte du menu est centrée sur elle mais prend toute la largeur de l'écran */
  .site-nav {
    display: flex; position: absolute; top: calc(100% + 8px); left: 50%; width: calc(100vw - 2 * var(--gutter)); z-index: 49;
    max-height: calc(100dvh - var(--header-h) - 24px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 16px; padding: 16px;
    background: var(--band); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    opacity: 0; visibility: hidden; transform: translate(-50%, -8px); transition: opacity 0.2s ease, transform 0.3s var(--spring), visibility 0.2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav li a, .site-header.is-scrolled .site-nav li a { display: block; padding: 14px 16px; font-size: 1.1rem; }
  .nav-side { flex-direction: column; align-items: stretch; gap: 16px; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .nav-cta { justify-content: center; padding: 13px 16px; font-size: 1.05rem; }
}
/* Petit écran : bouton d'appel réduit à l'icône (même largeur que le hamburger) pour que le logo reste centré */
@media (max-width: 1000px) {
  .header-call { width: 44px; height: 44px; padding: 0 !important; justify-content: center; }
  .header-call span { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 720px; }
.section-head h2 { margin-bottom: 0; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; }
.section-foot { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.section-foot p { margin: 0; max-width: 60ch; color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; overflow: clip; color: #fff; /* clip : coupe sans créer de zone de défilement (sinon les animations liées au défilement ne voient pas la page bouger) */
  background: radial-gradient(900px 500px at 85% -10%, rgba(215, 38, 44, 0.45), transparent 60%),
              radial-gradient(600px 400px at -10% 110%, rgba(215, 38, 44, 0.18), transparent 60%),
              linear-gradient(180deg, var(--ink-2), var(--ink));
  padding: clamp(40px, 6vw, 80px) 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); max-width: 20ch; }
.hero .lead { color: rgba(255, 255, 255, 0.78); }
.hero .btn-row { margin: 24px 0; }
.hero-card {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}
.hero-card-title { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; margin-bottom: 18px; }
.hero-card .btn { width: 100%; margin-top: 20px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}

/* Carrousel de vidéos verticales derrière le hero. Chaque vidéo prend toute la hauteur du hero au format 9:16,
   et au moins un quart de l'écran en largeur : une série de 4 couvre donc toujours la largeur, ce qui évite un trou
   à droite au moment où la boucle repart. La piste contient la série deux fois et recule d'une série (-50 %). */
.hero-reels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-reels-track { display: flex; height: 100%; width: max-content; animation: hero-reels 80s linear infinite; }
.hero-reel { flex: none; height: 100%; aspect-ratio: 9 / 16; min-width: 25vw; padding-right: 6px; }
.hero-reel video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ink-2); }
@keyframes hero-reels { to { transform: translateX(-50%); } }
/* Voile sombre par-dessus les vidéos : très opaque à gauche sous le titre, plus léger à droite, plus la lueur rouge du hero */
.hero-reels::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(215, 38, 44, 0.35), transparent 60%),
    linear-gradient(90deg, rgba(14, 16, 20, 0.95) 0%, rgba(14, 16, 20, 0.86) 45%, rgba(14, 16, 20, 0.62) 100%),
    linear-gradient(180deg, rgba(14, 16, 20, 0.45), transparent 25%, transparent 70%, rgba(14, 16, 20, 0.75));
}
.hero-has-reels::before { display: none; } /* le quadrillage ferait un effet de grille d'écran sur les vidéos */
@media (max-width: 900px) {
  /* Une seule colonne : le texte passe sur toute la largeur, le voile devient uniforme */
  .hero-reels::after { background: linear-gradient(180deg, rgba(14, 16, 20, 0.72), rgba(14, 16, 20, 0.82) 55%, rgba(14, 16, 20, 0.92)); }
}
/* ---------- V2 : « Qui sommes-nous ? » : photo à gauche, texte dans une carte rouge (accueil) ---------- */
/* Fond blanc. Deux colonnes de même hauteur : la photo remplit la sienne (object-fit: cover, cadrée sur l'enseigne),
   la carte rouge porte le texte en blanc. Sur mobile, la photo passe au-dessus de la carte. */
.about { background: #fff; scroll-margin-top: var(--header-h); }
.about-inner { display: grid; grid-template-columns: 5fr 7fr; gap: var(--grid-gap); align-items: stretch; }
.about-photo { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: 4% 60%; border-radius: var(--radius); }
.about-panel { background: var(--red); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; box-shadow: 0 18px 40px rgba(215, 38, 44, 0.22); }
.about-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 36px) 24px; }
.about-features li { display: flex; gap: 14px; align-items: flex-start; }
.about-icon { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.16); color: #fff; }
.about-icon .icon { width: 21px; height: 21px; }
.about-features h3 { color: #fff; font-size: 1.02rem; margin: 2px 0 5px; }
.about-features p { margin: 0; color: #fff; font-size: 0.92rem; line-height: 1.55; } /* blanc plein : 5:1 sur le rouge (85 % : 3,9:1, trop peu pour du texte courant) */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) { .about-features { grid-template-columns: 1fr; } }

/* ---------- V2 : hero centré autour du logo ---------- */
/* Texte présent pour Google et les lecteurs d'écran, mais invisible à l'écran */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Le hero occupe la majeure partie de l'écran et centre son contenu dans les deux sens */
.hero-centered { display: flex; align-items: center; min-height: clamp(540px, 76vh, 800px); }
.hero-center { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-logo { display: block; width: clamp(260px, 34vw, 540px); height: auto; margin-bottom: clamp(10px, 1.4vw, 18px); }
.hero-centered .eyebrow { margin-bottom: clamp(24px, 3vw, 36px); }
/* Recherche en une barre : marque, énergie, prix, bouton */
.hero-centered .hero-search-bar { width: min(900px, 100%); grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; gap: 12px; padding: 16px 18px 18px; text-align: left; }
.hero-centered .hero-search-bar .btn { width: auto; height: 44px; margin: 0; padding: 0 1.5em; }
/* Le bouton de recherche est l'action principale : rouge, sans halo (le halo rouge sur fond sombre fait néon) */
.hero-centered .hero-search-bar .btn-primary { box-shadow: none; }
/* Sous la recherche : deux liens discrets (toute la liste, dépôt-vente) */
.hero-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 22px 0 0; padding: 0; font-size: 0.95rem; }
.hero-links a { display: inline-block; padding: 6px 0; color: rgba(255, 255, 255, 0.9); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 5px; transition: color 0.2s, text-decoration-color 0.2s; }
.hero-links a:hover { color: #fff; text-decoration-color: #fff; }
/* Voile des vidéos : plus sombre au centre, derrière le logo et la recherche, plus léger sur les bords */
.hero-centered .hero-reels::after {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(215, 38, 44, 0.3), transparent 60%),
    radial-gradient(ellipse 50% 70% at 50% 48%, rgba(14, 16, 20, 0.95), rgba(14, 16, 20, 0.92) 45%, rgba(14, 16, 20, 0.6)),
    linear-gradient(180deg, rgba(14, 16, 20, 0.35), transparent 25%, transparent 70%, rgba(14, 16, 20, 0.7));
}
@media (max-width: 760px) {
  /* Petit écran : la marque sur toute la largeur, énergie et prix côte à côte, bouton en dessous */
  .hero-centered .hero-search-bar { grid-template-columns: 1fr 1fr; }
  .hero-centered .hero-search-bar label:first-of-type, .hero-centered .hero-search-bar .btn { grid-column: 1 / -1; }
  .hero-centered .hero-search-bar .btn { width: 100%; }
}

/* ---------- V2 : une section par écran ---------- */
/* Le hero remplit tout l'écran, bord à bord, sous la pastille flottante (svh = hauteur d'écran sur mobile,
   barre d'adresse affichée ; vh en secours). */
.page-home .hero-centered { min-height: 100vh; min-height: 100svh; padding-block: calc(var(--header-h) + 24px) clamp(40px, 6vh, 72px); }
@media (max-width: 900px) {
  /* Mobile : voile plus opaque en haut, où la légende incrustée des vidéos passerait sous le logo */
  .page-home .hero-reels::after { background: linear-gradient(180deg, rgba(14, 16, 20, 0.93), rgba(14, 16, 20, 0.9) 40%, rgba(14, 16, 20, 0.78) 70%, rgba(14, 16, 20, 0.9)); }
}

@media (prefers-reduced-motion: reduce) { .hero-reels-track { animation: none; } }
.hero-reels.is-still .hero-reels-track { animation: none; }

/* ---------- Liste de contact ---------- */
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.contact-list .icon { width: 22px; height: 22px; color: var(--red); margin-top: 2px; }
.contact-list a { font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; }
.contact-list.is-dark { color: rgba(255, 255, 255, 0.82); }
.contact-list.is-dark a { color: #fff; }
.contact-list.is-dark .icon { color: #ff8a8e; }

/* ---------- Bandeau marques ---------- */
.brands { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 0; }

/* ---------- Icône carrée rouge pâle et pastilles (accueil, section du garage) ---------- */
.step-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.step-icon .icon { width: 22px; height: 22px; }
/* Pastilles : services et atelier (une étiquette par prestation) */
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; }
.chip-list .icon { width: 1.1em; height: 1.1em; color: var(--red); }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: var(--red); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.85); max-width: 56ch; }
.cta-band .eyebrow { color: rgba(255, 255, 255, 0.7); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta-band-light { background: var(--ink); }
.cta-band-light .eyebrow { color: #ff8a8e; }

/* ---------- Localisation ---------- */
.location-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--grid-gap); align-items: stretch; }
.location-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.location-card { justify-content: center; }
.location-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e9e9e4; min-height: 340px; }
.location-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.location-map-wide { min-height: 380px; }
@media (max-width: 800px) { .location-grid { grid-template-columns: 1fr; } }

/* ---------- En-tête de page intérieure ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0; }
.page-head h1 { margin-bottom: 0.3em; }
.page-head .lead { margin-bottom: 0; }
.page-head .link-arrow { margin-top: 16px; }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 28px; }
.filters-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.select { display: grid; gap: 4px; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.select select, .select input { min-width: 170px; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font: inherit; font-size: 0.95rem; color: var(--ink); letter-spacing: 0; text-transform: none; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 36px; 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='%23646a76' stroke-width='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 12px center; }
.select select:disabled { color: var(--muted-2); background-color: var(--paper); }
.filters-sort { display: flex; align-items: center; gap: 12px; }
.filters-sort-label { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--muted); transition: background 0.2s, color 0.2s; }
.seg button.is-active { background: var(--ink); color: #fff; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.gone-notice { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 24px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--red-soft); color: #16181d; }
.gone-notice[hidden] { display: none; }
.gone-notice p { margin: 0; }
.gone-notice .icon-button { flex: none; width: 44px; height: 44px; margin: -8px -10px -8px 0; background: transparent; } /* flex: none : sans lui la croix est écrasée par le texte */
.gone-notice a { color: var(--red-2); text-decoration: underline; }

/* ---------- Grille & cartes véhicules ---------- */
.vehicles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.vehicle-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; color: inherit;
}
a.vehicle-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.vehicle-card[hidden] { display: none; }
.vehicle-card-photo { position: relative; aspect-ratio: 16 / 10; background: #eceae6; overflow: hidden; }
.vehicle-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
a.vehicle-card:hover .vehicle-card-photo img { transform: scale(1.04); }
.photo-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--muted-2); font-size: 0.85rem; font-weight: 500; background: repeating-linear-gradient(135deg, #ecebe7 0 12px, #e6e5e0 12px 24px); }
.photo-placeholder .icon { width: 36px; height: 36px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-energy { position: absolute; top: 12px; left: 12px; background: rgba(14, 16, 20, 0.78); color: #fff; backdrop-filter: blur(6px); }
/* Annonce regroupée : plusieurs exemplaires identiques du même véhicule */
.badge-count { position: absolute; bottom: 12px; left: 12px; background: var(--red); color: #fff; }
.vehicle-summary .badge-count { position: static; margin: 0 0 10px; }
.badge-sold { background: var(--ink); color: #fff; font-size: 0.8rem; padding: 6px 12px; }
.badge-crush { position: absolute; top: 12px; right: 12px; background: var(--red); color: #fff; }
.vehicle-summary .badge-crush { position: static; margin: 0 0 10px; }
.price-old { font-size: 0.6em; font-weight: 600; color: var(--muted); margin-left: 0.3em; }
.vehicle-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.vehicle-card-title { font-size: 1.15rem; margin: 0; }
.vehicle-card-version { margin: 0; color: var(--muted); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vehicle-card-meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.88rem; color: var(--muted); }
.vehicle-card-meta span { display: inline-flex; align-items: center; gap: 0.35em; }
.vehicle-card-meta .icon { color: var(--muted-2); }
.vehicle-card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.vehicle-card-price { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.vehicle-card-price small { font-size: 0.7rem; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; }
.vehicle-card-arrow { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); color: var(--ink); transition: background 0.2s, color 0.2s; }
a.vehicle-card:hover .vehicle-card-arrow { background: var(--red); color: #fff; }
.vehicle-card.is-sold .vehicle-card-photo img { filter: saturate(0.4); opacity: 0.85; }

/* ---------- Fiche véhicule ---------- */
.vehicle-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.vehicle-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.vehicle-summary { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.vehicle-summary h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.2em; }
.vehicle-version { color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.vehicle-price { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.4rem); color: var(--red); margin: 0 0 20px; letter-spacing: -0.02em; }
.vehicle-price small { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.06em; }
.spec-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.spec-grid li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; background: var(--paper); border-radius: var(--radius-sm); padding: 12px 14px; }
.spec-grid .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--red); }
.spec-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.spec-value { font-weight: 700; font-family: var(--font-display); }
.gallery { display: grid; gap: 12px; }
.gallery-main { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #eceae6; aspect-ratio: 16 / 10; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-counter { position: absolute; right: 14px; bottom: 14px; background: rgba(14, 16, 20, 0.75); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.gallery-thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #eceae6; aspect-ratio: 16 / 10; opacity: 0.7; transition: opacity 0.2s, border-color 0.2s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active, .gallery-thumb:hover { opacity: 1; border-color: var(--red); }
.gallery-empty .photo-placeholder { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); }
.vehicle-details { display: grid; gap: 24px; }
.detail-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.detail-block h2 { font-size: 1.35rem; margin-bottom: 18px; }
.detail-list { margin: 0; display: grid; gap: 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 600; text-align: right; }
.equip-list { list-style: none; display: grid; gap: 8px; }
.equip-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.equip-list .icon { color: var(--green); margin-top: 3px; width: 18px; height: 18px; }
.equip-text { margin: 0; color: var(--text); }
@media (max-width: 900px) {
  .vehicle-layout { grid-template-columns: 1fr; }
  .vehicle-summary { position: static; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 9, 12, 0.94); display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-height: 84vh; max-width: 100%; object-fit: contain; border-radius: 10px; }
.lightbox figcaption { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.lightbox button { background: rgba(255, 255, 255, 0.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox button .icon { width: 24px; height: 24px; }
.lightbox-close { position: absolute; top: 16px; right: 16px; }

/* ---------- Formulaires ---------- */
.form h2 { font-size: 1.4rem; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 6px; }
.field-wide, .field-check { grid-column: 1 / -1; }
.field label, .field legend, .field-label { font-weight: 600; font-size: 0.92rem; }
.field-label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14, 16, 20, 0.08); }
.field textarea { resize: vertical; min-height: 110px; }
.field .hint { color: var(--muted); font-size: 0.8rem; }
.field-radios { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.radio { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-weight: 500; }
.radio:has(input:checked) { border-color: var(--red); background: var(--red-soft); color: var(--red-2); }
.radio input { accent-color: var(--red); margin: 0; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.checkbox input { accent-color: var(--red); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.checkbox a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.field-file input { padding: 10px; background: var(--paper); border-style: dashed; }
.file-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.form-note { margin: 18px 0; font-size: 0.85rem; color: var(--muted); }
.form-help { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.hp { position: absolute; left: -9999px; }
.form-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.form-intro h2 { margin-bottom: 0.4em; }
.form-intro p { color: var(--muted); }
.form-alt a { font-weight: 700; color: var(--ink); }
.form-section { border: 1px solid var(--line); margin: 0 0 20px; }
.form-section > legend { float: left; width: 100%; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.form-section > legend + * { clear: both; }
.form-section-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; font-size: 0.9rem; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.reprise-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 28px; }
.reprise-steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; font-weight: 500; }
.reprise-steps strong { color: var(--red); margin-right: 6px; font-family: var(--font-display); }
@media (max-width: 800px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .file-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; align-items: start; }
.contact-side { display: grid; gap: 20px; }
.contact-side .card h2 { font-size: 1.25rem; margin-bottom: 14px; }
.contact-name { font-family: var(--font-display); font-weight: 700; margin-bottom: 12px; }
.contact-side .btn { margin-top: 18px; }
.hours { margin: 0; display: grid; gap: 10px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hours div:last-child { border: 0; padding: 0; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Texte long ---------- */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Merci ---------- */
.merci-inner { max-width: 640px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.merci-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #e6f4ec; color: var(--green); margin-bottom: 12px; }
.merci-icon .icon { width: 36px; height: 36px; }
.merci .btn-row { justify-content: center; margin-top: 16px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.6); padding: 20px 0; } /* V2 : une seule ligne */
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a, .footer-bottom button { color: rgba(255, 255, 255, 0.85); }

/* ---------- Bandeau cookies ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; display: flex; justify-content: center; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { width: min(640px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-lg); }
.cookie-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; margin-bottom: 8px; }
.cookie-inner p { font-size: 0.9rem; color: var(--muted); }
.cookie-inner a { color: var(--red); text-decoration: underline; }

/* ---------- Impression ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .vehicle-toolbar, .btn, .lightbox, .location, #vehicle-form, .gallery-thumbs, .gallery-counter, .section-alt, .section:not(.vehicle-page) { display: none !important; }
  body { background: #fff; color: #000; }
  .vehicle-layout, .vehicle-details { grid-template-columns: 1fr; gap: 16px; }
  .vehicle-summary, .detail-block { border: 1px solid #ccc; }
  .gallery-main { aspect-ratio: auto; max-height: 420px; }
}

/* =========================================================
   Mise en page (révision du 2026-11-11) : même style, éléments réorganisés
   ========================================================= */

/* ---------- En-tête : bouton d'appel toujours visible sur mobile ---------- */
.header-call { display: none; }
@media (max-width: 1000px) {
  .header-call {
    grid-column: 3; grid-row: 1; justify-self: end;
    display: inline-flex; align-items: center; gap: 0.45em;
    padding: 0.6em 1.05em; border-radius: 999px; background: var(--red); color: #fff;
    font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
    box-shadow: 0 8px 20px rgba(215, 38, 44, 0.28);
  }
}

/* ---------- Accueil : recherche dans le hero ---------- */
.hero-search { display: grid; gap: 14px; }
.hero-search .hero-card-title { margin-bottom: 2px; }
.hero-search-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.select-dark { color: rgba(255, 255, 255, 0.7); }
.select-dark select, .select-dark input { width: 100%; min-width: 0; border-color: rgba(255, 255, 255, 0.2); }
.hero-search .btn { width: 100%; margin-top: 4px; }

/* ---------- Accueil : le stock juste sous le hero ---------- */
.vehicles-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .vehicles-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .vehicles-grid-4 { grid-template-columns: 1fr; } }

/* ---------- Pages intérieures ---------- */
.page-head-actions { margin-top: 24px; }

/* ---------- Liste : filtres compacts sur mobile ---------- */
@media (max-width: 700px) {
  .filters { padding: 16px; gap: 14px; }
  .filters-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .filters-fields .select select, .filters-fields .select input { min-width: 0; width: 100%; }
  .filters-fields .js-reset { grid-column: 1 / -1; }
  .filters-sort { width: 100%; flex-wrap: wrap; }
  .seg { overflow-x: auto; max-width: 100%; }
}

/* ---------- Fiche véhicule ---------- */
.vehicle-main { display: grid; gap: 24px; min-width: 0; }
.vehicle-visit { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; font-size: 0.9rem; color: var(--muted); }
.vehicle-visit .icon { color: var(--red); margin-top: 2px; }
.vehicle-visit a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.equip-list { display: block; columns: 2 220px; column-gap: 32px; }
.equip-list li { break-inside: avoid; margin-bottom: 8px; }
.equip-list.is-collapsed li:nth-child(n + 13) { display: none; }
.equip-more { margin-top: 12px; }
.vehicle-bar { display: none; }

@media (max-width: 900px) {
  /* Sur mobile : photos, puis le résumé (prix + boutons), puis les détails */
  .vehicle-main { display: contents; }
  .vehicle-media { order: 1; }
  .vehicle-summary { order: 2; }
  .vehicle-details { order: 3; }
  .gallery-thumbs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .gallery-thumbs::-webkit-scrollbar { display: none; }
  .gallery-thumb { flex: 0 0 88px; }
  /* Barre d'action fixée en bas de l'écran */
  .page-vehicle { padding-bottom: 76px; }
  .vehicle-bar {
    display: flex; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(15, 17, 20, 0.08);
  }
  .vehicle-bar-price { margin: 0 auto 0 0; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
  .vehicle-bar .btn { padding: 0.7em 1.1em; }
}
@media (max-width: 380px) { .vehicle-bar-price { display: none; } .vehicle-bar .btn { flex: 1; } }
@media print { .vehicle-bar, .vehicle-visit { display: none !important; } }

@media (max-width: 600px) {
  .seg button { padding: 8px 12px; }
}

/* ---------- V2 : iPhone (Safari d'iOS 26, « Liquid Glass ») ---------- */
/* Depuis iOS 26, Safari ignore <meta name="theme-color"> : il teinte la barre d'état (en haut) avec la couleur
   de fond du <body>. Sur l'accueil, le body est donc sombre comme le hero (plus de bande grise au-dessus de la
   vidéo) ; le <main> reprend le fond clair, pour que les bandes entre les sections restent claires. */
body.page-home { background: var(--ink); }
.page-home main { background: var(--paper); }
/* Mobile, haut de l'accueil : pas de bulle en plus de celles de l'iPhone. Le bouton ☰ est une simple icône posée
   sur la vidéo, à droite ; la pastille (fond, bordure, flou) n'apparaît qu'une fois le logo du hero passé. */
@media (max-width: 1000px) {
  .page-home .site-header:not(.show-logo) .header-inner {
    margin-right: calc(var(--gutter) - 8px); margin-left: auto;
    background: transparent; border-color: transparent; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}

/* =========================================================
   V2 : système de mise en page commun (accueil)
   =========================================================
   Règles reprises des sites bien cadrés et des design systems (Atlassian, grille de 8 px, loi de proximité) :
   - une seule largeur de contenu (--container : 1200 px), centrée, pour toutes les sections ;
   - une échelle d'espacements en multiples de 8 px, toujours la même :
       --section-y   espace en haut et en bas de chaque section (64 → 104 px selon l'écran)
       --head-gap    sous l'en-tête d'une section, avant son contenu (32 → 48 px)
       --block-gap   entre deux blocs d'une même section (48 → 72 px)
       --grid-gap    entre les cartes d'une grille (16 → 24 px pour les petites, 32 → 48 px pour les grandes)
     L'espace grandit avec le niveau : entre sections > entre blocs > entre cartes > dans une carte.
   - le même en-tête partout, centré : petite mention (eyebrow), titre (h2), phrase d'accroche ;
   - les boutons d'une section en dessous de son contenu, centrés. */
:root {
  --section-y: clamp(64px, 8vw, 104px);
  --head-gap: clamp(32px, 4vw, 48px);
  --block-gap: clamp(48px, 6vw, 72px);
  --grid-gap: clamp(24px, 4vw, 48px);
}
.section-head-center { max-width: 720px; margin: 0 auto var(--head-gap); text-align: center; }
.section-head-center .eyebrow { margin-bottom: 12px; }
.section-head-center h2 { margin: 0; }
.section-lead { max-width: 60ch; margin: 16px auto 0; color: var(--muted); font-size: 1.08rem; line-height: 1.6; }
.section-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: var(--head-gap); }
.sub-head { margin: var(--block-gap) 0 24px; text-align: center; font-size: clamp(1.15rem, 1.6vw, 1.35rem); }

/* Le garage (révision du 2026-11-20 : présentation et services en une seule section).
   Après la photo et la carte rouge : les 3 services après l'achat sur une ligne (icône à gauche du titre, sans carte
   ni numéro), puis services et atelier côte à côte, puis la phrase de fin et le bouton. */
.garage-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--grid-gap); }
.garage-steps li { display: flex; gap: 16px; align-items: flex-start; }
.garage-steps .step-icon { flex: none; }
.garage-steps h4 { margin: 2px 0 6px; font-size: 1.1rem; }
.garage-steps p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
/* Services et atelier : côte à côte (l'atelier, plus long, prend plus de place) ; si l'un des deux est vide dans
   l'espace personnel, l'autre occupe toute la largeur (flex, pas une grille à colonnes fixes) */
.garage-extras { display: flex; flex-wrap: wrap; gap: 32px var(--grid-gap); margin-top: var(--block-gap); padding-top: var(--block-gap); border-top: 1px solid var(--line); }
.garage-extras > div { flex: 1 1 280px; min-width: 0; }
.garage-extras > div + div { flex-grow: 2; }
.nowrap { white-space: nowrap; } /* « Basse-Goulaine » ne se coupe pas au trait d'union */
.garage-extras h3 { margin: 0 0 16px; font-size: 1.1rem; }
.garage-foot { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: var(--block-gap); text-align: center; }
.garage-foot p { max-width: 60ch; margin: 0; color: var(--muted); font-size: 1.05rem; }
@media (max-width: 860px) {
  .garage-steps { grid-template-columns: 1fr; }
}

/* Reprise : bandeau rouge centré, même espace vertical que les sections */
.cta-band { padding: var(--section-y) 0; }
.cta-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta-center .eyebrow { margin-bottom: 12px; }
.cta-center h2 { margin: 0; }
.cta-center p:not(.eyebrow) { max-width: 56ch; margin: 16px auto var(--head-gap); font-size: 1.08rem; }


@media (max-width: 900px) {
  .about-inner, .location-grid { gap: 24px; }
}

/* =========================================================
   V2 : animations (accueil)
   =========================================================
   1) Apparition au défilement : main.js ajoute .reveal aux éléments situés plus bas que l'écran, puis
      .is-visible quand ils arrivent. Fondu + montée de 24 px, ralenti en fin de mouvement (« ease-out » prononcé),
      --reveal-delay décale les cartes d'une même rangée. */
:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (min-width: 901px) {
  /* Présentation : la photo arrive de la gauche, la carte rouge de la droite */
  .about-photo.reveal { transform: translateX(-32px); }
  .about-panel.reveal { transform: translateX(32px); }
  .about-photo.reveal.is-visible, .about-panel.reveal.is-visible { transform: none; }
}

/* 2) Effets liés au défilement, en CSS seul (animation-timeline : Chrome, Edge, Safari 26, Firefox récents).
      Dans un navigateur qui ne les connaît pas, @supports les ignore et la page reste simplement immobile. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Hero : en quittant l'écran, son contenu s'efface et remonte doucement (effet de profondeur) */
    .page-home .hero-center {
      animation: hero-leave linear both;
      animation-timeline: view(); animation-range: exit 0% exit 90%;
    }
    @keyframes hero-leave { to { opacity: 0; transform: translateY(-56px) scale(0.98); } }
    /* Photo de la devanture : léger travelling vertical dans son cadre pendant qu'elle traverse l'écran */
    .about-photo {
      animation: photo-pan linear both;
      animation-timeline: view(); animation-range: cover 0% cover 100%;
    }
    @keyframes photo-pan { from { object-position: 4% 30%; } to { object-position: 4% 75%; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   V2 : réseaux sociaux et « Nos vidéos »
   ========================================================= */
/* Liens vers les comptes (Paramètres > Réseaux sociaux) */
.social-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; }
.social-list a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s, color 0.2s, border-color 0.2s; }
/* Boutons avec le nom du réseau (sous les vidéos) */
.social-buttons a { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.social-buttons a:hover { border-color: var(--ink); }
.social-buttons .icon { width: 20px; height: 20px; color: var(--red); }
/* Icônes seules (« Nous trouver », pied de page) */
.social-icons { justify-content: flex-start; gap: 8px; }
.social-icons a { width: 40px; height: 40px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.social-icons a:hover { background: var(--red); color: #fff; }
.social-icons .icon { width: 20px; height: 20px; }
.social-icons-footer a { width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.8); }
.social-icons-footer a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.follow { flex-direction: column; align-items: center; gap: 12px; }
.follow-label { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Mur de vidéos : cartes verticales au format des Reels (9:16) */
.video-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.video-card {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-card:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.video-card video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.video-card:hover video, .video-card:hover .video-card-poster { transform: scale(1.04); }
/* Affiche posée par-dessus la vidéo (image à chargement différé : voir videoWall dans src/pages/home.js). Elle s'efface
   dès que l'aperçu au survol se lance. */
.video-card-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out), opacity 0.3s; }
.video-card.is-playing .video-card-poster { opacity: 0; }
.video-card::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(14, 16, 20, 0.85)); pointer-events: none; }
.video-card-play {
  position: absolute; top: 50%; left: 50%; z-index: 1; translate: -50% -50%;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.4); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity 0.3s, scale 0.3s var(--ease-out);
}
.video-card-play .icon { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }
.video-card.is-playing .video-card-play { opacity: 0; scale: 0.8; }
.video-card-label { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.3; text-align: left; }
@media (max-width: 900px) {
  /* Mobile : défilement horizontal, une carte et demie visible, qui s'aimante au centre */
  .video-wall { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; }
  .video-wall::-webkit-scrollbar { display: none; }
  .video-wall > li { flex: 0 0 62%; scroll-snap-align: center; }
}

/* Lecture en grand avec le son */
.video-dialog { width: min(420px, 92vw); max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.video-dialog::backdrop { background: rgba(14, 16, 20, 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.video-dialog video { display: block; width: 100%; max-height: 80vh; aspect-ratio: 9 / 16; border-radius: var(--radius); background: #000; object-fit: contain; }
.video-dialog-close { position: absolute; top: -52px; right: 0; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; }
.video-dialog-close .icon { width: 22px; height: 22px; }
.video-dialog-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; color: #fff; }
.video-dialog-bar p { margin: 0; font-family: var(--font-display); font-weight: 700; }
.video-dialog-post[hidden] { display: none; }
.video-dialog-post { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: 0.92rem; }
.video-dialog-post .icon { width: 18px; height: 18px; }
.video-dialog[open] { animation: dialog-in 0.35s var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .video-dialog[open] { animation: none; } .video-card, .video-card video { transition: none; } }

/* Carte soumise au consentement : encart affiché à la place de l'<iframe> Google Maps */
.map-consent { height: 100%; min-height: inherit; }
.map-consent iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }
.map-placeholder {
  height: 100%; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 32px 24px; text-align: center;
  background: radial-gradient(circle at 50% 35%, #fff, transparent 70%), repeating-linear-gradient(45deg, #ecebe6 0 2px, transparent 2px 14px), #e9e9e4;
}
.map-placeholder-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--red-soft); color: var(--red); }
.map-placeholder-icon .icon { width: 26px; height: 26px; }
.map-placeholder p { max-width: 42ch; margin: 0; color: var(--muted); font-size: 0.95rem; }
.map-placeholder strong { display: block; margin-bottom: 4px; color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; }
.map-placeholder .btn-row { justify-content: center; }

/* « Nos vidéos » sur fond sombre : sépare nettement la section de « Nous trouver » (fond clair) et met les Reels
   en valeur. Alternance de l'accueil (2026-11-20) : hero sombre, stock blanc, vendus clair, garage blanc,
   vidéos sombres, accès clair. */
/* Bande sombre réutilisable (.dark-band) : section vidéos de l'accueil, en-tête de la page Véhicules */
.dark-band { color: #fff; }
.dark-band .eyebrow { color: #ff8a8e; }
.dark-band h1, .dark-band h2 { color: #fff; }
.dark-band .section-lead { color: rgba(255, 255, 255, 0.72); }
/* Section vidéos : fond sombre uni (sans les lueurs rouges des autres bandes sombres) : les vidéos donnent la couleur */
.videos-section.dark-band { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.videos-section .video-card { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.videos-section .video-card:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 18px 40px rgba(0, 0, 0, 0.45); }
.videos-section .follow-label { color: rgba(255, 255, 255, 0.6); }
.videos-section .social-buttons a { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.videos-section .social-buttons a:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }
.videos-section .social-buttons .icon { color: #ff8a8e; }
/* Fond des bandes sombres : lueurs rouges (en haut à droite, en bas à gauche) et quadrillage blanc très léger,
   estompé vers les bords — le même vocabulaire que le hero d'origine, pour que le noir ne paraisse pas vide. */
.dark-band {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  background:
    radial-gradient(700px 420px at 88% 0%, rgba(215, 38, 44, 0.38), transparent 65%),
    radial-gradient(600px 400px at 6% 100%, rgba(215, 38, 44, 0.24), transparent 65%),
    radial-gradient(900px 500px at 50% 55%, rgba(215, 38, 44, 0.08), transparent 70%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
}
.dark-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 85%);
}


/* =========================================================
   V2 : page Véhicules
   ========================================================= */
/* Fond de page sombre (barre d'état de Safari iOS assortie à l'en-tête), contenu sur fond clair */
body.has-dark-top { background: var(--ink); }
.has-dark-top main { background: var(--paper); }
.page-head-dark { border-bottom: 0; padding-bottom: clamp(48px, 6vw, 80px); }
.page-head-dark h1 { margin: 0; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-head-dark .section-head-center { margin-bottom: 0; }

.listing { padding-top: clamp(32px, 4vw, 48px); }

/* Barre de résultats */
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 0 0 24px; }
.results-info { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.results-count { margin: 0; font-size: 1.05rem; color: var(--muted); }
.results-count strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.filter-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.filter-chips button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 0.88rem; color: var(--ink); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.filter-chips button:hover { border-color: var(--ink); }
.filter-chips .icon { width: 14px; height: 14px; color: var(--muted); }
.filter-chips .chip-clear { border: 0; background: transparent; color: var(--red); padding-inline: 6px; }
.btn-filter { display: none; }
.btn-filter .icon { width: 18px; height: 18px; }
.filter-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.75rem; }
.filter-badge[hidden] { display: none; }
.filters { margin-bottom: 24px; }
.filters-head, .filters-foot { display: none; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.icon-button .icon { width: 20px; height: 20px; }
.listing .section-actions { margin-top: var(--head-gap); }

/* Cartes sans photo : logo du garage sur fond sombre */
.photo-placeholder {
  gap: 10px; color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; letter-spacing: 0.02em;
  background: radial-gradient(circle at 80% 0%, rgba(215, 38, 44, 0.35), transparent 60%), linear-gradient(160deg, var(--ink-3), var(--ink));
}
.photo-placeholder img { width: 52%; max-width: 200px; height: auto; opacity: 0.9; }

/* Mobile et tablette : filtres dans un panneau qui monte du bas de l'écran */
@media (max-width: 900px) {
  .btn-filter { display: inline-flex; align-items: center; gap: 8px; padding: 0.6em 1.1em; }
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; margin: 0; max-height: 88dvh; overflow-y: auto;
    flex-direction: column; align-items: stretch; border-radius: 24px 24px 0 0; border: 0; padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom));
    box-shadow: 0 -20px 50px rgba(14, 16, 20, 0.25);
    transform: translateY(105%); visibility: hidden; transition: transform 0.35s var(--ease-out), visibility 0.35s;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters-head { display: flex; align-items: center; justify-content: space-between; }
  .filters-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
  .filters-foot { display: block; padding-top: 8px; }
  .filters-foot .btn { width: 100%; justify-content: center; }
  .filters-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(14, 16, 20, 0.5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
  .filters-backdrop[hidden] { display: none; }
  html.sheet-open { overflow: hidden; }
  html.sheet-open .cookie-banner { display: none; } /* le bandeau cookies ne cache pas le panneau des filtres */
  .results-bar { gap: 12px; }
  .results-info { width: 100%; }
  .results-count { margin-left: auto; }
  .filters-sort { width: 100%; }
  .results-bar .filters-sort-label { display: none; } /* le menu de tri parle de lui-même */
  .results-bar .seg { width: 100%; justify-content: space-between; }
}

/* Téléphone : cartes en ligne (photo à gauche, infos à droite) pour voir 3 fois plus de véhicules par écran.
   Même rendu dans la liste (.listing) et dans le stock de l'accueil (.section-stock) : :is(A, B) .x vaut A .x, B .x */
@media (max-width: 600px) {
  :is(.listing, .section-stock) .vehicles-grid { grid-template-columns: 1fr; gap: 12px; }
  :is(.listing, .section-stock) .vehicle-card { flex-direction: row; }
  :is(.listing, .section-stock) .vehicle-card-photo { flex: 0 0 40%; aspect-ratio: auto; min-height: 128px; }
  :is(.listing, .section-stock) .vehicle-card-photo img { position: absolute; inset: 0; }
  :is(.listing, .section-stock) .vehicle-card-body { padding: 12px 14px; gap: 4px; min-width: 0; }
  :is(.listing, .section-stock) .vehicle-card-title { font-size: 1rem; }
  :is(.listing, .section-stock) .vehicle-card-version { font-size: 0.82rem; -webkit-line-clamp: 1; }
  :is(.listing, .section-stock) .vehicle-card-meta { font-size: 0.8rem; gap: 4px 10px; margin-top: 2px; }
  :is(.listing, .section-stock) .vehicle-card-meta .meta-gearbox { display: none; } /* boîte de vitesses : visible sur la fiche */
  :is(.listing, .section-stock) .vehicle-card-foot { padding-top: 8px; border-top: 0; }
  :is(.listing, .section-stock) .vehicle-card-price { font-size: 1.1rem; }
  :is(.listing, .section-stock) .vehicle-card-arrow { display: none; }
  :is(.listing, .section-stock) .badge-energy { top: 8px; left: 8px; padding: 3px 8px; font-size: 0.62rem; }
  :is(.listing, .section-stock) .badge-count { bottom: 8px; left: 8px; padding: 3px 8px; font-size: 0.62rem; }
  :is(.listing, .section-stock) .badge-crush { top: auto; bottom: 8px; right: 8px; padding: 3px 8px; font-size: 0.62rem; }
  :is(.listing, .section-stock) .photo-placeholder span { display: none; }
  :is(.listing, .section-stock) .photo-placeholder img { width: 70%; }
}

/* Accueil, téléphone : barre Appeler / Itinéraire (même barre que la fiche véhicule, .vehicle-bar). Cachée sous le
   bord de l'écran tant que le hero est visible ; elle monte quand main.js ajoute .hero-passed au body. */
@media (max-width: 900px) {
  .page-home { padding-bottom: 76px; }
  .home-bar .btn { flex: 1; justify-content: center; }
  .page-home .home-bar { transform: translateY(110%); transition: transform 0.35s var(--ease-out); }
  .page-home.hero-passed .home-bar { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .page-home .home-bar { transition: none; } }
@media print { .home-bar { display: none !important; } }

/* =========================================================
   V2 : pages Reprise et Contact
   ========================================================= */
.container-narrow { --container: 880px; }
/* En-tête sombre : atouts et boutons sous le texte */
.head-points { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 24px 0 0; padding: 0; color: rgba(255, 255, 255, 0.88); font-weight: 600; }
.head-points li { display: inline-flex; align-items: center; gap: 8px; }
.head-points .icon { color: #ff8a8e; }
.head-actions { justify-content: center; margin-top: 28px; }

/* Sommaire des étapes du formulaire de dépôt-vente */
.form-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 var(--head-gap); padding: 0; }
.form-steps a {
  display: flex; align-items: center; gap: 10px; height: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; color: var(--ink); transition: border-color 0.2s;
}
.form-steps a:hover { border-color: var(--ink); }
.form-steps span { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; }
.form-page .form-section { scroll-margin-top: calc(var(--header-h) + 16px); margin-bottom: 24px; }
.form-actions-center { flex-direction: column; justify-content: center; text-align: center; margin-top: 8px; }
.form-actions-center .form-note { margin: 0; }
@media (max-width: 700px) {
  .form-steps { grid-template-columns: 1fr; gap: 8px; }
  .form-steps a { padding: 10px 14px; }
}

/* Photos : zones de dépôt avec aperçu */
.field-file .file-input { position: absolute; width: 1px; height: 1px; min-width: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.field-file { position: relative; }
.file-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 140px; padding: 16px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm);
  background: var(--paper) center / cover no-repeat; text-align: center; cursor: pointer; overflow: hidden;
  transition: border-color 0.2s, background-color 0.2s;
}
.file-drop:hover, .field-file:has(.file-input:focus-visible) .file-drop { border-color: var(--red); background-color: var(--red-soft); }
.field-file:has(.file-input:focus-visible) .file-drop { outline: 3px solid var(--red); outline-offset: 2px; }
.file-drop-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--red); box-shadow: var(--shadow); }
.file-drop-icon .icon { width: 22px; height: 22px; }
.file-drop-title { font-weight: 700; font-size: 0.92rem; }
.file-drop-name { max-width: 100%; color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Photo choisie : l'aperçu remplit la zone, le nom du fichier passe sur un bandeau */
.file-drop.has-file { border-style: solid; border-color: transparent; justify-content: flex-end; }
.file-drop.has-file .file-drop-icon, .file-drop.has-file .file-drop-title { display: none; }
.file-drop.has-file .file-drop-name { width: 100%; padding: 6px 10px; border-radius: 8px; background: rgba(14, 16, 20, 0.72); color: #fff; }

/* Contact */
.form-intro { margin: -6px 0 20px; color: var(--muted); }
.contact-side .social-icons { margin-top: 18px; }
.contact-layout .form-actions { margin-top: 8px; justify-content: flex-start; }
.contact-layout .form-note { margin: 0; }
.contact-map .location-map { min-height: 420px; }

/* La carte (ou son encart de consentement) remplit toute la hauteur de son cadre */
.location-map { display: flex; flex-direction: column; }
.map-consent { flex: 1; display: flex; flex-direction: column; }
.map-placeholder, .map-consent iframe { flex: 1; }
/* Mobile : les 3 photos côte à côte, en vignettes compactes */
@media (max-width: 600px) {
  .form-depot-vente .file-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .form-depot-vente .file-drop { min-height: 104px; padding: 8px; gap: 4px; }
  .form-depot-vente .file-drop-icon { width: 36px; height: 36px; }
  .form-depot-vente .file-drop-icon .icon { width: 18px; height: 18px; }
  .form-depot-vente .file-drop-title { font-size: 0.82rem; }
  .form-depot-vente .file-drop-name { display: none; }
  .form-depot-vente .file-drop.has-file .file-drop-name { display: block; font-size: 0.7rem; padding: 4px 6px; }
}

/* ---------- Réseaux sociaux dans la pastille de l'en-tête (après les liens ; dans la carte du menu sur mobile) ---------- */
/* .header-social est un <ul> dans .site-nav : sélecteurs renforcés pour ne pas hériter du style des liens du menu */
.site-nav ul.header-social { order: 3; display: flex; flex-direction: row; gap: 2px; margin: 0 6px 0 4px; padding: 0 0 0 8px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.site-header .site-nav .header-social li a,
.site-header.is-scrolled .site-nav .header-social li a {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0;
  border-radius: 50%; color: rgba(255, 255, 255, 0.75); font-size: 0;
}
.site-header .site-nav .header-social li a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.site-header .header-social .icon { width: 17px; height: 17px; }
.site-header.is-scrolled .header-social .icon { width: 15px; height: 15px; }
@media (max-width: 1000px) {
  .site-nav ul.header-social { order: 2; justify-content: center; gap: 10px; margin: 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .site-header .site-nav .header-social li a,
  .site-header.is-scrolled .site-nav .header-social li a { width: 44px; height: 44px; background: rgba(255, 255, 255, 0.08); }
  .site-header .header-social .icon, .site-header.is-scrolled .header-social .icon { width: 20px; height: 20px; }
}

/* ---------- Récemment vendus (accueil) : bandeau horizontal de cartes ---------- */
.sold-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 280px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0 -4px;
  scrollbar-width: thin;
}
.sold-strip > * { scroll-snap-align: start; }
.sold-strip:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 12px; }
@media (max-width: 600px) { .sold-strip { grid-auto-columns: 78%; } }

/* ---------- Coloris (pastilles) ----------
   --sw : couleur de la carrosserie ; --sw-roof : toit d'une autre couleur (pastille en deux tons, toit en haut). */
.swatch {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--sw, #9a9a9a);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.swatch[style*="--sw-roof"] { background: linear-gradient(180deg, var(--sw-roof) 0 40%, var(--sw) 40% 100%); }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 10px; }
.swatches .swatch { cursor: pointer; transition: transform 0.15s ease; }
.swatches .swatch:hover, .swatches .swatch.is-on { transform: scale(1.18); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18), 0 0 0 2px #fff, 0 0 0 3px currentColor; }
.swatches-label { margin-left: 2px; font-size: 0.8rem; color: var(--muted, #646a76); }

.color-pick { margin: 4px 0 18px; }
.color-pick-label { margin: 0 0 10px; font-size: 0.95rem; }
.color-pick-label span { color: var(--muted, #646a76); }
.color-pick-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.color-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-2, #cfcfc8); border-radius: 999px; background: #fff; color: inherit;
  font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: border-color 0.15s ease;
}
.color-chip .swatch { width: 24px; height: 24px; }
.color-chip small { font-weight: 500; color: var(--muted, #646a76); }
.color-chip:hover { border-color: currentColor; }
.color-chip.is-current { border: 2px solid var(--ink, #0e1014); padding: 5px 13px 5px 7px; }
.color-chip:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 760px) { .swatches { gap: 8px; } .swatches .swatch { width: 22px; height: 22px; } }
