/* ==========================================================================
   RMZ Motors — showroom noir, un seul jaune sous les projecteurs
   Mise en page : alternance de scènes sombres et de planches claires,
   arêtes vives, typo condensée en capitales.
   ========================================================================== */

:root {
  /* Couleurs */
  --color-giallo-vivo: #ffc000;
  --color-giallo-ombra: #917300;
  --color-rosso: #d7141a;          /* champs manquants, barre de lecture */
  /* Bleu nuit : remplace le noir partout (surfaces sombres + texte) */
  --color-carbony-black: #13213a;  /* bleu nuit : sections sombres, texte principal */
  --color-pure-black: #070e1c;     /* bleu nuit profond : fonds photo, hero */
  --color-carbon-deep: #0c1628;    /* navigation, pied de page */
  --color-pearl-white: #ffffff;
  --color-marble-gray: #f3f5f8;
  --color-hairline: #e1e5ec;
  --color-graphite-border: #2c3d5a;
  --color-steel-mid: #7b879b;
  --color-ash-border: #9aa5b8;
  --color-anvil: #2a3550;

  /* Typo */
  --font: 'Barlow Condensed', 'Rajdhani', 'Arial Narrow', sans-serif;
  --track: 0.023em;

  /* Layout */
  --page-max-width: 1440px;
  --gutter: clamp(16px, 4vw, 64px);
  --section-gap: 80px;
  --nav-h: 64px;

  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
  --hex-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 44'%3E%3Cpath d='M20 1.5 38.5 12v20L20 42.5 1.5 32V12Z' fill='rgba(7,14,28,.35)' stroke='white' stroke-width='1.5'/%3E%3Cpath d='M16 15.5v13l11-6.5z' fill='white'/%3E%3C/svg%3E");

  color-scheme: light;
}

/* Base ------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--color-carbony-black);
  background: var(--color-pearl-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { text-transform: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
[hidden] { display: none !important; }

:focus-visible { outline: 1px solid var(--color-giallo-vivo); outline-offset: 4px; }

.container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip { position: absolute; left: -9999px; top: 16px; z-index: 300; background: var(--color-pearl-white); padding: 8px 16px; }
.skip:focus { left: 16px; }

.eyebrow,
.sh__eyebrow { font-size: 14px; line-height: 1.5; }
.sh__eyebrow { color: var(--color-steel-mid); }

/* Boutons & liens -------------------------------------------------------- */

.link,
.btn { display: inline-flex; align-items: center; gap: 16px; line-height: 1.5; }

.link::after,
.btn::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transition: transform .3s ease;
}
.link:hover::after,
.btn:hover::after { transform: translateX(4px); }

.link { font-size: 14px; padding: 8px 0; }

.btn { font-size: 15px; padding: 16px 24px; text-transform: uppercase; transition: background-color .2s, color .2s, border-color .2s; }
.btn--giallo { background: var(--color-giallo-vivo); color: var(--color-pure-black); }
.btn--giallo:hover { background: var(--color-giallo-ombra); color: var(--color-pearl-white); }
.btn--ghost { padding-left: 0; padding-right: 0; }
.btn--light { background: var(--color-pearl-white); color: var(--color-carbony-black); }
.btn--light:hover { background: var(--color-hairline); }
.btn--outline { border: 1px solid var(--color-steel-mid); }
.btn--outline:hover { border-color: currentColor; }

/* Navigation ------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: env(safe-area-inset-top, 0px) max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
  color: var(--color-pearl-white);
  transition: background-color .3s ease;
}
.nav.is-solid,
.nav.is-open { background: var(--color-carbon-deep); }

.nav__menu { justify-self: start; display: inline-flex; align-items: center; gap: 16px; font-size: 14px; padding: 8px 0; }

.burger { position: relative; display: inline-block; width: 24px; height: 12px; }
.burger i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.burger i:first-child { top: 0; }
.burger i:last-child { top: 10px; }
.nav.is-open .burger i:first-child { top: 5px; transform: rotate(45deg); }
.nav.is-open .burger i:last-child { top: 5px; transform: rotate(-45deg); }

/* Logo RMZ (image) */
.logo { display: inline-flex; align-items: center; line-height: 1; transition: opacity .2s; }
.logo:hover { opacity: .8; }
.logo__img { display: block; width: auto; height: 26px; }

