/* ==========================================================================
   Scuderia : styles du thème
   Palette tirée du blason : sable (noir), argent (ivoire), gueules (rouge).
   ========================================================================== */

:root {
  --ink: #0c0c0b;
  --ink-2: #151513;
  --ink-3: #201f1c;
  --paper: #f3efe7;
  --paper-2: #ebe5d9;
  --paper-3: #ddd4c3;
  --white: #fffdf9;
  --rosso: #c8102e;
  --rosso-hi: #de1a3a;
  --rosso-soft: #ff5a6b;

  --on-ink-2: rgba(243, 239, 231, .7);
  --on-ink-3: rgba(243, 239, 231, .16);
  --on-paper-2: rgba(12, 12, 11, .68);
  --on-paper-3: rgba(12, 12, 11, .14);

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --header-h: 76px;
  --radius: 4px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --z-menu: 45;
  --z-header: 50;
  --z-modal: 80;
  --z-proto: 90;
  --z-intro: 100;
}

/* Contexte clair / sombre : chaque section fixe sa couleur de texte et de fond */
.section--paper, .section--map { --fg: var(--ink); --bg: var(--paper); --fg-2: var(--on-paper-2); --fg-3: var(--on-paper-3); }
.section--ink, .hero, .contact, .footer, .menu, .lightbox, .vmodal { --fg: var(--paper); --bg: var(--ink); --fg-2: var(--on-ink-2); --fg-3: var(--on-ink-3); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
html.is-locked { overflow: hidden; padding-right: var(--sbw, 0); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ol, ul, dl, dd { margin: 0; }
ol, ul { list-style: none; padding: 0; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--rosso-soft); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--rosso); color: #fff; }
[hidden] { display: none !important; }

.sprite { display: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 12px 20px; border-radius: 999px; background: var(--rosso); color: #fff; font-weight: 600; transition: top .25s var(--ease); }
.skip-link:focus { top: 16px; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--f-mono); font-size: .75rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; }
.eyebrow { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }

/* Blason : masque alpha coloré par currentColor, utilisable sur fond clair ou sombre */
.crest {
  display: inline-block;
  aspect-ratio: 752 / 900;
  background-color: currentColor;
  -webkit-mask: url("../img/crest.webp") center / contain no-repeat;
  mask: url("../img/crest.webp") center / contain no-repeat;
}

/* Pastille de numéro de course */
.roundel {
  display: inline-grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink);
  font: 800 .9rem/1 var(--f-sans); font-stretch: 75%; letter-spacing: 0;
}

/* ---------- Boutons & liens ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 48px; padding: .85em 1.6em; border-radius: 999px;
  font: 600 .8125rem/1 var(--f-sans); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase;
  transition: color .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .4s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--red { background: var(--rosso); color: #fff; }
.btn--red:hover { background: var(--rosso-hi); }
.btn--line { border: 1px solid currentColor; }
.btn--line::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg, var(--ink));
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.btn--line:hover { color: var(--bg, var(--paper)); border-color: var(--fg, var(--ink)); }
.btn--line:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--lg { min-height: 56px; padding-inline: 2em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55em; padding-bottom: 5px;
  font-weight: 600; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; font-stretch: 112%;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .icon { transition: transform .4s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--fg-3, var(--on-ink-3));
  transition: background-color .3s, border-color .3s, color .3s, transform .2s var(--ease);
}
.icon-btn:hover { background: var(--fg, var(--paper)); border-color: var(--fg, var(--paper)); color: var(--bg, var(--ink)); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Intro (une fois par session) ---------- */
.intro {
  position: fixed; inset: 0; z-index: var(--z-intro);
  display: grid; place-items: center; align-content: center; gap: 22px;
  background: var(--ink); color: var(--paper);
  clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease-io);
}
.no-intro .intro, html:not(.js) .intro { display: none; }
.intro.is-leaving { clip-path: inset(0 0 100% 0); }
.intro__crest { width: clamp(96px, 11vw, 132px); opacity: 0; transform: translateY(14px); animation: intro-up .9s var(--ease) .1s forwards; }
.intro__word { font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: .32em; font-size: .8125rem; opacity: 0; transform: translateY(14px); animation: intro-up .9s var(--ease) .25s forwards; }
.intro__line { position: relative; width: min(300px, 60vw); height: 2px; background: var(--on-ink-3); overflow: hidden; }
.intro__line::after { content: ""; position: absolute; inset: 0; background: var(--rosso); transform: scaleX(0); transform-origin: left; animation: intro-line 1.05s var(--ease-io) .35s forwards; }
@keyframes intro-up { to { opacity: 1; transform: none; } }
@keyframes intro-line { to { transform: scaleX(1); } }

/* ---------- Barre de progression ---------- */
.progress { position: fixed; inset: 0 0 auto; z-index: calc(var(--z-header) + 1); height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--rosso); transform: scaleX(0); transform-origin: left; will-change: transform; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  height: var(--header-h); padding-inline: var(--gutter);
  display: flex; align-items: center; gap: clamp(16px, 2.6vw, 40px);
  color: var(--paper);
  transition: transform .6s var(--ease);
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(12, 12, 11, .8);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--on-ink-3);
  opacity: 0; transition: opacity .4s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }
html.is-locked .header { padding-right: calc(var(--gutter) + var(--sbw, 0px)); }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; transition: opacity .5s, transform .7s var(--ease); }
/* Sur le hero, le grand blason suffit : celui de l'en-tête n'apparaît qu'une fois le hero dépassé. */
.js .header.is-on-hero .brand { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.brand__crest { height: 52px; transition: transform .6s var(--ease); }
.brand:hover .brand__crest { transform: rotate(-6deg) scale(1.05); }
.brand__word { display: flex; flex-direction: column; font-stretch: 125%; font-weight: 800; font-size: .95rem; line-height: .95; letter-spacing: .02em; text-transform: uppercase; }
.brand__word b { font-weight: 300; }

.nav ul { display: flex; gap: clamp(14px, 1.8vw, 30px); }
.nav a {
  position: relative; display: block; padding-block: 8px;
  font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-stretch: 112%;
  color: var(--on-ink-2); transition: color .3s;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rosso); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--paper); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.header__cta { min-height: 42px; padding: .7em 1.3em; }

.menu-toggle { display: none; align-items: center; gap: 12px; min-height: 44px; padding-inline: 4px; font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-stretch: 112%; }
.menu-toggle__icon { position: relative; width: 26px; height: 12px; }
.menu-toggle__icon i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle__icon i:first-child { top: 0; }
.menu-toggle__icon i:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] i:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1099px) {
  .nav, .header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand__crest { height: 38px; }
  .brand__word { font-size: .8rem; }
}

/* ---------- Menu plein écran ---------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: grid; align-content: center; gap: 40px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: var(--ink); color: var(--paper);
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io);
  overflow-y: auto;
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__list { counter-reset: m; }
.menu__list li { counter-increment: m; overflow: hidden; border-bottom: 1px solid var(--on-ink-3); }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px; padding-block: 10px;
  font-stretch: 125%; font-weight: 800; text-transform: uppercase; line-height: 1;
  font-size: clamp(1.9rem, 6.4vw, 4rem); letter-spacing: -.01em;
  transform: translateY(105%); transition: transform .9s var(--ease) calc(var(--i) * 45ms + .2s), color .3s;
}
.menu.is-open .menu__list a { transform: none; }
.menu__list a::before { content: counter(m, decimal-leading-zero); font: 400 .75rem/1 var(--f-mono); letter-spacing: .1em; color: var(--rosso-soft); }
.menu__list a:hover { color: var(--rosso-soft); }
.menu__aside { display: grid; gap: 24px; }
.menu__preview { display: none; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--ink-2); }
.menu__preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.menu__preview img.is-swapping { opacity: .2; }
.menu__social { display: flex; flex-wrap: wrap; gap: 10px 24px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-2); }
.menu__social a:hover { color: var(--paper); }
@media (min-width: 900px) {
  .menu { grid-template-columns: 1.3fr minmax(260px, .7fr); align-items: center; gap: clamp(40px, 6vw, 96px); padding-inline: calc(var(--gutter) * 1.5); }
  .menu__preview { display: block; max-height: 62vh; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; background: var(--ink); color: var(--paper); touch-action: pan-y; }
.hero__slides { position: absolute; inset: 0; z-index: -3; will-change: transform; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease-io); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transform-origin: var(--origin, 50% 50%); }
.hero__slide.is-active img { animation: kenburns 10s linear both; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.01); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12,12,11,.78) 0%, rgba(12,12,11,.42) 18%, rgba(12,12,11,0) 36%, rgba(12,12,11,0) 46%, rgba(12,12,11,.72) 78%, var(--ink) 100%),
    radial-gradient(90% 60% at 0% 100%, rgba(12,12,11,.5), transparent 70%);
}
.hero__grain {
  position: absolute; inset: -60%; z-index: -1; pointer-events: none; opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(5) infinite;
}
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -4%); } 60% { transform: translate(-2%, -2%); } 80% { transform: translate(4%, 4%); } }

.hero__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto;
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(20px, 3.5vw, 48px));
  padding-bottom: clamp(18px, 2.6vw, 32px);
  will-change: transform, opacity;
}
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; text-shadow: 0 1px 14px rgba(12,12,11,.55); }
.hero__eyebrow { color: var(--on-ink-2); line-height: 1.7; }
.hero__caption { text-align: right; transition: opacity .45s, transform .6s var(--ease); }
.hero__caption.is-changing { opacity: 0; transform: translateY(10px); }
.hero__cap-meta { color: var(--on-ink-2); }
.hero__cap-title { margin-top: 10px; font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.1rem, 1.9vw, 1.7rem); line-height: 1; }
.hero__cap-car { margin-top: 6px; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.25rem, 2.1vw, 1.9rem); line-height: 1.1; }

.hero__title {
  align-self: end; margin-top: 32px;
  font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, calc(15vw * var(--nom, 1)), 16rem); line-height: .8; letter-spacing: -.025em;
}
/* Le blason, dérivé des armoiries de la famille de Chessé, ouvre le titre : il a la place d'honneur. */
.hero__lockup { display: inline-flex; align-items: center; gap: .12em; }
.hero__crest { height: 1.62em; flex: none; color: var(--paper); filter: drop-shadow(0 .03em .12em rgba(12,12,11,.45)); }
.hero__words { display: flex; flex-direction: column; }
@media (max-width: 700px) {
  .hero__lockup { flex-direction: column; align-items: flex-start; gap: .22em; }
  .hero__crest { height: 2.2em; }
}
.hero__line { display: block; white-space: nowrap; }
.hero__line--outline { color: transparent; -webkit-text-stroke: max(1px, .011em) var(--paper); }

