/* ==========================================================================
   Mise en page — modèle « vendeur VO, référencement », charte AUTO-HADRI
   Aucun contenu ici : tout vient de data/contenu.js (HTML pré-rendu par outils/prerendu_vo.js).
   Grille de 8 px (4 px pour les micro-ajustements). Mobile d'abord.
   ========================================================================== */

/* Anek Latin (Ek Type) : humaniste comme le nom de son logo, compacte, les longs titres français tiennent sur téléphone.
   Asap (Omnibus-Type) : texte, chiffres tabulaires, trait d'union court (0,57 × n). Licences OFL (voir fonts/). */
@font-face { font-family: "Anek Latin"; src: url("../fonts/anek-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Asap"; src: url("../fonts/asap.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  /* Vert profond : la destination, ses clients partent pour l'Algérie. Rouge : ses banderoles « OCCASION ». Crème : ses plaques.
     Contrastes : encre sur papier 15:1 ; gris 5,2:1 (4,7:1 sur lin) ; blanc sur rouge 5,4:1 ; blanc sur vert 8,4:1 ; crème sur nuit 14:1. */
  --papier: #F5F2EA;
  --lin: #EAE5D9;
  --carte: #FCFAF5;
  --encre: #11201A;
  --encre-2: #33443C;
  --gris: #586860;
  --filet: #D8D4C7;
  --filet-fort: #A5A79B;
  --vert: #0E5A41;
  --vert-fonce: #0A4632;
  --rouge: #C8202D;
  --rouge-fonce: #A81825;
  --rouge-texte: #B91C29;
  --rouge-vif: #FF7A7F;
  --nuit: #0E2019;
  --nuit-2: #15302A;
  --clair: #F4F1E8;
  --blanc: #FFFFFF;
  --jaune-google: #FBBC05;

  --titre: "Anek Latin", "Segoe UI", system-ui, sans-serif;
  --sans: "Asap", system-ui, -apple-system, "Segoe UI", sans-serif;
  --oblique: -49.6deg; /* la pente de son logo : la route que grimpe la voiture */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");

  --marge: 16px;
  --entete: 64px;
  --max: 1440px;
  --section: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (min-width: 600px) { :root { --marge: 32px; --section: 80px; } }
@media (min-width: 1024px) { :root { --marge: 48px; --entete: 80px; --section: 104px; } }
@media (min-width: 1600px) { :root { --marge: 64px; --section: 120px; --max: 1600px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--entete); background: var(--nuit); }
html.fige { overflow: hidden; }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font: 400 16px/24px var(--sans); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--vert); outline-offset: 3px; }
.sombre :focus-visible, .hero :focus-visible, .entete :focus-visible { outline-color: var(--clair); }
::selection { background: var(--rouge); color: var(--blanc); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.evitement { position: fixed; left: 16px; top: -64px; z-index: 300; padding: 12px 16px; background: var(--rouge); color: var(--blanc); font-weight: 600; text-decoration: none; }
.evitement:focus { top: 16px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.conteneur { width: 100%; max-width: calc(var(--max) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }

/* Sections sombres : jetons inversés, les composants suivent */
.sombre, .hero, .entete, .menu {
  --encre: #F4F1E8; --encre-2: #D5DBD3; --gris: #A7B5AD; --filet: rgba(244, 241, 232, .16); --filet-fort: rgba(244, 241, 232, .42); --carte: #15302A;
  color: var(--encre);
}

/* --------------------------------------------------------------------------
   Fonds : grain léger partout, papier / lin en alternance nette, anthracite « bandeau AUTO » pour le sombre
   -------------------------------------------------------------------------- */
.section { position: relative; isolation: isolate; padding-block: var(--section); overflow-x: clip; }
.section::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grain); opacity: .07; }
.stock, .avis { background: var(--papier); }
.demandes, .acces { background: var(--lin); }
/* fonds clairs jamais nus : la voiture de son logo, en filigrane très léger */
.section__filigrane { position: absolute; z-index: -1; right: -8%; top: 32px; width: min(92vw, 720px); color: var(--encre); opacity: .05; pointer-events: none; }
.section__filigrane svg { width: 100%; height: auto; }
.sombre .section__filigrane { color: var(--clair); opacity: .04; }
@media (max-width: 767px) { .section__filigrane { right: -24%; top: 16px; } }
.sombre { background: linear-gradient(180deg, #123127 0, var(--nuit) 38%, #0A1712 100%); }
.sombre::before { opacity: .1; mix-blend-mode: screen; filter: invert(1); }

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */
.surtitre { display: flex; align-items: center; gap: 12px; font: 600 12px/16px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
/* la barre oblique du logo : un petit bandeau rouge penché */
.surtitre i { flex: none; width: 24px; height: 8px; background: var(--rouge); transform: skewX(var(--oblique)); transform-origin: left center; }
.sombre .surtitre i { background: var(--rouge-vif); }
.titre, .hero__titre, .fiche__titre, .appel-stock__titre { font-family: var(--titre); font-weight: 600;  letter-spacing: -.01em; }
.titre { font-size: 30px; line-height: 36px; }
.titre .ligne, .hero__titre .ligne { display: block; text-wrap: balance; }
.chapo { font-size: 18px; line-height: 28px; color: var(--encre-2); max-width: 56ch; text-wrap: pretty; }
.tete { display: grid; gap: 16px; max-width: 920px; margin-bottom: 32px; }
.tete .chapo { margin-top: 8px; }
@media (min-width: 768px) { .titre { font-size: 40px; line-height: 48px; } .tete { margin-bottom: 40px; } }
@media (min-width: 1024px) {
  .tete { margin-bottom: 56px; }
  .chapo { font-size: 19px; line-height: 30px; }
  /* en-tête en deux colonnes quand il laisserait la droite vide */
  .tete--deux { max-width: none; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: end; }
  .tete--deux .surtitre { grid-column: 1 / -1; }
  .tete--deux .chapo { margin: 0; padding-left: 32px; border-left: 1px solid var(--filet-fort); }
}
@media (min-width: 1280px) { .titre { font-size: 48px; line-height: 56px; } }
@media (min-width: 1920px) { .titre { font-size: 56px; line-height: 64px; } }

/* Surlignage rouge (celui du bandeau « SD »), texte blanc : rare, et toujours après son texte */
mark.accent {
  color: var(--blanc); padding: .02em .14em; margin: 0 -.04em; border-radius: 2px;
  background: linear-gradient(var(--rouge), var(--rouge)) no-repeat 0 55% / 100% 92%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1.2s var(--ease), color .45s ease .3s;
}
.mvt mark.accent:not(.est-vue) { background-size: 0% 92%; color: inherit; transition-delay: 0s; }
.avis-carte mark { color: var(--encre); font-weight: 600; background: linear-gradient(var(--rouge), var(--rouge)) no-repeat 0 100% / 100% 2px; padding-bottom: 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 1.1s var(--ease); }
.mvt .avis-carte:not(.est-vue) mark { background-size: 0% 2px; }
.souligne { --trait: 2px; background: linear-gradient(var(--rouge), var(--rouge)) no-repeat 0 100% / 100% var(--trait); padding-bottom: 2px; transition: background-size 1.1s var(--ease); }
.mvt .souligne:not(.est-vue) { background-size: 0% var(--trait); }

.mot { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .12em; margin: 0 -.06em -.12em; }
.mot > span { display: inline-block; will-change: transform; }

/* --------------------------------------------------------------------------
   Logo (SVG du prospect, appelé par <use>) : voiture + nom ; le sous-titre « achat - vente - export » seulement en grand
   -------------------------------------------------------------------------- */
.logo-ah { width: 168px; height: auto; aspect-ratio: 1911 / 455; overflow: visible; fill: currentColor; }
.logo-ah__sous { display: none; }
.logo-ah--sous .logo-ah__sous, .intro__logo .logo-ah__sous { display: inline; }
.silhouette-ah { fill: currentColor; overflow: visible; }
@media (min-width: 375px) { .logo-ah { width: 184px; } }
@media (min-width: 1024px) { .logo-ah { width: 224px; } }

/* --------------------------------------------------------------------------
   Boutons, liens, étoiles
   -------------------------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .bouton { flex: 1 1 auto; }
.bouton {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 24px; border: 0; border-radius: 4px;
  font: 600 16px/24px var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.bouton svg { width: 20px; height: 20px; flex: none; }
.bouton__texte { position: relative; display: inline-flex; align-items: center; gap: 12px; }
.bouton--plein { background: var(--vert); color: var(--blanc); }
.bouton--plein:hover { background: var(--vert-fonce); }
.bouton--clair, .sombre .bouton--plein, .barre .bouton--plein, .menu .bouton--plein { background: var(--clair); color: var(--nuit); }
.bouton--clair:hover, .sombre .bouton--plein:hover, .barre .bouton--plein:hover, .menu .bouton--plein:hover { background: var(--blanc); }
.bouton--contour { color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--filet-fort); }
.bouton--contour:hover { box-shadow: inset 0 0 0 1.5px var(--encre); }
/* reflet chromé au survol, dans l'angle de la barre du logo */
.bouton::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); transform: translateX(-110%); transition: transform .8s var(--ease); }
.bouton:hover::before { transform: translateX(110%); }
.bouton:active .bouton__texte { transform: translateY(1px); }

.lien-fleche { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; padding-bottom: 2px; }
.lien-fleche svg { width: 16px; height: 16px; }

.etoiles { display: inline-flex; gap: 2px; }
.etoiles i { display: block; width: 16px; height: 16px; }
.etoiles svg { width: 16px; height: 16px; color: var(--jaune-google); }
.g-logo { width: 20px; height: 20px; flex: none; }
.avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--vert); color: var(--blanc); font: 600 16px/1 var(--titre); }

/* --------------------------------------------------------------------------
   Intro : la voiture du logo monte sa pente, roues qui tournent, puis le nom ; le logo rejoint l'en-tête
   -------------------------------------------------------------------------- */
html.intro::before { content: ""; position: fixed; inset: 0; z-index: 200; background: var(--nuit); }
.intro { position: fixed; inset: 0; z-index: 201; display: grid; place-items: center; pointer-events: auto; color: var(--clair); }
.intro__voile { position: absolute; inset: 0; background: var(--nuit); }
.intro__logo { position: relative; width: min(84vw, 760px); transform-origin: 0 0; will-change: transform; }
.intro__logo .logo-ah { width: 100%; }

/* --------------------------------------------------------------------------
   En-tête et menu (anthracite, comme le bandeau du logo)
   -------------------------------------------------------------------------- */
.entete { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--entete); transform: translateZ(0); backface-visibility: hidden; transition: background-color .3s linear, box-shadow .3s linear; }
.entete--plein, .est-defile .entete { background: rgba(14, 32, 25, .97); box-shadow: 0 1px 0 rgba(244, 241, 232, .08); }
.entete__barre { height: 100%; display: flex; align-items: center; gap: 16px; padding-inline: var(--marge); max-width: calc(var(--max) + 2 * var(--marge)); margin-inline: auto; }
.entete__logo { display: block; flex: none; }
.nav { margin-left: auto; display: none; }
.nav ul { display: flex; gap: 32px; }
.nav a, .entete__tel span { font: 500 15px/20px var(--sans); letter-spacing: .02em; text-decoration: none; background: linear-gradient(var(--clair), var(--clair)) no-repeat 100% 100% / 0 2px; padding-block: 6px; transition: background-size .45s var(--ease); }
.nav a:hover, .entete__tel:hover span { background-size: 100% 2px; background-position: 0 100%; }
.entete__tel { margin-left: auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--clair); color: var(--nuit); text-decoration: none; }
.entete__tel svg { width: 20px; height: 20px; }
.entete__tel span { display: none; }
.menu-bouton { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 0 0 8px; background: none; border: 0; font: 600 13px/20px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.menu-bouton__traits { position: relative; width: 24px; height: 12px; }
.menu-bouton__traits i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-bouton__traits i:first-child { top: 0; }
.menu-bouton__traits i:last-child { top: 10px; }
.menu-bouton[aria-expanded="true"] .menu-bouton__traits i:first-child { top: 5px; transform: rotate(45deg); }
.menu-bouton[aria-expanded="true"] .menu-bouton__traits i:last-child { top: 5px; transform: rotate(-45deg); }
@media (max-width: 419px) { .menu-bouton__texte { display: none; } .menu-bouton { padding-left: 4px; } }
@media (min-width: 1024px) {
  .nav { display: block; }
  .entete__tel { margin-left: 16px; width: auto; height: auto; padding: 0; border-radius: 0; background: none; color: var(--encre); display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
  .entete__tel svg { width: 18px; height: 18px; color: var(--clair); }
  .entete__tel span { display: inline; font-weight: 600; }
  .menu-bouton { display: none; }
}
.menu { position: fixed; inset: 0; z-index: 55; background: var(--nuit); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: calc(var(--entete) + 24px) var(--marge) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; }
.menu__liens a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--filet); text-decoration: none; font: 600 32px/44px var(--titre);  }
.menu__liens a svg { width: 24px; height: 24px; color: var(--gris); align-self: center; }
.menu__pied { display: grid; gap: 16px; }
.menu__adresse { color: var(--gris); font-size: 14px; line-height: 20px; }