.nav__social { justify-self: end; display: flex; gap: 4px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; transition: opacity .2s; }
.icon-btn:hover { opacity: .6; }
.icon-btn svg { width: 20px; height: 20px; }

/* Menu plein écran ------------------------------------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow-y: auto;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 40px);
  background: var(--color-carbon-deep);
  color: var(--color-pearl-white);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.menu.is-open { opacity: 1; visibility: visible; }

.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 8px 0;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.1;
  border-bottom: 1px solid var(--color-graphite-border);
  transition: color .25s, padding-left .3s;
}
.menu__list a span { font-size: 14px; color: var(--color-steel-mid); }
.menu__list:hover a { color: var(--color-steel-mid); }
.menu__list a:hover { color: var(--color-pearl-white); padding-left: 16px; }

.menu__foot { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 48px; padding-bottom: 48px; font-size: 14px; color: var(--color-ash-border); }
.menu__foot a:hover { color: var(--color-pearl-white); }

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  max-height: 1000px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--color-pure-black);
  color: var(--color-pearl-white);
}

/* Titre géant : « RMZ » blanc qui se remplit au chargement, « MOTORS » qui glisse au scroll,
   sur une livrée de course (3 grandes bandes bleues en biais) */
.hero.has-geant::after {
  background:
    linear-gradient(90deg, rgba(7, 14, 28, .7) 0%, rgba(7, 14, 28, .3) 40%, rgba(7, 14, 28, 0) 65%),
    linear-gradient(0deg, rgba(7, 14, 28, .75) 0%, rgba(7, 14, 28, 0) 40%);
}
.geant {
  --taille: min(38vw, 66vh);
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--color-pure-black);
}
.geant__rmz,
.geant__motors {
  position: absolute;
  right: 3vw;
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic;
  font-weight: 800;
  line-height: .8;
  white-space: nowrap;
  text-transform: uppercase;
  will-change: transform;
}
.geant__rmz {
  top: 11%;
  padding-right: .12em;   /* place pour la pente de l'italique */
  font-size: var(--taille);
  letter-spacing: -.01em;
  transform: translate3d(calc(var(--p, 0) * -14vw), 0, 0);
}
.geant__contour { display: block; color: transparent; -webkit-text-stroke: 2px #fff; }
.geant__plein {
  position: absolute;
  inset: 0;
  color: transparent;
  /* Blanc légèrement nacré + reflet bleu qui passe */
  background:
    linear-gradient(100deg, rgba(77, 125, 255, 0) 38%, rgba(77, 125, 255, .55) 48%, rgba(77, 125, 255, 0) 58%),
    linear-gradient(180deg, #ffffff 0%, #f1f5ff 55%, #d5e0ff 100%);
  background-size: 260% 100%, 100% 100%;
  background-position: 100% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  clip-path: inset(0 100% 0 0);
  animation: geant-remplir 1.8s cubic-bezier(.7, 0, .2, 1) .35s forwards, geant-reflet 6s ease-in-out 2.4s infinite;
}
@keyframes geant-remplir { to { clip-path: inset(0 0 0 0); } }
@keyframes geant-reflet { 0% { background-position: 100% 0, 0 0; } 45%, 100% { background-position: 0 0, 0 0; } }
.geant__motors {
  top: calc(11% + var(--taille) * .84);
  font-size: calc(var(--taille) * .3);
  letter-spacing: .14em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85);
  transform: translate3d(calc(var(--p, 0) * 20vw), 0, 0);
  animation: geant-glisse 1.4s cubic-bezier(.2, .7, .2, 1) .9s both;
}
@keyframes geant-glisse { from { opacity: 0; translate: 12vw 0; } to { opacity: 1; translate: 0 0; } }
/* Livrée de course : 3 grandes bandes en biais aux couleurs du logo.
   Elles entrent en glissant, balancent doucement, et glissent au scroll. */
.geant__barres {
  position: absolute;
  inset: -30%;
  pointer-events: none;
  transform: translate3d(calc(var(--p, 0) * -10vw), 0, 0);
  animation: livree-entree 1.3s cubic-bezier(.2, .8, .2, 1) .05s both;
}
.geant__barres i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16%;
  transform: skewX(-20deg);
  animation: livree-balance 9s ease-in-out infinite alternate;
}
.geant__barres i:nth-child(1) { left: 38%; background: #22397a; }
.geant__barres i:nth-child(2) { left: 56%; background: #3a5ac2; animation-delay: -.6s; }
.geant__barres i:nth-child(3) { left: 74%; background: #4d7dff; animation-delay: -1.2s; }
@keyframes livree-entree { from { translate: 70vw 0; } to { translate: 0 0; } }
@keyframes livree-balance { from { translate: -1.5vw 0; } to { translate: 1.5vw 0; } }
.hero.is-paused .geant * { animation-play-state: paused; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,14,28,.88) 0%, rgba(7,14,28,.6) 45%, rgba(7,14,28,.3) 100%),
    linear-gradient(0deg, rgba(7,14,28,.8) 0%, rgba(7,14,28,0) 45%),
    linear-gradient(180deg, rgba(7,14,28,.7) 0%, rgba(7,14,28,0) 30%);
}

.hero__content,
.hero__bottom { position: relative; z-index: 2; width: 100%; }

.hero__content { padding-bottom: 48px; }
.hero__title { margin: 16px 0 40px; font-size: clamp(56px, 10vw, 120px); line-height: .92; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }

.hero__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 32px; }
.hero__bottom::before { content: ""; position: absolute; top: 0; left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); height: 1px; background: rgba(255,255,255,.2); }

