/* Les Beenooz – feuille de style */

/* Police hébergée sur le site (licence SIL OFL, voir assets/fonts/OFL.txt) : aucun appel à Google */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-condensed-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/barlow-condensed-800.woff2") format("woff2"); }

:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --card: #1c1c1e;
  --line: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #8c8c8c;
  --dim: #444444;
  --accent: #d9b25f;          /* or du logo */
  --accent-soft: rgba(217, 178, 95, 0.18);
  --font: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 0.95; letter-spacing: 0.005em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid var(--text);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn--ghost:hover { background: var(--text); color: #000; }
.btn--solid { background: var(--text); color: #000; }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--sm { min-height: 36px; padding: 9px 14px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 18px 32px; font-size: 20px; }
.btn.is-disabled { opacity: 0.45; pointer-events: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 48px auto 0;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.25s, border-color 0.25s;
}
.pill:hover { background: var(--accent-soft); border-color: var(--accent); }
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

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

.subnav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  /* Fond presque opaque sans flou d'arrière-plan : le flou par-dessus la vidéo coûte cher sur mobile */
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.subnav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  height: 100%;
}
.subnav__links::-webkit-scrollbar { display: none; }
.subnav__links a:not(.subnav__brand) {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.subnav__links a:not(.subnav__brand)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.subnav__links a:hover,
.subnav__links a.is-active { color: var(--text); }
.subnav__links a.is-active::after { transform: scaleX(1); }
.subnav__brand img { width: auto; height: 34px; }
.subnav__cta { display: flex; gap: 10px; flex-shrink: 0; }

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

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 48px var(--gutter) 96px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, #232323 0%, #0b0b0b 62%, #000 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 55%;
  animation: kenburns 18s ease-out both;
}
@keyframes kenburns { from { transform: scale(1.12); } }
/* Le montage vidéo a déjà ses propres zooms */
.hero__video { animation: none; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 50% 45%, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.82) 80%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 30%, rgba(0, 0, 0, 0.75) 100%);
}
.hero__streak {
  z-index: 1;
  position: absolute;
  left: -40%;
  height: 2px;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: streak 3.4s linear infinite;
  opacity: 0.6;
}
.hero__streak:nth-child(1) { top: 22%; animation-delay: 0s; }
.hero__streak:nth-child(2) { top: 38%; animation-delay: 1.2s; width: 24%; }
.hero__streak:nth-child(3) { top: 61%; animation-delay: 0.6s; }
.hero__streak:nth-child(4) { top: 74%; animation-delay: 2.1s; width: 30%; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.hero__streak:nth-child(5) { top: 86%; animation-delay: 1.7s; width: 18%; }
@keyframes streak { to { transform: translateX(420%); } }

.hero__content { text-align: center; }
.hero__logo {
  width: min(420px, 68vw);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.6));
  animation: logo-in 1s var(--ease) both;
}
.hero__eyebrow {
  margin-bottom: 10px;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.75);
  animation: rise 1s var(--ease) 0.25s both;
}
.hero__title {
  font-size: clamp(44px, 7vw, 96px);
  animation: rise 1s var(--ease) 0.35s both;
}
.hero__subtitle {
  margin-top: 14px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  color: var(--accent);
  animation: rise 1s var(--ease) 0.55s both;
}
/* Pas de flou ici : il se combinerait mal avec l'ombre portée du logo et pèse sur mobile */
@keyframes logo-in { from { opacity: 0; transform: scale(1.06); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.hero__scroll {
  position: absolute;
  bottom: 52px;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--text);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.checker {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 24px;
  background: repeating-conic-gradient(#fff 0 25%, #000 0 50%) 0 0 / 24px 24px;
  opacity: 0.9;
}

/* ---------- Titres de section ---------- */

.section-title { font-size: clamp(40px, 6vw, 72px); }
.section-title--center { text-align: center; }

/* ---------- Le kart ---------- */

.machine {
  display: flex;
  flex-direction: column;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  background:
    radial-gradient(ellipse 50% 60% at 75% 55%, rgba(217, 178, 95, 0.10), transparent 70%),
    linear-gradient(180deg, #000 0%, var(--bg) 100%);
}
.eyebrow {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.machine__intro {
  max-width: 720px;
  margin-top: 24px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}
.formats { margin-top: 24px; }
.formats li { border-color: rgba(217, 178, 95, 0.5); color: var(--accent); }
.machine__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(32px, 5vw, 64px);
}
.stats { margin: 0; }
.stat { padding: 22px 0; border-bottom: 1px solid var(--line); }
.stat:first-child { border-top: 1px solid var(--line); }
.stat__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 700;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.stat__value small { font-size: 0.32em; font-weight: 500; color: var(--muted); }
.stat__label { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.machine__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  overflow: hidden;
}
.machine__number {
  font-size: clamp(120px, 17vw, 260px);
  font-weight: 800;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 3px var(--text);
  text-shadow: 0 0 60px rgba(217, 178, 95, 0.25);
  transform: skewX(-10deg);
}
.machine__tag {
  padding: 8px 16px;
  background: var(--accent);
  color: #000;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: skewX(-10deg);
}
.machine__lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, 0.06) 46px 48px);
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
}

/* ---------- Manifeste ---------- */

.manifesto { padding: clamp(80px, 12vw, 180px) var(--gutter); background: #000; }
.manifesto__text {
  max-width: 1200px;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.02;
}
.manifesto__text .w { color: #626262; transition: color 0.3s; } /* contraste suffisant même « éteint » */
.manifesto__text .w.is-lit { color: var(--text); }

/* ---------- Éditos ---------- */

.edito {
  position: relative;
  min-height: 88vh;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.edito__visual { position: absolute; inset: 0; z-index: -1; }
.edito__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.6) 100%);
}
.edito__content { max-width: 560px; }
.edito__content h2 { font-size: clamp(36px, 4.4vw, 56px); }
.edito__content p { margin-top: 18px; font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, 0.85); }

