/* =====================================================
   MM1 Automobile — Design System (363sudbury-inspired)
   Palette : noir total + bleu MM1 (#00d4ff / #0066ff)
   ===================================================== */

:root {
  --color-black: #000000;
  --color-near-black: #0a0a0a;
  --color-dark: #050505;
  --color-grey: #1a1a1a;
  --color-blue: #00d4ff;
  --color-blue-deep: #0066ff;
  --color-white: #ffffff;
  --color-white-75: rgba(255,255,255,0.75);
  --color-white-50: rgba(255,255,255,0.5);
  --color-white-25: rgba(255,255,255,0.25);
  --color-white-10: rgba(255,255,255,0.10);

  --viewport-gutter: 1rem;
  --top-nav-height: 5.5rem;
  --action-bar-height: 5rem;
  --panel-gap: 0.25rem;
  --panel-radius: 0.25rem;

  --ease-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
  --ease-power4: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.3s;
  --duration-base: 0.5s;
  --duration-slow: 0.8s;

  --font-stack: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (min-width: 768px) {
  :root { --viewport-gutter: 1.5rem; --action-bar-height: 6rem; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-stack);
  font-size: clamp(15px, 1.1vw, 17px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scrollbar-width: thin;
  scrollbar-color: var(--color-blue) var(--color-black);
}

html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track { background: var(--color-black); }
html::-webkit-scrollbar-thumb { background: var(--color-grey); border-radius: 4px; }
html::-webkit-scrollbar-thumb:hover { background: var(--color-blue); }

body {
  min-height: 100vh;
  background: var(--color-black);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img, video { display: block; max-width: 100%; }

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

/* =====================================================
   TOP NAV
   ===================================================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--viewport-gutter);
  pointer-events: none;
}
.top-nav > * { pointer-events: auto; }

/* Badge logo "MM1" — façon 363 : carré verre fumé translucide, réécriture + bleu au hover */
.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--panel-radius);
  /* translucide mais visible : léger voile sombre + flou, comme 363 */
  background: rgba(10,10,12,0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--duration-fast) ease;
  overflow: hidden;
}
.logo-badge:hover { background: rgba(10,10,12,0.40); }
.logo-badge-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
  transition: color 0.25s ease;
  user-select: none;
}
.logo-badge:hover .logo-badge-text { color: var(--color-blue); }
.logo-char {
  display: inline-block;
  transition: transform 0.22s var(--ease-circ), opacity 0.22s ease;
}
/* Disparition : le caractère sort vers le bas */
.logo-char.is-out {
  opacity: 0;
  transform: translateY(0.6em);
}
/* Avant réapparition : positionné au-dessus, prêt à descendre (sans transition) */
.logo-char.is-pre {
  opacity: 0;
  transform: translateY(-0.6em);
  transition: none;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--top-nav-height)) var(--viewport-gutter) calc(var(--action-bar-height) + var(--viewport-gutter) + 3.5rem);
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg img,
.hero-bg video,
.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.45) 100%);
}

/* Video backgrounds */
.video-bg video {
  position: absolute;
  inset: 0;
}

/* Reduced motion / data saver */
@media (prefers-reduced-motion: reduce) {
  .hero-bg video,
  .video-bg video { display: none; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Grand logo MM1 en haut à gauche du hero (style 363sudbury) */
.hero-logo {
  position: relative;
  z-index: 3;
  width: min(400px, 52vw);
  max-width: 100%;
  margin: 0 auto 1.5rem;
  pointer-events: none;
}
.hero-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.45));
}

@media (max-width: 600px) {
  .hero-logo {
    width: min(260px, 72vw);
    margin-bottom: 1.1rem;
  }
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero-title span {
  display: block;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
}
.hero-title .text-blue {
  color: var(--color-blue);
  text-shadow: 0 4px 24px rgba(0,212,255,0.18);
}

.hero-body {
  max-width: 50ch;
  margin: 0 auto;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  text-wrap: balance;
}

@media (max-width: 600px) {
  .hero { padding-top: calc(var(--top-nav-height) + 0.5rem); }
  .hero-title { font-size: clamp(1.6rem, 8.5vw, 2.6rem); margin-bottom: 1rem; }
  .hero-body { font-size: 0.85rem; }
  .hero-logo { width: min(220px, 62vw); margin-bottom: 1rem; }
}

/* =====================================================
   ACTION BAR
   ===================================================== */
.action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--action-bar-height);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--viewport-gutter);
  pointer-events: none;
}
.action-bar > * { pointer-events: auto; }

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 3.25rem;
  padding: 0 2.25rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-white);
  border: 2px solid var(--color-blue);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 25px rgba(0,212,255,0.15);
  transition: transform var(--duration-fast) ease, background var(--duration-fast) ease, box-shadow var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}
.action-button:hover {
  transform: translateY(-2px);
  background: rgba(0,212,255,0.12);
  box-shadow: 0 0 35px rgba(0,212,255,0.35);
  color: var(--color-white);
}
.action-button svg { width: 1rem; height: 1rem; color: var(--color-blue); }

