/* Pages Stock et Fiche véhicule : même direction que l'accueil (fiche technique, Archivo étendu, rouge course) */
:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --ink: #f4f4f1;
  --muted: rgba(244, 244, 241, .58);
  --soft: rgba(244, 244, 241, .82);
  --line: rgba(244, 244, 241, .14);
  --red: #e3241b;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 400; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, select { font: inherit; color: inherit; }
em { font-style: normal; font-weight: 300; }
h1, h2, h3 { overflow-wrap: break-word; }
[hidden] { display: none !important; } /* un bouton masqué reste masqué même s'il a un style d'affichage */

/* Titres : largeur étendue, capitales */
.nav__logo b, .stock-hero h1, .page-hero h1, .sdet h2, .cta-band h2, .vcard__meta h3, .vinfo h1, .vbody h2, .related__head h2, .empty h2, .notfound h1, .vprice {
  font-stretch: 125%;
  text-transform: uppercase;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 10, 10, .9); backdrop-filter: blur(12px); padding-top: 14px; padding-bottom: 14px; border-color: var(--line); }
.nav__logo { display: flex; align-items: baseline; gap: 12px; line-height: 1; }
.nav__logo b { font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.nav__logo span { font-size: 10px; font-weight: 600; letter-spacing: .14em; opacity: .75; }
.nav__links { display: flex; gap: 32px; align-items: center; font-size: 14px; font-weight: 500; }
.nav__links a:not(.nav__cta) { opacity: .7; transition: opacity .25s; }
.nav__links a:hover, .nav__links a[aria-current] { opacity: 1; }
.nav__links a[aria-current] { box-shadow: 0 2px 0 var(--red); }
.nav__cta { background: var(--ink); color: var(--bg); padding: 11px 16px; font-weight: 600; transition: background .25s, color .25s; }
.nav__cta:hover { background: var(--red); color: #fff; }

/* ---------- Éléments communs ---------- */
.kicker {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--soft);
}
.kicker b { color: var(--red); font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 36px;
  padding: 18px 20px; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  border: 1px solid var(--ink); transition: background .25s, color .25s, border-color .25s; cursor: pointer; background: none;
}
.btn::after { content: "→"; font-weight: 400; transition: transform .25s; }
.btn:hover::after { transform: translateX(4px); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- Carte véhicule ---------- */
.vcard { display: block; }
.vcard__ph { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.vcard__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .6s ease; }
.vcard__alt { opacity: 0; }
.vcard:hover .vcard__ph img { transform: scale(1.04); }
.vcard:hover .vcard__alt { opacity: 1; }
.vcard__meta { padding-top: 16px; }
.vcard__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.vcard__meta h3 b { color: var(--red); margin-right: .45em; }
.vcard__meta h3 { font-weight: 650; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.05; letter-spacing: -.005em; }
.vcard__meta p { color: var(--muted); font-size: 13px; }
.vcard__meta strong { font-weight: 700; font-size: 17px; white-space: nowrap; }
.vcard:hover .vcard__meta strong { color: var(--red); }
.vcard.is-sold .vcard__ph img { filter: grayscale(1) brightness(.7); }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 9px; background: var(--ink); color: #000;
}
.badge--reserve { background: var(--red); color: #fff; }
.badge--vendu { background: #000; color: var(--ink); border: 1px solid var(--line); }
.badge--asuivre { background: rgba(10,10,10,.75); color: var(--ink); box-shadow: inset 0 0 0 1px var(--red); }

/* ---------- Page Stock ---------- */
.stock-hero {
  position: relative; height: 62vh; min-height: 420px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 0 var(--gutter) clamp(32px, 6vh, 64px);
}
.stock-hero__img { position: absolute; inset: -8% 0 0; background: center 60% / cover no-repeat; will-change: transform; }
.stock-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,.5) 40%, rgba(10,10,10,.1) 75%, rgba(10,10,10,.45) 100%);
}
.stock-hero__txt { position: relative; z-index: 1; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.stock-hero h1 { font-weight: 800; font-size: clamp(64px, 11vw, 176px); line-height: .82; letter-spacing: -.03em; margin-top: 16px; }
.stock-hero p { color: var(--soft); font-size: 15px; font-weight: 500; }
.stock-hero p b { color: var(--ink); font-size: 40px; font-stretch: 125%; font-weight: 700; display: block; line-height: 1; }

.filters {
  position: sticky; top: 61px; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 0;
  padding: 0 var(--gutter); margin-bottom: clamp(28px, 4vw, 48px);
  background: rgba(10, 10, 10, .94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.filter { display: flex; flex-direction: column; gap: 4px; padding: 14px 24px 14px 0; margin-right: 24px; border-right: 1px solid var(--line); }
.filter label b { color: var(--red); margin-right: 6px; }
.filter label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.filter select {
  appearance: none; background: transparent; border: 0;
  padding: 2px 24px 2px 0; font-size: 15px; font-weight: 600; cursor: pointer; min-width: 120px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.filter select:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.filter select option { background: var(--bg-2); color: var(--ink); }
.filters__end { margin-left: auto; display: flex; align-items: center; gap: 22px; padding: 14px 0; }
.count { font-size: 14px; color: var(--muted); }
.count b { color: var(--ink); font-weight: 700; }
.reset { background: none; border: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; color: var(--muted); transition: color .25s; }
.reset:hover { color: var(--red); }
.filters__toggle, .reset--mobile { display: none; }

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px);
  padding: 0 var(--gutter) clamp(80px, 10vw, 140px);
}
.grid .vcard { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.grid .vcard.is-in { opacity: 1; transform: none; }
.empty { grid-column: 1 / -1; padding: 70px 0; color: var(--muted); border-top: 1px solid var(--line); }
.empty h2 { font-weight: 700; font-size: clamp(26px, 3vw, 40px); color: var(--ink); margin-bottom: 12px; line-height: 1; }
.empty .btn { margin-top: 26px; }

/* ---------- Fiche véhicule ---------- */
.vpage { padding: 100px var(--gutter) clamp(80px, 10vw, 140px); }
.back { display: inline-flex; gap: 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin-bottom: 24px; transition: color .25s; }
.back:hover { color: var(--ink); }
.vtop { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

.gallery__main { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border: 0;
  background: rgba(10,10,10,.6); color: #fff; cursor: pointer;
  display: grid; place-items: center; font-size: 18px; transition: background .25s;
}
.gallery__nav:hover { background: var(--red); }
.gallery__nav--prev { left: 0; }
.gallery__nav--next { right: 0; }
.gallery__count { position: absolute; right: 14px; bottom: 14px; z-index: 2; font-size: 12px; font-weight: 600; background: rgba(10,10,10,.65); padding: 6px 9px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; }
.gallery__thumbs button { aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--bg-2); cursor: pointer; overflow: hidden; opacity: .45; transition: opacity .25s; position: relative; }
.gallery__thumbs button.is-active, .gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.vinfo { position: sticky; top: 92px; }
.vinfo .badge { position: static; display: inline-block; margin-bottom: 18px; }
.vinfo h1 { font-weight: 750; font-size: clamp(34px, 3.4vw, 54px); line-height: .95; letter-spacing: -.015em; margin-top: 14px; }
.vinfo .version { color: var(--muted); margin-top: 12px; font-size: 15px; }
.vprice { font-weight: 700; font-size: clamp(30px, 2.8vw, 42px); margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); letter-spacing: -.01em; }
.vprice small { display: block; font-stretch: 100%; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-top: 6px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs div:nth-child(odd) { padding-right: 18px; }
.specs div:nth-child(even) { padding-left: 18px; }
.specs dt { font-size: 12px; font-weight: 500; color: var(--muted); }
.specs dd { font-size: 15px; font-weight: 600; text-align: right; }
.vactions { display: grid; gap: 8px; margin-top: 26px; }

.vbody { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(56px, 7vw, 100px); }
.vbody h2 { font-weight: 700; font-size: clamp(24px, 2.2vw, 32px); margin: 12px 0 22px; letter-spacing: -.01em; }
.vdesc p { color: var(--soft); line-height: 1.75; font-size: 16px; max-width: 66ch; }
.vdesc p + p { margin-top: 1em; }
.equip { list-style: none; }
.equip li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; gap: 14px; align-items: baseline; }
.equip li::before { content: ""; width: 8px; height: 2px; background: var(--red); flex: none; transform: translateY(-4px); }

.related { margin-top: clamp(70px, 9vw, 120px); }
.related__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.related__head h2 { font-weight: 700; font-size: clamp(28px, 3vw, 44px); margin-top: 12px; line-height: .95; }
.related .grid { padding: 0; }
.related .grid .vcard { opacity: 1; transform: none; }
.link-arrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.link-arrow:hover { color: var(--red); }

.notfound { min-height: 70vh; display: grid; place-items: center; padding: 120px var(--gutter); }
.notfound h1 { font-weight: 750; font-size: clamp(34px, 4.6vw, 64px); margin: 14px 0 26px; line-height: .95; }

/* ---------- Estimation (dépôt-vente) ---------- */
.estim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); padding: 120px var(--gutter) clamp(80px, 10vw, 140px); align-items: start; }
.estim__intro { position: sticky; top: 110px; }
.estim__intro h1 { font-stretch: 125%; text-transform: uppercase; font-weight: 750; font-size: clamp(38px, 4.4vw, 68px); line-height: .95; letter-spacing: -.015em; margin: 16px 0 22px; }
.estim__intro p { color: var(--soft); line-height: 1.7; max-width: 46ch; }
.estim__points { list-style: none; margin-top: 32px; border-top: 1px solid var(--line); }
.estim__points li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.estim__points b { color: var(--red); font-weight: 700; }
.estim__form fieldset { border: 0; display: grid; gap: 16px; padding: 0 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.estim__form legend { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.estim__form legend b { color: var(--red); margin-right: 10px; }
.estim__form legend span { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.estim__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.estim__form label { display: grid; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.estim__form input:not([type=checkbox]):not([type=file]), .estim__form select, .estim__form textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 0;
  padding: 14px 14px; font: inherit; font-size: 16px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink);
  appearance: none; transition: border-color .2s;
}
.estim__form textarea { resize: vertical; min-height: 120px; }
.estim__form input:focus, .estim__form select:focus, .estim__form textarea:focus { outline: none; border-color: var(--red); }
.estim__form select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.estim__trap { position: absolute; left: -9999px; }
.estim__drop { position: relative; display: grid; place-items: center; gap: 6px; padding: 30px 20px; border: 1px dashed var(--line); background: var(--bg-2); text-align: center; cursor: pointer; transition: border-color .2s; }
.estim__drop:hover { border-color: var(--red); }
.estim__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.estim__drop span { color: var(--ink); font-size: 14px; }
.estim__drop small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.estim__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.estim__thumbs:empty { display: none; }
.estim__thumbs figure { position: relative; aspect-ratio: 1; background: var(--bg-2); }
.estim__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.estim__thumbs button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; background: rgba(10,10,10,.75); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.estim__thumbs button:hover { background: var(--red); }
.estim__consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 12px !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; font-size: 13px !important; line-height: 1.5; }
.estim__consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.estim__send { display: grid; gap: 14px; justify-items: start; }
.estim__send .btn:disabled { opacity: .5; cursor: wait; }
.estim__status { font-size: 14px; color: var(--soft); }
.estim__status a { color: var(--ink); border-bottom: 1px solid currentColor; }
.estim__done h2 { font-stretch: 125%; text-transform: uppercase; font-weight: 750; font-size: clamp(30px, 3vw, 48px); line-height: .95; margin: 14px 0 20px; }
.estim__done p { color: var(--soft); margin-bottom: 26px; }
.estim__done a:not(.btn) { color: var(--ink); border-bottom: 1px solid var(--red); }

/* Visionneuse plein écran */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(5,5,5,.97);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.lightbox__close { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: #fff; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.lightbox__close:hover { color: var(--red); }
.lightbox .gallery__count { bottom: 24px; right: 50%; transform: translateX(50%); }

/* ---------- Pages Services et Contact ---------- */
.page-hero {
  position: relative; height: 78vh; min-height: 480px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 0 var(--gutter) clamp(32px, 6vh, 64px);
}
.page-hero--short { height: 64vh; }
.page-hero__img { position: absolute; inset: -8% 0 0; background: center 62% / cover no-repeat; will-change: transform; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,.45) 38%, rgba(10,10,10,.05) 70%, rgba(10,10,10,.5) 100%);
}
.page-hero__txt { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 30px; }
.page-hero__txt > div { container-type: inline-size; }
.page-hero h1 { font-weight: 800; font-size: min(168px, 10.4cqi); line-height: .82; letter-spacing: -.03em; margin-top: 16px; }
.page-hero p { color: var(--soft); font-size: 17px; line-height: 1.5; max-width: 30ch; text-align: right; }
.page-hero p b { display: block; color: var(--ink); font-weight: 600; }

