/* ==================== Theme clair / sombre ====================
   Le site suit le reglage du systeme via prefers-color-scheme. Le fond de la
   page bascule, le texte aussi, mais deux familles d'elements gardent leur
   traitement sombre dans les deux modes : le hero et les visuels de vehicule.
   Ce sont des photos sombres — un texte noir pose dessus serait illisible.
   Elles ont donc leur propre canal, --on-media-rgb, qui ne bascule jamais.

   Presque toute la charte s'ecrit « blanc a tel alpha » : il suffit donc de
   retourner ce canal, --fg-rgb, pour retourner le site. Les fonds pleins et
   les quelques pastilles inversees ont leurs propres variables. */
:root {
  color-scheme: dark light;

  --fg-rgb: 255, 255, 255;         /* texte et surfaces translucides */
  --on-media-rgb: 255, 255, 255;   /* pose sur une photo : jamais inverse */

  --bg: #050607;                   /* fond des sections */
  --bg-alt: #0a0c0e;               /* section alternee */
  --bg-deep: #030405;              /* pied de page */
  --bg-veil: rgba(5, 6, 7, 0.92);  /* en-tetes colles, translucides */
  --surface: #0e1013;              /* fiche vehicule, panneaux */
  --surface-2: #131619;
  --field-bg: rgba(0, 0, 0, 0.28); /* champs et encarts en creux */
  --scrim: rgba(3, 4, 5, 0.8);     /* voile derriere la fiche vehicule */

  --accent: #22c1c3;
  --accent-hover: #1cadaf;
  --ink: #05201f;                  /* texte pose sur l'accent */
  /* L'accent sert aussi de couleur de texte. Sur blanc le turquoise manque de
     contraste : en mode clair on l'assombrit, quel qu'il soit — y compris les
     accents de vehicule que le JS pose sur <html>. */
  --accent-text: var(--accent);

  --invert-bg: #ffffff;            /* pastilles inversees : langue, filtre actif */
  --invert-fg: #0a0a0a;

  --danger: #f87171;               /* bordure de champ en erreur */
  --danger-text: #fca5a5;          /* message d'erreur */

  --shadow-card: 0 26px 48px rgba(0, 0, 0, 0.6);
  --shadow-modal: 0 40px 90px rgba(0, 0, 0, 0.7);
}

@media (prefers-color-scheme: light) {
  :root {
    --fg-rgb: 14, 18, 24;
    --bg: #ffffff;
    --bg-alt: #f3f5f8;
    --bg-deep: #eef1f5;
    --bg-veil: rgba(255, 255, 255, 0.92);
    --surface: #ffffff;
    --surface-2: #f3f5f8;
    --field-bg: rgba(14, 18, 24, 0.04);
    --scrim: rgba(18, 24, 33, 0.42);

    --accent-text: color-mix(in srgb, var(--accent) 72%, #000);

    --invert-bg: #14181e;
    --invert-fg: #ffffff;

    --danger: #d64545;
    --danger-text: #b3261e;

    --shadow-card: 0 18px 36px rgba(15, 23, 35, 0.14);
    --shadow-modal: 0 30px 70px rgba(15, 23, 35, 0.22);
  }
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
}
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: rgb(var(--fg-rgb));
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: rgba(var(--fg-rgb), 0.62); }