@media (max-width: 600px) {
  :root { --action-bar-height: 4.5rem; }
  /* Badge lisible même au scroll au-dessus de contenu clair */
  .logo-badge {
    background: rgba(8,8,10,0.82);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 4px 18px rgba(0,0,0,0.45);
  }
  .logo-badge:hover { background: rgba(8,8,10,0.92); }
  .action-button {
    height: 2.85rem;
    padding: 0 1.75rem;
    font-size: 0.72rem;
    gap: 0.6rem;
  }
  .action-button svg { width: 0.9rem; height: 0.9rem; }
}

/* Style principal : outline bleu électrique, texte blanc */
.action-button[data-state="explore"],
.action-button[data-state="close"],
.action-button[data-state="back"] {
  background: rgba(0,212,255,0.08);
  color: #ffffff;
  border-color: var(--color-blue);
  box-shadow: 0 0 25px rgba(0,212,255,0.15);
}
.action-button[data-state="explore"] svg,
.action-button[data-state="close"] svg,
.action-button[data-state="back"] svg {
  color: #ffffff;
}
.action-button[data-state="explore"]:hover,
.action-button[data-state="close"]:hover,
.action-button[data-state="back"]:hover {
  background: rgba(0,212,255,0.18);
  border-color: var(--color-blue);
  box-shadow: 0 0 40px rgba(0,212,255,0.35);
  color: #ffffff;
}

/* =====================================================
   DASHBOARD GRID
   ===================================================== */
.dashboard {
  position: relative;
  z-index: 1;
  height: 100dvh;
  overflow: hidden;
  padding: calc(var(--viewport-gutter) + 4rem) var(--viewport-gutter) calc(var(--action-bar-height) + var(--viewport-gutter));
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1.7fr 1fr 1fr 1fr;
  gap: var(--panel-gap);
  background: var(--color-black);
}

.dashboard-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
}
.dashboard-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) brightness(0.6);
  transform: scale(1.05);
}

@media (min-width: 900px) {
  .dashboard {
    grid-template-columns: 1.9fr 1fr 1fr;
    grid-template-rows: auto 1fr 1fr;
  }
  .topbar { grid-column: 3; grid-row: 1; }
  .tile-feature { grid-column: 1; grid-row: 1 / -1; }
  .tile-about { grid-column: 2; grid-row: 1 / 3; }
  .tile-half { grid-column: 3; grid-row: 2; }
  .tile-stack { grid-column: 2 / -1; grid-row: 3; }
}

.tile {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 0.625rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--color-near-black);
}
.tile > a,
.tile-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 1.25rem;
  z-index: 2;
}

.tile-wide { grid-column: 1 / -1; }

.tile-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: var(--panel-gap);
  min-height: 0;
}
.tile-stack .tile { flex: none; }

@media (max-width: 899px) {
  .dashboard {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1.15fr 1fr 1fr;
  }
  .tile-wide { grid-column: 1 / -1; }
  .tile-feature { grid-column: 1 / -1; grid-row: 1; }
  .tile-half { grid-column: span 1; grid-row: auto; }
  .tile-stack {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .tile-logo img { width: min(60%, 280px); }
  .tile-cutout { object-position: center 30%; transform: scale(1.05); }
}

@media (max-width: 600px) {
  .dashboard {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    padding-top: calc(var(--viewport-gutter) + 3.5rem);
    padding-bottom: calc(var(--action-bar-height) + 1rem);
    padding-left: max(var(--viewport-gutter), env(safe-area-inset-left));
    padding-right: max(var(--viewport-gutter), env(safe-area-inset-right));
  }
  .topbar { grid-column: 1 / -1; grid-row: auto; height: 2.6rem; }
  .tile-feature,
  .tile-about,
  .tile-half,
  .tile-stack {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 150px;
  }
  .tile-feature { min-height: 200px; }
  .tile-about { min-height: 170px; }
  .tile-stack {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    min-height: 130px;
  }
  .tile-stack .tile { min-height: 130px; }
  .tile-logo img { width: min(40%, 150px); }
  .tile-vehicles .tile-logo { display: none; }
  .tile-about .tile-body { display: none; }
  .tile:not(.tile-wide) .tile-title { font-size: clamp(1.05rem, 4.8vw, 1.55rem); }
  .tile-about .tile-title { font-size: clamp(1.1rem, 5vw, 1.5rem); }
  .tile-stack .tile:nth-child(3) .tile-title,
  .tile-stack .tile:nth-child(4) .tile-title {
    font-size: clamp(0.95rem, 3.2vw, 1.2rem);
  }
}

.tile-corner {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--color-blue);
  color: var(--color-blue);
  transform: translate(120%, -120%);
  opacity: 0;
  transition: transform 0.5s var(--ease-circ), opacity 0.4s ease;
  pointer-events: none;
}
.tile:hover .tile-corner {
  transform: translate(0, 0);
  opacity: 1;
}