.hero__bottom {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px 32px;
  margin-top: clamp(16px, 2.4vw, 28px); padding-top: clamp(14px, 2vw, 22px);
  border-top: 1px solid var(--on-ink-3);
}
.hero__tagline { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.1rem, 1.6vw, 1.45rem); color: var(--on-ink-2); line-height: 1.2; }
.hero__controls { display: flex; align-items: center; gap: 10px; }
.hero__count { min-width: 64px; color: var(--on-ink-2); }
.hero__count span { color: var(--paper); }
.hero__bars { display: flex; gap: 6px; margin-right: 8px; }
.hero__bar { position: relative; width: clamp(26px, 3.4vw, 54px); height: 28px; }
.hero__bar::before, .hero__bar i { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; }
.hero__bar::before { background: var(--on-ink-3); }
.hero__bar i { background: var(--paper); transform: scaleX(0); transform-origin: left; }
.hero__bar.is-active i { animation: bar-fill var(--slide-dur, 7s) linear forwards; }
.hero.is-paused .hero__bar.is-active i { animation-play-state: paused; }
@keyframes bar-fill { to { transform: scaleX(1); } }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; color: var(--on-ink-2); }
.hero__scroll:hover { color: var(--paper); }
.hero__scroll span { position: relative; width: 1px; height: 34px; background: var(--on-ink-3); overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--paper); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

@media (max-width: 800px) {
  .hero__top { flex-direction: column; }
  .hero__caption { text-align: left; }
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .hero__controls .icon-btn[data-hero-prev], .hero__controls .icon-btn[data-hero-next] { display: none; }
}

/* ---------- Bandeaux défilants ---------- */
.marquee { position: relative; overflow: hidden; background: var(--rosso); color: #fff; padding-block: 18px; }
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-dur, 42s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  display: flex; align-items: center; gap: .45em; white-space: nowrap; padding-right: 1.4em;
  font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(1rem, 1.7vw, 1.4rem);
}
.marquee__item em { font-family: var(--f-serif); font-weight: 400; text-transform: none; font-stretch: 100%; font-size: 1.15em; letter-spacing: 0; }
.marquee__item::after { content: ""; width: .9em; height: .55em; margin-left: .95em; background: currentColor; clip-path: polygon(0 100%, 50% 0, 100% 100%, 82% 100%, 50% 34%, 18% 100%); opacity: .85; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Palmarès en liste fixe : les épreuves et leurs années, chaque année mène à sa participation */
.palmares { background: var(--ink); color: var(--paper); border-block: 1px solid var(--on-ink-3); }
.palmares__inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px clamp(24px, 3.4vw, 56px); padding-block: 22px; }
.palmares__label { color: var(--rosso-soft); }
.palmares__list { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px clamp(24px, 3.4vw, 56px); margin: 0; padding: 0; list-style: none; }
.palmares__event { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.palmares__name { font-weight: 700; font-stretch: 125%; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.palmares__year { font-family: var(--f-serif); font-style: italic; font-size: 1.25rem; line-height: 1; color: var(--on-ink-2); }
a.palmares__year { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 1px; transition: color .25s var(--ease), text-decoration-color .25s var(--ease); }
a.palmares__year:hover, a.palmares__year:focus-visible { color: var(--paper); text-decoration-color: var(--rosso-soft); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(88px, 11vw, 168px); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--map {
  background-color: var(--paper-2); color: var(--ink);
  background-image: linear-gradient(var(--on-paper-3) 1px, transparent 1px), linear-gradient(90deg, var(--on-paper-3) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
}
.section--map::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, transparent, var(--paper-2) 85%); pointer-events: none; }
.section--map > * { position: relative; }

.sec-head { display: grid; gap: 28px; margin-bottom: clamp(48px, 6.5vw, 96px); }
@media (min-width: 960px) { .sec-head--split { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 64px; } }
.sec-index { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.sec-index .roundel { width: 2.5rem; height: 2.5rem; font-size: .85rem; }
.sec-title {
  margin-top: 18px;
  font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.5rem, 6.8vw, 6.6rem); line-height: .9; letter-spacing: -.02em;
  text-wrap: balance;
}
.sec-title em { font-family: var(--f-serif); font-weight: 400; text-transform: none; font-stretch: 100%; letter-spacing: -.01em; font-size: 1.08em; }
.section--paper .sec-title em, .section--map .sec-title em { color: var(--rosso); }
.section--ink .sec-title em, .contact .sec-title em { color: var(--rosso-soft); }
.sec-lede { font-family: var(--f-serif); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.22; max-width: 30ch; color: var(--fg-2); text-wrap: pretty; }

.h3 { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: .95; letter-spacing: -.01em; }

/* ---------- 01 L’Écurie ---------- */
.ecurie__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .ecurie__grid { grid-template-columns: 1.2fr 1fr; gap: clamp(48px, 8vw, 140px); align-items: start; } }
.ecurie__quote p { font-family: var(--f-serif); font-size: clamp(2.1rem, 4.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.ecurie__quote em { color: var(--rosso); }
.ecurie__text { display: grid; gap: 20px; justify-items: start; max-width: 52ch; color: var(--on-paper-2); }
.ecurie__text .lede { color: var(--ink); font-size: 1.3rem; line-height: 1.45; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(64px, 9vw, 128px); border-top: 1px solid var(--on-paper-3); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 28px 16px 24px 0; border-bottom: 1px solid var(--on-paper-3); }
.stat__num { font-stretch: 125%; font-weight: 800; font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-paper-2); }
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(5, 1fr); }
  .stat { border-bottom: 0; }
  .stat + .stat { padding-left: 20px; border-left: 1px solid var(--on-paper-3); }
}

.blason { display: grid; gap: 56px; margin-top: clamp(80px, 10vw, 150px); align-items: center; }
@media (min-width: 960px) { .blason { grid-template-columns: minmax(280px, .8fr) 1.2fr; gap: clamp(56px, 8vw, 128px); } }
.blason__figure { position: relative; width: min(100%, 400px); margin-inline: auto; color: var(--ink); }
.blason__crest { width: 100%; }
.hotspot {
  position: absolute; left: var(--x); top: var(--y);
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rosso); color: #fff; box-shadow: 0 0 0 3px var(--paper);
  animation: ping 2.6s var(--ease) infinite;
  transition: transform .35s var(--ease), background-color .3s;
}
.hotspot:nth-of-type(2) { animation-delay: .4s; }
.hotspot:nth-of-type(3) { animation-delay: .8s; }
.hotspot:nth-of-type(4) { animation-delay: 1.2s; }
.hotspot .icon { width: 15px; height: 15px; stroke-width: 2.4; transition: transform .35s var(--ease); }
.hotspot:hover, .hotspot.is-active { transform: scale(1.18); animation: none; }
.hotspot.is-active { background: var(--ink); }
.hotspot.is-active .icon { transform: rotate(45deg); }
@keyframes ping { 0% { box-shadow: 0 0 0 3px var(--paper), 0 0 0 3px rgba(200,16,46,.55); } 70%, 100% { box-shadow: 0 0 0 3px var(--paper), 0 0 0 20px rgba(200,16,46,0); } }
.blason__title { margin-top: 14px; font-family: var(--f-serif); font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.02; }
.blason__intro { margin-top: 18px; color: var(--on-paper-2); max-width: 58ch; }
.blason__intro em { color: var(--ink); }
.blason__list { margin-top: 28px; border-top: 1px solid var(--on-paper-3); counter-reset: b; }
.blason__list li { counter-increment: b; border-bottom: 1px solid var(--on-paper-3); }
.blason__item { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; width: 100%; padding: 18px 12px 18px 0; text-align: left; transition: background-color .35s, padding .45s var(--ease); }
.blason__item::before { content: counter(b, decimal-leading-zero); grid-row: span 2; padding-top: 5px; font-family: var(--f-mono); font-size: .75rem; color: var(--on-paper-2); transition: color .3s; }
.blason__item strong { font-weight: 700; font-stretch: 112%; font-size: 1.05rem; }
.blason__item span { color: var(--on-paper-2); }
.blason__item:hover, .blason__item.is-active { padding-left: 14px; background: var(--paper-2); }
.blason__item:hover::before, .blason__item.is-active::before { color: var(--rosso); }

/* ---------- Interlude ---------- */
.interlude { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: clamp(520px, 92vh, 980px); background: var(--ink); color: var(--paper); }
.interlude__img { position: absolute; left: 0; top: -12%; z-index: -2; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.interlude::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,12,11,.85) 0%, rgba(12,12,11,.15) 60%, rgba(12,12,11,.25) 100%), linear-gradient(90deg, rgba(12,12,11,.55) 0%, rgba(12,12,11,0) 55%); }
.interlude__quote { padding-bottom: clamp(48px, 8vw, 112px); }
.interlude__quote p { font-family: var(--f-serif); font-size: clamp(2.4rem, 6.4vw, 6.4rem); line-height: .98; max-width: 15ch; text-wrap: balance; }
.interlude__quote footer { margin-top: 24px; color: var(--on-ink-2); }

/* ---------- 02 Le Garage ---------- */
.garage { padding-bottom: clamp(48px, 6vw, 96px); }
.garage .sec-head { margin-bottom: clamp(24px, 3vw, 40px); }
.garage__pin { position: relative; }
.garage__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.garage__track { display: flex; gap: clamp(28px, 4vw, 72px); width: max-content; padding-inline: var(--gutter); will-change: transform; }
.car { position: relative; flex: none; width: min(1180px, 84vw); display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 3vw, 52px); align-items: end; }
.car__media { position: relative; aspect-ratio: 16 / 10; max-height: 68vh; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.car__media img { width: 112%; max-width: none; height: 100%; margin-left: -6%; object-fit: cover; will-change: transform; }
.car__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--livery); }
.car__roundel { position: absolute; top: 18px; left: 18px; width: 64px; height: 64px; font-size: 1.45rem; border-width: 3px; }
.car__body { padding-bottom: 6px; }
.car__index { color: var(--on-ink-2); }
.car__name { margin-top: 14px; font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.9rem, 3.3vw, 3.3rem); line-height: .92; letter-spacing: -.015em; text-wrap: balance; }
.car__nick { margin-top: 12px; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.5rem, 2.3vw, 2.2rem); line-height: 1.1; color: color-mix(in oklab, var(--livery) 62%, white); }
.car__nick small { margin-left: 6px; font-family: var(--f-mono); font-style: normal; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-2); white-space: nowrap; }
.car__lede { margin-top: 16px; color: var(--on-ink-2); max-width: 40ch; }
.car__facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; margin-top: 22px; border-top: 1px solid var(--on-ink-3); }
.car__facts div { padding: 11px 0; border-bottom: 1px solid var(--on-ink-3); }
.car__facts dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-2); }
.car__facts dd { margin-top: 3px; font-weight: 600; font-stretch: 112%; }
.car__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.garage__hud { display: flex; align-items: center; gap: 20px; margin-top: clamp(24px, 4vh, 48px); color: var(--on-ink-2); }
.garage__bar { position: relative; flex: 1; height: 2px; background: var(--on-ink-3); overflow: hidden; }
.garage__bar i { position: absolute; inset: 0; background: var(--rosso); transform: scaleX(0); transform-origin: left; }
.garage.is-static .garage__sticky { position: static; height: auto; display: block; overflow: visible; }
.garage.is-static .garage__track {
  width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding-bottom: 8px; scrollbar-width: none; transform: none !important;
}
.garage.is-static .garage__track::-webkit-scrollbar { display: none; }
.garage.is-static .car { scroll-snap-align: start; }
@media (max-width: 899px) {
  .car { width: 86vw; grid-template-columns: 1fr; gap: 20px; }
  .car__media { max-height: none; }
  .car__facts { grid-template-columns: 1fr 1fr; }
}

