/* ==========================================================================
   CSMF Basket – feuille de style (vanilla, aucun build)
   Palette officielle : jaune #FFEE00 · bleu #1E2D7A · bleu foncé #13205B
   encre #0E1747 · orange #FF7A1A · crème #FAFAF7 · jaune doux #FFF7A8
   Règles : le logo ne vit que sur crème/blanc (pastille) ; un seul écran sombre
   (le hero), un seul écran jaune (la pré-inscription) ; jamais de texte jaune sur fond clair
   (le jaune en texte n'apparaît que sur l'encre, contraste ≈ 15:1).
   ========================================================================== */

:root {
  --yellow: #FFEE00;
  --yellow-soft: #FFF7A8;
  --blue: #1E2D7A;
  --blue-dark: #13205B;
  --ink: #0E1747;
  --orange: #FF7A1A;
  --cream: #FAFAF7;
  --paper: #FFFFFF;
  --sand: #F0EFE8;
  --ink-60: rgba(14, 23, 71, .62);
  --ink-30: rgba(14, 23, 71, .3);
  --ink-12: rgba(14, 23, 71, .12);
  --cream-70: rgba(250, 250, 247, .72);
  --cream-30: rgba(250, 250, 247, .3);
  --orange-text: #A83C00;   /* orange lisible en texte sur crème/blanc (≈ 6:1) */
  --ink-40: rgba(14, 23, 71, .45); /* bordures de composants (≥ 3:1) */

  --font-display: 'Barlow Condensed', 'Barlow Condensed Fallback', 'Arial Narrow', Impact, sans-serif;
  --font-text: 'Inter Tight', 'Inter Tight Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(14, 23, 71, .28);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 76px;
}

