/* ==========================================================================
   LE PILON — Centre équestre & poney club · Manosque
   Design system : vide noir cinématique, capitales espacées, rouge = interaction
   ========================================================================== */

/* ---------- Polices (auto-hébergées, conformes RGPD) ---------- */
@font-face {
  font-family: "Inter Pilon";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Pilon";
  src: url("../fonts/inter-latin-ext-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --color-rosso-corsa: #da291c;
  --color-rosso-scuro: #9d2211;
  --color-bianco: #ffffff;
  --color-nero: #000000;
  --color-notte: #181818;
  --color-grafite: #303030;
  --color-fumo: #8f8f8f;
  --color-piombo: #666666;
  --color-argento: #d2d2d2;
  --color-velo: #f7f7f7;
  --color-cemento: #ebebeb;

  --bg: var(--color-nero);
  --bg-2: var(--color-notte);
  --fg: var(--color-bianco);
  --muted: var(--color-fumo);
  --line: var(--color-grafite);
  --red: var(--color-rosso-corsa);

  --font: "Inter Pilon", "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --gutter: clamp(16px, 4vw, 60px);
  --max: 1440px;
  --nav-h: 76px;
  --section: clamp(96px, 13vw, 200px);
}

.is-light {
  --bg: var(--color-bianco);
  --bg-2: var(--color-velo);
  --fg: var(--color-nero);
  --muted: var(--color-piombo);
  --line: var(--color-argento);
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--color-nero); scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.78;
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { 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; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 1px solid var(--red); outline-offset: 4px; }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: #fff; color: #000; padding: 12px 18px;
  font-size: 12px; letter-spacing: .083em; text-transform: uppercase;
  transition: top .3s var(--ease-out);
}
.skip:focus { top: 16px; }
.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;
}

/* ---------- Typographie ---------- */
.t-label, .t-caption {
  display: block;
  font-size: 11px;
  line-height: 1.78;
  letter-spacing: .091em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
}
.t-caption { font-size: 12px; letter-spacing: .083em; }
.t-label--fg { color: var(--fg); }

.t-display {
  font-size: clamp(34px, 9.6vw, 150px);
  line-height: .92;
  letter-spacing: .005em;
  font-weight: 500;
  text-transform: uppercase;
}
.t-h2 {
  font-size: clamp(30px, 5vw, 78px);
  line-height: .98;
  letter-spacing: .005em;
  font-weight: 500;
  text-transform: uppercase;
}
.t-h3 {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.2;
  letter-spacing: .03em;
  font-weight: 500;
  text-transform: uppercase;
}
.t-lead {
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.55;
  color: var(--fg);
  font-weight: 400;
}
.t-muted { color: var(--muted); }
.t-num { font-variant-numeric: tabular-nums; }

.line { display: block; overflow: hidden; padding: .16em 0 .1em; margin: -.16em 0 -.1em; }
.line > span { display: block; }

/* ---------- Liens & boutons ---------- */
.cta-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .083em; text-transform: uppercase; font-weight: 500;
  color: var(--fg);
  padding: 6px 0;
  position: relative;
  transition: color .35s var(--ease-out);
}
.cta-link::after {
  content: ""; position: absolute; left: 0; right: 30px; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-out);
}
.cta-link .arrow { display: inline-block; transition: transform .5s var(--ease-out); }
.cta-link:hover, .cta-link:focus-visible { color: var(--red); }
.cta-link:hover::after { transform: scaleX(1); transform-origin: left; }
.cta-link:hover .arrow { transform: translateX(6px); }