/* Photo plein écran */
.edito--photo .edito__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.edito--photo .edito__visual::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.1) 65%, rgba(0, 0, 0, 0.7) 100%);
}

/* ---------- Galerie ---------- */

.gallery { padding: clamp(72px, 10vw, 120px) 0; background: #000; }
.gallery .section-title { padding: 0 var(--gutter); margin-bottom: 32px; }
.gallery__track {
  display: flex;
  gap: 16px;
  padding: 0 var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
  cursor: grab;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery__track img {
  flex: none;
  width: auto;
  height: clamp(260px, 36vw, 460px);
  border-radius: 4px;
  object-fit: cover;
  scroll-snap-align: start;
  user-select: none;
  -webkit-user-drag: none;
  filter: saturate(0.85);
  transition: filter 0.4s;
}
.gallery__track img:hover { filter: none; }


/* ---------- Bandeau ---------- */

.banner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 80px var(--gutter);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, #1b1b1b, #000 75%);
}
.banner__visual { position: absolute; inset: 0; z-index: -1; }
.banner__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.banner__visual span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140vmax;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
  transform-origin: center;
  animation: beam 5s ease-in-out infinite;
}
.banner__visual span:nth-child(1) { rotate: 8deg; }
.banner__visual span:nth-child(2) { rotate: -12deg; animation-delay: 1.2s; }
.banner__visual span:nth-child(3) { rotate: 24deg; animation-delay: 2.4s; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.banner__visual span:nth-child(4) { rotate: -28deg; animation-delay: 3.6s; }
@keyframes beam {
  0%, 100% { translate: -50% -50%; opacity: 0.15; }
  50% { translate: -50% -50%; opacity: 0.9; }
}
.banner__title { font-size: clamp(48px, 8vw, 112px); font-weight: 800; text-align: center; line-height: 0.9; }

/* ---------- Pilotes ---------- */

.drivers { padding: clamp(72px, 10vw, 140px) 0 clamp(48px, 6vw, 80px); }
.drivers__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  margin-bottom: 32px;
}
.drivers__arrows { display: flex; gap: 8px; }
.arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.arrow:hover { background: var(--text); color: #000; }
.arrow:disabled { opacity: 0.3; pointer-events: none; }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.drivers__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(400px, 78vw);
  gap: 16px;
  padding: 0 var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.drivers__track::-webkit-scrollbar { display: none; }

.driver {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 28px;
  scroll-snap-align: start;
  overflow: hidden;
  isolation: isolate;
  border-radius: 4px;
  color: var(--text);
  background: #1a1a1a;
}
.driver__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.driver:hover .driver__photo { transform: scale(1.05); }
/* Carte sans photo : grande initiale sur fond sombre, sous la photo si on en ajoute une */
.driver__initial {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: grid;
  place-items: center;
  padding-top: 12%;
  font-size: clamp(200px, 22vw, 300px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(217, 178, 95, 0.35);
  background:
    radial-gradient(ellipse 80% 60% at 50% 85%, rgba(217, 178, 95, 0.16), transparent 70%),
    linear-gradient(160deg, #262626 0%, #111 100%);
}
.driver::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.72) 100%);
}
.driver::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.driver:hover::before { transform: scaleX(1); }
.driver__num {
  position: absolute;
  right: 22px;
  bottom: 10px;
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.7);
}
.driver__name { font-size: 38px; }
.driver__role { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--accent); }