/* --------------------------------------------------------------------------
   Hero plein cadre : la photo couvre tout l'écran, recadrages dédiés (photos-brutes/composer_hero.py), voiture jamais coupée.
   Téléphone : voiture en haut, texte en bas sur le voile. Ordinateur : texte à gauche sur le voile, voiture à droite.
   -------------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--nuit); height: 100svh; min-height: 568px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__cadre { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--nuit); container-type: inline-size; cursor: pointer; }
.hero__plan { position: absolute; inset: 0; opacity: 0; background: var(--nuit); }
.hero__plan.est-actif { opacity: 1; z-index: 2; }
.hero__plan.est-sortant { opacity: 1; z-index: 1; }
.hero__plan picture, .hero__plan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
html:not(.mvt) .hero__plan { transition: opacity .8s ease; }
/* la pente du logo : une bande rouge (ses banderoles) qui balaie le cadre pendant la transition */
.hero__barre { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transform: translateX(calc(var(--r, -100) * 1cqi)); }
.hero__barre b { --l: clamp(10px, 2.2cqi, 32px); position: absolute; top: 0; bottom: 0; left: calc(var(--l) * -1); width: var(--l); transform: skewX(var(--oblique)); transform-origin: 0 100%; background: var(--rouge); box-shadow: 3px 0 0 0 var(--clair); }
.hero__barre.est-active { opacity: 1; }
.hero__voile { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(14, 32, 25, .78) 0, rgba(14, 32, 25, .2) 10%, rgba(14, 32, 25, 0) 15%, rgba(14, 32, 25, 0) 40%, rgba(14, 32, 25, .86) 52%, var(--nuit) 62%); }
.hero__contenu { display: grid; gap: 12px; padding: 0 var(--marge) calc(24px + env(safe-area-inset-bottom)); container-type: inline-size; }
.hero__legende { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font: 600 14px/20px var(--sans); color: var(--clair); text-decoration: none; transition: opacity .25s linear; }
.hero__legende svg { width: 16px; height: 16px; flex: none; transition: transform .45s var(--ease); }
.hero__legende:hover svg { transform: translateX(4px); }
.hero__legende.est-change { opacity: 0; }
.hero__texte-bloc { display: grid; gap: 12px; }
.hero__titre { font-size: min(8.9cqi, 56px); line-height: 1.12; letter-spacing: -.012em; }
.hero__titre .ligne { display: block; text-wrap: balance; }
.hero__titre mark.accent { line-height: 1.3; }
.hero__texte { color: var(--encre-2); font-size: 15px; line-height: 22px; max-width: 54ch; text-wrap: pretty; }
.hero__actions { max-width: 480px; }
.hero__actions .bouton { min-height: 52px; padding-inline: 12px; }
.hero__actions .bouton__texte { gap: 8px; }
@media (max-height: 619px) and (max-aspect-ratio: 5/4) { .hero__texte { display: none; } }
@media (min-width: 600px) and (max-aspect-ratio: 5/4) { .hero__contenu { gap: 16px; padding-bottom: 40px; } .hero__texte { font-size: 18px; line-height: 28px; } .hero__titre { font-size: min(7.4cqi, 56px); } }
/* écrans presque carrés (fenêtres, tablettes) : la photo large, calée en haut à droite sur 70 % de la hauteur, le texte dessous :
   la voiture reste entière et jamais sous le texte, quelle que soit la proportion entre 4:5 et 5:4 */
