/* AUTOMECA17 — feuille de style unique
   Monde : noir mat, un seul fil d'or (réservé à ce qui se clique), surpiqûres graphite. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --fond: #ffffff;
  --surface: #f4f4f1;
  --surface-2: #e8e8e3;
  --graphite: #c8c8c1;
  --graphite-2: #8b8d91;
  --texte: #15171a;
  --texte-2: #4a4d52;
  --texte-3: #686b70;
  --accent: #15171a;
  --accent-2: #3d4046;
  --sur-accent: #ffffff;
  --alerte: #b3261e;

  --f-titre: "Archivo", "Arial Narrow", sans-serif;
  --f-texte: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;

  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4.5rem;
  --s7: 7rem;
  --marge: clamp(16px, 4.5vw, 56px);
  --max: 1320px;
  --rayon: 14px;
  --barre-appel: 0px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: var(--graphite) var(--fond);
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 400 1.125rem/1.6 var(--f-texte);
  padding-bottom: var(--barre-appel);
  caret-color: var(--accent);
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--sur-accent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--fond); }
::-webkit-scrollbar-thumb { background: var(--graphite); border-radius: 10px; border: 2px solid var(--fond); }

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

a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-titre);
  font-weight: 800;
  text-wrap: balance;
}

p { margin: 0 0 var(--s2); max-width: 66ch; }
p:last-child { margin-bottom: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.lien-evitement {
  position: absolute; left: var(--marge); top: -100px; z-index: 100;
  background: var(--accent); color: var(--sur-accent); padding: .75rem 1rem; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.lien-evitement:focus { top: 12px; }

.cadre { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--marge); }

/* ---------- Typographie du monde ---------- */

.monumental {
  font-stretch: 68%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.005em;
  font-size: clamp(2.75rem, 10.6vw, 6rem);
}

.titre-section {
  font-stretch: 70%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  font-size: clamp(2.25rem, 7.2vw, 4.5rem);
}

.titre-bloc {
  font-stretch: 82%;
  font-weight: 750;
  font-size: clamp(1.375rem, 3.4vw, 1.75rem);
  line-height: 1.1;
}

.libelle {
  font: 600 .8125rem/1.3 var(--f-titre);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--texte-2);
}

.chapo { font-size: clamp(1.125rem, 2.2vw, 1.3125rem); color: var(--texte-2); max-width: 40ch; }

.prix {
  font-family: var(--f-titre);
  font-stretch: 72%;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.005em;
  line-height: 1;
}

.chiffres { font-variant-numeric: tabular-nums; }

/* surpiqûre : ligne pointillée fine, comme une couture */
.piqure {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, var(--graphite) 0 6px, transparent 6px 11px) 0 0 / 11px 1px repeat-x;
}

/* ---------- Boutons ---------- */

.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--h); padding: 0 1.5rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 700 1rem/1 var(--f-titre); font-stretch: 88%;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none; text-align: center; line-height: 1.15;
  padding-block: .5rem; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-or { background: var(--accent); color: var(--sur-accent); }
.btn-or:hover { background: var(--accent-2); color: var(--sur-accent); }

.btn-ligne { background: transparent; color: var(--texte); border-color: rgba(21, 23, 26, .28); }
.btn-ligne:hover { border-color: var(--accent); color: var(--accent-2); }

.btn[disabled], .btn[aria-disabled="true"] { background: var(--surface-2); color: var(--texte-3); border-color: transparent; cursor: not-allowed; }

.lien-fleche {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 700 .9375rem/1.2 var(--f-titre); font-stretch: 88%; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); text-decoration: none; padding-block: .5rem;
}
.lien-fleche svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.lien-fleche:hover svg { transform: translateX(4px); }

/* ---------- En-tête ---------- */

.entete { position: sticky; top: 0; z-index: 40; background: var(--fond); }
.entete .piqure { position: absolute; left: 0; right: 0; bottom: 0; }
.entete-int { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 68px; }

.marque { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; padding-block: .5rem; }
.marque strong { font: 800 1.375rem/1 var(--f-titre); font-stretch: 72%; letter-spacing: .06em; }
.marque span { font: 600 .6875rem/1 var(--f-titre); letter-spacing: .3em; text-transform: uppercase; color: var(--texte-2); margin-top: .35rem; }
.marque:hover { color: var(--texte); }
.marque:hover strong { color: var(--accent); }

.nav-principale ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav-principale a {
  font: 600 .8125rem/1 var(--f-titre); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--texte-2); padding: .75rem 0; display: inline-block; position: relative;
}
.nav-principale a:hover, .nav-principale a[aria-current="page"] { color: var(--texte); }
.nav-principale a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 2px; background: var(--accent); border-radius: 2px;
}

.entete-tel { --h: 46px; padding-inline: 1.1rem; font-size: .9375rem; }

.btn-menu {
  display: none; align-items: center; gap: .5rem; min-height: 48px; padding: 0 .25rem 0 .75rem;
  background: none; border: 0; color: var(--texte); cursor: pointer;
  font: 600 .8125rem/1 var(--f-titre); letter-spacing: .2em; text-transform: uppercase;
}
.btn-menu svg { width: 28px; height: 28px; }