.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #04060b;
}
.hero-media,
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.video-overlay {
  position: absolute;
  inset: 0;
  /* Degrade plutot qu'un voile uniforme : la voiture reste lisible au centre,
     le haut et le bas s'assombrissent pour que le menu, le titre et la barre
     de recherche gardent leur contraste. */
  background: linear-gradient(
    180deg,
    rgba(4, 6, 11, 0.58) 0%,
    rgba(4, 6, 11, 0.18) 30%,
    rgba(4, 6, 11, 0.34) 55%,
    rgba(4, 6, 11, 0.74) 78%,
    rgba(4, 6, 11, 0.92) 100%
  );
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #04060b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease;
}
.preloader span {
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  color: #b9cdea;
}
.preloader.hide {
  opacity: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(14px, 2.4vw, 26px) clamp(20px, 2.8vw, 42px);
  position: relative;
  /* Au-dessus du hero (.hero-bottom 2, .search-panel 3), sinon le panneau du
     menu s'affiche mais le hero intercepte les clics sur ses liens. Reste
     sous le preloader (60) et la fiche vehicule (200). */
  z-index: 10;
}
.logo {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.logo:hover { color: #ffffff; }

.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(28px, 3.5vw, 56px);
}
.site-nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.site-nav a:hover { color: #ffffff; }

.header-left {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 14px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
}

/* Menu telephone : sous 900px la navigation centrale disparait, ces trois
   barres la rouvrent en panneau sous l'en-tete. Elles se croisent en X une
   fois le panneau ouvert, pour que le meme bouton serve a refermer. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  color: #ffffff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}
.nav-toggle-bars {
  display: block;
  position: relative;
  width: 18px;
  height: 12px;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: top .2s ease, opacity .2s ease, transform .2s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.mobile-nav {
  position: absolute;
  top: 100%;
  left: clamp(20px, 2.8vw, 42px);
  right: clamp(20px, 2.8vw, 42px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 16px;
  background: rgba(8, 10, 15, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  animation: fadeIn .18s ease both;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 13px 14px;
  border-radius: 11px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  transition: background .16s ease, color .16s ease;
}
.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Onglet Connexion : il ouvre l'espace client. Sur petit ecran il ne garde
   que son icone. */
.account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease;
}
.account-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}
.account-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Le selecteur de langue est le seul element du hero qu'on retrouve ailleurs :
   sur l'accueil il est pose sur la photo, sur les autres pages il vit dans un
   en-tete qui bascule avec le theme. Il suit donc le premier plan du theme, et
   l'en-tete de l'accueil le repasse en blanc plus bas. */
.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(var(--fg-rgb), 0.12);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(var(--fg-rgb), 0.35);
  box-shadow: inset 0 1px 0 rgba(var(--fg-rgb), 0.4), 0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(var(--fg-rgb), 0.75);
  font-family: inherit;
  font-size: clamp(12px, 1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 7px 11px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-btn:hover { color: rgb(var(--fg-rgb)); }
.lang-btn.active {
  background: var(--invert-bg);
  color: var(--invert-fg);
}
.lang-btn.active:hover { color: var(--invert-fg); }

/* En-tete de l'accueil : pose sur la photo, il garde son blanc dans les deux
   modes, sinon le mode clair y ecrirait du blanc sur du blanc. */
.site-header .lang-switch {
  background: rgba(var(--on-media-rgb), 0.12);
  border-color: rgba(var(--on-media-rgb), 0.35);
  box-shadow: inset 0 1px 0 rgba(var(--on-media-rgb), 0.4), 0 4px 16px rgba(0, 0, 0, 0.15);
}
.site-header .lang-btn { color: rgba(var(--on-media-rgb), 0.75); }
.site-header .lang-btn:hover { color: rgb(var(--on-media-rgb)); }
.site-header .lang-btn.active {
  background: #ffffff;
  color: #111111;
}
.site-header .lang-btn.active:hover { color: #111111; }

.hero-bottom {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
  padding: 0 clamp(20px, 2.8vw, 42px) clamp(22px, 3.2vh, 34px);
}

.hero-left {
  min-width: min(100%, 380px);
  text-align: left;
}

.renters-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(18px, 2.6vh, 28px);
  opacity: 0;
  animation: softIn .7s cubic-bezier(.22,1,.36,1) .15s forwards;
}
.avatars { display: flex; }
.avatar {
  width: clamp(30px, 2.6vw, 38px);
  height: clamp(30px, 2.6vw, 38px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  object-fit: cover;
  margin-left: -12px;
}
.avatars .avatar:first-child { margin-left: 0; }
.renters-label {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 400;
  color: #ffffff;
}

.headline {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
  font-size: clamp(27px, 4.2vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: #ffffff;
  margin: 0;
}
.headline.i18n-en { display: none; }
body.lang-en .headline.i18n-fr { display: none; }
body.lang-en .headline.i18n-en { display: block; }
.headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(26px);
  animation: wordIn .8s cubic-bezier(.22,1,.36,1) forwards;
}

.hero-right {
  width: min(100%, 480px);
  margin-left: auto;
  text-align: left;
}
.sub-text {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.8);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 clamp(22px, 3.6vh, 36px);
}
.sub-text.i18n-en { display: none; }
body.lang-en .sub-text.i18n-fr { display: none; }
body.lang-en .sub-text.i18n-en { display: block; }
.sub-text .w {
  display: inline-block;
  opacity: 0;
  animation: fadeIn .6s ease-out forwards;
}

@keyframes wordIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes softIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 899px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  /* Sur telephone le texte descend plus bas sur l'image : on assombrit
     davantage a partir du milieu pour garder le sous-titre lisible. */
  .video-overlay {
    background: linear-gradient(
      180deg,
      rgba(4, 6, 11, 0.55) 0%,
      rgba(4, 6, 11, 0.20) 22%,
      rgba(4, 6, 11, 0.60) 44%,
      rgba(4, 6, 11, 0.88) 64%,
      rgba(4, 6, 11, 0.95) 100%
    );
  }
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-right {
    margin-left: 0;
    width: 100%;
  }
  .hero-media,
  .hero-media img {
    object-position: center 50%;
  }
}
@media (max-width: 520px) {
  .site-header {
    padding-left: clamp(14px, 4vw, 20px);
    padding-right: clamp(14px, 4vw, 20px);
    gap: 8px;
  }
  .mobile-nav {
    left: clamp(14px, 4vw, 20px);
    right: clamp(14px, 4vw, 20px);
  }
  .header-actions {
    gap: 8px;
  }
  .account-btn {
    padding: 10px;
    border-radius: 12px;
  }
  .account-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .lang-btn {
    padding: 7px 9px;
  }
}
@media (max-width: 360px) {
  .logo { font-size: 18px; }
}