/* Team manager */
.manager {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  margin: 0 var(--gutter) clamp(48px, 6vw, 80px);
  padding: clamp(20px, 3vw, 32px);
  border-radius: 4px;
  background: var(--card);
}
.manager__photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(160deg, #2a2a2a, #121212);
}
.manager__photo::before {
  content: "A";
  font-size: 160px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.2);
}
.manager__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}
.manager__body h3 { font-size: clamp(48px, 6vw, 80px); }
.manager__body p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 20px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}
.manager__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.manager__tags li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Résultats et podiums ---------- */

.podiums { padding: clamp(72px, 10vw, 140px) var(--gutter); background: #000; }
.podiums__intro {
  max-width: 720px;
  margin-top: 24px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}
/* Totaux de la saison */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 24px;
  margin: clamp(32px, 4vw, 56px) 0 0;
}
.kpi { padding: 20px 0; border-top: 1px solid var(--line); }
.kpi__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 700;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.kpi__value small { font-size: 0.35em; font-weight: 500; color: var(--muted); }
.kpi--gold .kpi__value { color: var(--accent); }
.kpi__label { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.kpis__note { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* Liste des courses de la saison */
.season { margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
.season__race {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 16px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.season__race:first-child { border-top: 1px solid var(--line); }
.season__date { display: flex; align-items: baseline; gap: 8px; font-size: 16px; color: var(--muted); }
.season__date b { font-size: 36px; line-height: 1; color: var(--text); }
.season__event h3 { font-size: 26px; }
.season__event p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.season__teams { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.season__teams li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pos {
  display: inline-block;
  min-width: 56px;
  height: 40px;
  padding: 0 8px;
  line-height: 38px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pos sup { font-size: 0.5em; }
.pos--podium { border-color: var(--accent); color: var(--accent); }
.pos--win { border-color: var(--accent); background: var(--accent); color: #000; }
.team { font-size: 18px; font-weight: 700; }
.cat {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.podiums__subtitle { margin: clamp(56px, 7vw, 96px) 0 24px; font-size: clamp(32px, 4vw, 48px); }

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(160px, 18vw, 260px);
  gap: 12px;
}
.mosaic figure { position: relative; margin: 0; overflow: hidden; border-radius: 4px; background: var(--card); }
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic__big { grid-column: span 2; grid-row: span 2; }
.mosaic figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}
.mosaic__wide { grid-column: span 2; }

/* ---------- Calendrier ---------- */

.calendar { padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(72px, 10vw, 140px); }
.races { list-style: none; margin: 32px 0 0; padding: 0; }
.race {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(0, 220px) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s, padding 0.35s var(--ease);
}
.race:first-child { border-top: 1px solid var(--line); }
.race:hover { background: rgba(255, 255, 255, 0.03); padding-left: 12px; }
.race__date { display: flex; align-items: baseline; gap: 8px; font-size: 18px; color: var(--muted); }
.race__date b { font-size: 44px; line-height: 1; color: var(--text); }
.race__track { font-size: 28px; font-weight: 700; }
.race__format { color: var(--muted); }
.race__status {
  justify-self: end;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.race__status--next { background: var(--accent); border-color: var(--accent); color: #000; }
.race.is-past { opacity: 0.5; }

/* ---------- À découvrir aussi ---------- */

.more { padding: clamp(72px, 10vw, 120px) var(--gutter); background: #000; }
.more__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(260px, auto));
  gap: 16px;
  margin-top: 40px;
}
.card {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 4px;
  background: var(--card);
}
.card--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.card--tall { grid-column: 2; grid-row: 1 / span 2; grid-template-rows: auto 1fr; }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px; }
.card__body h3 { font-size: clamp(28px, 3vw, 40px); }
.card__meta { margin-top: -8px; font-size: 16px; font-weight: 700; color: var(--accent); }
.card__visual { position: relative; min-height: 220px; overflow: hidden; }
.card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card:hover .card__visual img { transform: scale(1.05); }
.card__visual--logo { background: #000; }
.card__visual--logo img { object-fit: contain; padding: 12%; }

.partners {
  margin-top: 16px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 4px;
  background: var(--card);
}
.partners__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.partners__head h3 { font-size: clamp(28px, 3vw, 40px); }
.partners__logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.partners__logos li {
  --pad: clamp(18px, 2.5vw, 32px);
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 4px;
  background: #0f0f0f;
  transition: background 0.3s, transform 0.4s var(--ease);
}
.partners__logos li:hover { background: #161616; transform: translateY(-4px); }
.partners__logos a { position: absolute; inset: 0; border-radius: 4px; }
/* Le logo tient dans la tuile quelle que soit sa forme (horizontal ou vertical) */
.partners__logos img {
  position: absolute;
  top: var(--pad);
  left: var(--pad);
  width: calc(100% - 2 * var(--pad));
  height: calc(100% - 2 * var(--pad));
  object-fit: contain;
}

/* ---------- Devenir partenaire ---------- */

.sponsor { padding: clamp(72px, 10vw, 140px) var(--gutter); background: #000; border-top: 1px solid var(--line); }
.sponsor__intro {
  max-width: 760px;
  margin-top: 24px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}
.sponsor__highlight {
  max-width: 900px;
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  font-size: 17px;
  line-height: 1.45;
}
.sponsor__highlight b { display: block; margin-bottom: 4px; color: var(--accent); font-size: 20px; }
.sponsor__subtitle { margin: clamp(56px, 7vw, 88px) 0 24px; font-size: clamp(30px, 3.6vw, 44px); }
.sponsor__note { max-width: 900px; margin: -8px 0 24px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.sponsor__price { margin: -8px 0 20px; font-size: clamp(44px, 5.5vw, 72px); font-weight: 800; line-height: 1; color: var(--accent); }
.sponsor__price small { font-size: 0.38em; font-weight: 700; color: var(--text); }
.sponsor h4 { font-size: 22px; line-height: 1.05; }

.reasons, .steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reason, .steps li { padding: 24px; border-top: 3px solid var(--accent); background: var(--card); border-radius: 4px; }
.reason__num { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 800; color: var(--accent); }
.reason p, .steps p, .support p { margin-top: 10px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.78); }

.audience {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.audience li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.35; color: var(--muted); }
.audience b { display: block; margin-bottom: 6px; font-size: clamp(40px, 4.4vw, 60px); line-height: 0.9; color: var(--text); }

.tiers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tier { grid-column: span 2; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 4px; background: var(--card); overflow: hidden; }
.tier--wide { grid-column: span 3; }
.tier header { padding: 24px; text-align: center; border-bottom: 1px solid var(--line); }
.tier h4 { font-size: 20px; letter-spacing: 0.1em; }
.tier__period { margin-top: 6px; font-size: 13px; letter-spacing: 0.12em; color: var(--muted); }
.tier ul { margin: 0; padding: 20px 24px 24px; list-style: none; display: grid; gap: 10px; }
.tier li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, 0.85); }
.tier li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.tier--featured { border-color: var(--accent); }
.tier--featured header { background: var(--accent); color: #000; border-bottom-color: var(--accent); }
.tier--featured .tier__period { color: rgba(0, 0, 0, 0.65); }

.support { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.support article { padding: 24px; border: 1px solid var(--line); border-radius: 4px; }

.sponsor__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: clamp(40px, 5vw, 64px); }
.sponsor__cta p { max-width: 520px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Contact ---------- */

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  text-align: center;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(217, 178, 95, 0.16), transparent 70%), var(--bg);
}
.contact h2 { max-width: 900px; font-size: clamp(40px, 6vw, 80px); }
.contact__mail {
  margin-top: -12px;
  font-size: 18px;
  text-transform: none;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.contact__mail:hover { color: var(--accent); }

/* ---------- Pied de page ---------- */

.footer { padding: 32px var(--gutter) 0; background: #000; border-top: 1px solid var(--line); }
.footer__top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 56px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer__top:hover { color: var(--text); }
.footer__top svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 32px; }
.footer h3 { margin-bottom: 18px; font-size: 14px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer ul a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer ul a:hover { color: var(--text); }
.social { display: flex; gap: 14px; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.2s, color 0.2s;
}
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social .fill { fill: currentColor; stroke: none; }
.footer__logo { width: 160px; height: auto; margin: 56px auto 32px; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 16px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.footer__legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--accent); }

/* ---------- Page Mentions légales ---------- */

.legal__brand img { width: auto; height: 34px; }
.legal { max-width: 820px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter); }
.legal h1 { font-size: clamp(44px, 7vw, 72px); }
.legal section { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h2 { font-size: 26px; color: var(--accent); }
.legal p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.55;
  text-transform: none;
  color: rgba(255, 255, 255, 0.85);
}
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.todo {
  padding: 1px 6px;
  border: 1px dashed var(--accent);
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent);
}
.footer--legal { padding-top: 0; }

/* ---------- Page 404 ---------- */

.lost {
  min-height: calc(100svh - 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 48px var(--gutter);
  text-align: center;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, #1e1e1e, #000 75%);
}
.lost__logo { width: min(260px, 60vw); height: auto; margin-bottom: 12px; }
.lost h1 { font-size: clamp(56px, 10vw, 120px); }
.lost__text { max-width: 520px; font-size: 18px; line-height: 1.45; color: rgba(255, 255, 255, 0.8); }
.lost .btn { margin-top: 12px; }
.lost__checker { position: static; }

/* ---------- Apparition au défilement ---------- */

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.machine .pill.reveal { align-self: center; }

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

@media (max-width: 900px) {
  .reasons, .steps, .support { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier, .tier--wide { grid-column: span 1; }
  .tier--featured { grid-column: 1 / -1; }
  .machine__grid { grid-template-columns: 1fr; }
  .machine__visual { order: -1; aspect-ratio: 16 / 9; }
  .machine__number { font-size: clamp(110px, 30vw, 220px); }
  .manager { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season__race { grid-template-columns: 96px minmax(0, 1fr); align-items: start; }
  .season__date { flex-direction: column; gap: 2px; font-size: 14px; }
  .season__date b { font-size: 30px; white-space: nowrap; }
  .season__teams { grid-column: 2; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 36vw, 240px); }
  .manager__photo { aspect-ratio: 4 / 3; }
  .race { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 8px 16px; }
  .race__date b { font-size: 34px; }
  .race__track { font-size: 22px; }
  .race__format { grid-column: 2; grid-row: 2; font-size: 14px; }
  .race__status { grid-column: 3; grid-row: 1 / span 2; }
  .more__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .card--tall { grid-column: auto; grid-row: auto; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .reasons, .steps, .support, .tiers { grid-template-columns: 1fr; }
  .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sponsor__cta .btn { width: 100%; white-space: normal; text-align: center; }
  :root { --nav-h: 56px; }
  .subnav__cta-secondary { display: none; }
  .subnav__cta .btn { min-height: 38px; padding: 10px 14px; font-size: 14px; }
  .subnav__links a:not(.subnav__brand) { font-size: 14px; }
  .subnav__brand { display: none; }
  .hero__scroll { display: none; }
  .card--split { grid-template-columns: 1fr; }
  .partners__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__visual { min-height: 180px; }
  .race { grid-template-columns: 72px minmax(0, 1fr); }
  .race__date { flex-direction: column; gap: 0; font-size: 14px; }
  .race__status { grid-column: 2; grid-row: 3; justify-self: start; }
  .drivers__arrows { display: none; }
  .driver__name { font-size: 32px; }
  .stat__value { font-size: 52px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__social { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .manifesto__text .w { color: var(--text); }
}

/* Les photos AVIF passent par <picture> : il ne doit pas changer la mise en page des images */
picture { display: contents; }
