/* M-Motors — atelier sombre : grandes photos de studio, titres en serif, petites capitales espacées */
:root {
  --night: #1d1e21;        /* fond principal : gris foncé */
  --night-2: #26272b;      /* fond des sections alternées */
  --glow: #34363d;         /* haut du dégradé */
  --ivory: #efebe4;        /* texte principal, comme le blanc cassé du titre */
  --ash: #a29e97;          /* texte secondaire */
  --line: rgba(239, 235, 228, 0.14);
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse 90% 45% at 50% 0%, rgba(255, 255, 255, .06), transparent 70%),
    linear-gradient(180deg, var(--glow) 0%, var(--night) 35%, #18191c 100%);
  color: var(--ivory);
  font: 300 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: italic; }

h2 {
  font: 400 clamp(40px, 5.6vw, 76px)/1 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 em { color: var(--ash); }

.label {
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 28px;
}

/* Boutons et liens */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 30px;
  border: 1px solid var(--ivory);
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color .35s cubic-bezier(.16, 1, .3, 1), transform .35s cubic-bezier(.16, 1, .3, 1), border-color .35s;
}
/* Tous les boutons : fond blanc qui se déploie depuis le centre au survol, texte qui passe au noir */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ivory);
  transform: scale(.6);
  opacity: 0;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .3s;
}
.btn:hover, .btn:focus-visible { color: var(--night); transform: translateY(-1px); }
.btn:hover::before, .btn:focus-visible::before { transform: scale(1); opacity: 1; }
.btn[disabled] { transform: none; }
.btn[disabled]::before { opacity: 0; }
.btn svg { position: relative; }
/* Appui : réaction immédiate sous le doigt */
.btn:active, .nav__left a:active, .nav__cta:active, .menu a:active, .nav__burger:active, .link:active {
  transform: scale(.97);
  transition-duration: 80ms;
}
.btn[disabled]:active { transform: none; }
.link {
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ivory);
  padding-bottom: 6px;
}
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 1px solid var(--ivory); outline-offset: 4px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: calc(18px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 18px max(var(--gutter), env(safe-area-inset-left, 0px));
  transition: background .4s, padding .4s;
  animation: fade .6s both;
}
.nav { transition: background .5s ease, backdrop-filter .5s ease, -webkit-backdrop-filter .5s ease, padding .4s; }
/* Verre fumé : le contenu reste deviné en dessous */
.nav.is-solid { background: rgba(24, 25, 28, 0.62); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); box-shadow: 0 1px 0 rgba(239, 235, 228, 0.06); padding-block: 10px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.nav__left { display: flex; gap: 6px; justify-self: center; }
.nav__logo { justify-self: start; }
.nav__left a, .nav__cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 999px;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(239, 235, 228, 0.85);
  transition: color .35s cubic-bezier(.16, 1, .3, 1), transform .35s cubic-bezier(.16, 1, .3, 1);
}
/* fond blanc qui se déploie depuis le centre au survol */
.nav__left a::before, .nav__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--ivory);
  transform: scale(.6);
  opacity: 0;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .3s;
}
.nav__left a:hover, .nav__cta:hover,
.nav__left a:focus-visible, .nav__cta:focus-visible { color: var(--night); transform: translateY(-1px); }
.nav__left a:hover::before, .nav__cta:hover::before,
.nav__left a:focus-visible::before, .nav__cta:focus-visible::before { transform: scale(1); opacity: 1; }
.nav__logo img { height: 58px; width: auto; transition: height .4s; }
.nav.is-solid .nav__logo img { height: 46px; }
/* « Nous contacter » : blanc plein, passe en sombre au survol */
.nav__cta { justify-self: end; border: 1px solid var(--ivory); padding: 12px 22px; color: var(--night); background: var(--ivory); }
.nav__cta::before { background: var(--night); }
.nav__cta:hover, .nav__cta:focus-visible { color: var(--ivory); border-color: var(--ivory); }
.nav__burger { display: none; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: var(--night);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 100px max(var(--gutter), env(safe-area-inset-right, 0px)) 40px max(var(--gutter), env(safe-area-inset-left, 0px));
}
/* Le menu glisse depuis le bouton (en haut à droite) et repart par le même chemin */
.menu {
  transform-origin: calc(100% - 40px) 40px;
  transition: opacity .3s ease, transform .45s cubic-bezier(.16, 1, .3, 1), display .45s allow-discrete, overlay .45s allow-discrete;
}
.menu[hidden] { display: none; opacity: 0; transform: translateY(-16px) scale(.98); }
@starting-style { .menu:not([hidden]) { opacity: 0; transform: translateY(-16px) scale(.98); } }
.menu a { transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.menu a { font: 400 42px/1.2 var(--serif); }
.menu .menu__tel { margin-top: 28px; font: 500 13px/1 var(--sans); letter-spacing: .28em; color: var(--ash); }

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  max-height: 1100px;
  overflow: hidden;
  background: #000;
}
.hero__media { position: absolute; inset: 0; will-change: transform; transform-origin: 50% 60%; }
.hero__shade { position: absolute; inset: 0; z-index: 1; background: #000; opacity: 0; pointer-events: none; }
.hero__title em { font-style: italic; color: var(--ivory); }
.hero__media img, .hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  animation: settle 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 38%, rgba(0,0,0,0) 58%, rgba(0,0,0,.55) 100%),
    radial-gradient(ellipse 70% 60% at 50% 100%, transparent 40%, rgba(0,0,0,.5) 100%);
}
.hero__light {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: -10%;
  width: min(900px, 120vw);
  height: 85%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 32% 70% at 50% 0%, rgba(255,255,255,.16), rgba(255,255,255,.04) 55%, transparent 75%);
  pointer-events: none;
  animation: light 1.2s both;
}
.hero__content {
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 18vh 16px 6vh;
}
.hero__title {
  font: 400 clamp(52px, 8.2vw, 132px)/0.95 var(--serif);
  letter-spacing: -0.015em;
  color: var(--ivory);
}
.hero__title span { display: block; text-wrap: balance; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__title span:nth-child(1) { animation-delay: .1s; }
.hero__title span:nth-child(2) { animation-delay: .22s; }
.hero__foot { display: grid; justify-items: center; gap: 26px; animation: fade .7s .45s both; }
.hero__foot p {
  font: 400 12px/2.1 var(--sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(239, 235, 228, 0.82);
}
.hero__foot i { width: 44px; height: 1px; background: rgba(239, 235, 228, 0.6); }

@keyframes settle { from { transform: scale(1.08); filter: brightness(.7); } to { transform: scale(1); filter: brightness(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes light { from { opacity: 0; } to { opacity: 1; } }
@keyframes breathe { 50% { opacity: .7; } }

/* ---------- Sections ---------- */
section:not(.hero) {
  padding-block: clamp(90px, 13vw, 170px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
section > * { max-width: 1320px; margin-inline: auto; }

/* L'agence */
.intro__big {
  font: 400 clamp(30px, 3.6vw, 52px)/1.15 var(--serif);
  max-width: 1100px;
  margin-left: 0;
  text-wrap: pretty;
}
.intro__big em { color: var(--ash); }
.intro .label, .intro__big, .intro__cols { margin-left: max(0px, calc((100% - 1320px) / 2)); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 72px 0 0; margin-left: max(0px, calc((100% - 1320px) / 2)); max-width: 900px; border-top: 1px solid var(--line); padding-top: 32px; }
.facts dt { font: 400 clamp(44px, 5vw, 68px)/1 var(--serif); }
.facts a:hover { color: var(--ivory); opacity: .75; }
.hero__foot a { border-bottom: 1px solid rgba(239,235,228,.4); }
.hero__foot a:hover { border-color: var(--ivory); }
.inline-link { color: var(--ivory); border-bottom: 1px solid var(--line); }
.facts dt span { font-size: .6em; vertical-align: .25em; }
.facts dd { margin: 10px 0 0; font: 500 11px/1.5 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ash); }
.intro__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 48px; margin-top: 64px; color: var(--ash); }

/* Véhicules */
.range { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01)); border-block: 1px solid var(--line); }
.range__head { display: grid; margin-bottom: 64px; }
.range__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.range figure { margin: 0; display: grid; gap: 16px; align-content: start; }
.range__ph { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #000; }
.range__ph img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; object-position: 50% 75%; filter: brightness(.9) saturate(.95); transition: filter .6s; will-change: transform; }
.range figure:hover img { filter: none; }
.range figcaption { display: grid; gap: 6px; }
.range figcaption span { font: 400 28px/1.05 var(--serif); }
.range figcaption small { font: 400 11px/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ash); }
.range__note { margin-top: 36px; color: var(--ash); font-size: 15px; }

/* Dépôt-vente */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 120px); align-items: start; }
.process__head { display: grid; gap: 0; position: sticky; top: 120px; }
.process__head > p:not(.label) { color: var(--ash); max-width: 400px; margin: 32px 0 40px; }
.process__head .btn { justify-self: start; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 90px 1fr; column-gap: 24px; padding: 38px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__n { grid-row: span 2; font: italic 400 34px/1 var(--serif); color: var(--ash); }
.steps h3 { font: 400 36px/1.05 var(--serif); margin-bottom: 10px; }
.steps p { color: var(--ash); max-width: 480px; }

/* Recherche */
.search { position: relative; overflow: hidden; min-height: 92vh; display: flex; align-items: flex-end; background: #000; }
.search__img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; opacity: .6; will-change: transform; }
.search::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.85)); }
.search__content { position: relative; z-index: 2; width: 100%; display: grid; justify-items: start; }
.search__content > p:not(.label) { max-width: 520px; color: rgba(239,235,228,.78); margin: 28px 0 40px; }

/* Questions */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 120px); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font: 400 26px/1.2 var(--serif); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; border-right: 1px solid var(--ash); border-bottom: 1px solid var(--ash); transform: translateY(-75%) rotate(45deg); transition: transform .3s; }
details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
details p { color: var(--ash); padding-bottom: 28px; max-width: 620px; }

/* Horaires */
.visit { background: linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,.045)); border-block: 1px solid var(--line); }
.visit__card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); }
.visit__info { padding: clamp(28px, 4vw, 56px); display: grid; align-content: start; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
address { font-style: normal; color: var(--ash); margin: 28px 0 0; line-height: 1.8; }
.visit__status { margin-top: 32px; font: 500 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.visit__status i { width: 7px; height: 7px; border-radius: 50%; background: #5fd38a; box-shadow: 0 0 0 4px rgba(95,211,138,.15); }
.visit__status.is-closed i { background: var(--ash); box-shadow: none; }
.hours { width: 100%; border-collapse: collapse; margin-top: 24px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 300; text-align: left; }
.hours td { text-align: right; color: var(--ash); }
.hours tr.today th, .hours tr.today td { color: var(--ivory); font-weight: 500; }
.visit__map { position: relative; min-height: 520px; background: #2a2b30; overflow: hidden; border-left: 1px solid var(--line); }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.9) contrast(.85); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 120px); }
.contact__lead { color: var(--ash); max-width: 380px; margin-top: 24px; }
.contact dl { margin: 48px 0 0; display: grid; gap: 22px; }
.contact dt { font: 500 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ash); margin-bottom: 8px; }
.contact dd { margin: 0; font: 400 28px/1.1 var(--serif); overflow-wrap: anywhere; }
.contact dd a:hover { color: var(--ash); }

.form { display: grid; gap: 30px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.form label > span, .choice legend { display: block; font: 500 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ash); margin-bottom: 10px; padding: 0; }
.form input, .form textarea {
  width: 100%;
  font: 300 18px/1.4 var(--sans);
  color: var(--ivory);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0 12px;
  transition: border-color .3s;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ivory); }
.form .invalid { border-color: #d46a6a; }
.choice { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.choice legend { margin-bottom: 14px; }
.choice label { cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form .choice label > .choice__tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: start;
  align-content: space-between;
  gap: 18px;
  min-height: 108px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(239, 235, 228, 0.85);
  font: 500 14px/1.25 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  transition: color .35s cubic-bezier(.16, 1, .3, 1), border-color .35s, transform .35s cubic-bezier(.16, 1, .3, 1);
}
.choice__tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ivory);
  transform: scale(.6);
  opacity: 0;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .3s;
}
.choice__tile svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.choice__text { display: block; }
.choice label:hover .choice__tile, .choice input:checked + .choice__tile { color: var(--night); border-color: var(--ivory); }
.choice label:hover .choice__tile { transform: translateY(-2px); }
.choice label:hover .choice__tile::before, .choice input:checked + .choice__tile::before { transform: scale(1); opacity: 1; }
.choice input:checked + .choice__tile::after { content: "✓"; position: absolute; top: 12px; right: 14px; font-size: 14px; color: var(--night); }
.choice input:focus-visible + .choice__tile { outline: 1px solid var(--ivory); outline-offset: 3px; }
.form .btn { justify-self: start; }
.form__msg { font-size: 15px; min-height: 1em; }
.form__msg.ok { color: #8fd6a8; }
.form__msg.err { color: #e08c8c; }

/* Pied de page */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(48px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  color: var(--ash);
  font-size: 14px;
}
.footer img { height: 90px; width: auto; margin-bottom: 18px; }
.footer a:hover { color: var(--ivory); }
.footer__legal { margin-top: 28px; font-size: 12px; letter-spacing: .1em; }

/* ---------- Tablette ---------- */
@media (max-width: 1000px) {
  .nav__left a { letter-spacing: .2em; }
  .nav__left { gap: 2px; }
  .nav__left a { padding: 10px 12px; letter-spacing: .16em; }
  .range__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process, .faq, .contact { grid-template-columns: minmax(0, 1fr); }
  .visit__card { grid-template-columns: minmax(0, 1fr); }
  .visit__map { min-height: 400px; border-left: 0; border-top: 1px solid var(--line); }
  .process__head { position: static; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__left, .nav__cta { display: none; }
  .nav__logo img { height: 46px; }
  .nav.is-solid .nav__logo img { height: 40px; }
  .nav__burger {
    display: block; justify-self: end; position: relative; z-index: 40;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  }
  .nav__burger span, .nav__burger span::before { position: absolute; left: 9px; width: 26px; height: 1px; background: var(--ivory); content: ""; transition: transform .3s, top .3s; }
  .nav__burger span { top: 18px; }
  .nav__burger span::before { left: 0; top: 8px; }
  .nav__burger[aria-expanded="true"] span { top: 22px; transform: rotate(45deg); }
  .nav__burger[aria-expanded="true"] span::before { top: 0; transform: rotate(-90deg); }

  .hero__content { padding-top: 22vh; }
  .hero__media img, .hero__video { object-position: 50% 55%; }
  .hero__foot p { font-size: 11px; letter-spacing: .22em; }
  .intro__cols { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 40px; }
  .facts { gap: 12px; margin-top: 48px; }
  .facts dd { letter-spacing: .14em; }
  .range__grid { gap: 28px 10px; }
  .range figcaption span { font-size: 22px; }
  .steps li { grid-template-columns: 56px 1fr; padding: 30px 0; }
  .steps h3 { font-size: 30px; }
  .search { min-height: 80vh; }
  summary { font-size: 22px; }
  .visit__card { grid-template-columns: minmax(0, 1fr); }
  .visit__map { min-height: 360px; border-left: 0; border-top: 1px solid var(--line); }
  .visit__actions .btn { flex: 1 1 auto; justify-content: center; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .choice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form .choice label > .choice__tile { min-height: 92px; }
  .form .btn { justify-self: stretch; justify-content: center; }
  .contact dd { font-size: 24px; }
}

/* ---------- Animations au défilement ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.anim [data-reveal].is-in { opacity: 1; transform: none; }
.anim .range__grid figure[data-reveal]:nth-child(2), .anim .steps li[data-reveal]:nth-child(2) { transition-delay: .06s; }
.anim .range__grid figure[data-reveal]:nth-child(3), .anim .steps li[data-reveal]:nth-child(3) { transition-delay: .12s; }
.anim .range__grid figure[data-reveal]:nth-child(4), .anim .steps li[data-reveal]:nth-child(4) { transition-delay: .18s; }
.anim .range__grid figure[data-reveal] { clip-path: inset(18% 0 0 0); transition-property: opacity, transform, clip-path; }
.anim .range__grid figure[data-reveal].is-in { clip-path: inset(0 0 0 0); }
.intro__big .w { transition: color .35s; }
.anim .intro__big .w { color: rgba(239, 235, 228, 0.16); }
.anim .intro__big .w.on { color: var(--ivory); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Lien d'évitement (clavier) */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--ivory); color: var(--night); font: 500 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; transition: top .2s; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Voitures de l'agence */
.gallery__head { display: grid; margin-bottom: 48px; }
.gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 22%);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  /* bord droit fondu : on devine la suite, donc qu'on peut faire glisser */
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.gallery__track.is-end { -webkit-mask-image: none; mask-image: none; }
.gallery__track figure { margin: 0; scroll-snap-align: start; display: grid; gap: 14px; }
.gallery__track img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; filter: brightness(.9) saturate(.9); transition: filter .5s; }
.gallery__track figure:hover img { filter: none; }
.gallery__track figcaption { font: 500 11px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ash); }
@media (max-width: 760px) {
  .gallery__track { grid-auto-columns: 72%; }
}

/* ---------- Fiche d'estimation ---------- */
.hero__cta { margin-top: 6px; }
.est {
  width: min(880px, 100% - 32px);
  max-height: min(92vh, 1100px);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--night-2);
  color: var(--ivory);
  overflow: auto;
  overscroll-behavior: contain;
}
.est::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px); }
.est[open] { animation: est-in .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes est-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.est__form { display: grid; gap: 40px; padding: clamp(24px, 4vw, 48px); }
.est__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.est__top .label { margin-bottom: 14px; }
.est__top h2 { font-size: clamp(36px, 5vw, 56px); }
.est__close { background: none; border: 1px solid var(--line); color: var(--ivory); width: 44px; height: 44px; font: 300 26px/1 var(--sans); cursor: pointer; flex: none; }
.est__close { transition: background .3s, color .3s; }
.est__close:hover { background: var(--ivory); color: var(--night); border-color: var(--ivory); }
.est__block { border: 0; margin: 0; padding: 0; display: grid; gap: 22px; }
.est__block legend { font: 400 26px/1.1 var(--serif); padding: 0; margin-bottom: 22px; }
.est__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
.est__wide { grid-column: 1 / -1; }
.est label > span { display: block; font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ash); margin-bottom: 10px; }
.est input:not([type="file"]), .est select, .est textarea {
  width: 100%;
  font: 300 17px/1.4 var(--sans);
  color: var(--ivory);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0 12px;
}
.est select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%), linear-gradient(135deg, var(--ash) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.est select option { background: var(--night-2); color: var(--ivory); }
.est input:focus, .est select:focus, .est textarea:focus { outline: none; border-color: var(--ivory); }
.est .invalid { border-color: #d46a6a !important; }
.est__hint { color: var(--ash); font-size: 15px; margin-top: -10px; }
.est__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.est__photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.est__photo { position: relative; display: grid; gap: 10px; cursor: pointer; }
.est__photo input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.est__thumb { aspect-ratio: 3 / 4; border: 1px dashed rgba(239, 235, 228, .3); background: rgba(255, 255, 255, .02) center / cover no-repeat; display: grid; place-items: center; transition: border-color .2s; }
.est__thumb::after { content: "+"; font: 200 34px/1 var(--sans); color: var(--ash); }
.est__photo.has-img .est__thumb { border-style: solid; border-color: var(--line); }
.est__photo.has-img .est__thumb::after { content: none; }
.est__photo:hover .est__thumb, .est__photo input:focus-visible + .est__thumb { border-color: var(--ivory); }
.est__photo.invalid .est__thumb { border-color: #d46a6a; }
.est__photo b { font: 500 11px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ash); }
.est__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; border-top: 1px solid var(--line); padding-top: 28px; }
.est__msg { font-size: 15px; color: var(--ash); max-width: 460px; }
.est__msg.err { color: #e08c8c; }
.est__foot .btn[disabled] { opacity: .5; cursor: wait; }

@media (max-width: 760px) {
  .est { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border: 0; }
  .est__form { padding: calc(24px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
  .est__grid { grid-template-columns: minmax(0, 1fr); }
  .est__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .est__foot .btn { width: 100%; justify-content: center; }
}

/* ---------- Avis Google ---------- */
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.reviews__score { display: grid; justify-items: end; gap: 6px; text-align: right; }
.reviews__note { font: 400 clamp(56px, 7vw, 88px)/0.9 var(--serif); }
.reviews__note small { font-size: .35em; color: var(--ash); margin-left: 4px; }
.reviews__stars { color: #e8c15a; letter-spacing: .18em; font-size: 18px; }
.reviews__score a { font: 500 11px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ash); }
.reviews__score a:hover { color: var(--ivory); }
.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 31%);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.review {
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
}
.review__top { display: flex; align-items: center; gap: 14px; }
.review__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--night-2); display: grid; place-items: center; font: 500 16px/1 var(--sans); color: var(--ivory); flex: none; }
.review__who { display: grid; gap: 2px; min-width: 0; }
.review__name { font-weight: 500; color: var(--ivory); overflow-wrap: anywhere; }
.review__when { font-size: 13px; color: var(--ash); }
.review__stars { color: #e8c15a; letter-spacing: .14em; font-size: 15px; }
.review__text { color: rgba(239,235,228,.85); font-size: 16px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review__src { font: 500 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ash); }
.reviews__empty { color: var(--ash); grid-column: 1 / -1; }
.reviews__widget { min-height: 280px; }
.reviews__add { gap: 12px; }
.reviews__add svg { flex: none; background: #fff; border-radius: 50%; padding: 2px; box-sizing: content-box; }
.reviews__foot { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 28px; }
@media (max-width: 760px) {
  .reviews__score { justify-items: start; text-align: left; }
  .reviews__track { grid-auto-columns: 86%; }
  .review { padding: 22px; }
}

/* Widget d'avis (façon Trustindex) */
.ti { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; }
.ti__sum { display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--ivory); }
.ti__label { font: 400 34px/1 var(--serif); letter-spacing: .01em; }
.ti__stars { color: #f6bb06; font-size: 24px; letter-spacing: .08em; }
.ti__based { font-size: 14px; color: var(--ash); }
.ti__based b { color: var(--ivory); font-weight: 600; }
.ti__google { font: 600 22px/1 "Product Sans", var(--sans); letter-spacing: -.02em; }
.ti__google i { font-style: normal; }
.ti__google i:nth-child(1), .ti__google i:nth-child(4) { color: #4285f4; }
.ti__google i:nth-child(2), .ti__google i:nth-child(6) { color: #ea4335; }
.ti__google i:nth-child(3) { color: #fbbc05; }
.ti__google i:nth-child(5) { color: #34a853; }
.ti__sum:hover .ti__based { color: var(--ivory); }
.ti__main { position: relative; min-width: 0; }
.ti .reviews__track { grid-auto-columns: calc((100% - 32px) / 3); padding-bottom: 6px; scrollbar-width: none; scroll-behavior: smooth; }
.ti .reviews__track::-webkit-scrollbar { display: none; }
.ti .review { gap: 12px; padding: 22px; border-radius: 10px; background: rgba(255,255,255,.055); border-color: rgba(239,235,228,.09); align-content: start; }
.ti .review__top { position: relative; padding-right: 26px; }
.ti .review__avatar { width: 40px; height: 40px; }
.ti .review__name { font-size: 15px; }
.ti .review__when { font-size: 12.5px; }
.ti .review__g { position: absolute; top: 0; right: 0; display: flex; }
.ti .review__stars { color: #f6bb06; font-size: 17px; letter-spacing: .06em; }
.ti .review__text { font-size: 15px; line-height: 1.55; -webkit-line-clamp: 5; white-space: pre-line; }
.ti .review.is-open .review__text { -webkit-line-clamp: unset; display: block; }
.review__avatar[hidden] { display: none; }
.review__more { justify-self: start; padding: 0; background: none; border: 0; color: var(--ash); font: 500 13px/1.4 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.review__more:hover { color: var(--ivory); }
.ti__arrow {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ivory); color: #18191c; border: 0; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .2s ease, opacity .2s ease;
}
.ti__arrow:hover { transform: scale(1.06); }
.ti__arrow:active { transform: scale(.94); }
.ti__arrow:disabled { opacity: 0; pointer-events: none; }
.ti__arrow--prev { left: -18px; }
.ti__arrow--next { right: -18px; }
@media (max-width: 980px) {
  .ti { grid-template-columns: 1fr; gap: 24px; }
  .ti__sum { grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; }
  .ti__label { font-size: 26px; }
  .ti__stars { font-size: 18px; }
  .ti .reviews__track { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 760px) {
  .ti__sum { grid-auto-flow: row; grid-template-columns: auto auto; justify-content: start; column-gap: 12px; row-gap: 4px; text-align: left; }
  .ti__google { display: none; }
  .ti .reviews__track { grid-auto-columns: 86%; }
  .ti__arrow { display: none; }
}

.range__cta { margin-top: 48px; display: flex; }

/* ---------- Page « Notre stock » ---------- */
.page-stock main { padding-top: 110px; }
.nav__left a[aria-current="page"] { color: var(--night); }
.nav__left a[aria-current="page"]::before { transform: scale(1); opacity: 1; }
.stock { padding-block: clamp(48px, 7vw, 90px) clamp(90px, 12vw, 150px); }
.stock__head { display: grid; gap: 0; max-width: 820px; margin-left: max(0px, calc((100% - 1320px) / 2)); }
.stock__head h1 { font: 400 clamp(44px, 6vw, 84px)/1 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.stock__intro { color: var(--ash); max-width: 560px; margin-top: 24px; }
.stock__intro a { color: var(--ivory); border-bottom: 1px solid var(--line); }
.stock__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ash); font: 500 13px/1 var(--sans); cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s; }
.chip:hover { background: var(--ivory); color: var(--night); border-color: var(--ivory); transform: translateY(-1px); }
.chip.is-on { background: var(--ivory); color: var(--night); border-color: var(--ivory); }
.stock__count { margin-top: 32px; font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ash); }
.stock__count:empty { display: none; }
.stock__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; margin-top: 24px; }
.car { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); transition: border-color .3s, transform .3s; }
.car:hover { border-color: rgba(239,235,228,.4); transform: translateY(-3px); }
.car__media { position: relative; }
.car__photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: 4 / 3; background: #111; scrollbar-width: none; }
.car__photos::-webkit-scrollbar { display: none; }
.car__photos img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.car__nb, .car__badge { position: absolute; top: 14px; padding: 7px 12px; border-radius: 999px; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.car__nb { right: 14px; background: rgba(0,0,0,.6); color: var(--ivory); }
.car__badge { left: 14px; background: var(--ivory); color: var(--night); }
.car--sold .car__photos img { filter: grayscale(1) brightness(.7); }
.car__body { display: grid; align-content: start; gap: 10px; padding: 24px; }
.car__name { font: 400 30px/1.05 var(--serif); }
.car__version { color: var(--ash); font-size: 15px; }
.car__specs { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.car__points { color: var(--ash); font-size: 13.5px; line-height: 1.6; margin-top: 12px; }
.car__desc { color: var(--ash); font-size: 14px; line-height: 1.6; margin-top: 10px; white-space: pre-line; }
.car__specs li { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: rgba(239,235,228,.85); font-variant-numeric: tabular-nums; }
.car__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.car__price { font: 400 32px/1 var(--serif); font-variant-numeric: tabular-nums; }
.car__cta { padding: 13px 18px; }
.car__ad { justify-self: start; margin-top: 6px; }
.stock__empty { margin-top: 64px; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); max-width: 760px; display: grid; gap: 18px; }
.stock__empty h2 { font-size: clamp(32px, 4vw, 48px); }
.stock__empty p { color: var(--ash); max-width: 520px; }
.stock__empty-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
@media (max-width: 760px) {
  .page-stock main { padding-top: 80px; }
  .car__foot .btn { flex: 1 1 100%; justify-content: center; }
}