@media (max-width: 959px) {
  .btn-menu { display: inline-flex; }
  .entete-tel { display: none; }
  .nav-principale {
    position: fixed; inset: 68px 0 0 0; z-index: 39;
    background: var(--fond);
    padding: var(--s4) var(--marge) calc(var(--s5) + 80px);
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav-principale.ouverte { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav-principale ul { flex-direction: column; gap: 0; }
  .nav-principale li + li { border-top: 1px solid var(--surface-2); }
  .nav-principale a {
    display: block; padding: 1.1rem 0;
    font: 800 2.25rem/1 var(--f-titre); font-stretch: 70%; letter-spacing: 0; color: var(--texte);
  }
  .nav-principale a[aria-current="page"] { color: var(--accent); }
  .nav-principale a[aria-current="page"]::after { display: none; }
  body.menu-ouvert { overflow: hidden; }
}

/* ---------- Barre d'appel mobile ---------- */

.barre-appel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px var(--marge) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  display: flex; gap: .5rem;
}
.barre-appel .piqure { position: absolute; left: 0; right: 0; top: 0; }
.barre-appel .btn { flex: 1; --h: 56px; font-size: 1.0625rem; letter-spacing: .06em; white-space: nowrap; padding-inline: 1rem; }
@media (max-width: 370px) { .barre-appel .btn { font-size: .9375rem; letter-spacing: .03em; } }
.barre-appel .btn-secondaire { flex: 0 0 56px; padding: 0; }

@media (min-width: 960px) { .barre-appel { display: none; } }

/* ---------- Sections et rythme ---------- */

.section { padding-block: clamp(var(--s5), 9vw, var(--s7)); }
.section-tete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s2) var(--s4); margin-bottom: clamp(var(--s4), 5vw, var(--s5)); }
.section-tete p { color: var(--texte-2); margin: 0; max-width: 46ch; }

/* le fil d'or qui relie les sections */
.fil {
  display: block; width: 100%; height: clamp(48px, 8vw, 96px);
  overflow: visible; pointer-events: none;
}
.fil path { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.dessine path, .dessine circle { stroke-dasharray: 1; stroke-dashoffset: 1; }
.dessine.trace path, .dessine.trace circle { animation: tracer 1.8s var(--ease) forwards; }
@keyframes tracer { to { stroke-dashoffset: 0; } }

/* ---------- Héros ---------- */

.heros { padding-top: clamp(var(--s4), 5vw, var(--s5)); padding-bottom: var(--s4); overflow: clip; }
.heros-grille { display: grid; gap: var(--s3); grid-template-areas: "titre" "chapo" "scene" "actions"; }
.heros h1 { grid-area: titre; max-width: 15ch; }
.heros .chapo { grid-area: chapo; margin: 0; }
.heros .scene { grid-area: scene; }
.heros-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.heros-grille > .heros-actions { grid-area: actions; }
.heros-actions .btn { flex: 1 1 auto; }

.scene { position: relative; }
.scene svg.voiture-fil { width: 100%; height: auto; overflow: visible; }
.voiture-fil path, .voiture-fil circle { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.voiture-fil .vitre { stroke: var(--graphite-2); stroke-width: 1.5; }
.voiture-fil .sol { stroke: var(--graphite); stroke-width: 1; stroke-dasharray: 6 5; }
.voiture-fil.dessine .sol { stroke-dasharray: 1; }

.etiquette-prix {
  position: relative;
  display: grid; gap: .35rem; padding: .9rem 1.1rem 1rem;
  background: var(--fond); border: 1px solid var(--accent); border-radius: 10px;
  text-decoration: none; width: max-content; max-width: 100%;
  transition: background-color .25s var(--ease);
}
.etiquette-prix::before {
  content: ""; position: absolute; left: 28px; bottom: 100%; width: 1px; height: 22px; background: var(--accent);
}
.etiquette-prix .prix { font-size: clamp(2rem, 6vw, 2.75rem); color: var(--texte); }
.etiquette-prix .libelle { letter-spacing: .16em; }
.etiquette-prix:hover { background: var(--surface); color: var(--texte); }
.etiquette-prix .lien-fleche { padding: 0; font-size: .8125rem; }
.etiquette-prix.apparait { animation: apparaitre .7s var(--ease) both; animation-delay: 1.1s; }
@keyframes apparaitre { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* sur grand écran, le fil sort de l'étiquette prix et file jusqu'à la prise du véhicule */
@media (min-width: 960px) {
  .heros-grille {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    grid-template-areas: "titre chapo" "titre actions" "scene scene";
    column-gap: var(--s5); row-gap: var(--s3); align-items: end;
  }
  .heros h1 { max-width: none; align-self: start; }
  .heros-actions .btn { flex: 0 1 auto; }
  .scene { display: grid; grid-template-columns: minmax(300px, 3fr) minmax(0, 9fr); align-items: start; margin-top: var(--s3); }
  .scene-dessin { grid-column: 2; grid-row: 1; }
  .etiquette-prix { grid-column: 1; grid-row: 1; justify-self: stretch; width: auto; margin-top: clamp(0px, calc((100vw - 960px) * .04), 12px); }
  .etiquette-prix::before { display: none; }
}
@media (max-width: 959px) {
  .scene { margin-inline: calc(var(--marge) * -1); }
  .scene-dessin svg.voiture-fil { width: 144%; max-width: none; margin-left: -42%; }
  .etiquette-prix { margin: 22px var(--marge) 0 auto; }
}

/* ---------- Liste des véhicules mis en avant (accueil) ---------- */

.liste-vehicules { list-style: none; margin: 0; padding: 0; }
.liste-vehicules > li { position: relative; }
.liste-vehicules > li + li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, var(--graphite) 0 6px, transparent 6px 11px) 0 0 / 11px 1px repeat-x;
}
.ligne-vehicule {
  display: grid; grid-template-columns: minmax(130px, 42%) 1fr; gap: var(--s1) var(--s3); align-items: center;
  padding: var(--s3) 0; text-decoration: none;
  transition: opacity .3s var(--ease);
}
.ligne-vehicule:hover { color: var(--texte); }
.ligne-vehicule .mini { grid-row: span 2; }
.ligne-vehicule .mini svg { width: 100%; }
.ligne-vehicule .mini img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--surface); }