/* Sommaire des services, collé sous la barre */
.sommaire {
  position: sticky; top: 61px; z-index: 20;
  display: flex; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none;
  background: rgba(10, 10, 10, .94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sommaire::-webkit-scrollbar { display: none; }
.sommaire a {
  position: relative; flex: 1; display: flex; align-items: baseline; gap: 10px;
  padding: 18px 20px 18px 0; margin-right: 20px; border-right: 1px solid var(--line);
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: var(--muted); transition: color .3s;
}
.sommaire a:last-child { border-right: 0; margin-right: 0; }
.sommaire a b { color: var(--red); }
.sommaire a::after {
  content: ""; position: absolute; left: 0; right: 20px; bottom: -1px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.7, 0, .2, 1);
}
.sommaire a:hover, .sommaire a.is-on { color: var(--ink); }
.sommaire a.is-on::after { transform: scaleX(1); }

/* Un service : grande image + texte, en alternance gauche / droite */
.sdet {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center;
  padding: clamp(64px, 9vw, 130px) var(--gutter); border-bottom: 1px solid var(--line); scroll-margin-top: 110px;
}
.sdet:nth-child(even) .sdet__ph { order: 2; }
.sdet__ph { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.sdet__ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.sdet__ph::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 34%; background: var(--red);
  transition: width 1.2s cubic-bezier(.7, 0, .2, 1) .9s;
}
.sdet__txt { position: relative; max-width: 560px; container-type: inline-size; }
/* Grand numéro en filigrane derrière le titre */
.sdet__txt::before {
  content: attr(data-n); position: absolute; right: 0; top: -.32em; z-index: -1;
  font-stretch: 125%; font-weight: 800; font-size: clamp(120px, 14vw, 230px); line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(244, 244, 241, .1);
}
.sdet__txt h2 { font-weight: 750; font-size: min(64px, 10cqi); line-height: .9; letter-spacing: -.02em; margin: 16px 0 24px; overflow-wrap: normal; }
.sdet__lead { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; font-weight: 500; }
.sdet__txt > p:not(.sdet__lead) { color: var(--soft); line-height: 1.7; margin-top: 14px; }
.sdet__steps { list-style: none; margin: 30px 0 34px; border-top: 1px solid var(--line); }
.sdet__steps li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sdet__steps b { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.sdet__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sdet__actions .btn { min-width: 240px; }

/* Présentation du garage (texte du dirigeant) */
.manif { padding: clamp(80px, 11vw, 160px) var(--gutter) clamp(56px, 7vw, 96px); container-type: inline-size; }
.manif__big {
  margin: 22px 0 clamp(36px, 5vw, 64px); max-width: 18ch;
  font-stretch: 125%; text-transform: uppercase; font-weight: 750;
  font-size: min(84px, 9.6cqi); line-height: .95; letter-spacing: -.02em;
}
.manif__big em { font-weight: 300; }
.manif__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); max-width: 1100px; margin-left: auto; }
.manif__cols p { color: var(--soft); font-size: 17px; line-height: 1.7; padding-top: 22px; border-top: 1px solid var(--line); }