/* Tile variants : feature, about, cutout */
.tile-vehicles .tile-bg img { object-position: center 60%; }
.tile-vehicles .tile-bg::after {
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.20) 100%);
}
.tile-vehicles:hover .tile-bg::after {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0.25) 100%);
}

.tile-logo {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 2rem;
}
.tile-logo img {
  width: min(75%, 420px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 45px rgba(0,0,0,0.55));
  transition: transform 0.8s var(--ease-circ), filter 0.6s ease;
}
.tile-vehicles:hover .tile-logo img {
  transform: scale(1.04);
  filter: drop-shadow(0 24px 55px rgba(0,0,0,0.65));
}

.tile-about .tile-bg img { object-position: center top; }

.tile-bg-dark {
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 40%, rgba(0,0,0,0) 70%),
              linear-gradient(180deg, rgba(20,20,20,1) 0%, rgba(5,5,5,1) 100%);
}
.tile-bg-dark::after {
  background: linear-gradient(to top, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.10) 100%);
  z-index: 1;
}

/* =====================================================
   TOPBAR — bandeau réseaux + météo (coiffe la colonne droite, façon 363)
   ===================================================== */
.topbar {
  display: flex;
  align-items: stretch;
  gap: var(--panel-gap);
  padding: 0;
  height: clamp(3rem, 4.2vw, 4rem);
  background: transparent;
  border: none;
  overflow: visible;
  min-height: 0;
}
.topbar-icons {
  display: flex;
  gap: var(--panel-gap);
  flex: none;
}
.topbar-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 0.625rem;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.topbar-icon svg {
  position: relative;
  z-index: 2;
  width: 44%;
  height: 44%;
  stroke: currentColor;
  transition: transform 0.5s var(--ease-circ);
}
.topbar-icon:hover svg { transform: scale(1.12); }

/* Bloc météo : remplit le reste du bandeau */
.topbar-weather {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.1rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(160deg, rgba(22,22,22,1) 0%, rgba(8,8,8,1) 100%);
  overflow: hidden;
}
.weather-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.weather-loc {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-white-50);
}
.weather-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.05vw, 1.05rem);
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.weather-temp { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.weather-deg {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.3rem, 1.7vw, 1.85rem);
  line-height: 1;
  color: #fff;
}
.weather-icon { display: flex; color: var(--color-blue); }
.weather-icon svg { width: 1.5rem; height: 1.5rem; }

@media (max-width: 600px) {
  /* Bandeau du haut : impossible de déborder, même sur iOS réel.
     Les icônes ont une largeur fixe (plus d'étirement via aspect-ratio),
     et le bloc météo absorbe le reste et peut rétrécir (ellipsis). */
  .topbar { gap: 0.4rem; min-width: 0; }
  .topbar-icons { gap: 0.4rem; flex: 0 0 auto; }
  .topbar-icon {
    aspect-ratio: auto;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 2.6rem;
  }
  .topbar-icon svg { width: 38%; height: 38%; }
  .topbar-weather { flex: 1 1 auto; min-width: 0; padding: 0 0.75rem; gap: 0.5rem; }
  .weather-info { min-width: 0; flex: 1 1 auto; }
  .weather-loc { font-size: 0.5rem; }
  .weather-desc { font-size: 0.78rem; }
  .weather-deg { font-size: 1.05rem; }
  .weather-icon svg { width: 1.15rem; height: 1.15rem; }
}

/* Couleurs des icônes réseaux dans la topbar */
.topbar .tile-instagram {
  color: #fff;
  background: radial-gradient(circle at 30% 100%, rgba(225,48,108,0.30) 0%, transparent 60%),
             radial-gradient(circle at 80% 10%, rgba(0,212,255,0.20) 0%, transparent 50%),
             linear-gradient(160deg, rgba(22,22,22,1) 0%, rgba(8,8,8,1) 100%);
}
.topbar .tile-instagram:hover { color: var(--color-blue); }
.topbar .tile-legal {
  color: var(--color-white-75);
  background: radial-gradient(circle at 80% 10%, rgba(0,212,255,0.12) 0%, transparent 50%),
             linear-gradient(160deg, rgba(22,22,22,1) 0%, rgba(8,8,8,1) 100%);
}
.topbar .tile-legal:hover { color: var(--color-blue); }

.tile-cutout {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 35%;
  padding: 0.5rem;
  transform: scale(1.08);
  transition: transform 0.9s var(--ease-circ);
}
.tile-x4:hover .tile-cutout {
  transform: scale(1.14);
}

.tile:not(.tile-wide) .tile-inner { padding: 1rem; }
.tile:not(.tile-wide) .tile-title { font-size: clamp(1.5rem, 2vw, 2.2rem); margin-bottom: 0.45rem; }
.tile:not(.tile-wide) .tile-label { margin-bottom: 0.25rem; font-size: 0.55rem; }
.tile:not(.tile-wide) .tile-arrow { font-size: 0.65rem; }
.tile:not(.tile-wide) .tile-meta { margin-top: 0.15rem; font-size: 0.7rem; }
.tile-stack .tile-inner { padding: 0.75rem 0.9rem; }
.tile-stack .tile-title { font-size: clamp(1.25rem, 1.5vw, 1.6rem); }
.tile-stack .tile-corner { width: 1.75rem; height: 1.75rem; top: 0.75rem; right: 0.75rem; }

@media (max-width: 600px) {
  .tile-wide .tile-body { display: none; }
  .tile-wide .tile-title { font-size: clamp(1.75rem, 6vw, 2.2rem); margin-bottom: 0.4rem; }
  .tile-wide .tile-inner { padding: 0.9rem 1rem; }
  .tile:not(.tile-wide) .tile-inner { padding: 0.7rem 0.85rem; }
  .tile:not(.tile-wide) .tile-title { font-size: clamp(1.3rem, 4.5vw, 1.6rem); }
  .tile:not(.tile-wide) .tile-arrow { font-size: 0.6rem; }

  /* Coup de cœur : la photo détourée passe en haut à droite pour
     dégager la zone texte (label + titre) en bas à gauche */
  .tile-x4 { min-height: 230px; }
  .tile-x4 .tile-cutout {
    object-position: center 18%;
    transform: scale(1.04) translateY(-8%);
    padding: 0.75rem 0.5rem 0;
  }
  /* Voile sombre renforcé en bas pour garantir le contraste du texte */
  .tile-x4 .tile-bg-dark::after {
    background: linear-gradient(to top, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.70) 32%, rgba(0,0,0,0.10) 62%);
  }
  /* Petites tuiles (services / contact) : scrim plus marqué sous le label */
  .tile-stack .tile-bg::after {
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.30) 100%);
  }
}

.tile-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.tile-bg img,
.tile-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-circ);
}
.tile:hover .tile-bg img,
.tile:hover .tile-bg video { transform: scale(1.05); }

.tile-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.30) 55%, rgba(0,0,0,0.10) 100%);
  transition: background var(--duration-base) ease;
}
.tile:hover .tile-bg::after {
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.40) 65%, rgba(0,0,0,0.18) 100%);
}

.tile-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.6rem;
}

.tile-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 18ch;
  margin-bottom: 0.85rem;
}

.tile-body {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-white-75);
  max-width: 46ch;
  margin-bottom: 1rem;
}

.tile-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-blue);
  transition: gap var(--duration-fast) ease;
}
.tile:hover .tile-arrow { gap: 0.75rem; }

.tile-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-white-75);
  margin-top: 0.35rem;
}

/* =====================================================
   IMMERSIVE CONTENT PAGE
   ===================================================== */
.page-immersive {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--viewport-gutter) + 4rem) var(--viewport-gutter) calc(var(--action-bar-height) + var(--viewport-gutter));
  overflow: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page-bg img,
.page-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.5) 100%);
}

.page-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
}

.page-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
}

.page-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
  .page-immersive {
    padding-top: calc(var(--viewport-gutter) + var(--top-nav-height));
    padding-bottom: calc(var(--action-bar-height) + 3.5rem);
  }
  .page-title { font-size: clamp(1.7rem, 7.5vw, 2.6rem); }
  .page-body { font-size: 0.9rem; }
  .cards-grid { grid-template-columns: 1fr; margin-top: 1.25rem; gap: 0.75rem; }
  .card { padding: 1.1rem; }
  .card-number { font-size: 1.25rem; }
  .card-title { font-size: 0.95rem; }
  .card-text { font-size: 0.8rem; }
}

.page-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-white-75);
  max-width: 55ch;
  margin-bottom: 1.5rem;
}

/* Cards grid inside immersive page */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.card {
  background: rgba(10,10,10,0.65);
  border: 1px solid var(--color-white-10);
  border-radius: var(--panel-radius);
  padding: 1.25rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-blue);
  margin-bottom: 0.5rem;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.card-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-white-75);
}

/* =====================================================
   VEHICLE DETAIL PAGE
   ===================================================== */
.vehicle-page {
  position: relative;
  z-index: 1;
  background: var(--color-black);
  padding-bottom: calc(var(--action-bar-height) + 2rem);
}

/* Fixed video background like the reference */
.vehicle-hero-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.vehicle-hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) contrast(1.05);
}
.vehicle-hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.60) 55%, rgba(0,0,0,0.88) 100%);
}

/* Highlight section over the video */
.vehicle-highlight {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--viewport-gutter) + var(--top-nav-height)) var(--viewport-gutter) calc(var(--action-bar-height) + var(--viewport-gutter));
}
.vehicle-highlight-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: end;
}
.vehicle-highlight-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 1rem;
}
.vehicle-highlight-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--color-white);
}
.vehicle-highlight-number span {
  font-size: 0.4em;
  letter-spacing: 0.05em;
  color: var(--color-blue);
  margin-left: 0.15em;
  vertical-align: super;
}
.vehicle-highlight-text {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: var(--color-white-75);
  max-width: 54ch;
  padding-bottom: 1.5rem;
}