.arrow-svg { width: 16px; height: 16px; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 56px; padding: 0 32px;
  border: 1px solid var(--fg);
  font-size: 12px; letter-spacing: .083em; text-transform: uppercase; font-weight: 500;
  color: var(--fg);
  position: relative; overflow: hidden;
  transition: color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.btn .arrow { transition: transform .5s var(--ease-out); }
.btn:hover, .btn:focus-visible { color: var(--red); border-color: var(--red); }
.btn:hover .arrow { transform: translateX(6px); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 9999px;
  font-size: 11px; letter-spacing: .091em; text-transform: uppercase;
  color: var(--fg);
  transition: border-color .3s, color .3s;
  white-space: nowrap;
}
.is-light .pill { border-color: rgba(0, 0, 0, .25); }
button.pill:hover { border-color: var(--red); color: var(--red); }
.pill.is-active { border-color: var(--red); }
.pill.is-active::before { content: ""; width: 6px; height: 6px; background: var(--red); }

/* ---------- Mise en page ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding: clamp(64px, 8vw, 120px) 0; }
.section--night { background: var(--bg-2); }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

.head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  margin-bottom: clamp(48px, 7vw, 110px);
  align-items: end;
}
.head__label { grid-column: 1 / span 3; align-self: start; padding-top: .6em; }
.head__title { grid-column: 4 / span 9; }
.head__text { grid-column: 4 / span 6; margin-top: 32px; color: var(--muted); max-width: 640px; }
@media (max-width: 760px) {
  .head { gap: 18px; }
  .head__label, .head__title, .head__text { grid-column: 1 / -1; }
  .head__label { padding-top: 0; }
  .head__text { margin-top: 8px; }
}
.head--center { display: block; text-align: center; }
.head--center .head__label { margin-bottom: 28px; }
.head--center .head__text { margin: 32px auto 0; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 120;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease);
  animation: loader-failsafe 0s 7s forwards;
}
html:not(.js) .loader, .is-returning .loader { display: none; }
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__word {
  display: flex; overflow: hidden;
  font-size: clamp(40px, 10vw, 150px); font-weight: 500; line-height: 1;
  letter-spacing: .04em; text-transform: uppercase;
}
.loader__word span {
  display: inline-block; transform: translateY(110%);
  animation: rise-in 1s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 55ms + 120ms);
}
.loader.is-done .loader__word span {
  animation: rise-out .8s var(--ease) forwards;
  animation-delay: calc(var(--i) * 25ms);
}
.loader__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--gutter) + 14px);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 11px; letter-spacing: .091em; text-transform: uppercase; color: var(--color-fumo);
}
.loader__count { color: #fff; font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--color-grafite); }
.loader__bar i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); }
@keyframes rise-in { to { transform: translateY(0); } }
@keyframes rise-out { from { transform: translateY(0); } to { transform: translateY(-110%); } }
@keyframes loader-failsafe { to { visibility: hidden; pointer-events: none; } }

/* ---------- Rideau de transition ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 110; pointer-events: none;
  background: #000; transform: scaleY(0); transform-origin: top;
}
.curtain::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red);
}
.js .curtain { animation: curtain-out .95s var(--ease) .05s both; }
.curtain.is-leaving { animation: curtain-in .6s var(--ease) both; transform-origin: bottom; }
.curtain.is-leaving::after { top: 0; bottom: auto; }
@keyframes curtain-out { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes curtain-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Barre de progression ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 95; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }

/* ---------- Curseur ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 130; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-visible { opacity: 1; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; will-change: transform; }
.cursor__dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff;
  mix-blend-mode: difference;
}
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), border-color .3s, background-color .3s;
}
.cursor__label {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  opacity: 0; transition: opacity .25s;
}
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--red); }
.cursor.has-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; border-color: var(--red); background: rgba(0, 0, 0, .35); backdrop-filter: blur(4px); }
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.has-label .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { transform-origin: center; scale: .85; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor [data-cursor] { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.has-cursor select { cursor: pointer; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 90;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  color: #fff;
  transition: transform .7s var(--ease), background-color .5s, backdrop-filter .5s;
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: rgba(255, 255, 255, .08); opacity: 0; transition: opacity .5s;
}
.nav.is-solid { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
.nav.is-solid::after { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.menu-open .nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
.menu-open .nav::after { opacity: 0; }

.logo { display: inline-flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.logo__icon { width: 30px; height: 30px; flex: none; transition: transform .8s var(--ease-out); }
.logo:hover .logo__icon { transform: rotate(-12deg); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-size: 15px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; margin-right: -.3em; }
.logo__sub { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-fumo); margin-top: 6px; }

.nav__links { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.nav__links a {
  position: relative; font-size: 11px; letter-spacing: .091em; text-transform: uppercase;
  padding: 5px 0; color: #fff; transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav__links a:hover { color: var(--red); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); background: var(--red); }

.nav__right { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); position: relative; z-index: 2; }
.nav__phone { font-size: 11px; letter-spacing: .091em; text-transform: uppercase; font-variant-numeric: tabular-nums; transition: color .3s; }
.nav__phone:hover { color: var(--red); }
.nav__toggle { display: inline-flex; align-items: center; gap: 14px; padding: 10px 0; }
.nav__toggle-label { display: grid; overflow: hidden; height: 1.6em; font-size: 11px; letter-spacing: .091em; text-transform: uppercase; }
.nav__toggle-label span { grid-area: 1 / 1; transition: transform .6s var(--ease); line-height: 1.6; }
.nav__toggle-label span + span { transform: translateY(100%); }
.menu-open .nav__toggle-label span:first-child { transform: translateY(-100%); }
.menu-open .nav__toggle-label span + span { transform: translateY(0); }
.nav__burger { width: 26px; height: 10px; position: relative; }
.nav__burger i {
  position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .6s var(--ease), top .6s var(--ease), background-color .3s;
}
.nav__burger i:first-child { top: 0; }
.nav__burger i:last-child { top: 9px; }
.nav__toggle:hover .nav__burger i { background: var(--red); }
.nav__toggle:hover { color: var(--red); }
.menu-open .nav__burger i:first-child { top: 4.5px; transform: rotate(45deg); }
.menu-open .nav__burger i:last-child { top: 4.5px; transform: rotate(-45deg); }

@media (max-width: 1179px) { .nav__links { display: none; } }
@media (max-width: 600px) { .nav__phone { display: none; } .logo__sub { display: none; } }

/* ---------- Menu plein écran ---------- */
.menu {
  position: fixed; inset: 0; z-index: 85;
  background: #000; color: #fff;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .9s var(--ease), visibility 0s .9s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease), visibility 0s; }
.menu__inner {
  height: 100%; display: grid;
  grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr auto;
  padding: calc(var(--nav-h) + 3vh) var(--gutter) var(--gutter);
  gap: 24px clamp(24px, 4vw, 80px);
  overflow-y: auto;
}
.menu__list { counter-reset: m; align-self: center; }
.menu__list li { overflow: hidden; font-size: clamp(26px, min(6.2vh, 8.2vw), 76px); padding-top: .18em; margin-top: -.18em; }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: clamp(26px, min(6.2vh, 8.2vw), 76px); line-height: 1.08; font-weight: 500; text-transform: uppercase; letter-spacing: .005em;
  transform: translateY(140%);
  transition: transform .9s var(--ease-out), color .3s;
}
.menu-open .menu__list a { transform: translateY(0); transition-delay: calc(var(--i) * 55ms + 250ms), 0s; }
.menu__list a .menu__n { font-size: 11px; letter-spacing: .091em; color: var(--color-fumo); font-weight: 400; transform: translateY(-1.6em); }
.menu__list a:hover, .menu__list a[aria-current="page"] { color: var(--red); }
.menu__list:hover a:not(:hover) { color: rgba(255, 255, 255, .28); }
.menu__media { position: relative; overflow: hidden; align-self: stretch; min-height: 300px; opacity: 0; transition: opacity .6s .3s; }
.menu-open .menu__media { opacity: 1; }
.menu__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0); transform: scale(1.15);
  transition: clip-path .9s var(--ease), transform 1.4s var(--ease-out);
}
.menu__media img.is-active { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }
.menu__foot {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  border-top: 1px solid var(--color-grafite); padding-top: 24px;
  font-size: 12px; letter-spacing: .083em; text-transform: uppercase; line-height: 1.9;
  opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s var(--ease-out);
}
.menu-open .menu__foot { opacity: 1; transform: none; transition-delay: .6s; }
.menu__foot p { margin: 0; overflow-wrap: anywhere; }
.menu__foot a:hover { color: var(--red); }
@media (max-width: 900px) {
  .menu__inner { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .menu__media { display: none; }
  .menu__foot { grid-template-columns: 1fr; gap: 14px; }
  .menu__foot > div:first-child { display: none; }
}

/* ---------- Révélations au scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 48px, 0); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="lines"] { opacity: 1; transform: none; }
.js [data-reveal="lines"] .line > span { transform: translate3d(0, 150%, 0); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0s)); }
.js [data-reveal="lines"].is-in .line > span { transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"].is-in > * { clip-path: inset(0 0 0 0); }
.js [data-reveal="clip"] img { transform: scale(1.25); transition: transform 2s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"].is-in img { transform: scale(1); }
.js [data-reveal="rule"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.js [data-reveal="rule"].is-in { transform: none; }
.js [data-reveal="chars"] { opacity: 1; transform: none; }
.js [data-reveal="chars"] > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.3s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.js [data-reveal="chars"].is-in > span { transform: none; }

/* ---------- Médias ---------- */
.media { position: relative; overflow: hidden; margin: 0; background: var(--color-notte); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media__inner { position: absolute; left: 0; right: 0; top: -9%; bottom: -9%; }
.media__inner img { width: 100%; height: 100%; object-fit: cover; }
.media--34 { aspect-ratio: 3 / 4; }
.media--45 { aspect-ratio: 4 / 5; }
.media--169 { aspect-ratio: 16 / 9; }
.media--32 { aspect-ratio: 3 / 2; }
.media--11 { aspect-ratio: 1 / 1; }
.media figcaption, .media__cap {
  position: absolute; left: 20px; bottom: 16px; z-index: 2;
  font-size: 11px; letter-spacing: .091em; text-transform: uppercase; color: #fff;
}

/* ---------- Hero accueil ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: #000; color: #fff; }
.hero__slides { position: absolute; inset: 0; will-change: transform; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.hero__slide.is-active img { animation: kenburns 9s var(--ease-out) forwards; }
@keyframes kenburns { from { transform: scale(1.16); } to { transform: scale(1.02); } }
.hero__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 26%),
    linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.25) 42%, rgba(0,0,0,0) 62%);
}
.hero__content {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter);
  bottom: clamp(104px, 15vh, 150px);
}
.hero__kicker { color: rgba(255,255,255,.75); margin-bottom: clamp(18px, 2.4vw, 30px); }
.hero__titles { display: grid; }
.hero__title { grid-area: 1 / 1; margin: 0; }
.hero__title .line > span { transform: translate3d(0, 150%, 0); transition: transform 1.2s var(--ease-out); }
.hero__title .line + .line > span { transition-delay: .09s; }
.hero__title.is-active .line > span { transform: none; transition-delay: .35s; }
.hero__title.is-active .line + .line > span { transition-delay: .45s; }
.hero__title.is-leaving .line > span { transform: translate3d(0, -150%, 0); transition: transform .9s var(--ease); }
html:not(.js) .hero__title:first-child .line > span { transform: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: clamp(26px, 3.2vw, 44px); }
.hero__actions .cta-link { color: #fff; }
.hero__actions .cta-link:hover { color: var(--red); }
.hero__ui {
  position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(32px, 5vh, 52px);
  display: flex; align-items: center; gap: 28px;
}
.hero__count { font-size: 11px; letter-spacing: .091em; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.hero__count b { color: #fff; font-weight: 500; }
.dots { display: flex; gap: 10px; align-items: center; }
.dot {
  width: 40px; height: 14px; position: relative; display: block;
}
.dot::before, .dot i {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px;
}
.dot::before { background: rgba(255,255,255,.3); }
.dot i { background: var(--red); transform: scaleX(0); transform-origin: left; }
.dot:hover::before { background: #fff; }
.dot.is-active i { animation: dot-fill var(--dur, 7s) linear forwards; }
.dot.is-paused i { animation-play-state: paused; }
@keyframes dot-fill { to { transform: scaleX(1); } }
.dots--square .dot { width: 9px; height: 9px; background: var(--color-fumo); }
.dots--square .dot::before, .dots--square .dot i { display: none; }
.dots--square .dot.is-active { background: var(--red); }
.dots--square .dot:hover { background: #fff; }

.hero__scroll {
  position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(32px, 5vh, 52px);
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .091em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.hero__scroll i { position: relative; width: 1px; height: 38px; background: rgba(255,255,255,.2); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: #fff; animation: scroll-cue 2.2s var(--ease) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
@media (max-width: 700px) {
  .hero__ui { left: var(--gutter); right: auto; }
  .hero__scroll { display: none; }
  .hero__count { display: none; }
}

/* ---------- Hero des pages intérieures ---------- */
.phero { position: relative; height: 88vh; height: 88svh; min-height: 560px; overflow: hidden; background: #000; color: #fff; }
.phero--short { height: 70vh; height: 70svh; min-height: 480px; }
.phero__media { position: absolute; inset: 0; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.js .phero__media img { animation: phero-in 2.4s var(--ease-out) both; }
@keyframes phero-in { from { transform: scale(1.18); opacity: .2; } to { transform: scale(1.04); opacity: 1; } }
.phero__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,.45) 100%); }
.phero__content {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(48px, 9vh, 96px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end;
}
.phero__title { grid-column: 1 / span 8; }
.phero__crumb { grid-column: 1 / -1; display: flex; gap: 10px; color: rgba(255,255,255,.7); }
.phero__crumb a:hover { color: var(--red); }
.phero__intro { grid-column: 9 / span 4; color: rgba(255,255,255,.82); margin: 0; font-size: 15px; }
@media (max-width: 1000px) {
  .phero__title, .phero__intro { grid-column: 1 / -1; }
}

/* ---------- Manifeste ---------- */
.manifesto { text-align: center; }
.manifesto .t-label { margin-bottom: clamp(32px, 4vw, 56px); }
.manifesto__text {
  max-width: 1180px; margin: 0 auto clamp(40px, 5vw, 64px);
  font-size: clamp(23px, 3.3vw, 50px); line-height: 1.14; font-weight: 500;
  text-transform: uppercase; letter-spacing: .005em;
}
.manifesto__text .w { display: inline-block; }

/* ---------- Chiffres clés ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: clamp(28px, 3.4vw, 48px) clamp(16px, 2vw, 32px) 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: clamp(16px, 2vw, 32px); }
.stat:last-child { border-right: 0; }
.stat__num {
  display: block; font-size: clamp(44px, 6vw, 96px); line-height: 1; font-weight: 400;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin-bottom: 18px; white-space: nowrap;
}
.stat__num small { font-size: .38em; letter-spacing: .02em; margin-left: .18em; color: var(--muted); }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
}

/* ---------- Bandeau cinéma ---------- */
.band { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; background: #000; }
.band .media { position: absolute; inset: 0; }
.band__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,0) 55%); z-index: 1; }
.band__content {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(40px, 8vh, 90px);
  display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap;
}
.band__content .t-h2 { max-width: 14ch; }
.band__meta { max-width: 360px; color: rgba(255,255,255,.8); }
.band__meta .t-label { color: rgba(255,255,255,.7); margin-bottom: 12px; }