/* Bandeau des marques qui défile */
.marques { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(18px, 2.4vw, 30px) 0; }
.marques__piste { display: flex; width: max-content; animation: defile 46s linear infinite; }
.marques:hover .marques__piste { animation-play-state: paused; }
.marques span {
  display: inline-flex; align-items: center; gap: .55em; padding-right: .55em; white-space: nowrap;
  font-stretch: 125%; text-transform: uppercase; font-weight: 800; font-size: clamp(34px, 5.4vw, 88px); line-height: 1; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(244, 244, 241, .38); transition: color .4s, -webkit-text-stroke-color .4s;
}
.marques span::after { content: ""; width: .16em; height: .16em; background: var(--red); flex: none; }
.marques span:hover { color: var(--ink); -webkit-text-stroke-color: var(--ink); }
@keyframes defile { to { transform: translateX(-50%); } }

/* Notre engagement */
.engagement { padding: clamp(80px, 11vw, 160px) var(--gutter); border-bottom: 1px solid var(--line); text-align: center; display: grid; justify-items: center; container-type: inline-size; }
.engagement__txt {
  margin: 22px 0 26px; max-width: 22ch;
  font-stretch: 125%; text-transform: uppercase; font-weight: 750;
  font-size: min(68px, 8.6cqi); line-height: .98; letter-spacing: -.02em;
}
.engagement__txt em { font-weight: 300; }
.engagement__sub { color: var(--soft); font-size: 18px; line-height: 1.6; max-width: 46ch; }
.engagement__sign { margin-top: 34px; font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--soft); }
.engagement__sign b { color: var(--red); }