/* ------------------------------------------------------------- Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; position: fixed; left: 0; right: 0; width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); text-transform: uppercase; line-height: .92; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
section[id], .teams-grid, .filters, .selector, #contact-form { scroll-margin-top: calc(var(--header-h) + 12px); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
mark { background: none; color: inherit; position: relative; z-index: 0; white-space: nowrap; }
mark::before {
  content: ''; position: absolute; z-index: -1; left: -.06em; right: -.06em; top: .18em; bottom: .02em;
  background: var(--yellow); transform: skewX(-8deg) scaleX(1); transform-origin: left;
}
.js [data-reveal] mark::before { transform: skewX(-8deg) scaleX(0); transition: transform .6s var(--ease-out) .3s; }
.js [data-reveal].is-visible mark::before { transform: skewX(-8deg) scaleX(1); }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 10px 16px; z-index: 1000; font-weight: 600; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--cream); }
.hero :focus-visible, .site-header:not(.is-scrolled) :focus-visible, .btn-ink:focus-visible, .plan-block.cat-seniors button:focus-visible { outline-color: var(--yellow); box-shadow: 0 0 0 6px var(--ink); }
body.nav-open .site-header :focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 6px var(--cream); }
.noscript { background: var(--yellow); color: var(--ink); padding: 14px var(--gutter); text-align: center; font-weight: 600; margin: 0; }

/* --------------------------------------------------------- Boutons --- */
.btn {
  --bg: var(--yellow); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 600; text-decoration: none; cursor: pointer;
  line-height: 1; white-space: nowrap; letter-spacing: .005em; min-height: 44px;
  transition: transform .18s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s, color .2s, border-color .2s;
}
.btn .arrow { display: inline-block; transition: transform .25s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(14, 23, 71, .45); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--yellow); --fg: var(--ink); }
.btn-primary:hover { box-shadow: 0 10px 30px -8px rgba(255, 238, 0, .55); }
.btn-ink { --bg: var(--ink); --fg: var(--cream); }
.btn-ink:hover { --bg: var(--blue-dark); }
.btn-outline { --bg: transparent; --fg: var(--cream); border-color: var(--cream-30); }
.btn-outline:hover { border-color: var(--cream); background: rgba(250, 250, 247, .06); }
.btn-outline-ink { --bg: transparent; --fg: var(--ink); border-color: var(--ink-40); }
.btn-outline-ink:hover { border-color: var(--ink); }
.btn-ghost { --bg: transparent; --fg: var(--blue); border-color: var(--ink-40); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-lg { padding: 1.05em 1.7em; font-size: 1.05em; }
.btn-small { padding: .7em 1.1em; font-size: .92em; }

/* ----------------------------------------------------------- Header --- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--cream);
  transition: background-color .35s var(--ease-out), color .35s, box-shadow .35s, height .3s var(--ease-out);
}
.site-header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 23, 71, .55), transparent); pointer-events: none; transition: opacity .35s; }
.site-header.is-scrolled { background: var(--cream-70); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); color: var(--ink); box-shadow: 0 1px 0 var(--ink-12); height: 64px; }
.site-header.is-scrolled::before { opacity: 0; }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-pill picture { display: block; }
.brand-pill { display: block; background: var(--cream); border-radius: 12px; padding: 6px 10px; box-shadow: 0 4px 16px -6px rgba(0, 0, 0, .35); transition: transform .3s var(--ease-out); }
.brand:hover .brand-pill { transform: translateY(-1px); }
.brand-mark { height: 40px; width: auto; display: block; }
.brand-text { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.site-nav > a:not(.btn) { position: relative; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; opacity: .92; }
.site-nav > a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); border-radius: 2px; }
.site-nav > a:not(.btn):hover::after, .site-nav > a.is-active::after { transform: scaleX(1); }
.site-header.is-scrolled .site-nav > a:not(.btn)::after { background: var(--blue); }
.nav-cta { margin-left: 8px; }
.nav-foot { display: none; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 12px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255, 122, 26, .6); animation: pulse 2.2s ease-out infinite; }

/* ------------------------------------------------------------- Hero --- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink); color: var(--cream); overflow: hidden; padding-top: var(--header-h);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.spot {
  position: absolute; left: 50%; top: -20%; width: 140vmax; height: 140vmax; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 238, 0, .22), rgba(255, 238, 0, .06) 35%, transparent 62%);
}
.js .spot { opacity: 0; animation: spot-on 1.1s var(--ease-out) .05s forwards, spot-breathe 7s ease-in-out 1.3s infinite; }
.glow { position: absolute; right: -20%; bottom: -30%; width: 70vmax; height: 70vmax; background: radial-gradient(closest-side, rgba(255, 122, 26, .28), transparent 65%); filter: blur(10px); }
.js .glow { opacity: 0; animation: fade-in 1.4s ease .4s forwards; }
.court { position: absolute; left: 50%; bottom: 0; width: max(100%, 1100px); height: 74%; transform: translateX(-50%); color: rgba(250, 250, 247, .55); opacity: .32; }
.js .court .line { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.6s var(--ease-out) .25s forwards; }
.js .court .line:nth-child(2n) { animation-delay: .45s; }
.js .court .line:nth-child(3n) { animation-delay: .6s; }
.watermark { position: absolute; left: 50%; top: 44%; margin: 0; transform: translate(-50%, -50%) rotate(-6deg); font-family: var(--font-display); font-weight: 900; font-size: min(38vw, 520px); line-height: 1; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 2px rgba(250, 250, 247, .09); opacity: 1; user-select: none; white-space: nowrap; }
.js .watermark { opacity: 0; animation: fade-to 1.8s ease .6s forwards; --to: 1; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: end; padding-block: clamp(28px, 5vh, 64px) clamp(24px, 4vh, 48px); }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 22px; }
.hero-title { font-size: clamp(3.6rem, 10vw, 8.8rem); font-weight: 900; line-height: .88; letter-spacing: -.015em; margin-bottom: clamp(20px, 3vh, 32px); text-wrap: initial; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(112%); animation: rise .8s var(--ease-out) forwards; }
.js .hero-title .line:nth-child(1) > span { animation-delay: .25s; }
.js .hero-title .line:nth-child(2) > span { animation-delay: .37s; }
.js .hero-title .line:nth-child(3) > span { animation-delay: .49s; }
.hero-title .accent { position: relative; color: var(--yellow); padding-right: .08em; }
.hero-title .swoosh { position: absolute; left: -.02em; right: .02em; bottom: -.16em; width: 100%; height: .28em; color: var(--yellow); overflow: visible; }
.js .hero-title .swoosh path { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw-swoosh .7s var(--ease-out) 1.05s forwards; }
.hero-sub { max-width: 48ch; font-size: clamp(1.02rem, 1.35vw, 1.25rem); color: rgba(250, 250, 247, .86); margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.hero-proof li { font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--cream-30); border-radius: 999px; color: rgba(250, 250, 247, .8); }

.hero-panel { background: rgba(19, 32, 91, .55); border: 1px solid rgba(250, 250, 247, .14); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 30px); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.panel-title { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.panel-title::after { content: ''; flex: 1; height: 1px; background: rgba(250, 250, 247, .18); }
.panel-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0; }
.panel-stats div { border-left: 3px solid var(--orange); padding-left: 12px; }
.panel-stats dt { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(250, 250, 247, .7); }
.panel-stats dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 3.6vw, 3.4rem); line-height: 1; color: var(--cream); font-variant-numeric: tabular-nums; }
.panel-stats dd.led { color: var(--yellow); }
.js .panel-stats dd.led { animation: led 1.2s steps(1) 1.6s 1; }
.panel-foot { margin: 16px 0 0; font-size: .86rem; color: rgba(250, 250, 247, .78); }
.panel-foot strong { color: var(--cream); }

.js .reveal-up { opacity: 0; transform: translateY(14px); animation: fade-up .7s var(--ease-out) forwards; }
.js .hero-kicker.reveal-up { animation-delay: .15s; }
.js .hero-sub.reveal-up { animation-delay: .9s; }
.js .hero-ctas.reveal-up { animation-delay: 1.02s; }
.js .hero-proof.reveal-up { animation-delay: 1.14s; }
.js .hero-panel.reveal-up { animation-delay: 1.2s; }

/* Bandeau des créneaux */
.ticker { position: relative; z-index: 1; background: var(--yellow); color: var(--ink); height: 46px; display: flex; align-items: center; }
.ticker-viewport { flex: 1; overflow: hidden; height: 100%; display: flex; align-items: center; }
.ticker-pause { flex: 0 0 46px; height: 46px; border: 0; border-left: 1px solid rgba(14, 23, 71, .25); background: var(--yellow); color: var(--ink); font-size: .8rem; cursor: pointer; }
.ticker-pause:hover { background: var(--yellow-soft); }
.ticker.is-paused .ticker-track { animation-play-state: paused; }
.js .ticker { opacity: 0; animation: fade-in .6s ease 1.3s forwards; }
.ticker-track { display: flex; align-items: center; gap: 22px; white-space: nowrap; will-change: transform; animation: ticker 70s linear infinite; padding-left: 22px; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-item { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; }
.ticker-dot { font-size: .55rem; color: var(--blue); }

/* --------------------------------------------------------- Sections --- */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section-num { position: absolute; top: clamp(32px, 5vw, 60px); right: var(--gutter); font-family: var(--font-display); font-weight: 900; font-size: clamp(4rem, 9vw, 8rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ink-30); pointer-events: none; user-select: none; }
.section-title { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 900; }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-lead { font-size: 1.08rem; color: var(--ink-60); margin: 0; max-width: 46ch; }
.section-lead a { color: var(--blue); font-weight: 600; }

.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------- Le club --- */
.club-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin-bottom: clamp(48px, 7vw, 96px); }
.club-quote { margin: 0; }
.club-quote p { font-family: var(--font-display); font-weight: 700; text-transform: none; font-size: clamp(2rem, 4.6vw, 3.9rem); line-height: 1.02; letter-spacing: -.01em; color: var(--blue); }
.club-text p { color: var(--ink-60); max-width: 52ch; }
.club-text .section-title { margin-bottom: 20px; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reason { background: var(--paper); border: 1px solid var(--ink-12); border-radius: var(--radius); padding: 28px 26px 22px; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), opacity .7s, border-color .3s; }
.reason:nth-child(2) { transition-delay: .08s; }
.reason:nth-child(3) { transition-delay: .16s; }
.reason:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.reason svg { width: 44px; height: 44px; color: var(--blue); margin-bottom: 18px; }
.reason h3 { font-size: 1.7rem; margin-bottom: 8px; }
.reason p { margin: 0; color: var(--ink-60); font-size: .98rem; }

/* ---------------------------------------------------------- Équipes --- */
.section-teams { background: var(--paper); }
.selector { background: var(--cream); border: 1px solid var(--ink-12); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; }
.selector-label { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.5rem; margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button, .filters button { border: 1.5px solid var(--ink-40); background: var(--paper); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: .92rem; cursor: pointer; min-height: 44px; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out); }
.chips button:hover, .filters button:hover { border-color: var(--ink); transform: translateY(-1px); }
.chips button[aria-pressed="true"], .filters button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.selector-result { margin: 12px 0 0; font-weight: 600; color: var(--blue); }
.selector-result:empty { display: none; }
.selector-result a { color: var(--blue); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filters button { background: transparent; }
.teams-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card { --accent: var(--yellow); position: relative; display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--ink-12); border-radius: var(--radius); padding: 22px 22px 20px; overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), opacity .6s var(--ease-out), border-color .3s; }
.team-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.team-card:hover::after { transform: scaleX(1); }
.team-card.is-match { border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow), var(--shadow); animation: hop .45s var(--ease-bounce); }
.team-card.is-match::after { transform: scaleX(1); }
.team-card.is-dim { opacity: .45; }
.team-card.is-dim:hover { opacity: 1; }
.team-card.cat-jeunes { --accent: var(--yellow); }
.team-card.cat-seniors { --accent: var(--blue); }
.team-card.cat-loisirs { --accent: var(--orange); }
.team-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 26px; }
.team-tag { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; background: var(--accent); color: var(--ink); }
.cat-seniors .team-tag { color: var(--cream); }
.team-status { font-size: .78rem; font-weight: 600; color: var(--ink-60); display: inline-flex; align-items: center; gap: 6px; }
.team-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.team-status.is-selection::before { background: var(--blue); }
.team-name { font-size: clamp(2.2rem, 3vw, 2.9rem); line-height: .95; }
.team-level { margin: 6px 0 0; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.team-ages { margin: 6px 0 16px; color: var(--ink-60); font-size: .95rem; }
.slots { display: grid; gap: 8px; margin-bottom: 18px; }
.slot { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline; padding: 10px 12px; background: var(--paper); border-radius: var(--radius-sm); border: 1px solid var(--ink-12); font-size: .95rem; }
.slot-day { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; color: var(--blue); }
.slot-day em { font-style: normal; font-size: .9rem; color: var(--orange-text); }
.slot-time { font-weight: 600; font-variant-numeric: tabular-nums; }
.slot-venue { grid-column: 2; color: var(--ink-60); font-size: .88rem; }
.team-card-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.team-card-bottom .btn { width: 100%; }
.team-coach { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .95rem; }
.coach-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; }
.teams-note { margin: 28px 0 0; color: var(--ink-60); }
.teams-note a { color: var(--blue); font-weight: 600; }