/* Sections below the video */
.vehicle-section {
  position: relative;
  z-index: 2;
  background: var(--color-black);
  padding: 4rem var(--viewport-gutter);
  border-top: 1px solid var(--color-white-10);
}
.vehicle-section-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.vehicle-description-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-white-75);
  max-width: 70ch;
  margin-bottom: 1.25rem;
}

.vehicle-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem;
  background: var(--color-near-black);
  border: 1px solid var(--color-white-10);
  border-radius: var(--panel-radius);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.spec-item:hover {
  border-color: var(--color-blue);
  transform: translateY(-2px);
}
.spec-item span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white-50);
}
.spec-item strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
}

/* Gallery */
.vehicle-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.gallery-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--panel-radius);
  overflow: hidden;
  border: 1px solid var(--color-white-10);
  background: var(--color-near-black);
}
.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.6s ease;
}
.gallery-stage:hover img { transform: scale(1.02); }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}
.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--panel-radius) * 0.6);
  overflow: hidden;
  border: 1px solid var(--color-white-10);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.3s ease;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.thumb:hover { border-color: var(--color-blue); }
.thumb:hover img { transform: scale(1.06); }
.thumb.is-active { border-color: var(--color-blue); box-shadow: 0 0 0 1px var(--color-blue); }
.thumb.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--color-blue);
  border-radius: inherit;
  pointer-events: none;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* CTA section */
.vehicle-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--color-near-black);
  border: 1px solid var(--color-white-10);
  border-radius: var(--panel-radius);
}
.vehicle-cta-price {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.vehicle-cta-price span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-blue);
  line-height: 1;
}
.vehicle-cta-price small {
  font-size: 0.75rem;
  color: var(--color-white-50);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.vehicle-cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.action-button-primary {
  background: var(--color-blue);
  color: var(--color-black) !important;
  border-color: var(--color-blue);
}
.action-button-primary:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  box-shadow: 0 0 30px rgba(0,212,255,0.35);
}
.action-button-primary svg { color: var(--color-black); }

@media (max-width: 900px) {
  .vehicle-highlight-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
  }
  .vehicle-highlight-text { padding-bottom: 0; }
}

@media (max-width: 600px) {
  .vehicle-page { padding-bottom: calc(var(--action-bar-height) + 3.5rem); }
  .vehicle-highlight { min-height: auto; padding-top: calc(var(--viewport-gutter) + var(--top-nav-height) + 2rem); }
  .vehicle-highlight-number { font-size: clamp(4rem, 22vw, 7rem); }
  .vehicle-section { padding: 2.5rem var(--viewport-gutter); }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
  .thumb:nth-child(n+9) { display: none; }
  .vehicle-cta-inner { flex-direction: column; align-items: flex-start; }
  .vehicle-cta-actions { width: 100%; }
  .vehicle-cta-actions .action-button { flex: 1 1 auto; justify-content: center; }
}

/* =====================================================
   VEHICLES CAROUSEL
   ===================================================== */
.vehicles-page {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--color-black);
  padding: calc(var(--viewport-gutter) + var(--top-nav-height)) var(--viewport-gutter) calc(var(--action-bar-height) + 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
body:has(.vehicles-page) { overflow: hidden; }
.vehicles-page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(0,212,255,0.06) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(0,102,255,0.05) 0%, transparent 45%),
    linear-gradient(180deg, rgba(8,8,8,1) 0%, rgba(2,2,2,1) 100%);
  pointer-events: none;
}

.vehicles-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 720px;
}
.vehicles-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.vehicles-body {
  font-size: 0.95rem;
  color: var(--color-white-75);
  max-width: 55ch;
  margin: 0 auto;
}

.carousel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.carousel-viewport {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.carousel-track {
  display: flex;
  width: fit-content;
  will-change: transform;
}
.carousel-slide {
  position: relative;
  flex: 0 0 70vw;
  height: clamp(460px, 68dvh, 640px);
  padding: 1.5rem;
  transition: opacity 0.5s ease, transform 0.65s var(--ease-power4), filter 0.5s ease;
  opacity: 0.35;
  transform: scale(0.88);
  filter: grayscale(0.35) brightness(0.75);
}
.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  filter: grayscale(0) brightness(1);
}

.slide-link {
  position: absolute;
  inset: 0;
  z-index: 4;
}
.slide-spot {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: min(64%, 480px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 45%, transparent 72%);
  filter: blur(26px);
  opacity: 0.55;
  transition: opacity 0.5s ease, transform 0.6s var(--ease-power4);
  z-index: 0;
  pointer-events: none;
}
.carousel-slide.is-active .slide-spot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.18);
}

.slide-floor {
  position: absolute;
  left: 50%;
  bottom: 29%;
  transform: translateX(-50%);
  width: 72%;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.20) 0%, transparent 75%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.5s ease, transform 0.6s var(--ease-power4);
}
.carousel-slide.is-active .slide-floor {
  opacity: 1;
  transform: translateX(-50%) scale(1.12);
}

.slide-car-wrap {
  position: absolute;
  inset: 0 0 30% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}
