/* ═══════════════════════════════════════════════
   Skip Link — Accessibilité clavier
   ═══════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--ffd-red, #e03e32);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0.5rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

@font-face {
  font-family: "SG85-CHI SON 1";
  src: url("../fonts/SG85-CHISON1.woff2") format("woff2"),
       url("../fonts/SG85-CHISON1.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  size-adjust: 105%;
}

@font-face {
  font-family: "Edo SZ";
  src: url("../fonts/edosz.woff2") format("woff2"),
       url("../fonts/edosz.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  size-adjust: 95%;
}

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

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

/* WCAG 2.2 AA – Design tokens contraste */
:root {
  color-scheme: dark;
  --color-bg: #000000;
  --color-surface: #0a0a0a;
  --color-surface-alt: #1a1a1a;
  /* Accent rouge – texte normal sur fond noir: 4.9:1 */
  --accent-text: #e03e32;
  /* Accent rouge – gros texte (≥18px / 14px bold) sur fond noir: 3.6:1 */
  --accent-text-lg: #c02a22;
  /* Accent décoratif (bordures, ombres) – pas de contrainte contraste texte */
  --accent-deco: #981914;
  /* Texte secondaire sur fond noir: 6.2:1 */
  --muted: rgba(255, 255, 255, 0.55);
  /* Texte tertiaire sur fond noir: 5.3:1 */
  --dim: rgba(255, 255, 255, 0.5);

  /* ── Contrast-safe text palette (WCAG 2.1 AA) ──────────
     All ratios calculated against --color-bg (#000000).
     ────────────────────────────────────────────────────── */
  /* Titres, texte principal – ~19:1 */
  --ffd-text-primary: #f5f5f5;
  /* Corps de texte – ~14:1 */
  --ffd-text-body: rgba(255, 255, 255, 0.85);
  /* Texte secondaire – ~10:1 */
  --ffd-text-secondary: rgba(255, 255, 255, 0.7);
  /* Texte discret (petits labels, footer) – ≥5.7:1 */
  --ffd-text-muted: rgba(255, 255, 255, 0.52);
  /* Accent rouge décoratif large text – #b52e2e sur #000 ≈ 3.3:1 */
  --ffd-accent-number: #b52e2e;

  /* ── Échelle typographique ──────────────────────────────
     Échelle limitée à 10 paliers. Toutes les font-size du
     projet DOIVENT utiliser ces variables.
     ────────────────────────────────────────────────────── */
  --fs-2xs: 0.65rem;   /* 10.4px – badges, unités, micro-labels           */
  --fs-xs: 0.75rem;    /* 12px   – labels secondaires, sliders, petits UI */
  --fs-sm: 0.875rem;   /* 14px   – sous-nav, tags, notes, métadonnées     */
  --fs-base: 1rem;     /* 16px   – corps de texte, nav, boutons           */
  --fs-md: 1.125rem;   /* 18px   – texte accentué, stats, descriptions    */
  --fs-lg: 1.375rem;   /* 22px   – sous-titres de section, h4             */
  --fs-xl: 1.625rem;   /* 26px   – titres secondaires, logo, noms         */
  --fs-2xl: 1.875rem;  /* 30px   – titres de section, h3                  */
  --fs-3xl: 2.5rem;    /* 40px   – titres principaux, h2, dates           */
  --fs-4xl: 4rem;      /* 64px   – section titles, h1 responsive          */
  --fs-5xl: 5rem;      /* 80px   – bento hero title                       */
  --fs-hero: 6rem;     /* 96px   – hero h1 plein écran                    */
}

html {
  /* Baseline: scrollbar-gutter newly available (2024). Fallback: overflow-y: scroll */
  scrollbar-gutter: stable;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-padding-top: 150px;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

h1 {
  font-family:
    "SG85-CHI SON 1", "Impact", "Arial Black", "Helvetica Neue", sans-serif;
}

h2 {
  font-family:
    "Edo SZ", "Trebuchet MS", "Gill Sans", "Arial Narrow", sans-serif;
}

/* HEADER PRINCIPAL */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 2px solid #981914;
  box-shadow: 0 4px 30px rgba(152, 25, 20, 0.3);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo Centre */
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo .logo-large {
  display: block !important;
}

.logo .logo-small {
  display: none !important;
}

/* Responsive : afficher le petit logo sur tablette et mobile */
@media (max-width: 1199px) {
  .logo .logo-large {
    display: none !important;
  }

  .logo .logo-small {
    display: block !important;
  }

  .logo img {
    height: 40px;
  }
}

.logo-text {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(152, 25, 20, 0.8);
  display: block;
}

/* Navigation Desktop */
.nav-left,
.nav-right {
  display: none;
  gap: 30px;
  align-items: center;
}

.nav-left a,
.nav-right a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: var(--fs-base);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-left a:hover,
.nav-right a:hover {
  color: var(--accent-text);
}

.nav-left a.active,
.nav-right a.active {
  color: var(--accent-text);
}

.nav-left a::after,
.nav-right a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #981914;
  transition: width 0.3s ease;
}

.nav-left a:hover::after,
.nav-right a:hover::after,
.nav-left a.active::after,
.nav-right a.active::after {
  width: 100%;
}

.btn-kickstarter {
  background: linear-gradient(135deg, #981914, #ff0000);
  padding: 10px 20px;
  border-radius: 25px;
  color: white !important;
  box-shadow: 0 4px 15px rgba(152, 25, 20, 0.4);
}

.btn-kickstarter:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(152, 25, 20, 0.6);
  color: white !important;
}

.btn-kickstarter::after {
  display: none;
}

/* Sous-menu */
.sub-menu {
  background: rgba(26, 26, 26, 0.95);
  border-top: 1px solid rgba(152, 25, 20, 0.3);
  padding: 15px 0;
}

.sub-menu-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.sub-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease, background 0.3s ease;
  padding: 5px 15px;
  border-radius: 20px;
}

.sub-link:hover {
  color: var(--accent-text);
  background: rgba(152, 25, 20, 0.1);
}

/* Menu Burger Mobile */
.burger-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
  background: #981914;
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  background: #981914;
}