/* --------------------------------------------------------- Planning --- */
.section-planning { background: var(--sand); }
.legend { display: flex; gap: 16px; margin-bottom: 18px; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60); }
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.legend-item::before { content: ''; width: 12px; height: 12px; border-radius: 3px; background: var(--yellow); }
.legend-item.cat-seniors::before { background: var(--blue); }
.legend-item.cat-loisirs::before { background: var(--orange); }
.planning { display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: 14px; align-items: start; }
.plan-day { background: var(--paper); border: 1px solid var(--ink-12); border-radius: var(--radius); padding: 14px; }
.plan-day.is-today { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 45, 122, .12); }
.plan-day-name { font-size: 1.6rem; color: var(--blue); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink-12); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.today-badge { font-family: var(--font-text); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--blue); color: var(--cream); padding: 4px 8px; border-radius: 6px; }
.plan-list { display: grid; gap: 8px; }
.plan-block button { --bg: var(--yellow); --fg: var(--ink); width: 100%; text-align: left; border: 0; border-radius: 12px; padding: 12px 14px; background: var(--bg); color: var(--fg); cursor: pointer; display: grid; gap: 2px; transition: transform .25s var(--ease-out), box-shadow .25s; }
.plan-block button:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 14px 30px -14px rgba(14, 23, 71, .6); }
.plan-block.cat-seniors button { --bg: var(--blue); --fg: var(--cream); }
.plan-block.cat-loisirs button { --bg: var(--orange); --fg: var(--ink); }
.plan-time { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.plan-team { font-weight: 700; font-size: .98rem; }
.plan-venue { font-size: .82rem; opacity: .85; }
.plan-empty { color: var(--ink-60); font-size: .9rem; padding: 8px 4px; }
.plan-day-tbc { grid-column: 1 / -1; border-style: dashed; }
.plan-day-tbc .plan-day-name { color: var(--orange-text); }
.plan-day-tbc .plan-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.plan-day-tbc .plan-block button { border: 2px dashed rgba(14, 23, 71, .35); }

/* --------------------------------------------------------- Gymnases --- */
.venues-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.venue-card { position: relative; background: var(--paper); border: 1px solid var(--ink-12); border-radius: var(--radius); padding: 26px 24px 22px; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), opacity .7s var(--ease-out), border-color .3s; transition-delay: calc(var(--i, 0) * 80ms); }
.venue-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.venue-index { display: block; font-family: var(--font-display); font-weight: 900; font-size: 4rem; line-height: 1; color: var(--yellow); -webkit-text-stroke: 1.5px var(--blue); margin-bottom: 8px; transition: color .6s ease .3s; }
.js .venue-card:not(.is-visible) .venue-index { color: transparent; }
.venue-name { font-size: 1.9rem; margin-bottom: 8px; }
.venue-address { font-weight: 600; margin-bottom: 4px; }
.venue-access { color: var(--ink-60); font-size: .92rem; margin-bottom: 8px; }
.venue-note { font-size: .86rem; color: var(--ink-60); background: var(--yellow-soft); border-radius: 8px; padding: 8px 10px; }
.venue-teams { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 18px; }
.chip { font-size: .78rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--sand); }