.poles { display: flex; gap: 40px; }
.poles a { display: flex; align-items: baseline; gap: 12px; font-size: 18px; transition: color .2s; }
.poles a span { font-size: 12px; color: var(--color-ash-border); }
.poles a:hover { color: var(--color-ash-border); }

.hero__controls { display: flex; align-items: center; gap: 32px; }
.hero__note { font-size: 14px; color: var(--color-ash-border); }   /* page 404 */

.hexbtn { width: 40px; height: 44px; display: grid; place-items: center; }
.hexbtn svg { width: 40px; height: 44px; }
.hexbtn .i-play,
.hero.is-paused .hexbtn .i-pause { display: none; }
.hero.is-paused .hexbtn .i-play { display: inline; }

/* Sections --------------------------------------------------------------- */

.section { padding: var(--section-gap) 0; }
.section--carbon { background: var(--color-carbon-deep); color: var(--color-pearl-white); }

.sh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 48px; }
.sh__title { font-size: clamp(52px, 8vw, 104px); line-height: .88; font-weight: 300; }

/* 02 — YouTube */

.feature { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 80px; }
.feature__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-carbony-black); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature__media:hover img { transform: scale(1.03); }
.feature__media .card__play { width: 64px; height: 70px; left: 24px; bottom: 24px; }
.feature__info { display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.feature__meta { font-size: 14px; color: var(--color-steel-mid); }
.feature__title { font-size: clamp(36px, 4vw, 54px); line-height: 1.05; font-weight: 300; }

.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--color-ash-border); }
.stats > div { padding: 24px 24px 0; }
.stats > div:first-child { padding-left: 0; }
.stats > div + div { border-left: 1px solid var(--color-ash-border); }
.stats dt { font-size: 13px; color: var(--color-steel-mid); }
.stats dd { margin-top: 8px; font-size: clamp(48px, 6vw, 80px); line-height: 1; font-variant-numeric: tabular-nums; }

