/* =========================================================
   AMRI & CO — Feuille de style
   ========================================================= */

:root {
  --black: #0a0a0a;
  --ink: #111111;
  --white: #f5f5f2;
  --paper: #ffffff;
  --g1: #1a1a1a;
  --g2: #2a2a2a;
  --g3: #6b6b6b;
  --g4: #a3a3a0;
  --g5: #d9d9d4;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(10, 10, 10, 0.12);
  --accent: #ff3b2f; /* utilisé avec parcimonie : statut, feux arrière */

  --f-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --header-h: 76px;
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--white); color: var(--black); }
.light ::selection { background: var(--black); color: var(--white); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.light { background: var(--white); color: var(--black); }
.dark { background: var(--black); color: var(--white); }

section { position: relative; }

/* ---------- Typographie ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  opacity: 0.7;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.display {
  font-weight: 500;
  font-size: clamp(44px, 8.4vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0;
}
.h1 { font-weight: 500; font-size: clamp(40px, 6.2vw, 104px); line-height: 0.95; letter-spacing: -0.04em; margin: 0; }
.h2 { font-weight: 500; font-size: clamp(32px, 4.4vw, 68px); line-height: 1; letter-spacing: -0.035em; margin: 0; }
.h3 { font-weight: 500; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; max-width: 38ch; opacity: 0.75; }
.muted { opacity: 0.6; }

/* Découpage des titres pour l'animation */
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: inline-block; will-change: transform; }
[data-split] .split-line > span { transform: translateY(110%); transition: transform 1.3s var(--ease-out); }
[data-split].is-in .split-line > span { transform: none; }

/* ---------- Boutons ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 28px; border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease-out);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--white); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--black); }
.light .btn::before { background: var(--black); }
.light .btn:hover { color: var(--white); }
.dark .btn::before, .btn.on-dark::before { background: var(--white); }
.dark .btn:hover, .btn.on-dark:hover { color: var(--black); }
.btn .arrow { transition: transform 0.5s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-solid { border-color: transparent; }
.dark .btn-solid { background: var(--white); color: var(--black); }
.light .btn-solid { background: var(--black); color: var(--white); }
.btn.btn-solid::before { background: var(--g3); }
.dark .btn-solid:hover, .light .btn-solid:hover { color: var(--white); }

.btn-sm { --h: 42px; padding: 0 20px; font-size: 14px; }

.link-u {
  position: relative; display: inline-block;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out);
}
.link-u:hover { background-size: 100% 1px; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: #fff; mix-blend-mode: difference;
  transition: transform 0.6s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: 0.24em; font-size: 14px; text-transform: uppercase; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .amp { font-family: var(--f-serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 20px; font-weight: 400; margin: 0 -0.12em; }

.nav { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.nav a { position: relative; padding: 6px 0; opacity: 0.85; transition: opacity .3s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.sound-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; height: 40px; }
.sound-bars { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.sound-bars i { display: block; width: 2px; height: 3px; background: currentColor; transition: height .3s; }
.sound-toggle[aria-pressed="true"] .sound-bars i { animation: bars 1s ease-in-out infinite alternate; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -0.3s; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -0.6s; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(4) { animation-delay: -0.15s; }
@keyframes bars { from { height: 3px; } to { height: 14px; } }

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
body.menu-open .burger span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--black); color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease);
  visibility: hidden;
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a { font-size: clamp(40px, 12vw, 64px); letter-spacing: -0.04em; line-height: 1.05; font-weight: 500; }
.mobile-menu nav a span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease-out); }
.mobile-menu nav a { overflow: hidden; }
body.menu-open .mobile-menu nav a span { transform: none; }
body.menu-open .mobile-menu nav a:nth-child(2) span { transition-delay: .05s; }
body.menu-open .mobile-menu nav a:nth-child(3) span { transition-delay: .1s; }
body.menu-open .mobile-menu nav a:nth-child(4) span { transition-delay: .15s; }
body.menu-open .mobile-menu nav a:nth-child(5) span { transition-delay: .2s; }
.mobile-menu .mm-foot { margin-top: 40px; display: grid; gap: 6px; font-size: 15px; opacity: .7; }

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
  .sound-toggle .label { display: none; }
}

/* ---------- Transition entre pages ---------- */
.pt {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background: var(--black); color: var(--white);
  display: grid; place-items: center;
  transform: translateY(0);
  transition: transform 0.9s var(--ease);
}
.pt svg { width: 56px; height: 56px; opacity: 1; transition: opacity .4s; }
html.is-ready .pt { transform: translateY(-100%); }
html.is-ready .pt svg { opacity: 0; }
html.is-leaving .pt { transform: translateY(0); transition: transform 0.7s var(--ease); pointer-events: all; }
html.is-leaving .pt svg { opacity: 1; transition-delay: .3s; }
html.no-pt .pt { transition: none; }