/* ---------- Liste des univers (survol image flottante) ---------- */
.offers { position: relative; }
.offers__list { border-bottom: 1px solid var(--line); }
.offers__row {
  display: grid; grid-template-columns: 70px 1fr minmax(0, 340px) 32px; gap: 24px; align-items: center;
  padding: clamp(22px, 2.8vw, 40px) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.offers__n { font-size: 11px; letter-spacing: .091em; color: var(--muted); font-variant-numeric: tabular-nums; }
.offers__title {
  font-size: clamp(28px, 4.6vw, 74px); line-height: 1; font-weight: 500; text-transform: uppercase; letter-spacing: .005em;
  transition: transform .8s var(--ease-out), opacity .5s;
}
.offers__desc { font-size: 13px; color: var(--muted); margin: 0; transition: opacity .5s; }
.offers__arrow { justify-self: end; transition: transform .6s var(--ease-out), color .3s; }
.offers__row:hover .offers__title, .offers__row:focus-visible .offers__title { transform: translateX(clamp(10px, 2vw, 30px)); }
.offers__row:hover .offers__arrow { color: var(--red); transform: translateX(6px); }
.offers__list:hover .offers__row:not(:hover) .offers__title,
.offers__list:hover .offers__row:not(:hover) .offers__desc { opacity: .28; }
.offers__float {
  position: fixed; left: 0; top: 0; z-index: 6; pointer-events: none;
  width: clamp(220px, 21vw, 340px); aspect-ratio: 3 / 4; overflow: hidden;
  opacity: 0; scale: .7; transition: opacity .45s var(--ease-out), scale .6s var(--ease-out);
  will-change: transform;
}
.offers__float.is-visible { opacity: 1; scale: 1; }
.offers__float img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0); transform: scale(1.2);
  transition: clip-path .7s var(--ease), transform 1.2s var(--ease-out);
}
.offers__float img.is-active { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }
@media (max-width: 900px) {
  .offers__row { grid-template-columns: 36px 1fr 24px; gap: 12px 16px; }
  .offers__desc { grid-column: 2 / 3; }
  .offers__arrow { grid-row: 1; grid-column: 3; }
  .offers__float { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(18px, 2.2vw, 34px) 0; user-select: none; }
.marquee__track { display: inline-flex; white-space: nowrap; will-change: transform; }
.marquee__item {
  display: inline-flex; align-items: center; gap: clamp(24px, 3vw, 56px); padding-right: clamp(24px, 3vw, 56px);
  font-size: clamp(54px, 9.5vw, 160px); line-height: 1; font-weight: 500; text-transform: uppercase; letter-spacing: .005em;
}
.marquee__item:nth-child(odd) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); }
.marquee__item::after { content: ""; width: .12em; height: .12em; background: currentColor; }
.marquee__item:nth-child(odd)::after { background: rgba(255,255,255,.55); }