.card__play { position: absolute; left: 16px; bottom: 16px; width: 40px; height: 44px; background: var(--hex-play) center / contain no-repeat; }

/* 03 — Avis : bande bleue, cartes de commentaires, rappel de la livrée à droite */

.section--avis { position: relative; overflow: hidden; background: #1b3592; color: var(--color-pearl-white); }
.section--avis::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  right: -6vw;
  width: 22vw;
  min-width: 140px;
  background: linear-gradient(90deg, #22397a 0 33.3%, #3a5ac2 33.3% 66.6%, #4d7dff 66.6%);
  transform: skewX(-20deg);
  opacity: .45;
  pointer-events: none;
}
.section--avis .container { position: relative; }
.section--avis .sh__eyebrow { color: rgba(255, 255, 255, .7); }
.avis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.avis__carte { display: flex; flex-direction: column; gap: 20px; padding: 24px; background: rgba(7, 14, 28, .32); border: 1px solid rgba(255, 255, 255, .16); }
.avis__carte::before { content: "“"; display: block; height: 28px; font-family: Georgia, serif; font-size: 64px; line-height: 1; color: var(--color-giallo-vivo); }
.avis__texte { flex: 1; font-size: 22px; line-height: 1.3; text-transform: none; letter-spacing: 0; }
.avis__auteur { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); transition: opacity .2s; }
a.avis__auteur:hover { opacity: .75; }
.avis__auteur svg { grid-row: span 2; width: 22px; height: 22px; }
.avis__nom { font-size: 15px; text-transform: none; overflow-wrap: anywhere; }
.avis__origine { font-size: 12px; color: rgba(255, 255, 255, .65); }

/* Présente ta voiture */

.presente { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
.presente__intro { display: flex; flex-direction: column; gap: 16px; }
.presente__text { max-width: 44ch; font-size: 18px; line-height: 1.56; color: var(--color-ash-border); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full,
.form__error,
.form .btn { grid-column: 1 / -1; }
.form .btn { justify-self: start; }
.field label,
.dm__label { font-size: 13px; color: var(--color-ash-border); }

.field input,
.field select,
.field textarea,
.dm__text {
  width: 100%;
  padding: 14px 0;
  font-size: 18px;
  text-transform: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-graphite-border);
  border-radius: 0;
  outline: none;
  transition: border-color .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 6px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--color-carbony-black); background: var(--color-pearl-white); }
.field textarea,
.dm__text { resize: vertical; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: var(--color-steel-mid); }
.field input:focus,
.field select:focus,
.field textarea:focus,
.dm__text:focus { border-bottom-color: var(--color-pearl-white); }
.field.is-invalid input,
.field.is-invalid select { border-bottom-color: var(--color-rosso); }
.form__error { font-size: 14px; color: var(--color-pearl-white); padding-left: 12px; border-left: 2px solid var(--color-rosso); }

.dm { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--color-graphite-border); }
.dm__text { padding: 16px; border: 1px solid var(--color-graphite-border); font-size: 16px; }
.dm__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.dm__status { min-height: 1.5em; font-size: 14px; color: var(--color-ash-border); }
.dm__alerte { padding-left: 12px; font-size: 14px; border-left: 2px solid var(--color-rosso); }
.form .dm__actions { grid-column: 1 / -1; }

/* Questions de vente (si « Vendre ma voiture ») */
.vente { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; min-width: 0; padding: 20px; border: 0; border-left: 3px solid var(--color-giallo-vivo); background: var(--color-marble-gray); animation: fade-up .5s var(--ease-out) both; }
.vente__titre { grid-column: 1 / -1; float: left; width: 100%; padding: 0; font-size: 14px; color: var(--color-carbony-black); }
.vente .field input { background: transparent; }