.slide-car {
  max-width: min(90%, 760px);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.65s var(--ease-power4);
}
.carousel-slide.is-active .slide-car {
  transform: scale(1.05);
}

.slide-info {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 48ch;
  padding: 0 1rem;
}
.slide-status {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white-50);
  border: 1px solid var(--color-white-10);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.slide-status-available {
  color: var(--color-blue);
  border-color: var(--color-blue);
  background: rgba(0,212,255,0.08);
}
.slide-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.slide-desc {
  font-size: 0.8rem;
  color: var(--color-white-75);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}
.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
  transition: gap 0.25s ease;
}
.slide-cta::after {
  content: '→';
  transition: transform 0.25s ease;
}
.carousel-slide.is-active:hover .slide-cta::after {
  transform: translateX(4px);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-white-10);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.carousel-arrow:hover {
  border-color: var(--color-blue);
  background: rgba(0,212,255,0.12);
  color: var(--color-blue);
}
.carousel-arrow-prev { left: 3%; }
.carousel-arrow-next { right: 3%; }

.carousel-progress {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.carousel-progress-track {
  width: min(180px, 40%);
  height: 2px;
  background: var(--color-white-10);
  border-radius: 2px;
  overflow: hidden;
}
.carousel-progress-fill {
  height: 100%;
  width: 50%;
  background: var(--color-blue);
  box-shadow: 0 0 12px var(--color-blue);
  transition: width 0.5s var(--ease-power4);
}
.carousel-counter {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-white-75);
}
.carousel-counter-sep {
  margin: 0 0.3rem;
  color: var(--color-white-25);
}
#carousel-current {
  color: var(--color-blue);
}

@media (min-width: 900px) {
  .carousel-slide { flex: 0 0 55vw; }
}

@media (max-width: 600px) {
  .vehicles-header { margin-bottom: 1.25rem; }
  .vehicles-title { font-size: clamp(2rem, 8vw, 3rem); }
  .vehicles-body { font-size: 0.85rem; }
  .carousel-slide { flex: 0 0 82vw; height: clamp(280px, 50dvh, 420px); }
  .carousel-arrow { width: 2.25rem; height: 2.25rem; }
  .carousel-arrow-prev { left: 0.5%; }
  .carousel-arrow-next { right: 0.5%; }
  .slide-name { font-size: clamp(1.5rem, 6.5vw, 2.2rem); }
  .slide-desc { font-size: 0.72rem; }
  .slide-info { bottom: 1.25rem; }
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-black);
}

.about-hero {
  position: relative;
  min-height: 52dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: var(--top-nav-height);
}
.about-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.about-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.70) 50%, rgba(0,0,0,0.35) 100%);
}
.about-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--viewport-gutter) 3.5rem;
}
.about-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
}
.about-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  max-width: 20ch;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.about-hero-subtitle {
  font-size: 1rem;
  color: var(--color-white-75);
}

.about-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: calc(var(--action-bar-height) + 3rem);
}

.about-block {
  padding: 4rem var(--viewport-gutter);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.about-block-alt {
  background: var(--color-near-black);
}
.about-block-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.about-intro {
  text-align: center;
}
.about-intro::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-blue);
  margin: 0 auto 2rem;
  box-shadow: 0 0 12px var(--color-blue);
}
.about-quote {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.55;
  color: var(--color-white);
  max-width: 64ch;
  margin: 0 auto 1.5rem;
}
.about-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-white-75);
  max-width: 64ch;
  margin: 0 auto 1.25rem;
}
.about-text:last-child { margin-bottom: 0; }

.about-section-head {
  margin-bottom: 2.5rem;
  text-align: center;
}
.about-section-head h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.about-section-head p {
  font-size: 1rem;
  color: var(--color-blue);
  font-weight: 500;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.about-value {
  padding: 1.75rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-white-10);
  border-top: 2px solid var(--color-blue);
  border-radius: var(--panel-radius);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.about-value:hover {
  border-color: var(--color-blue);
  background: rgba(0,212,255,0.05);
  transform: translateY(-4px);
}
.about-block-alt .about-value { background: rgba(0,0,0,0.35); }
.about-value span {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: var(--color-blue);
  line-height: 1;
  margin-bottom: 0.85rem;
}
.about-value h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}
.about-value p {
  font-size: 0.88rem;
  color: var(--color-white-75);
  line-height: 1.55;
}

.about-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.about-steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-white-10);
  border-left: 2px solid var(--color-blue);
  border-radius: var(--panel-radius);
}
.about-steps li span {
  flex: 0 0 auto;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--color-blue);
  line-height: 1;
}
.about-steps li h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--color-white);
}
.about-steps li p {
  font-size: 0.88rem;
  color: var(--color-white-75);
  line-height: 1.55;
}

.about-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.about-service-card {
  padding: 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-white-10);
  border-radius: var(--panel-radius);
}
.about-block-alt .about-service-card { background: rgba(0,0,0,0.35); }
.about-service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}
.about-service-card h3 span {
  color: var(--color-blue);
}
.about-service-card p {
  font-size: 0.95rem;
  color: var(--color-white-75);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.about-service-card p:last-child { margin-bottom: 0; }
.about-infos {
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.about-infos p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-white-75);
}
.about-infos strong {
  color: var(--color-white);
  font-weight: 700;
  margin-right: 0.4rem;
}