/* ==================== Barre de recherche (hero) ==================== */
.search-panel {
  position: relative;
  z-index: 3;
  margin: 0 clamp(20px, 2.8vw, 42px) clamp(24px, 4vh, 44px);
  padding: clamp(14px, 1.5vw, 18px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 44px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: translateY(14px);
  animation: softIn .7s cubic-bezier(.22,1,.36,1) 1.3s forwards;
}
.search-form {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 1.35fr auto;
  gap: 12px;
  align-items: end;
}
.search-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.search-field > label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.search-control {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  height: 50px;
  padding: 0 13px;
  border-radius: 12px;
  background: rgba(9, 11, 15, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: border-color .2s ease;
}
.search-control:focus-within { border-color: rgba(255, 255, 255, 0.45); }
.search-control > svg {
  width: 17px; height: 17px; flex-shrink: 0;
  color: rgba(255, 255, 255, 0.55);
}
.search-control select {
  appearance: none;
  -webkit-appearance: none;
}
.search-control select,
.search-control input {
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  width: 100%;
  min-width: 0;
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color-scheme: dark;
}
.search-control select option { background: #14161a; color: #ffffff; }
.search-control select option:disabled { color: rgba(255, 255, 255, 0.38); }
.search-duo { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; min-width: 0; }
.search-submit {
  appearance: none;
  border: none;
  cursor: pointer;
  height: 50px;
  padding: 0 clamp(20px, 2vw, 30px);
  border-radius: 12px;
  background: #22c1c3;
  color: #05201f;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s ease;
}
.search-submit:hover { background: #1cadaf; }
.search-hint {
  margin: 11px 3px 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
}
.search-error {
  margin: 9px 3px 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #ffbcbc;
}

@media (max-width: 1240px) {
  .search-form { grid-template-columns: 1fr 1fr 1fr; }
  .search-submit { grid-column: 1 / -1; }
}
@media (max-width: 1020px) {
  .search-form { grid-template-columns: 1fr 1fr; }
  .search-field-city { grid-column: 1 / -1; }
  .search-submit { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .search-form { grid-template-columns: 1fr; }
  .search-panel { border-radius: 16px; }
}

/* ==================== Fleet carousel ==================== */
.fleet-section {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: clamp(56px, 9vh, 100px) 0 clamp(64px, 10vh, 110px);
}
.fleet-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 2.8vw, 42px);
}
.fleet-heading { text-align: center; margin-bottom: clamp(22px, 3.4vh, 34px); }
.fleet-title {
  color: rgb(var(--fg-rgb));
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.fleet-subtitle {
  color: rgba(var(--fg-rgb), 0.6);
  font-size: clamp(14px, 1.1vw, 16px);
  margin: 0;
}

.fleet-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px 4px 26px;
}
.fleet-pill {
  appearance: none;
  border: 1px solid rgba(var(--fg-rgb), 0.16);
  background: rgba(var(--fg-rgb), 0.04);
  color: rgba(var(--fg-rgb), 0.72);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.fleet-pill:hover { color: rgb(var(--fg-rgb)); border-color: rgba(var(--fg-rgb), 0.32); }
.fleet-pill.active {
  background: var(--invert-bg);
  color: var(--invert-fg);
  border-color: var(--invert-bg);
}

.carousel-viewport {
  --card-w: min(300px, 74vw);
  --card-h: calc(var(--card-w) * 1.34);
  position: relative;
  perspective: 1700px;
  height: calc(var(--card-h) + 44px);
  display: flex;
  align-items: center;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.carousel-viewport.is-dragging { cursor: grabbing; }
.carousel-track {
  position: relative;
  width: 100%;
  height: var(--card-h);
  transform-style: preserve-3d;
}

.car-slot {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--card-w);
  height: var(--card-h);
  margin-left: calc(var(--card-w) / -2);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.car-tilt {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s cubic-bezier(.22,1,.36,1);
}
.car-flip {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.car-face {
  position: absolute;
  inset: 0;
}

.car-face-inner {
  /* Fond de studio sombre derriere la photo : le texte de la carte reste blanc
     en mode clair, sinon il deviendrait noir sur noir. */
  --fg-rgb: var(--on-media-rgb);
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  -webkit-clip-path: inset(0 round 22px);
  clip-path: inset(0 round 22px);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  isolation: isolate;
  background: linear-gradient(165deg, #171a1f 0%, #0a0b0d 68%);
  border: 1px solid rgba(var(--fg-rgb), 0.09);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(var(--fg-rgb), 0.07);
}
.car-face-front .car-face-inner { display: flex; flex-direction: column; }

.car-visual {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 12px 12px;
  background: radial-gradient(125% 95% at 50% 12%, rgba(var(--fg-rgb), 0.12), transparent 62%), var(--accent-bg, #14161a);
}
.car-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 56%;
}
.car-fallback {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  align-items: center;
  justify-content: center;
  padding: 34px 12px 12px;
}
.car-ground {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 23%;
  width: 72%;
  height: 26px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,0.55), rgba(0,0,0,0) 72%);
}
.car-silhouette {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--accent, #9ca3af);
}
.car-silhouette .car-body { fill: currentColor; opacity: .95; }
.car-silhouette .car-wheel { fill: none; stroke: #050607; stroke-width: 5; }
.car-silhouette .car-glass { fill: rgba(var(--fg-rgb), 0.34); }
.car-silhouette .car-shadow { fill: rgba(0,0,0,0.38); }

.car-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: var(--accent, #ffffff);
  padding: 5px 10px;
  border-radius: 999px;
}
.car-logo {
  position: absolute;
  top: 14px;
  right: 15px;
  z-index: 2;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(var(--fg-rgb), 0.8);
  letter-spacing: -0.01em;
}

.car-info {
  flex: 0 0 auto;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(var(--fg-rgb), 0.07);
  background: rgba(6,7,9,0.55);
}
.car-name { color: rgb(var(--fg-rgb)); font-size: 17.5px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.car-cat { color: rgba(var(--fg-rgb), 0.5); font-size: 12.5px; margin: 3px 0 12px; }
.car-specs { display: flex; gap: 6px; margin-bottom: 14px; }
.spec-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; color: rgba(var(--fg-rgb), 0.66);
  background: rgba(var(--fg-rgb), 0.06); border-radius: 8px; padding: 5px 8px;
  white-space: nowrap;
}
.spec-chip svg { width: 12px; height: 12px; flex-shrink: 0; }
.car-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.car-price { color: rgb(var(--fg-rgb)); font-size: 17px; font-weight: 600; }
.car-price small { color: rgba(var(--fg-rgb), 0.5); font-weight: 400; font-size: 11.5px; }
.car-cta {
  appearance: none; border: none; background: var(--invert-bg); color: var(--invert-fg);
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  padding: 9px 15px; border-radius: 10px; cursor: pointer;
}

.carousel-nav {
  appearance: none; border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(var(--fg-rgb), 0.08);
  border: 1px solid rgba(var(--fg-rgb), 0.16);
  color: rgb(var(--fg-rgb));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  z-index: 5;
  transition: background .2s ease;
}
.carousel-nav:hover { background: rgba(var(--fg-rgb), 0.18); }
.carousel-nav svg { width: 20px; height: 20px; }
.carousel-nav.prev { margin-right: -42px; }
.carousel-nav.next { margin-left: -42px; }
@media (max-width: 720px) {
  .carousel-nav { display: none; }
}

/* ==================== Sections de contenu ==================== */
.section {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: clamp(56px, 9vh, 96px) 0;
}
.section-alt { background: var(--bg-alt); }
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 2.8vw, 42px);
}
.section-head { text-align: center; margin-bottom: clamp(30px, 4.5vh, 52px); }
.section-title {
  color: rgb(var(--fg-rgb));
  font-size: clamp(25px, 3.2vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.section-sub {
  color: rgba(var(--fg-rgb), 0.6);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Comment ca marche ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
  counter-reset: step;
}
.step { position: relative; padding-top: 6px; }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(34, 193, 195, 0.14);
  border: 1px solid rgba(34, 193, 195, 0.4);
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 600;
}
.step-title { color: rgb(var(--fg-rgb)); font-size: 16.5px; font-weight: 600; margin: 0 0 7px; }
.step-text { color: rgba(var(--fg-rgb), 0.6); font-size: 13.5px; line-height: 1.55; margin: 0; }

/* ---------- Offres mises en avant ---------- */
/* Deux panneaux larges, sur le modele des encarts d'agence : un cadre incline
   qui porte le chiffre (le prix ou la remise), un titre, une ligne, un bouton.
   Celui du vehicule est un lien entier — toute la surface est cliquable ;
   celui de l'offre n'en est pas un, et le dit avec « bientot disponible »
   plutot qu'avec un bouton qui ne menerait nulle part. */
.promos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.promo {
  --fg-rgb: var(--on-media-rgb);   /* fond sombre dans les deux themes */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(340px, 34vw, 420px);
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  color: rgb(var(--fg-rgb));
  text-decoration: none;
  background: linear-gradient(165deg, #1b1f25 0%, #0a0b0d 72%);
  border: 1px solid rgba(var(--fg-rgb), 0.09);
  box-shadow: var(--shadow-card);
}
.promo-offer {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(34, 193, 195, 0.28), transparent 62%),
    linear-gradient(165deg, #16201f 0%, #08090a 74%);
}

/* La photo occupe le haut du panneau et se fond dans le texte : pas de
   decoupe franche, donc pas besoin d'un detourage parfait. */
.promo-media {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: 64%;
}
/* Deux voiles : un vers la gauche, pour que le cadre se detache meme sur une
   carrosserie claire, un vers le bas, qui fond la photo dans le panneau. */
.promo-media::before,
.promo-media::after {
  content: "";
  position: absolute;
  inset: 0;
}
.promo-media::before {
  background: linear-gradient(100deg, #0a0b0d 4%, rgba(10, 11, 13, 0.72) 34%, transparent 64%);
}
.promo-media::after {
  background: linear-gradient(to bottom, transparent 40%, #0a0b0d 96%);
}
/* La photo est poussee a droite : le cadre du prix garde ainsi une zone
   sombre a lui, quelle que soit la couleur de la carrosserie. */
.promo-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 82% 58%;
}
.promo-ground {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 70%;
  height: 26px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 72%);
}

.promo-body {
  position: relative;
  z-index: 1;
}

/* Le cadre incline : c'est lui qui porte le chiffre, il doit se lire avant
   le titre. Le texte, lui, reste droit. */
.promo-frame {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 16px;
  padding: 10px 18px 12px;
  border: 2px solid rgba(var(--fg-rgb), 0.9);
  transform: skewX(-9deg);
}
.promo-frame > * { transform: skewX(9deg); }
.promo-frame-top,
.promo-frame-unit {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--fg-rgb), 0.82);
}
.promo-frame-value {
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.promo-car .promo-frame { border-color: var(--accent); }
.promo-car .promo-frame-value { color: var(--accent); }

.promo-title {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.promo-text {
  margin: 0 0 20px;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(var(--fg-rgb), 0.66);
}

/* Bouton du panneau vehicule : dessine, mais jamais focusable a part — c'est
   le panneau entier qui est le lien. */
.promo-btn,
.promo-soon {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}
.promo-btn {
  color: var(--ink);
  background: var(--accent);
  transition: background .2s ease;
}
.promo-soon {
  color: rgba(var(--fg-rgb), 0.62);
  border: 1px solid rgba(var(--fg-rgb), 0.22);
}

.promo-car {
  transition: border-color .25s ease, transform .25s ease;
}
.promo-car:hover {
  border-color: rgba(34, 193, 195, 0.5);
  transform: translateY(-3px);
}
.promo-car:hover .promo-btn { background: var(--accent-hover); }
.promo-car:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .promo-car, .promo-car:hover { transform: none; transition: none; }
}

@media (max-width: 560px) {
  .promo { min-height: 320px; padding: 22px; }
  .promo-media { height: 52%; }
}

/* ---------- Conditions ---------- */
.conds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}
.cond {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 14px;
  background: rgba(var(--fg-rgb), 0.035);
  border: 1px solid rgba(var(--fg-rgb), 0.07);
}
.cond > svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent-text); margin-top: 1px; }
.cond-title { color: rgb(var(--fg-rgb)); font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.cond-text { color: rgba(var(--fg-rgb), 0.55); font-size: 12.5px; line-height: 1.5; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.1);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 2px;
  cursor: pointer;
  list-style: none;
  color: rgb(var(--fg-rgb));
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(var(--fg-rgb), 0.5);
  border-bottom: 2px solid rgba(var(--fg-rgb), 0.5);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq summary:hover { color: var(--accent-text); }
.faq-answer {
  margin: 0;
  padding: 0 2px 20px;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(var(--fg-rgb), 0.6);
}

/* ---------- Contact ---------- */
.contact-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(30px, 4vw, 48px) clamp(22px, 3vw, 40px);
  border-radius: 22px;
  background: radial-gradient(120% 130% at 50% 0%, rgba(34,193,195,0.16), transparent 62%), rgba(var(--fg-rgb), 0.04);
  border: 1px solid rgba(var(--fg-rgb), 0.1);
}
.contact-title {
  color: rgb(var(--fg-rgb));
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.contact-text {
  color: rgba(var(--fg-rgb), 0.62);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 auto 26px;
  max-width: 460px;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #05201f;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 12px;
  transition: filter .2s ease;
}
.contact-btn:hover { filter: brightness(1.08); color: #05201f; }
.contact-btn svg { width: 19px; height: 19px; }
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 28px;
  font-size: 13px;
  color: rgba(var(--fg-rgb), 0.5);
}

/* ---------- Pied de page ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg-deep);
  border-top: 1px solid rgba(var(--fg-rgb), 0.07);
  padding: clamp(34px, 5vh, 52px) 0 clamp(26px, 4vh, 36px);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 2.8vw, 42px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { max-width: 300px; }
.footer-logo { color: rgb(var(--fg-rgb)); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 9px; }
.footer-tag { color: rgba(var(--fg-rgb), 0.45); font-size: 13px; line-height: 1.55; margin: 0; }
.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a { color: rgba(var(--fg-rgb), 0.6); font-size: 13.5px; }
.footer-nav a:hover { color: var(--accent-text); }
.footer-bottom {
  max-width: 1180px;
  margin: clamp(26px, 4vh, 38px) auto 0;
  padding: 18px clamp(20px, 2.8vw, 42px) 0;
  border-top: 1px solid rgba(var(--fg-rgb), 0.06);
  font-size: 12px;
  color: rgba(var(--fg-rgb), 0.35);
}

/* ---------- Fiche detaillee vehicule ---------- */
body.vd-open { overflow: hidden; }

.vd-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.vd-overlay[hidden] { display: none; }

.vd-backdrop {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.vd-dialog {
  position: relative;
  z-index: 1;
  width: min(1000px, 100%);
  max-height: calc(100vh - 40px);
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  background: var(--surface);
  border: 1px solid rgba(var(--fg-rgb), 0.1);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  animation: vd-in .3s cubic-bezier(.22,1,.36,1);
}
@supports (max-height: 100dvh) {
  .vd-dialog { max-height: calc(100dvh - 40px); }
}
@keyframes vd-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
}
@media (prefers-reduced-motion: reduce) {
  .vd-dialog { animation: none; }
}

.vd-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 4;
  appearance: none;
  -webkit-appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(var(--fg-rgb), 0.18);
  background: var(--bg-veil);
  color: rgb(var(--fg-rgb));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}
.vd-close:hover { background: rgba(var(--fg-rgb), 0.16); }
.vd-close svg { width: 18px; height: 18px; }

/* --- colonne gauche : le vehicule --- */
.vd-visual {
  --fg-rgb: var(--on-media-rgb);   /* meme fond de studio que les cartes */
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 20px;
  color: rgb(var(--fg-rgb));
  background:
    radial-gradient(120% 80% at 50% 12%, color-mix(in srgb, var(--accent, #22c1c3) 26%, transparent) 0%, transparent 62%),
    linear-gradient(168deg, #1a1d22 0%, #0a0b0d 72%);
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .vd-visual { background: linear-gradient(168deg, #1a1d22 0%, #0a0b0d 72%); }
}
.vd-visual::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(var(--fg-rgb), 0.08);
}

.vd-visual-head { padding-right: 44px; }
.vd-name {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.vd-cat {
  margin: 0;
  font-size: 13px;
  color: rgba(var(--fg-rgb), 0.58);
}

.vd-photo-wrap {
  flex: 1 1 auto;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0 18px;
}
/* object-fit: contain : l'image ne peut structurellement pas deborder
   de sa boite, quel que soit le navigateur. */
.vd-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: contain;
}

.vd-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.vd-specs li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12.5px;
  color: rgba(var(--fg-rgb), 0.74);
}
.vd-specs svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--accent-text);
}
.vd-specs span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- colonne droite : les options --- */
.vd-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border-left: 1px solid rgba(var(--fg-rgb), 0.08);
}
.vd-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 26px 24px 8px;
}

.vd-group-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: rgb(var(--fg-rgb));
}
.vd-options + .vd-group-title { margin-top: 24px; }
/* La croix de fermeture est en haut a droite du dialogue : on reserve la
   place pour qu'elle ne chevauche jamais le premier titre ni la premiere
   option. */
.vd-scroll > .vd-group-title:first-child { padding-right: 46px; }

.vd-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vd-option {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1px solid rgba(var(--fg-rgb), 0.11);
  background: rgba(var(--fg-rgb), 0.02);
  color: rgb(var(--fg-rgb));
  transition: border-color .18s ease, background .18s ease;
}
.vd-option:hover { border-color: rgba(var(--fg-rgb), 0.24); }
.vd-option.is-selected {
  border-color: var(--accent-text);
  background: rgba(var(--fg-rgb), 0.05);
  box-shadow: inset 0 0 0 1px var(--accent, #22c1c3);
}

.vd-radio {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--fg-rgb), 0.35);
  position: relative;
}
.vd-option.is-selected .vd-radio { border-color: rgb(var(--fg-rgb)); }
.vd-option.is-selected .vd-radio::after {
  content: '';
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: rgb(var(--fg-rgb));
}