/* ---------- Défilement horizontal épinglé ---------- */
.hs { position: relative; overflow: hidden; }
.hs__inner { height: 100vh; height: 100svh; display: flex; align-items: center; }
.hs__track { display: flex; gap: clamp(16px, 1.8vw, 28px); padding: 0 var(--gutter); will-change: transform; align-items: stretch; }
.hs__intro { flex: 0 0 clamp(300px, 33vw, 520px); display: flex; flex-direction: column; justify-content: space-between; padding: 8px clamp(16px, 3vw, 64px) 8px 0; }
.hs__intro .t-h2 { margin: 24px 0 28px; }
.hs__intro p { color: var(--muted); max-width: 400px; }
.hs__progress { height: 1px; background: var(--line); margin-top: 32px; }
.hs__progress i { display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; }
.hs__card { flex: 0 0 clamp(260px, 26vw, 420px); display: flex; flex-direction: column; }
.hs__card .media { aspect-ratio: 3 / 4; height: min(64vh, calc(clamp(260px, 26vw, 420px) * 1.333)); aspect-ratio: auto; }
.hs__card .media img { filter: saturate(.8) brightness(.85); transition: transform 1.4s var(--ease-out), filter .8s; }
.hs__card:hover .media img { transform: scale(1.07); filter: none; }
.hs__meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; }
.hs__card h3 { transition: color .3s; }
.hs__card:hover h3 { color: var(--red); }
.hs__card p { color: var(--muted); font-size: 13px; margin: 8px 0 0; max-width: 34ch; }
@media (max-width: 899px) {
  .hs__inner { height: auto; display: block; padding: var(--section) 0; }
  .hs__track { flex-direction: column; overflow: visible; padding: 0; }
  .hs__intro { flex: none; padding: 0 var(--gutter); margin-bottom: 40px; }
  .hs__progress { display: none; }
  .hs__rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); padding: 0 var(--gutter) 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .hs__rail::-webkit-scrollbar { display: none; }
  .hs__card { flex: 0 0 76vw; scroll-snap-align: start; }
  .hs__card .media { height: auto; aspect-ratio: 3 / 4; }
}
@media (min-width: 900px) { .hs__rail { display: contents; } }