/* Grille : une grande carte photo par voiture, dans le style de sa fiche */
.garage-grid { display: grid; gap: clamp(14px, 1.6vw, 24px); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) {
  .garage-grid { grid-template-columns: 1fr 1fr; }
  .garage-grid--impair .garage-car:last-child { grid-column: 1 / -1; }
}
.garage-car { position: relative; container-type: inline-size; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); color: var(--paper); }
.garage-car__hero {
  position: relative; isolation: isolate; overflow: hidden; flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(340px, 31vw, 480px); padding: clamp(22px, 2.6vw, 36px);
}
.garage-car__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.garage-car__hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(12,12,11,.55) 0%, rgba(12,12,11,0) 20%, rgba(12,12,11,0) 48%, rgba(12,12,11,.78) 86%, rgba(12,12,11,.9) 100%); }
.garage-car__hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--livery); transform-origin: bottom; transition: transform .5s var(--ease); }
.garage-car:hover .garage-car__img { transform: scale(1.045); }
.garage-car:hover .garage-car__hero::after { transform: scaleY(1.8); }
.garage-car:has(.garage-car__name a:focus-visible) { outline: 2px solid var(--paper); outline-offset: 3px; }
.garage-car__index { position: absolute; top: 20px; left: clamp(22px, 2.6vw, 36px); color: var(--on-ink-2); }
.garage-car__body { display: grid; gap: 14px; padding: 4px clamp(22px, 2.6vw, 36px) clamp(14px, 1.6vw, 22px); }
.garage-car__row { display: flex; align-items: flex-end; gap: clamp(14px, 1.6vw, 22px); }
.garage-car__roundel { width: clamp(58px, 5vw, 78px); height: clamp(58px, 5vw, 78px); font-size: clamp(1.15rem, 1.7vw, 1.65rem); border-width: 3px; }
.garage-car__name { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 3.1vw, 3.1rem); line-height: .9; letter-spacing: -.02em; text-wrap: balance; color: var(--paper); }
.garage-car__name a { color: inherit; text-decoration: none; outline: none; }
.garage-car__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.garage-car__nick { margin-top: 8px; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.35rem, 2vw, 1.95rem); line-height: 1.05; color: color-mix(in oklab, var(--livery) 62%, white); }
.garage-car__nick small { margin-left: 4px; font-family: var(--f-mono); font-style: normal; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-2); white-space: nowrap; }
.garage-car__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--on-ink-3); }
.garage-car__facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 20px 12px 18px 0; }
.garage-car__facts div + div { padding-left: 14px; border-left: 1px solid var(--on-ink-3); }
.garage-car__facts dt { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-2); }
.garage-car__facts dd { margin: 0; font-weight: 800; font-stretch: 125%; font-size: clamp(.95rem, 1.25vw, 1.2rem); line-height: 1.1; overflow-wrap: break-word; }
.garage-car__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; }
.garage-car__more { display: inline-flex; align-items: center; gap: .6em; font: 600 .78rem/1 var(--f-sans); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; }
.garage-car__more .icon { width: 1.15em; height: 1.15em; transition: transform .4s var(--ease); }
.garage-car:hover .garage-car__more .icon { transform: translateX(5px); }
.garage-car__photos { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .55em; min-height: 44px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-2); transition: color .25s var(--ease); }
.garage-car__photos .icon { width: 1.2em; height: 1.2em; }
.garage-car__photos:hover, .garage-car__photos:focus-visible { color: var(--paper); }
/* Carte étroite (tablette, téléphone) : les chiffres passent sur deux colonnes */
@container (max-width: 600px) {
  .garage-car__facts { grid-template-columns: 1fr 1fr; }
  .garage-car__facts div { padding-block: 14px 12px; }
  .garage-car__facts div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .garage-car__facts div:nth-child(n+3) { border-top: 1px solid var(--on-ink-3); }
}
@container (max-width: 420px) { .garage-car__row { flex-direction: column; align-items: flex-start; } }
@media (max-width: 640px) { .garage-car__hero { min-height: 400px; } }
@media (prefers-reduced-motion: reduce) { .garage-car__img, .garage-car__hero::after { transition: none; } }

/* ---------- Vitrine du garage (page /automobiles/) ---------- */
/* Menu collant des voitures : il suit l'en-tête, qui se cache à la descente */
.garage-nav {
  position: sticky; top: var(--header-h); z-index: 30;
  background: rgba(12, 12, 11, .9); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-block: 1px solid var(--on-ink-3); color: var(--paper);
  transition: top .6s var(--ease);
}
body:has(.header.is-hidden) .garage-nav { top: 0; }
.admin-bar .garage-nav { top: calc(var(--header-h) + 32px); }
.admin-bar:has(.header.is-hidden) .garage-nav { top: 32px; }
.garage-nav__list { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin-block: 0; padding: 0; list-style: none; }
.garage-nav__link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 14px; color: var(--on-ink-2); transition: color .3s var(--ease), background-color .3s var(--ease); }
.garage-nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--livery); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.garage-nav__link:hover { color: var(--paper); background: rgba(243, 239, 231, .04); }
.garage-nav__link[aria-current="true"] { color: var(--paper); }
.garage-nav__link[aria-current="true"]::after, .garage-nav__link:hover::after { transform: scaleX(1); }
.garage-nav__roundel { width: 40px; height: 40px; font-size: .8rem; border-width: 2px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.garage-nav__link[aria-current="true"] .garage-nav__roundel { transform: scale(1.08); box-shadow: 0 0 0 3px var(--livery); }
.garage-nav__text { display: grid; gap: 2px; min-width: 0; }
.garage-nav__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; font-stretch: 112%; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; }
.garage-nav__nick { font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; line-height: 1.05; color: color-mix(in oklab, var(--livery) 62%, white); }
.garage-nav__progress { position: absolute; left: 0; right: 0; top: -1px; height: 2px; overflow: hidden; }
.garage-nav__progress i { display: block; height: 100%; background: var(--rosso); transform: scaleX(0); transform-origin: left; transition: background-color .5s var(--ease); }
@media (max-width: 760px) {
  .garage-nav__link { flex-direction: column; justify-content: center; gap: 6px; min-height: 76px; padding: 8px 4px; text-align: center; }
  .garage-nav__link::after { left: 8px; right: 8px; }
  .garage-nav__name { display: none; }
  .garage-nav__nick { font-size: .88rem; }
  .garage-nav__roundel { width: 34px; height: 34px; font-size: .72rem; }
}

/* Un chapitre par voiture : photo pleine largeur, nom, surnom et liseré de livrée, comme sa fiche */
.car-chapter { scroll-margin-top: 66px; }
.car-chapter__hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end;
  min-height: min(88vh, 880px); min-height: min(88svh, 880px); background: var(--ink); color: var(--paper);
}
.car-chapter__media { position: absolute; inset: -7% 0; z-index: -3; will-change: transform; }
.car-chapter__img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); transition: transform 1.8s var(--ease); }
.js .car-chapter:not(.is-vu) .car-chapter__img { --zoom: 1.14; }
.car-chapter__hero:hover .car-chapter__img { --zoom: 1.035; }
.car-chapter__hero::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(180deg, rgba(12,12,11,.55) 0%, rgba(12,12,11,.05) 26%, rgba(12,12,11,.12) 48%, rgba(12,12,11,.86) 84%, var(--ink) 100%); }
.car-chapter__hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--livery); transform-origin: left; transition: transform 1.3s var(--ease) .35s; }
.car-chapter--droite .car-chapter__hero::after { transform-origin: right; }
.js .car-chapter:not(.is-vu) .car-chapter__hero::after { transform: scaleX(0); }
.car-chapter__inner { display: grid; gap: 24px; padding-top: 160px; padding-bottom: clamp(48px, 6vw, 88px); }
.car-chapter__index { color: var(--on-ink-2); }
.car-chapter__index span { color: var(--paper); }
.car-chapter__row { display: flex; align-items: flex-end; gap: clamp(16px, 2.4vw, 32px); }
.car-chapter--droite .car-chapter__index { text-align: right; }
.car-chapter--droite .car-chapter__row { flex-direction: row-reverse; text-align: right; }
.car-chapter__roundel { width: clamp(76px, 8vw, 116px); height: clamp(76px, 8vw, 116px); font-size: clamp(1.5rem, 2.6vw, 2.5rem); border-width: 4px; transition: transform .9s cubic-bezier(.34, 1.56, .64, 1) .3s, opacity .4s var(--ease) .3s; }
.js .car-chapter:not(.is-vu) .car-chapter__roundel { opacity: 0; transform: scale(.4) rotate(-25deg); }
.car-chapter__name { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 6.4vw, 6.6rem); line-height: .88; letter-spacing: -.025em; }
.car-chapter__link { color: inherit; text-decoration: none; outline: none; }
.car-chapter__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.car-chapter__hero:has(.car-chapter__link:focus-visible) { outline: 3px solid var(--paper); outline-offset: -6px; }
.car-chapter__mask { display: block; overflow: hidden; padding-bottom: .06em; }
.car-chapter__mask > span { display: block; text-wrap: balance; transition: transform 1.1s var(--ease) .1s; }
.js .car-chapter:not(.is-vu) .car-chapter__mask > span { transform: translate3d(0, 108%, 0); }
.car-chapter__nick { margin-top: 14px; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.5rem, 2.8vw, 2.6rem); line-height: 1; color: color-mix(in oklab, var(--livery) 62%, white); transition: opacity .9s var(--ease) .5s, transform .9s var(--ease) .5s; }
.car-chapter__nick small { margin-inline: 6px; font-family: var(--f-mono); font-style: normal; font-size: .3em; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-2); vertical-align: middle; }
.js .car-chapter:not(.is-vu) .car-chapter__nick { opacity: 0; transform: translate3d(0, 18px, 0); }
.car-chapter__strip { position: relative; }

/* Son caractère, ses photos et ses engagements, sur fond ivoire */
.car-chapter__story { padding-block: clamp(56px, 7vw, 108px); background: var(--paper); color: var(--ink); --fg: var(--ink); --bg: var(--paper); --fg-2: var(--on-paper-2); --fg-3: var(--on-paper-3); }
.car-chapter__grid { display: grid; gap: 44px; }
@media (min-width: 960px) {
  .car-chapter__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 108px); align-items: start; }
  .car-chapter--droite .car-chapter__text { order: 2; }
}
.car-chapter__lede { margin-top: 18px; font-family: var(--f-serif); font-size: clamp(1.9rem, 3.2vw, 3.1rem); line-height: 1.06; text-wrap: balance; }
.car-chapter__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 34px; }
.car-chapter__aside { display: grid; gap: 34px; }
.car-chapter__photos { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 16 / 10; }
.car-chapter__photos button { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.car-chapter__photos button:first-child { grid-row: span 2; }
.car-chapter__photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.car-chapter__photos button::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--livery); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.car-chapter__photos button:hover img, .car-chapter__photos button:focus-visible img { transform: scale(1.07); }
.car-chapter__photos button:hover::after, .car-chapter__photos button:focus-visible::after { transform: scaleX(1); }
.car-chapter__races { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.car-chapter__race {
  display: inline-flex; align-items: center; gap: .55em; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--on-paper-3); border-radius: 999px;
  font-weight: 600; font-stretch: 112%; font-size: .84rem; letter-spacing: .02em;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.car-chapter__race::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--livery); transition: transform .3s var(--ease); }
.car-chapter__race em { font-family: var(--f-serif); font-weight: 400; font-size: 1.2em; }
.car-chapter__race:hover, .car-chapter__race:focus-visible { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.car-chapter__race:hover::before { transform: scale(1.3); }
@media (max-width: 640px) {
  .car-chapter__hero { min-height: 78svh; }
  .car-chapter__inner { padding-top: 120px; }
  .car-chapter__row, .car-chapter--droite .car-chapter__row { flex-direction: column; align-items: flex-start; text-align: left; }
  .car-chapter--droite .car-chapter__index { text-align: left; }
  .car-chapter__photos { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .car-chapter__img, .car-chapter__hero::after, .car-chapter__roundel, .car-chapter__mask > span, .car-chapter__nick, .garage-nav, .car-chapter__photos img { transition: none; }
}

/* ---------- 03 Courses ---------- */
.courses__grid { display: grid; gap: 28px; }
@media (min-width: 1180px) { .courses__grid { grid-template-columns: 230px minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(24px, 2.6vw, 44px); align-items: start; } }
.events { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.events::-webkit-scrollbar { display: none; }
.event-tab {
  position: relative; flex: none; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: baseline;
  padding: 12px 18px; border: 1px solid var(--on-paper-3); border-radius: 999px; background: var(--paper);
  transition: background-color .3s, color .3s, border-color .3s;
}
.event-tab__year { font-stretch: 125%; font-weight: 800; font-size: 1.25rem; line-height: 1; font-variant-numeric: tabular-nums; }
.event-tab__name { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.event-tab__car { grid-column: 2; font-family: var(--f-serif); font-style: italic; font-size: 1.02rem; color: var(--on-paper-2); line-height: 1.1; }
.event-tab:hover { border-color: var(--ink); }
.event-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.event-tab[aria-selected="true"] .event-tab__car { color: var(--on-ink-2); }
@media (min-width: 1180px) {
  .events { flex-direction: column; gap: 0; overflow: visible; padding: 0; border-top: 1px solid var(--on-paper-3); }
  .event-tab { border: 0; border-bottom: 1px solid var(--on-paper-3); border-radius: 0; background: none; padding: 14px 8px 14px 18px; }
  .event-tab::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; background: var(--rosso); transform: scaleY(0); transition: transform .45s var(--ease); }
  .event-tab:hover { background: rgba(255,255,255,.35); }
  .event-tab[aria-selected="true"] { background: var(--paper); color: var(--ink); }
  .event-tab[aria-selected="true"]::before { transform: scaleY(1); }
  .event-tab[aria-selected="true"] .event-tab__year { color: var(--rosso); }
  .event-tab[aria-selected="true"] .event-tab__car { color: var(--on-paper-2); }
}

.map { position: relative; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map__land path { fill: var(--paper); stroke: rgba(12,12,11,.6); stroke-width: 1.4; stroke-linejoin: round; }
.map__hatch path { fill: url(#map-dots); stroke: none; }
.map__ghosts path { fill: none; stroke: rgba(12,12,11,.2); stroke-width: 2; stroke-dasharray: 1 7; stroke-linecap: round; }
.map__route { fill: none; stroke: var(--rosso); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.map__route-shadow { fill: none; stroke: var(--paper); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.map__stop { opacity: 0; transition: opacity .45s var(--ease); }
.map__stop.is-in { opacity: 1; }
.map__stop circle { fill: var(--white); stroke: var(--ink); stroke-width: 3; }
.map__stop.is-end circle { fill: var(--rosso); stroke: var(--ink); }
.map__stop text { font-family: var(--f-mono); font-size: 21px; letter-spacing: .04em; text-transform: uppercase; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }
.map__pin circle { fill: var(--ink); }
.map__pin text { font-family: var(--f-mono); font-size: 17px; letter-spacing: .06em; text-transform: uppercase; fill: var(--on-paper-2); }
.map__caption { margin-top: 14px; color: var(--on-paper-2); }
@media (max-width: 700px) { .map__stop text { font-size: 30px; } }

.event { overflow: hidden; border-radius: var(--radius); background: var(--paper); box-shadow: 0 1px 0 var(--on-paper-3), 0 40px 80px -40px rgba(12,12,11,.35); transition: opacity .3s, transform .4s var(--ease); }
.event.is-changing { opacity: 0; transform: translateY(10px); }
.event__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.event__media img { width: 100%; height: 100%; object-fit: cover; }
.event__media .roundel { position: absolute; left: 16px; bottom: 16px; width: 54px; height: 54px; font-size: 1.05rem; border-width: 3px; }
.event__body { display: grid; gap: 14px; padding: 22px 24px 26px; }
.event__kicker { color: var(--on-paper-2); }
.event__title { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 2.3vw, 2.15rem); line-height: .95; letter-spacing: -.01em; }
.event__car { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; line-height: 1.2; }
.event__car .mono { font-style: normal; color: var(--on-paper-2); }
.swatch { width: 12px; height: 12px; border-radius: 50%; background: var(--livery); box-shadow: inset 0 0 0 1px rgba(12,12,11,.3); flex: none; }
.event__note { color: var(--on-paper-2); font-size: .98rem; }
.stages { border-top: 1px solid var(--on-paper-3); counter-reset: s; }
.stages li { counter-increment: s; border-bottom: 1px solid var(--on-paper-3); }
.stage { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; font-size: .94rem; }
.stage::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: .68rem; color: var(--on-paper-2); }
a.stage { transition: color .25s, padding .4s var(--ease); }
a.stage:hover { color: var(--rosso); padding-left: 6px; }
.stage .icon { width: 16px; height: 16px; opacity: .55; }
.event__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.event__actions .btn { min-height: 42px; padding: .7em 1.2em; }

/* ---------- 04 Journal ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 3.4vw, 44px); }
.chip { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--on-paper-3); font-size: .84rem; font-weight: 500; letter-spacing: .02em; transition: background-color .3s, color .3s, border-color .3s; }
.chip sup { margin-left: 4px; font-family: var(--f-mono); font-size: .62rem; color: var(--on-paper-2); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-pressed="true"] sup { color: var(--on-ink-2); }
.journal__grid { display: grid; gap: clamp(28px, 2.6vw, 40px) clamp(20px, 2.2vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 700px) { .journal__grid { grid-template-columns: repeat(2, 1fr); } .post.is-featured { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .journal__grid { grid-template-columns: repeat(3, 1fr); } .post.is-featured { grid-column: span 2; grid-row: span 2; } }
.post { transition: opacity .45s var(--ease), transform .55s var(--ease); }
.journal__grid.is-switching .post { opacity: 0; transform: translateY(14px); }
.post > a { display: flex; flex-direction: column; height: 100%; }
.post__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.post.is-featured .post__media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.post__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.post > a:hover .post__media img { transform: scale(1.05); }
.post__body { display: grid; gap: 10px; padding-top: 18px; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--on-paper-2); }
.post__tag { color: var(--rosso); }
.post__title { font-family: var(--f-serif); font-size: clamp(1.45rem, 1.8vw, 1.8rem); line-height: 1.08; text-wrap: balance; transition: color .3s; }
.post.is-featured .post__title { font-size: clamp(2rem, 3.3vw, 3.2rem); line-height: 1; }
.post > a:hover .post__title { color: var(--rosso); }
.post__excerpt { color: var(--on-paper-2); max-width: 60ch; }
.journal__more { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 72px); }

/* ---------- 05 Médias ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 36px; border: 1px solid var(--on-ink-3); border-radius: 999px; }
.tab { min-height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-stretch: 112%; color: var(--on-ink-2); transition: background-color .35s, color .35s; }
.tab sup { margin-left: 4px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: 0; }
.tab:hover { color: var(--paper); }
.tab[aria-selected="true"] { background: var(--paper); color: var(--ink); }

.albums { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(150px, 40vw, 240px); }
.albums .album:nth-child(1), .albums .album:nth-child(6) { grid-column: span 2; }
@media (min-width: 900px) {
  .albums { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 16vw, 260px); grid-auto-flow: dense; }
  .albums .album:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .albums .album:nth-child(6) { grid-column: 3 / span 2; grid-row: span 2; }
}
.album { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); color: var(--paper); }
.album img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1.4s var(--ease), filter .6s; }
.album::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,12,11,.88) 0%, rgba(12,12,11,.1) 55%); transition: opacity .5s; }
.album:hover img { transform: scale(1.06); filter: saturate(1.05); }
.album__info { position: absolute; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 6px; text-align: left; }
.album__title { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(1rem, 1.5vw, 1.4rem); line-height: .98; }
.albums .album:nth-child(1) .album__title, .albums .album:nth-child(6) .album__title { font-size: clamp(1.4rem, 2.6vw, 2.5rem); }
.album__meta { color: var(--on-ink-2); }
.album__count {
  position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: rgba(12,12,11,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em;
}
.album__count .icon { width: 14px; height: 14px; }

.videos__feature { display: grid; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 960px) { .videos__feature { grid-template-columns: 1.7fr 1fr; align-items: end; gap: 48px; } }
.videos__feature-text { display: grid; gap: 14px; justify-items: start; }
.videos__feature-text .mono { color: var(--on-ink-2); }
.videos__feature-title { font-family: var(--f-serif); font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.02; }
.video { display: grid; gap: 12px; text-align: left; }
.video__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.video:hover .video__thumb img { transform: scale(1.05); }
.video__play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; display: grid; place-items: center; border-radius: 50%; background: rgba(243,239,231,.92); color: var(--ink); transition: transform .45s var(--ease), background-color .3s, color .3s; }
.video__play .icon { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; stroke: none; }
.video:hover .video__play { transform: scale(1.12); background: var(--rosso); color: #fff; }
.video--feature .video__play { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
.video--feature .video__play .icon { width: 28px; height: 28px; }
.video__title { font-family: var(--f-serif); font-size: 1.32rem; line-height: 1.12; }
.video__year { color: var(--on-ink-2); }
.videos__grid { display: grid; gap: 32px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.video--channel .video__thumb { display: grid; place-items: center; align-content: center; gap: 10px; border: 1px dashed var(--on-ink-3); background: transparent; transition: border-color .3s, background-color .3s; }
.video--channel .video__thumb .icon { width: 38px; height: 38px; }
.video--channel:hover .video__thumb { border-color: var(--paper); background: var(--ink-2); }

/* ---------- 06 Équipe ---------- */
.founder { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .founder { grid-template-columns: .85fr 1.15fr; gap: clamp(56px, 7vw, 128px); } }
.founder__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--paper-3); }
.founder__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
.stamp { position: absolute; right: -28px; bottom: -28px; width: clamp(120px, 12vw, 160px); height: auto; animation: spin 26s linear infinite; }
.stamp circle { fill: var(--rosso); }
.stamp text { font-family: var(--f-mono); font-size: 15.2px; letter-spacing: .2em; text-transform: uppercase; fill: #fff; }
@media (max-width: 600px) { .stamp { right: 12px; bottom: -24px; } }
.founder__name { margin-top: 14px; font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 5.4vw, 5rem); line-height: .88; letter-spacing: -.02em; }
.founder__bio { margin-top: 22px; font-family: var(--f-serif); font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.28; max-width: 34ch; }
.milestones { margin-top: 32px; border-top: 1px solid var(--on-paper-3); }
.milestones li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--on-paper-3); }
.milestones b { font-family: var(--f-mono); font-weight: 500; font-size: .78rem; letter-spacing: .08em; color: var(--rosso); padding-top: 3px; }
.milestones span { color: var(--on-paper-2); }

.crew { margin-top: clamp(88px, 10vw, 150px); }
.crew__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.crew__nav { display: flex; gap: 8px; }
.crew__list { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23vw, 300px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.crew__list::-webkit-scrollbar { display: none; }
.mate { scroll-snap-align: start; }
.mate__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.mate__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .7s, transform 1.3s var(--ease); }
.mate:hover .mate__media img { filter: none; transform: scale(1.04); }
.mate__media .roundel { position: absolute; top: 12px; left: 12px; }
.mate__mono { display: grid; place-items: center; width: 100%; height: 100%; background: var(--ink); color: var(--paper); font-stretch: 125%; font-weight: 800; font-size: 3.6rem; }
.mate__name { margin-top: 14px; font-family: var(--f-serif); font-size: 1.55rem; line-height: 1.08; }
.mate__what { margin-top: 6px; color: var(--on-paper-2); }

.thanks { display: grid; gap: 28px; margin-top: clamp(72px, 8vw, 120px); padding-top: 40px; border-top: 1px solid var(--on-paper-3); }
@media (min-width: 960px) { .thanks { grid-template-columns: 1fr 2.2fr; gap: 64px; } }
.thanks__list { display: grid; gap: 22px 36px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.thanks__name { display: block; font-family: var(--f-serif); font-size: 1.5rem; line-height: 1.1; }
.thanks__role { display: block; margin-top: 4px; color: var(--on-paper-2); }

/* ---------- 07 Presse ---------- */
.presse { padding-top: 0; }
.marquee--outline { background: transparent; color: var(--paper); padding-block: clamp(36px, 6vw, 84px); border-bottom: 1px solid var(--on-ink-3); }
.marquee--outline .marquee__track { animation-duration: var(--marquee-dur, 70s); }
.marquee--outline .marquee__item { font-size: clamp(3rem, 9vw, 8.5rem); color: transparent; -webkit-text-stroke: max(1px, .011em) var(--on-ink-2); letter-spacing: -.02em; line-height: 1; padding-right: .5em; }
.marquee--outline .marquee__item::after { width: .5em; height: .3em; margin-left: .5em; background: var(--rosso); opacity: 1; }
.presse .sec-head { margin-top: clamp(72px, 9vw, 136px); }
/* Médias cités en liste fixe (par défaut), à la place du bandeau défilant */
.presse__medias { margin-bottom: clamp(36px, 4.5vw, 64px); }
.presse__label { margin-bottom: 18px; color: var(--rosso-soft); }
.presse__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px clamp(20px, 2.6vw, 40px); margin: 0; padding: 0; list-style: none; }
.presse__list li { display: flex; align-items: center; gap: 16px; min-height: 56px; }
/* Logo dans sa couleur d'origine, sur un cartouche blanc : lisible quel que soit le logo */
.presse__logo { display: flex; align-items: center; justify-content: center; flex: none; width: 120px; height: 56px; padding: 8px 12px; border-radius: var(--radius); background: var(--white); }
.presse__logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.presse__nom { font-weight: 700; font-stretch: 125%; font-size: clamp(.95rem, 1.3vw, 1.1rem); line-height: 1.15; letter-spacing: .05em; text-transform: uppercase; }
.ledger { border-top: 1px solid var(--on-ink-3); }
.ledger a {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--on-ink-3); transition: padding .5s var(--ease);
}
.ledger a::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px; background: var(--rosso); transform: scaleY(0); transition: transform .45s var(--ease); }
.ledger a:hover { padding-left: 20px; }
.ledger a:hover::before { transform: scaleY(1); }
.ledger time { color: var(--on-ink-2); }
.ledger__media { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 1.15rem; line-height: 1; }
.ledger__title { font-family: var(--f-serif); font-size: 1.35rem; line-height: 1.15; color: var(--on-ink-2); transition: color .3s; }
.ledger a:hover .ledger__title { color: var(--paper); }
.ledger .icon { grid-row: 1 / span 3; grid-column: 2; width: 24px; height: 24px; transition: transform .45s var(--ease); }
.ledger a:hover .icon { transform: translate(4px, -4px); }
@media (min-width: 900px) {
  .ledger a { grid-template-columns: 130px 240px 1fr auto; padding: 26px 0; }
  .ledger .icon { grid-row: auto; grid-column: auto; }
}