@media (max-width: 1024px) {
  .about-values { grid-template-columns: repeat(2, 1fr); }
  .about-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-services-grid { grid-template-columns: 1fr; }
  .about-hero { min-height: 48dvh; }
}

@media (max-width: 600px) {
  .about-body { padding-bottom: calc(var(--action-bar-height) + 3.5rem); }
  .about-block { padding: 3rem var(--viewport-gutter); }
  .about-values { grid-template-columns: 1fr; }
  .about-steps { grid-template-columns: 1fr; }
  .about-hero-content { padding-bottom: 2.5rem; }
  .about-service-card { padding: 1.5rem; }
  .about-hero-title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
}

/* =====================================================
   MENTIONS LÉGALES PAGE
   ===================================================== */
.legal-page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-black);
}

.legal-hero {
  position: relative;
  padding: calc(var(--viewport-gutter) + var(--top-nav-height) + 2rem) var(--viewport-gutter) 1rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(0,212,255,0.06) 0%, transparent 55%),
    linear-gradient(180deg, rgba(8,8,8,1) 0%, rgba(3,3,3,1) 100%);
}
.legal-hero-content {
  max-width: 640px;
  margin: 0 auto;
}
.legal-hero-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
}
.legal-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.legal-body {
  flex: 1;
  padding: 2rem var(--viewport-gutter) calc(var(--action-bar-height) + 4rem);
}
.legal-body-inner {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-white-75);
  font-size: 0.95rem;
  line-height: 1.7;
}
.legal-breadcrumb {
  color: var(--color-blue);
  transition: color 0.25s ease;
}
.legal-breadcrumb:hover { color: var(--color-white); }
.legal-body-inner h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 2.5rem 0 1rem;
}
.legal-body-inner h2:first-of-type { margin-top: 1rem; }
.legal-body-inner h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 1.5rem 0 0.5rem;
}
.legal-body-inner p {
  margin-bottom: 0.85rem;
}
.legal-body-inner ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.legal-body-inner li {
  margin-bottom: 0.4rem;
}
.legal-body-inner a {
  color: var(--color-blue);
  transition: color 0.25s ease;
}
.legal-body-inner a:hover { color: var(--color-white); }

@media (max-width: 600px) {
  .legal-hero { padding-top: calc(var(--viewport-gutter) + var(--top-nav-height) + 1rem); }
  .legal-body { padding-top: 1.5rem; padding-bottom: calc(var(--action-bar-height) + 3.5rem); }
  .legal-hero-title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-black);
}

.contact-hero {
  position: relative;
  padding: calc(var(--viewport-gutter) + var(--top-nav-height) + 2rem) var(--viewport-gutter) 1rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(0,212,255,0.06) 0%, transparent 55%),
    linear-gradient(180deg, rgba(8,8,8,1) 0%, rgba(3,3,3,1) 100%);
}
.contact-hero-content {
  max-width: 640px;
  margin: 0 auto;
}
.contact-hero-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
}
.contact-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.contact-hero-body {
  font-size: 1.05rem;
  color: var(--color-white-75);
  line-height: 1.6;
}

.contact-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--viewport-gutter) calc(var(--action-bar-height) + 4rem);
}
.contact-body-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr;
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.contact-card {
  background: var(--color-near-black);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--panel-radius);
  padding: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.form-group label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white-50);
}
.form-group input,
.form-group textarea {
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: calc(var(--panel-radius) * 0.6);
  color: var(--color-white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-white-30); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  background: rgba(0,212,255,0.07);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.10);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-disclaimer {
  font-size: 0.75rem;
  color: var(--color-white-50);
  line-height: 1.5;
  margin-top: 1rem;
}

.form-success {
  text-align: center;
  padding: 4rem 1rem;
}
.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-black);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.form-success h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.form-success p {
  color: var(--color-white-75);
  margin: 0;
}

.contact-info-row {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-info-row:first-child { padding-top: 0; }
.contact-info-row:last-child { border-bottom: none; }
.contact-info-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.4rem;
}
.contact-info-row p {
  font-size: 0.95rem;
  color: var(--color-white-75);
  line-height: 1.6;
}
.contact-info-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.25s ease;
}
.contact-info-row a:hover { color: var(--color-blue); }
.contact-info-note {
  font-size: 0.8rem;
  color: var(--color-white-50);
  margin-top: 0.6rem;
}

.contact-map {
  margin-top: 0.75rem;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(0,212,255,0.10) 0%, transparent 50%),
    linear-gradient(135deg, rgba(20,20,20,1) 0%, rgba(10,10,10,1) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--panel-radius);
  color: var(--color-white-50);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .contact-body-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .contact-body { padding-bottom: calc(var(--action-bar-height) + 3.5rem); }
  .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 1.5rem; }
  .contact-hero { padding-top: calc(var(--viewport-gutter) + var(--top-nav-height) + 1rem); }
  .contact-hero-title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .form-group input,
  .form-group textarea { padding: 0.85rem 1rem; font-size: 0.95rem; }
}