/* héros avec vraie photo : le fil relie l'étiquette prix à la photo */
.heros-photo img { width: 100%; height: auto; display: block; background: var(--surface); }
.heros-photo .fil-photo { display: none; }
@media (min-width: 960px) {
  .heros-photo { display: grid; grid-template-columns: minmax(48px, 1fr) minmax(0, 4fr); align-items: start; }
  .heros-photo .fil-photo { display: block; width: 100%; height: 180px; overflow: visible; }
  .heros-photo img { width: auto; max-width: 100%; max-height: min(320px, 32vh); border-radius: var(--rayon); }
}
.ligne-vehicule h3 { font-stretch: 78%; font-size: clamp(1.5rem, 4.2vw, 2.5rem); line-height: 1; text-transform: uppercase; }
.ligne-vehicule .specs { color: var(--texte-2); font-size: 1rem; }
.ligne-vehicule .cote { display: flex; align-items: center; gap: var(--s2); grid-column: 2; }
.ligne-vehicule .prix { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.ligne-vehicule .fleche { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent); display: grid; place-items: center; color: var(--accent); flex: none; margin-left: auto; transition: background-color .25s var(--ease), color .25s var(--ease); }
.ligne-vehicule .fleche svg { width: 20px; height: 20px; }
.ligne-vehicule:hover .fleche, .ligne-vehicule:focus-visible .fleche { background: var(--accent); color: var(--sur-accent); }
.liste-vehicules:has(.ligne-vehicule:hover) .ligne-vehicule:not(:hover) { opacity: .42; }

@media (min-width: 760px) {
  .ligne-vehicule { grid-template-columns: clamp(240px, 30vw, 360px) minmax(0, 1fr) auto; padding: var(--s4) 0; gap: var(--s1) var(--s5); }
  .ligne-vehicule .mini { grid-row: auto; }
  .ligne-vehicule .cote { grid-column: auto; gap: var(--s3); }
  .ligne-vehicule .infos { display: grid; gap: .5rem; }
}

/* silhouettes au fil (cartes et listes sans photo) */
.silhouette path, .silhouette circle { fill: none; stroke: var(--texte-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke .3s var(--ease); }
.silhouette .vitre { stroke: var(--graphite); }
a:hover .silhouette path:not(.vitre), a:hover .silhouette circle, a:focus-visible .silhouette path:not(.vitre) { stroke: var(--accent); }

/* ---------- Deux métiers ---------- */

.metiers { display: grid; gap: var(--s5); }
.metier h3 { margin-bottom: var(--s2); }
.metier > p { color: var(--texte-2); }
.liste-cousue { list-style: none; margin: var(--s3) 0; padding: 0; }
.liste-cousue li { display: flex; gap: .9rem; align-items: baseline; padding: .85rem 0; position: relative; }
.liste-cousue li + li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, var(--graphite) 0 6px, transparent 6px 11px) 0 0 / 11px 1px repeat-x;
}
.liste-cousue svg { width: 20px; height: 20px; flex: none; color: var(--texte-2); position: relative; top: 3px; }
.liste-cousue strong { font-weight: 700; }
.liste-cousue span { color: var(--texte-2); }
@media (min-width: 900px) { .metiers { grid-template-columns: 1fr 1fr; gap: var(--s6); } }

/* ---------- Preuves (faits vérifiables) ---------- */

.preuves { display: grid; gap: 0; border-radius: var(--rayon); background: var(--surface); padding: var(--s2) clamp(var(--s3), 4vw, var(--s5)); }
.preuve { display: grid; grid-template-columns: auto 1fr; gap: .25rem var(--s3); padding: var(--s3) 0; position: relative; }
.preuve + .preuve::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, var(--graphite) 0 6px, transparent 6px 11px) 0 0 / 11px 1px repeat-x;
}
.preuve svg { width: 32px; height: 32px; color: var(--texte); grid-row: span 2; margin-top: 2px; }
.preuve h3 { font-stretch: 85%; font-size: 1.25rem; font-weight: 750; }
.preuve p { color: var(--texte-2); font-size: 1rem; margin: 0; }
@media (min-width: 900px) {
  .preuves { grid-template-columns: repeat(2, 1fr); column-gap: var(--s5); }
  .preuve:nth-child(2)::before { display: none; }
}

/* ---------- Avis ---------- */

.avis-vide { display: grid; gap: var(--s3); justify-items: start; }
.avis-vide .grand { font: 800 clamp(1.75rem, 5vw, 3rem)/1.05 var(--f-titre); font-stretch: 72%; text-transform: uppercase; max-width: 22ch; }
.avis-grille { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.avis-item { margin: 0; padding: var(--s3); border-radius: var(--rayon); background: var(--surface); display: grid; gap: var(--s2); align-content: start; }
.avis-item blockquote { margin: 0; font-size: 1.0625rem; }
.avis-item figcaption { color: var(--texte-2); font-size: .9375rem; }
.etoiles { display: flex; gap: 2px; color: var(--texte); }
.etoiles svg { width: 18px; height: 18px; }

/* ---------- Accès ---------- */

.acces { display: grid; gap: var(--s4); }
.acces-infos { display: grid; gap: var(--s3); align-content: start; }
.adresse { font-style: normal; font-size: 1.25rem; line-height: 1.45; }
.tel-geant {
  display: inline-block; font: 800 clamp(2.25rem, 8vw, 3.75rem)/1 var(--f-titre); font-stretch: 70%;
  color: var(--accent); text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.tel-geant:hover { color: var(--accent-2); }
.horaires { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem var(--s3); font-size: 1rem; }
.horaires dt { color: var(--texte-2); }
.horaires dd { margin: 0; font-variant-numeric: tabular-nums; }
.carte-plan { position: relative; border-radius: var(--rayon); overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; width: 100%; }
.carte-plan iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.6); }
.villes { color: var(--texte-2); font-size: 1rem; }
@media (min-width: 900px) { .acces { grid-template-columns: 5fr 7fr; gap: var(--s6); } .carte-plan { aspect-ratio: auto; min-height: 420px; } }

/* ---------- Pied de page ---------- */

