/* ===========================================================
   Imagin'Sports - prototype refonte 2026-04
   Direction artistique : éditoriale outdoor, encre + crème
   Palette : bleu d'encre + noir tinté de bleu + crème chaude
   Typo  : Fraunces (display, sérif) + Manrope (body, sans)
   =========================================================== */

/* ─── Self-hosted fonts (anciennement Google Fonts) ────────────────
   Subsets : latin + latin-ext (couvre fr/en/de/es/it).
   Pour zh/ko, le navigateur fallback sur la font système (Noto CJK). */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/fraunces-latin.woff2') format('woff2');
  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: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  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: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Couleurs en OKLCH, sans #000 ni #fff purs */
  --ink:         oklch(0.16 0.045 218);  /* noir profond tinté de bleu */
  --ink-soft:    oklch(0.30 0.075 218);  /* bleu d'encre */
  --ink-quiet:   oklch(0.50 0.05 218);   /* gris bleuté */
  --paper:       oklch(0.97 0.012 95);   /* crème chaude */
  --paper-warm:  oklch(0.94 0.022 90);   /* crème plus saturée */
  --paper-blue:  oklch(0.95 0.020 218);  /* crème teintée bleu */
  --line:        oklch(0.85 0.012 95);   /* trait fin */
  --line-blue:   oklch(0.84 0.05 218);   /* trait fin cyan tinté */
  /* === couleurs de marque, basées sur le cyan du logo Imagin'Sports === */
  --accent:      oklch(0.74 0.12 218);   /* cyan/turquoise du logo */
  --accent-deep: oklch(0.50 0.13 218);   /* cyan profond, pour hovers et profondeurs */
  --accent-2:    oklch(0.84 0.08 218);   /* cyan clair, accents subtils */
  --accent-soft: oklch(0.94 0.04 218);   /* cyan très pâle, fonds */

  /* Typographie */
  --display: "Fraunces", "Times New Roman", serif;
  --body:    "Manrope", system-ui, sans-serif;

  /* Échelle typographique, ratio 1.27 (Major Third élargi) */
  --t-step--2: clamp(0.78rem, 0.74rem + 0.18vw, 0.86rem);
  --t-step--1: clamp(0.93rem, 0.88rem + 0.22vw, 1.02rem);
  --t-step-0:  clamp(1.05rem, 1.00rem + 0.28vw, 1.18rem);
  --t-step-1:  clamp(1.32rem, 1.22rem + 0.50vw, 1.55rem);
  --t-step-2:  clamp(1.85rem, 1.65rem + 1.0vw, 2.30rem);
  --t-step-3:  clamp(2.6rem, 2.2rem + 2.1vw, 3.6rem);
  --t-step-4:  clamp(2.8rem, 2.2rem + 2.8vw, 4.4rem);

  /* Easings (Emil) */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);    /* signature smooth-fade premium */
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1); /* léger overshoot pour micro-interactions */

  /* Espacements rythmiques (pas linéaire) */
  --gutter: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  --grid-max: 1400px;
  --copy-max: 65ch;
}

/* ───── reset ───── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;  /* clip plutôt que hidden : ne casse pas position:sticky du masthead */
  /* Réserve la place de la scrollbar même quand absente → évite le flash
     viewport quand overflow:hidden est retiré (fermeture du menu burger). */
  scrollbar-gutter: stable;
}
body {
  overflow-x: clip;
  max-width: 100vw;
}
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

/* ───── corps ───── */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-step-0);
  font-weight: 400;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

em { font-style: italic; }
strong { font-weight: 600; }

/* fond papier : atmosphère cyan subtile, écho du logo */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(1400px 700px at 95% -10%, oklch(0.88 0.07 218 / 0.55), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, oklch(0.88 0.07 218 / 0.45), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ───── typographie : classes utilitaires ───── */
.display {
  font-family: var(--display);
  font-weight: 350;
  font-size: var(--t-step-4);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.display em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.display-sm {
  font-family: var(--display);
  font-weight: 350;
  font-size: var(--t-step-3);
  line-height: 1;
  letter-spacing: -0.02em;
}
.italic { font-style: italic; }

.eyebrow {
  font-family: var(--body);
  font-size: var(--t-step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  font-weight: 500;
}
.overline {
  font-family: var(--body);
  font-size: var(--t-step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
}

.lede {
  font-family: var(--display);
  font-weight: 350;
  font-size: var(--t-step-1);
  line-height: 1.35;
  max-width: 38ch;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 30, "SOFT" 50;
}

.copy {
  max-width: var(--copy-max);
  color: var(--ink-soft);
  font-size: var(--t-step-0);
  line-height: 1.55;
}

.underline-soft {
  background-image: linear-gradient(to top, var(--accent) 0 0.12em, transparent 0.12em);
  background-repeat: no-repeat;
  background-position: 0 95%;
  background-size: 100% 100%;
  padding: 0 0.05em;
}

/* ───── boutons ───── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--body);
  font-size: var(--t-step--1);
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 0.95em 1.6em;
  border-radius: 4px;
  isolation: isolate;
  overflow: hidden;
  transition: transform 180ms var(--ease-out),
              color 220ms var(--ease-out),
              border-color 220ms var(--ease-out),
              box-shadow 240ms var(--ease-out);
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent-deep);
  transform: translateY(101%);
  transition: transform 360ms var(--ease-out);
  z-index: -1;
}
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: scale(0.97); }

.btn--solid {
  background: var(--accent);
  color: var(--ink);   /* texte sombre sur cyan clair = contraste maximal, on-brand */
  box-shadow: 0 1px 0 oklch(0.50 0.13 218 / 0.4),
              0 6px 20px -8px oklch(0.50 0.13 218 / 0.55);
}
.btn--solid:hover {
  color: var(--paper);   /* sur hover, le btn::after vient en cyan profond, donc texte clair */
  box-shadow: 0 1px 0 oklch(0.50 0.13 218 / 0.5),
              0 12px 28px -8px oklch(0.50 0.13 218 / 0.65);
}

.btn--ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn--ghost::after { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); border-color: var(--ink); }

.btn--quiet {
  color: var(--ink-soft);
  padding-inline: 0.4em;
  border-radius: 0;
}
.btn--quiet::after { display: none; }
.btn--quiet:hover { color: var(--accent-deep); }

.btn--white {
  background: var(--paper);
  color: var(--ink);
}
.btn--white::after { background: var(--accent); }
.btn--white:hover { color: var(--paper); }

.btn--outline-white {
  border: 1px solid oklch(0.85 0.04 218 / 0.4);
  color: var(--paper);
}
.btn--outline-white::after { background: var(--paper); }
.btn--outline-white:hover { color: var(--ink); border-color: var(--paper); }

/* ───── grilles communes : numéro de section sur le rail ───── */
.rail-num {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: var(--t-step-1);
  color: var(--accent-deep);
  display: inline-block;
}
.rail-num.white { color: var(--paper); }

.rail-label {
  font-family: var(--body);
  font-size: var(--t-step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}

/* ───── masthead (haut de page éditorial, sticky + shrink au scroll) ───── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  /* IMPORTANT : pas de backdrop-filter directement ici — sinon le masthead
     devient le containing block des descendants fixed (bug burger qui suivait
     le scroll). On déporte l'effet sur le pseudo ::before. */
  isolation: isolate;
  border-bottom: 1px solid oklch(0.30 0.075 218 / 0.14);
  box-shadow: 0 1px 0 0 oklch(0.97 0.012 95 / 0.4), 0 2px 0 0 oklch(0.30 0.075 218 / 0.06);
  transition: box-shadow 560ms var(--ease-expo),
              border-color 560ms var(--ease-expo);
}
.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: oklch(0.97 0.012 95 / 0.78);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  z-index: -1;
  transition: background-color 560ms var(--ease-expo),
              backdrop-filter 560ms var(--ease-expo),
              -webkit-backdrop-filter 560ms var(--ease-expo);
}
/* Top-strip "édition" : seul élément bleu, fine bande au sommet, élégante */
.masthead__rule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem var(--gutter);
  font-size: var(--t-step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: oklch(0.30 0.075 218);   /* bleu d'encre profond */
  color: oklch(0.94 0.022 90 / 0.78);  /* paper-warm, légèrement adouci */
  border-bottom: 1px solid oklch(0.16 0.045 218 / 0.4);
  max-height: 60px;
  overflow: hidden;
  font-weight: 500;
  transition: max-height 620ms var(--ease-expo),
              padding 620ms var(--ease-expo),
              opacity 380ms var(--ease-expo),
              transform 620ms var(--ease-expo),
              border-color 620ms var(--ease-expo);
  transform-origin: top center;
}
/* Petit point doré-bleuté dans la strip "édition" pour articuler les deux infos */
.masthead__rule .masthead__edition { color: var(--paper); }
.masthead__rule .masthead__locale {
  position: relative;
  padding-left: 1.25rem;
}
.masthead__rule .masthead__locale::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 8px oklch(0.72 0.12 218 / 0.6);
}

/* Sur mobile, on cache la barre "édition / locale" qui casse moche en plusieurs lignes
   à cause de l'uppercase + letter-spacing 0.18em. C'est de la déco, pas de la nav. */
@media (max-width: 640px) {
  .masthead__rule { display: none; }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--gutter);
  max-width: var(--grid-max);
  margin: 0 auto;
  transition: padding 560ms var(--ease-expo);
}