/* ------------------------------------------------------- Inscription --- */
.section-signup { background: var(--yellow); color: var(--ink); overflow: hidden; }
.section-signup::before { content: ''; position: absolute; right: -10%; top: -20%; width: 55vmax; height: 55vmax; background: radial-gradient(closest-side, rgba(255, 255, 255, .45), transparent 70%); pointer-events: none; }
.section-signup .section-num { position: static; margin-bottom: 8px; -webkit-text-stroke-color: rgba(14, 23, 71, .35); font-size: 3rem; }
.signup-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.signup-copy .section-title { margin-bottom: 14px; }
.pick-title-var { font-family: var(--font-display); font-weight: 700; text-transform: none; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.1; margin: 0 0 22px; color: var(--ink); min-height: 1.2em; }
.pick-title-var:empty { display: none; }
.pick-title-var.is-swapping { animation: swap-in .35s var(--ease-out); }
.steps { counter-reset: step; display: grid; gap: 12px; margin-bottom: 26px; }
.steps li { position: relative; padding-left: 44px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; display: grid; place-items: center; }
.reassure { display: grid; gap: 10px; margin-bottom: 30px; }
.reassure li { position: relative; padding-left: 30px; font-weight: 500; }
.reassure li::before { content: ''; position: absolute; left: 0; top: .32em; width: 18px; height: 10px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg) scale(.85); }
.signup-alt { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(14, 23, 71, .2); }
.signup-alt p { margin: 0; font-weight: 600; }