.pied { padding-block: var(--s6) var(--s4); background: var(--fond); position: relative; }
.pied-grille { display: grid; gap: var(--s4); }
.pied .marque strong { font-size: 2rem; }
.pied h2 { font: 600 .8125rem/1.3 var(--f-titre); letter-spacing: .24em; text-transform: uppercase; color: var(--texte-2); margin-bottom: var(--s2); }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pied a { text-decoration: none; color: var(--texte); }
.pied a:hover { color: var(--accent-2); text-decoration: underline; }
.pied address { font-style: normal; color: var(--texte-2); }
.pied-legal { margin-top: var(--s5); padding-top: var(--s3); color: var(--texte-3); font-size: .875rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; position: relative; }
.pied-legal .piqure { position: absolute; left: 0; right: 0; top: 0; }
@media (min-width: 900px) { .pied-grille { grid-template-columns: 4fr 3fr 3fr 3fr; } }

/* ---------- En-tête de page intérieure ---------- */

.page-tete { padding-top: clamp(var(--s4), 6vw, var(--s6)); padding-bottom: var(--s3); }
.page-tete h1 { max-width: 18ch; }
.page-tete .chapo { margin-top: var(--s3); max-width: 52ch; }
.fil-ariane { margin-bottom: var(--s3); }
.fil-ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .6rem; font-size: .9375rem; color: var(--texte-2); }
.fil-ariane li + li::before { content: "/"; margin-right: .6rem; color: var(--graphite-2); }
.fil-ariane a { color: var(--texte-2); }
.fil-ariane a:hover { color: var(--accent-2); }

/* ---------- Stock : filtres ---------- */

.stock { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 1040px) { .stock { grid-template-columns: 300px minmax(0, 1fr); gap: var(--s5); } }

.filtres { border-radius: var(--rayon); background: var(--surface); }
.filtres > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  min-height: 60px; padding: 0 var(--s3);
  font: 700 1rem/1 var(--f-titre); font-stretch: 88%; letter-spacing: .12em; text-transform: uppercase;
}
.filtres > summary::-webkit-details-marker { display: none; }
.filtres > summary svg { width: 22px; height: 22px; color: var(--accent); transition: transform .25s var(--ease); }
.filtres[open] > summary svg { transform: rotate(180deg); }
.filtres-corps { padding: 0 var(--s3) var(--s3); display: grid; gap: var(--s3); }
.filtres fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filtres legend, .filtres .champ > .champ-libelle { padding: 0; margin-bottom: .75rem; font: 600 .8125rem/1.3 var(--f-titre); letter-spacing: .2em; text-transform: uppercase; color: var(--texte-2); display: flex; justify-content: space-between; width: 100%; }
.filtres output { color: var(--texte); letter-spacing: .04em; font-variant-numeric: tabular-nums; text-transform: none; font-size: .9375rem; }

.puces { display: flex; flex-wrap: wrap; gap: .5rem; }
.puce { position: relative; }
.puce input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.puce span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px;
  border: 1px dashed var(--graphite-2); color: var(--texte-2); font-size: 1rem;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.puce input:hover + span { border-color: var(--texte-2); color: var(--texte); }
.puce input:checked + span { background: var(--accent); border: 1px solid var(--accent); color: var(--sur-accent); font-weight: 700; }
.puce input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }

input[type="range"] { width: 100%; accent-color: var(--accent); height: 32px; cursor: pointer; }

.champ select, .champ input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .champ textarea {
  width: 100%; min-height: 54px; padding: .8rem 1rem;
  background: var(--fond); color: var(--texte);
  border: 1px solid var(--graphite); border-radius: 10px;
  font: 400 1.0625rem/1.4 var(--f-texte);
  transition: border-color .2s var(--ease);
}
.champ select { appearance: none; padding-right: 2.75rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2315171a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.champ textarea { min-height: 140px; resize: vertical; }
.champ input::placeholder, .champ textarea::placeholder { color: var(--texte-3); }
.champ select:hover, .champ input:hover, .champ textarea:hover { border-color: var(--graphite-2); }
.champ select:focus, .champ input:focus, .champ textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21, 23, 26, .16); }