/* État rétréci au scroll */
.masthead.is-shrunk {
  box-shadow:
    0 1px 0 0 oklch(0.30 0.075 218 / 0.05),
    0 18px 40px -28px oklch(0.16 0.045 218 / 0.28),
    0 4px 12px -8px oklch(0.16 0.045 218 / 0.12);
  border-bottom-color: oklch(0.30 0.075 218 / 0.16);
}
.masthead.is-shrunk::before {
  background: oklch(0.97 0.012 95 / 0.88);
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
}
.masthead.is-shrunk .masthead__rule {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-6px);
  border-bottom-color: transparent;
}
.masthead.is-shrunk .nav {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.masthead.is-shrunk .nav__brand-mark {
  font-size: var(--t-step-0);
  letter-spacing: -0.005em;
}
.masthead.is-shrunk .nav__links {
  font-size: var(--t-step--2);
  gap: 1.4rem;
}
.masthead.is-shrunk .btn {
  padding: 0.55em 1.1em;
  font-size: var(--t-step--2);
}

/* le brand mark se transitionne entre les deux états */
.nav__brand-mark {
  transition: font-size 560ms var(--ease-expo),
              letter-spacing 560ms var(--ease-expo);
}
.nav__links {
  transition: font-size 560ms var(--ease-expo), gap 560ms var(--ease-expo);
}
.nav .btn {
  transition: padding 560ms var(--ease-expo),
              font-size 560ms var(--ease-expo),
              transform 220ms var(--ease-spring),
              color 240ms var(--ease-out),
              border-color 240ms var(--ease-out),
              box-shadow 280ms var(--ease-out);
}
.nav__brand-mark {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-step-1);
  letter-spacing: -0.015em;
  color: var(--ink);
  /* soulignement bleu de la marque, à l'épaisseur du logo */
  text-decoration: underline;
  text-decoration-color: var(--accent-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-skip-ink: none;  /* trait continu sous les descenders (g, p) */
}
.nav__brand-mark em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-deep);   /* "Sports" en cyan profond, accent de marque */
}

.nav__links {
  display: flex; gap: 1.8rem;
  font-size: var(--t-step--1);
  color: var(--ink-soft);
}
.nav__links a {
  position: relative;
  transition: color 200ms var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--accent);   /* trait bleu sous le lien actif */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }

/* ─── Sélecteur de langue compact (dropdown) ─── */
.nav__lang {
  position: relative;
  margin-left: 0.5rem;
}
.nav__lang-mobile-wrap { display: none; }
.nav__lang > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: oklch(0.94 0.02 218 / 0.5);
  border: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
  transition: background 180ms;
}
.nav__lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}
.nav__lang > ul .nav__lang-flag { margin-right: 0.1rem; }
.nav__lang > summary::-webkit-details-marker { display: none; }
.nav__lang > summary:hover { background: oklch(0.94 0.02 218 / 0.85); }
.nav__lang-arrow {
  font-size: 0.65rem;
  color: var(--ink-quiet);
  transition: transform 200ms var(--ease-out);
}
.nav__lang[open] .nav__lang-arrow { transform: rotate(180deg); }

.nav__lang > ul {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 130px;
  box-shadow: 0 10px 30px oklch(0.16 0.045 218 / 0.12);
  z-index: 120;
}
.nav__lang > ul li { margin: 0; }
.nav__lang > ul button {
  display: block;
  width: 100%;
  padding: 0.45rem 0.7rem;
  text-align: left;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-family: var(--body);
  font-size: var(--t-step--1);
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 150ms, color 150ms;
}
.nav__lang > ul button:hover { background: var(--paper-warm); color: var(--ink); }
.nav__lang > ul button.is-active {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 880px) {
  .nav > .nav__lang { display: none; }
  .nav__lang-mobile-wrap {
    display: list-item;
    list-style: none;
    margin-top: 1.5rem;
  }
  /* En mobile overlay, le dropdown s'ouvre vers le bas naturellement */
  .nav__lang-mobile-wrap .nav__lang > ul { left: 0; right: auto; }
}

/* Éléments mobiles-only du burger menu : cachés par défaut (desktop nav top) */
.nav__mobile-tels,
.nav__mobile-cta,
.nav__mobile-signature {
  display: none;
}

/* ─── Burger menu (mobile only) ─── */
.nav__burger {
  display: none;
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  /* Supprime le rectangle cyan par défaut au tap mobile (Chrome/Safari) */
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  margin-left: 0.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 110;
  flex-shrink: 0;
}
/* Burger barres : 100% transform/opacity → GPU accelerated, jamais de reflow */
.nav__burger span {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px; height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transform-origin: center;
  will-change: transform;
  transition: transform 380ms var(--ease-expo),
              opacity 240ms var(--ease-out);
}
.nav__burger span:nth-child(1) { transform: translate(-50%, -50%) translateY(-6px); }
.nav__burger span:nth-child(2) { transform: translate(-50%, -50%) scaleX(0.73); }
.nav__burger span:nth-child(3) { transform: translate(-50%, -50%) translateY(6px) scaleX(0.86); }
/* :hover uniquement sur devices avec pointeur précis (souris/trackpad).
   Évite le micro-flicker au tap mobile : sans cette guard, touch déclenche
   un :hover éphémère qui étire les barres juste avant la transition en X. */