/* =====================================================
   SWUP TRANSITIONS — 363sudbury-style overlay
   ===================================================== */

/* Conteneur Swup : la nouvelle page, au-dessus */
#swup {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
}

/* Underlay : ancienne page gardée visible en arrière-plan, floutée et réduite */
.mm1-underlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}
.mm1-underlay::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 100000;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}
.mm1-underlay > * {
  width: 100%;
  min-height: 100%;
}
.mm1-underlay * {
  pointer-events: none !important;
}
.mm1-underlay video,
.mm1-underlay iframe {
  display: none;
}

/* Nouveau contenu pendant la transition curtain vertical :
   on le fixe en plein écran pour que translateY(100%) parte exactement
   du bord de l'écran, quelle que soit la hauteur réelle de la page. */
.mm1-new-content {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100dvh !important;
  z-index: 2 !important;
  overflow: hidden !important;
}

/* On neutralise les règles Swup par défaut sur .transition-fade :
   l'animation est pilotée par GSAP. */
html.is-changing .transition-fade,
html.is-rendering .transition-fade {
  transition: none !important;
  animation: none !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Pendant la transition, on empêche le scroll de l'ancienne page dans l'underlay */
html.is-changing,
html.is-changing body {
  overflow: hidden;
}

/* Réduit le mouvement pour les utilisateurs qui le demandent */
@media (prefers-reduced-motion: reduce) {
  .mm1-underlay {
    display: none;
  }
  html.is-changing,
  html.is-changing body {
    overflow: auto;
  }
}

/* =====================================================
   REVEAL ANIMATIONS
   ===================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-power4);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-blue { color: var(--color-blue); }
.text-white-75 { color: var(--color-white-75); }
.text-display { font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; }

/* ---------------------------------------------------------------
   Véhicules issus du flux CK Seven : photos réelles (avec décor),
   là où le carrousel d'origine attendait des cutouts détourés.
   --------------------------------------------------------------- */
.slide-car-wrap.is-photo {
  /* Cadre photo : marges égales, la zone texte est gérée par le dégradé. */
  inset: 1.25rem 1.25rem 1.25rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
}
.slide-car.is-photo {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  border-radius: 14px;
}
/* La photo occupant tout le cadre, on assombrit le bas pour garder
   le texte lisible et on neutralise les halos pensés pour un cutout. */
.carousel-slide[data-photo-fallback] .slide-car-wrap.is-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(to top, rgba(4,8,14,0.92) 0%, rgba(4,8,14,0.55) 45%, transparent 100%);
  pointer-events: none;
}
.carousel-slide[data-photo-fallback] .slide-spot,
.carousel-slide[data-photo-fallback] .slide-floor {
  opacity: 0;
}
.carousel-slide[data-photo-fallback].is-active .slide-car {
  transform: none;
}
/* Fiche véhicule : même logique de repli pour la tuile du dashboard. */
.tile-bg.is-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Listes d'équipements : le flux Ubiflow livre un bloc de texte plat,
   redécoupé en items par le générateur. */
.vehicle-equipment-title {
  margin: 2.25rem 0 0.85rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-strong, #f2f5f8);
}
.vehicle-equipment-title:first-child { margin-top: 0; }
.vehicle-equipment-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.4rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vehicle-equipment-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.86;
}
.vehicle-equipment-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.75);
}
@media (max-width: 640px) {
  .vehicle-equipment-list { grid-template-columns: 1fr; }
}

/* Le texte doit rester au-dessus du cadre photo et de son dégradé.
   Le décalage suit la hauteur du slide : sur mobile (280-420px) une valeur
   fixe remonterait le bloc au milieu de la photo. */
.carousel-slide[data-photo-fallback] .slide-info {
  z-index: 3;
  bottom: 1.75rem;
  padding: 0 1.75rem;
}
@media (max-width: 600px) {
  /* Le cadre photo est inset de 1.25rem : le texte doit rester dedans,
     sinon le CTA déborde sous le bord arrondi. */
  .carousel-slide[data-photo-fallback] .slide-info {
    bottom: 2rem;
    padding: 0 1.25rem;
  }
  /* Badge et titre se chevauchaient faute de place sous la photo. */
  .carousel-slide[data-photo-fallback] .slide-status {
    font-size: 0.55rem;
    padding: 0.22rem 0.5rem;
    margin-bottom: 0.35rem;
  }
  .carousel-slide[data-photo-fallback] .slide-name {
    line-height: 1.05;
    margin-bottom: 0.15rem;
  }
  .carousel-slide[data-photo-fallback] .slide-desc {
    line-height: 1.35;
  }
  /* Dégradé plus haut : il doit couvrir badge + titre + prix + CTA. */
  .carousel-slide[data-photo-fallback] .slide-car-wrap.is-photo::after {
    height: 78%;
  }
}