.filtres-pied { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.btn-texte { background: none; border: 0; padding: .6rem 0; color: var(--texte-2); font: 400 1rem var(--f-texte); text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.btn-texte:hover { color: var(--accent-2); }

@media (min-width: 1040px) {
  .filtres { position: sticky; top: 88px; }
  .filtres > summary { pointer-events: none; }
  .filtres > summary svg { display: none; }
}

.resultats-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.compte { font: 700 1.125rem/1.2 var(--f-titre); font-stretch: 88%; letter-spacing: .06em; }
.tri { display: flex; align-items: center; gap: .75rem; }
.tri label { color: var(--texte-2); font-size: .9375rem; white-space: nowrap; }
.tri .champ select { min-height: 46px; width: auto; }

/* ---------- Cartes véhicules ---------- */

.grille-vehicules { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.carte-vehicule {
  display: flex; flex-direction: column; height: 100%;
  border-radius: var(--rayon); background: var(--surface); overflow: hidden; text-decoration: none;
  transition: opacity .3s var(--ease), background-color .3s var(--ease);
}
.carte-vehicule:hover { color: var(--texte); background: var(--surface-2); }
.grille-vehicules:has(.carte-vehicule:hover) .carte-vehicule:not(:hover) { opacity: .45; }
.carte-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.carte-media img { width: 100%; height: 100%; object-fit: cover; }
.carte-media .silhouette { width: 78%; }
.carte-media .sans-photo { position: absolute; left: var(--s2); bottom: .75rem; font-size: .8125rem; color: var(--texte-3); }
.statut {
  position: absolute; top: .75rem; left: .75rem; padding: .35rem .7rem; border-radius: 999px;
  background: var(--fond); color: var(--texte); font: 700 .75rem/1 var(--f-titre); letter-spacing: .16em; text-transform: uppercase;
}
.carte-corps { padding: var(--s3); display: grid; gap: .6rem; flex: 1; align-content: start; }
.carte-corps h3 { font-stretch: 80%; font-size: 1.5rem; line-height: 1.05; text-transform: uppercase; }
.carte-corps .sous { color: var(--texte-2); font-size: .9375rem; margin-top: -.25rem; }
.specs-ligne { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--texte-2); font-size: .9375rem; }
.specs-ligne li { display: inline-flex; align-items: center; gap: .4rem; font-variant-numeric: tabular-nums; }
.specs-ligne svg { width: 16px; height: 16px; color: var(--texte-3); }
.carte-pied { display: flex; align-items: end; justify-content: space-between; gap: var(--s2); padding: 0 var(--s3) var(--s3); }
.carte-pied .prix { font-size: 2.125rem; }
.carte-pied .ttc { font-size: .875rem; color: var(--texte-3); margin-left: .25rem; font-family: var(--f-texte); font-weight: 400; letter-spacing: 0; }
.carte-pied .fleche { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent); display: grid; place-items: center; color: var(--accent); transition: background-color .25s var(--ease), color .25s var(--ease); }
.carte-pied .fleche svg { width: 20px; height: 20px; }
.carte-vehicule:hover .fleche, .carte-vehicule:focus-visible .fleche { background: var(--accent); color: var(--sur-accent); }
.carte-vehicule.est-vendu .prix { text-decoration: line-through; color: var(--texte-3); }

.etat-vide { padding: var(--s5) var(--s3); border-radius: var(--rayon); border: 1px dashed var(--graphite-2); display: grid; gap: var(--s2); justify-items: start; }
.etat-vide h2 { font-stretch: 78%; font-size: 1.75rem; text-transform: uppercase; }
.etat-vide p { color: var(--texte-2); }

.chargement { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.chargement div { height: 380px; border-radius: var(--rayon); background: var(--surface); animation: respire 1.6s ease-in-out infinite; }
@keyframes respire { 50% { opacity: .55; } }

/* ---------- Fiche véhicule ---------- */

.fiche { display: grid; gap: var(--s4); grid-template-areas: "galerie" "cote" "details"; }
.fiche .galerie { grid-area: galerie; }
.fiche .fiche-cote { grid-area: cote; }
.fiche .fiche-details { grid-area: details; margin-top: var(--s3); }
@media (min-width: 1040px) {
  .fiche { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "galerie cote" "details cote"; column-gap: var(--s5); row-gap: 0; align-items: start; }
  .fiche .fiche-cote { position: sticky; top: 88px; }
  .fiche .fiche-details { margin-top: var(--s5); }
}

.galerie { display: grid; gap: .75rem; }
.galerie-vue {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--rayon); background: var(--surface-2);
  scrollbar-width: none;
}
.galerie-vue::-webkit-scrollbar { display: none; }
.galerie-vue figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; }
.galerie-vue img { width: 100%; height: 100%; object-fit: cover; }
.galerie-vue .silhouette { width: 82%; }
.galerie-vue figcaption { position: absolute; left: var(--s3); bottom: var(--s2); color: var(--texte-3); font-size: .9375rem; }
.galerie-vignettes { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
.galerie-vignettes button { flex: 0 0 88px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--surface-2); cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.galerie-vignettes button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.galerie-vignettes button:hover { opacity: 1; }
.galerie-vignettes img { width: 100%; height: 100%; object-fit: cover; }

.fiche-cote { display: grid; gap: var(--s3); }
.fiche-cote h1 { font-stretch: 70%; text-transform: uppercase; font-size: clamp(2.5rem, 7vw, 4rem); line-height: .92; }
.fiche-cote .sous { color: var(--texte-2); font-size: 1.125rem; margin-top: -.5rem; }
.fiche-prix { display: grid; gap: .5rem; padding: var(--s3); border-radius: var(--rayon); background: var(--surface); }
.fiche-prix .prix { font-size: clamp(3rem, 9vw, 4.25rem); }
.fiche-prix .prix small { font: 400 1rem var(--f-texte); color: var(--texte-2); margin-left: .35rem; letter-spacing: 0; }
.fiche-prix p { color: var(--texte-2); font-size: 1rem; margin: 0; }
.fiche-actions { display: grid; gap: .75rem; }
.fiche-actions .btn { width: 100%; }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.badges li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; border: 1px dashed var(--graphite-2); font-size: .9375rem; }
.badges svg { width: 16px; height: 16px; color: var(--texte-2); }

.caracteristiques { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.caracteristiques div { padding: var(--s2) 0; position: relative; padding-right: var(--s2); }
.caracteristiques div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--graphite) 0 6px, transparent 6px 11px) 0 0 / 11px 1px repeat-x; }
.caracteristiques dt { font: 600 .75rem/1.3 var(--f-titre); letter-spacing: .2em; text-transform: uppercase; color: var(--texte-2); margin-bottom: .35rem; }
.caracteristiques dd { margin: 0; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
@media (min-width: 700px) { .caracteristiques { grid-template-columns: repeat(3, 1fr); } }

.equipements { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: var(--s4); }
.equipements li { break-inside: avoid; display: flex; gap: .65rem; align-items: baseline; padding: .45rem 0; }
.equipements svg { width: 16px; height: 16px; color: var(--texte-3); flex: none; position: relative; top: 2px; }

.bloc-fiche { display: grid; gap: var(--s3); }
.bloc-fiche + .bloc-fiche { margin-top: var(--s5); }

/* ---------- Formulaires ---------- */

.formulaire { display: grid; gap: var(--s3); }
.formulaire .duo { display: grid; gap: var(--s3); }
@media (min-width: 700px) { .formulaire .duo { grid-template-columns: 1fr 1fr; } }
.champ { display: grid; gap: .5rem; }
.champ > label, .champ > .champ-libelle { font-weight: 700; font-size: 1rem; }
.champ .aide { color: var(--texte-2); font-size: .9375rem; }
.champ .facultatif { color: var(--texte-3); font-weight: 400; }
.champ .erreur { color: var(--alerte); font-size: .9375rem; display: none; }
.champ.invalide input, .champ.invalide textarea, .champ.invalide select { border-color: var(--alerte); }
.champ.invalide .erreur { display: block; }
.formulaire .mention { color: var(--texte-2); font-size: .9375rem; }
.formulaire .btn { justify-self: start; }
@media (max-width: 699px) { .formulaire .btn { width: 100%; } }
.pot-de-miel { position: absolute; left: -9999px; }

.panneau { border-radius: var(--rayon); background: var(--surface); padding: clamp(var(--s3), 4vw, var(--s5)); }

/* ---------- Atelier ---------- */

.prestations { display: grid; gap: 0; }
.prestation { display: grid; gap: .5rem var(--s4); padding: var(--s4) 0; position: relative; }
.prestation::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--graphite) 0 6px, transparent 6px 11px) 0 0 / 11px 1px repeat-x; }
.prestation h3 { font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.75rem, 5vw, 2.75rem); line-height: 1; }
.prestation p { color: var(--texte-2); }
.prestation ul { margin: 0; padding-left: 1.1rem; color: var(--texte-2); }
.prestation ul li::marker { color: var(--graphite-2); }
@media (min-width: 900px) { .prestation { grid-template-columns: 5fr 7fr; align-items: baseline; } }