@media (hover: hover) {
  .nav__burger:hover span:nth-child(2) { transform: translate(-50%, -50%) scaleX(1); }
  .nav__burger:hover span:nth-child(3) { transform: translate(-50%, -50%) translateY(6px) scaleX(1); }
}
.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:nth-child(2) {
  transform: translate(-50%, -50%) scaleX(0); opacity: 0;
}
.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ─── Mobile : burger visible, links en overlay, S'inscrire optionnellement caché ─── */
@media (max-width: 880px) {
  .nav { gap: 0.6rem; padding: 0.85rem var(--gutter); }
  .nav__burger { display: inline-block; }

  /* Le "← Retour" des pages internes reste visible (nav fonctionnelle) */
  .nav__cta {
    padding: 0.6em 0.9em;
    font-size: var(--t-step--2);
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
  }
  /* Le "S'inscrire" du masthead est redondant avec le gros CTA du menu burger,
     on le cache uniquement en mobile (desktop le garde). */
  /* En mobile, le burger menu contient déjà les liens nav pour revenir.
     On cache donc le bouton "S'inscrire" (home) ET "← Retour" (pages internes)
     qui se chevauchaient avec le burger fixed top-right. */
  .nav__cta[href="/inscription"],
  .nav__cta[href="/"] { display: none; }

  /* Hybride V2/V3 — Sheet droit (espace à gauche pour le scrim), révélé par
     clip-path circle ripple depuis le burger (haut-droite). Backdrop blur
     intense + halo radial cyan + scrim cliquable à gauche pour fermer. */
  .nav__links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(86vw, 420px);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.4rem;
    background: oklch(0.97 0.012 95 / 0.96);
    backdrop-filter: blur(28px) saturate(1.3);
    -webkit-backdrop-filter: blur(28px) saturate(1.3);
    padding: max(5.5rem, env(safe-area-inset-top) + 4.5rem) 2.2rem 2rem;
    z-index: 200;
    overflow: hidden;                /* pas de scroll dans le menu */
    box-shadow: -28px 0 60px -28px oklch(0.16 0.045 218 / 0.18);
    visibility: hidden;
    pointer-events: none;
    clip-path: circle(0% at 100% 0%);
    /* Une seule transition (clip-path) → animation atomique, pas de race
       condition entre opacity et clip-path. visibility passe à hidden APRÈS
       la fin du clip-path pour empêcher tout repaint parasite. */
    transition: clip-path 280ms var(--ease-expo),
                visibility 0s linear 280ms;
    will-change: clip-path;
  }
  /* Halo lumineux : grand cyan en bas-gauche du sheet + touche en haut-droite */
  .nav__links::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(520px 320px at 0% 100%, oklch(0.88 0.07 218 / 0.34), transparent 60%),
      radial-gradient(280px 200px at 100% 0%, oklch(0.72 0.12 218 / 0.14), transparent 55%);
    pointer-events: none;
    z-index: -1;
  }
  /* Scrim derrière le sheet : tap dessus = ferme (V3) */
  .nav__scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: oklch(0.16 0.045 218 / 0.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 180;
    opacity: 0;
    visibility: hidden;
    transition: opacity 320ms var(--ease-out),
                visibility 0s linear 320ms;
    cursor: pointer;
  }
  body.is-nav-locked .nav__scrim {
    opacity: 1;
    visibility: visible;
    transition: opacity 320ms var(--ease-out),
                visibility 0s linear 0s;
  }
  /* Burger : reste dans le flow de la nav (header sticky). Suit donc
     le pull-to-refresh comme le logo. margin-left: auto pour pousser à droite. */
  .nav__burger {
    position: relative;
    z-index: 300;
    background: transparent;
    margin-left: auto;
  }
  /* Quand le menu est ouvert : le burger est déplacé en body par JS et
     passe en position fixed pour rester au-dessus du menu sheet. */
  body.is-nav-locked > .nav__burger {
    position: fixed;
    top: 0.85rem;
    right: 1rem;
    z-index: 9999;
  }
  .nav__links.is-open {
    visibility: visible;
    pointer-events: auto;
    clip-path: circle(150% at 100% 0%);
    transition: clip-path 760ms var(--ease-expo),
                visibility 0s linear 0s;
  }
  /* LI enfants : juste fade opacity, pas de translate. Évite l'effet "slide
     parallèle au clip-path" à la fermeture qui donnait une impression double-anim. */
  .nav__links > li {
    opacity: 0;
    transition: opacity 380ms var(--ease-out);
  }
  .nav__links.is-open > li {
    opacity: 1;
  }
  /* Stagger : chaque item décalé de 55ms après l'ouverture du clip-path */
  .nav__links.is-open > li:nth-child(1) { transition-delay: 200ms; }
  .nav__links.is-open > li:nth-child(2) { transition-delay: 255ms; }
  .nav__links.is-open > li:nth-child(3) { transition-delay: 310ms; }
  .nav__links.is-open > li:nth-child(4) { transition-delay: 365ms; }
  .nav__links.is-open > li:nth-child(5) { transition-delay: 420ms; }
  .nav__links.is-open > li:nth-child(6) { transition-delay: 475ms; }
  .nav__links.is-open > li:nth-child(7) { transition-delay: 530ms; }
  .nav__links.is-open > li:nth-child(8) { transition-delay: 585ms; }   /* tels */
  .nav__links.is-open > li:nth-child(9) { transition-delay: 640ms; }   /* CTA inscription */
  .nav__links.is-open > li:nth-child(10) { transition-delay: 695ms; }  /* wrap drapeaux */
  .nav__links.is-open > li:nth-child(11) { transition-delay: 750ms; }  /* signature */

  .nav__links a {
    font-family: var(--display);
    font-size: clamp(2rem, 6.5vw, 2.8rem);
    font-weight: 350;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    padding: 0.4rem 0;
    display: inline-flex;
    align-items: baseline;
    gap: 0.6rem;
    transition: color 220ms var(--ease-out), gap 320ms var(--ease-expo);
  }
  /* Point d'accent à gauche au hover/actif → indicateur premium */
  .nav__links a::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    transform: scale(0.5) translateY(-3px);
    transition: opacity 280ms var(--ease-out), transform 360ms var(--ease-spring);
  }
  .nav__links a:hover { color: var(--accent-deep); gap: 0.9rem; }
  .nav__links a:hover::before { opacity: 1; transform: scale(1) translateY(-3px); }
  .nav__links a::after { display: none; }
  .nav__links a[aria-current="page"] {
    color: var(--accent-deep);
    font-style: italic;
  }
  .nav__links a[aria-current="page"]::before { opacity: 1; transform: scale(1) translateY(-3px); }

  /* ── Sélecteur de langue mobile : row de 5 drapeaux en pills (segmented).
     On masque le <summary> du <details> et on force la liste toujours visible,
     en grille horizontale équilibrée. Active = pill cyan + drapeau plus grand. ── */
  .nav__lang-mobile-wrap {
    width: 100%;
    margin-top: 1.4rem;        /* dans le flow juste après les liens */
    padding-top: 1.4rem;
    border-top: 1px solid oklch(0.16 0.045 218 / 0.10);
  }
  /* Row de 5 pills drapeaux : structure HTML directe (pas de <details>) */
  .nav__lang-flags {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 0.4rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .nav__lang-flags > li {
    flex: 1 1 0;
    display: block;
    min-width: 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 360ms var(--ease-out),
                transform 460ms var(--ease-expo);
  }
  /* Stagger interne des drapeaux : démarre après le wrap parent (585ms) et
     prolonge la cascade des liens du menu pour un rythme continu. */
  .nav__links.is-open .nav__lang-flags > li {
    opacity: 1;
    transform: translateY(0);
  }
  .nav__links.is-open .nav__lang-flags > li:nth-child(1) { transition-delay: 800ms; }
  .nav__links.is-open .nav__lang-flags > li:nth-child(2) { transition-delay: 845ms; }
  .nav__links.is-open .nav__lang-flags > li:nth-child(3) { transition-delay: 890ms; }
  .nav__links.is-open .nav__lang-flags > li:nth-child(4) { transition-delay: 935ms; }
  .nav__links.is-open .nav__lang-flags > li:nth-child(5) { transition-delay: 980ms; }
  .nav__links.is-open .nav__lang-flags > li:nth-child(6) { transition-delay: 1025ms; }  /* 🇨🇳 */
  .nav__links.is-open .nav__lang-flags > li:nth-child(7) { transition-delay: 1070ms; }  /* 🇰🇷 */
  .nav__lang-flags button {
    width: 100%;
    height: 52px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background: oklch(0.94 0.02 218 / 0.45);
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: background 240ms var(--ease-out),
                border-color 240ms var(--ease-out),
                transform 240ms var(--ease-spring);
  }
  .nav__lang-flags button:hover {
    background: oklch(0.94 0.02 218 / 0.85);
    transform: translateY(-2px);
  }
  .nav__lang-flags button.is-active {
    background: oklch(0.30 0.075 218);
    border-color: oklch(0.30 0.075 218);
    box-shadow: 0 6px 16px -8px oklch(0.30 0.075 218 / 0.5);
  }
  .nav__lang-flags .nav__lang-flag {
    display: inline-block;
    font-size: 1.55rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px oklch(0 0 0 / 0.08));
  }

  /* ── Tels Vignot + Madine : lignes éditoriales, mark italique gauche +
     numéro à droite, flèche cyan révélée au tap. Pas de cards (trop bling). ── */
  .nav__mobile-tels {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid oklch(0.16 0.045 218 / 0.10);
  }
  .nav__tel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
    align-items: baseline;
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid oklch(0.16 0.045 218 / 0.06);
    text-decoration: none;
    transition: padding-left 320ms var(--ease-expo),
                background 240ms var(--ease-out);
  }
  .nav__tel:last-child { border-bottom: 0; }
  .nav__tel:hover,
  .nav__tel:focus-visible { padding-left: 0.7rem; }
  .nav__tel-mark {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink);
    letter-spacing: -0.005em;
    transition: color 240ms var(--ease-out);
  }
  .nav__tel-num {
    font-size: var(--t-step--1);
    color: var(--ink-soft);
    text-align: right;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.005em;
  }
  .nav__tel::after {
    content: "→";
    font-size: 1.1rem;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 280ms var(--ease-out),
                transform 320ms var(--ease-expo);
  }
  .nav__tel:hover::after,
  .nav__tel:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
  }
  .nav__tel:hover .nav__tel-mark { color: var(--accent-deep); }

  /* ── CTA "S'inscrire dès maintenant" : gros bouton plein-largeur ── */
  .nav__mobile-cta {
    display: block;
    width: 100%;
    margin-top: 1.2rem;
  }
  .nav__mobile-cta .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 1.4rem;
    font-size: var(--t-step-0);
  }

  /* ── Signature en pied de sheet ── */
  .nav__mobile-signature {
    display: block;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid oklch(0.16 0.045 218 / 0.08);
    font-size: var(--t-step--2);
    color: var(--ink-quiet);
    text-align: center;
    letter-spacing: 0.04em;
  }
  .nav__mobile-signature em {
    font-style: italic;
    color: var(--accent-deep);
    font-family: var(--display);
  }

  /* Lock body scroll quand le menu est ouvert */
  body.is-nav-locked {
    overflow: hidden;
    touch-action: none;
  }
}

/* Très petit mobile (iPhone SE etc.) : cache le texte "Imagin'Sports", garde le logo */
@media (max-width: 400px) {
  .nav__brand-mark {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
  }
  .nav__logo { height: 36px; margin-left: 0; }
  .nav__brand {
    gap: 0;
    min-width: 44px;
    padding: 0.2rem 0.4rem;
  }
}


/* ─────────────────  HERO  ─────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(1.5rem, 1fr) minmax(0, 6fr) minmax(0, 5fr) minmax(1.5rem, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: var(--gutter);
  row-gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 5rem);
  max-width: var(--grid-max);
  margin: 0 auto;
}

.hero__rail {
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--ink);
  padding-top: 0.6rem;
  width: max-content;
}

.hero__copy {
  grid-column: 2 / 3;
  display: flex; flex-direction: column;
  gap: 1.5rem;
  max-width: 22ch;
  max-width: 60ch;
}

.hero__media {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  position: relative;
  align-self: end;
  margin-top: -3rem;
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: -16px -16px 60px -16px;
  border: 1px solid var(--line-blue);
  background: linear-gradient(135deg, oklch(0.92 0.05 218 / 0.4), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero__media::after {
  content: "Imagin'Sports · 2018";
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--display);
  font-style: italic;
  font-size: var(--t-step--2);
  letter-spacing: 0.04em;
  color: var(--paper);
  background: var(--accent);
  padding: 0.4rem 0.7rem;
  z-index: 2;
}
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  filter: contrast(1.04) saturate(0.92);
  transition: transform 1200ms var(--ease-out);
}
.hero:hover .hero__media img { transform: scale(1.02); }
.hero__media figcaption {
  display: flex; gap: 0.7rem; align-items: center;
  margin-top: 0.8rem;
  font-size: var(--t-step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.hero__media figcaption .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
}

.hero__cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero__quick {
  grid-column: 2 / 4;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}
.hero__quick dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.hero__quick dt {
  font-size: var(--t-step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 0.3rem;
}
.hero__quick dd {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-size: var(--t-step-1);
  color: var(--ink);
}

@media (max-width: 880px) {
  .hero { grid-template-columns: var(--gutter) 1fr var(--gutter); }
  .hero__rail, .hero__copy { grid-column: 2 / 3; }
  .hero__media { grid-column: 2 / 3; grid-row: auto; margin-top: 0; }
  .hero__quick { grid-column: 2 / 3; }
  .hero__quick dl { grid-template-columns: repeat(2, 1fr); }
}


/* ─────────────────  SECTION HEAD commune  ─────────────────── */
.section-head {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: end;
  border-top: 1px solid var(--line);
}
.section-head .rail-num { grid-column: 1 / 2; }
.section-title {
  font-family: var(--display);
  font-weight: 350;
  font-size: var(--t-step-3);
  line-height: 1;
  letter-spacing: -0.022em;
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}
.section-deck {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  font-size: var(--t-step-0);
  color: var(--ink-soft);
  max-width: 50ch;
  line-height: 1.55;
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; }
  .section-deck { grid-column: 1 / 2; grid-row: auto; }
}


/* ─────────────────  SALLES  ─────────────────── */
.salles__switch {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.switch-btn {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-size: var(--t-step-2);
  padding: 0.8rem 1.2rem;
  color: var(--ink-quiet);
  position: relative;
  transition: color 220ms var(--ease-out), transform 160ms var(--ease-out);
}
.switch-btn::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms var(--ease-out);
}
.switch-btn.is-active { color: var(--accent-deep); }
.switch-btn.is-active::after { transform: scaleX(1); }
.switch-btn:not(.is-active):hover { color: var(--ink); }
.switch-btn:active { transform: scale(0.97); }