.vd-option-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vd-option-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}
.vd-option-sub {
  font-size: 11.5px;
  line-height: 1.35;
  color: rgba(var(--fg-rgb), 0.52);
}

.vd-option-price {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.vd-option-price b {
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
}
.vd-option-price small {
  font-size: 11px;
  color: rgba(var(--fg-rgb), 0.5);
  white-space: nowrap;
}

.vd-included {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vd-included li {
  position: relative;
  padding-left: 24px;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(var(--fg-rgb), 0.66);
}
.vd-included li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 5px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent, #22c1c3);
  border-bottom: 2px solid var(--accent, #22c1c3);
  transform: rotate(-45deg);
}

.vd-legal {
  margin: 18px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(var(--fg-rgb), 0.42);
}

.vd-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 24px;
  border-top: 1px solid rgba(var(--fg-rgb), 0.09);
  background: var(--surface);
}
.vd-total {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vd-total b {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.vd-total span {
  font-size: 11.5px;
  color: rgba(var(--fg-rgb), 0.52);
  white-space: nowrap;
}

.vd-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 13px;
  background: var(--accent, #22c1c3);
  color: var(--ink, #05201f);
  transition: filter .18s ease;
}
.vd-cta:hover { filter: brightness(1.08); }

@media (max-width: 860px) {
  .vd-overlay { padding: 0; }
  .vd-dialog {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border: none;
  }
  @supports (height: 100dvh) {
    .vd-dialog { height: 100dvh; }
  }
  .vd-visual { padding: 20px 18px 16px; }
  .vd-photo-wrap { min-height: 0; padding: 8px 0 14px; }
  .vd-photo { max-height: 150px; }
  .vd-name { font-size: 18px; }
  .vd-specs { gap: 8px 12px; }
  .vd-specs li { font-size: 11.5px; }
  .vd-panel { border-left: none; }
  .vd-scroll { padding: 20px 18px 8px; }
  .vd-foot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }
  .vd-total b { font-size: 19px; }
  .vd-cta { padding: 13px 18px; font-size: 13px; }
}

@media (max-width: 380px) {
  .vd-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .vd-total { flex-direction: row; align-items: baseline; gap: 8px; }
  .vd-cta { width: 100%; }
}