/* ---------- Page Partenaires ---------- */
.pgrid-wrap { padding: 0 var(--gutter) clamp(80px, 10vw, 140px); }
.pgrid-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 22px; margin-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.pgrid-count { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.pcard {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .4s, translate .5s cubic-bezier(.2, .7, .2, 1);
}
.pcard:hover { border-color: rgba(227, 36, 27, .6); translate: 0 -4px; }
/* Filet rouge qui se trace en haut de la carte survolée */
.pcard::after { content: ""; position: absolute; left: -1px; top: -1px; height: 3px; width: 0; background: var(--red); transition: width .6s cubic-bezier(.7, 0, .2, 1); }
.pcard:hover::after { width: calc(100% + 2px); }
.pcard__logo { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: #f2f2ef; }
/* Logo en noir, découpé dans sa forme ; il passe au rouge au survol */
.logo-masque {
  display: block; width: 56%; height: 44%; background: #0a0a0a;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
  transition: background-color .5s, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.pcard:hover .logo-masque { background: var(--red); transform: scale(1.05); }
.pcard .pcard__nom-logo { padding: 0 20px; text-align: center; font-stretch: 125%; text-transform: uppercase; font-weight: 800; font-size: 24px; line-height: 1.05; color: #0a0a0a; transition: color .4s; }
.pcard:hover .pcard__nom-logo { color: var(--red); }
.pcard__vide { display: grid; justify-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(10, 10, 10, .45); }
.pcard__vide b { font-stretch: 125%; font-weight: 800; font-size: clamp(48px, 5vw, 72px); line-height: 1; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(10, 10, 10, .25); }
/* Emplacement provisoire : un reflet passe lentement sur le logo */
.pcard.is-vide .pcard__logo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .75) 50%, transparent 70%);
  transform: translateX(-100%); animation: lueur 3.2s ease-in-out infinite;
}
@keyframes lueur { 60%, 100% { transform: translateX(100%); } }
.pcard__body { flex: 1; display: grid; align-content: start; gap: 12px; padding: 24px 24px 28px; }
.pcard h3 { font-stretch: 125%; text-transform: uppercase; font-weight: 750; font-size: 22px; line-height: 1; letter-spacing: -.01em; }
.pcard p { color: var(--soft); font-size: 15px; line-height: 1.6; }
.pcard.is-vide h3, .pcard.is-vide p { color: var(--muted); }
.pcard__lien { justify-self: start; margin-top: 6px; padding-bottom: 3px; border-bottom: 1px solid var(--red); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pcard__lien:hover { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .pcard.is-vide .pcard__logo::after { animation: none; display: none; } }

/* Bandeau final */
.cta-band {
  display: grid; justify-items: center; gap: 18px; text-align: center;
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  background: radial-gradient(ellipse at 50% 130%, rgba(227, 36, 27, .25), transparent 60%);
  container-type: inline-size;
}
.cta-band h2 { max-width: 16ch; font-weight: 800; font-size: min(120px, 8.6cqi); line-height: .85; letter-spacing: -.03em; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.cta-band__actions .btn { min-width: 260px; }

/* Contact : coordonnées à gauche, formulaire à droite */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); align-items: start;
  padding: clamp(56px, 7vw, 100px) var(--gutter) clamp(80px, 10vw, 140px);
}
.contact__info { position: sticky; top: 100px; container-type: inline-size; }
.contact__tel {
  display: block; padding-bottom: 28px; border-bottom: 1px solid var(--line);
  font-stretch: 125%; font-weight: 800; font-size: min(68px, 11cqi); line-height: .95; letter-spacing: -.02em;
  white-space: nowrap; transition: color .25s;
}
.contact__tel span, .contact__info dt {
  display: flex; gap: 10px; margin-bottom: 12px;
  font-stretch: 100%; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--soft);
}
.contact__tel b, .contact__info dt b { color: var(--red); }
.contact__tel:hover { color: var(--red); }
.contact__info dl div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact__info dd { font-size: 18px; font-weight: 500; line-height: 1.45; }
.contact__info dd a { transition: color .25s; }
.contact__info dd a:hover { color: var(--red); }
.contact__info .contact__links { display: flex; gap: 22px; margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.contact__links a { border-bottom: 1px solid var(--red); padding-bottom: 3px; }
.contact__done { grid-column: 2; }

@media (max-width: 1240px) and (min-width: 861px) {
  .nav__links { gap: 20px; font-size: 13px; }
  .nav__logo span { display: none; }
}
@media (max-width: 860px) {
  .page-hero { height: 66vh; min-height: 420px; }
  .page-hero__txt { grid-template-columns: minmax(0, 1fr); }
  .page-hero p { text-align: left; }
  .sommaire { top: 64px; }
  .sommaire a { flex: none; }
  .sdet { grid-template-columns: minmax(0, 1fr); scroll-margin-top: 130px; }
  .manif__cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .manif__cols p { font-size: 16px; }
  .engagement__sign { letter-spacing: .16em; }

  .sdet:nth-child(even) .sdet__ph { order: 0; }
  .sdet__txt::before { top: -.15em; }
  .sdet__actions .btn, .cta-band__actions .btn { width: 100%; min-width: 0; }
  .cta-band__actions { width: 100%; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact__info { position: static; }
  .contact__done { grid-column: auto; }
}

/* ---------- Configurateur de recherche ---------- */
.cfg {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start;
  padding: clamp(48px, 6vw, 88px) var(--gutter) clamp(80px, 10vw, 140px);
}
.cfg-js .cfg__step:not(.is-on) { display: none; }
.cfg-js .cfg__step.is-on { animation: cfg-in .6s cubic-bezier(.2, .7, .2, 1); }
@keyframes cfg-in { from { opacity: 0; transform: translateX(28px); } }

/* Étapes 01 → 05 */
.cfg__progress { display: none; list-style: none; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 40px; }
.cfg-js .cfg__progress { display: grid; }
.cfg__progress button {
  width: 100%; padding: 12px 0 0; text-align: left; cursor: pointer;
  background: none; border: 0; border-top: 2px solid var(--line); color: var(--muted);
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: color .3s, border-color .3s;
}
.cfg__progress b { display: block; margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.cfg__progress .is-done { border-color: rgba(227, 36, 27, .45); color: var(--soft); }
.cfg__progress .is-on { border-color: var(--red); color: var(--ink); }
.cfg__progress .is-on b, .cfg__progress .is-done b { color: var(--red); }

.cfg__q { margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cfg__q span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.cfg__note { font-size: 14px; color: var(--soft); }
.cfg__note a { color: var(--ink); border-bottom: 1px solid var(--red); }

/* Choix sous forme de boutons */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.estim__form .chip { position: relative; display: inline-flex; gap: 0; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--soft); }
.chip input, .swatch input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.chip span { padding: 11px 16px; border: 1px solid var(--line); background: var(--bg-2); transition: border-color .25s, background .25s, color .25s; }
.chip:hover span { border-color: rgba(244, 244, 241, .4); color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip input:focus-visible + span, .swatch input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }
.chips--marques { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.chips--marques .chip span {
  width: 100%; padding: 18px 6px; text-align: center; white-space: nowrap;
  font-stretch: 125%; text-transform: uppercase; font-weight: 700; font-size: 11.5px; letter-spacing: .01em;
}
.chips--marques .chip input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }

/* Pastilles de couleur */
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 10px; }
.estim__form .swatch { position: relative; display: grid; justify-items: center; gap: 8px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; color: var(--soft); }
.swatch span { width: 44px; height: 44px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: transform .25s, box-shadow .25s; }
.swatch span.swatch--libre { background: conic-gradient(#111214, #ecebe6, #7b7f84, #1d3f8f, #c4161c, #1e5a3c, #e5bf1c, #de6a1e, #111214); }
.swatch:hover span { transform: scale(1.07); }
.swatch input:checked + span { transform: scale(1.07); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--red); }
.swatch input:checked ~ * { color: var(--ink); }

/* Curseurs budget et kilométrage */
.estim__form .cfg__range { gap: 14px; }
.cfg__range output { font-stretch: 125%; text-transform: uppercase; font-weight: 750; font-size: 24px; letter-spacing: -.01em; color: var(--ink); }
.estim__form .cfg__range input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 2px; padding: 0; margin: 10px 0;
  border: 0; background: var(--line); cursor: pointer;
}
.cfg__range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); border: 5px solid var(--bg); box-shadow: 0 0 0 1px var(--red);
}
.cfg__range input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--red); border: 5px solid var(--bg); box-shadow: 0 0 0 1px var(--red); }