.salle {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(2rem, 5vw, 5rem);
  display: none;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.salle.is-visible {
  display: grid;
  animation: salleIn 480ms var(--ease-out) both;
}
@keyframes salleIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.salle__lead { display: flex; flex-direction: column; gap: 1.2rem; }

.meta-list {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}
.meta-list li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-step--1);
  color: var(--ink-soft);
}
.meta-list span {
  font-size: var(--t-step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.meta-list em { color: var(--ink-quiet); font-style: italic; }

.salle__gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 220px 220px;
  gap: 0.8rem;
}
.g { overflow: hidden; border-radius: 2px; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.g:hover img { transform: scale(1.05); }
.g--tall  { grid-column: 1 / 4; grid-row: 1 / 3; }
.g--wide  { grid-column: 4 / 7; grid-row: 1 / 2; }
.g--small { grid-column: 4 / 7; grid-row: 2 / 3; }

/* ── Carte d'accès (OpenStreetMap embed, sans tracking) ──
   Occupe les 2 colonnes sous le lead+gallery, marge dessus pour respirer. */
.salle__map {
  grid-column: 1 / -1;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.salle__map-frame {
  position: relative;
  width: 100%;
  /* Bandeau éditorial compact, ratio panoramique modéré */
  aspect-ratio: 21 / 8;
  max-height: 340px;
  border-radius: 4px;
  overflow: hidden;
  background: oklch(0.94 0.02 218 / 0.3);
  border: 1px solid oklch(0.16 0.045 218 / 0.10);
  box-shadow: 0 1px 0 0 oklch(0.97 0.012 95 / 0.6),
              0 12px 28px -20px oklch(0.16 0.045 218 / 0.18);
}
.salle__map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* Désaturation légère pour cohérence éditoriale avec le reste de la palette */
  filter: grayscale(0.15) contrast(0.96) saturate(0.92);
  transition: filter 320ms var(--ease-out);
}
.salle__map-frame:hover iframe {
  filter: none;
}
.salle__map-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.map-attribution {
  font-size: var(--t-step--2);
  color: var(--ink-quiet);
  letter-spacing: 0.02em;
  transition: color 200ms var(--ease-out);
}
.map-attribution:hover { color: var(--accent-deep); }

/* ── Placeholder click-to-load (cookies refusés ou pas encore acceptés) ── */
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 50%, oklch(0.94 0.02 218 / 0.4), oklch(0.30 0.075 218 / 0.06) 75%),
    oklch(0.94 0.02 218 / 0.3);
  border: 0;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: background 280ms var(--ease-out);
}
.map-placeholder:hover {
  background:
    radial-gradient(circle at 50% 50%, oklch(0.94 0.02 218 / 0.65), oklch(0.30 0.075 218 / 0.10) 75%),
    oklch(0.94 0.02 218 / 0.45);
}
.map-placeholder__icon {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px oklch(0 0 0 / 0.15));
}
.map-placeholder__text {
  font-family: var(--display);
  font-size: var(--t-step-0);
  font-weight: 350;
  letter-spacing: -0.005em;
  max-width: 32ch;
}
.map-placeholder__cta {
  font-family: var(--body);
  font-size: var(--t-step--1);
  color: var(--accent-deep);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 320ms var(--ease-expo);
}
.map-placeholder:hover .map-placeholder__cta {
  transform: translateX(4px);
}
.map-placeholder__note {
  font-size: var(--t-step--2);
  color: var(--ink-quiet);
  letter-spacing: 0.02em;
}


/* ─────────────────  COOKIE BANNER (RGPD)  ─────────────────── */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 250;
  max-width: 720px;
  margin: 0 auto;
  background: oklch(0.97 0.012 95 / 0.98);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid oklch(0.16 0.045 218 / 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 40px -20px oklch(0.16 0.045 218 / 0.35),
              0 4px 12px -6px oklch(0.16 0.045 218 / 0.15);
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 520ms var(--ease-expo),
              opacity 320ms var(--ease-out),
              visibility 0s linear 520ms;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 520ms var(--ease-expo),
              opacity 320ms var(--ease-out),
              visibility 0s linear 0s;
}
.cookie-banner__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.2rem 1.4rem;
}
.cookie-banner__copy { min-width: 0; }
.cookie-banner__title {
  font-family: var(--display);
  font-size: var(--t-step-0);
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.cookie-banner__body {
  font-size: var(--t-step--1);
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}
.cookie-banner__link {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: oklch(0.30 0.075 218 / 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 240ms var(--ease-out);
}
.cookie-banner__link:hover {
  text-decoration-color: var(--accent-deep);
}
.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-shrink: 0;
}
.cookie-banner__btn {
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-family: var(--body);
  font-size: var(--t-step--1);
  font-weight: 500;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 240ms var(--ease-out),
              border-color 240ms var(--ease-out),
              transform 240ms var(--ease-spring),
              color 240ms var(--ease-out);
}
.cookie-banner__btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: oklch(0.16 0.045 218 / 0.18);
}
.cookie-banner__btn--ghost:hover {
  color: var(--ink);
  border-color: oklch(0.16 0.045 218 / 0.32);
  transform: translateY(-1px);
}
.cookie-banner__btn--solid {
  background: oklch(0.30 0.075 218);
  color: var(--paper);
  border-color: oklch(0.30 0.075 218);
}
.cookie-banner__btn--solid:hover {
  background: oklch(0.25 0.08 218);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 1.1rem 1.2rem;
  }
  .cookie-banner__actions {
    width: 100%;
  }
  .cookie-banner__btn {
    flex: 1 1 0;
    padding: 0.8rem 1rem;
    text-align: center;
  }
}

@media (max-width: 880px) {
  .salle { grid-template-columns: 1fr; }
  .salle__gallery { grid-template-rows: 180px 180px; }
  .salle__map-frame { aspect-ratio: 16 / 9; max-height: 220px; }
}


/* ─────────────────  DISCIPLINES (spreads éditoriaux)  ─────────────────── */
.d-spreads {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(5rem, 10vw, 10rem);
}

.d-spread {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}
.d-spread:last-child { border-bottom: 0; }

.d-spread--left .d-spread__photo { order: 2; }
.d-spread--left .d-spread__copy  { order: 1; }
.d-spread--right .d-spread__photo { order: 1; }
.d-spread--right .d-spread__copy  { order: 2; }

.d-spread__photo {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  clip-path: inset(0 0 0 0);
}
.d-spread__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1200ms var(--ease-out);
}
.d-spread:hover .d-spread__photo img {
  transform: scale(1.04);
}
/* Frame bleu décoratif au survol */
.d-spread__photo::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid oklch(0.95 0.02 95 / 0);
  z-index: 2;
  pointer-events: none;
  transition: border-color 360ms var(--ease-out);
}
.d-spread:hover .d-spread__photo::before {
  border-color: oklch(0.95 0.02 95 / 0.5);
}
/* aspect ratios variés pour rythme */
.d-spread:nth-child(1) .d-spread__photo img { aspect-ratio: 5 / 4; }
.d-spread:nth-child(2) .d-spread__photo img { aspect-ratio: 4 / 3; }
.d-spread:nth-child(3) .d-spread__photo img { aspect-ratio: 3 / 2; }
.d-spread:nth-child(4) .d-spread__photo img { aspect-ratio: 4 / 5; }
.d-spread:nth-child(5) .d-spread__photo img { aspect-ratio: 16 / 11; }