.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); counter-reset: etape; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 56px 1fr; gap: var(--s2); align-items: start; }
.etapes li::before {
  content: counter(etape); width: 48px; height: 48px; border-radius: 50%; border: 1px dashed var(--graphite-2);
  display: grid; place-items: center; font: 800 1.375rem/1 var(--f-titre); font-stretch: 75%; color: var(--texte);
}
.etapes h3 { font-stretch: 85%; font-size: 1.25rem; margin: .6rem 0 .35rem; }
.etapes p { color: var(--texte-2); margin: 0; font-size: 1rem; }
@media (min-width: 900px) { .etapes { grid-template-columns: repeat(4, 1fr); } .etapes li { grid-template-columns: 1fr; } }

/* ---------- Qui sommes-nous ---------- */

.portrait { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .portrait { grid-template-columns: 5fr 7fr; gap: var(--s6); align-items: center; } }
.photo-attente {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--rayon); background: var(--surface);
  display: grid; place-items: center; text-align: center; padding: var(--s3); color: var(--texte-3); font-size: .9375rem;
  outline: 1px dashed var(--graphite-2); outline-offset: -12px;
}
.photo-attente svg { width: 48px; height: 48px; color: var(--graphite-2); margin: 0 auto var(--s2); }
.photo-attente.large { aspect-ratio: 16 / 10; }
.photos-garage { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.valeurs { display: grid; gap: 0; }
.valeur { padding: var(--s4) 0; position: relative; display: grid; gap: .5rem var(--s4); }
.valeur::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--graphite) 0 6px, transparent 6px 11px) 0 0 / 11px 1px repeat-x; }
.valeur h3 { font-stretch: 70%; text-transform: uppercase; font-size: clamp(2rem, 6vw, 3.5rem); line-height: .95; }
.valeur p { color: var(--texte-2); }
@media (min-width: 900px) { .valeur { grid-template-columns: 5fr 7fr; align-items: baseline; } }

/* ---------- Pages texte (mentions) ---------- */

.texte-long { max-width: 72ch; }
.texte-long h2 { font-stretch: 78%; font-size: 1.75rem; text-transform: uppercase; margin: var(--s5) 0 var(--s2); }
.texte-long h2:first-child { margin-top: 0; }
.texte-long p, .texte-long li { color: var(--texte-2); }
.texte-long strong { color: var(--texte); }
.texte-long .a-completer { color: var(--accent); }

/* ---------- Bandeau d'appel final ---------- */

.final { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); justify-items: start; }
.acces-infos, .avis-vide { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 899px) { .acces, .metiers, .heros-grille { grid-template-columns: minmax(0, 1fr); } }
.final .monumental { max-width: 14ch; }

/* ---------- Repères sous le haut de page ---------- */

.reperes {
  list-style: none; margin-top: var(--s3); margin-bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s3);
  background:
    linear-gradient(90deg, var(--graphite) 0 6px, transparent 6px 11px) 0 0 / 11px 1px repeat-x,
    linear-gradient(90deg, var(--graphite) 0 6px, transparent 6px 11px) 0 100% / 11px 1px repeat-x;
  background-origin: content-box; background-clip: content-box;
}
.reperes li { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 0; font-size: .9375rem; line-height: 1.35; color: var(--texte-2); }
.reperes strong { color: var(--texte); font-weight: 700; }
.reperes svg { width: 26px; height: 26px; flex: none; color: var(--texte); }
@media (min-width: 900px) { .reperes { grid-template-columns: repeat(4, 1fr); } .reperes li { font-size: 1rem; } }

/* ---------- Cartes : nombre de photos, seconde photo au survol ---------- */

.carte-media img { transition: transform .6s var(--ease), opacity .35s var(--ease); }
.carte-media img.survol { position: absolute; inset: 0; opacity: 0; }
.carte-media .statut, .nb-photos { z-index: 1; }
.nb-photos, .galerie-compteur {
  position: absolute; right: .75rem; bottom: .75rem;
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 999px;
  background: rgba(21, 23, 26, .74); color: #fff;
  font: 600 .75rem/1 var(--f-titre); letter-spacing: .08em; font-variant-numeric: tabular-nums;
}
.nb-photos svg { width: 14px; height: 14px; }
@media (hover: hover) {
  .carte-vehicule:hover .carte-media img.survol { opacity: 1; }
  .carte-vehicule:hover .carte-media img { transform: scale(1.03); }
}

/* ---------- Galerie de la fiche ---------- */

.galerie-cadre { position: relative; }
.galerie-vue img { cursor: zoom-in; }
.galerie-nav, .galerie-plein, .visionneuse-fermer {
  position: absolute; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(21, 23, 26, .7); color: #fff;
  transition: opacity .2s var(--ease), background-color .2s var(--ease);
}
.galerie-nav { top: 50%; width: 46px; height: 46px; margin-top: -23px; }
.galerie-nav svg { width: 20px; height: 20px; }
.galerie-nav.prec { left: .75rem; }
.galerie-nav.prec svg { transform: rotate(180deg); }
.galerie-nav.suiv { right: .75rem; }
.galerie-nav:hover, .galerie-plein:hover, .visionneuse-fermer:hover { background: rgba(21, 23, 26, .9); }
.galerie-nav:disabled { opacity: 0; pointer-events: none; }
.galerie-compteur { left: .75rem; right: auto; font-size: .8125rem; }
.galerie-plein { right: .75rem; bottom: .75rem; width: 42px; height: 42px; }
.galerie-plein svg { width: 18px; height: 18px; }
@media (hover: none) { .galerie-cadre .galerie-nav { display: none; } }