.cfg__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cfg__nav .btn { min-width: 220px; }
.cfg__prev::after { content: "←"; order: -1; }

/* Fiche de recherche, façon fiche technique */
.cfg__card {
  position: sticky; top: 100px; overflow: hidden; padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(244, 244, 241, .035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(244, 244, 241, .035) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg-2);
}
.cfg__card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cfg__step-n { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--red); }
.cfg__card h2 {
  margin: 24px 0 8px; font-stretch: 125%; text-transform: uppercase; font-weight: 800;
  font-size: clamp(26px, 2.5vw, 42px); line-height: .95; letter-spacing: -.015em;
}
.cfg__version { color: var(--soft); font-size: 14px; min-height: 1.5em; }
.cfg__car { margin: 14px -6px 6px; }
.cfg__car svg { display: block; width: 100%; height: auto; }
.cfg__body { fill: #262626; stroke: rgba(244, 244, 241, .35); stroke-width: 1.5; transition: fill .7s ease, stroke .7s ease; }
.cfg__body.is-set { stroke: rgba(255, 255, 255, .16); }
.cfg__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cfg__specs dt { color: var(--muted); }
.cfg__specs dd { text-align: right; color: var(--muted); transition: color .3s; }
.cfg__specs .is-set dd { color: var(--ink); font-weight: 600; }
.cfg__bar { height: 3px; margin-top: 22px; background: var(--line); }
.cfg__bar i { display: block; height: 100%; width: 20%; background: var(--red); transition: width .7s cubic-bezier(.7, 0, .2, 1); }
.cfg__form, .cfg__done { grid-column: 1; grid-row: 1; }
.cfg__card { grid-column: 2; grid-row: 1; }
.cfg__mini { display: none; }

@media (max-width: 860px) {
  .cfg { grid-template-columns: minmax(0, 1fr); padding-bottom: 120px; }
  .cfg__card { position: static; order: -1; padding: 22px; grid-column: auto; grid-row: auto; }
  .cfg__form, .cfg__done { grid-column: auto; grid-row: auto; }
  .cfg__specs { display: none; }
  .cfg__progress button { font-size: 0; }
  .cfg__progress b { font-size: 12px; }
  .chips--marques { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips--marques .chip span { font-size: min(11.5px, 3.4vw); }
  .swatch span { width: 40px; height: 40px; }
  .cfg__nav .btn { width: 100%; min-width: 0; }
  .cfg-js .cfg__mini {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 10, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); font-size: 13px;
  }
  .cfg__mini b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-stretch: 125%; text-transform: uppercase; }
  .cfg__mini span { color: var(--red); font-weight: 600; white-space: nowrap; }
}