.d-spread__copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.d-spread__num {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 1;
  color: var(--accent-deep);
  margin-bottom: -0.5rem;
  letter-spacing: -0.02em;
}
.d-spread__copy h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-step-3);
  line-height: 1;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.d-spread__copy p {
  color: var(--ink-soft);
  max-width: 42ch;
  line-height: 1.55;
}
.d-spread__tag {
  margin-top: 0.5rem;
  font-size: var(--t-step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.d-spread__tag::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

@media (max-width: 880px) {
  .d-spread {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: clamp(2rem, 5vw, 4rem) 0;
  }
  .d-spread--left .d-spread__photo,
  .d-spread--right .d-spread__photo { order: 1; }
  .d-spread--left .d-spread__copy,
  .d-spread--right .d-spread__copy { order: 2; }
}


/* ─────────────────  CTA BAND (drenched blue)  ─────────────────── */
.cta-band {
  background: var(--accent-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 100% 0%, oklch(0.55 0.20 218 / 0.6), transparent 55%),
    radial-gradient(900px  500px at 0% 100%, oklch(0.22 0.12 218 / 0.7), transparent 55%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.cta-band__title {
  font-size: clamp(2.4rem, 5vw, 4.8rem) !important;
}
.cta-band__title em {
  color: oklch(0.85 0.06 218);
  font-style: italic;
  font-weight: 300;
}
.cta-band__lede {
  max-width: 56ch;
  font-size: var(--t-step-1);
  line-height: 1.5;
  color: oklch(0.88 0.04 218);
  font-family: var(--display);
  font-weight: 350;
  font-variation-settings: "opsz" 30, "SOFT" 50;
}
.cta-band__actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 0.5rem;
}


/* ─────────────────  TARIFS  ─────────────────── */
.tarifs { background: var(--paper-warm); }
.tarifs .section-head { border-top: 0; }

.prix-wrap {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}
@media (max-width: 880px) {
  .prix-wrap { grid-template-columns: 1fr; }
}

.prix-col__title {
  font-family: var(--display);
  font-weight: 350;
  font-size: var(--t-step-2);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0.6rem;
}
.prix-col__title em { font-style: italic; }
.prix-col__title span {
  font-family: var(--body);
  font-style: normal;
  font-size: var(--t-step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}

.prix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-step-0);
  table-layout: fixed;  /* 3 colonnes de largeur égale */
}
.prix-table th,
.prix-table td {
  width: 33.333%;
}
.prix-table thead th {
  text-align: left;
  font-weight: 500;
  font-size: var(--t-step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
/* Les 2 colonnes prix s'alignent à droite, headers compris */
.prix-table thead th:nth-child(2),
.prix-table thead th:last-child { text-align: right; }
.prix-table tbody td {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.prix-table tbody td:first-child { color: var(--ink); font-family: var(--display); font-style: italic; font-size: var(--t-step-1); }
.prix-table tbody td:nth-child(2) { color: var(--ink-quiet); text-align: right; }
.prix-table tbody td:last-child { text-align: right; font-weight: 600; }

.prix-note {
  max-width: var(--grid-max);
  margin: 2.5rem auto 0;
  padding: 0 var(--gutter);
  font-size: var(--t-step--1);
  color: var(--ink-quiet);
  max-width: 70ch;
}

.prix-extras {
  max-width: var(--grid-max);
  margin: 2.5rem auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.extra {
  background: var(--paper-warm);
  padding: 1.4rem 1.5rem;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
}
.extra span {
  font-size: var(--t-step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.extra strong {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-size: var(--t-step-2);
  color: var(--ink);
}
@media (max-width: 720px) {
  .prix-extras { grid-template-columns: 1fr; }
}

.tarifs > .prix-info { padding-bottom: clamp(4rem, 8vw, 8rem); }

/* ─── Informations importantes (tarifs) ─── */
.prix-info {
  max-width: var(--grid-max);
  margin: clamp(3rem, 5vw, 4.5rem) auto 0;
  padding: 0 var(--gutter);
}
.prix-info .overline {
  display: block;
  margin-bottom: 1.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.prix-info__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 3rem;
}
.prix-info__list li {
  font-size: var(--t-step--1);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 48ch;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.prix-info__list strong {
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 760px) {
  .prix-info__list { grid-template-columns: 1fr; gap: 1.2rem; }
}


/* ─────────────────  ACADEMY  ─────────────────── */
.academy {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  padding: clamp(4rem, 8vw, 9rem) 0;
}
.academy::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 80% 10%, oklch(0.45 0.15 218 / 0.4), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, oklch(0.30 0.08 218 / 0.6), transparent 60%);
  pointer-events: none;
}
.academy > * { position: relative; }

.academy__hero {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 880px) { .academy__hero { grid-template-columns: 1fr; } }

.academy__photo {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.academy__photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.academy__lead {
  display: flex; flex-direction: column; gap: 1.4rem;
}
.eyebrow--white { color: var(--accent-2); }
.display.white { color: var(--paper); }
.lede.white { color: oklch(0.85 0.02 218); }

.academy__staff {
  max-width: var(--grid-max);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: 0 var(--gutter);
}
.academy__staff-label {
  font-size: var(--t-step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding-bottom: 1rem;
  border-bottom: 1px solid oklch(0.32 0.06 218);
  margin-bottom: 1.2rem;
}
.academy__staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (max-width: 900px) {
  .academy__staff-grid { grid-template-columns: 1fr 1fr; }
}
.coach {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.2rem;
  padding: 1.2rem 0 0;
}
.coach__name {
  font-family: var(--display);
  font-weight: 350;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.022em;
  color: var(--paper);
  grid-column: 1 / 2;
}
.coach__role {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-size: var(--t-step-0);
  color: oklch(0.85 0.04 218);
  grid-column: 1 / 2;
}
.coach__cert {
  align-self: end;
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--accent-2);
  border-radius: 999px;
  font-family: var(--body);
  font-size: var(--t-step--2);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  background: oklch(0.30 0.10 218 / 0.25);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .academy__staff-grid { grid-template-columns: 1fr; gap: 2rem; }
  .coach__cert { justify-self: start; margin-top: 0.4rem; }
}

.academy__bullets {
  max-width: var(--grid-max);
  margin: clamp(3rem, 5vw, 4rem) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.academy__bullets li {
  border-top: 1px solid oklch(0.32 0.04 218);
  padding-top: 1rem;
  padding-right: 0.5rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-step-0);
  line-height: 1.35;
  color: oklch(0.92 0.02 218);
  letter-spacing: -0.005em;
}
@media (max-width: 880px) {
  .academy__bullets { grid-template-columns: 1fr 1fr; }
  .academy__staff { grid-template-columns: 1fr; }
}


/* ─────────────────  LOCATIONS  ─────────────────── */
.loc-grid {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(4rem, 8vw, 8rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.loc-card {
  display: flex; flex-direction: column;
  gap: 0.7rem;
  padding: 1.8rem 1.8rem 1.6rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: transform 240ms var(--ease-out),
              border-color 240ms var(--ease-out),
              background-color 240ms var(--ease-out);
}
.loc-card:hover {
  border-color: var(--ink);
  background: var(--paper);
  transform: translateY(-2px);
}
.loc-card:active { transform: scale(0.99); }
.loc-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-step-2);
  letter-spacing: -0.012em;
  line-height: 1.05;
}
.loc-card p { color: var(--ink-soft); font-size: var(--t-step--1); }
.loc-card__cta {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  color: var(--accent-deep);
  font-size: var(--t-step--1);
  letter-spacing: 0.02em;
}
@media (max-width: 880px) {
  .loc-grid { grid-template-columns: 1fr; }
}


/* ─────────────────  AVIS  ─────────────────── */
.avis {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) var(--gutter) clamp(4rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
}
.avis__head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.avis__heading {
  font-family: var(--display);
  font-weight: 350;
  font-size: var(--t-step-2);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 24ch;
}
.avis__heading em { font-style: italic; font-weight: 300; color: var(--accent-deep); }


/* ─────────────────  FAQ (accordéons éditoriaux)  ─────────────────── */
.faq {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) var(--gutter) clamp(4rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
}
.faq .section-head {
  max-width: 56ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.faq__list {
  display: flex;
  flex-direction: column;
}
.faq__item {
  position: relative;
  border-top: 1px solid oklch(0.16 0.045 218 / 0.10);
}
.faq__item:last-child {
  border-bottom: 1px solid oklch(0.16 0.045 218 / 0.10);
}
/* Trait cyan vertical qui s'étire depuis le haut à l'ouverture */
.faq__item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--accent);
  border-radius: 1px;
  transform-origin: top center;
  transition: height 520ms var(--ease-expo);
}
.faq__item[open]::before {
  height: 100%;
}
.faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  /* Padding fixe : évite tout reflow du texte au hover/open */
  padding: 1.4rem 0.2rem 1.4rem 1.5rem;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 350;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--ink);
  transition: color 280ms var(--ease-out);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--accent-deep); }
.faq__q-text {
  flex: 1;
  /* translateX = purement visuel, ne change pas la box → pas de reflow */
  transform: translateX(0);
  transition: transform 380ms var(--ease-expo);
}
.faq__q:hover .faq__q-text { transform: translateX(4px); }
.faq__q-icon {
  flex-shrink: 0;
  position: relative;
  width: 24px;
  height: 24px;
  transition: transform 280ms var(--ease-spring);
}
.faq__item[open] > .faq__q .faq__q-icon {
  /* Pas de scale ici : align-items: center sur le summary recalcule le centrage
     vertical et fait bouger le texte de quelques pixels. Rotation seule. */
  transform: rotate(180deg);
}
.faq__q-icon::before,
.faq__q-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--accent);
  border-radius: 1px;
}
.faq__q-icon::before {
  width: 14px; height: 1.5px;
  transform: translate(-50%, -50%);
}
.faq__q-icon::after {
  width: 1.5px; height: 14px;
  transform: translate(-50%, -50%);
  transition: transform 280ms var(--ease-spring),
              opacity 240ms var(--ease-out);
}
.faq__item[open] .faq__q-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}
.faq__item[open] > .faq__q .faq__q-text { color: var(--accent-deep); }

.faq__a {
  padding: 0 0.2rem 1.6rem 1.5rem;
  /* Empêche un éventuel reflow du contenu lors du toggle */
  contain: layout style;
  max-width: 65ch;
  color: var(--ink-soft);
  font-size: var(--t-step--1);
  line-height: 1.65;
  /* Fade subtil en accompagnement de l'ouverture */
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 320ms var(--ease-out) 80ms,
              transform 280ms var(--ease-expo) 80ms;
}
.faq__item[open] .faq__a { opacity: 1; transform: translateY(0); }
.faq__a p { margin: 0; }

/* Animation native d'ouverture pour navigateurs qui supportent interpolate-size */
@supports (interpolate-size: allow-keywords) {
  .faq__item { interpolate-size: allow-keywords; }
  .faq__a { overflow: hidden; }
  .faq__item:not([open]) .faq__a {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  .faq__item[open] .faq__a { height: auto; }
  .faq__a {
    transition: height 280ms var(--ease-expo),
                padding 280ms var(--ease-expo),
                opacity 320ms var(--ease-out) 80ms,
                transform 280ms var(--ease-expo) 80ms;
  }
}

/* Layout desktop : 2 colonnes éditoriales (titre sticky à gauche, liste à droite) */
@media (min-width: 880px) {
  .faq {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(0, 2fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  /* IMPORTANT : .section-head est globalement en grid 2 colonnes (rail/title
     d'un côté, deck de l'autre). Dans la FAQ on n'a qu'une seule colonne pour
     le head, donc on force flex column pour empiler proprement. */
  .faq > .section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;     /* override align-items: end du .section-head global */
    justify-content: flex-start;
    gap: 1.2rem;
    padding: 1.4rem 0 0;
    margin: 0;
    max-width: none;
    width: 100%;
    border-top: 1px solid oklch(0.16 0.045 218 / 0.10);
    position: sticky;
    top: 7rem;
    text-align: left;
  }
  .faq > .section-head .rail-num,
  .faq > .section-head .section-title,
  .faq > .section-head .section-deck {
    grid-column: auto;
    grid-row: auto;
  }
  /* Titre FAQ desktop : un cran plus petit pour fitter la colonne sans déborder.
     overflow visible sur mask-line pour éviter de tronquer les descenders Q/q. */
  .faq .section-title {
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    line-height: 1.05;
    max-width: 13ch;
  }
  .faq .section-title .mask-line { overflow: visible; }
  .faq .section-deck {
    max-width: 30ch;
    font-size: var(--t-step--1);
  }
  .faq__list { min-width: 0; }
  /* Premier item garde son border-top (matche celui du head pour la grille) */
  .faq__item:first-child {
    border-top: 1px solid oklch(0.16 0.045 218 / 0.10);
  }
}

.avis__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.avis__quote {
  position: relative;
}
.avis__quote p {
  font-family: var(--display);
  font-weight: 350;
  font-size: var(--t-step-1);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 30, "SOFT" 60;
  quotes: "« " " »";
}
.avis__quote p::before { content: open-quote; color: var(--accent-deep); margin-right: 0.1em; }
.avis__quote p::after { content: close-quote; color: var(--accent-deep); margin-left: 0.1em; }

.avis__quote footer {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.avis__quote cite {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-step-1);
  color: var(--ink);
  letter-spacing: -0.005em;
}
.avis__quote footer span {
  font-size: var(--t-step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}

@media (max-width: 880px) {
  .avis__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}


/* ─────────────────  FOOTER (compact, sobre)  ─────────────────── */
.footer {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 350px at 90% 0%, oklch(0.32 0.12 218 / 0.35), transparent 60%);
  pointer-events: none;
}
.footer > * { position: relative; }

/* en-tête : une ligne avec marque, tagline, email */
.footer__head {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 1.6rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: baseline;
  border-bottom: 1px solid oklch(0.30 0.05 218);
}
.footer__logo {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-step-1);
  letter-spacing: -0.015em;
  color: var(--paper);
}
.footer__logo em { font-style: italic; font-weight: 300; color: var(--accent-2); }
.footer__tagline {
  font-size: var(--t-step--1);
  color: oklch(0.78 0.04 218);
  line-height: 1.4;
}
.footer__mail {
  font-family: var(--body);
  font-size: var(--t-step--1);
  font-weight: 500;
  color: var(--accent-2);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  padding: 0.95rem 0.1rem 0.65rem;
  line-height: 1;
  display: inline-block;
  transition: border-color 220ms var(--ease-out), color 220ms var(--ease-out);
}
.footer__mail:hover { color: var(--paper); border-bottom-color: var(--accent-2); }

@media (max-width: 880px) {
  .footer__head { grid-template-columns: 1fr; gap: 0.6rem; padding: 2rem var(--gutter) 1.4rem; }
}

/* grille 4 colonnes compactes */
.footer__grid {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 2rem var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}
.footer__col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col-title {
  font-family: var(--body);
  font-size: var(--t-step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.4rem;
}
.footer__addr {
  font-size: var(--t-step--1);
  color: var(--paper);
  line-height: 1.45;
}
.footer__addr em { color: oklch(0.65 0.04 218); font-style: italic; }
.footer__meta {
  font-size: var(--t-step--2);
  color: oklch(0.72 0.04 218);
}
.footer__phone {
  font-size: var(--t-step--1);
  color: var(--paper);
  width: max-content;
  border-bottom: 1px solid oklch(0.40 0.06 218);
  padding: 0.95rem 0.1rem 0.65rem;
  line-height: 1;
  display: inline-block;
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.footer__phone:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }

.footer__people li,
.footer__social li {
  padding: 0.15rem 0;
  font-size: var(--t-step--1);
  color: oklch(0.78 0.04 218);
}
.footer__people a,
.footer__social a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.6rem 0;
  line-height: 1.4;
  color: var(--paper);
  transition: color 200ms var(--ease-out), transform 220ms var(--ease-out);
}
/* Footer Direction : empile nom + rôle en colonne (évite le wrap incohérent
   quand le nom + titre dépasse la largeur de la colonne) */
.footer__people li,
.footer__people li > a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}
.footer__people a:hover,
.footer__social a:hover { color: var(--accent-2); }
.footer__people span,
.footer__social span {
  font-size: var(--t-step--2);
  letter-spacing: 0.04em;
  color: oklch(0.65 0.04 218);
  font-weight: 400;
  text-transform: none;
}
.footer__social span {
  letter-spacing: 0;
  margin-left: auto;
  color: var(--accent-2);
  transition: transform 220ms var(--ease-out);
}
.footer__social a:hover span { transform: translate(2px, -2px); }
.footer__social a {
  justify-content: flex-start;
}
.footer__social li a { width: 100%; }

@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.4rem 1.2rem; } }
/* En très petit mobile, on reste à 2 cols (compactes) au lieu d'empiler en 1 — réduit la longueur du footer */
@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 1rem;
  }
  .footer__col { gap: 0.4rem; }
  .footer__col-title { font-size: var(--t-step--2); }
  .footer__addr { font-size: var(--t-step--2); }
  .footer__meta { font-size: 0.72rem; }
  .footer__phone { font-size: var(--t-step--1); padding: 0.55rem 0.1rem 0.4rem; min-height: 36px; }
  .footer__people a, .footer__social a { padding: 0.35rem 0; min-height: 32px; }
}