/* Menu Mobile Overlay */
.mobile-menu {
  position: fixed;
  top: 95px;
  left: -100%;
  width: 80%;
  max-width: 350px;
  height: calc(100vh - 95px);
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.98),
    rgba(26, 26, 26, 0.98)
  );
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 999;
  transition: left 0.4s ease;
  border-right: 2px solid #981914;
  box-shadow: 5px 0 30px rgba(152, 25, 20, 0.5);
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-content {
  padding: 30px 30px 30px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 50px;
}

.mobile-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: var(--fs-md);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 15px 20px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--accent-text);
  border-left-color: var(--accent-text);
  background: rgba(152, 25, 20, 0.1);
  transform: translateX(5px);
}

.btn-kickstarter-mobile {
  background: linear-gradient(135deg, #981914, #ff0000) !important;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(152, 25, 20, 0.4);
  border-left: none !important;
}

.mobile-submenu {
  border-top: 1px solid rgba(152, 25, 20, 0.3);
  padding-top: 30px;
}

.mobile-submenu h3 {
  color: var(--accent-text);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  padding-left: 20px;
}

.mobile-submenu a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--fs-base);
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.mobile-submenu a:hover {
  color: var(--accent-text);
  background: rgba(152, 25, 20, 0.1);
  transform: translateX(5px);
}

/* Ajuster le body pour le header fixe */
body {
  padding-top: 140px; /* Hauteur du header + sous-menu */
}

/* Desktop Large */
@media (min-width: 1200px) {
  .burger-menu {
    display: none;
  }

  .nav-left,
  .nav-right {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }

  body {
    padding-top: 140px;
  }
}

/* Tablette (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  body {
    padding-top: 120px;
  }

  .logo-text {
    font-size: var(--fs-lg);
  }

  .header-container {
    padding: 16px 20px;
  }

  .logo img {
    height: 40px;
  }

  /* Afficher le burger menu sur tablette */
  .burger-menu {
    display: flex;
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  /* Masquer le sous-menu desktop : remplacé par mobile-submenu dans le menu burger */
  .sub-menu {
    display: none;
  }

  .mobile-menu {
    top: 74px;
    height: calc(100vh - 74px);
  }
}

/* Mobile */
@media (max-width: 767px) {
  body {
    padding-top: 110px;
  }

  .logo-text {
    font-size: var(--fs-md);
  }

  .header-container {
    padding: 12px 16px;
  }

  /* Masquer le sous-menu desktop : remplacé par mobile-submenu dans le menu burger */
  .sub-menu {
    display: none;
  }

  .mobile-menu {
    top: 61px;
    height: calc(100vh - 61px);
  }

  .logo img {
    height: 35px;
  }
}

.sub-link {
  font-size: var(--fs-xs);
  padding: 5px 12px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #000000;
  min-height: 300vh;
  overflow-x: hidden;
  position: relative;
}

/* Effet de grille inspiré des circuits */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(152, 25, 20, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(152, 25, 20, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.header {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Vidéo background */
.header-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

/* Overlay sombre pour contraste */
.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

/* Contenu par-dessus */
.header-content {
  position: relative;
  z-index: 2;
}

.header h1 {
  font-size: var(--fs-4xl);
  font-weight: 700;
  text-shadow:
    0 0 20px rgba(152, 25, 20, 0.8),
    0 0 40px rgba(152, 25, 20, 0.5),
    0 4px 30px rgba(0, 0, 0, 0.8);
  letter-spacing: 8px;
  text-transform: uppercase;
  border-top: 3px solid #981914;
  border-bottom: 3px solid #981914;
  padding: 30px 0;
  position: relative;
}

/* Glow composited : seul opacity est animé (GPU-friendly) */
.header h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  letter-spacing: inherit;
  text-transform: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  color: transparent;
  text-shadow:
    0 0 30px rgba(152, 25, 20, 1),
    0 0 60px rgba(152, 25, 20, 0.8);
  animation: titleGlow 3s ease-in-out infinite;
  will-change: opacity;
  pointer-events: none;
}

@keyframes titleGlow {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .header h1 {
    font-size: var(--fs-2xl);
    letter-spacing: 4px;
    padding: 20px 0;
  }

  .header h1::after {
    padding: 20px 0;
  }
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 50px;
  z-index: 1;
  background-image:
    linear-gradient(rgba(152, 25, 20, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(152, 25, 20, 0.12) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* SVG Path pour la ligne pointillée - Desktop only */
.drift-path-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: none;
}

@media (min-width: 769px) {
  .drift-path-container {
    display: block;
  }
}

.drift-path {
  stroke: #981914;
  stroke-width: 3;
  stroke-dasharray: 15 10;
  fill: none;
  opacity: 0.4;
  filter: drop-shadow(0 0 8px rgba(152, 25, 20, 0.6));
}

/* Petite voiture qui suit le path */
.drift-car {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 0;
  filter: drop-shadow(0 0 10px rgba(152, 25, 20, 0.8));
  transition: opacity 0.5s ease; /* Ajout de cette ligne */
  display: none;
  pointer-events: none;
}

@media (min-width: 769px) {
  .drift-car {
    display: block;
  }
}

.drift-car img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Smoke trail effect */
.smoke-trail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  contain: strict;
}

.mobile-smoke-trail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
}

.trail-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(180, 180, 180, 0.5),
    rgba(120, 120, 120, 0.2),
    transparent
  );
  animation: trailFade 1.5s ease-out forwards;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

@keyframes trailFade {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.4);
  }
  30% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, #981914, #ff0000);
  height: 0%;
  transition: height 0.1s ease-out;
  box-shadow:
    0 0 20px rgba(152, 25, 20, 0.8),
    0 0 40px rgba(152, 25, 20, 0.5);
  border-radius: 0;
}

.timeline-line {
  position: fixed;
  left: 50px; /* Réduit de 100px à 50px */
  top: 0;
  width: 6px;
  height: 100vh !important;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
  z-index: 100;
  border-radius: 0;
  pointer-events: none;
}

.timeline-gauge {
  position: fixed;
  left: 50px; /* Réduit de 100px à 50px */
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1a1a1a, #000000);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow:
    0 0 20px rgba(152, 25, 20, 0.6),
    0 0 40px rgba(152, 25, 20, 0.3),
    inset 0 2px 15px rgba(255, 255, 255, 0.05);
  border: 2px solid #981914;
}