.card { background: var(--cream); border-radius: 28px; box-shadow: 0 40px 80px -40px rgba(14, 23, 71, .5); }
.form { position: relative; padding: clamp(22px, 3vw, 36px); }
.form-fields { display: grid; gap: 18px; }
.form-note { margin: -4px 0 0; font-size: .88rem; color: var(--ink-60); }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.field .opt { font-weight: 400; color: var(--ink-60); }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea {
  width: 100%; border: 2px solid var(--ink-40); background: var(--paper); border-radius: 14px; padding: 13px 14px; font: inherit; font-size: max(16px, 1em); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 238, 0, .55); }
.field.has-error input, .field.has-error textarea { border-color: var(--orange); animation: shake .3s ease; }
.field-error { margin: 6px 0 0; font-size: .86rem; font-weight: 600; color: #B64A00; }
.field-error:empty { display: none; }
.field-hint { margin: 10px 0 0; font-size: .9rem; color: var(--ink-60); background: var(--paper); border-left: 3px solid var(--yellow); padding: 8px 12px; border-radius: 0 10px 10px 0; }
.field-hint strong { color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.team-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.team-chip { position: relative; }
.team-chip input { position: absolute; opacity: 0; inset: 0; }
.team-chip span { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 2px solid var(--ink-40); background: var(--paper); font-weight: 600; font-size: .95rem; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out); }
.team-chip span small { font-weight: 500; font-size: .8rem; margin-left: 6px; opacity: .8; }
.team-chip span::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--accent, var(--ink-30)); margin-right: 10px; flex-shrink: 0; }
.team-chip.cat-jeunes { --accent: var(--yellow); }
.team-chip.cat-seniors { --accent: var(--blue); }
.team-chip.cat-loisirs { --accent: var(--orange); }
.team-chip input:checked + span::before { background: var(--yellow); }
.team-chip:hover span { border-color: var(--ink-30); transform: translateY(-1px); }
.team-chip input:checked + span { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.team-chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.field-teams.has-error .team-chip span { border-color: var(--orange); }
.field-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.field-radios legend { width: 100%; margin-bottom: 8px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; }
.radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border-radius: 999px; border: 2px solid var(--ink-40); background: var(--paper); font-weight: 600; font-size: .92rem; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.radio input:checked + span { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.radio input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-60); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex-shrink: 0; }
.field-consent.has-error .check { color: #B64A00; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { position: relative; width: 100%; }
.btn-submit .btn-loading { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 6px; }
.btn-submit .btn-loading i { width: 10px; height: 10px; border-radius: 50%; background: var(--cream); animation: bounce .7s ease-in-out infinite; }
.btn-submit .btn-loading i:nth-child(2) { animation-delay: .12s; }
.btn-submit .btn-loading i:nth-child(3) { animation-delay: .24s; }
.btn-submit.is-loading .btn-label { opacity: 0; }
.btn-submit.is-loading .btn-loading { display: flex; }
.form-status { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FFF0E6; color: #9A3E00; font-weight: 600; font-size: .92rem; }

.form-success { display: none; text-align: center; padding: 20px 8px; }
.form-success:focus-visible { outline-offset: 8px; }
.form.is-sent .form-fields { display: none; }
.form.is-sent .form-success { display: block; animation: fade-up .6s var(--ease-out); }
.success-ball { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #FFA45C, var(--orange) 55%, #D95F0E); position: relative; animation: ball-bounce 1.6s var(--ease-out) 1; box-shadow: 0 16px 24px -14px rgba(0, 0, 0, .5); }
.success-ball::before, .success-ball::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid rgba(14, 23, 71, .8); }
.success-ball::before { clip-path: inset(0 0 0 50%); transform: translateX(-27%); }
.success-ball::after { clip-path: inset(50% 0 0 0); transform: translateY(-27%); }
.form-success h3 { font-size: 2.4rem; margin-bottom: 8px; }
.form-success p { color: var(--ink-60); max-width: 44ch; margin-inline: auto; }
.success-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

/* -------------------------------------------------------------- FAQ --- */
.section-faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-head { position: sticky; top: 100px; }
.faq-head .section-num { position: static; font-size: 3rem; margin-bottom: 8px; }
.faq-head .section-title { margin-bottom: 18px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--cream); border: 1px solid var(--ink-12); border-radius: 16px; transition: opacity .7s, transform .8s var(--ease-out), border-color .3s; }
.faq-item[open] { border-color: var(--ink-30); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.05; position: relative; text-transform: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 16px; height: 2.5px; background: var(--blue); transform: translateY(-50%); transition: transform .3s var(--ease-out); border-radius: 2px; }
.faq-item summary::after { transform: translateY(-50%) rotate(90deg); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(0); }
.faq-item[open] summary::before { transform: translateY(-50%) rotate(180deg); }
.faq-body { padding: 0 22px 20px; color: var(--ink-60); animation: fade-up .35s var(--ease-out); }
.faq-body p { margin: 0; }
.faq-body a { color: var(--blue); font-weight: 600; }

/* ------------------------------------------------------------ Footer --- */
.site-footer { background: var(--cream); border-top: 1px solid var(--ink-12); padding-top: clamp(48px, 6vw, 80px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; }
.footer-brand img { width: min(100%, 230px); margin-bottom: 14px; }
.footer-brand p { color: var(--ink-60); font-size: .95rem; }
.footer-col h3 { font-size: 1.05rem; letter-spacing: .1em; margin-bottom: 14px; color: var(--blue); }
.footer-col p { color: var(--ink-60); font-size: .95rem; }
.footer-col a { display: block; text-decoration: none; font-weight: 500; padding: 4px 0; font-size: .95rem; width: fit-content; background-image: linear-gradient(var(--yellow), var(--yellow)); background-repeat: no-repeat; background-size: 0 40%; background-position: 0 85%; transition: background-size .3s var(--ease-out); }
.footer-col a:hover { background-size: 100% 40%; }
.footer-giant { margin: 0; white-space: nowrap; text-align: center; font-family: var(--font-display); font-weight: 900; font-size: 7.2vw; line-height: 1; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px var(--ink-30); user-select: none; }
.footer-legal { padding: 20px 0 calc(24px + env(safe-area-inset-bottom)); font-size: .82rem; color: var(--ink-60); }
.footer-legal p { margin-bottom: 8px; }
.privacy summary { cursor: pointer; font-weight: 600; color: var(--blue); padding: 8px 0; }
.privacy p { margin: 8px 0 0; max-width: 80ch; }

/* ------------------------------------------------------- Barre mobile --- */
.mobile-cta { display: none; }

/* -------------------------------------------------------- Animations --- */
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-to { to { opacity: var(--to, 1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes draw-swoosh { to { stroke-dashoffset: 0; } }
@keyframes spot-on { to { opacity: 1; } }
@keyframes spot-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .82; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 26, .7); } 70% { box-shadow: 0 0 0 12px rgba(255, 122, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes led { 0% { opacity: 0; } 20% { opacity: 1; } 40% { opacity: 0; } 60% { opacity: 1; } 75% { opacity: 0; } 100% { opacity: 1; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hop { 0% { transform: translateY(0); } 40% { transform: translateY(-8px); } 100% { transform: translateY(0); } }
@keyframes swap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ball-bounce { 0% { transform: translateY(-140px) scale(1); } 40% { transform: translateY(0) scale(1.15, .85); } 55% { transform: translateY(-40px) scale(.98, 1.04); } 70% { transform: translateY(0) scale(1.06, .94); } 82% { transform: translateY(-10px) scale(1); } 100% { transform: translateY(0) scale(1); } }

/* ---------------------------------------------------------- Responsive --- */
@media (max-width: 1080px) {
  .teams-grid { grid-template-columns: repeat(2, 1fr); }
  .venues-grid { grid-template-columns: 1fr 1fr; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .planning { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .site-nav { position: fixed; inset: 0; background: var(--cream); color: var(--ink); flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 100px var(--gutter) 40px; transform: translateX(100%); transition: transform .35s var(--ease-out); z-index: 90; }
  .site-nav { visibility: hidden; transition: transform .35s var(--ease-out), visibility 0s .35s; }
  .site-nav.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease-out), visibility 0s; }
  .site-nav > a:not(.btn) { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 2.6rem; line-height: 1; padding: 8px 0; opacity: 1; }
  .site-nav > a:not(.btn)::after { height: 6px; bottom: 6px; }
  .nav-cta { margin: 18px 0 0; font-size: 1.05rem; }
  .nav-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-60); }
  .nav-toggle { display: flex; position: relative; z-index: 95; }
  .brand { position: relative; z-index: 95; }
  .site-nav > a:first-child { margin-top: auto; }
  .brand-mark { height: 34px; }
  /* Menu ouvert : on retire le backdrop-filter de l'en-tête, sinon il devient le bloc conteneur du panneau fixed */
  body.nav-open .site-header { color: var(--ink); background: var(--cream); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  body.nav-open .site-header::before { opacity: 0; }
  .site-nav { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 16px); }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 28px 32px; }
  .hero-title { font-size: clamp(3.6rem, 17vw, 7rem); }
  .hero-ctas .btn { width: 100%; }
  .panel-stats dd { font-size: 2.3rem; }
  .section-head, .club-grid, .signup-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .section-num { font-size: 3.4rem; top: 24px; }
  .signup-grid .section-num { display: none; }
  .planning { grid-template-columns: 1fr 1fr; }
  .plan-day-tbc { grid-column: 1 / -1; }
  .mobile-cta { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--cream-70); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--ink-12); transform: translateY(110%); visibility: hidden; transition: transform .35s var(--ease-out), visibility 0s .35s; }
  .mobile-cta .btn { flex: 1; }
  .mobile-cta .btn-outline-ink { flex: 0 0 auto; }
  body.show-mobile-cta .mobile-cta { transform: none; visibility: visible; transition: transform .35s var(--ease-out), visibility 0s; }
  body.form-visible .mobile-cta, body.nav-open .mobile-cta { transform: translateY(110%); visibility: hidden; transition: transform .35s var(--ease-out), visibility 0s .35s; }
}
@media (max-width: 640px) {
  .teams-grid, .venues-grid, .reasons, .planning, .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(3.4rem, 19vw, 5.6rem); }
  .hero-panel { padding: 18px; }
  .ticker-item { font-size: 1rem; }
  .brand-text { display: none; }
  .club-quote p { font-size: 2rem; }
  .team-name { font-size: 2.2rem; }
  .footer-giant { font-size: 3.2rem; }
  .section-title { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .selector-label { font-size: 1.3rem; }
  .hero-kicker, .nav-foot { font-size: .72rem; letter-spacing: .08em; }
  .team-chips { grid-template-columns: 1fr 1fr; gap: 6px; }
  .team-chip span { font-size: .86rem; padding: 8px 10px; }
}

/* ----------------------------------------------------- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .js .hero-title .line > span { transform: none; animation: none; }
  .js .reveal-up, .js [data-reveal] { opacity: 1; transform: none; animation: none; }
  .js .spot, .js .glow, .js .ticker { opacity: 1; animation: none; }
  .js .court .line { stroke-dashoffset: 0; animation: none; }
  .js .hero-title .swoosh path { stroke-dashoffset: 0; animation: none; }
  .js .watermark { opacity: 1; animation: none; }
  .ticker-track { animation: none; flex-wrap: wrap; white-space: normal; }
  .ticker { height: auto; padding: 8px 0; }
  .js [data-reveal] mark::before { transform: skewX(-8deg) scaleX(1); }
  .js .venue-card:not(.is-visible) .venue-index { color: var(--yellow); }
  .dot { animation: none; }
}