/* ligne légale, vraiment petite */
.footer__legal {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 1rem var(--gutter) 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: var(--t-step--2);
  color: oklch(0.60 0.04 218);
}
.footer__links { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.3rem;
  min-height: 36px;
  transition: color 200ms var(--ease-out);
}
.footer__links a:hover { color: var(--paper); }
/* Bouton "Gérer les cookies" : ressemble aux liens footer mais bouton, donc reset */
.footer__cookie-prefs {
  background: transparent;
  border: 0;
  padding: 0.5rem 0.3rem;
  min-height: 36px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  letter-spacing: inherit;
  text-align: left;
  transition: color 200ms var(--ease-out);
}
.footer__cookie-prefs:hover { color: var(--paper); }
.footer__cookie-prefs:focus-visible {
  outline: 1px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ─────────────────  HERO entrance animation  ─────────────────── */
.hero__rail   { animation: rise 700ms var(--ease-out) 100ms both; }
.hero__copy .eyebrow  { animation: rise 700ms var(--ease-out) 220ms both; }
.hero__copy .display  { animation: rise 900ms var(--ease-out) 320ms both; }
.hero__copy .lede     { animation: rise 800ms var(--ease-out) 480ms both; }
.hero__cta            { animation: rise 700ms var(--ease-out) 600ms both; }
.hero__media          { animation: revealImg 1100ms var(--ease-out) 200ms both; }
.hero__quick          { animation: rise 700ms var(--ease-out) 720ms both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes revealImg {
  from { opacity: 0; clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* ─────────────────  blue accents complémentaires  ─────────────────── */
/* L'ancien dot après le brand-mark texte n'a plus lieu d'être : le logo image est l'ancre visuelle */
.nav__brand-mark::after { display: none; }

/* === Logo image dans la nav === */
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  min-height: 44px;
  padding-block: 0.2rem;
}
/* Logo nav : box carrée forcée + outline width fixe (transparente au repos).
   - outline ne suit PAS transform → reste centré sur la box d'origine, pas de
     décalage visuel quand le logo scale.
   - width fixe → seule la couleur transitionne → pas de freeze. */
.nav__logo {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  margin-left: 0.1rem;
  outline: 2px solid oklch(0.74 0.12 218 / 0);
  outline-offset: 3px;
  transform-origin: center center;
  will-change: transform;
  transition: width 360ms var(--ease-out),
              height 360ms var(--ease-out),
              transform 320ms var(--ease-spring),
              outline-color 320ms var(--ease-out);
}
.nav__brand:hover .nav__logo {
  transform: scale(1.06);
  outline-color: oklch(0.74 0.12 218 / 0.55);
}
.masthead.is-shrunk .nav__logo {
  width: 22px;
  height: 22px;
}

/* Utilitaire d'accessibilité standard : invisible à l'œil, lu par les lecteurs d'écran */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.hero__quick dl { border-bottom: 1px solid var(--line-blue); padding-bottom: 1.2rem; }
.hero__quick dt { color: var(--accent-deep); }

.section-title {
  position: relative;
}
.section-title::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1.2rem;
}

.tarifs { background: var(--paper-blue); }

.prix-col__title { border-bottom-color: var(--accent-deep); }

.extra { background: var(--paper); }
.extra strong { color: var(--accent-deep); }

.salle__lead .copy { padding-left: 1rem; border-left: 0; position: relative; }

.locations { background: var(--paper-blue); position: relative; }

/* ═══════════════════════════════════════════════════════════
   PAGE INSCRIPTION
   ═══════════════════════════════════════════════════════════ */

.page-inscription main { background: var(--paper); }

.ins-hero {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
}
.ins-hero__inner {
  max-width: 60ch;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.ins-hero__title {
  font-size: clamp(2.6rem, 5vw, 4.6rem) !important;
}
.ins-hero__title em { color: var(--accent-deep); font-style: italic; font-weight: 300; }

.ins-section {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}

.ins-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .ins-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ─── formulaire ─── */
.ins-form { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3.5rem); }

.ins-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.ins-legend {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.ins-legend__num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--t-step-2);
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}
.ins-legend__text {
  font-family: var(--body);
  font-size: var(--t-step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  font-weight: 600;
}

.ins-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 560px) { .ins-row { grid-template-columns: 1fr; } }

.ins-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ins-label {
  font-family: var(--body);
  font-size: var(--t-step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  font-weight: 600;
}
.ins-label .req { color: var(--accent-deep); margin-left: 0.2em; }
.ins-label .opt { color: var(--ink-quiet); font-weight: 400; letter-spacing: 0.06em; text-transform: none; font-size: 0.9em; }

.ins-field input,
.ins-field textarea {
  font-family: var(--body);
  font-size: var(--t-step-0);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  outline: 0;
  transition: border-color 220ms var(--ease-out);
}
.ins-field input::placeholder,
.ins-field textarea::placeholder { color: var(--ink-quiet); opacity: 0.6; }
.ins-field input:focus,
.ins-field textarea:focus {
  border-bottom-color: var(--accent-deep);
  border-bottom-width: 2px;
  padding-bottom: calc(0.7rem - 1px);
}
.ins-field textarea {
  resize: vertical;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  line-height: 1.5;
}
.ins-field textarea:focus {
  border-color: var(--accent-deep);
  border-width: 1px;
  padding: 0.8rem 1rem;
}

/* ─── radios stylés en pills ─── */
.ins-pickset { display: flex; flex-direction: column; gap: 0.7rem; }
.ins-picks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ins-pick { cursor: pointer; }
.ins-pick input { position: absolute; opacity: 0; pointer-events: none; }
.ins-pick__inner {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--body);
  font-size: var(--t-step--1);
  color: var(--ink-soft);
  background: var(--paper);
  transition: border-color 220ms var(--ease-out),
              color 220ms var(--ease-out),
              background-color 220ms var(--ease-out),
              transform 160ms var(--ease-out);
  user-select: none;
}
.ins-pick:hover .ins-pick__inner {
  border-color: var(--ink);
  color: var(--ink);
}
.ins-pick input:checked + .ins-pick__inner {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.ins-pick input:focus-visible + .ins-pick__inner {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ins-pick:active .ins-pick__inner { transform: scale(0.97); }

/* ─── RGPD checkbox ─── */
.ins-rgpd {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1.2rem 1.4rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: var(--t-step--1);
  color: var(--ink-soft);
  line-height: 1.5;
  cursor: pointer;
}
.ins-rgpd input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 2px;
  cursor: pointer;
  margin: 2px 0 0 0;
  transition: border-color 220ms var(--ease-out), background-color 220ms var(--ease-out);
  flex-shrink: 0;
  position: relative;
}
.ins-rgpd input:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.ins-rgpd input:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 9px;
  border: solid var(--paper);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ins-rgpd input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ins-rgpd a { color: var(--accent-deep); border-bottom: 1px solid var(--line-blue); }
.ins-rgpd a:hover { border-bottom-color: var(--accent-deep); }

/* ─── submit ─── */
.ins-submit {
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 1.05em 2em;
  font-size: var(--t-step--1);
}
.ins-note {
  font-size: var(--t-step--2);
  color: var(--ink-quiet);
  margin-top: 0.5rem;
}
.ins-note strong { color: var(--ink); }

.ins-fieldset--final { gap: 1.2rem; }

/* ─── honeypot anti-spam (hors écran, invisible) ─── */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ─── message d'erreur form inscription ─── */
.ins-error {
  margin-top: 0.6rem;
  padding: 0.8rem 1rem;
  background: oklch(0.94 0.04 28);
  border-left: 3px solid oklch(0.55 0.18 28);
  color: oklch(0.35 0.15 28);
  font-size: var(--t-step--1);
  border-radius: 0 4px 4px 0;
}

/* ─── état succès ─── */
.ins-success {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--paper-warm);
  border: 1px solid var(--line-blue);
  border-radius: 2px;
  text-align: left;
  align-items: flex-start;
  /* État initial avant entrée */
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.ins-success.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.ins-success__icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  transform: scale(0);
  transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 220ms;
}
.ins-success.is-visible .ins-success__icon {
  transform: scale(1);
}
.ins-success__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  z-index: -1;
  opacity: 0;
}
.ins-success.is-visible .ins-success__icon::after {
  animation: pulse-out 900ms ease-out 350ms forwards;
}
@keyframes pulse-out {
  0%   { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0;    transform: scale(2.2); }
}
.ins-success p {
  color: var(--ink-soft);
  max-width: 50ch;
}
/* Stagger inner content : h2, p, a */
.ins-success > h2,
.ins-success > p,
.ins-success > a {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out);
}
.ins-success.is-visible > h2 { transition-delay: 380ms; opacity: 1; transform: translateY(0); }
.ins-success.is-visible > p  { transition-delay: 480ms; opacity: 1; transform: translateY(0); }
.ins-success.is-visible > a  { transition-delay: 580ms; opacity: 1; transform: translateY(0); }

/* Fieldsets qui s'effacent lors du succès */
.ins-fieldset {
  transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out);
}
.ins-fieldset.is-leaving {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .ins-success,
  .ins-success > h2, .ins-success > p, .ins-success > a,
  .ins-success__icon,
  .ins-fieldset {
    transition: opacity 200ms linear !important;
    transform: none !important;
  }
  .ins-success.is-visible,
  .ins-success.is-visible > h2,
  .ins-success.is-visible > p,
  .ins-success.is-visible > a { opacity: 1; }
  .ins-success__icon::after { animation: none !important; }
}

/* ─── aside ─── */
.ins-aside {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
  position: sticky;
  top: 130px;
}
@media (max-width: 880px) { .ins-aside { position: static; } }

.ins-aside__block {
  padding: 1.6rem 1.6rem 1.8rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.ins-aside__block .overline {
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.ins-steps {
  display: flex;
  flex-direction: column;
  counter-reset: step;
}
.ins-steps li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.ins-steps li:last-child { border-bottom: 1px solid var(--line); }
.ins-steps strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-step-0);
  color: var(--ink);
  margin-bottom: 0.3rem;
  letter-spacing: -0.005em;
}
.ins-steps p {
  font-size: var(--t-step--1);
  color: var(--ink-soft);
  line-height: 1.45;
}

.ins-direct { display: flex; flex-direction: column; gap: 1rem; }
.ins-direct li { display: flex; flex-direction: column; gap: 0.15rem; }
.ins-direct strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-step-0);
  color: var(--ink);
}
.ins-direct span {
  font-size: var(--t-step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.ins-direct a {
  font-family: var(--body);
  font-size: var(--t-step--1);
  color: var(--accent-deep);
  margin-top: 0.15rem;
  max-width: 100%;
  word-break: break-word;
  padding: 0.55rem 0.1rem 0.4rem;
  line-height: 1.2;
  display: inline-block;
  min-height: 36px;
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease-out);
}
.ins-direct a:hover { border-bottom-color: var(--accent-deep); }


/* ─────────────────  REDUCED MOTION  ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-delay: 0ms !important;
  }
}

/* ==========================================================================
   ANIMATIONS JS-GATED — activées par la classe .js-anim sur <html>
   (anciennement injectées dynamiquement via script.js, externalisées pour CSP)
   ========================================================================== */

/* fade-rise pour les enfants de [data-reveal] */
.js-anim [data-reveal] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms cubic-bezier(0.23, 1, 0.32, 1),
              transform 900ms cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, transform;
}
.js-anim [data-reveal].is-in > *:nth-child(1) { transition-delay: 0ms; }
.js-anim [data-reveal].is-in > *:nth-child(2) { transition-delay: 110ms; }
.js-anim [data-reveal].is-in > *:nth-child(3) { transition-delay: 220ms; }
.js-anim [data-reveal].is-in > *:nth-child(4) { transition-delay: 330ms; }
.js-anim [data-reveal].is-in > *:nth-child(5) { transition-delay: 440ms; }
.js-anim [data-reveal].is-in > *:nth-child(6) { transition-delay: 550ms; }
.js-anim [data-reveal].is-in > * {
  opacity: 1;
  transform: translateY(0);
}
.js-anim [data-reveal] > [data-mask] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* mask reveal sur les titres */
.js-anim .mask-line {
  display: block;
  overflow: hidden;
  padding: 0.18em 0.08em 0.25em;
  margin: -0.18em -0.08em -0.25em;
  line-height: inherit;
}
.js-anim .mask-line + .mask-line {
  margin-top: -0.43em;
}
.js-anim .mask-inner {
  display: inline-block;
  transform: translateY(130%);
  transition: transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.js-anim .is-in .mask-inner,
.js-anim [data-reveal].is-in [data-mask] .mask-inner {
  transform: translateY(0);
}
.js-anim .is-in .mask-line:nth-child(2) .mask-inner,
.js-anim [data-reveal].is-in [data-mask] .mask-line:nth-child(2) .mask-inner {
  transition-delay: 130ms;
}
.js-anim .is-in .mask-line:nth-child(3) .mask-inner,
.js-anim [data-reveal].is-in [data-mask] .mask-line:nth-child(3) .mask-inner {
  transition-delay: 260ms;
}

/* curtain reveal */
.js-anim [data-curtain] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.js-anim [data-curtain]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper-warm);
  transform: translateY(0);
  transition: transform 1000ms cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 4;
  pointer-events: none;
  will-change: transform;
}
.js-anim [data-curtain].is-in::after {
  transform: translateY(-101%);
}
.js-anim .academy [data-curtain]::after {
  background: oklch(0.22 0.06 252);
}
.js-anim .salle__gallery [data-curtain]:nth-child(2)::after { transition-delay: 130ms; }
.js-anim .salle__gallery [data-curtain]:nth-child(3)::after { transition-delay: 240ms; }

/* spreads disciplines */
.js-anim .d-spread .d-spread__copy {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms cubic-bezier(0.23, 1, 0.32, 1) 250ms,
              transform 900ms cubic-bezier(0.23, 1, 0.32, 1) 250ms;
}
.js-anim .d-spread.is-in .d-spread__copy {
  opacity: 1;
  transform: translateY(0);
}

/* groupes stagger */
.js-anim .loc-grid > *,
.js-anim .prix-extras > *,
.js-anim .academy__bullets > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms cubic-bezier(0.23, 1, 0.32, 1),
              transform 700ms cubic-bezier(0.23, 1, 0.32, 1);
}
.js-anim .loc-grid.is-in > *,
.js-anim .prix-extras.is-in > *,
.js-anim .academy__bullets.is-in > * {
  opacity: 1;
  transform: translateY(0);
}

/* Ken Burns sur la photo hero */
.hero__media img {
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.06) translate3d(-1%, -1%, 0); }
}

/* reduced motion : neutralise tout */
@media (prefers-reduced-motion: reduce) {
  .js-anim .mask-inner { transform: none !important; transition: none !important; }
  .js-anim [data-curtain]::after { display: none !important; }
  .hero__media img { animation: none !important; }
}

/* ==========================================================================
   PLANNING TEASER — section sur la home (index.html#planning)
   Reproduit la grille 2-col de .section-head pour alignement parfait.
   ========================================================================== */