.visionneuse { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0e0f11; color: #fff; }
.visionneuse::backdrop { background: #0e0f11; }
.visionneuse-vue { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.visionneuse-vue::-webkit-scrollbar { display: none; }
.visionneuse figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; position: relative; padding: 64px 16px; }
.visionneuse img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.visionneuse figcaption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font: 600 .875rem/1 var(--f-titre); letter-spacing: .12em; color: rgba(255, 255, 255, .75); }
.visionneuse .galerie-nav, .visionneuse-fermer { background: rgba(255, 255, 255, .14); }
.visionneuse .galerie-nav:hover, .visionneuse-fermer:hover { background: rgba(255, 255, 255, .26); }
.visionneuse-fermer { top: 14px; right: 14px; width: 48px; height: 48px; }
.visionneuse-fermer svg { width: 22px; height: 22px; }
.visionneuse :focus-visible { outline-color: #fff; }

/* ---------- Partage et barre mobile de la fiche ---------- */

.btn-partager {
  justify-self: start; display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 0;
  background: none; border: 0; color: var(--texte); cursor: pointer;
  font: 600 .8125rem/1 var(--f-titre); letter-spacing: .14em; text-transform: uppercase;
}
.btn-partager svg { width: 18px; height: 18px; }
.btn-partager span { text-decoration: underline; text-decoration-color: var(--graphite); text-underline-offset: .35em; }
.btn-partager:hover span { text-decoration-color: var(--texte); }
.barre-appel .btn-interesse { flex: 1; background: var(--fond); font-size: .9375rem; }

/* ---------- Page « Je suis intéressé » ---------- */

.vehicule-choisi {
  display: grid; grid-template-columns: 120px 1fr; gap: var(--s3); align-items: center;
  padding: var(--s2); margin-bottom: var(--s4); border-radius: var(--rayon); background: var(--surface); text-decoration: none;
}
.vehicule-choisi:hover { color: var(--texte); background: var(--surface-2); }
.vc-media img, .vc-media svg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.vc-texte { display: grid; gap: .2rem; }
.vc-texte strong { font: 800 1.5rem/1.05 var(--f-titre); font-stretch: 78%; text-transform: uppercase; }
.vc-texte > span:not(.libelle):not(.prix) { color: var(--texte-2); font-size: .9375rem; }
.vc-texte .prix { font-size: 1.5rem; margin-top: .2rem; }
@media (min-width: 700px) { .vehicule-choisi { grid-template-columns: 180px 1fr; max-width: 640px; } }

.choix { display: grid; gap: var(--s3); }
.choix-bloc { display: grid; gap: var(--s2); align-content: start; justify-items: start; padding: clamp(var(--s3), 4vw, var(--s5)); border-radius: var(--rayon); border: 1px dashed var(--graphite-2); }
.choix-bloc > svg { width: 36px; height: 36px; }
.choix-bloc p { color: var(--texte-2); margin: 0; }
.choix-bloc .btn { margin-top: var(--s1); }
@media (min-width: 900px) { .choix { grid-template-columns: 1fr 1fr; } }
@media (max-width: 699px) { .choix-bloc .btn { width: 100%; } }

body[data-page="interesse"] { --barre-appel: 0px; }
body[data-page="interesse"] .barre-appel { display: none; }

.tel-discret { margin: .25rem 0 0; text-align: center; color: var(--texte-2); font-size: .9375rem; }
.tel-discret a { color: var(--texte); font-weight: 700; white-space: nowrap; }

/* ---------- Effet « waouh » : titres et photo vedette ---------- */

.mots .mot { display: inline-block; overflow: hidden; vertical-align: top; padding-top: .1em; margin-top: -.1em; padding-bottom: .04em; margin-bottom: -.04em; }
.mots .mot > span { display: inline-block; }
/* titres du haut de page : au chargement */
.heros h1.mots .mot > span, .page-tete h1.mots .mot > span { transform: translateY(110%); animation: mot-monte 1s var(--ease) forwards; animation-delay: calc(120ms + var(--i) * 60ms); }
@keyframes mot-monte { to { transform: none; } }
/* titres de section : quand le bloc arrive à l'écran */
.js-revele .revele .titre-section.mots .mot > span { transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.js-revele .revele.vu .titre-section.mots .mot > span { transform: none; }

/* photo du véhicule vedette : dévoilée d'un balayage, puis se pose */
.heros-photo img { animation: photo-devoile 1.4s var(--ease) .45s both; }
@keyframes photo-devoile {
  from { clip-path: inset(0 100% 0 0 round var(--rayon)); transform: scale(1.06); }
  to { clip-path: inset(0 0 0 0 round var(--rayon)); transform: none; }
}

/* ---------- Effets discrets ---------- */

.js-revele .revele { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js-revele .revele.vu { opacity: 1; transform: none; }

.entete { transition: box-shadow .3s var(--ease); }
.entete.defile { box-shadow: 0 8px 24px -16px rgba(21, 23, 26, .35); }
.entete.defile .piqure { opacity: 0; }

.btn-or { position: relative; overflow: hidden; }
.btn-or::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .18) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-or:hover::after { transform: translateX(120%); }

/* catalogue : les cartes arrivent en cascade, à chaque filtrage */
#grille .grille-vehicules > li { animation: carte-arrive .6s var(--ease) both; }
#grille .grille-vehicules > li:nth-child(2) { animation-delay: 60ms; }
#grille .grille-vehicules > li:nth-child(3) { animation-delay: 120ms; }
#grille .grille-vehicules > li:nth-child(4) { animation-delay: 180ms; }
#grille .grille-vehicules > li:nth-child(5) { animation-delay: 240ms; }
#grille .grille-vehicules > li:nth-child(n+6) { animation-delay: 300ms; }
#grille .etat-vide { animation: apparaitre .5s var(--ease) both; }
@keyframes carte-arrive { from { opacity: 0; transform: translateY(16px); } }

/* fiche véhicule : galerie, puis prix, puis détails */
#fiche > * { animation: apparaitre .7s var(--ease) both; }
#fiche > .fiche-cote { animation-delay: 120ms; }
#fiche > .fiche-details { animation-delay: 240ms; }

/* accueil : le fil court sous l'en-tête au fil de la lecture */
@supports (animation-timeline: scroll()) {
  body[data-page="accueil"] .entete::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
    background: var(--accent); transform-origin: left; transform: scaleX(0);
    animation: progression linear both; animation-timeline: scroll(root);
  }
  @keyframes progression { to { transform: scaleX(1); } }

  /* la photo vedette recule doucement quand on défile */
  .heros-photo { animation: photo-recule linear both; animation-timeline: view(); animation-range: exit; }
  @keyframes photo-recule { to { transform: translateY(8%) scale(.97); opacity: .5; } }
}

/* les pictos se dessinent d'un trait quand leur bloc arrive à l'écran */
.js-revele .reperes > li svg *, .js-revele .preuve svg *, .js-revele .metier .liste-cousue svg * {
  stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.4s var(--ease) .25s;
}
.js-revele .liste-cousue li:nth-child(2) svg * { transition-delay: .4s; }
.js-revele .liste-cousue li:nth-child(3) svg * { transition-delay: .55s; }
.js-revele .liste-cousue li:nth-child(4) svg * { transition-delay: .7s; }
.js-revele .reperes > li.vu svg *, .js-revele .preuve.vu svg *, .js-revele .metier.vu .liste-cousue svg * { stroke-dashoffset: 0; }

/* gros numéro : un trait se tire dessous au survol */
.tel-geant { position: relative; }
.tel-geant::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: 3px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.tel-geant:hover::after, .tel-geant:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .dessine path, .dessine circle { stroke-dashoffset: 0; }
  .etiquette-prix.apparait, #grille .grille-vehicules > li, #grille .etat-vide, #fiche > * { animation: none; }
  body[data-page="accueil"] .entete::after, .heros-photo { animation: none; }
}

@media print {
  .entete, .barre-appel, .pied, .fil, .filtres { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
}

/* ---------- Fiche : faits clés sous le titre ---------- */
.faits-cles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--graphite); border: 1px solid var(--graphite); border-radius: var(--rayon); overflow: hidden; }
.faits-cles li { background: var(--fond); padding: .9rem 1rem; display: grid; grid-template-columns: auto 1fr; column-gap: .65rem; align-items: center; }
.faits-cles svg { width: 22px; height: 22px; grid-row: span 2; color: var(--texte-2); }
.faits-cles span { font: 600 .75rem/1.2 var(--f-titre); letter-spacing: .14em; text-transform: uppercase; color: var(--texte-2); }
.faits-cles strong { font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.filtres .champ:has(#f-tri) { display: none; }

/* ---------- Moins de blanc : espacements resserrés, fonds alternés, pied de page sombre ---------- */
.section { padding-block: clamp(2rem, 6vw, 4.5rem); }
.section-tete { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.heros { padding-bottom: var(--s3); }
.page-tete { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: var(--s2); }
.fil { height: clamp(24px, 4vw, 48px); }
.reperes { margin-top: 0; }

/* bandes grises pleine largeur */
.bande { background: var(--surface); box-shadow: 0 0 0 100vmax var(--surface); clip-path: inset(0 -100vmax); }
.bande + .fil, .fil + .bande { margin-top: 0; }
.bande .carte-vehicule, .bande .carte-media { background: var(--fond); }

/* pied de page sombre */
.pied { background: #15171a; color: #f2f2ef; }
.pied .marque strong, .pied a { color: #f2f2ef; }
.pied .marque span, .pied h2, .pied address, .pied p, .horaires dt { color: #b7b9bd; }
.pied .horaires dd { color: #f2f2ef; }
.pied-legal { color: #9a9ca1; }
.pied .piqure { background: linear-gradient(90deg, #3d4046 0 6px, transparent 6px 11px) 0 0 / 11px 1px repeat-x; }
.pied a:hover { color: #fff; }.bande .filtres, .bande .etat-vide { background: var(--fond); }
.pied-grille p { color: #b7b9bd !important; }

/* ---------- Logo BEA (monogramme) ---------- */
.marque { display: inline-grid; grid-template-columns: auto auto; column-gap: .65rem; align-items: center; }
.marque::before {
  content: "B"; grid-row: span 2; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; background: var(--accent); color: #fff;
  font: 800 1.5rem/1 var(--f-titre); font-stretch: 80%;
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, .9), inset 0 -7px 0 var(--accent);
}
.marque span { margin-top: .2rem; }
.pied .marque::before { background: #fff; color: #15171a; box-shadow: inset 0 -4px 0 #15171a, inset 0 -7px 0 #fff; }

/* ---------- Photo d'accueil plus grande sur ordinateur ---------- */
@media (min-width: 960px) {
  .heros-photo { grid-template-columns: minmax(40px, .6fr) minmax(0, 5fr); }
  .heros-photo img { max-height: min(440px, 42vh); }
}.etoiles svg { fill: currentColor; }
#avis[hidden] { display: none; }
@media (max-width: 420px) { .entete .marque strong { font-size: 1.15rem; white-space: nowrap; } .entete .marque::before { width: 36px; height: 36px; font-size: 1.35rem; } }

/* logo : texte seul */
.marque { display: inline-flex; flex-direction: column; }
.marque::before, .pied .marque::before, .entete .marque::before { content: none; display: none; }
.marque { align-items: flex-start; text-align: left; }
.marque span { margin-top: .35rem; }