@media (min-aspect-ratio: 4001/5000) and (max-aspect-ratio: 4999/4000) {
  .hero__plan picture { top: 0; bottom: auto; left: auto; right: 0; width: auto; height: 70%; aspect-ratio: 16 / 9; display: block; }
  .hero__plan picture::after { content: ""; position: absolute; inset: auto 0 0; height: 24%; background: linear-gradient(180deg, rgba(14, 32, 25, 0), var(--nuit)); }
  .hero__plan img { object-position: 50% 50%; }
  .hero__voile { background: linear-gradient(180deg, rgba(14, 32, 25, .72) 0, rgba(14, 32, 25, 0) 14%), linear-gradient(90deg, rgba(14, 32, 25, .55) 0, rgba(14, 32, 25, 0) 34%); }
  .hero__titre { font-size: min(5.6cqi, 48px); }
  .hero__texte { font-size: 16px; line-height: 24px; max-width: 64ch; }
  .hero__contenu { gap: 12px; padding-bottom: 24px; }
  .hero__actions .bouton { min-height: 52px; }
  .hero__titre .ligne:first-child { max-width: none; }
}
@media (min-aspect-ratio: 5/4) {
  .hero { justify-content: center; min-height: 600px; }
  /* la photo est calée sur la largeur (la voiture reste entière et hors du texte, quel que soit l'écran), son bas se fond dans la nuit */
  .hero__plan picture { top: 0; bottom: auto; height: auto; aspect-ratio: 16 / 9; display: block; }
  .hero__plan picture::after { content: ""; position: absolute; inset: auto 0 0; height: 24%; background: linear-gradient(180deg, rgba(14, 32, 25, 0), var(--nuit)); }
  .hero__plan img { object-position: 50% 50%; }
  .hero__voile { background: linear-gradient(90deg, rgba(14, 32, 25, .97) 0, rgba(14, 32, 25, .92) 28%, rgba(14, 32, 25, 0) 50%), linear-gradient(180deg, rgba(14, 32, 25, .72) 0, rgba(14, 32, 25, 0) 16%); }
  .hero__contenu { position: relative; width: 100%; max-width: calc(var(--max) + 2 * var(--marge)); margin-inline: auto; padding: var(--entete) var(--marge) 0; height: 100%; align-content: center; }
  .hero__texte-bloc { max-width: 46%; gap: 24px; }
  .hero__titre .ligne:first-child { max-width: 16ch; }
  .hero__titre { font-size: clamp(34px, 3.5vw, 68px); }
  .hero__texte { font-size: 18px; line-height: 28px; max-width: 46ch; }
  .hero__actions .bouton { min-height: 56px; padding-inline: 24px; }
  .hero__legende { position: absolute; right: var(--marge); bottom: 32px; padding: 8px 16px; border-radius: 4px; background: rgba(14, 32, 25, .78); }
}
@media (min-aspect-ratio: 16/9) { .hero__plan picture { top: 50%; transform: translateY(-50%); } }
@media (min-aspect-ratio: 5/4) and (min-width: 1600px) { .hero__titre { font-size: 3.2vw; } .hero__texte { font-size: 20px; line-height: 32px; } }
@media (min-aspect-ratio: 5/4) and (max-height: 620px) { .hero__texte { display: none; } .hero__titre { font-size: 36px; } }
/* téléphone couché : tout tient dans l'écran */
@media (min-aspect-ratio: 5/4) and (max-height: 500px) {
  .hero { min-height: 340px; }
  .hero__contenu { padding-top: calc(var(--entete) - 8px); }
  .hero__texte { display: none; }
  .hero__titre { font-size: 26px; }
  .hero__texte-bloc { gap: 12px; }
  .hero__actions .bouton { min-height: 44px; }
  .hero__legende { bottom: 12px; }
}