/* Photos jointes au formulaire */
.photos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.photos__liste { display: contents; }
.photos__liste li { position: relative; width: 104px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-marble-gray); }
.photos__liste img { width: 100%; height: 100%; object-fit: cover; }
.photos__suppr { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; display: grid; place-items: center; font-size: 12px; line-height: 1; color: var(--color-pearl-white); background: rgba(7, 14, 28, .78); transition: background-color .2s; }
.photos__suppr:hover { background: var(--color-rosso); }
.photos__ajout { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 104px; aspect-ratio: 4 / 3; font-size: 13px; color: var(--color-carbony-black); border: 1px dashed var(--color-ash-border); transition: border-color .2s, background-color .2s; }
.photos__ajout:hover { border-color: var(--color-carbony-black); background: var(--color-marble-gray); }
.photos__ajout svg { width: 22px; height: 22px; }
.photos__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photos__aide { font-size: 13px; line-height: 1.5; color: var(--color-steel-mid); text-transform: none; }

/* Confirmation d'envoi */
.envoye { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; border: 1px solid var(--color-graphite-border); border-left: 3px solid var(--color-giallo-vivo); }
.envoye__titre { font-size: 44px; line-height: 1; font-weight: 300; }
.envoye__texte { font-size: 16px; line-height: 1.5; color: var(--color-ash-border); }
.envoye__texte span { color: var(--color-pearl-white); text-transform: none; }

/* Footer */

.footer { padding: 80px 0 32px; background: var(--color-carbon-deep); color: var(--color-pearl-white); border-top: 1px solid var(--color-carbony-black); }
.footer__grid { display: grid; grid-template-columns: 2fr; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 48px; }
.footer__tag { font-size: 18px; color: var(--color-ash-border); }
.footer h3 { margin-bottom: 16px; font-size: 13px; color: var(--color-steel-mid); }
.footer li a { font-size: 16px; line-height: 2; transition: color .2s; }
.footer li a:hover { color: var(--color-ash-border); }
.footer__bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; font-size: 13px; color: var(--color-steel-mid); }
.footer__bottom a:hover,
.footer__legal button:hover { color: var(--color-pearl-white); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer__legal button { font-size: 13px; color: var(--color-steel-mid); transition: color .2s; }
#footHoraires li { font-size: 16px; line-height: 1.4; margin-bottom: 12px; }
#footHoraires li span { color: var(--color-ash-border); }

/* Fenêtres (lecteur vidéo, mentions légales) ------------------------------ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(7,14,28,.88);
}
.modal__box { display: flex; flex-direction: column; gap: 16px; width: min(100%, 560px); padding: 32px; background: var(--color-carbony-black); color: var(--color-pearl-white); }
.modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.modal__close { font-size: 14px; padding: 8px 0; color: var(--color-ash-border); }
.modal__close:hover { color: var(--color-pearl-white); }
.modal__title { font-size: 32px; line-height: 1.15; }

.modal__box--doc { width: min(100%, 760px); max-height: calc(100svh - 48px); overflow-y: auto; }
.doc { display: flex; flex-direction: column; gap: 12px; }
.doc h3 { margin-top: 16px; font-size: 18px; }
.doc p { max-width: 65ch; font-size: 16px; line-height: 1.6; text-transform: none; color: var(--color-ash-border); }
.doc__dl { border-top: 1px solid var(--color-graphite-border); }
.doc__dl div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--color-graphite-border); }
.doc__dl dt { font-size: 13px; color: var(--color-steel-mid); }
.doc__dl dd { font-size: 16px; text-transform: none; overflow-wrap: anywhere; }

/* Mouvement --------------------------------------------------------------- */

:root { --ease-out: cubic-bezier(.2, .7, .2, 1); }

/* Barre de progression de lecture */
.progress { position: fixed; inset: 0 0 auto; z-index: 120; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--color-rosso); transform: scaleX(0); transform-origin: left; }

/* Navigation qui se cache en descendant, revient en remontant */
.nav { transition: background-color .3s ease, transform .45s var(--ease-out); }
.nav.is-hidden { transform: translateY(-100%); }

/* Parallaxe du haut de page */
.hero__slides { position: absolute; inset: 0; will-change: transform; }

/* Titres : lignes qui glissent vers le haut */
.ln { display: block; overflow: hidden; padding-top: .12em; margin-top: -.12em; }
.ln > span { display: inline-block; }
.js-motion .hero__title .ln > span { animation: line-up 1.1s var(--ease-out) both; animation-delay: calc(.15s + var(--i, 0) * .12s); }
.js-motion .hero__content .eyebrow { animation: fade-up .9s var(--ease-out) .05s both; }
.js-motion .hero__actions { animation: fade-up .9s var(--ease-out) .6s both; }
.js-motion .hero__bottom { animation: fade-up .9s var(--ease-out) .8s both; }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }

/* Apparition au scroll */
.js-motion .rv { opacity: 0; transform: translateY(48px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js-motion .rv.is-in { opacity: 1; transform: none; }
.js-motion .rv .sh__title .ln > span { transform: translateY(105%); transition: transform 1.1s var(--ease-out) .1s; }
.js-motion .rv.is-in .sh__title .ln > span { transform: none; }

/* Vidéo en rideau + profondeur au scroll */
.js-motion .rideau { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s cubic-bezier(.77, 0, .18, 1); }
.js-motion .rideau.is-in { clip-path: inset(0 0 0 0); }
.js-motion .rideau img { scale: 1.32; translate: 0 var(--py, 0px); transition: scale 1.8s cubic-bezier(.2, .7, .2, 1), transform .8s var(--ease-out); }
.js-motion .rideau.is-in img { scale: 1.12; }

/* Curseur hexagonal (PC) */
html.a-curseur,
html.a-curseur * { cursor: none !important; }
html.a-curseur input,
html.a-curseur textarea { cursor: text !important; }
html.a-curseur select { cursor: default !important; }
.curseur { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; mix-blend-mode: difference; transition: opacity .25s; }
.curseur.is-cache,
.curseur.is-texte { opacity: 0; }
.curseur__point { position: absolute; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; border-radius: 50%; }
.curseur__anneau { position: absolute; left: 0; top: 0; }
.curseur__hex { width: 40px; height: 44px; margin: -22px 0 0 -20px; transition: transform .35s var(--ease-out); }
.curseur__hex svg { display: block; width: 100%; height: 100%; }
.curseur__hex path { fill: rgba(255, 255, 255, 0); stroke: #fff; stroke-width: 1.5; transition: fill .3s; }
.curseur.is-lien .curseur__hex { transform: scale(1.6); }
.curseur.is-lien .curseur__hex path { fill: rgba(255, 255, 255, .14); }
.curseur.is-label .curseur__hex { transform: scale(2.3); }
.curseur.is-appui .curseur__hex { transform: scale(.85); }
.curseur__label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-size: 11px; letter-spacing: .12em; color: #fff; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.curseur.is-label .curseur__label { opacity: 1; }

/* Vidéo YouTube : reflet + contour néon au survol, aperçu muet, lecteur dans le site */
.feature__media::before,
.feature__media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.feature__media::before { background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); transform: translateX(-110%); }
.feature__media:hover::before { transform: translateX(110%); transition: transform .9s cubic-bezier(.3, .7, .2, 1); }
.feature__media::after { box-shadow: inset 0 0 0 0 rgba(167, 152, 255, 0); transition: box-shadow .5s; }
.feature__media:hover::after { box-shadow: inset 0 0 0 2px rgba(167, 152, 255, .9), inset 0 0 70px rgba(91, 63, 240, .45); }
.feature__media .card__play { z-index: 3; transition: transform .4s var(--ease-out); }
.feature__media:hover .card__play { transform: scale(1.15); }
.feature__apercu { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; pointer-events: none; opacity: 0; transform: scale(1.25); transition: opacity .6s ease .5s; }
.feature__apercu.is-on { opacity: 1; }

.modal__box--video { width: min(100%, 1100px); padding: 16px 16px 20px; }
.lecteur { aspect-ratio: 16 / 9; background: var(--color-pure-black); }
.lecteur iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Section « Présente ta voiture » sur fond blanc */
.section--blanc { background: var(--color-pearl-white); color: var(--color-carbony-black); }
.section--blanc .presente__text,
.section--blanc .envoye__texte,
.section--blanc .dm__status { color: var(--color-anvil); }
.section--blanc .field label,
.section--blanc .dm__label { color: var(--color-steel-mid); }
.section--blanc .field input,
.section--blanc .field select,
.section--blanc .field textarea { border-bottom-color: var(--color-ash-border); }
.section--blanc .field input:focus,
.section--blanc .field select:focus,
.section--blanc .field textarea:focus,
.section--blanc .dm__text:focus { border-bottom-color: var(--color-carbony-black); }
.section--blanc .dm__text,
.section--blanc .envoye { border-color: var(--color-hairline); }
.section--blanc .envoye { border-left-color: var(--color-giallo-vivo); }
.section--blanc .dm { border-top-color: var(--color-hairline); }
.section--blanc .form__error,
.section--blanc .envoye__texte span { color: var(--color-carbony-black); }
.section--blanc .btn--light { background: var(--color-carbony-black); color: var(--color-pearl-white); }
.section--blanc .btn--light:hover { background: var(--color-anvil); }

/* Pied de page sur fond blanc */
.footer--blanc { background: var(--color-pearl-white); color: var(--color-carbony-black); border-top: 1px solid var(--color-hairline); }
.footer--blanc .footer__tag { color: var(--color-anvil); }
.footer--blanc li a:hover,
.footer--blanc .footer__bottom a:hover,
.footer--blanc .footer__legal button:hover { color: var(--color-steel-mid); }

/* Défilement fluide (Lenis, PC) */
html.lenis,
html.lenis body { height: auto; }
html.lenis,
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Boutons magnétiques (PC) */
.aimant { transition: translate .35s var(--ease-out), background-color .2s, color .2s, border-color .2s, opacity .2s; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1100px) {
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .presente { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  :root { --section-gap: 64px; }
  .geant { --taille: 56vw; }
  .geant__rmz { top: 10%; }
  .logo__img { height: 22px; }
  .nav__label { display: none; }

  .hero__content { padding-bottom: 32px; }
  .hero__bottom { padding-bottom: 24px; }
  .poles { gap: 20px; }
  .poles a { font-size: 16px; }
  .hero__controls { gap: 12px; }
  .poles { display: none; }
  .hero__bottom { justify-content: flex-end; }

  .stats > div { padding: 16px 0 0 12px; }
  .stats > div:first-child { padding-left: 0; }
  .stats dt { font-size: 11px; }
  .stats dd { font-size: 36px; }

  /* Avis : cartes qui défilent sur le côté, une par une */
  .avis { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .avis::-webkit-scrollbar { display: none; }
  .avis__carte { scroll-snap-align: start; }
  .avis__texte { font-size: 20px; }

  .form { grid-template-columns: 1fr; }
  .vente { grid-template-columns: 1fr 1fr; padding: 16px; }
  .vente .field:last-child { grid-column: 1 / -1; }
  .modal__box { padding: 24px; }

  .footer__grid { grid-template-columns: 1fr 1fr; grid-auto-flow: row; gap: 40px 24px; }
  .footer__bottom { flex-direction: column; }
  .doc__dl div { grid-template-columns: 1fr; gap: 2px; }
  .footer__tag { grid-column: 1 / -1; }
}

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