/* ---------- Intro (accueil) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 300; background: var(--black); color: var(--white);
  display: grid; place-items: center; text-align: center;
  transition: clip-path 1.2s var(--ease);
  clip-path: inset(0 0 0 0);
}
.intro.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.intro-inner { display: grid; justify-items: center; gap: 28px; padding: 24px; }
.intro-logo { width: 84px; height: 84px; }
.intro-logo path.stroke { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1.6s var(--ease) .2s forwards; }
.intro-logo path.dash { opacity: 0; animation: fade .6s ease 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.intro-name { font-size: 14px; letter-spacing: 0.4em; text-transform: uppercase; font-weight: 500; opacity: 0; animation: fade .8s ease 1s forwards; }
.intro-name .amp { font-family: var(--f-serif); font-style: italic; letter-spacing: 0; text-transform: none; font-size: 22px; }
.intro-count { font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .2em; opacity: .5; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; opacity: 0; transform: translateY(10px); transition: opacity .8s, transform .8s var(--ease-out); }
.intro.is-loaded .intro-actions { opacity: 1; transform: none; }
.intro.is-loaded .intro-count { opacity: 0; transition: opacity .4s; }
.intro-note { font-size: 12px; opacity: 0; max-width: 34ch; transition: opacity .8s .2s; }
.intro.is-loaded .intro-note { opacity: .45; }

/* ---------- Curseur ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), opacity .3s;
  opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor.is-label { width: 88px; height: 88px; margin: -44px 0 0 -44px; mix-blend-mode: normal; background: var(--white); color: var(--black); }
.cursor span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: 0; transition: opacity .3s; }
.cursor.is-label span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Héros 3D (accueil) ---------- */
.hero { height: 340vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 62%, rgba(255,255,255,0.07), transparent 70%);
}
.hero-ui { position: absolute; inset: 0; pointer-events: none; }
.hero-ui a, .hero-ui button { pointer-events: auto; }
.hero-title {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6vh, 64px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  transition: opacity .6s, transform .8s var(--ease-out);
}
.hero-title.is-out { opacity: 0; transform: translateY(-24px); }
.hero-title .display .serif { font-size: 1.04em; }
.hero-side { display: grid; gap: 22px; max-width: 360px; }
.hero-side p { margin: 0; opacity: .7; }
.hero-top {
  position: absolute; top: calc(var(--header-h) + 8px); left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .6;
}
/* Relevés techniques façon studio de design */
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud-c { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(255,255,255,.35); }
.hud-c.tl { top: 20%; left: 16%; border-top-width: 1px; border-left-width: 1px; }
.hud-c.tr { top: 20%; right: 16%; border-top-width: 1px; border-right-width: 1px; }
.hud-c.bl { bottom: 36%; left: 16%; border-bottom-width: 1px; border-left-width: 1px; }
.hud-c.br { bottom: 36%; right: 16%; border-bottom-width: 1px; border-right-width: 1px; }
.hud-read {
  position: absolute; top: calc(var(--header-h) + 36px); right: var(--gutter);
  display: grid; justify-items: end; gap: 4px;
  font: 500 11px/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45);
}
.hud-read b { color: rgba(255,255,255,.85); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .hud-c { display: none; } }
@media (max-width: 700px) { .hud-read { display: none; } }

.hero-panels { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 7vh, 72px); }
.hero-panel {
  position: absolute; left: 0; bottom: 0; max-width: 520px;
  opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .9s var(--ease-out);
}
.hero-panel.is-active { opacity: 1; transform: none; }
.hero-panel .num { font-family: var(--f-serif); font-style: italic; font-size: 22px; opacity: .6; }
.hero-panel h2 { margin: 10px 0 14px; }
.hero-panel p { margin: 0 0 22px; opacity: .7; max-width: 42ch; }
.hero-progress { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.hero-progress i { display: block; width: 2px; height: 28px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; }
.hero-progress i b { position: absolute; inset: 0; background: #fff; transform: scaleY(0); transform-origin: top; }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .5; display: grid; justify-items: center; gap: 8px; transition: opacity .4s; }
.scroll-hint::after { content: ""; width: 1px; height: 36px; background: linear-gradient(#fff, transparent); animation: hint 2s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-fallback { position: absolute; inset: 0; display: none; place-items: center; }
.no-webgl .hero-fallback { display: grid; }

@media (max-width: 700px) {
  .hero { height: 300vh; }
  .hero-title { flex-direction: column; align-items: flex-start; }
  .hero-progress { display: none; }
  .scroll-hint { display: none; }
  .hero-top span:last-child { display: none; }
}

/* ---------- Manifeste (mots qui s'allument au scroll) ---------- */
.manifesto { padding: clamp(100px, 18vh, 200px) 0; }
.manifesto-text { font-size: clamp(28px, 4.2vw, 64px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; max-width: 22ch; margin: 28px 0 0; }
.manifesto-text .w { opacity: 0.14; transition: opacity .25s linear; }
.manifesto-text .w.on { opacity: 1; }
.manifesto-foot { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-end; margin-top: 64px; }
.stats { display: flex; gap: clamp(28px, 5vw, 72px); flex-wrap: wrap; }
.stat b { display: block; font-size: clamp(36px, 4vw, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.stat span { font-size: 13px; opacity: .6; }

/* ---------- Défilant de marques ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 26px 0; white-space: nowrap; }
.light .marquee { border-color: var(--line-light); }
.marquee-track { display: inline-flex; gap: 56px; animation: marquee 40s linear infinite; padding-right: 56px; }
.marquee-track span { font-size: clamp(22px, 2.6vw, 38px); letter-spacing: -0.02em; font-weight: 500; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; font-size: .45em; opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 14vh, 160px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 7vh, 80px); }
.section-head .h2 { max-width: 14ch; margin-top: 18px; }

/* ---------- Cartes véhicules ---------- */
.grid-cars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px) clamp(16px, 2vw, 28px); }
@media (max-width: 1100px) { .grid-cars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-cars { grid-template-columns: 1fr; } }

.card { display: block; position: relative; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--g1); border-radius: 4px; }
.light .card-media { background: var(--g5); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease-out), filter .8s; filter: grayscale(0.35) contrast(1.05); }
.card:hover .card-media img { transform: scale(1.1); filter: grayscale(0) contrast(1.05); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.35), transparent 40%); pointer-events: none; }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding: 7px 11px; border-radius: 999px; background: var(--white); color: var(--black);
}
.badge.is-status { left: auto; right: 14px; background: var(--black); color: var(--white); display: inline-flex; align-items: center; gap: 7px; }
.badge.is-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.card.is-sold .card-media img { filter: grayscale(1) brightness(.6); }
.card-body { padding: 18px 2px 0; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card-title { margin: 0; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.card-title small { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .55; font-weight: 500; margin-bottom: 4px; }
.card-price { margin: 0; font-size: 19px; font-weight: 500; white-space: nowrap; letter-spacing: -0.01em; }
.card-version { margin: 4px 0 14px; font-size: 14px; opacity: .55; }
.card-specs { list-style: none; margin: 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; border-top: 1px solid var(--line-dark); }
.light .card-specs { border-color: var(--line-light); }
.card-specs li { opacity: .75; }

/* Apparition des cartes */
.grid-cars .card { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.grid-cars .card.is-in { opacity: 1; transform: none; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); }
.service { padding: 36px 32px 44px 0; border-right: 1px solid var(--line-light); display: grid; gap: 18px; align-content: start; min-height: 360px; position: relative; }
.service + .service { padding-left: 32px; }
.service:last-child { border-right: 0; }
.service .num { font-family: var(--f-serif); font-style: italic; font-size: 26px; opacity: .5; }
.service p { margin: 0; opacity: .65; max-width: 34ch; }
.service .btn { justify-self: start; margin-top: auto; }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line-light); min-height: 0; }
}

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step-item { padding: 28px 28px 0 0; border-top: 1px solid var(--line-dark); position: relative; }
.step-item::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--white); transition: width 1.4s var(--ease); }
.step-item.is-in::before { width: 100%; }
.step-item .num { font-size: 13px; letter-spacing: .2em; opacity: .5; }
.step-item h3 { margin: 18px 0 10px; }
.step-item p { margin: 0; opacity: .6; font-size: 15px; max-width: 30ch; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Bandeau CTA ---------- */
.cta { padding: clamp(110px, 20vh, 220px) 0; text-align: center; overflow: hidden; }
.cta .display { margin: 24px auto 40px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- En-tête de page intérieure ---------- */
.page-head { padding: calc(var(--header-h) + clamp(60px, 14vh, 150px)) 0 clamp(40px, 7vh, 80px); }
.page-head .h1 { margin-top: 22px; max-width: 14ch; }
.page-head .lead { margin-top: 26px; }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); margin-bottom: 48px; position: relative; z-index: 3; }
.light .filters { border-color: var(--line-light); }
.filters .count { margin-left: auto; font-size: 14px; opacity: .6; }
.select { position: relative; }
.select select {
  appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; color: inherit;
  background: transparent; border: 1px solid var(--line-dark); border-radius: 999px;
  height: 42px; padding: 0 40px 0 18px; cursor: pointer;
}
.light .select select { border-color: var(--line-light); }
.select select option { color: #000; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.range { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; height: 42px; padding: 0 18px; border: 1px solid var(--line-dark); border-radius: 999px; }
.light .range { border-color: var(--line-light); }
.range input { accent-color: currentColor; width: 120px; }
.empty { padding: 80px 0; text-align: center; display: grid; gap: 20px; justify-items: center; }
.empty p { margin: 0; opacity: .6; max-width: 40ch; }
@media (max-width: 640px) { .filters .count { width: 100%; margin: 4px 0 0; } .select, .select select, .range { width: 100%; } }

/* ---------- Fiche véhicule ---------- */
.vd { padding: calc(var(--header-h) + 40px) 0 clamp(80px, 12vh, 140px); }
.vd-back { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; opacity: .7; margin-bottom: 28px; }
.vd-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.vd-main { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--g1); border-radius: 4px; }
.vd-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s, transform 1.4s var(--ease-out); }
.vd-main img.is-leaving { opacity: 0; transform: scale(1.04); }
.vd-nav { position: absolute; bottom: 16px; right: 16px; display: flex; gap: 8px; z-index: 2; }
.vd-nav button { width: 44px; height: 44px; border-radius: 50%; background: rgba(10,10,10,.6); backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; transition: background .3s; }
.vd-nav button:hover { background: rgba(10,10,10,.9); }
.vd-counter { position: absolute; bottom: 26px; left: 18px; font-size: 13px; z-index: 2; color: #fff; font-variant-numeric: tabular-nums; }
.vd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.vd-thumbs button { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; opacity: .45; transition: opacity .3s; outline-offset: 2px; }
.vd-thumbs button[aria-current="true"], .vd-thumbs button:hover { opacity: 1; }
.vd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.vd-info { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 24px; }
.vd-info .brand-line { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; opacity: .6; }
.vd-info h1 { margin: 6px 0 4px; }
.vd-info .version { opacity: .6; margin: 0; }
.vd-price { font-size: clamp(32px, 3.2vw, 46px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.vd-price small { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .5; margin-top: 8px; font-weight: 500; }
.specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.specs li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.specs li span:first-child { opacity: .55; }
.vd-actions { display: grid; gap: 10px; }
.vd-actions .btn { width: 100%; }
.vd-desc { opacity: .7; margin: 0; }
.vd-note { font-size: 12px; opacity: .45; margin: 0; }
@media (max-width: 960px) { .vd-grid { grid-template-columns: 1fr; } .vd-info { position: static; } }

/* ---------- Formulaires ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
@media (max-width: 960px) { .form-shell { grid-template-columns: 1fr; } }
.form-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 28px; }
@media (max-width: 960px) { .form-aside { position: static; } }
.progress-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.progress-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-size: 15px; opacity: .35; transition: opacity .4s; border-bottom: 1px solid var(--line-light); }
.progress-steps li.is-active, .progress-steps li.is-done { opacity: 1; }
.progress-steps li b { width: 30px; height: 30px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 12px; font-weight: 500; flex: none; transition: background .4s, color .4s; }
.progress-steps li.is-done b { background: var(--black); color: var(--white); border-color: var(--black); }

.form { display: grid; gap: 0; }
.fstep { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.fstep.is-active { display: grid; gap: 26px; animation: stepIn .8s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.fstep legend { font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; padding: 0; margin-bottom: 8px; }
.fstep .hint { margin: -14px 0 0; opacity: .55; font-size: 15px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 13px; letter-spacing: .06em; font-weight: 500; }
.field label .opt { opacity: .45; font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-size: 18px; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid var(--line-light); border-radius: 0;
  padding: 10px 0 12px; transition: border-color .3s;
  width: 100%;
}
.dark .field input, .dark .field textarea { border-color: var(--line-dark); }
.field input::placeholder, .field textarea::placeholder { color: currentColor; opacity: .3; }
.field input:focus, .field textarea:focus { outline: none; border-color: currentColor; }
.field textarea { min-height: 110px; resize: vertical; }
.field .err { font-size: 13px; color: #c62a1f; min-height: 0; }
.field.is-invalid input { border-color: #c62a1f; }
.with-unit { position: relative; }
.with-unit input { padding-right: 40px; }
.with-unit .unit { position: absolute; right: 0; bottom: 13px; opacity: .45; font-size: 16px; }
.plate { text-transform: uppercase; letter-spacing: .12em; font-weight: 500; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: grid; gap: 6px; min-height: 100%;
  padding: 20px 18px; border: 1px solid var(--line-light); border-radius: 6px;
  transition: border-color .3s, background .3s, color .3s;
}
.choice span b { font-weight: 500; font-size: 17px; }
.choice span small { opacity: .55; font-size: 13px; line-height: 1.4; }
.choice input:hover + span { border-color: currentColor; }
.choice input:checked + span { background: var(--black); color: var(--white); border-color: var(--black); }
.choice input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }

.dropzone {
  display: grid; place-items: center; text-align: center; gap: 10px;
  border: 1px dashed rgba(10,10,10,.3); border-radius: 8px; padding: 44px 20px;
  cursor: pointer; transition: background .3s, border-color .3s;
}
.dropzone:hover, .dropzone.is-over { background: rgba(10,10,10,.04); border-color: var(--black); }
.dropzone small { opacity: .55; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--g5); animation: stepIn .5s var(--ease-out); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(10,10,10,.75); color: #fff; font-size: 15px; line-height: 1; display: grid; place-items: center; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--black); flex: none; }
.check a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.form-nav .btn[hidden] { display: none; }
.form-msg { margin-top: 20px; font-size: 15px; }
.form-msg.is-error { color: #c62a1f; }
.form-done { display: none; gap: 20px; animation: stepIn .8s var(--ease-out); }
.form-done.is-visible { display: grid; }
.form-done .check-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.info-row { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-light); }
.info-row dt { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .5; padding-top: 3px; }
.info-row dd { margin: 0; font-size: 18px; }
.hours { display: grid; gap: 4px; }
.hours div { display: flex; justify-content: space-between; gap: 20px; max-width: 320px; }
.map { margin-top: 40px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--g5); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.1); }
@media (max-width: 560px) { .info-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Pages légales ---------- */
.legal { padding-bottom: clamp(80px, 12vh, 140px); }
.legal-body { max-width: 780px; }
.legal-body h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin: 56px 0 14px; }
.legal-body h3 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.legal-body p, .legal-body li { opacity: .82; }
.legal-body ul { padding-left: 20px; }
.legal-body a { text-decoration: underline; }
.legal-body .box { border: 1px solid var(--line-light); border-radius: 6px; padding: 20px 22px; margin: 20px 0; }
mark.todo { background: #fff2a8; color: #000; padding: 0 4px; border-radius: 2px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.legal-toc a { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line-light); border-radius: 999px; }
.legal-toc a[aria-current="page"] { background: var(--black); color: var(--white); border-color: var(--black); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--black); color: var(--white); padding: clamp(80px, 12vh, 140px) 0 28px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 64px; }
.footer-top h4 { margin: 0 0 18px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; opacity: .5; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-top p { margin: 0 0 10px; }
.footer-big { font-size: clamp(64px, 17.5vw, 300px); line-height: .8; letter-spacing: -0.06em; font-weight: 500; white-space: nowrap; margin: 0 0 40px; user-select: none; }
.footer-big .serif { letter-spacing: -0.03em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; opacity: .6; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Apparitions ---------- */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
.no-js [data-reveal], .no-js .grid-cars .card { opacity: 1; transform: none; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal], .grid-cars .card { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