/* --------------------------------------------------------------------------
   Barre oblique : les images se découvrent derrière le bandeau rouge du logo (animations.js)
   -------------------------------------------------------------------------- */
.mvt [data-barre-oblique]:not(.est-revele) img, .mvt [data-barre-oblique]:not(.est-revele) .vehicule__vide { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
.oblique-actif img, .oblique-actif .vehicule__vide { clip-path: polygon(0 0, calc(var(--r) * 1% + 88%) 0, calc(var(--r) * 1%) 100%, 0 100%) !important; }
.oblique__barre { position: absolute; inset: 0; z-index: 3; pointer-events: none; container-type: inline-size; }
.oblique__barre b { position: absolute; top: 0; bottom: 0; left: -2.4cqi; width: 2.4cqi; transform: translateX(calc(var(--r) * 1cqi)) skewX(var(--oblique)); transform-origin: 0 100%; background: var(--rouge); box-shadow: 2px 0 0 0 var(--clair); }

/* --------------------------------------------------------------------------
   Pistes horizontales (téléphone) → grilles (ordinateur)
   -------------------------------------------------------------------------- */
.piste { display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px var(--marge) 8px; scroll-padding-inline: var(--marge); scrollbar-width: none; }
.piste::-webkit-scrollbar { display: none; }
.piste > * { scroll-snap-align: start; }
.progression { position: relative; height: 2px; margin: 24px var(--marge) 0; background: var(--filet); overflow: hidden; }
.progression i { position: absolute; inset: 0; background: var(--vert); transform-origin: left; transform: scaleX(var(--p, .25)); transition: transform .2s linear; }

/* --------------------------------------------------------------------------
   Stock : filtres et fiches
   -------------------------------------------------------------------------- */
.filtres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
.filtre { position: relative; display: grid; gap: 2px; padding: 8px 40px 8px 16px; border: 1.5px solid var(--filet); border-radius: 4px; background: var(--carte); transition: border-color .3s var(--ease); }
.filtre:hover, .filtre:focus-within { border-color: var(--encre); }
.filtre::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.filtre__label { font: 600 11px/16px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.filtre select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 28px; border: 0; padding: 0; background: none; font-weight: 600; font-size: 16px; cursor: pointer; }
.filtre select:focus-visible { outline: none; }
.filtres__compte { grid-column: 1 / -1; font-size: 14px; line-height: 20px; color: var(--gris); }
@media (min-width: 768px) { .filtres { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 12px; } }
@media (min-width: 1024px) {
  .filtres { grid-template-columns: repeat(4, minmax(0, 240px)) 1fr; }
  .filtres__compte { grid-column: auto; justify-self: end; }
}
.stock__grille { grid-auto-columns: min(84vw, 360px); }
.vehicule { position: relative; display: flex; }
.vehicule__lien { position: relative; display: flex; flex-direction: column; width: 100%; text-decoration: none; color: inherit; background: var(--carte); border-radius: 4px; overflow: hidden; box-shadow: 0 1px 0 var(--filet), 0 16px 32px -24px rgba(17, 32, 26, .35); transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.vehicule__lien:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--filet), 0 28px 48px -28px rgba(17, 32, 26, .45); }
.vehicule__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--nuit-2); }
.vehicule__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.vehicule__lien:hover .vehicule__media img { transform: scale(1.04); }
.vehicule__neuf { position: absolute; left: 12px; top: 12px; z-index: 4; padding: 2px 12px; border-radius: 2px; background: var(--rouge); color: var(--blanc); font: 600 13px/24px var(--sans); letter-spacing: .04em; }
.vehicule__corps { flex: 1; display: grid; grid-template-rows: auto auto 1fr auto; gap: 4px; padding: 16px 20px 20px; }
.vehicule__marque { font: 600 12px/16px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.vehicule__modele { font: 600 22px/28px var(--titre);  }
.vehicule__modele span { display: block; font: 500 14px/20px var(--sans); color: var(--encre-2); }
.vehicule__specs { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 8px; color: var(--encre-2); font-size: 14px; line-height: 20px; }
.vehicule__specs li:first-child { flex-basis: 100%; }
.vehicule__specs li:not(:first-child):not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--filet-fort); }
.vehicule__pied { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--filet); }
.vehicule__prix { font: 600 24px/32px var(--titre); }
.vehicule__prix small, .fiche__prix small { font: 600 .58em/1 var(--sans); color: var(--encre-2); }
.vehicule__voir { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/20px var(--sans); color: var(--vert); }
.vehicule__voir svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.vehicule__lien:hover .vehicule__voir svg { transform: translateX(4px); }
/* carte d'appel : clôt la grille et la piste, aux couleurs du logo */
.appel-stock { display: flex; }
.appel-stock a { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; width: 100%; min-height: 100%; padding: 32px 24px; border-radius: 4px; background: var(--nuit); color: var(--papier); text-decoration: none; }
/* le logo en filigrane, entier, calé en haut à droite dans la carte */
.appel-stock__marque { position: absolute; z-index: -1; right: 16px; top: 24px; width: min(64%, 240px); opacity: .22; transition: transform 1.2s var(--ease); }
.appel-stock__marque svg { width: 100%; height: auto; }
.appel-stock a:hover .appel-stock__marque { transform: translateX(-16px); }
.appel-stock__titre { font-size: 26px; line-height: 32px; max-width: 13ch; }
.appel-stock__texte { color: #D5DBD3; max-width: 32ch; }
.appel-stock__lien { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; color: var(--blanc); }
.appel-stock__lien svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.appel-stock a:hover .appel-stock__lien svg { transform: translateX(4px); }
.stock__vide { margin-top: 16px; color: var(--encre-2); }
.stock__vide a { color: var(--vert); font-weight: 600; }
.stock__suite { display: grid; gap: 16px; justify-items: start; margin-top: 24px; }
.stock__plus { display: none; }
.stock__tiktok { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; line-height: 20px; text-decoration: none; color: var(--encre-2); }
.stock__tiktok strong { color: var(--encre); font-weight: 600; }
.stock__tiktok svg { width: 18px; height: 18px; flex: none; }
.stock__tiktok svg:last-child { width: 16px; height: 16px; color: var(--gris); }
@media (min-width: 768px) {
  /* sur grand écran : les premières voitures, le reste à la demande (les filtres cherchent toujours dans tout le stock) */
  .stock__grille:not(.est-tout) .est-reserve { display: none; }
  .stock__plus { display: inline-flex; }
  .stock__plus[hidden] { display: none; }
  .stock__suite { grid-template-columns: auto 1fr; align-items: center; margin-top: 32px; }
  .stock__tiktok { justify-self: end; }
}
@media (min-width: 768px) {
  .appel-stock a { justify-content: center; }
  .appel-stock__marque { right: 40px; top: 40px; width: min(52%, 280px); }
  .stock__grille { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; gap: 32px; overflow: visible; max-width: calc(var(--max) + 2 * var(--marge)); margin-inline: auto; padding-bottom: 0; }
  .stock__grille + .progression { display: none; }
  .appel-stock a { padding: 40px; }
  .appel-stock__titre { font-size: 32px; line-height: 40px; }
}
@media (min-width: 1280px) { .stock__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   Export : les cas, la route, les étapes (seule liste numérotée du site)
   -------------------------------------------------------------------------- */
.export__cas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.export__cas li { display: grid; gap: 2px; align-content: start; }
.export__cas strong { font: 600 19px/24px var(--titre); }
.export__cas span { font-size: 14px; line-height: 20px; color: var(--gris); }
.export__grille { display: grid; gap: 32px; }
.carte { position: relative; aspect-ratio: 1000 / 1450; border-radius: 4px; overflow: hidden; background: #0B241C; }
.carte img, .carte__route { position: absolute; inset: 0; width: 100%; height: 100%; }
.carte img { object-fit: cover; }
.carte__trace-fond { fill: none; stroke: rgba(244, 241, 232, .22); stroke-width: 7; stroke-linecap: round; }
.carte__trace { fill: none; stroke: var(--clair); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.mvt .carte__trace { stroke-dasharray: 1; stroke-dashoffset: 1; }
.carte__tete { fill: var(--rouge); stroke: var(--clair); stroke-width: 5; opacity: 0; }
.mvt .carte__tete.est-vue { opacity: 1; }
.carte__point circle { fill: var(--clair); }
.carte__point text { fill: var(--clair); paint-order: stroke; stroke: rgba(11, 36, 28, .85); stroke-width: 8px; stroke-linejoin: round; }
.carte__nom { font: 600 44px/1 var(--titre); }
.carte__prix { font: 500 40px/1 var(--sans); }
.carte__point { transition: opacity .6s var(--ease); }
.mvt .carte__point:not(.est-atteint) { opacity: .28; }
.carte figcaption { position: absolute; left: 16px; right: 16px; bottom: 12px; font-size: 13px; line-height: 18px; color: #D5DBD3; }
.services__liste { display: grid; border-top: 1px solid var(--filet); align-content: start; }
.service { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--filet); }
.service__num { font: 600 15px/28px var(--titre); color: var(--rouge-vif); }
.service__corps { display: grid; gap: 4px; justify-items: start; align-content: start; }
.service h3 { font: 600 22px/28px var(--titre); }
.service p { color: var(--encre-2); max-width: 52ch; }
@media (min-width: 768px) { .export__cas strong { font-size: 24px; line-height: 32px; } .export__cas span { font-size: 15px; } }
@media (min-width: 1024px) {
  .export__cas { grid-template-columns: repeat(3, minmax(0, 280px)); gap: 32px; margin-bottom: 48px; }
  .export__grille { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
  .carte { position: sticky; top: calc(var(--entete) + 24px); aspect-ratio: 1000 / 1100; }
  .carte__nom { font-size: 32px; }
  .carte__prix { font-size: 28px; }
  .service { grid-template-columns: 56px minmax(0, 1fr); padding: 32px 0; }
  .service h3 { font-size: 28px; line-height: 36px; }
  .service p { font-size: 18px; line-height: 28px; }
}

/* --------------------------------------------------------------------------
   Reprise / recherche : deux formulaires courts en onglets
   -------------------------------------------------------------------------- */
.demandes__bloc { background: var(--carte); border-radius: 4px; box-shadow: 0 1px 0 var(--filet), 0 24px 48px -32px rgba(17, 32, 26, .35); overflow: hidden; }
.onglets { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--filet); }
.onglets button { min-height: 64px; padding: 12px 16px; border: 0; background: none; font: 600 15px/20px var(--sans); color: var(--gris); text-align: left; transition: color .3s var(--ease); }
.onglets button[aria-selected="true"] { color: var(--encre); }
.onglets__trait { position: absolute; left: 0; bottom: -1px; width: 50%; height: 3px; background: var(--vert); transition: transform .5s var(--ease); }
.onglets[data-actif="1"] .onglets__trait { transform: translateX(100%); }
.panneau { padding: 24px 16px 32px; }
.formulaire { display: grid; gap: 24px; }
.formulaire__note { margin-top: -8px; }
.formulaire__piege { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.champ { grid-column: 1 / -1; display: grid; gap: 6px; }
.champ--court { grid-column: span 1; }
.champ--zone { order: 10; }
.champ__label { font: 600 14px/20px var(--sans); }
.champ__label em { font-style: normal; font-weight: 400; color: var(--gris); }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--filet-fort); border-radius: 4px; background: var(--blanc); font-size: 16px; line-height: 24px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.champ textarea { resize: vertical; min-height: 96px; }
.champ select { appearance: none; -webkit-appearance: none; background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2311201A' stroke-width='1.7' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 20px; padding-right: 40px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 3px rgba(14, 90, 65, .18); }
.champ input::placeholder, .champ textarea::placeholder { color: #75817B; }
.formulaire__astuce { padding-left: 16px; border-left: 3px solid var(--vert); color: var(--encre-2); font-size: 15px; line-height: 22px; }
.formulaire__envoi { display: grid; gap: 16px; justify-items: start; }
.formulaire__envoi .bouton { width: 100%; }
.formulaire__repli { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--gris); font-size: 14px; line-height: 20px; }
.formulaire__repli a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--encre); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.formulaire__repli svg { width: 18px; height: 18px; }
.formulaire__erreur { padding: 12px 16px; border-radius: 4px; background: #FBE3E3; color: #7A1015; font-size: 15px; line-height: 22px; }
.formulaire__erreur a { font-weight: 700; }
.merci { display: grid; gap: 12px; justify-items: start; padding: 16px 0; }
.merci h3 { font: 600 26px/32px var(--titre);  }
.merci__coche { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--vert); color: var(--blanc); }
.merci__coche svg { width: 24px; height: 24px; }
.demandes__corps { display: grid; gap: 24px; }
.demandes__voix { display: grid; gap: 16px; justify-items: start; padding: 32px 24px; border-radius: 4px; background: var(--nuit); }
.demandes__voix h3 { font: 600 26px/32px var(--titre);  }
.demandes__voix > p:not(.surtitre):not(.statut) { color: var(--encre-2); }
.demandes__tel { display: inline-flex; align-items: center; gap: 12px; font: 600 30px/36px var(--titre);  text-decoration: none; font-variant-numeric: tabular-nums; }
.demandes__tel svg { width: 24px; height: 24px; color: var(--clair); }
.demandes__international { color: var(--gris); font-size: 14px; line-height: 20px; margin-top: -8px; }
.demandes__voix .actions { width: 100%; }
@media (min-width: 600px) { .panneau { padding: 32px 32px 40px; } .onglets button { padding-inline: 32px; font-size: 16px; } .formulaire__envoi .bouton { width: auto; } }
@media (min-width: 768px) { .champs { grid-template-columns: repeat(4, minmax(0, 1fr)); } .champ { grid-column: span 2; } .champ--court { grid-column: span 1; } .champ--zone { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .demandes__corps { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: start; }
  .demandes__voix { position: sticky; top: calc(var(--entete) + 32px); }
  .panneau { padding: 40px 48px 48px; }
}

/* --------------------------------------------------------------------------
   Avis
   -------------------------------------------------------------------------- */
.avis__haut { display: grid; gap: 32px; margin-bottom: 40px; }
.grande-citation { display: grid; gap: 24px; }
.grande-citation p { font: 500 24px/34px var(--titre);  letter-spacing: -.005em; text-wrap: pretty; }
.grande-citation figcaption a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre-2); }
.grande-citation figcaption strong { color: var(--encre); }
.compteur-avis { display: grid; gap: 8px; align-content: start; justify-items: start; padding: 24px; border-radius: 4px; background: var(--carte); box-shadow: 0 1px 0 var(--filet); }
.compteur-avis__ligne { display: flex; align-items: center; gap: 12px; }
.compteur-avis__ligne .g-logo { width: 32px; height: 32px; }
.compteur-avis__ligne strong { font: 600 44px/48px var(--titre); }
.compteur-avis__meta { color: var(--encre-2); }
.compteur-avis .bouton { margin-top: 8px; }
@media (max-width: 767px) { .compteur-avis .bouton { width: 100%; } }
@media (min-width: 768px) { .grande-citation p { font-size: 32px; line-height: 44px; } }
@media (min-width: 1024px) { .avis__haut { grid-template-columns: minmax(0, 8fr) minmax(260px, 3fr); column-gap: 64px; align-items: start; margin-bottom: 56px; } .grande-citation p { font-size: 36px; line-height: 48px; } }
.avis__piste { grid-auto-columns: min(84vw, 360px); align-items: stretch; }
.avis-carte { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 4px; background: var(--carte); box-shadow: 0 1px 0 var(--filet); cursor: pointer; transition: box-shadow .4s var(--ease); }
.avis-carte:hover { box-shadow: 0 1px 0 var(--filet), 0 20px 40px -28px rgba(17, 32, 26, .4); }
.avis-carte__tete { display: flex; align-items: center; gap: 12px; }
.avis-carte__tete > div { flex: 1; min-width: 0; }
.avis-carte__nom { font-weight: 600; }
.avis-carte__date { font-size: 14px; line-height: 20px; color: var(--gris); }
.avis-carte__google { display: grid; place-items: center; width: 40px; height: 40px; margin: -8px -8px -8px 0; }
.avis-carte__texte { white-space: pre-line; color: var(--encre-2); }
.avis-carte.est-replie .avis-carte__texte { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden; }
.avis-carte__suite { align-self: start; margin-top: auto; padding: 4px 0; border: 0; background: none; font-weight: 600; color: var(--vert); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1024px) {
  .avis-carte.est-replie .avis-carte__texte { display: block; -webkit-line-clamp: none; }
  .avis-carte__suite { display: none !important; }
  .avis__piste { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; max-width: calc(var(--max) + 2 * var(--marge)); margin-inline: auto; gap: 24px; }
  .avis__piste + .progression { display: none; }
}

/* --------------------------------------------------------------------------
   Accès : carte en bandeau, fiche posée dessus
   -------------------------------------------------------------------------- */
.acces .tete { margin-bottom: 32px; }
.acces__tete { display: grid; gap: 8px; margin-bottom: 32px; }
.diapo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--nuit-2); container-type: inline-size; }
.diapo__vue { position: absolute; inset: 0; opacity: 0; }
.diapo__vue.est-visible { opacity: 1; z-index: 2; }
.diapo__vue.est-sortant { opacity: 1; z-index: 1; }
html:not(.mvt) .diapo__vue { transition: opacity .8s ease; }
.diapo__vue img { width: 100%; height: 100%; object-fit: cover; }
.diapo__barre { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transform: translateX(calc(var(--r, -100) * 1cqi)); }
.diapo__barre b { position: absolute; top: 0; bottom: 0; left: -2.4cqi; width: 2.4cqi; transform: skewX(var(--oblique)); transform-origin: 0 100%; background: var(--rouge); box-shadow: 2px 0 0 0 var(--clair); }
.diapo__barre.est-active { opacity: 1; }
@media (min-width: 1024px) { .acces__tete { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; margin-bottom: 48px; } .acces__tete .tete { margin-bottom: 0; } }
.acces__scene { position: relative; }
.acces__carte { position: relative; height: 320px; overflow: hidden; background: #D9D9D4; }
.acces__carte iframe { position: absolute; left: 0; width: 100%; top: -160px; height: calc(100% + 320px); border: 0; filter: saturate(.7) contrast(1.02); }
.acces__fiche { position: relative; display: grid; gap: 24px; margin-top: -48px; padding: 24px; border-radius: 4px; background: var(--carte); box-shadow: 0 24px 48px -28px rgba(17, 32, 26, .45); }
.acces__bloc { display: grid; gap: 12px; }
.acces__bloc + .acces__bloc { padding-top: 24px; border-top: 1px solid var(--filet); }
.acces__bloc h3 { display: flex; align-items: center; gap: 8px; font: 600 12px/16px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.acces__bloc h3 svg { width: 18px; height: 18px; color: var(--vert); }
.acces__adresse { font: 600 22px/30px var(--titre);  }
.statut { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.statut i { width: 8px; height: 8px; border-radius: 50%; background: var(--filet-fort); }
.statut.est-ouvert i { background: #2E9E5B; box-shadow: 0 0 0 4px rgba(46, 158, 91, .18); }
.horaires { display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; color: var(--encre-2); }
.horaires dd { text-align: right; }
@media (min-width: 768px) { .acces__carte { height: 440px; } }
@media (min-width: 1024px) {
  .acces__scene { display: grid; }
  .acces__carte, .acces__conteneur { grid-area: 1 / 1; }
  .acces__carte { height: auto; min-height: 600px; }
  .acces__conteneur { position: relative; pointer-events: none; display: flex; justify-content: flex-end; align-items: center; padding-block: 48px; }
  .acces__fiche { pointer-events: auto; width: 440px; margin: 0; padding: 32px; }
}

/* --------------------------------------------------------------------------
   Page d'un véhicule
   -------------------------------------------------------------------------- */
.page-vehicule { padding-top: calc(var(--entete) + 16px); background: var(--papier); position: relative; isolation: isolate; }
.page-vehicule::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grain); opacity: .07; }
.fil ol { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 8px 0 16px; font-size: 14px; line-height: 20px; color: var(--gris); }
.fil li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--filet-fort); }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fiche { display: grid; gap: 24px; }
.galerie { display: grid; gap: 8px; margin-inline: calc(var(--marge) * -1); }
.galerie__principale { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; overflow: hidden; background: var(--nuit-2); cursor: zoom-in; }
.galerie--vide .galerie__principale { cursor: default; }
.galerie__vue { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.galerie__vue.est-visible { opacity: 1; }
.galerie__vue img { width: 100%; height: 100%; object-fit: cover; }
.galerie__agrandir { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(14, 32, 25, .72); color: var(--blanc); }
.galerie__agrandir svg { width: 18px; height: 18px; }
.galerie__vignettes { display: flex; gap: 8px; padding-inline: var(--marge); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.galerie__vignettes::-webkit-scrollbar { display: none; }
.galerie__vignette { flex: none; width: 88px; scroll-snap-align: start; }
.galerie__vignette { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 2px; overflow: hidden; background: var(--nuit-2); opacity: .6; transition: opacity .3s; }
.galerie__vignette::after { content: ""; position: absolute; inset: 0; border-radius: 2px; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .3s; }
.galerie__vignette.est-active { opacity: 1; }
.galerie__vignette.est-active::after { box-shadow: inset 0 0 0 2px var(--vert); }
.galerie__vignette img { width: 100%; height: 100%; object-fit: cover; }
.fiche__infos { display: grid; gap: 12px; align-content: start; }
.fiche__titre { font-size: 32px; line-height: 36px; }
.fiche__titre span { display: block; margin-top: 4px; font: 500 18px/24px var(--sans); color: var(--encre-2); }
.fiche__neuf { padding: 2px 12px; border-radius: 2px; background: var(--rouge); color: var(--blanc); font: 600 14px/24px var(--sans); }
.fiche__repere { color: var(--encre-2); font-size: 15px; line-height: 22px; font-weight: 500; }
.fiche__livraison { color: var(--encre-2); font-size: 15px; line-height: 22px; padding-left: 16px; border-left: 3px solid var(--vert); margin-top: 8px; }
.fiche__note { color: var(--gris); font-size: 14px; line-height: 20px; }
.fiche__prix-ligne { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.fiche__prix { font: 600 40px/48px var(--titre);  }
.fiche__cles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 8px; border-radius: 4px; overflow: hidden; background: var(--filet); border: 1px solid var(--filet); }
.fiche__cles li { display: grid; gap: 2px; padding: 12px 16px; background: var(--carte); }
.fiche__cles span { font: 600 11px/16px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.fiche__cles strong { font-size: 17px; line-height: 24px; }
.fiche__actions { display: grid; gap: 8px; margin-top: 16px; }
.fiche__details { display: grid; gap: 40px; margin-top: 48px; }
.fiche__bloc { display: grid; gap: 16px; align-content: start; }
.fiche__bloc h2 { font: 600 24px/32px var(--titre);  }
.carac { display: grid; border-top: 1px solid var(--filet); }
.carac div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--filet); }
.carac dt { color: var(--gris); }
.carac dd { font-weight: 600; text-align: right; }
.equipements { display: grid; gap: 8px; }
.equipements li { display: flex; gap: 12px; align-items: flex-start; }
.equipements svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--vert); }
.fiche__mention { color: var(--gris); font-size: 14px; line-height: 20px; }
.essai { align-self: start; padding: 24px; border-radius: 4px; background: var(--carte); box-shadow: 0 1px 0 var(--filet), 0 24px 48px -32px rgba(17, 32, 26, .35); scroll-margin-top: calc(var(--entete) + 16px); }
.essai > p { color: var(--encre-2); }
.essai .champs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.autres { background: var(--lin); margin-top: var(--section); }
.autres__tout { margin-top: 24px; }
.autres .stock__grille .est-reserve { display: flex; }
@media (min-width: 600px) { .galerie { margin-inline: 0; } .galerie__principale { border-radius: 4px; } .galerie__vignettes { display: grid; overflow: visible; padding: 0; grid-template-columns: repeat(auto-fill, 120px); } .galerie__vignette { width: auto; } .fiche__cles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fiche__actions { grid-template-columns: 1fr 1fr; } .fiche__actions .bouton:last-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .fiche { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
  .fiche__infos { position: sticky; top: calc(var(--entete) + 24px); }
  .fiche__titre { font-size: 40px; line-height: 48px; }
  .fiche__details { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "carac equip" "carac essai"; grid-template-rows: auto 1fr; gap: 48px 64px; margin-top: 64px; }
  .fiche__details > :nth-child(1) { grid-area: carac; }
  .fiche__details > :nth-child(2) { grid-area: equip; }
  .fiche__details > :nth-child(3) { grid-area: essai; }
  .essai .champs { grid-template-columns: 1fr 1fr; }
  .fiche__cles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1440px) { .fiche__cles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   Pied de page, barre mobile, visionneuse, page simple
   -------------------------------------------------------------------------- */
.pied { position: relative; isolation: isolate; padding: 56px 0 calc(96px + env(safe-area-inset-bottom)); }
.pied::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grain); opacity: .1; filter: invert(1); mix-blend-mode: screen; }
.pied__haut { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-bottom: 32px; border-bottom: 1px solid var(--filet); }
.pied__logo .logo-ah { width: 248px; }
.pied__activite { color: var(--encre-2); }
.pied__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding: 32px 0; }
.pied__grille h3 { margin-bottom: 8px; font: 600 12px/16px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.pied__grille p { color: var(--encre-2); font-size: 15px; line-height: 26px; }
.pied__grille a { text-decoration: none; }
.pied__grille a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pied__bas { display: grid; gap: 8px; padding-top: 24px; border-top: 1px solid var(--filet); color: var(--gris); font-size: 13px; line-height: 20px; }
@media (min-width: 1024px) { .pied { padding-bottom: 48px; } .pied__grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pied__bas { display: flex; justify-content: space-between; } }

.barre { will-change: transform; backface-visibility: hidden; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px var(--marge) calc(8px + env(safe-area-inset-bottom)); background: rgba(14, 32, 25, .97); box-shadow: 0 -1px 0 rgba(244, 241, 232, .1); transform: translateY(110%); transition: transform .45s var(--ease);
  --encre: #F4F1E8; --filet-fort: rgba(244, 241, 232, .42); color: var(--encre); }
.barre .bouton { min-height: 48px; padding: 0 12px; }
.barre.est-visible { transform: none; }
@media (min-width: 1024px) { .barre { display: none; } }

.visionneuse { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(8, 20, 15, .97); color: #F4F1E8; touch-action: pan-y; }
.visionneuse__scene { display: grid; gap: 12px; justify-items: center; padding: 64px 16px; }
.visionneuse__scene img { max-width: min(100%, 1600px); max-height: calc(100svh - 168px); width: auto; height: auto; border-radius: 2px; }
.visionneuse__scene figcaption { font-size: 14px; line-height: 20px; color: #C9CDD2; text-align: center; max-width: 60ch; }
.rond { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(244, 241, 232, .14); color: #F4F1E8; transition: background-color .3s; }
.rond:hover { background: var(--vert); }
.rond svg { width: 20px; height: 20px; }
.visionneuse__fermer { position: absolute; top: 12px; right: 12px; }
.visionneuse__prec, .visionneuse__suiv { position: absolute; top: 50%; transform: translateY(-50%); }
.visionneuse__prec { left: 12px; }
.visionneuse__suiv { right: 12px; }
.visionneuse__compteur { position: absolute; top: 24px; left: 24px; font-size: 14px; color: #C9CDD2; }

.page-simple { min-height: 100svh; display: grid; align-items: center; padding: 96px 0; background: var(--nuit); }
.page-simple .conteneur { display: grid; gap: 24px; justify-items: start; max-width: 720px; }
.page-simple__logo .logo-ah { width: 248px; }
.page-simple { color: var(--encre); }

/* --------------------------------------------------------------------------
   Très grands écrans (≥ 2200 px) : en fin de feuille, sinon écrasé par les règles 1024 / 1600
   -------------------------------------------------------------------------- */
@media (min-width: 2200px) {
  :root { --max: 2080px; --marge: 80px; --section: 144px; --entete: 96px; }
  body { font-size: 18px; line-height: 28px; }
  .logo-ah { width: 280px; }
  .nav ul { gap: 40px; }
  .nav a, .entete__tel span { font-size: 17px; }
  .titre { font-size: 72px; line-height: 80px; }
  .chapo { font-size: 22px; line-height: 34px; }
  .surtitre { font-size: 14px; line-height: 20px; }
  .bouton { min-height: 64px; padding: 0 32px; font-size: 18px; }
  .hero__texte { font-size: 22px; line-height: 34px; }
  .vehicule__modele { font-size: 28px; line-height: 36px; }
  .vehicule__prix { font-size: 30px; line-height: 40px; }
  .grande-citation p { font-size: 44px; line-height: 60px; }
  .acces__carte { min-height: 720px; }
  .acces__fiche { width: 520px; }
}
@media (min-aspect-ratio: 5/4) and (min-width: 2200px) and (min-height: 1200px) { .hero__titre { font-size: 80px; } }

/* Mouvements réduits : rien ne bouge */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } }


