/* ==========================================================================
   BS Import Auto — feuille de style
   Palette : fond noir, dégradé rouge → orange → ambre (identité d'origine)
   ========================================================================== */

:root {
  --bg: #08080a;
  --bg-2: #0e0e11;
  --card: #14141a;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --muted: rgba(255, 255, 255, 0.68);
  --red: #e11d2a;
  --orange: #e8362b;
  --amber: #ff8a5c;
  --grad: linear-gradient(100deg, #c8102e 0%, #e11d2a 55%, #ff4a2e 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
  --gutter: 16px;
  --max: 1200px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.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;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--orange); color: #000; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: var(--gutter); }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }

h1, h2, h3, .display {
  font-family: Sora, Inter, system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--grad); border-radius: 2px;
}

.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }

/* ---------- Boutons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.4s var(--ease);
}
.btn-primary {
  background: var(--grad); color: #0b0b0d;
  box-shadow: 0 10px 40px -10px rgba(255, 106, 0, 0.7);
}
.btn-primary:hover { box-shadow: 0 16px 60px -8px rgba(255, 106, 0, 0.9); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06); color: var(--text);
  border: 1px solid var(--line); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 76px;
}
.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo__main {
  font-family: Sora, sans-serif; font-weight: 800; font-size: 1.35rem; letter-spacing: 0.02em;
}
.logo__main em { font-style: normal; color: var(--orange); }
.logo__sub { font-size: 0.62rem; letter-spacing: 0.42em; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  position: relative; text-decoration: none; font-size: 0.9rem; color: var(--muted);
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header__cta { display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute; left: 14px; right: 14px; height: 2px; background: var(--text);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 23px; }
.is-menu-open .menu-btn span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.is-menu-open .menu-btn span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 76px 0 0 0; z-index: 99; padding: 32px var(--gutter);
  background: rgba(8, 8, 10, 0.97); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; pointer-events: none; transform: translateY(-12px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.is-menu-open .mobile-menu { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a {
  font-family: Sora, sans-serif; font-size: 1.9rem; font-weight: 700; text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  overflow: hidden; isolation: isolate;
}
.hero__media {
  position: absolute; inset: -8% 0; z-index: -2; will-change: transform;
}
.hero__media img, video {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.12);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(8, 8, 10, 0.55) 45%, rgba(8, 8, 10, 0.2) 100%),
    linear-gradient(to right, rgba(8, 8, 10, 0.85), rgba(8, 8, 10, 0) 70%);
}
.hero__content { padding-bottom: clamp(60px, 10vh, 110px); padding-top: 140px; }
.hero__kicker {
  font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--amber);
  margin: 0 0 22px;
}
.hero__title {
  font-size: clamp(2.6rem, 9vw, 7.4rem); font-weight: 800; max-width: 14ch;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line > span { display: inline-block; transform: translate3d(0, 110%, 0); }
.hero__text {
  margin: 28px 0 36px; max-width: 52ch; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 32px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl;
}
.hero__scroll i {
  display: block; width: 1px; height: 64px; background: var(--line); position: relative; overflow: hidden;
}
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--grad); animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { to { top: 100%; } }

/* ---------- Bandeau marques ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2);
  padding: 22px 0; position: relative;
}
.marquee__track {
  display: flex; gap: 56px; width: max-content; will-change: transform;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-family: Sora, sans-serif; font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.82); white-space: nowrap;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 56px;
}
.marquee__track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Chapitres (section épinglée) ---------- */
.chapters { position: relative; height: 300vh; }
.chapters__sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; align-items: center;
}
.chapter {
  position: absolute; inset: 0; display: grid; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.chapter.is-current { opacity: 1; visibility: visible; }
.chapter .chapter__num, .chapter .chapter__title, .chapter .chapter__text {
  transform: translate3d(0, 40px, 0); opacity: 0;
  transition: transform 1.1s var(--ease), opacity 1.1s var(--ease);
}
.chapter.is-current .chapter__num, .chapter.is-current .chapter__title, .chapter.is-current .chapter__text {
  transform: none; opacity: 1;
}
.chapter.is-current .chapter__title { transition-delay: 0.1s; }
.chapter.is-current .chapter__text { transition-delay: 0.2s; }
.chapter__img {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
}
.chapter__img img, video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.chapter::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 8, 10, 0.92) 10%, rgba(8, 8, 10, 0.35) 70%, rgba(8, 8, 10, 0.55));
}
.chapter__num {
  font-family: Sora, sans-serif; font-weight: 800; font-size: clamp(5rem, 18vw, 14rem);
  line-height: 0.85; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
  margin: 0 0 12px;
}
.chapter__title { font-size: clamp(2.4rem, 7vw, 5.6rem); font-weight: 800; }
.chapter__text { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 32ch; margin-top: 22px; }
.chapters__dots {
  position: absolute; left: var(--gutter); bottom: 36px; z-index: 3; display: flex; gap: 10px;
}
.chapters__dots span {
  width: 42px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); overflow: hidden;
}
.chapters__dots span.is-on { background: var(--grad); }
.speedo {
  position: absolute; right: var(--gutter); bottom: 28px; z-index: 3; text-align: right;
}
.speedo__value {
  font-family: Sora, sans-serif; font-weight: 800; font-size: clamp(3rem, 8vw, 6rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.speedo__unit { font-size: 0.75rem; letter-spacing: 0.3em; color: var(--muted); }

/* ---------- Titres de section ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); margin: 20px 0 0; max-width: 60ch; }

/* Mot-à-mot : apparition au défilement */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; }
.split-words .w > span { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform 1s var(--ease); }
.split-words.is-in .w > span { transform: none; }
.split-words.is-in .w:nth-child(2) > span { transition-delay: 0.06s; }
.split-words.is-in .w:nth-child(3) > span { transition-delay: 0.12s; }
.split-words.is-in .w:nth-child(4) > span { transition-delay: 0.18s; }
.split-words.is-in .w:nth-child(5) > span { transition-delay: 0.24s; }
.split-words.is-in .w:nth-child(n+6) > span { transition-delay: 0.3s; }

/* ---------- Reveal générique ---------- */
.reveal { opacity: 0; transform: translate3d(0, 46px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card {
  --rx: 0deg; --ry: 0deg;
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s var(--ease), border-color 0.5s var(--ease), box-shadow 0.6s var(--ease);
  transform-style: preserve-3d;
}
.card:hover { border-color: rgba(255, 106, 0, 0.45); box-shadow: 0 30px 80px -30px rgba(255, 106, 0, 0.35); }
.card__media { position: relative; height: 230px; overflow: hidden; }
.card__media img, video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12); transition: transform 1.6s var(--ease);
}
.card:hover .card__media img, video { transform: scale(1.02); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--card) 0%, rgba(20, 20, 26, 0) 70%);
}
.card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.card__tag {
  align-self: flex-start; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 179, 71, 0.4); color: var(--amber);
}
.card__tag--hot { background: var(--grad); color: #0b0b0d; border-color: transparent; font-weight: 700; }
.card h3 { font-size: 1.45rem; font-weight: 700; }
.card__price { font-family: Sora, sans-serif; font-size: 2rem; font-weight: 800; }
.card__price small { font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.card p { margin: 0; color: var(--muted); }
.card ul { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; gap: 10px; }
.card li { position: relative; padding-left: 28px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.card li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 2px; background: var(--grad);
}
.card .btn { margin-top: auto; }
.card--wide { grid-column: span 12; display: grid; grid-template-columns: 1fr 1fr; }
.card--wide .card__media { height: 100%; min-height: 360px; }
.card--wide .card__media::after { background: linear-gradient(to right, transparent 60%, var(--card)); }
.card--third { grid-column: span 6; }
.card--half { grid-column: span 6; }

/* ---------- Process ---------- */
.process { position: relative; }
.process__line {
  position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: var(--line);
}
.process__line i {
  position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left;
}
.process__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { padding-top: 0; }
.step__dot {
  width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--line); font-family: Sora, sans-serif; font-weight: 800;
  font-size: 1.15rem; transition: border-color 0.6s var(--ease), background 0.6s var(--ease);
}
.step.is-in .step__dot { border-color: var(--orange); background: rgba(255, 106, 0, 0.12); }
.step h3 { font-size: 1.35rem; margin: 26px 0 10px; font-weight: 700; }
.step p { margin: 0; color: var(--muted); }

.quote-band {
  position: relative; margin-top: clamp(80px, 10vw, 140px); overflow: hidden; border-radius: 28px;
  padding: clamp(48px, 8vw, 110px) clamp(24px, 6vw, 90px); border: 1px solid var(--line);
  background: var(--bg-2);
}
.quote-band::before {
  content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  right: -20vw; top: -30vw; border-radius: 50%; filter: blur(90px); opacity: 0.35;
  background: radial-gradient(circle, var(--red), transparent 60%);
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate3d(-6%, 8%, 0) scale(1.12); } }
.quote-band h2 { font-size: clamp(2rem, 5.6vw, 4.4rem); font-weight: 800; position: relative; max-width: 18ch; }
.quote-band p { position: relative; color: var(--muted); max-width: 52ch; margin: 22px 0 0; font-size: 1.1rem; }

/* ---------- Garage ---------- */
.garage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.brand {
  position: relative; min-height: 380px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; align-items: flex-end; isolation: isolate;
}
.brand img, video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: scale(1.15); transition: transform 1.6s var(--ease), filter 1s var(--ease);
  filter: saturate(0.8) brightness(0.8);
}
.brand::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8, 8, 10, 0.96) 15%, rgba(8, 8, 10, 0.1) 70%);
}
.brand:hover img, video { transform: scale(1.04); filter: saturate(1) brightness(0.95); }
.brand__body { padding: 26px; }
.brand__kicker { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); }
.brand h3 { font-size: 2rem; font-weight: 800; margin: 8px 0 6px; }
.brand p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Formations ---------- */
.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pack {
  position: relative; border-radius: 26px; border: 1px solid var(--line); background: var(--card);
  overflow: hidden; display: flex; flex-direction: column; isolation: isolate;
  transition: transform 0.7s var(--ease), border-color 0.5s var(--ease);
}
.pack:hover { transform: translate3d(0, -6px, 0); border-color: rgba(255, 106, 0, 0.45); }
.pack__media { height: 220px; position: relative; overflow: hidden; }
.pack__media img, video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.6s var(--ease); }
.pack:hover .pack__media img, video { transform: scale(1); }
.pack__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--card), transparent 75%); }
.pack__body { padding: 0 32px 34px; display: flex; flex-direction: column; gap: 14px; flex: 1; margin-top: -26px; position: relative; }
.pack__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pack__label { font-size: 0.7rem; letter-spacing: 0.24em; color: var(--amber); text-transform: uppercase; }
.pack__price { font-family: Sora, sans-serif; font-weight: 800; font-size: 2.2rem; }
.pack h3 { font-size: 1.6rem; font-weight: 700; }
.pack p { margin: 0; color: var(--muted); }
.pack ul { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 10px; }
.pack li { position: relative; padding-left: 28px; color: rgba(255, 255, 255, 0.86); }
.pack li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 2px; background: var(--grad);
}
.pack .btn { margin-top: auto; align-self: flex-start; }

.help-link { color: var(--amber); font-weight: 600; text-decoration: none; }
.help-line { margin-top: 36px; text-align: center; color: var(--muted); }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.about__media { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; }
.about__media img, video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.about__badge {
  position: absolute; left: 18px; bottom: 18px; right: 18px; padding: 18px 20px; border-radius: 18px;
  background: rgba(8, 8, 10, 0.7); backdrop-filter: blur(12px); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.about__badge strong { font-family: Sora, sans-serif; font-size: 2.2rem; font-weight: 800; }
.about__badge span { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.about h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
.about p { color: var(--muted); font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 34px; }
.stat {
  padding: 22px 22px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
}
.stat__num { font-family: Sora, sans-serif; font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3rem); line-height: 1; }
.stat__label { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }

/* ---------- Témoignages ---------- */
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.review {
  padding: 30px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 22px; transition: transform 0.7s var(--ease), border-color 0.5s var(--ease);
}
.review:hover { transform: translate3d(0, -6px, 0); border-color: rgba(255, 179, 71, 0.4); }
.review__stars { color: var(--amber); letter-spacing: 3px; font-size: 0.9rem; }
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, 0.9); flex: 1; }
.review footer { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #0b0b0d; font-family: Sora, sans-serif; font-weight: 800;
}
.review strong { display: block; font-size: 0.95rem; }
.review span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); }
.contact h2 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; }
.contact__lead { color: var(--muted); margin: 22px 0 34px; font-size: 1.05rem; max-width: 42ch; }
.contact__links { display: grid; gap: 12px; }
.contact__link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none;
  padding: 18px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease), background 0.4s var(--ease);
}
.contact__link:hover { border-color: rgba(255, 106, 0, 0.5); transform: translate3d(6px, 0, 0); background: #1a1a21; }
.contact__link small { display: block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.contact__link strong { font-weight: 600; word-break: break-word; }
.contact__link i { font-style: normal; color: var(--muted); font-size: 1.3rem; }

.form {
  padding: clamp(24px, 4vw, 40px); border-radius: 26px; background: var(--card); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; }
.field input, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35); transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: rgba(0, 0, 0, 0.5); }
.form__note { grid-column: 1 / -1; margin: 0; font-size: 0.85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 36px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer p, .footer li, .footer a { color: var(--muted); font-size: 0.95rem; }
.footer h3 { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color 0.3s var(--ease); }
.footer a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.socials a:hover { background: var(--grad); border-color: transparent; color: #0b0b0d; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom {
  margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 0.85rem;
}

/* ---------- Pages légales ---------- */
.legal { padding: 140px 0 90px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 10px; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 12px; font-weight: 700; }
.legal p, .legal li { color: var(--muted); }
.legal .meta { color: var(--amber); font-size: 0.9rem; }
.legal .back { display: inline-block; margin-bottom: 28px; color: var(--amber); text-decoration: none; }
.legal .placeholder { color: var(--amber); }

/* ---------- Bouton retour haut ---------- */
.to-top {
  position: fixed; right: var(--gutter); bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: 50%;
  background: var(--grad); color: #0b0b0d; border: 0; cursor: pointer; font-size: 1.2rem; font-weight: 800;
  opacity: 0; transform: translate3d(0, 20px, 0); pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .garage { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process__line { display: none; }
}

@media (max-width: 880px) {
  .services { grid-template-columns: 1fr; }
  .card--third, .card--half, .card--wide { grid-column: auto; }
  .card--wide { display: block; }
  .card--wide .card__media { height: 230px; min-height: 0; }
  .card--wide .card__media::after { background: linear-gradient(to top, var(--card) 0%, rgba(20, 20, 26, 0) 70%); }
  .packs, .about, .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --gutter: 16px; }
  .header__cta .btn { display: none; }
  .hero__content { padding-top: 120px; }
  .hero__scroll { display: none; }
  .garage, .reviews { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .card__body, .pack__body { padding-inline: 22px; }
  .pack__body { padding-inline: 22px; }
  .chapters__dots { display: none; }
  .speedo { bottom: 20px; }
  .to-top { bottom: 112px; }
  .card__media { height: 200px; }
  .footer__grid { grid-template-columns: 1fr; }
  .marquee__track { gap: 36px; }
  .marquee__track span { gap: 36px; }
  .chapter::before { background: linear-gradient(to top, rgba(8, 8, 10, 0.95) 30%, rgba(8, 8, 10, 0.4)); }
}

/* ---------- Mouvement réduit ---------- */
/* mode doux (bouton du pied de page) */
html.motion-reduce { scroll-behavior: auto; }
html.motion-reduce *, html.motion-reduce *::before, html.motion-reduce *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
html.motion-reduce .hero__media img, html.motion-reduce video { transform: none; }
html.motion-reduce .reveal, html.motion-reduce .split-words .w > span, html.motion-reduce .hero__title .line > span { opacity: 1 !important; transform: none !important; }
html.motion-reduce .card, html.motion-reduce .card__media img, html.motion-reduce video, html.motion-reduce .brand img, html.motion-reduce video, html.motion-reduce .pack, html.motion-reduce .review, html.motion-reduce .btn { transform: none !important; }



/* ---------- Showroom : vidéo plein écran qui change de marque au scroll ---------- */
.showroom { position: relative; height: 420vh; background: var(--bg); }
.showroom__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.showroom__stage { position: absolute; inset: 0; z-index: -2; background: #000; }
.sr-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.1s var(--ease), transform 2.4s var(--ease);
}
.sr-video.is-current { opacity: 1; transform: scale(1); }
.showroom__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(8, 8, 10, 0.92) 8%, rgba(8, 8, 10, 0.35) 65%, rgba(8, 8, 10, 0.6)),
    linear-gradient(to top, var(--bg) 0%, rgba(8, 8, 10, 0) 35%);
}
.showroom__inner { position: relative; padding-bottom: 40px; }
.showroom__texts { position: relative; min-height: 240px; margin-top: 8px; }
.sr-text {
  position: absolute; left: 0; top: 0; max-width: 520px;
  opacity: 0; transform: translate3d(0, 30px, 0);
  transition: opacity 0.8s var(--ease), transform 1s var(--ease), visibility 0.8s;
  visibility: hidden;
}
.sr-text.is-current { opacity: 1; transform: none; visibility: visible; }
.sr-text__num { font-size: 0.8rem; letter-spacing: 0.3em; color: var(--muted); }
.sr-text h2 {
  font-size: clamp(4rem, 13vw, 11rem); font-weight: 800; line-height: 0.9; margin: 10px 0 18px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sr-text p { margin: 0; font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255, 255, 255, 0.85); max-width: 30ch; }
.showroom__lead { margin: 40px 0 0; color: var(--muted); max-width: 52ch; }
.showroom__bar {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 24px; height: 2px;
  background: rgba(255, 255, 255, 0.15); border-radius: 2px; overflow: hidden;
}
.showroom__bar span { display: block; height: 100%; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
@media (max-width: 620px) {
  .showroom { height: 360vh; }
  .showroom__texts { min-height: 260px; }
  .showroom__lead { font-size: 0.95rem; }
  .showroom__veil { background: linear-gradient(to top, var(--bg) 25%, rgba(8, 8, 10, 0.55)); }
}
/* mode doux (bouton du pied de page) */
html.motion-reduce .showroom { height: auto; }
html.motion-reduce .showroom__sticky { position: relative; height: auto; display: block; padding: 120px 0; }
html.motion-reduce .sr-video:not(.is-current) { display: none; }
html.motion-reduce .sr-text { position: relative; display: none; }
html.motion-reduce .sr-text.is-current { display: block; }
html.motion-reduce .showroom__bar { display: none; }
html.motion-reduce .showroom__stage { position: absolute; }




/* ---------- Une seule vidéo lue au fil du scroll ---------- */
.chapters__video { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #000; }
.chapters__video video { width: 100%; height: 100%; object-fit: cover; }
.chapters__video::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(8, 8, 10, 0.88) 0%, rgba(8, 8, 10, 0.35) 70%, rgba(8, 8, 10, 0.55) 100%);
}





/* ---------- Texte en 3D, lettre par lettre ---------- */
.split-letters .ch {
  display: inline-block; transform-origin: 50% 100%;
  transform: perspective(800px) rotateX(-100deg) translate3d(0, 30%, 0);
  opacity: 0;
  transition: transform 1.1s var(--ease) calc(var(--i) * 32ms), opacity 0.7s var(--ease) calc(var(--i) * 32ms);
}
.chapter.is-current .split-letters .ch,
.sr-text.is-current .split-letters .ch { transform: none; opacity: 1; }
.chapter__title { white-space: normal; }
.showroom__texts { perspective: 1000px; }
.sr-text h2 { color: var(--text); background: none; -webkit-text-fill-color: currentColor; }
.sr-text h2 .ch {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.sr-text.is-current { transform: rotateX(0deg); }
.sr-text:not(.is-current) { transform: perspective(1000px) rotateX(10deg) translate3d(0, 30px, 0); }

/* ---------- Ambiance cinéma : vignette ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 240; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---------- Noms de marques : capitales blanches, transitions sans chevauchement ---------- */
.sr-text h2 {
  font-size: clamp(2rem, 8.2vw, 7rem); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; line-height: 0.95; margin: 14px 0 22px;
  color: #f5f5f7; -webkit-text-fill-color: currentColor; background: none;
}
.sr-text h2 .ch { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
.split-letters .word { display: inline-block; white-space: nowrap; }
.sr-text h2::after {
  content: ""; display: block; width: 72px; height: 3px; margin-top: 20px; border-radius: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease) 0.6s;
}
.sr-text.is-current h2::after { transform: scaleX(1); }

/* La marque qui part s'efface vite ; la suivante n'entre qu'après. */
.sr-text { transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s; }
.sr-text.is-current { transition: opacity 0.6s var(--ease) 0.3s, transform 0.8s var(--ease) 0.3s, visibility 0s; }
.chapter { transition: opacity 0.35s var(--ease), visibility 0.35s; }
.chapter.is-current { transition: opacity 0.7s var(--ease) 0.25s, visibility 0s; }
.sr-text:not(.is-current) .split-letters .ch,
.chapter:not(.is-current) .split-letters .ch { transition-duration: 0.3s; transition-delay: 0s; }
.sr-text.is-current .split-letters .ch,
.chapter.is-current .split-letters .ch { transition-delay: calc(0.3s + var(--i) * 28ms); }
.sr-text { max-width: 100%; }