/* ---------- Animations des pages intérieures (js/anim.js), sans film ---------- */
.anim [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s ease var(--d, 0s), transform 1s cubic-bezier(.2, .7, .2, 1) var(--d, 0s);
}
.anim [data-reveal].is-in { opacity: 1; transform: none; }
/* Mots qui sortent de leur ligne comme d'un masque */
.anim .mot { display: inline-block; overflow: hidden; vertical-align: top; padding: .2em 0 .08em; margin: -.2em 0 -.08em; } /* marge haute : les accents des capitales (É, Ô) ne sont pas coupés */
.anim .mot > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.anim [data-split].is-in .mot > span { transform: none; }
/* Images découvertes de gauche à droite, puis filet rouge */
.anim [data-wipe] { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.7, 0, .2, 1); }
.anim [data-wipe].is-in { clip-path: inset(0 0 0 0); }
.anim .sdet__ph::after { width: 0; }
.anim .sdet__ph.is-in::after { width: 34%; }
[data-parallax] { will-change: transform; }
/* Image d'en-tête : légère avancée à l'ouverture de la page */
.anim .page-hero__img { animation: hero-in 2.6s cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { .marques__piste { animation: none; } }
@keyframes hero-in { from { scale: 1.14; opacity: 0; } to { scale: 1; opacity: 1; } }
/* Mot mis en valeur : le rouge le balaie de gauche à droite */
.anim .hl {
  background: linear-gradient(90deg, var(--red) 50%, currentColor 50%) 100% 0 / 200% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  transition: background-position 1.2s cubic-bezier(.7, 0, .2, 1) .5s;
}
.anim .hl.is-in { background-position: 0 0; }

/* ---------- Pied de page ---------- */
footer {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 28px var(--gutter); border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .estim { grid-template-columns: 1fr; }
  .estim__intro { position: static; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .vtop, .vbody { grid-template-columns: 1fr; }
  .vinfo { position: static; }
}
@media (max-width: 860px) {
  .nav { padding: 16px var(--gutter); }
  .nav__logo span { display: none; }
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__cta { padding: 9px 12px; font-size: 13px; }
  /* Filtres repliés : une seule ligne « 6 véhicules · Filtrer et trier », dépliée au toucher */
  .filters { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; padding: 0 var(--gutter); }
  .filter { display: none; margin: 0; padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .filters.is-open .filter { display: flex; }
  .filter label { font-size: 12px; }
  .filter select { min-width: 0; width: 100%; min-height: 40px; font-size: 16px; } /* 16 px : Safari ne zoome plus au toucher */
  .filters__end { grid-column: 1 / -1; order: -1; margin: 0; padding: 6px 0; justify-content: space-between; gap: 16px; }
  .filters.is-open .filters__end { border-bottom: 1px solid var(--line); }
  .count, .filters__toggle { white-space: nowrap; }
  .reset--desktop { display: none; }
  .reset--mobile { grid-column: 1 / -1; justify-self: end; padding: 14px 0; }
  .filters.is-open .reset--mobile { display: block; }
  .filters__toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
    background: none; border: 1px solid var(--line); cursor: pointer;
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  }
  .filters__toggle::after { content: "+"; font-size: 16px; font-weight: 400; line-height: 1; }
  .filters.is-open .filters__toggle::after { content: "–"; }
  .filters__toggle b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; background: var(--red); color: #fff; font-size: 11px; }
  .filter:nth-child(5) { grid-column: 1 / -1; } /* « Trier par » sur toute la largeur */
  .stock-hero p b { font-size: 30px; }
  .vinfo h1 { font-size: 7.6vw; }
}
/* Barre « Appeler » fixe en bas de la fiche, sur téléphone seulement */
.vbar { display: none; }
@media (max-width: 860px) {
  .has-vbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .vbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 10, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  }
  .vbar.is-hidden { transform: translateY(110%); }
  .vbar__info { min-width: 0; display: grid; gap: 2px; }
  .vbar__info strong { font-stretch: 125%; font-weight: 750; font-size: 18px; text-transform: uppercase; }
  .vbar__info span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vbar__btn {
    flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
    background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  }
  .vbar__btn::after { content: "→"; font-weight: 400; }
  .back { padding: 10px 0; margin-bottom: 14px; }
  footer nav a, .link-arrow { padding: 10px 0; }
  .estim__drop small { font-size: 12px; }
  .estim__consent input { width: 22px; height: 22px; margin-top: 0; }
}

@media (max-width: 640px) {
  /* Vignettes de la galerie : un seul bandeau qui défile au doigt */
  .gallery__thumbs { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .gallery__thumbs::-webkit-scrollbar { display: none; }
  .gallery__thumbs button { flex: 0 0 76px; scroll-snap-align: start; }
  .estim__row { grid-template-columns: 1fr; }
  .estim__thumbs { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs div:nth-child(odd), .specs div:nth-child(even) { padding-left: 0; padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .grid .vcard { opacity: 1; transform: none; transition: none; }
}

/* ---------- Pages légales : mentions légales et confidentialité ---------- */
.legal-hero {
  display: grid; gap: clamp(22px, 3vw, 40px);
  padding: clamp(130px, 19vh, 210px) var(--gutter) 0;
  background: radial-gradient(ellipse at 88% -10%, rgba(227, 36, 27, .2), transparent 55%);
}
.legal-hero > div { container-type: inline-size; }
.legal-hero h1 { font-stretch: 125%; text-transform: uppercase; font-weight: 800; font-size: min(132px, 8.4cqi); line-height: .96; letter-spacing: -.03em; margin-top: 18px; }
.legal-tabs { display: flex; gap: 28px; padding-bottom: 6px; }
.legal-tabs a {
  position: relative; display: flex; gap: 10px; padding: 12px 0;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--muted); transition: color .3s;
}
.legal-tabs a b { color: var(--red); }
.legal-tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.7, 0, .2, 1); }
.legal-tabs a:hover, .legal-tabs a[aria-current] { color: var(--ink); }
.legal-tabs a[aria-current]::after { transform: scaleX(1); }

.legal {
  display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: clamp(32px, 7vw, 130px); align-items: start;
  margin-top: clamp(40px, 5vw, 64px); padding: clamp(48px, 6vw, 88px) var(--gutter) clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--line);
}
.legal__index { position: sticky; top: 100px; }
.legal__index ol { list-style: none; margin-top: 18px; border-top: 1px solid var(--line); }
.legal__index a {
  display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); transition: color .25s, padding .35s;
}
.legal__index a b { color: var(--red); }
.legal__index a:hover { color: var(--ink); }
.legal__index a.is-on { color: var(--ink); padding-left: 8px; }
.legal__maj { margin-top: 20px; font-size: 12px; line-height: 1.5; color: var(--muted); }