.gauge-inner {
  width: 64px; /* Réduit de 100px */
  height: 64px;
  background: radial-gradient(circle, #0a0a0a, #000000);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gauge-marks {
  position: absolute;
  width: 100%;
  height: 100%;
}

.gauge-mark {
  position: absolute;
  width: 1px; /* Réduit de 2px */
  height: 5px; /* Réduit de 8px */
  background: rgba(255, 255, 255, 0.5);
  top: 5px; /* Réduit de 8px */
  left: 50%;
  transform-origin: 50% 27px; /* Ajusté proportionnellement */
  margin-left: -0.5px;
}

.gauge-mark.major {
  height: 8px; /* Réduit de 12px */
  width: 2px; /* Réduit de 3px */
  background: #981914;
}

.gauge-needle {
  position: absolute;
  width: 2px; /* Réduit de 3px */
  height: 22px; /* Réduit de 35px */
  background: linear-gradient(180deg, #981914, #ff0000);
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(-135deg);
  transition: transform 0.3s ease-out;
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
}

.gauge-needle::after {
  content: "";
  position: absolute;
  width: 5px; /* Réduit de 8px */
  height: 5px;
  background: #ff0000;
  border-radius: 50%;
  bottom: -2.5px; /* Ajusté */
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(255, 0, 0, 1);
}

.gauge-percentage {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent-text);
  z-index: 2;
  text-shadow: 0 0 8px rgba(152, 25, 20, 0.8);
  position: absolute;
  bottom: 5px; /* Positionne le pourcentage en bas de la jauge */
  left: 50%;
  transform: translateX(-50%);
}

.gauge-percentage::after {
  /* content: "%"; */
  font-size: 0.6em;
}

/* Cacher sur tablette et mobile */
@media (max-width: 1024px) {
  .timeline-line,
  .timeline-gauge {
    display: none !important;
  }
}

.gauge-label {
  position: absolute;
  top: 25px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  letter-spacing: 2px;
}

.gauge-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: gaugeGlow 2s ease-in-out infinite;
}

@keyframes gaugeGlow {
  0%,
  100% {
    box-shadow:
      0 0 20px rgba(152, 25, 20, 0.4),
      inset 0 0 20px rgba(152, 25, 20, 0.1);
  }
  50% {
    box-shadow:
      0 0 40px rgba(152, 25, 20, 0.8),
      inset 0 0 30px rgba(152, 25, 20, 0.3);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 150px;
  transition:
    opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
  contain: layout style;
}

/* Animations masquées uniquement si JS est actif */
.js .timeline-item {
  opacity: 0;
  visibility: hidden;
  transform: translateX(150px);
}

.js .timeline-item:nth-child(even) {
  transform: translateX(-150px);
}

.timeline-item.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Effet de glisse drift après l'apparition */
.timeline-item.visible::before {
  content: "";
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(152, 25, 20, 0.1),
    transparent
  );
  animation: driftSlide 0.8s ease-out;
  pointer-events: none;
  z-index: 10;
}

@keyframes driftSlide {
  0% {
    right: -100%;
    opacity: 1;
  }
  100% {
    right: 100%;
    opacity: 0;
  }
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
  margin-right: 60px;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: auto;
  margin-left: 60px;
}

.timeline-content {
  width: calc(50% - 80px);
  max-width: 100%;
  background: #0a0a0a;
  padding: 0;
  border-radius: 0;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.8),
    0 0 0 2px #981914;
  position: relative;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.timeline-content:hover {
  box-shadow:
    0 10px 50px rgba(152, 25, 20, 0.4),
    0 0 0 3px #981914,
    inset 0 0 30px rgba(152, 25, 20, 0.1);
  transform: translateY(-8px);
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #981914, transparent);
  z-index: 2;
}

.timeline-image {
  width: 100%;
  height: 250px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) contrast(1.1);
  transition:
    filter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.timeline-content:hover .timeline-image {
  filter: grayscale(0%) contrast(1.2);
  transform: scale(1.05);
}

.timeline-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(152, 25, 20, 0.1) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  pointer-events: none;
}

.timeline-content-inner {
  padding: 30px;
  position: relative;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, #0a0a0a 30%);
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #981914;
  border: 4px solid #000000;
  border-radius: 50%;
  top: 30px;
  z-index: 2;
  box-shadow:
    0 0 0 4px rgba(152, 25, 20, 0.3),
    0 0 20px rgba(152, 25, 20, 0.6);
  transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -60px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -60px;
}

.timeline-item.visible .timeline-dot {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(152, 25, 20, 0.3),
      0 0 20px rgba(152, 25, 20, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 0 12px rgba(152, 25, 20, 0),
      0 0 30px rgba(152, 25, 20, 0.8);
    transform: scale(1.1);
  }
}

.timeline-date {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--accent-text-lg);
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(152, 25, 20, 0.5);
  letter-spacing: 3px;
  transition: all 0.3s ease;
}

.timeline-content:hover .timeline-date {
  letter-spacing: 5px;
  text-shadow: 0 0 20px rgba(152, 25, 20, 0.9);
}