/* ---------- 08 Partenaires ---------- */
.offers { display: grid; gap: 12px; }
@media (min-width: 960px) { .offers { display: flex; height: clamp(440px, 42vw, 580px); } }
.offer {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px; padding: 26px; border-radius: var(--radius); background: var(--ink); color: var(--paper);
}
.offer img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7) brightness(.65); transition: transform 1.4s var(--ease), filter .8s; }
.offer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,12,11,.92) 0%, rgba(12,12,11,.15) 65%); }
.offer.is-active img { filter: none; transform: scale(1.04); }
.offer__num { position: absolute; top: 22px; left: 26px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; }
.offer__vtitle { display: none; }
.offer__title { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 2.2vw, 2.2rem); line-height: 1; }
.offer__text { margin-top: 12px; max-width: 44ch; color: var(--on-ink-2); }
@media (min-width: 960px) {
  .offer { flex: 1 1 0; min-width: 0; min-height: 0; cursor: pointer; transition: flex-grow .9s var(--ease); }
  .offer.is-active { flex-grow: 3.6; }
  .offer__vtitle {
    display: block; position: absolute; left: 22px; bottom: 26px; writing-mode: vertical-rl; transform: rotate(180deg);
    font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 1.3rem; letter-spacing: .02em; white-space: nowrap;
    transition: opacity .35s;
  }
  .offer.is-active .offer__vtitle { opacity: 0; }
  .offer__body { width: min(44ch, 100%); opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .6s var(--ease); }
  .offer.is-active .offer__body { opacity: 1; transform: none; transition-delay: .25s; }
}

.partners { margin-top: clamp(64px, 8vw, 112px); }
.partners__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border-top: 1px solid var(--on-paper-3); border-left: 1px solid var(--on-paper-3); }
@media (min-width: 720px) { .partners__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .partners__grid { grid-template-columns: repeat(6, 1fr); } }
.partners__grid li { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 14px 18px; border-right: 1px solid var(--on-paper-3); border-bottom: 1px solid var(--on-paper-3); transition: background-color .4s; }
.partners__grid img { width: 100%; max-width: 170px; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.15); opacity: .72; transition: filter .45s, opacity .45s, transform .6s var(--ease); }
.partners__grid li:hover { background: #fff; }
.partners__grid li:hover img { filter: none; opacity: 1; transform: scale(1.04); }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(56px, 7vw, 96px); padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.cta-band__text { font-family: var(--f-serif); font-size: clamp(1.7rem, 3.2vw, 2.8rem); line-height: 1.05; max-width: 20ch; }

/* ---------- 09 Contact ---------- */
.contact { isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); }
.contact__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,12,11,.97) 25%, rgba(12,12,11,.72) 100%); }
.contact__grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 7vw, 120px); align-items: start; } }
.contact__intro .sec-lede { margin-top: 24px; }
.contact__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

.form { position: relative; display: grid; gap: 18px; padding: clamp(22px, 3.4vw, 44px); border: 1px solid var(--on-ink-3); border-radius: var(--radius); background: rgba(21, 21, 19, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .field--full, .form__foot, .form__status, .form__success { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid rgba(243,239,231,.24); background: rgba(243,239,231,.04); color: var(--paper); font-size: 1rem;
  transition: border-color .3s, background-color .3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3efe7' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field select option { color: var(--ink); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(243,239,231,.45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--paper); background-color: rgba(243,239,231,.08); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--rosso-soft); }
.field__error { min-height: 1.25em; font-size: .82rem; line-height: 1.3; color: var(--rosso-soft); }
.field--check { grid-template-columns: 22px 1fr; column-gap: 12px; row-gap: 4px; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--rosso); }
.field--check label { font-family: var(--f-sans); font-size: .88rem; letter-spacing: 0; text-transform: none; line-height: 1.45; }
.field--check .field__error { grid-column: 2; }
.field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__note { display: inline-flex; align-items: center; gap: 8px; color: var(--on-ink-2); }
.btn__spinner { position: absolute; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; opacity: 0; animation: spin .8s linear infinite; }
.btn.is-loading .btn__label { opacity: 0; }
.btn.is-loading .btn__spinner { opacity: 1; }
.btn[disabled] { cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__status { min-height: 1.2em; font-size: .92rem; color: var(--on-ink-2); }
.form__success { display: grid; justify-items: center; gap: 14px; padding: 36px 8px; text-align: center; }
.form__success .icon { width: 56px; height: 56px; color: var(--rosso-soft); stroke-width: 1.3; }
.form__success-title { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 1.6rem; }
.form__success p { max-width: 42ch; color: var(--on-ink-2); }

/* ---------- Pied de page ---------- */
.footer { overflow: hidden; padding-top: clamp(72px, 9vw, 128px); border-top: 1px solid var(--on-ink-3); background: var(--ink); color: var(--paper); }
.footer__top { display: grid; gap: 48px; }
@media (min-width: 960px) { .footer__top { grid-template-columns: 1fr 2fr; } }
.footer__crest { width: clamp(96px, 9vw, 128px); }
.footer__brand p { margin-top: 22px; max-width: 22ch; font-family: var(--f-serif); font-style: italic; font-size: 1.45rem; line-height: 1.2; color: var(--on-ink-2); }
.footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
@media (min-width: 720px) { .footer__nav { grid-template-columns: repeat(4, 1fr); } }
.footer__nav .eyebrow { margin-bottom: 16px; }
.footer__nav li + li { margin-top: 10px; }
.footer__nav a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.footer__nav a:hover { background-size: 100% 1px; }
.footer__word {
  margin-top: clamp(56px, 8vw, 112px); padding-inline: var(--gutter);
  font-stretch: 125%; font-weight: 800; text-transform: uppercase; white-space: nowrap;
  font-size: 12vw; line-height: .8; letter-spacing: -.025em;
  color: transparent; -webkit-text-stroke: max(1px, .008em) var(--on-ink-2);
}
.footer__word span { display: inline-block; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; margin-top: 28px; padding-block: 26px; border-top: 1px solid var(--on-ink-3); color: var(--on-ink-2); }
.footer__bottom a:hover { color: var(--paper); }
.footer__start { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); }
.footer__start .icon { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.footer__start:hover .icon { transform: translateY(-4px); }

/* ---------- Fenêtres : fiche, visionneuse, vidéo ---------- */
.menu:not(.is-open), .drawer:not(.is-open), .lightbox:not(.is-open), .vmodal:not(.is-open) { pointer-events: none; }
.drawer { position: fixed; inset: 0; z-index: var(--z-modal); }
.drawer:focus { outline: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(12,12,11,.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .5s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100%); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink); transform: translateX(100%); transition: transform .75s var(--ease); --fg: var(--ink); --bg: var(--paper); --fg-2: var(--on-paper-2); --fg-3: var(--on-paper-3); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; height: 0; padding: 0 16px; }
.drawer__bar .icon-btn { margin-top: 16px; background: var(--paper); border-color: transparent; box-shadow: 0 6px 20px rgba(12,12,11,.2); }
.drawer__bar .icon-btn:hover { background: var(--ink); color: var(--paper); }
.drawer__hero { position: relative; aspect-ratio: 16 / 10; background: var(--ink-2); }
.drawer__hero img { width: 100%; height: 100%; object-fit: cover; }
.drawer__hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--livery); }
.drawer__hero .roundel { position: absolute; left: 22px; bottom: 26px; width: 68px; height: 68px; font-size: 1.5rem; border-width: 3px; }
.drawer__body { display: grid; gap: 20px; padding: clamp(24px, 4vw, 52px); }
.drawer__kicker { color: var(--on-paper-2); }
.drawer__title { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: .9; letter-spacing: -.02em; }
.drawer__nick { font-family: var(--f-serif); font-style: italic; font-size: 1.8rem; line-height: 1.1; color: var(--rosso); }
.drawer__lede { font-family: var(--f-serif); font-size: 1.45rem; line-height: 1.25; }
.drawer__body > p:not([class]) { color: var(--on-paper-2); }
.drawer__facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--on-paper-3); }
@media (min-width: 640px) { .drawer__facts { grid-template-columns: repeat(4, 1fr); } }
.drawer__facts div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--on-paper-3); }
.drawer__facts dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-paper-2); }
.drawer__facts dd { margin-top: 4px; font-weight: 700; font-stretch: 112%; }
.drawer__h { margin-top: 12px; color: var(--on-paper-2); }
.drawer__races li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--on-paper-3); }
.drawer__races li:first-child { border-top: 1px solid var(--on-paper-3); }
.drawer__races b { font-stretch: 125%; font-weight: 800; font-size: 1.15rem; color: var(--rosso); }
.drawer__races .mono { color: var(--on-paper-2); text-align: right; }
.drawer__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.drawer__strip button { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 2px; background: var(--paper-3); }
.drawer__strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.drawer__strip button:hover img { transform: scale(1.06); }
.drawer__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(8,8,7,.97); color: var(--paper); opacity: 0; transition: opacity .45s; }
.lightbox:focus { outline: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__top { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; padding: 14px var(--gutter); }
.lightbox__title { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 1rem; }
.lightbox__top .mono { color: var(--on-ink-2); }
.lightbox__stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 0; padding-inline: var(--gutter); touch-action: pan-y; }
.lightbox__figure { display: grid; place-items: center; height: 100%; min-height: 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 230px); max-height: calc(100svh - 230px); object-fit: contain; border-radius: 2px; user-select: none; -webkit-user-drag: none; transition: opacity .35s, transform .6s var(--ease); }
.lightbox__figure img.is-loading { opacity: 0; transform: scale(.985); }
.lightbox__foot { padding: 14px var(--gutter) 18px; display: grid; gap: 10px; justify-items: center; }
.lightbox__thumbs { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.lightbox__thumbs button { flex: none; width: 76px; height: 50px; overflow: hidden; border-radius: 2px; opacity: .4; transition: opacity .3s; }
.lightbox__thumbs button:hover { opacity: .8; }
.lightbox__thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--paper); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__note { color: var(--on-ink-2); text-align: center; }
@media (max-width: 700px) {
  .lightbox__stage { grid-template-columns: minmax(0, 1fr); }
  .lightbox__stage .icon-btn { position: absolute; bottom: -6px; z-index: 1; background: rgba(12,12,11,.7); }
  .lightbox__stage [data-lb-prev] { left: var(--gutter); }
  .lightbox__stage [data-lb-next] { right: var(--gutter); }
}

.vmodal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: var(--gutter); }
.vmodal:focus { outline: none; }
.vmodal__backdrop { position: absolute; inset: 0; background: rgba(8,8,7,.94); opacity: 0; transition: opacity .45s; }
.vmodal__box { position: relative; width: min(1180px, 100%); opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .45s, transform .7s var(--ease); }
.vmodal.is-open .vmodal__backdrop { opacity: 1; }
.vmodal.is-open .vmodal__box { opacity: 1; transform: none; }
.vmodal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; color: var(--paper); }
.vmodal__title { font-family: var(--f-serif); font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.1; }
.vmodal__frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; }
.vmodal__frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Bandeau « maquette » ---------- */
.proto {
  position: fixed; right: 0; top: 50%; z-index: var(--z-proto);
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  display: flex; align-items: center; gap: 10px; padding: 14px 6px 6px; border-radius: 999px 0 0 999px;
  background: rgba(12,12,11,.86); color: var(--paper); border: 1px solid var(--on-ink-3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
}
.proto__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rosso); animation: blink 2s ease-in-out infinite; }
.proto button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; transition: background-color .3s; }
.proto button:hover { background: var(--ink-3); }
.proto .icon { width: 14px; height: 14px; }
@keyframes blink { 50% { opacity: .25; } }
@media (max-width: 700px) { .proto { top: auto; bottom: 96px; transform: rotate(180deg); } .proto__more { display: none; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero__slide.is-active img, .hero__grain, .marquee__track, .stamp, .hotspot, .proto__dot, .hero__scroll span::after { animation: none !important; }
  .hero__bar.is-active i { animation: none !important; transform: scaleX(1); }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { flex-wrap: wrap; width: auto; }
}

/* ==========================================================================
   Pages intérieures : article, fiche voiture, page de contenu
   ========================================================================== */

.article { background: var(--paper); color: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--on-ink-2); }
.crumbs a { transition: color .25s; }
.crumbs a:hover, .crumbs [aria-current] { color: var(--paper); }

/* ---------- En-têtes d'article et de fiche voiture ---------- */
.post-hero, .car-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: min(92vh, 900px); min-height: min(92svh, 900px); background: var(--ink); color: var(--paper); }
.post-hero__img, .car-hero__img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.post-hero::before, .car-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(180deg, rgba(12,12,11,.72) 0%, rgba(12,12,11,.15) 28%, rgba(12,12,11,.2) 48%, rgba(12,12,11,.88) 84%, var(--ink) 100%); }
.post-hero__inner { display: grid; gap: 18px; justify-items: start; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(32px, 5vw, 64px); }
.post-hero__kicker { display: flex; align-items: center; gap: 14px; }
.post-hero__kicker .roundel { width: 50px; height: 50px; font-size: 1rem; border-width: 3px; }
.post-hero__title { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.5rem, 6vw, 6rem); line-height: .98; letter-spacing: -.01em; max-width: 17ch; text-wrap: balance; }
.post-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; color: var(--on-ink-2); }
.post-hero__meta span, .post-hero__meta a { display: inline-flex; align-items: center; gap: 8px; }
.post-hero__meta a { color: var(--paper); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.post-hero__meta a:hover { background-size: 100% 1px; }

/* ---------- Rail des étapes ---------- */
.rail { background: var(--ink-2); color: var(--paper); border-bottom: 1px solid var(--on-ink-3); }
.rail__inner { display: grid; gap: 16px; padding-block: 22px 24px; }
.rail__label { color: var(--on-ink-2); }
.rail__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 16px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.rail__list::-webkit-scrollbar { display: none; }
.rail__item { position: relative; padding-top: 26px; scroll-snap-align: start; }
.rail__item:not(:last-child)::after { content: ""; position: absolute; left: 16px; right: -16px; top: 7px; height: 2px; background: var(--on-ink-3); }
.rail__item.is-done::after { background: var(--rosso); }
.rail__dot { position: absolute; left: 0; top: 0; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-2); border: 2px solid var(--on-ink-2); transition: transform .3s var(--ease); }
.rail__item.is-done .rail__dot { background: var(--rosso); border-color: var(--rosso); }
.rail__item.is-current .rail__dot { background: var(--paper); border-color: var(--rosso); box-shadow: 0 0 0 5px rgba(200,16,46,.35); }
.rail__item a { display: grid; gap: 4px; padding-right: 8px; color: var(--on-ink-2); transition: color .3s; }
.rail__item a:hover { color: var(--paper); }
.rail__item a:hover .rail__dot { transform: scale(1.2); }
.rail__item.is-current a { color: var(--paper); }
.rail__n { color: var(--rosso-soft); }
.rail__t { font-family: var(--f-serif); font-size: 1.2rem; line-height: 1.15; }
.rail__item.is-current .rail__t { font-style: italic; }
.rail__ext { width: 13px; height: 13px; display: inline-block; vertical-align: baseline; opacity: .6; }

/* ---------- Corps de l'article ---------- */
.post-wrap { background: var(--paper); color: var(--ink); --fg: var(--ink); --bg: var(--paper); --fg-2: var(--on-paper-2); --fg-3: var(--on-paper-3); }
.post-layout { display: grid; gap: 48px; padding-block: clamp(56px, 8vw, 112px); }
@media (min-width: 1040px) { .post-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(48px, 6vw, 104px); align-items: start; } }
.post-body { display: grid; gap: 30px; max-width: 70ch; font-size: 1.125rem; line-height: 1.75; color: #2b2a27; }
.post-lede { font-family: var(--f-serif); font-size: clamp(1.45rem, 2.1vw, 1.8rem); line-height: 1.42; color: var(--ink); }
.post-lede::first-letter { float: left; margin: .08em .1em 0 0; font-family: var(--f-sans); font-stretch: 125%; font-weight: 800; font-size: 3.6em; line-height: .78; color: var(--rosso); }

.pull { margin: 8px 0; padding: 28px 0 26px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--on-paper-3); }
.pull .icon { width: 30px; height: 30px; margin-bottom: 8px; color: var(--rosso); stroke-width: 2.2; }
.pull p { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.12; text-wrap: balance; color: var(--ink); }

.post-facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--on-paper-3); }
@media (min-width: 640px) { .post-facts { grid-template-columns: repeat(4, 1fr); } }
.post-facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 18px 14px 16px 0; border-bottom: 1px solid var(--on-paper-3); }
.post-facts dd { font-stretch: 125%; font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.post-facts dt { font-family: var(--f-mono); font-size: .68rem; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--on-paper-2); }

.post-gallery { display: grid; gap: 12px; }
.post-gallery__grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 16 / 9; }
.post-gallery__grid button { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.post-gallery__grid button:first-child { grid-row: span 2; }
.post-gallery__grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-gallery__grid button:hover img { transform: scale(1.05); }
.post-gallery__cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: var(--on-paper-2); }
.post-gallery__cap .mono { display: inline-flex; align-items: center; gap: 8px; }