/* ---------- Bloc texte + image ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.split__media { grid-column: 1 / span 6; }
.split__body { grid-column: 8 / span 5; }
.split--rev .split__media { grid-column: 7 / span 6; order: 2; }
.split--rev .split__body { grid-column: 1 / span 5; order: 1; }
.split__body .t-h2 { margin: 22px 0 32px; }
.split__body p { color: var(--muted); }
.split__body .cta-link { margin-top: 18px; }
@media (max-width: 900px) {
  .split__media, .split__body, .split--rev .split__media, .split--rev .split__body { grid-column: 1 / -1; order: 0; }
  .split__body { margin-top: 32px; }
}

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin: 36px 0 30px; }
.facts > div { padding: 18px 12px 0 0; }
.facts > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts b { display: block; font-size: clamp(26px, 2.6vw, 38px); font-weight: 400; line-height: 1.1; margin-bottom: 6px; font-variant-numeric: tabular-nums; }

.checks { border-top: 1px solid var(--line); margin: 28px 0; }
.checks li {
  display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: .083em; text-transform: uppercase;
}
.checks li span:first-child { color: var(--muted); font-size: 11px; min-width: 28px; font-variant-numeric: tabular-nums; }

/* ---------- Image plein cadre avec texte ---------- */
.feature { position: relative; min-height: 115vh; overflow: hidden; color: #fff; display: flex; align-items: flex-end; background: #000; }
.feature > .media { position: absolute; inset: 0; }
.feature__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.1) 100%); }
.feature__content { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) clamp(56px, 10vh, 120px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.feature__title { grid-column: 1 / span 7; }
.feature__title .t-label { color: rgba(255,255,255,.7); margin-bottom: 22px; }
.feature__aside { grid-column: 9 / span 4; }
.feature__aside p { color: rgba(255,255,255,.8); }
.feature__aside .pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
@media (max-width: 900px) { .feature__title, .feature__aside { grid-column: 1 / -1; } }

/* ---------- Avis ---------- */
.reviews { text-align: center; }
.reviews__score { display: inline-flex; align-items: baseline; gap: 14px; margin-bottom: clamp(40px, 5vw, 70px); }
.reviews__score b { font-size: clamp(44px, 5vw, 72px); font-weight: 400; line-height: 1; }
.reviews__stage { display: grid; max-width: 1100px; margin: 0 auto; }
.review { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), visibility 0s .9s; }
.review.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .15s, 0s; }
.review blockquote {
  margin: 0 0 32px; font-size: clamp(22px, 3vw, 44px); line-height: 1.22; font-weight: 400; letter-spacing: -.005em;
}
.review figcaption { font-size: 11px; letter-spacing: .091em; text-transform: uppercase; color: var(--muted); }
.reviews .dots { justify-content: center; margin-top: 48px; }
.reviews__link { margin-top: 40px; }