.planning-teaser {
  /* le container est juste un wrapper sémantique ; le padding est géré par .section-head et .planning-teaser__inner */
}
.planning-teaser__inner {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.planning-teaser__bullets {
  grid-column: 2 / 3;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  max-width: 50ch;
}
.planning-teaser__bullets li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: var(--t-step-0);
}
.planning-teaser__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.7rem;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.planning-teaser__inner > .btn {
  grid-column: 2 / 3;
  justify-self: start;
  margin-top: 0.5rem;
}
@media (max-width: 880px) {
  .planning-teaser__inner { grid-template-columns: 1fr; }
  .planning-teaser__bullets,
  .planning-teaser__inner > .btn { grid-column: 1 / 2; }
}

/* ==========================================================================
   PLANNING — page publique planning.html
   ========================================================================== */
.planning-hero {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) var(--gutter) clamp(2rem, 3vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.planning-hero__copy {
  max-width: 60ch;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.planning-toolbar {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  position: sticky;
  /* Se positionne pile sous le masthead shrunk (~55px). 3.4rem évite tout
     trou visible entre la barre du site et la barre semaine. */
  top: 3.9rem;
  z-index: 20;
  backdrop-filter: blur(6px);
}
.planning-toolbar__inner {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.planning-toolbar__week {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.planning-toolbar__range {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 220px;
  text-align: center;
}
.planning-toolbar__range .overline {
  font-size: 0.78rem;
  color: var(--ink-quiet);
}
.planning-toolbar__range strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--ink);
}
/* Légende des salles (remplace le switch Vignot/Madine) */
.planning-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-self: end;
}
.planning-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--t-step--1);
  color: var(--ink-soft);
  font-weight: 500;
}
.planning-legend__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.planning-legend__dot--vignot { background: var(--accent-deep); }
.planning-legend__dot--madine { background: oklch(0.55 0.18 45); }
@media (max-width: 880px) {
  .planning-toolbar__inner {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .planning-toolbar__salle { justify-self: start; }
  .planning-legend { justify-self: center; }

  /* Réorganise la nav semaine en 2 lignes propres :
     Ligne 1 : range (date plein largeur, centré)
     Ligne 2 : 3 boutons côte à côte */
  .planning-toolbar__week {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
  }
  .planning-toolbar__range {
    order: -1;        /* range AU-DESSUS des boutons */
    width: 100%;
    min-width: 0;
  }
  .planning-toolbar__week .planning-btn {
    flex: 1 1 30%;
    justify-content: center;
    min-height: 40px;
    font-size: var(--t-step--2);
    padding: 0.5em 0.6em;
    white-space: nowrap;
  }
}
@media (max-width: 380px) {
  .planning-toolbar__week .planning-btn {
    font-size: 0.78rem;
    padding: 0.45em 0.4em;
  }
}

/* Boutons compacts pour la nav semaine */
.planning-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55em 1em;
  border-radius: 4px;
  font-size: var(--t-step--1);
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 200ms, border-color 200ms, color 200ms;
}
.planning-btn:hover {
  background: var(--paper-warm);
  border-color: var(--ink-quiet);
}
.planning-btn--quiet { background: transparent; border-color: var(--line); }
.planning-btn--ghost { background: transparent; border-color: transparent; color: var(--accent-deep); }
.planning-btn--ghost:hover { background: var(--accent-soft); border-color: transparent; }

/* Grille semaine */
.planning-week {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.planning-day {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  transition: border-color 250ms;
}
.planning-day.is-today {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.planning-day__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.planning-day__name {
  font-weight: 600;
  font-size: var(--t-step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.planning-day.is-today .planning-day__name { color: var(--accent-deep); }
.planning-day__date {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink-quiet);
}
.planning-day__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}
.planning-day__none {
  font-size: var(--t-step--2);
  color: var(--ink-quiet);
  font-style: italic;
  margin: 0;
}
.planning-event {
  padding: 0.7rem 0.8rem;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
}
.planning-event--vignot { border-left-color: var(--accent-deep); }
.planning-event--madine { border-left-color: oklch(0.55 0.18 45); }
.planning-event__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}
.planning-event__time {
  font-size: 0.78rem;
  color: var(--ink-quiet);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.planning-event__salle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 0.15em 0.55em;
  border-radius: 999px;
}
.planning-event__salle--vignot {
  background: oklch(0.94 0.04 218);
  color: var(--accent-deep);
}
.planning-event__salle--madine {
  background: oklch(0.93 0.09 50);
  color: oklch(0.40 0.18 40);
}
.planning-event__type {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-step-1);
  color: var(--ink);
  margin: 0.2rem 0 0;
  line-height: 1.2;
}
.planning-event__coach {
  font-size: 0.78rem;
  color: var(--ink-quiet);
  margin: 0.3rem 0 0;
}
.planning-event__notes {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0.3rem 0 0;
  line-height: 1.4;
}

.planning-loading,
.planning-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-quiet);
}
.planning-empty__text {
  max-width: 50ch;
  margin: 0.5rem auto 0;
}

@media (max-width: 480px) {
  .planning-day { min-height: 0; }
}

.planning-info {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem) var(--gutter);
}
.planning-info__inner {
  max-width: var(--grid-max);
  margin: 0 auto;
  max-width: 720px;
}
.planning-info__list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.planning-info__list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.planning-info__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.7rem;
  height: 1px;
  background: var(--accent-deep);
}
.planning-info__list a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent-deep);
}

/* ==========================================================================
   PAGES LÉGALES (mentions-legales.html, confidentialite.html, cgu.html)
   ========================================================================== */
.page-legal main {
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

/* ═══════════════════════════════════════════════════════════
   PAGE 404
   ═══════════════════════════════════════════════════════════ */
.nf { min-height: calc(100dvh - 200px); display: flex; align-items: center; }
.nf-hero {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(4rem, 8vw, 7rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  width: 100%;
}
.nf-hero__rail {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--ink);
  padding-top: 0.6rem;
  width: max-content;
}
.nf-hero__rail .rail-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--accent-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}
.nf-hero__rail .rail-label {
  font-size: var(--t-step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.nf-hero__title {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  max-width: 18ch;
}
.nf-hero__lede {
  max-width: 56ch;
}
.nf-shortcuts {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
  max-width: 720px;
}
.nf-shortcut {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  background: oklch(0.94 0.02 218 / 0.35);
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  transition: background 240ms var(--ease-out),
              border-color 240ms var(--ease-out),
              transform 240ms var(--ease-spring);
}
.nf-shortcut:hover,
.nf-shortcut:focus-visible {
  background: oklch(0.94 0.02 218 / 0.7);
  border-color: oklch(0.30 0.075 218 / 0.18);
  transform: translateY(-2px);
}
.nf-shortcut__num {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--t-step--1);
  color: var(--accent-deep);
  letter-spacing: -0.005em;
}
.nf-shortcut__label {
  font-family: var(--display);
  font-size: var(--t-step-0);
  color: var(--ink);
  letter-spacing: -0.005em;
}
.nf-shortcut__arrow {
  color: var(--accent);
  transition: transform 320ms var(--ease-expo);
}
.nf-shortcut:hover .nf-shortcut__arrow { transform: translateX(4px); }
.nf-foot {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-size: var(--t-step--1);
  color: var(--ink-quiet);
  max-width: 56ch;
}
.nf-foot a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: oklch(0.30 0.075 218 / 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms var(--ease-out);
}
.nf-foot a:hover { text-decoration-color: var(--accent-deep); }

@media (max-width: 880px) {
  .nf-shortcuts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .nf-shortcuts { grid-template-columns: 1fr; }
}


.legal-hero {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.legal-hero__inner {
  display: grid;
  gap: 1.2rem;
  max-width: 720px;
}
.legal-hero__title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  margin-bottom: 0.5rem;
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 4rem) var(--gutter) 0;
  font-family: var(--body);
  font-size: var(--t-step-0);
  line-height: 1.65;
  color: var(--ink-soft);
}

.legal__section {
  margin-bottom: clamp(2.25rem, 4vw, 3rem);
}
.legal__section h2 {
  font-family: var(--display);
  font-weight: 350;
  font-size: var(--t-step-2);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-blue);
}
.legal__section h2 em { font-style: italic; color: var(--accent-deep); }

.legal__section p {
  margin: 0 0 1rem;
}
.legal__section p:last-child { margin-bottom: 0; }

.legal__section a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 200ms var(--ease-out), text-decoration-color 200ms;
}
.legal__section a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

.legal__address {
  background: var(--paper-warm);
  border-left: 3px solid var(--accent-deep);
  padding: 1rem 1.25rem;
  font-size: var(--t-step--1);
  line-height: 1.55;
  margin: 1rem 0 1.5rem;
}

.legal__bullets {
  margin: 0.5rem 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}
.legal__bullets li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.55;
}
.legal__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 0.6rem; height: 1px;
  background: var(--accent-deep);
}

.legal__list {
  margin: 1rem 0 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.legal__list > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.legal__list dt {
  font-family: var(--body);
  font-size: var(--t-step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  font-weight: 600;
  margin: 0;
}
.legal__list dd {
  margin: 0;
  color: var(--ink);
  font-size: var(--t-step-0);
}
.legal__list dd a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent-deep);
  text-decoration: none;
  padding: 0.55rem 0.1rem 0.4rem;
  line-height: 1.2;
  display: inline-block;
}
.legal__list dd a:hover { color: var(--accent-deep); }
@media (max-width: 640px) {
  .legal__list > div { grid-template-columns: 1fr; gap: 0.25rem; }
}

.legal__pending {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  font-family: var(--body);
  font-size: var(--t-step--2);
  letter-spacing: 0.05em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  text-transform: lowercase;
  vertical-align: middle;
}

.legal__note {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-size: var(--t-step-0);
  color: var(--ink-quiet);
  background: oklch(0.94 0.02 218 / 0.5);
  border-left: 2px solid var(--line-blue);
  padding: 0.875rem 1.125rem;
  margin: 1rem 0;
}

.legal__updated {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--body);
  font-size: var(--t-step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  font-weight: 500;
}

.footer__legal a[aria-current="page"] {
  color: var(--accent-2);
  border-bottom: 1px solid var(--accent-2);
}