.link-card {
  display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 20px; padding: 12px 22px 12px 12px;
  border: 1px solid var(--on-paper-3); border-radius: var(--radius); background: var(--white); color: var(--ink);
  transition: border-color .3s, transform .45s var(--ease), box-shadow .45s;
}
.link-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 18px 40px -26px rgba(12,12,11,.45); }
.link-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--paper-3); }
.link-card__media img { width: 100%; height: 100%; object-fit: cover; }
.link-card__media .video__play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.link-card__media .video__play .icon { width: 14px; height: 14px; }
.link-card__body { display: grid; gap: 4px; line-height: 1.3; }
.link-card__site { color: var(--rosso); }
.link-card__label { font-weight: 700; font-stretch: 112%; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; }
.link-card__title { font-family: var(--f-serif); font-size: 1.3rem; line-height: 1.15; color: var(--on-paper-2); }
.link-card__arrow { width: 22px; height: 22px; transition: transform .45s var(--ease); }
.link-card:hover .link-card__arrow { transform: translate(3px, -3px); }
@media (max-width: 560px) { .link-card { grid-template-columns: 96px 1fr; padding-right: 14px; } .link-card__arrow { display: none; } }

.post-video { display: grid; gap: 12px; }
.post-video figcaption { display: grid; gap: 4px; }
.post-video figcaption .mono { color: var(--rosso); }
.post-video__title { font-family: var(--f-serif); font-size: 1.5rem; line-height: 1.1; color: var(--ink); }

.post-foot { display: grid; gap: 22px; margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--on-paper-3); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--tag { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; font-size: .8rem; color: var(--on-paper-2); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share .mono { margin-right: 6px; color: var(--on-paper-2); }
.share .icon-btn { width: 42px; height: 42px; }

/* ---------- Fiche latérale ---------- */
@media (min-width: 1040px) { .post-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.info-card { display: grid; gap: 16px; padding: 22px; border: 1px solid var(--on-paper-3); border-radius: var(--radius); background: var(--white); box-shadow: 0 30px 60px -44px rgba(12,12,11,.4); }
.info-card__k { color: var(--rosso); }
.info-card__map { padding: 12px; border-radius: 2px; background: var(--paper-2); }
.info-card__rows div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--on-paper-3); font-size: .92rem; line-height: 1.45; }
.info-card__rows dt { padding-top: 3px; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-paper-2); }
.info-card__rows dd { font-weight: 500; }
.info-card__car { display: inline-flex; align-items: center; gap: 8px; transition: color .25s; }
.info-card__car:hover { color: var(--rosso); }
.info-card__car .icon { width: 14px; height: 14px; }
.info-card__btn { width: 100%; }

.map--mini { width: 100%; height: auto; overflow: visible; }
.map--mini .map__stop text { font-size: 40px; stroke-width: 9px; }
.map--mini .map__stop circle { r: 13px; stroke-width: 4; }
.map--mini .map__route { stroke-width: 8; }
.map--mini .map__route-shadow { stroke-width: 18; }
.map__ghost-route { fill: none; stroke: rgba(12,12,11,.32); stroke-width: 4; stroke-dasharray: 2 10; stroke-linecap: round; }

/* ---------- Navigation entre récits et articles liés ---------- */
.post-nav { display: grid; gap: 16px; padding-bottom: clamp(64px, 8vw, 112px); }
@media (min-width: 760px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav__card { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: end; justify-items: start; gap: 8px; min-height: 230px; padding: 26px; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.post-nav__card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5) brightness(.62); transition: transform 1.3s var(--ease), filter .7s; }
.post-nav__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,12,11,.88), rgba(12,12,11,.1) 75%); }
.post-nav__card:hover img { transform: scale(1.05); filter: none; }
.post-nav__card--next { justify-items: end; text-align: right; }
.post-nav__kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--on-ink-2); }
.post-nav__card--end .post-nav__kicker { color: var(--rosso-soft); }
.post-nav__title { max-width: 22ch; font-family: var(--f-serif); font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.05; }

.related { border-top: 1px solid var(--on-paper-3); }
.related__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.related__grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

/* ---------- Fiche voiture ---------- */
.car-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--livery); }
.car-hero__inner { display: grid; gap: 26px; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(44px, 6vw, 84px); }
.car-hero__row { display: flex; align-items: flex-end; gap: clamp(16px, 2.4vw, 32px); }
.car-hero__roundel { width: clamp(76px, 9vw, 124px); height: clamp(76px, 9vw, 124px); font-size: clamp(1.5rem, 2.8vw, 2.7rem); border-width: 4px; }
.car-hero__name { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 7vw, 7.2rem); line-height: .86; letter-spacing: -.025em; text-wrap: balance; }
.car-hero__nick { margin-top: 14px; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1; color: color-mix(in oklab, var(--livery) 62%, white); }
.car-hero__nick small { margin-left: 6px; font-size: .55em; color: var(--on-ink-2); }
@media (max-width: 640px) { .car-hero__row { flex-direction: column; align-items: flex-start; } }

.car-strip { background: var(--ink-2); color: var(--paper); border-bottom: 1px solid var(--on-ink-3); }
.car-strip__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .car-strip__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .car-strip__grid { grid-template-columns: repeat(6, 1fr); } }
.car-strip__grid div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 26px 16px 24px 0; border-bottom: 1px solid var(--on-ink-3); }
@media (min-width: 1100px) { .car-strip__grid div { border-bottom: 0; } .car-strip__grid div + div { padding-left: 22px; border-left: 1px solid var(--on-ink-3); } }
.car-strip dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-2); }
.car-strip dd { font-stretch: 125%; font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.05; }

.car-story__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .car-story__grid { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start; } }
.car-story__lede { margin-top: 22px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(2rem, 3.5vw, 3.3rem); line-height: 1.04; text-wrap: balance; }
.car-story__text { display: grid; gap: 18px; font-size: 1.1rem; line-height: 1.7; color: var(--on-paper-2); }
.car-story__numbers { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink); }
.car-story__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: clamp(48px, 6vw, 84px); }
.car-story__photos button { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.car-story__photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.car-story__photos button:hover img { transform: scale(1.05); }
@media (max-width: 640px) { .car-story__photos { grid-template-columns: 1fr 1fr; } .car-story__photos button:first-child { grid-column: span 2; } }

.race-cards { display: grid; gap: 24px; }
@media (min-width: 1100px) { .race-cards { grid-template-columns: repeat(auto-fit, minmax(520px, 1fr)); } }
.race-card { display: grid; overflow: hidden; border-radius: var(--radius); background: var(--paper); box-shadow: 0 1px 0 var(--on-paper-3), 0 40px 80px -44px rgba(12,12,11,.38); }
@media (min-width: 640px) { .race-card { grid-template-columns: .85fr 1.15fr; } }
.race-card__map { display: grid; place-items: center; padding: 18px; background: var(--paper-2); }
.race-card__body { display: grid; align-content: start; gap: 12px; padding: 22px 24px 26px; }

.car-albums { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); grid-auto-rows: clamp(200px, 20vw, 280px); }
.car-media__h { margin: clamp(48px, 6vw, 72px) 0 20px; color: var(--on-ink-2); }

.ledger--paper { border-top-color: var(--on-paper-3); }
.ledger--paper a { border-bottom-color: var(--on-paper-3); }
@media (min-width: 900px) { .ledger--paper a { grid-template-columns: 130px 1fr auto; } }
.ledger--paper time { color: var(--on-paper-2); }
.ledger--paper .ledger__title { color: var(--ink); }
.ledger--paper a:hover .ledger__title { color: var(--rosso); }

.car-cards { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (min-width: 1100px) { .car-cards--four { grid-template-columns: repeat(4, 1fr); } }
.car-card a { display: grid; gap: 6px; }
.car-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 10px; border-radius: var(--radius); background: var(--ink-2); }
.car-card__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--livery); }
.car-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.car-card a:hover .car-card__media img { transform: scale(1.05); }
.car-card__media .roundel { position: absolute; top: 12px; left: 12px; }
.car-card__name { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 1.25rem; line-height: 1; }
.car-card__nick { font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; color: var(--fg-2); }
.car-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--rosso); }
.section--ink .car-card__more { color: var(--rosso-soft); }
.car-card__more .icon { transition: transform .45s var(--ease); }
.car-card a:hover .car-card__more .icon { transform: translateX(4px); }

/* ---------- Page de contenu (L'Écurie) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; text-align: center;
  min-height: 100vh; min-height: 100svh; background: radial-gradient(90% 70% at 50% 40%, #1d1c19 0%, var(--ink) 70%); color: var(--paper);
}
.page-hero .hero__grain { opacity: .07; }
.page-hero__inner { display: grid; justify-items: center; gap: 16px; padding-top: calc(var(--header-h) + 28px); padding-bottom: 48px; }
.page-hero .crumbs { justify-content: center; }
/* Le blason en majesté, balayé d'un reflet doré. */
.page-hero__crest { position: relative; height: clamp(220px, 40vh, 430px); margin-block: 14px 6px; color: var(--paper); }
.page-hero__crest::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(196,156,84,.0) 42%, rgba(196,156,84,.7) 49%, rgba(255,232,180,.85) 50%, rgba(196,156,84,.7) 51%, rgba(196,156,84,0) 58%, transparent 62%) 100% 0 / 320% 100% no-repeat;
  animation: sheen 7s var(--ease-io) 1s infinite;
}
@keyframes sheen { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }
.page-hero__eyebrow { color: var(--on-ink-2); }
.page-hero__title { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(3rem, 9vw, 8rem); line-height: .85; letter-spacing: -.02em; }
.page-hero__lede { max-width: 30ch; font-family: var(--f-serif); font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.2; color: var(--on-ink-2); }

.wide-figure { background: var(--paper); padding-bottom: clamp(24px, 3vw, 40px); }
.wide-figure img { width: 100%; height: clamp(320px, 72vh, 780px); object-fit: cover; }
.wide-figure figcaption { padding-top: 14px; color: var(--on-paper-2); }
.blason--flush { margin-top: 0; }