/* ---------- Concours ---------- */
.events { border-top: 1px solid var(--line); }
.event {
  display: grid; grid-template-columns: 200px 1fr 220px 32px; gap: 24px; align-items: center;
  padding: clamp(22px, 2.6vw, 36px) clamp(0px, 1vw, 16px); border-bottom: 1px solid var(--line);
  transition: background-color .4s;
}
.event:hover { background: var(--color-notte); }
.is-light .event:hover { background: var(--color-velo); }
.event__date { display: flex; flex-direction: column; gap: 8px; }
.event__date .t-label { white-space: nowrap; }
.event__date b { font-size: clamp(34px, 3.6vw, 54px); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.event__disc { display: flex; flex-wrap: wrap; gap: 8px; }
.event__info { font-size: 11px; letter-spacing: .091em; text-transform: uppercase; color: var(--muted); line-height: 1.9; }
.event__arrow { justify-self: end; transition: color .3s, transform .5s var(--ease-out); }
.event:hover .event__arrow { color: var(--red); transform: translateX(6px); }
.events__empty { padding: 36px 0; color: var(--muted); display: none; }
.events.is-empty .events__empty { display: block; }
@media (max-width: 900px) {
  .event { grid-template-columns: 1fr 24px; }
  .event__disc, .event__info { grid-column: 1; }
  .event__arrow { grid-row: 1; grid-column: 2; }
}

/* ---------- CTA final ---------- */
.cta-final { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; color: #fff; background: #000; }
.cta-final > .media { position: absolute; inset: 0; }
.cta-final__shade { position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.45); }
.cta-final__content { position: relative; z-index: 2; padding: 0 var(--gutter); }
.cta-final .t-label { color: rgba(255,255,255,.75); margin-bottom: 26px; }
.cta-final .t-display { font-size: clamp(36px, 8vw, 132px); }
.cta-final__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 44px; margin-top: 44px; }