.timeline-title {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.timeline-description {
  color: #cccccc;
  line-height: 1.8;
  font-size: var(--fs-md);
}

/* Responsive optimisé pour mobile */
@media (max-width: 768px) {
  body::before {
    background-size: 30px 30px;
    opacity: 0.5;
  }

  .header h1 {
    font-size: var(--fs-2xl);
    padding: 20px;
    letter-spacing: 4px;
  }

  .timeline-container {
    padding: 50px 20px;
  }

  .timeline-line {
    left: 20px;
    width: 4px;
  }

  .timeline-gauge {
    left: 20px;
    width: 60px;
    height: 60px;
    border: 2px solid #981914;
  }

  .gauge-inner {
    width: 50px;
    height: 50px;
  }

  .gauge-needle {
    height: 18px;
    width: 2px;
  }

  .gauge-needle::after {
    width: 6px;
    height: 6px;
  }

  .gauge-mark {
    height: 4px;
    width: 1px;
    top: 4px;
    transform-origin: 50% 21px;
  }

  .gauge-mark.major {
    height: 6px;
    width: 2px;
  }

  .gauge-percentage {
    font-size: 9px;
    bottom: 10px;
  }

  .gauge-label {
    font-size: 5px;
    top: 14px;
    letter-spacing: 1px;
  }

  .timeline-item {
    margin-bottom: 80px;
    transition:
      opacity 0.5s ease-out,
      transform 0.5s ease-out;
  }

  .js .timeline-item,
  .js .timeline-item:nth-child(even) {
    transform: translateX(30px);
  }

  .timeline-item.visible {
    transform: translateX(0);
  }

  .timeline-item.visible::before {
    display: none;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px;
    margin-right: 0;
  }

  .timeline-dot {
    left: 11px !important;
    right: auto !important;
    width: 14px;
    height: 14px;
    border-width: 3px;
    top: 20px;
  }

  .timeline-image {
    height: 200px;
  }

  .timeline-content:hover {
    transform: translateY(-3px);
    box-shadow:
      0 8px 30px rgba(152, 25, 20, 0.3),
      0 0 0 2px #981914;
  }

  .timeline-content:hover .timeline-image {
    transform: scale(1.02);
  }

  .timeline-content-inner {
    padding: 20px;
  }

  .timeline-date {
    font-size: var(--fs-xl);
    letter-spacing: 2px;
  }

  .timeline-content:hover .timeline-date {
    letter-spacing: 3px;
  }

  .timeline-title {
    font-size: var(--fs-md);
    letter-spacing: 1px;
  }

  .timeline-description {
    font-size: var(--fs-base);
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: var(--fs-xl);
    letter-spacing: 2px;
    padding: 15px;
  }

  .timeline-container {
    padding: 40px 15px;
  }

  .timeline-line {
    left: 15px;
    width: 3px;
  }

  .timeline-gauge {
    left: 15px;
    width: 50px;
    height: 50px;
  }

  .gauge-inner {
    width: 42px;
    height: 42px;
  }

  .gauge-needle {
    height: 15px;
  }

  .gauge-percentage {
    font-size: 8px;
    bottom: 8px;
  }

  .gauge-label {
    font-size: 4px;
    top: 12px;
  }

  /* Animation de tremblement pour la jauge */
  @keyframes shake {
    0%,
    100% {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    10% {
      transform: translate(-50%, -50%) translate(-2px, 1px) rotate(-1deg);
    }
    20% {
      transform: translate(-50%, -50%) translate(2px, -1px) rotate(1deg);
    }
    30% {
      transform: translate(-50%, -50%) translate(-1px, 2px) rotate(-0.5deg);
    }
    40% {
      transform: translate(-50%, -50%) translate(1px, -2px) rotate(0.5deg);
    }
    50% {
      transform: translate(-50%, -50%) translate(-2px, -1px) rotate(-1deg);
    }
    60% {
      transform: translate(-50%, -50%) translate(2px, 1px) rotate(1deg);
    }
    70% {
      transform: translate(-50%, -50%) translate(-1px, -2px) rotate(-0.5deg);
    }
    80% {
      transform: translate(-50%, -50%) translate(1px, 2px) rotate(0.5deg);
    }
    90% {
      transform: translate(-50%, -50%) translate(-2px, 1px) rotate(-1deg);
    }
  }

  .timeline-gauge.overheat {
    animation: shake 0.4s infinite;
  }

  /* Particules de fumée */
  .smoke-particle {
    position: absolute;
    width: 25px;
    height: 25px;
    background: radial-gradient(
      circle,
      rgba(255, 0, 0, 0.6),
      rgba(152, 25, 20, 0.3),
      transparent
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
  }

  @keyframes smoke {
    0% {
      opacity: 0.9;
      transform: translate(0, 0) scale(0.5);
    }
    50% {
      opacity: 0.6;
    }
    100% {
      opacity: 0;
      transform: translate(var(--smoke-x), -100px) scale(2);
    }
  }

  .smoke-particle.active {
    animation: smoke 1.5s ease-out forwards;
  }

  /* Effet de pulsation rouge sur le gauge-inner */
  @keyframes overheatPulse {
    0%,
    100% {
      box-shadow:
        inset 0 0 30px rgba(152, 25, 20, 0.8),
        0 0 20px rgba(152, 25, 20, 0.6);
    }
    50% {
      box-shadow:
        inset 0 0 50px rgba(255, 0, 0, 1),
        0 0 40px rgba(255, 0, 0, 0.9);
    }
  }

  .timeline-gauge.overheat .gauge-inner {
    animation: overheatPulse 0.5s infinite;
  }

  /* Clignotement du pourcentage */
  @keyframes percentageBlink {
    0%,
    100% {
      color: var(--accent-text);
      text-shadow: 0 0 10px rgba(152, 25, 20, 0.8);
    }
    50% {
      color: #ff0000;
      text-shadow: 0 0 20px rgba(255, 0, 0, 1);
    }
  }

  .timeline-gauge.overheat .gauge-percentage {
    animation: percentageBlink 0.4s infinite;
  }

  .timeline-item {
    margin-bottom: 60px;
  }

  .js .timeline-item,
  .js .timeline-item:nth-child(even) {
    transform: translateX(20px);
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: calc(100% - 45px);
    margin-left: 45px;
    margin-right: 0;
  }

  .timeline-dot {
    left: 8px !important;
    width: 12px;
    height: 12px;
    top: 15px;
  }

  .timeline-image {
    height: 160px;
  }

  .timeline-content-inner {
    padding: 15px;
  }

  .timeline-date {
    font-size: var(--fs-lg);
  }

  .timeline-title {
    font-size: var(--fs-base);
  }

  .timeline-description {
    font-size: var(--fs-sm);
  }
}

/* SECTION SPÉCIFICATIONS TECHNIQUES */
.specs-section {
  background-color: #000;
  background-image:
    linear-gradient(rgba(152, 25, 20, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(152, 25, 20, 0.12) 1px, transparent 1px);
  background-size: 50px 50px;
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.specs-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  gap: 80px;
  position: relative;
}

.specs-content {
  position: relative;
  flex: 1;
  max-width: calc(100% - 580px);
}

.specs-title {
  font-size: var(--fs-3xl);
  color: #fff;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 4px;
  border-bottom: 3px solid #981914;
  padding-bottom: 20px;
  text-shadow: 0 0 20px rgba(152, 25, 20, 0.6);
}

.specs-subtitle {
  font-size: var(--fs-md);
  color: var(--accent-text);
  margin-bottom: 60px;
  font-weight: 600;
}

.spec-block {
  margin-bottom: 80px;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.spec-block.js-hidden {
  opacity: 0;
  visibility: hidden;
}

.spec-block.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.spec-block h3 {
  font-size: var(--fs-2xl);
  color: var(--accent-text);
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding-left: 20px;
}

.spec-block h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 80%;
  background: linear-gradient(180deg, #981914, #ff0000);
  box-shadow: 0 0 10px rgba(152, 25, 20, 0.8);
}

/* Carrousel images spec-block (mobile uniquement) */
.spec-block > .spec-carousel {
  display: none;
}

/* --- Carousel container: fenêtre visible --- */
.spec-carousel {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 15px;
  overflow: hidden;
  contain: content;
  margin-bottom: 30px;
  border: 2px solid rgba(152, 25, 20, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  background: #0a0a0a;
}

/* --- Track: flex horizontal, une slide = 100% largeur --- */
.spec-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Slide: fenêtre scrollable horizontalement --- */
.carousel-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Scrollbar discrète */
  scrollbar-width: thin;
  scrollbar-color: rgba(152, 25, 20, 0.5) transparent;
  cursor: grab;
}

.carousel-slide:active {
  cursor: grabbing;
}

/* Scrollbar webkit */
.carousel-slide::-webkit-scrollbar {
  height: 4px;
}

.carousel-slide::-webkit-scrollbar-track {
  background: transparent;
}

.carousel-slide::-webkit-scrollbar-thumb {
  background: rgba(152, 25, 20, 0.5);
  border-radius: 2px;
}

/* --- Image: remplit la hauteur, garde son ratio, jamais rognée --- */
.spec-carousel-track img {
  height: 100%;
  width: auto;
  min-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  border: 1px solid rgba(152, 25, 20, 0.5);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--fs-base);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

.spec-carousel:hover .carousel-prev,
.spec-carousel:hover .carousel-next {
  opacity: 1;
  visibility: visible;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(152, 25, 20, 0.9);
  border-color: #981914;
  box-shadow: 0 0 15px rgba(152, 25, 20, 0.6);
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
  min-height: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: #981914;
  box-shadow: 0 0 8px rgba(152, 25, 20, 0.8);
  transform: scale(1.3);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.spec-item {
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.8),
    rgba(0, 0, 0, 0.9)
  );
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(152, 25, 20, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}

.spec-item:hover {
  border-color: #981914;
  box-shadow: 0 0 20px rgba(152, 25, 20, 0.4);
  transform: translateY(-2px);
}

.spec-label {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spec-value {
  font-size: var(--fs-md);
  color: #fff;
  font-weight: 600;
}

.spec-detail {
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.92),
    rgba(0, 0, 0, 0.96)
  );
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  border-left: 4px solid #981914;
  transition: all 0.3s ease;
}

.spec-detail:hover {
  border-left-width: 6px;
  box-shadow: 0 5px 25px rgba(152, 25, 20, 0.3);
  transform: translateX(5px);
}

.spec-detail h4 {
  color: var(--accent-text-lg);
  font-size: var(--fs-lg);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spec-detail p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 8px;
}

.spec-note {
  display: block;
  font-size: var(--fs-sm);
  color: var(--accent-text);
  font-style: italic;
  margin-top: 5px;
}

/* Images à droite - sticky */
.specs-images {
  position: fixed;
  top: 140px;
  right: calc((100vw - 1400px) / 2 + 50px);
  width: 500px;
  height: 600px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

@media (max-width: 1600px) {
  .specs-images {
    right: 50px;
  }
}

/* Carousel sets dans specs-images (desktop) */
.spec-carousel-set {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.spec-carousel-set.active {
  opacity: 1;
  pointer-events: auto;
}

.specs-images .spec-carousel {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border-width: 3px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  box-shadow:
    0 20px 60px rgba(152, 25, 20, 0.4),
    inset 0 2px 20px rgba(255, 255, 255, 0.05);
}

.specs-images .spec-carousel-track {
  align-items: center;
  height: 100%;
}

.specs-images .carousel-slide {
  height: 100%;
}

.specs-images .spec-carousel-track img {
  height: 100%;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 1024px) {
  .specs-container {
    flex-direction: column;
    gap: 40px;
  }

  .specs-content {
    max-width: 100%;
  }

  .specs-images {
    display: none;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE SPÉCIFICATIONS TECHNIQUES */
/* RESPONSIVE SPÉCIFICATIONS TECHNIQUES */
@media (max-width: 1024px) {
  .specs-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 30px;
  }

  .specs-content {
    display: flex;
    flex-direction: column;
    max-width: 100%;
  }

  /* Cacher le conteneur sticky */
  .specs-images {
    display: none;
  }

  /* Afficher une image au-dessus de chaque bloc */
  .spec-block {
    margin-bottom: 50px;
    position: relative;
  }

  .spec-block::before {
    display: none;
  }

  .spec-block > .spec-carousel {
    display: block;
    height: 260px;
    border-radius: 15px;
  }

  .spec-block > .spec-carousel .carousel-prev,
  .spec-block > .spec-carousel .carousel-next {
    opacity: 1;
    visibility: visible;
    width: 32px;
    height: 32px;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .specs-section {
    padding: 60px 0;
  }

  .specs-container {
    padding: 0 20px;
  }

  .spec-block > .spec-carousel {
    height: 220px;
  }

  .specs-title {
    font-size: var(--fs-2xl);
    letter-spacing: 2px;
    padding-bottom: 15px;
  }

  .specs-subtitle {
    font-size: var(--fs-base);
    margin-bottom: 40px;
  }

  .spec-block {
    margin-bottom: 40px;
  }

  .spec-block h3 {
    font-size: var(--fs-xl);
    padding-left: 15px;
    margin-bottom: 20px;
  }

  .spec-block h3::before {
    width: 4px;
  }

  .spec-grid {
    gap: 15px;
  }

  .spec-item {
    padding: 15px;
  }

  .spec-label {
    font-size: var(--fs-xs);
  }

  .spec-value {
    font-size: var(--fs-base);
  }

  .spec-detail {
    padding: 20px;
    margin-bottom: 15px;
  }

  .spec-detail h4 {
    font-size: var(--fs-md);
  }

  .spec-detail p {
    font-size: var(--fs-base);
  }

  .spec-note {
    font-size: var(--fs-sm);
  }
}

@media (max-width: 480px) {
  .spec-block > .spec-carousel {
    height: 180px;
  }

  .specs-title {
    font-size: var(--fs-xl);
    letter-spacing: 1px;
  }

  .specs-subtitle {
    font-size: var(--fs-sm);
  }

  .spec-block h3 {
    font-size: var(--fs-lg);
  }

  .spec-item {
    padding: 12px;
  }

  .spec-detail {
    padding: 15px;
  }

  .spec-detail h4 {
    font-size: var(--fs-base);
  }

  .spec-detail p {
    font-size: var(--fs-sm);
  }
}

/* TIMELINE MOBILE HORIZONTALE */
.mobile-timeline {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.mobile-timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #981914, #ff0000);
  transition: width 0.1s ease-out;
  box-shadow:
    0 0 15px rgba(152, 25, 20, 0.8),
    0 0 30px rgba(152, 25, 20, 0.5);
}

.mobile-drift-car {
  position: absolute;
  bottom: 10px;
  left: 0%;
  width: 35px;
  height: 35px;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 10px rgba(152, 25, 20, 0.8));
  transition: left 0.1s ease-out;
  z-index: 1000;
}

.mobile-drift-car img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-percentage {
  position: absolute;
  bottom: 50px;
  right: 20px;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--accent-text);
  text-shadow:
    0 0 10px rgba(152, 25, 20, 0.8),
    0 2px 5px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.8);
  padding: 8px 15px;
  border-radius: 20px;
  border: 2px solid #981914;
  z-index: 1000;
}

/* Afficher uniquement sur mobile/tablette */
@media (max-width: 1024px) {
  .mobile-timeline {
    display: block;
  }

  /* Ajuster le padding du body pour éviter que le contenu soit caché */
  body {
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .mobile-drift-car {
    width: 30px;
    height: 30px;
    bottom: 8px;
  }

  .mobile-percentage {
    font-size: var(--fs-base);
    padding: 6px 12px;
    bottom: 40px;
    right: 15px;
  }
}

/* Afficher uniquement sur mobile/tablette */
@media (max-width: 768px) {
  .mobile-timeline {
    display: block !important;
  }

  /* Ajuster le padding du body pour la timeline en bas */
  body {
    padding-bottom: 80px; /* Espace pour la timeline + voiture */
  }
}

/* Cacher la timeline desktop sur tablette/mobile */
@media (max-width: 768px) {
  .timeline-line,
  .timeline-gauge,
  .drift-path-container,
  .drift-car {
    display: none !important;
  }
}

/* Responsive timeline mobile */
@media (max-width: 480px) {
  .mobile-drift-car {
    width: 30px;
    height: 30px;
    bottom: 8px;
  }

  .mobile-percentage {
    font-size: var(--fs-base);
    bottom: 40px;
    right: 15px;
    padding: 6px 12px;
  }
}

/* ============================================
   CTA KICKSTARTER – French Flair Drift
   ============================================ */
.ffd-kickstarter-cta {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  background-image:
    linear-gradient(rgba(152, 25, 20, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(152, 25, 20, 0.12) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Wrapper interne : layout texte gauche / voiture droite */
.ffd-kickstarter-cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  padding: 80px 50px;
}

/* Fond parallaxe – couche arrière (scène complète) */
.ffd-kickstarter-cta__bg {
  position: absolute;
  inset: -60px;
  background-image: url("../../img/img-Porsche4.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  will-change: transform;
  pointer-events: none;
}

/* Gradient directionnel */
.ffd-kickstarter-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(152, 25, 20, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.05) 65%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Contenu texte – côté gauche */
.ffd-kickstarter-cta__content {
  flex: 1 1 55%;
  text-align: left;
  will-change: transform;
}

/* Voiture solo – côté droit */
.ffd-kickstarter-cta__car {
  flex: 1 1 45%;
  max-width: 520px;
  height: auto;
  will-change: transform;
  pointer-events: none;
  filter: drop-shadow(0 0 50px rgba(152, 25, 20, 0.35))
         drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
  transition: filter 0.4s ease;
}

/* Titre */
.ffd-kickstarter-cta__title {
  font-size: var(--fs-4xl);
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
}

.ffd-kickstarter-cta__title span {
  display: inline;
  color: var(--accent-text);
}

/* Sous-titre */
.ffd-kickstarter-cta__subtitle {
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.87);
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* Bouton CTA principal */
.ffd-kickstarter-cta__button {
  display: inline-block;
  padding: 18px 48px;
  font-size: var(--fs-md);
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #981914, #c02a22);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  box-shadow:
    0 4px 20px rgba(152, 25, 20, 0.4),
    0 0 0 0 rgba(152, 25, 20, 0);
}

.ffd-kickstarter-cta__button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 8px 32px rgba(152, 25, 20, 0.5),
    0 0 40px rgba(152, 25, 20, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.ffd-kickstarter-cta__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow:
    0 8px 32px rgba(152, 25, 20, 0.5),
    0 0 40px rgba(152, 25, 20, 0.15);
}

.ffd-kickstarter-cta__button:active {
  transform: translateY(-1px) scale(1);
}

/* Effet lumineux au hover */
.ffd-kickstarter-cta__button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ffd-kickstarter-cta__button:hover::before {
  opacity: 1;
}

/* Note sous le bouton */
.ffd-kickstarter-cta__note {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
  margin-top: 20px;
  letter-spacing: 0.5px;
}

/* Barre de financement */
.ffd-kickstarter-cta__funding {
  margin-top: 32px;
  max-width: 420px;
}

.ffd-kickstarter-cta__funding-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.ffd-kickstarter-cta__funding-amount {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.ffd-kickstarter-cta__funding-goal {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
}

.ffd-kickstarter-cta__funding-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.ffd-kickstarter-cta__funding-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #981914, #e03e32, #ff3030);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(152, 25, 20, 0.6);
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ffd-kickstarter-cta__funding-fill.animated {
  width: var(--funding-pct);
}

.ffd-kickstarter-cta__funding-stats {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
}

.ffd-kickstarter-cta__funding-stats strong {
  color: #fff;
  font-weight: 700;
}

/* Mobile : barre centrée */
@media (max-width: 767px) {
  .ffd-kickstarter-cta__funding {
    margin-left: auto;
    margin-right: auto;
  }

  .ffd-kickstarter-cta__funding-header {
    justify-content: center;
  }

  .ffd-kickstarter-cta__funding-stats {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Ligne déco néon en bas */
.ffd-kickstarter-cta__neon {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #981914, #ff0000, #981914, transparent);
  box-shadow: 0 0 20px rgba(152, 25, 20, 0.5), 0 0 60px rgba(152, 25, 20, 0.2);
  z-index: 3;
}

/* ── CTA Kickstarter – Responsive ───────── */
@media (max-width: 1024px) {
  .ffd-kickstarter-cta {
    min-height: 60vh;
  }

  .ffd-kickstarter-cta__inner {
    gap: 30px;
    padding: 60px 30px;
  }

  .ffd-kickstarter-cta__title {
    font-size: var(--fs-3xl);
  }

  .ffd-kickstarter-cta__car {
    max-width: 380px;
  }
}

@media (max-width: 767px) {
  .ffd-kickstarter-cta {
    min-height: auto;
  }

  .ffd-kickstarter-cta__inner {
    flex-direction: column-reverse;
    padding: 50px 20px;
    gap: 30px;
  }

  .ffd-kickstarter-cta__content {
    text-align: center;
  }

  .ffd-kickstarter-cta__bg {
    inset: -20px;
  }

  .ffd-kickstarter-cta__car {
    max-width: 300px;
    width: 80%;
  }

  .ffd-kickstarter-cta__title {
    font-size: var(--fs-2xl);
    letter-spacing: 2px;
  }

  .ffd-kickstarter-cta__subtitle {
    font-size: var(--fs-base);
  }

  .ffd-kickstarter-cta__button {
    padding: 16px 36px;
    font-size: var(--fs-base);
  }
}

@media (max-width: 480px) {
  .ffd-kickstarter-cta__inner {
    padding: 40px 16px;
  }

  .ffd-kickstarter-cta__title {
    font-size: var(--fs-xl);
  }

  .ffd-kickstarter-cta__car {
    max-width: 240px;
  }

  .ffd-kickstarter-cta__button {
    padding: 14px 28px;
    width: 100%;
    max-width: 320px;
  }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(152, 25, 20, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(152, 25, 20, 0.85);
  border-color: rgba(152, 25, 20, 0.8);
}

.back-to-top:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.back-to-top:active {
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Éviter le chevauchement avec la timeline mobile */
@media (max-width: 1024px) {
  .back-to-top {
    bottom: 80px;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    width: 44px;
    height: 44px;
    right: 20px;
    bottom: 90px;
  }
}

/* ── FFD header user icon fix ─────────────── */
/* FFD USER ICON START */

/* Wrapper – position relative pour le dropdown */
.ffd-user-wrap {
  position: relative;
  flex-shrink: 0;
}

/* Bouton icône pilote */
.ffd-user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s, background 0.25s;
  position: relative;
  padding: 0;
}

.ffd-user-btn:hover {
  border-color: #981914;
  color: #fff;
  box-shadow: 0 0 12px rgba(152, 25, 20, 0.4);
  background: rgba(152, 25, 20, 0.1);
}

.ffd-user-btn:focus-visible {
  outline: 2px solid #e03e32;
  outline-offset: 2px;
}

.ffd-user-btn__icon {
  display: block;
}

/* Pastille verte "connecté" */
.ffd-user-btn__indicator {
  display: none;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #23a559;
  border: 2px solid rgba(0, 0, 0, 0.95);
}

.ffd-user-btn--logged .ffd-user-btn__indicator {
  display: block;
}

.ffd-user-btn--logged {
  border-color: #981914;
  color: #e03e32;
}

/* Pas de ::after underline sur le wrapper */
.ffd-user-wrap::after,
.ffd-user-btn::after {
  display: none !important;
}

/* ── Dropdown ───────────────────────────── */
.ffd-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: rgba(10, 10, 10, 0.97);
  border: 1px solid rgba(152, 25, 20, 0.3);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 40px rgba(152, 25, 20, 0.1);
  overflow: hidden;
  z-index: 1100;
  animation: ffdDropIn 0.2s ease-out;
}

@keyframes ffdDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ffd-user-dropdown--open {
  display: block;
}

/* Flèche */
.ffd-user-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 14px;
  width: 10px;
  height: 10px;
  background: rgba(10, 10, 10, 0.97);
  border-left: 1px solid rgba(152, 25, 20, 0.3);
  border-top: 1px solid rgba(152, 25, 20, 0.3);
  transform: rotate(45deg);
}

/* Header du dropdown (visible si connecté) */
.ffd-user-dropdown__header {
  display: none;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ffd-user-dropdown__header--visible {
  display: block;
}

.ffd-user-dropdown__name {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 188px;
}

.ffd-user-dropdown__email {
  display: block;
  font-size: var(--fs-2xs);
  color: var(--ffd-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 188px;
}

/* Liens du dropdown */
.ffd-user-dropdown__links {
  display: none;
  padding: 6px 0;
}

.ffd-user-dropdown__links--visible {
  display: block;
}

.ffd-user-dropdown__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ffd-text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.ffd-user-dropdown__link:hover {
  background: rgba(152, 25, 20, 0.12);
  color: #fff;
}

/* Pas de underline au survol */
.ffd-user-dropdown__link::after {
  display: none !important;
}

.ffd-user-dropdown__link svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.ffd-user-dropdown__logout {
  color: #e03e32;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2px;
  padding-top: 10px;
}

.ffd-user-dropdown__logout:hover {
  background: rgba(224, 62, 50, 0.1);
  color: #ff6b6b;
}

/* Lien "Se connecter" (visible si non connecté) */
.ffd-user-dropdown__login {
  display: none;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, #981914, #c02a22);
  transition: opacity 0.2s;
}

.ffd-user-dropdown__login--visible {
  display: block;
}

.ffd-user-dropdown__login:hover {
  opacity: 0.9;
}

.ffd-user-dropdown__login::after {
  display: none !important;
}

/* ── Mobile login link ──────────────────── */
.ffd-mobile-login--logged {
  color: #e03e32 !important;
  border-left-color: #981914 !important;
}

/* FFD USER ICON END */

/* ============================================
   FFD – Sponsors Strip (Ils nous soutiennent)
   ============================================ */
.ffd-sponsors-strip {
  padding: 60px 0;
  text-align: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(152, 25, 20, 0.15);
  border-bottom: 1px solid rgba(152, 25, 20, 0.15);
}

.ffd-sponsors-strip__title {
  font-family: "Edo SZ", "Trebuchet MS", sans-serif;
  font-size: var(--fs-2xl, 1.875rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 8px;
}

.ffd-sponsors-strip__subtitle {
  font-size: var(--fs-sm, 0.875rem);
  color: var(--ffd-text-muted, rgba(255, 255, 255, 0.52));
  margin-bottom: 40px;
}

.ffd-sponsors-strip__track {
  display: flex;
  width: max-content;
  animation: ffd-scroll 35s linear infinite;
}

.ffd-sponsors-strip__track:hover {
  animation-play-state: paused;
}

@keyframes ffd-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ffd-sponsors-strip__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 24px;
  flex-shrink: 0;
}

/* Fade edges */
.ffd-sponsors-strip::before,
.ffd-sponsors-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.ffd-sponsors-strip::before {
  left: 0;
  background: linear-gradient(90deg, #000 0%, transparent 100%);
}

.ffd-sponsors-strip::after {
  right: 0;
  background: linear-gradient(270deg, #000 0%, transparent 100%);
}

/* Sponsor card */
.ffd-sponsor {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  cursor: default;
}

.ffd-sponsor:hover {
  border-color: rgba(152, 25, 20, 0.5);
  box-shadow: 0 0 20px rgba(152, 25, 20, 0.15);
  background: #0f0605;
}

.ffd-sponsor__icon {
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.ffd-sponsor:hover .ffd-sponsor__icon {
  opacity: 1;
}

.ffd-sponsor__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.ffd-sponsor__name {
  font-size: var(--fs-sm, 0.875rem);
  font-weight: 700;
  color: var(--ffd-text-primary, #f5f5f5);
  letter-spacing: 0.3px;
}

.ffd-sponsor__sector {
  font-size: var(--fs-xs, 0.75rem);
  color: var(--ffd-text-muted, rgba(255, 255, 255, 0.52));
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .ffd-sponsors-strip {
    padding: 40px 0;
  }
  .ffd-sponsors-strip__inner {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .ffd-sponsors-strip__subtitle {
    margin-bottom: 28px;
    padding: 0 16px;
  }
  .ffd-sponsors-strip__inner {
    gap: 24px;
    padding: 0 16px;
  }
  .ffd-sponsor {
    padding: 12px 16px;
    gap: 10px;
  }
  .ffd-sponsor__icon {
    width: 32px;
    height: 32px;
  }
  .ffd-sponsors-strip::before,
  .ffd-sponsors-strip::after {
    width: 40px;
  }
}

/* ============================================
   FFD – Footer Global
   ============================================ */
.ffd-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(152, 25, 20, 0.2);
  background: #050505;
  padding: 60px 30px 0;
}

.ffd-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

/* ── Col 1 : About ─────────────────────── */
.ffd-footer__brand-logo {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
  display: block;
}

.ffd-footer__about {
  font-size: var(--fs-sm, 0.875rem);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 24px;
}

.ffd-footer__socials {
  display: flex;
  gap: 12px;
}

.ffd-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ffd-footer__social:hover {
  border-color: rgba(152, 25, 20, 0.6);
  color: #e03e32;
  background: rgba(152, 25, 20, 0.08);
}

.ffd-footer__social svg {
  width: 18px;
  height: 18px;
}

/* ── Col headings ──────────────────────── */
.ffd-footer__heading {
  font-family: "Edo SZ", "Trebuchet MS", sans-serif;
  font-size: var(--fs-base, 1rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Col 2 & 3 : Nav + Legal links ─────── */
.ffd-footer__nav,
.ffd-footer__legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ffd-footer__legal-list {
  margin-bottom: 24px;
}

.ffd-footer__nav li,
.ffd-footer__legal-list li {
  margin-bottom: 12px;
}

.ffd-footer__nav a,
.ffd-footer__legal-list a {
  font-size: var(--fs-sm, 0.875rem);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.ffd-footer__nav a:hover,
.ffd-footer__legal-list a:hover {
  color: #e03e32;
}

.ffd-footer__credits {
  font-size: var(--fs-xs, 0.75rem);
  color: var(--ffd-text-muted, rgba(255, 255, 255, 0.52));
  line-height: 1.6;
}

/* ── Bottom bar ────────────────────────── */
.ffd-footer__bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: var(--fs-xs, 0.75rem);
  color: var(--ffd-text-muted, rgba(255, 255, 255, 0.52));
}

@media (max-width: 900px) {
  .ffd-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .ffd-footer__col--about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .ffd-footer {
    padding: 40px 16px 0;
  }
  .ffd-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ffd-footer__col--about {
    grid-column: auto;
  }
}

/* ============================================
   FFD – Mentions Légales Page
   ============================================ */
.ffd-legal {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 120px 30px 80px;
}

.ffd-legal__title {
  font-family: "Edo SZ", "Trebuchet MS", sans-serif;
  font-size: var(--fs-3xl, 2.5rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.ffd-legal__updated {
  font-size: var(--fs-sm, 0.875rem);
  color: var(--ffd-text-muted, rgba(255, 255, 255, 0.52));
  margin-bottom: 48px;
}

.ffd-legal h2 {
  font-family: "Edo SZ", "Trebuchet MS", sans-serif;
  font-size: var(--fs-xl, 1.625rem);
  font-weight: 400;
  color: #fff;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(152, 25, 20, 0.25);
}

.ffd-legal h3 {
  font-size: var(--fs-base, 1rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin: 24px 0 8px;
}

.ffd-legal p,
.ffd-legal li {
  font-size: var(--fs-sm, 0.875rem);
  color: var(--ffd-text-secondary);
  line-height: 1.8;
}

.ffd-legal ul {
  padding-left: 20px;
  margin: 8px 0 16px;
}

.ffd-legal li {
  margin-bottom: 6px;
}

.ffd-legal a {
  color: var(--accent-text, #e03e32);
  text-decoration: none;
}

.ffd-legal a:hover {
  text-decoration: underline;
}

.ffd-legal strong {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 480px) {
  .ffd-legal {
    padding: 90px 16px 40px;
  }
  .ffd-legal__title {
    font-size: var(--fs-2xl, 1.875rem);
  }
}

/* ═══════════════════════════════════════════════
   Focus-visible global — Accessibilité clavier
   ═══════════════════════════════════════════════ */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════
   Reduced Motion — Respect des préférences
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
}