.legal__body { max-width: 800px; }
.legal__art { padding-bottom: clamp(40px, 5vw, 60px); margin-bottom: clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.legal__art:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.legal__art h2 {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px;
  font-stretch: 125%; text-transform: uppercase; font-weight: 750; font-size: clamp(21px, 2.3vw, 30px); line-height: 1.05; letter-spacing: -.01em;
}
.legal__art h2 b { flex: none; color: var(--red); font-size: 13px; font-stretch: 100%; letter-spacing: .06em; }
.legal__art h3 { margin: 26px 0 8px; font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.legal__art p, .legal__art li { color: var(--soft); font-size: 16px; line-height: 1.7; }
.legal__art p + p, .legal__art ul + p, .legal__art p + ul { margin-top: 14px; }
.legal__art ul { list-style: none; }
.legal__art ul li { position: relative; padding-left: 24px; }
.legal__art ul li + li { margin-top: 6px; }
.legal__art ul li::before { content: ""; position: absolute; left: 0; top: .85em; width: 12px; height: 1px; background: var(--red); }
.legal__art strong { color: var(--ink); font-weight: 600; }
.legal__art a { color: var(--ink); border-bottom: 1px solid var(--red); transition: color .25s; }
.legal__art a:hover { color: var(--red); }

/* Fiche d'identité : intitulé à gauche, valeur à droite */
.legal__fiche { margin-top: 6px; border-top: 1px solid var(--line); }
.legal__fiche div { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal__fiche dt { padding-top: 3px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal__fiche dd { font-size: 16px; line-height: 1.5; }
.legal__fiche dd small { display: block; font-size: 13px; color: var(--muted); }

/* Formulaires du site : une carte par formulaire */
.legal__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 22px; background: var(--line); border: 1px solid var(--line); }
.legal__cards article { display: grid; align-content: start; gap: 10px; padding: 22px 20px 24px; background: var(--bg); }
.legal__cards .kicker b { font-size: 12px; }
.legal__cards h3 { margin: 0; font-stretch: 125%; font-size: 17px; font-weight: 750; letter-spacing: 0; }
.legal__cards p { font-size: 14px; line-height: 1.6; }

@media (max-width: 1100px) {
  .legal__cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .legal-hero { gap: 22px; padding-top: 120px; }
  .legal-tabs { gap: 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .legal-tabs::-webkit-scrollbar { display: none; }
  .legal { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 0; padding-top: 28px; border-top: 0; }
  .legal__index { position: static; }
  .legal__index > .kicker, .legal__index ol { display: none; }
  .legal__maj { margin: 0 0 36px; }
  .legal__art p, .legal__art li, .legal__fiche dd { font-size: 15px; }
  .legal__fiche div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .notfound h1 { font-size: min(34px, 8vw); }
}
@media (max-width: 400px) {
  .legal-tabs a b { display: none; }
}