/* ---------- Grilles de cartes ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--bg-2); display: flex; flex-direction: column; position: relative; }
.card .media { aspect-ratio: 4 / 3; }
.card .media img { transition: transform 1.4s var(--ease-out); }
.card:hover .media img { transform: scale(1.06); }
.card__body { padding: clamp(24px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__body p { color: var(--muted); font-size: 14px; margin: 0; }
.card__n { font-size: 11px; letter-spacing: .091em; color: var(--muted); }
a.card h3 { transition: color .3s; }
a.card:hover h3 { color: var(--red); }
@media (max-width: 1000px) { .cards, .cards--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards, .cards--4, .cards--2 { grid-template-columns: 1fr; } }

/* ---------- Disciplines (liste typographique) ---------- */
.disc { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.disc__item { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); position: relative; }
.disc__item:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.disc__item h3 { margin: 14px 0 10px; transition: color .3s, transform .6s var(--ease-out); }
.disc__item:hover h3 { color: var(--red); transform: translateX(6px); }
.disc__item p { color: var(--muted); margin: 0; font-size: 14px; }
@media (max-width: 900px) {
  .disc { grid-template-columns: 1fr 1fr; }
  .disc__item:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .disc__item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .disc { grid-template-columns: 1fr; }
  .disc__item:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Parcours / niveaux ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.step { padding: 0 24px 0 0; position: relative; }
.step + .step { padding-left: 24px; }
.step__rule { height: 1px; background: var(--fg); margin-bottom: 26px; }
.step__age { font-size: 11px; letter-spacing: .091em; text-transform: uppercase; color: var(--muted); }
.step h3 { margin: 10px 0 14px; }
.step p { color: var(--muted); font-size: 14px; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .step + .step { padding-left: 0; }
  .step:nth-child(even) { padding-left: 24px; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step:nth-child(even) { padding-left: 0; } }

/* ---------- Caractéristiques des installations ---------- */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.spec { padding: 34px 24px 40px 0; border-right: 1px solid var(--line); }
.spec + .spec { padding-left: 24px; }
.spec:last-child { border-right: 0; }
.spec__big { display: block; font-size: clamp(34px, 3.6vw, 56px); line-height: 1; font-weight: 400; margin: 18px 0 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spec__big small { font-size: .4em; color: var(--muted); margin-left: .2em; }
.spec h3 { margin-bottom: 10px; }
.spec p { color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 1000px) {
  .specs { grid-template-columns: 1fr 1fr; }
  .spec:nth-child(2) { border-right: 0; }
  .spec:nth-child(3) { padding-left: 0; }
  .spec:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .specs { grid-template-columns: 1fr; }
  .spec, .spec + .spec { padding-left: 0; border-right: 0; }
  .spec + .spec { border-top: 1px solid var(--line); }
}

/* ---------- Tableaux de tarifs ---------- */
.pricing { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.pricing:first-of-type { border-top: 0; }
.pricing__head { grid-column: 1 / span 4; }
.pricing__head .t-h3 { margin: 14px 0 16px; font-size: clamp(22px, 2.2vw, 32px); }
.pricing__head p { color: var(--muted); font-size: 14px; }
.pricing__body { grid-column: 6 / span 7; }
@media (max-width: 900px) { .pricing__head, .pricing__body { grid-column: 1 / -1; } }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table caption { text-align: left; padding-bottom: 14px; }
.table th, .table td { text-align: left; padding: 15px 12px 15px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.table thead th { font-size: 11px; letter-spacing: .091em; text-transform: uppercase; font-weight: 400; color: var(--muted); padding-top: 0; }
.table td.num, .table th.num { text-align: right; padding-right: 0; padding-left: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td.num { font-size: 16px; }
.table tbody tr { transition: background-color .3s; }
.table tbody tr:hover td { color: var(--fg); }
.table tbody th { font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.table + .table { margin-top: 36px; }
.note { font-size: 12px; color: var(--muted); margin-top: 18px; }

.schedule { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-bottom: 36px; }
.schedule > div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.schedule > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.schedule b { display: block; font-size: 20px; font-weight: 400; font-variant-numeric: tabular-nums; margin-top: 6px; }
@media (max-width: 560px) {
  .schedule { grid-template-columns: 1fr; }
  .schedule > div + div { padding-left: 0; border-left: 0; }
}

/* ---------- Frise chronologique ---------- */
.timeline { position: relative; }
.tl { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: clamp(28px, 3vw, 44px) 0; border-top: 1px solid var(--line); align-items: baseline; }
.tl__year { grid-column: 1 / span 3; font-size: clamp(40px, 5vw, 80px); line-height: 1; font-weight: 400; font-variant-numeric: tabular-nums; transition: color .3s; }
.tl:hover .tl__year { color: var(--red); }
.tl__title { grid-column: 5 / span 3; }
.tl__text { grid-column: 9 / span 4; color: var(--muted); margin: 0; font-size: 14px; }
@media (max-width: 900px) { .tl__year, .tl__title, .tl__text { grid-column: 1 / -1; } }

/* ---------- Labels ---------- */
.labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.label-card { background: var(--bg-2); padding: 30px 26px 34px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; transition: background-color .4s; }
.label-card:hover { background: var(--line); }
.label-card__mark { width: 34px; height: 34px; border: 1px solid var(--fg); display: grid; place-items: center; font-size: 10px; letter-spacing: .08em; }
.label-card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 1000px) { .labels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .labels { grid-template-columns: 1fr; } }

/* ---------- Cavalerie ---------- */
.horses__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.horses__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.horses__count b { color: var(--fg); font-weight: 500; }
.horses__list { border-top: 1px solid var(--line); }
.horse {
  display: grid; grid-template-columns: 60px 1.4fr 110px 140px 1fr; gap: 16px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: .083em; text-transform: uppercase;
  transition: opacity .4s, background-color .3s;
}
.horse__n { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.horse__name { font-size: 14px; letter-spacing: .06em; font-weight: 500; transition: color .3s, transform .5s var(--ease-out); }
.horse:hover .horse__name { color: var(--red); transform: translateX(6px); }
.horse__h { font-variant-numeric: tabular-nums; }
.horse__race { color: var(--muted); }
.horse.is-hidden { display: none; }
.horse--head { color: var(--muted); font-size: 11px; letter-spacing: .091em; padding: 0 0 12px; }
.horse--head:hover .horse__name { color: inherit; transform: none; }
.horse__mark { display: inline-block; margin-left: 10px; font-size: 9px; letter-spacing: .09em; padding: 2px 8px; border: 1px solid var(--line); border-radius: 9999px; color: var(--muted); vertical-align: middle; }
@media (max-width: 800px) {
  .horse { grid-template-columns: 36px 1fr 70px; }
  .horse__cat, .horse__race { display: none; }
}

/* ---------- Formulaire ---------- */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.contact__info { grid-column: 1 / span 4; }
.contact__form { grid-column: 6 / span 7; }
@media (max-width: 1000px) { .contact__info, .contact__form { grid-column: 1 / -1; } .contact__form { margin-top: 48px; } }
.info-block { padding: 22px 0; border-top: 1px solid var(--line); }
.info-block .t-label { margin-bottom: 10px; }
.info-block p { margin: 0; }
.info-block a { transition: color .3s; }
.info-block a:hover { color: var(--red); }
.info-block .big { font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.hours { width: 100%; border-collapse: collapse; font-size: 13px; }
.hours td { padding: 6px 0; vertical-align: top; }
.hours td + td { text-align: right; color: var(--muted); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.field { position: relative; grid-column: span 1; padding-top: 22px; }
.field--full { grid-column: 1 / -1; }
.field label, .field__label {
  position: absolute; left: 0; top: 36px;
  font-size: 12px; letter-spacing: .083em; text-transform: uppercase; color: var(--muted);
  pointer-events: none; transform-origin: left top;
  transition: transform .45s var(--ease-out), color .3s, top .45s var(--ease-out);
}
.field input, .field textarea, .field select {
  width: 100%; background: transparent; color: var(--fg);
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font: inherit; font-size: 16px; padding: 12px 0 12px; outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color .3s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field select { padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: #181818; color: #fff; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.field:focus-within label, .field.is-filled label, .field--select label { top: 4px; transform: scale(.92); color: var(--fg); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-bottom-color: var(--red); }
.field.is-invalid label { color: var(--red); }
.field__error { display: block; font-size: 11px; letter-spacing: .06em; color: var(--red); min-height: 18px; margin-top: 6px; }
.check { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 18px; cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; flex: none; width: 16px; height: 16px; margin: 3px 0 0; border: 1px solid var(--fg); background: transparent; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--fg); }
.check input:checked::after { content: ""; width: 8px; height: 4px; border-left: 1.5px solid var(--bg); border-bottom: 1.5px solid var(--bg); transform: translateY(-1px) rotate(-45deg); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.check a:hover { color: var(--red); }
.check.is-invalid input { border-color: var(--red); }
.form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; }
.form__status { font-size: 13px; margin: 0; min-height: 1.5em; }
.form__status.is-error { color: var(--red); }
.form__status a { text-decoration: underline; }
.form__success { display: none; padding: 40px 0; }
.form.is-sent { display: none; }
.form.is-sent + .form__success { display: block; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } .field { grid-column: 1 / -1; } }

.map { position: relative; height: clamp(360px, 60vh, 620px); background: #181818; overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) brightness(.95); }
.map__pin {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; z-index: 2; pointer-events: none;
  background: var(--red); box-shadow: 0 0 0 0 rgba(218, 41, 28, .6); animation: pin 2.4s infinite;
}
@keyframes pin { 0% { box-shadow: 0 0 0 0 rgba(218, 41, 28, .55); } 100% { box-shadow: 0 0 0 26px rgba(218, 41, 28, 0); } }
.map__actions { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 28px; }

/* ---------- Prose (mentions légales) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 16px; letter-spacing: .06em; text-transform: uppercase; margin: 56px 0 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 15px; }
.prose ul { list-style: none; margin: 0 0 1.1em; }
.prose li { padding-left: 20px; position: relative; margin-bottom: 6px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 1px; background: var(--muted); }
.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--red); }
.prose strong { color: var(--fg); font-weight: 500; }
.todo { color: var(--fg); border-bottom: 1px dashed var(--muted); }

/* ---------- Pied de page ---------- */
.footer { background: var(--color-notte); color: #fff; padding-top: clamp(80px, 10vw, 150px); overflow: hidden; position: relative; }
.footer__cta { padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto clamp(70px, 9vw, 130px); }
.footer__cta .t-label { margin-bottom: 18px; }
.footer__big {
  display: inline-flex; align-items: center; gap: .3em;
  font-size: clamp(40px, 7.4vw, 124px); line-height: 1; font-weight: 500; text-transform: uppercase; letter-spacing: .005em;
  transition: color .4s;
}
.footer__big .arrow { display: inline-block; transition: transform .7s var(--ease-out); font-weight: 300; }
.footer__big:hover { color: var(--red); }
.footer__big:hover .arrow { transform: translateX(.2em); }
.footer__grid {
  max-width: var(--max); margin: 0 auto; padding: 44px var(--gutter) 0;
  display: grid; grid-template-columns: 1.2fr 1fr 1.5fr .9fr .8fr; gap: 32px;
  border-top: 1px solid var(--color-grafite);
}
.footer__grid h2 { font-size: 12px; letter-spacing: .083em; text-transform: uppercase; color: #fff; margin: 0 0 18px; font-weight: 500; }
.footer__grid p, .footer__grid li, .footer__grid address { font-size: 11px; letter-spacing: .091em; text-transform: uppercase; line-height: 2.1; color: var(--color-fumo); margin: 0; }
.footer__grid a { color: #fff; transition: color .3s; }
.footer__grid a:hover { color: var(--red); }
.footer__grid .hours td { font-size: 11px; letter-spacing: .091em; text-transform: uppercase; color: var(--color-fumo); padding: 0 0 6px; line-height: 1.7; }
.footer__grid .hours td { white-space: nowrap; }
.footer__grid .hours td + td { color: #fff; padding-left: 12px; }
.social { display: flex; gap: 14px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--color-grafite); transition: border-color .3s, color .3s; }
.social a:hover { border-color: var(--red); color: var(--red); }
.social svg { width: 16px; height: 16px; }
.footer__labels { margin-top: 26px; }
.footer__word {
  display: flex; justify-content: center; overflow: hidden;
  font-size: clamp(64px, 21.5vw, 360px); line-height: .78; font-weight: 600; text-transform: uppercase; letter-spacing: -.01em;
  color: #fff; margin-top: clamp(60px, 8vw, 120px); padding-top: .04em;
  user-select: none; white-space: nowrap;
}
.footer__bottom {
  max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  font-size: 11px; letter-spacing: .091em; text-transform: uppercase; color: var(--color-fumo);
  border-top: 1px solid var(--color-grafite);
}
.footer__bottom p { margin: 0; }
.footer__bottom a:hover { color: var(--red); }
@media (max-width: 1100px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer__grid > div:first-child, .footer__grid > div:nth-child(3) { grid-column: 1 / -1; } }
.footer__grid > div { min-width: 0; overflow-wrap: anywhere; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.notfound > .media { position: absolute; inset: 0; opacity: .45; }
.notfound__content { position: relative; z-index: 1; padding: 0 var(--gutter); }
.notfound .t-display { margin: 24px 0 36px; }

/* ---------- Badge de démonstration (*.vercel.app) ---------- */
.demo-badge {
  position: fixed; left: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80; margin: 0;
  padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 9999px;
  background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 10px; letter-spacing: .091em; text-transform: uppercase; color: rgba(255, 255, 255, .8);
  pointer-events: none;
}
.menu-open .demo-badge { opacity: 0; }

/* ---------- Utilitaires ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.gap-actions { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 28px; }
.max-60 { max-width: 60ch; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .loader { display: none; }
  .js [data-reveal], .js [data-reveal] .line > span, .js [data-reveal="chars"] > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-reveal="clip"] img { transform: none !important; }
  .js [data-reveal="clip"] > * { clip-path: none !important; }
  .hero__slide img { transform: none; }
}

/* ---------- Impression ---------- */
@media print {
  .nav, .menu, .loader, .curtain, .progress, .cursor, .hero__ui, .hero__scroll, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
}