.timeline { position: relative; display: grid; gap: clamp(64px, 9vw, 120px); }
.timeline__track { position: absolute; top: 12px; bottom: 12px; left: 7px; width: 2px; background: var(--on-ink-3); }
.timeline__track i { position: absolute; inset: 0; background: var(--rosso); transform: scaleY(0); transform-origin: top; will-change: transform; }
.tl { position: relative; display: grid; padding-left: 44px; }
.tl::before { content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid var(--on-ink-2); transition: background-color .4s, border-color .4s, box-shadow .4s; }
.tl.is-active::before { background: var(--rosso); border-color: var(--rosso); box-shadow: 0 0 0 6px rgba(200,16,46,.25); }
.tl__year { display: none; }
.tl__body { display: grid; gap: 10px; justify-items: start; }
.tl__date { color: var(--rosso-soft); }
.tl__title { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: .95; }
.tl__text { max-width: 52ch; font-size: 1.05rem; color: var(--on-ink-2); }
.tl__media { width: min(100%, 520px); aspect-ratio: 16 / 10; margin-top: 8px; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.tl__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) brightness(.85); transition: filter .9s, transform 1.4s var(--ease); }
.tl.is-active .tl__media img { filter: none; transform: scale(1.03); }
@media (min-width: 900px) {
  .timeline__track { left: 399px; }
  .tl { grid-template-columns: 340px 1fr; column-gap: 112px; padding-left: 0; }
  .tl::before { left: 392px; }
  .tl__year {
    display: block; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; text-align: right;
    font-stretch: 125%; font-weight: 800; font-size: clamp(4rem, 7.5vw, 7.5rem); line-height: .8; letter-spacing: -.03em;
    color: transparent; -webkit-text-stroke: max(1px, .012em) var(--on-ink-2); transition: color .5s, -webkit-text-stroke-color .5s;
  }
  .tl.is-active .tl__year { color: var(--rosso); -webkit-text-stroke-color: var(--rosso); }
  .tl__date { display: none; }
}

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: calc(var(--z-modal) + 5); padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--on-ink-3); font-size: .9rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .35s, transform .5s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .page-hero__crest::after { animation: none !important; opacity: 0; }
}
.ecurie__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.related { padding-top: clamp(56px, 7vw, 96px); }
.post-facts dd { font-stretch: 100%; font-size: clamp(1.4rem, 2vw, 1.8rem); white-space: nowrap; }

/* ==========================================================================
   WordPress : intégration du thème
   ========================================================================== */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.admin-bar .header, .admin-bar .progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .header, .admin-bar .progress { top: 46px; } }
.nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.sc-notice { padding: 16px 20px; margin: 0; border: 1px dashed var(--rosso); background: var(--paper); color: var(--ink); font: 500 14px/1.4 var(--f-sans); }
:root:not(.js) .map__stop { opacity: 1; }
.no-anim .reveal { opacity: 1 !important; transform: none !important; }

/* Hero : intensité du voile et position du blason réglables */
.hero::before { opacity: var(--voile-o, 1); }
.hero__slides::after { content: ""; position: absolute; inset: 0; background: rgba(12, 12, 11, var(--voile-plus, 0)); pointer-events: none; }
.hero--blason-dessus .hero__lockup { flex-direction: column; align-items: flex-start; gap: .22em; }
.hero--blason-dessus .hero__crest { height: 2.2em; }
.hero--blason-centre .hero__title { text-align: center; }
.hero--blason-centre .hero__lockup { flex-direction: column; align-items: center; gap: .22em; }
.hero--blason-centre .hero__crest { height: 2.4em; }
.hero--blason-centre .hero__words { align-items: center; }

/* Sections consécutives de même fond : elles se fondent en une seule */
.section--paper + .section--paper,
.section--ink + .section--ink:not(.presse),
.section--map + .section--map { padding-top: 0; }
.section--compact { padding-block: clamp(48px, 6vw, 88px); }
.section--head-only { padding-bottom: 0; }
.section--head-only .sec-head { margin-bottom: clamp(24px, 3vw, 40px); }

/* Pages composées de blocs */
.page-blocks { background: var(--paper); color: var(--ink); --fg: var(--ink); --bg: var(--paper); --fg-2: var(--on-paper-2); --fg-3: var(--on-paper-3); }
.page-blocks--home { background: var(--ink); }
.page-blocks > :not(.sc-block):not(.alignfull):not(.alignwide):not(script):not(style):not(span),
.sc-section__inner > :not(.alignfull):not(.alignwide) { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.sc-section__inner > * { width: min(100%, 760px); }
.page-blocks > .alignwide { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.page-blocks > :not(.sc-block):first-child { margin-top: clamp(56px, 7vw, 104px); }
.page-blocks > :not(.sc-block):last-child { margin-bottom: clamp(72px, 8vw, 128px); }
.page-blocks > :not(.sc-block) + :not(.sc-block) { margin-top: 1.3em; }
.sc-section__inner > * + * { margin-top: 1.3em; }

/* Contenus rédigés : articles, pages, sections libres */
:is(.post-body, .page-blocks, .sc-section__inner) :is(h2, h3, h4):not([class*="__"]):not(.h3) { margin-top: 1.4em; line-height: 1.05; }
:is(.post-body, .page-blocks, .sc-section__inner) h2:not([class*="__"]) { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.01em; }
:is(.post-body, .page-blocks, .sc-section__inner) h3:not([class*="__"]):not(.h3) { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); }
:is(.post-body, .page-blocks, .sc-section__inner) :is(ul, ol):not([class]) { padding-left: 1.3em; list-style: disc; }
:is(.post-body, .page-blocks, .sc-section__inner) ol:not([class]) { list-style: decimal; }
:is(.post-body, .page-blocks, .sc-section__inner) li + li { margin-top: .35em; }
:is(.post-body, .page-blocks, .sc-section__inner) p a:not([class]), :is(.post-body, .page-blocks, .sc-section__inner) li a:not([class]) { color: var(--rosso); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:is(.post-body, .page-blocks, .sc-section__inner) .wp-block-quote, :is(.post-body, .page-blocks) blockquote:not([class]) { padding: 6px 0 6px 22px; border-left: 3px solid var(--rosso); font-family: var(--f-serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.2; }
:is(.post-body, .page-blocks, .sc-section__inner) .wp-block-quote cite { display: block; margin-top: 10px; font: 400 .75rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2, var(--on-paper-2)); font-style: normal; }
:is(.post-body, .page-blocks, .sc-section__inner) :is(.wp-block-image, figure) img { border-radius: var(--radius); }
:is(.post-body, .page-blocks, .sc-section__inner) figcaption:not([class]), :is(.post-body, .page-blocks) .wp-element-caption { margin-top: 10px; font: 400 .72rem/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-paper-2); }
:is(.post-body, .page-blocks, .sc-section__inner) .wp-block-gallery { gap: 8px; }
:is(.post-body, .page-blocks) .wp-block-separator { border: 0; height: 1px; background: var(--on-paper-3); }
:is(.post-body, .page-blocks) .wp-block-button__link { border-radius: 999px; background: var(--rosso); color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; padding: .95em 1.6em; }
.section--ink :is(h2, h3):not([class*="__"]) { color: var(--paper); }
.post-body > :is(p, .wp-block-paragraph):first-child { font-family: var(--f-serif); font-size: clamp(1.45rem, 2.1vw, 1.8rem); line-height: 1.42; color: var(--ink); }
.post-body > :is(p, .wp-block-paragraph):first-child::first-letter { float: left; margin: .08em .1em 0 0; font-family: var(--f-sans); font-stretch: 125%; font-weight: 800; font-size: 3.6em; line-height: .78; color: var(--rosso); }
.post-body p:has(> .link-card) { display: contents; }
.post-body .wp-block-embed { margin: 0; }
.post-layout--solo { grid-template-columns: minmax(0, 760px) !important; justify-content: center; }
.link-card__logo { display: grid; place-items: center; width: 100%; height: 100%; background: var(--ink); color: var(--paper); font-stretch: 125%; font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; }
.rail__link { display: grid; gap: 4px; padding-right: 8px; color: var(--on-ink-2); }

/* En-têtes des pages intérieures */
.page-head { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); padding-top: calc(var(--header-h) + clamp(56px, 8vw, 120px)); padding-bottom: clamp(48px, 6vw, 96px); --fg: var(--paper); --bg: var(--ink); --fg-2: var(--on-ink-2); --fg-3: var(--on-ink-3); }
.page-head .hero__grain { opacity: .06; }
.page-head--image { display: grid; align-items: end; min-height: min(80vh, 780px); min-height: min(80svh, 780px); }
.page-head__img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.page-head--image::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(12,12,11,.7) 0%, rgba(12,12,11,.1) 35%, rgba(12,12,11,.85) 88%, var(--ink) 100%); }
.page-head__inner { display: grid; gap: 18px; justify-items: start; }
.page-head__eyebrow { color: var(--on-ink-2); }
.page-head__title { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 7vw, 6.8rem); line-height: .9; letter-spacing: -.02em; text-wrap: balance; }
.page-head__title em { font-family: var(--f-serif); font-weight: 400; text-transform: none; font-stretch: 100%; color: var(--rosso-soft); font-size: 1.08em; }
.page-head__lede { max-width: 36ch; font-family: var(--f-serif); font-size: clamp(1.3rem, 2.1vw, 1.9rem); line-height: 1.22; color: var(--on-ink-2); }
.page-hero__title em { font-family: var(--f-serif); font-weight: 400; text-transform: none; font-stretch: 100%; color: var(--rosso-soft); }
.page-hero__crest--small { height: clamp(120px, 20vh, 200px); }
.page-hero__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

/* Course : carte et récits */
.course-route__grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .course-route__grid { grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 5vw, 88px); align-items: start; } }
.course-route__map { padding: 16px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 40px 80px -48px rgba(12,12,11,.4); }
@media (min-width: 1000px) { .course-route__map { position: sticky; top: calc(var(--header-h) + 24px); } }
.course-route__map .map--mini .map__stop text { font-size: 26px; stroke-width: 7px; }
.course-route__map .map--mini .map__stop circle { r: 10px; }
.course-route__body .sec-head { margin-bottom: 28px; }
.course-route__note { font-family: var(--f-serif); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.3; }
.course-route__text { margin-top: 18px; color: var(--on-paper-2); }
.course-route__stages { margin-top: 28px; }
.course-film { margin-top: clamp(32px, 4vw, 56px); max-width: 960px; }
.car-story__photos--dark { margin-top: 0; }
.car-story__photos--dark button { background: var(--ink-2); }
.course-cards { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.course-card a { display: grid; gap: 6px; }
.course-card a:hover .car-card__media img { transform: scale(1.05); }
.events__details { min-width: 0; }

/* Albums */
.album-page__links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.mosaic { columns: 3 280px; column-gap: 10px; }
.mosaic button { display: block; width: 100%; margin-bottom: 10px; break-inside: avoid; overflow: hidden; border-radius: 2px; background: var(--ink-2); }
.mosaic img { width: 100%; height: auto; transition: transform 1.1s var(--ease), opacity .4s; }
.mosaic button:hover img { transform: scale(1.03); }

/* Journal, recherche, pagination */
.journal--list { padding-top: clamp(40px, 5vw, 72px); }
.post.is-extra { display: none; }
a.chip { display: inline-flex; align-items: center; }
.chip[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(40px, 5vw, 72px); }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border: 1px solid var(--on-paper-3); border-radius: 999px; font-weight: 600; transition: background-color .3s, color .3s, border-color .3s; }
.pagination a.page-numbers:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 680px; }
.search-form input { flex: 1; min-width: 220px; min-height: 52px; padding: 0 20px; border: 1px solid var(--on-paper-3); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 1rem; }
.search-form input:focus { outline: none; border-color: var(--ink); }
.search-bar { margin-bottom: clamp(32px, 4vw, 48px); }
.search-bar--dark { width: min(100%, 680px); margin: 12px auto 0; }
.search-bar--dark input { background: rgba(243,239,231,.06); border-color: rgba(243,239,231,.24); color: var(--paper); }
.empty-state { padding: 48px 0; }
.empty-state__title { font-family: var(--f-serif); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; }
.empty-state a { color: var(--rosso); text-decoration: underline; }
