/* ==========================================================================
   CLTO Badminton — feuille de style du site public
   Palette tirée du logo : bleu CLTO, bleu nuit, or du volant.
   Motif : les lignes du terrain de badminton structurent les sections.
   ========================================================================== */

:root {
  --navy: #0a2457;
  --navy-2: #0d2f6e;
  --blue: #0153b6;
  --blue-2: #1f6fd1;
  --sky: #e9f1fb;
  --mist: #f5f8fc;
  --gold: #e3a21a;
  --gold-2: #f2bd4a;
  --ink: #0e1c33;
  --muted: #55657e;
  --line: #d7e1ee;
  --white: #ffffff;
  --court-line: rgba(255, 255, 255, 0.28);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --shadow: 0 18px 40px -22px rgba(10, 36, 87, 0.45);
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--navy); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 0.95; margin: 0 0 0.4em; letter-spacing: 0.005em; }
h1 { font-size: clamp(3rem, 8.5vw, 7.5rem); font-weight: 900; text-transform: uppercase; }
h2 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 900; text-transform: uppercase; }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; }
h4 { font-size: 1.3rem; font-weight: 800; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 62ch; }
.muted { color: var(--muted); }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 0.3em 0; }
.prose li::marker { color: var(--gold); }
.prose img { border-radius: var(--radius-m); margin: 1.5em 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-blue { background: var(--blue); color: var(--white); }
.bg-mist { background: var(--mist); }
.bg-sky { background: var(--sky); }
.bg-navy a:not(.btn), .bg-blue a:not(.btn) { color: var(--gold-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Titres de section : un trait or, comme la ligne de service */
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }
.sec-head h2 { margin: 0; }
.sec-head .kicker { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; color: var(--blue); font-size: 1rem; }
.bg-navy .sec-head .kicker, .bg-blue .sec-head .kicker { color: var(--gold-2); }
.sec-head .kicker::before { content: ""; width: 42px; height: 4px; background: var(--gold); border-radius: 2px; }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head-row .sec-head { margin-bottom: 0; }

/* Boutons */
.btn {
  --b: var(--blue); --c: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid var(--b);
  background: var(--b); color: var(--c); font-weight: 700; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); color: var(--c); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s; }
.btn:hover svg { transform: translateX(3px) rotate(-8deg); }
.btn-gold { --b: var(--gold); --c: var(--navy); }
.btn-gold:hover { --b: var(--gold-2); }
.btn-ghost { background: transparent; --c: var(--blue); }
.btn-ghost:hover { background: var(--blue); --c: var(--white); }
.bg-navy .btn-ghost, .bg-blue .btn-ghost, .hero .btn-ghost, .page-hero .btn-ghost { --b: rgba(255,255,255,.7); --c: var(--white); }
.bg-navy .btn-ghost:hover, .bg-blue .btn-ghost:hover, .hero .btn-ghost:hover, .page-hero .btn-ghost:hover { background: var(--white); --c: var(--navy); }
.btn-small { padding: 10px 18px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: ""; width: 22px; height: 2px; background: currentColor; transition: width .25s; }
.link-arrow:hover::after { width: 34px; }

/* ----------------------------------------------------------------------------
   En-tête
---------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, transform .4s cubic-bezier(.2,.8,.2,1);
}
.site-header.is-solid { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.35); transition: transform .4s; }
.brand:hover img { transform: rotate(-12deg) scale(1.05); }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; line-height: .9; text-transform: uppercase; color: var(--white); }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .72rem; letter-spacing: .02em; text-transform: none; opacity: .8; margin-top: 3px; }
.site-header.is-solid .brand-name, .site-header.on-light .brand-name { color: var(--navy); }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a {
  display: block; padding: 10px 12px; border-radius: 999px; color: var(--white); text-decoration: none;
  font-weight: 600; font-size: .95rem; position: relative;
}
.main-nav a::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); transform: translateX(-50%) scale(0); transition: transform .25s; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.site-header.is-solid .main-nav a, .site-header.on-light .main-nav a { color: var(--navy); }
.header-cta { display: flex; gap: 10px; flex: none; }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle span:nth-child(1) { top: 17px; } .nav-toggle span:nth-child(2) { top: 23px; } .nav-toggle span:nth-child(3) { top: 29px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--navy); color: var(--white);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 40px) 38px); transition: clip-path .6s cubic-bezier(.7,0,.2,1);
  display: flex; flex-direction: column; gap: 28px;
}
body.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 38px); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a { display: block; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.05; color: var(--white); text-decoration: none; padding: 4px 0; }
.mobile-menu li a:hover, .mobile-menu li a[aria-current="page"] { color: var(--gold); }
.mobile-menu .btn-row { margin-top: auto; }
body.menu-open { overflow: hidden; }

@media (max-width: 1180px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  body.menu-open .site-header .brand-name { color: var(--white); }
  body.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
}
@media (min-width: 1181px) { .mobile-menu { display: none; } }

/* ----------------------------------------------------------------------------
   Héros d'accueil : un terrain vu de dessus dont les lignes se tracent
---------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; background: var(--navy); color: var(--white);
  overflow: hidden; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 120px;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(31,111,209,.55), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(227,162,26,.18), transparent 70%),
    linear-gradient(160deg, #0d2f6e 0%, #0a2457 55%, #071a40 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(3.4rem, 9.6vw, 8.8rem); line-height: .86; margin-bottom: .3em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .gold { color: var(--gold); }
.hero .lead { color: rgba(255,255,255,.86); margin-bottom: 32px; }
.hero-badge { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-weight: 600; font-size: .95rem; margin-bottom: 26px; color: var(--white); text-decoration: none; }
.hero-badge b { background: var(--gold); color: var(--navy); border-radius: 999px; padding: 4px 10px; font-size: .8rem; }
.hero-badge:hover { color: var(--white); background: rgba(255,255,255,.14); }



.hero-scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 600; text-decoration: none; }
.hero-scroll i { width: 26px; height: 42px; border: 2px solid currentColor; border-radius: 14px; position: relative; }
.hero-scroll i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--gold); border-radius: 2px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-bottom: 90px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
}

/* Bandeau défilant */
.ticker { background: var(--gold); color: var(--navy); overflow: hidden; padding: 16px 0; transform: rotate(-1.4deg) scale(1.03); margin-top: -26px; position: relative; z-index: 3; box-shadow: 0 12px 30px -16px rgba(0,0,0,.4); }
.ticker-track { display: flex; width: max-content; gap: 34px; animation: ticker 32s linear infinite; }
.ticker span { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.4rem, 2.6vw, 2.1rem); white-space: nowrap; display: inline-flex; align-items: center; gap: 34px; }
.tick-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------------------
   Tableau d'affichage (chiffres du club)
---------------------------------------------------------------------------- */
.scoreboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.score {
  background: var(--navy); color: var(--white); border-radius: var(--radius-m); padding: 26px 22px 22px; position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.score::before { content: ""; position: absolute; inset: 50% 0 auto 0; height: 1px; background: rgba(255,255,255,.1); }
.score-num { font-family: var(--font-display); font-weight: 900; font-size: clamp(3.6rem, 7vw, 6rem); line-height: .9; color: var(--gold); display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.score-num small { font-size: .45em; color: var(--white); }
.score-label { font-weight: 600; margin-top: 10px; color: rgba(255,255,255,.85); }
.score-more { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; color: var(--muted); }
.score-more b { font-family: var(--font-display); font-size: 1.6rem; color: var(--blue); margin-right: 6px; }
@media (max-width: 860px) { .scoreboard { grid-template-columns: repeat(2, 1fr); } }

/* ----------------------------------------------------------------------------
   Publics : panneaux horizontaux épinglés
---------------------------------------------------------------------------- */
.publics { background: var(--navy); color: var(--white); overflow: hidden; }
.publics-intro { padding-top: clamp(72px, 10vw, 140px); }
.publics-track { display: flex; gap: 22px; padding: 30px var(--gutter) clamp(72px, 10vw, 120px); width: max-content; }
.pub-card {
  width: min(78vw, 440px); flex: none; border-radius: var(--radius-l); overflow: hidden; position: relative; min-height: 540px;
  display: flex; flex-direction: column; justify-content: flex-end; color: var(--white); text-decoration: none; isolation: isolate;
  background: var(--blue);
}
.pub-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.pub-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,36,87,0) 25%, rgba(10,36,87,.92) 78%); }
.pub-card:hover img { transform: scale(1.06); }
.pub-card .pub-body { padding: 28px; }
.pub-age { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 800; border-radius: 999px; padding: 6px 12px; font-size: .85rem; margin-bottom: 14px; }
.pub-card h3 { font-size: clamp(2.2rem, 4vw, 3rem); text-transform: uppercase; font-weight: 900; margin-bottom: 10px; }
.pub-card p { color: rgba(255,255,255,.88); margin: 0 0 18px; }
.pub-card .link-arrow { color: var(--gold-2); }
.pub-card.no-img { background: linear-gradient(150deg, var(--blue), var(--navy-2)); }
.pub-card.no-img::before { content: ""; position: absolute; inset: 24px; border: 2px solid var(--court-line); border-radius: 10px; z-index: -1; }
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .publics-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 60px; }
  .pub-card { scroll-snap-align: start; min-height: 460px; }
}

/* ----------------------------------------------------------------------------
   Cartes d'actualité
---------------------------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-grid.feature { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
.news-grid.feature .news-card:first-child { grid-row: span 2; }
.news-grid.feature .news-card:first-child .news-img { aspect-ratio: 4/3.3; }
.news-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.news-img { aspect-ratio: 16/10; border-radius: var(--radius-m); overflow: hidden; background: var(--sky); position: relative; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 8px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--sky); color: var(--blue); font-weight: 700; font-size: .8rem; }
.chip-gold { background: #fdf1d6; color: #8a5a00; }
.news-card h3 { font-size: clamp(1.45rem, 2vw, 1.85rem); margin: 0 0 8px; transition: color .2s; }
.news-card:hover h3 { color: var(--blue); }
.news-card p { color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 960px) { .news-grid, .news-grid.feature { grid-template-columns: 1fr 1fr; } .news-grid.feature .news-card:first-child { grid-column: span 2; grid-row: auto; } }
@media (max-width: 620px) { .news-grid, .news-grid.feature { grid-template-columns: 1fr; } .news-grid.feature .news-card:first-child { grid-column: auto; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filter-btn { border: 2px solid var(--line); background: var(--white); color: var(--navy); border-radius: 999px; padding: 9px 16px; font-weight: 700; cursor: pointer; transition: all .2s; font-size: .92rem; }
.filter-btn:hover { border-color: var(--blue); }
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ----------------------------------------------------------------------------
   Agenda
---------------------------------------------------------------------------- */
.agenda-list { display: grid; gap: 16px; }
.agenda-item {
  display: grid; grid-template-columns: 112px 1fr auto; gap: 24px; align-items: center;
  padding: 18px 22px 18px 18px; border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: border-color .2s, transform .3s;
}
.agenda-item:hover { border-color: var(--blue); transform: translateX(6px); }
.bg-navy .agenda-item { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--white); }
.bg-navy .agenda-item:hover { border-color: var(--gold); }
.date-tile { background: var(--blue); color: var(--white); border-radius: 12px; text-align: center; padding: 10px 6px; font-family: var(--font-display); text-transform: uppercase; line-height: .9; }
.date-tile b { display: block; font-size: 2.8rem; font-weight: 900; }
.date-tile span { font-weight: 800; font-size: 1.05rem; }
.date-tile.k-stage { background: var(--gold); color: var(--navy); }
.date-tile.k-interclubs { background: var(--navy-2); box-shadow: inset 0 0 0 2px var(--gold); }
.date-tile.k-tournoi { background: #c2410c; }
.agenda-item h3 { margin: 0 0 4px; font-size: 1.6rem; }
.agenda-item .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .92rem; color: var(--muted); font-weight: 600; }
.bg-navy .agenda-item .meta { color: rgba(255,255,255,.7); }
.meta svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
@media (max-width: 640px) { .agenda-item { grid-template-columns: 78px 1fr; } .agenda-item > :last-child { grid-column: 1 / -1; } .date-tile b { font-size: 2.1rem; } }

.event-detail { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; padding: 34px 0; border-top: 1px solid var(--line); }
.event-detail:first-child { border-top: 0; }
.event-detail img { border-radius: var(--radius-m); width: 100%; box-shadow: var(--shadow); }
.event-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.fact { display: inline-flex; gap: 6px; align-items: center; background: var(--mist); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: .9rem; }
.fact svg { width: 15px; height: 15px; color: var(--blue); }
@media (max-width: 820px) { .event-detail { grid-template-columns: 1fr; } .event-detail img { max-width: 380px; } }

/* ----------------------------------------------------------------------------
   Planning des créneaux
---------------------------------------------------------------------------- */
.planning-tools { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-bottom: 28px; }
.planning-tools label { font-weight: 700; font-size: .9rem; display: grid; gap: 6px; }
.select { appearance: none; border: 2px solid var(--line); border-radius: 999px; padding: 10px 38px 10px 16px; font: inherit; font-weight: 600; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230a2457' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--navy); min-width: 180px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.day-col { background: var(--mist); border-radius: var(--radius-m); padding: 12px; min-height: 160px; }
.day-col h3 { font-size: 1.5rem; text-transform: uppercase; margin: 2px 4px 12px; display: flex; justify-content: space-between; align-items: baseline; }
.day-col h3 small { font-family: var(--font-body); font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: none; }
.day-col.is-today { background: var(--sky); box-shadow: inset 0 0 0 2px var(--blue); }
.slot { border-radius: 10px; background: var(--white); padding: 10px 12px; margin-bottom: 8px; border-left: 5px solid var(--blue); font-size: .88rem; line-height: 1.35; }
.slot b { display: block; font-size: .95rem; color: var(--navy); }
.slot .t { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--blue); }
.slot .g { color: var(--muted); }
.slot.k-libre { border-left-color: var(--gold); }
.slot.k-libre .t { color: #a06d00; }
.slot.is-full { opacity: .9; }
.slot .full { display: inline-block; margin-top: 4px; background: #fde2e2; color: #a11; border-radius: 999px; padding: 1px 8px; font-weight: 700; font-size: .75rem; }
.legend { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 24px; font-size: .92rem; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }
@media (max-width: 1100px) { .week { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .week { grid-template-columns: 1fr; } .day-col { min-height: 0; } }

.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--radius-m); overflow: hidden; }
.level { padding: 26px 22px; color: var(--white); position: relative; }
.level:nth-child(1) { background: #3d7fd6; } .level:nth-child(2) { background: var(--blue); } .level:nth-child(3) { background: var(--navy-2); } .level:nth-child(4) { background: var(--navy); }
.level h3 { text-transform: uppercase; font-size: 1.9rem; margin-bottom: 6px; }
.level p { margin: 0; color: rgba(255,255,255,.85); font-size: .95rem; }
.level .bar { display: flex; gap: 4px; margin-bottom: 18px; }
.level .bar i { width: 18px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); }
.level .bar i.on { background: var(--gold); }
@media (max-width: 860px) { .levels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .levels { grid-template-columns: 1fr; } }

/* Gymnases */
.gyms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: stretch; }
.gym-list { display: grid; gap: 10px; align-content: start; }
.gym { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; transition: border-color .2s, background .2s; }
.gym:hover, .gym.is-active { border-color: var(--blue); background: var(--sky); }
.gym .pin { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; }
.gym b { display: block; }
.gym small { color: var(--muted); }
.gym .courts { text-align: right; font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; color: var(--blue); line-height: .9; }
.gym .courts small { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 600; }
#gym-map { min-height: 460px; border-radius: var(--radius-m); overflow: hidden; z-index: 0; background: var(--sky); }
.leaflet-container { font-family: var(--font-body); }
.map-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; background: var(--blue); transform: rotate(-45deg); border: 3px solid var(--white); box-shadow: 0 6px 14px rgba(0,0,0,.3); display: grid; place-items: center; }
.map-pin span { transform: rotate(45deg); color: var(--white); font-weight: 800; font-size: 13px; }
@media (max-width: 900px) { .gyms { grid-template-columns: 1fr; } #gym-map { min-height: 340px; } }

/* ----------------------------------------------------------------------------
   En-tête des pages intérieures
---------------------------------------------------------------------------- */
.page-hero {
  position: relative; background: var(--navy); color: var(--white); overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(64px, 8vw, 110px);
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(70% 90% at 90% 0%, rgba(31,111,209,.6), transparent 70%), linear-gradient(170deg, #0d2f6e, #0a2457 70%); }
.page-hero h1 { max-width: 14ch; }
.page-hero .lead { color: rgba(255,255,255,.86); }
.page-hero-img { position: absolute; right: 0; top: 0; bottom: 0; width: 40%; z-index: -1; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; opacity: .55; mix-blend-mode: luminosity; }
.page-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy), rgba(10,36,87,.2)); }
@media (max-width: 860px) { .page-hero-img { width: 100%; clip-path: none; opacity: .35; } }

/* Sous-navigation collante */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: top .4s; }
body.header-hidden .subnav { top: 0; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 16px 14px; white-space: nowrap; font-weight: 700; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--navy); border-bottom-color: var(--gold); }

/* ----------------------------------------------------------------------------
   Blocs génériques
---------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.top { align-items: start; }
.split-media { border-radius: var(--radius-l); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split-media.tilt { transform: rotate(-2deg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border-top: 2px solid var(--navy); }
.pillar { padding: 24px 22px 22px 0; border-bottom: 1px solid var(--line); }
.pillar + .pillar { padding-left: 22px; border-left: 1px solid var(--line); }
.pillar h3 { font-size: 1.6rem; margin-bottom: 6px; }
.pillar p { color: var(--muted); margin: 0; font-size: .96rem; }
.pillar svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: 14px; }
.bg-navy .pillars { border-top-color: var(--gold); }
.bg-navy .pillar { border-color: rgba(255,255,255,.15); }
.bg-navy .pillar p { color: rgba(255,255,255,.78); }
@media (max-width: 620px) { .pillar + .pillar { padding-left: 0; border-left: 0; } }

.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.price-card { border-radius: var(--radius-m); padding: 26px; background: var(--white); border: 2px solid var(--line); position: relative; }
.price-card.is-main { background: var(--navy); color: var(--white); border-color: var(--navy); }
.price-card h3 { font-size: 1.55rem; margin-bottom: 4px; }
.price-card .amount { font-family: var(--font-display); font-weight: 900; font-size: 3.4rem; line-height: 1; color: var(--blue); margin: 10px 0; }
.price-card.is-main .amount { color: var(--gold); }
.price-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.price-card.is-main p { color: rgba(255,255,255,.8); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table caption { text-align: left; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.7rem; padding-bottom: 10px; color: var(--navy); }
.price-table th, .price-table td { padding: 14px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table td:last-child { text-align: right; font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; color: var(--blue); white-space: nowrap; }
.price-table td small { display: block; color: var(--muted); font-size: .85rem; }
.tables-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px 50px; }

.callout { border-radius: var(--radius-m); padding: 22px 24px; background: #fff7e3; border-left: 6px solid var(--gold); }
.callout h3 { font-size: 1.5rem; margin-bottom: 6px; }
.callout p:last-child { margin: 0; }
.callout.info { background: var(--sky); border-left-color: var(--blue); }

/* Accordéon (FAQ) */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: var(--blue); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230153b6' stroke-width='3.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") no-repeat center; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--gold); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* Personnes */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.person { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line); }
.avatar { width: 54px; height: 54px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--blue); color: var(--white); font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person:nth-child(3n+2) .avatar { background: var(--navy-2); } .person:nth-child(3n) .avatar { background: var(--gold); color: var(--navy); }
.person b { display: block; line-height: 1.25; }
.person small { color: var(--muted); line-height: 1.3; display: block; }
.people-group { margin-bottom: 44px; }
.people-group h3 { margin-bottom: 16px; }
.chips-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-list span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .92rem; }

/* Frise chronologique */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--gold), var(--blue)); border-radius: 2px; }
.tl-item { display: grid; grid-template-columns: 100px 1fr; gap: 42px; padding: 16px 0; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 111px; top: 26px; width: 17px; height: 17px; border-radius: 50%; background: var(--white); border: 4px solid var(--blue); }
.tl-year { font-family: var(--font-display); font-weight: 900; font-size: 2.3rem; color: var(--blue); line-height: 1; text-align: right; padding-top: 8px; }
.tl-item h3 { font-size: 1.45rem; margin-bottom: 4px; }
.tl-item p { margin: 0; color: var(--muted); }
.bg-navy .timeline::before { background: linear-gradient(var(--gold), rgba(255,255,255,.4)); }
.bg-navy .tl-item::before { background: var(--navy); border-color: var(--gold); }
.bg-navy .tl-year { color: var(--gold); }
.bg-navy .tl-item p { color: rgba(255,255,255,.75); }
@media (max-width: 600px) { .timeline::before { left: 8px; } .tl-item { grid-template-columns: 1fr; gap: 4px; padding-left: 36px; } .tl-item::before { left: 1px; top: 22px; } .tl-year { text-align: left; font-size: 1.8rem; } }

.medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.medal { padding: 22px; border-radius: var(--radius-m); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.medal .yr { font-family: var(--font-display); font-weight: 900; color: var(--gold); font-size: 1.6rem; }
.medal h3 { font-size: 1.3rem; margin: 4px 0 6px; }
.medal p { margin: 0; color: rgba(255,255,255,.78); font-size: .95rem; }

/* Labels et logos */
.labels { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.label-item { display: grid; justify-items: center; gap: 10px; width: 140px; text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted); }
.label-item img { width: 96px; height: 96px; object-fit: contain; }
.logo-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track { display: flex; gap: 56px; width: max-content; animation: ticker 40s linear infinite; align-items: center; padding: 10px 0; }
.logo-track img { height: 70px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logo-track img:hover { filter: none; opacity: 1; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.partner { aspect-ratio: 3/2; border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; padding: 18px; text-decoration: none; transition: border-color .2s, transform .3s; }
.partner:hover { border-color: var(--blue); transform: translateY(-4px); }
.partner img { max-height: 76px; object-fit: contain; }

/* Galerie */
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.album { grid-column: span 4; position: relative; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4/3; color: var(--white); text-decoration: none; isolation: isolate; background: var(--navy); }
.album:nth-child(5n+1) { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.album img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.album::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(10,36,87,.9)); }
.album:hover img { transform: scale(1.06); }
.album .album-body { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.album h3 { font-size: 1.6rem; margin: 6px 0 0; }
.album:nth-child(5n+1) h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
@media (max-width: 860px) { .album, .album:nth-child(5n+1) { grid-column: span 6; grid-row: auto; aspect-ratio: 4/3; } }
@media (max-width: 560px) { .album, .album:nth-child(5n+1) { grid-column: span 12; } }

/* Équipes interclubs : l'échelle des divisions */
.ladder { display: grid; gap: 10px; }
.rung { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: center; padding: 16px 20px; border-radius: var(--radius-m); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: var(--white); text-decoration: none; }
.rung:hover { border-color: var(--gold); color: var(--white); }
.rung .lvl { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; color: var(--gold); line-height: 1; }
.rung b { display: block; font-size: 1.1rem; }
.rung small { color: rgba(255,255,255,.7); }
.rung:nth-child(1) { margin-right: 0; } .rung:nth-child(2) { margin-right: 4%; } .rung:nth-child(3) { margin-right: 8%; } .rung:nth-child(4) { margin-right: 12%; } .rung:nth-child(5) { margin-right: 16%; }
.bg-mist .rung, .section:not(.bg-navy) .rung { background: var(--white); border-color: var(--line); color: var(--ink); }
.section:not(.bg-navy) .rung small { color: var(--muted); }
.section:not(.bg-navy) .rung .lvl { color: var(--blue); }

/* Citation du président */
.quote { position: relative; }
.quote-mark { font-family: var(--font-display); font-weight: 900; font-size: 12rem; line-height: .6; color: var(--gold); height: 70px; display: block; }
.quote-body { font-size: 1.12rem; }
.quote-body.is-clamped { max-height: 15em; overflow: hidden; mask-image: linear-gradient(#000 60%, transparent); }
.quote-sign { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.quote-sign b { display: block; font-size: 1.1rem; }

/* Formulaires */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea { font: inherit; border: 2px solid var(--line); border-radius: 12px; padding: 13px 14px; background: var(--white); color: var(--ink); transition: border-color .2s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-status { font-weight: 700; }
.form-status.ok { color: #127a3e; } .form-status.err { color: #b42318; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius-m); background: var(--mist); text-decoration: none; color: inherit; }
.contact-card svg { width: 26px; height: 26px; color: var(--blue); flex: none; margin-top: 2px; }
.contact-card b { display: block; }
#hq-map { height: 300px; border-radius: var(--radius-m); overflow: hidden; z-index: 0; }

/* Documents */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.doc { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius-m); border: 1px solid var(--line); text-decoration: none; color: inherit; background: var(--white); transition: border-color .2s; }
.doc:hover { border-color: var(--blue); color: inherit; }
.doc svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.doc b { display: block; line-height: 1.3; }
.doc small { color: var(--blue); font-weight: 700; }

/* Bloc d'appel final */
.cta-band { position: relative; overflow: hidden; background: var(--blue); color: var(--white); border-radius: var(--radius-l); padding: clamp(40px, 7vw, 90px); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 22px; border: 2px solid var(--court-line); border-radius: 18px; z-index: -1; }
.cta-band::after { content: ""; position: absolute; left: 50%; top: 22px; bottom: 22px; width: 2px; background: var(--court-line); z-index: -1; }
.cta-band h2 { max-width: 15ch; }
.cta-band p { max-width: 52ch; color: rgba(255,255,255,.88); }
@media (max-width: 700px) { .cta-band::after { display: none; } }

.alert-band { background: #fff3d6; border-bottom: 1px solid #f3d48c; color: #6b4500; font-size: .95rem; }
.alert-band .wrap { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; }
.alert-band svg { flex: none; width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }

/* Article */
.article-hero { padding: calc(var(--header-h) + 60px) 0 40px; background: var(--mist); }
.article-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); text-transform: none; max-width: 20ch; }
.article-cover { margin-top: -10px; }
.article-cover img { width: 100%; max-height: 640px; object-fit: contain; background: var(--sky); border-radius: var(--radius-l); }
.article-body { font-size: 1.1rem; padding: 50px 0 80px; }
.back { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; margin-bottom: 20px; }

/* Pied de page */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); padding: 90px 0 28px; position: relative; overflow: hidden; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h3 { color: var(--white); font-size: 1.4rem; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand img { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 18px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: background .2s, transform .3s; }
.socials a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }
.footer-word { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(4rem, 17vw, 15rem); line-height: .8; color: rgba(255,255,255,.06); margin: 60px 0 10px; white-space: nowrap; letter-spacing: -.01em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* États de chargement */
.skeleton { background: linear-gradient(90deg, var(--mist), #e7eef7, var(--mist)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-m); min-height: 120px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 30px; border-radius: var(--radius-m); background: var(--mist); color: var(--muted); text-align: center; }

/* Apparitions au défilement (pilotées par GSAP ; état initial posé en JS) */
.reveal-ready [data-reveal] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal-ready [data-reveal] { opacity: 1; }
  .ticker-track, .logo-track { animation: none; }
}

/* Impression */
@media print { .site-header, .mobile-menu, .site-footer, .ticker, .shuttle { display: none !important; } .page-hero, .hero { background: none; color: var(--ink); padding-top: 20px; } }
.timeline::before { transform-origin: top; transform: scaleY(var(--tl, 1)); }

/* ---- Ajustements après relecture ---- */
/* accents des capitales (À, É) non rognés par les masques d'animation */
.hero h1 .line { padding-top: .3em; margin-top: -.3em; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding: .3em 0 .06em; margin: -.3em 0 -.06em; }
/* boutons et accents sur fonds sombres */
.site-header:not(.is-solid):not(.on-light) .btn-ghost { --b: rgba(255,255,255,.6); --c: var(--white); }
.site-header:not(.is-solid):not(.on-light) .btn-ghost:hover { background: var(--white); --c: var(--navy); }
.publics .sec-head .kicker, .cta-band .sec-head .kicker { color: var(--gold-2); }
.publics .btn-ghost, .cta-band .btn-ghost { --b: rgba(255,255,255,.7); --c: var(--white); }
.publics .btn-ghost:hover, .cta-band .btn-ghost:hover { background: var(--white); --c: var(--navy); }
.bg-navy a.agenda-item, .bg-navy a.rung { color: var(--white); }
.pub-card img { width: 114%; left: -7%; }
.ticker + [data-alert] .alert-band { padding-top: 14px; }
.day-col h3 { flex-direction: column; align-items: flex-start; gap: 2px; }
@media (min-width: 1101px) { #planning .wrap { width: min(100% - 2 * var(--gutter), 1400px); } }


/* ==========================================================================
   Terrain complet (héros) et diaporama
   ========================================================================== */
.court { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.court-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.court-svg .ln { fill: none; stroke: var(--court-line); stroke-width: 1.4; stroke-linecap: square; }
.court-svg .ln-net { stroke: rgba(227, 162, 26, .6); stroke-width: 3; stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; }
.page-hero .court { z-index: 0; inset: 0; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero 
/* Diaporama : paquet de cartes photo */
.hero-show { position: relative; width: min(100%, 470px); justify-self: center; }
.show-glow { position: absolute; inset: 8% -6% 18%; background: center / cover no-repeat; filter: blur(60px) saturate(1.4); opacity: .55; z-index: -1; transition: background-image .8s; border-radius: 50%; pointer-events: none; }
.show-frame { position: relative; aspect-ratio: 4 / 5; max-height: 58vh; width: 100%; margin-inline: auto; perspective: 1400px; --rx: 0deg; --ry: 0deg; }
.slide {
  position: absolute; inset: 0; margin: 0; border-radius: 22px; overflow: hidden; background: var(--navy-2);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .8); border: 4px solid rgba(255, 255, 255, .92);
  transition: transform .75s cubic-bezier(.22, .9, .25, 1), opacity .6s, filter .6s; transform-origin: 50% 90%;
  will-change: transform; cursor: pointer;
}
.slide[data-pos="0"] { z-index: 4; transform: translateX(var(--drag, 0px)) rotate(calc(var(--drag, 0px) / 40)) rotateX(var(--rx)) rotateY(var(--ry)); cursor: default; transition: transform .75s cubic-bezier(.22, .9, .25, 1), opacity .6s; }
.slide[data-pos="1"] { z-index: 3; transform: translate(26px, -18px) rotate(5deg) scale(.94); filter: brightness(.7); }
.slide[data-pos="2"] { z-index: 2; transform: translate(50px, -34px) rotate(10deg) scale(.88); filter: brightness(.5); }
.slide[data-pos="hidden"] { z-index: 1; transform: translate(60px, -40px) rotate(12deg) scale(.84); opacity: 0; pointer-events: none; }
.slide.is-leaving { z-index: 5; animation: card-out .75s cubic-bezier(.55, 0, .3, 1) forwards; }
.slide.is-leaving-back { z-index: 5; animation: card-out-back .75s cubic-bezier(.55, 0, .3, 1) forwards; }
@keyframes card-out { 0% { transform: none; opacity: 1; } 55% { transform: translate(-115%, 40px) rotate(-16deg); opacity: 1; } 56% { opacity: 0; } 100% { transform: translate(60px, -40px) rotate(12deg) scale(.84); opacity: 0; } }
@keyframes card-out-back { 0% { transform: none; opacity: 1; } 55% { transform: translate(115%, 40px) rotate(16deg); opacity: 1; } 56% { opacity: 0; } 100% { transform: translate(60px, -40px) rotate(12deg) scale(.84); opacity: 0; } }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.is-front img { animation: slide-zoom 7s ease-out both; }
@keyframes slide-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.slide figcaption { position: absolute; inset: auto 0 0 0; padding: 80px 22px 22px; background: linear-gradient(180deg, transparent, rgba(7, 26, 64, .94)); display: grid; gap: 8px; justify-items: start; opacity: 0; transform: translateY(14px); transition: opacity .5s .25s, transform .5s .25s; }
.slide.is-front figcaption { opacity: 1; transform: none; }
.slide-label { background: var(--gold); color: var(--navy); font-family: var(--font-nav); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: .9rem; padding: 3px 10px; border-radius: 999px; }
.slide figcaption a, .slide figcaption b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.3vw, 1.95rem); line-height: 1; color: var(--white); text-decoration: none; }
.slide figcaption a:hover { color: var(--gold-2); }

.show-ctrl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 30px; }
.show-count { font-family: var(--font-nav); font-style: italic; font-weight: 700; font-size: 1.05rem; color: rgba(255, 255, 255, .6); letter-spacing: .04em; min-width: 62px; }
.show-count b { color: var(--white); font-size: 1.5rem; }
.show-bars { display: flex; gap: 6px; margin: 0; }
.show-bars button { flex: 1; background: none; border: 0; padding: 10px 0; cursor: pointer; }
.show-bars i { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; position: relative; }
.show-bars i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.show-bars .is-done i::after { transform: scaleX(1); }
.show-bars .is-active i::after { animation: bar-fill var(--dur, 6s) linear forwards; }
.show-bars.is-paused .is-active i::after { animation-play-state: paused; }
.show-bars button:hover i { background: rgba(255, 255, 255, .45); }
@keyframes bar-fill { to { transform: scaleX(1); } }
.show-arrows { display: flex; gap: 8px; }
.show-arrows button { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: transparent; color: var(--white); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .25s; }
.show-arrows button:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: scale(1.06); }
.show-arrows svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .hero-show { width: min(100% - 40px, 380px); margin-top: 26px; }
  .show-frame { aspect-ratio: 4 / 4.6; }
  .slide[data-pos="1"] { transform: translate(16px, -12px) rotate(4deg) scale(.95); }
  .slide[data-pos="2"] { transform: translate(30px, -22px) rotate(8deg) scale(.9); }
  .show-ctrl { gap: 12px; }
  .show-arrows button { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .show-bars .is-active i::after { transform: scaleX(1); animation: none; } .slide { transition: none; } .slide.is-leaving, .slide.is-leaving-back { animation: none; } }
/* Le héros tient dans l'écran : le terrain s'y voit en entier */
.hero { padding: calc(var(--header-h) + 28px) 0 64px; }
.hero h1 { font-size: clamp(3rem, 6.4vw, 6.6rem); }
.hero .lead { max-width: 46ch; }
.hero-scroll { bottom: 14px; }

/* Pas de débordement horizontal (bande blanche sur iPhone) */
html, body { overflow-x: clip; }
main, .site-footer { overflow-x: clip; }

/* Terrain : debout sur mobile, lignes un peu plus visibles */
.court-v { display: none; }
@media (max-width: 760px) { .hero .court-h { display: none; } .hero .court-v { display: block; } }
.hero .court-svg .ln { stroke: rgba(255, 255, 255, .38); }
.court-v .ln { stroke-width: 2; }
/* le bandeau incliné est rogné par son conteneur : rien ne dépasse de l'écran */
.ticker-wrap { overflow: hidden; margin-top: -46px; padding: 20px 0; position: relative; z-index: 3; }
.ticker-wrap .ticker { margin-top: 0; }
/* terrain plus marqué sur mobile */
@media (max-width: 760px) { .hero .court-svg .ln { stroke: rgba(255, 255, 255, .5); } .court-v .ln { stroke-width: 2.6; } .hero .court-svg .ln-net { stroke: rgba(227, 162, 26, .8); } }

/* ==========================================================================
   Retouches : menu, logo, message d'information, accueil aéré
   ========================================================================== */
:root { --font-nav: "Barlow Condensed", "Arial Narrow", sans-serif; --header-h: 124px; --header-solid: 84px; }
@media (max-width: 1180px) { :root { --header-h: 100px; --header-solid: 72px; } }

/* En-tête : grand logo qui se réduit au défilement */
.site-header { transition: background .35s, box-shadow .35s, transform .4s cubic-bezier(.2,.8,.2,1), height .35s; }
.site-header.is-solid { height: var(--header-solid); }
.brand img { width: 104px; height: 104px; transition: transform .4s, width .35s, height .35s; }
.site-header.is-solid .brand img { width: 62px; height: 62px; }
.brand-name { font-size: 1.7rem; }
@media (max-width: 1180px) {
  .brand img { width: 80px; height: 80px; }
  .site-header.is-solid .brand img { width: 52px; height: 52px; }
  .brand-name { font-size: 1.4rem; }
}
.subnav { top: var(--header-solid); }

/* Menu : capitales italiques condensées, plus nerveuses */
.main-nav a { font-family: var(--font-nav); font-style: italic; font-weight: 700; font-size: 1.22rem; text-transform: uppercase; letter-spacing: .02em; padding: 8px 11px; line-height: 1; transition: color .2s, transform .25s; }
.main-nav a:hover { transform: translateY(-2px) skewX(-4deg); }
.main-nav a::after { bottom: -2px; width: 70%; height: 3px; border-radius: 2px; transform: translateX(-50%) scaleX(0); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }
.header-cta .btn { font-family: var(--font-nav); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.1rem; letter-spacing: .02em; }
.mobile-menu li a { font-family: var(--font-nav); font-style: italic; font-weight: 800; }

/* Message d'information (créneaux complets) */
[data-alert]:not(:empty) { padding: 34px 0 0; }
.notice { display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px; align-items: center; background: var(--white); border-radius: 18px; padding: 18px 18px 18px 20px; box-shadow: 0 18px 40px -26px rgba(10, 36, 87, .45); border: 1px solid var(--line); }
.notice-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; }
.notice-body b { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: 2px; }
.notice-body p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.notice-close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--mist); color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.notice-close:hover { background: var(--sky); color: var(--navy); }
@media (max-width: 700px) {
  .notice { grid-template-columns: auto 1fr auto; }
  .notice .btn { grid-column: 2 / 4; justify-self: start; }
  .notice-close { grid-row: 1; grid-column: 3; }
}

/* Accueil plus aéré */
.hero h1 { margin-bottom: .45em; }
.hero-ctas { margin-top: 12px; }
main:has(.hero) > .section { padding: clamp(110px, 13vw, 190px) 0; }
main:has(.hero) .sec-head { margin-bottom: clamp(48px, 6vw, 84px); }
main:has(.hero) .sec-head-row { margin-bottom: clamp(48px, 6vw, 84px); }
main:has(.hero) .news-grid { gap: 40px; }
main:has(.hero) .scoreboard { gap: 24px; }
main:has(.hero) .score-more { margin-top: 44px; gap: 14px 40px; }
main:has(.hero) .agenda-list { gap: 20px; }
main:has(.hero) .ladder { gap: 14px; }
main:has(.hero) .publics-intro { padding-top: clamp(110px, 13vw, 190px); }
.main-nav a { white-space: nowrap; font-size: 1.15rem; padding: 8px 9px; }
.site-header .wrap { gap: 18px; }
@media (max-width: 1320px) { .main-nav a { font-size: 1.06rem; padding: 8px 7px; } .brand-name { font-size: 1.45rem; } }
.notice-body p.is-clamped { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice-more { background: none; border: 0; padding: 4px 0 0; color: var(--blue); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .notice { align-items: start; } .notice-ico { width: 34px; height: 34px; font-size: 1.2rem; } }

/* Logo réduit de 30 % */
:root { --header-h: 104px; --header-solid: 72px; }
@media (max-width: 1180px) { :root { --header-h: 84px; --header-solid: 64px; } }
.brand img { width: 73px; height: 73px; }
.site-header.is-solid .brand img { width: 46px; height: 46px; }
@media (max-width: 1180px) { .brand img { width: 56px; height: 56px; } .site-header.is-solid .brand img { width: 42px; height: 42px; } }
.show-frame { max-height: none; width: min(100%, calc(60vh * .8)); margin-inline: 0 auto; }
.hero-show { width: min(100%, calc(60vh * .8 + 60px), 520px); }
@media (max-width: 900px) { .hero-show { margin-inline: auto; justify-self: center; } .show-frame { width: calc(100% - 30px); } }

/* ==========================================================================
   Diaporama : cartes « coup de pinceau », sortie vers la droite
   ========================================================================== */

.slide { border: 0; border-radius: 0; overflow: visible; background: none; box-shadow: none; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .45)); }
.slide[data-pos="1"] { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .4)) brightness(.7); }
.slide[data-pos="2"] { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35)) brightness(.5); }
.slide-paint { position: absolute; inset: 0; overflow: hidden; background: var(--navy-2);
  -webkit-mask: url(../img/brush-card.png) center / 100% 100% no-repeat; mask: url(../img/brush-card.png) center / 100% 100% no-repeat; }
.slide-swash { position: absolute; inset: 6% -4% 4% -6%; background: var(--gold); transform: rotate(-4deg) scale(.9); opacity: 0;
  -webkit-mask: url(../img/brush-swash.png) center / 100% 100% no-repeat; mask: url(../img/brush-swash.png) center / 100% 100% no-repeat;
  transition: opacity .5s .2s, transform .8s .2s cubic-bezier(.22, .9, .25, 1); }
.slide.is-front .slide-swash { opacity: .95; transform: rotate(-5deg) translate(-14px, 10px) scale(1); }
.slide figcaption { padding: 90px 30px 34px; }
/* la carte de devant part vers la droite ; en arrière, vers la gauche */
@keyframes card-out { 0% { transform: none; opacity: 1; } 55% { transform: translate(115%, 40px) rotate(16deg); opacity: 1; } 56% { opacity: 0; } 100% { transform: translate(60px, -40px) rotate(12deg) scale(.84); opacity: 0; } }
@keyframes card-out-back { 0% { transform: none; opacity: 1; } 55% { transform: translate(-115%, 40px) rotate(-16deg); opacity: 1; } 56% { opacity: 0; } 100% { transform: translate(60px, -40px) rotate(12deg) scale(.84); opacity: 0; } }

/* Légende sortie de la peinture, sous le paquet */
.slide figcaption { display: none; }
.show-caption { margin-top: 18px; min-height: 76px; display: grid; gap: 8px; justify-items: start; }
.show-caption a, .show-caption b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1; color: var(--white); text-decoration: none; }
.show-caption a:hover { color: var(--gold-2); }
.show-caption.is-in > * { animation: cap-in .6s cubic-bezier(.22, .9, .25, 1) both; }
.show-caption.is-in > *:nth-child(2) { animation-delay: .08s; }
@keyframes cap-in { from { opacity: 0; transform: translateY(12px); } }
.show-ctrl { margin-top: 18px; }
.slide-paint { background: none; }
/* Légende à hauteur fixe : le changement de photo ne fait plus bouger la page */
.show-caption { height: calc(2 * clamp(1.6rem, 2.4vw, 2.1rem) + 4px); min-height: 0; margin-top: 18px; overflow: hidden; align-content: start; }
.show-caption a, .show-caption b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* « Trouvez votre place » : section calée sur la hauteur de l'écran, cartes au centre pendant l'épinglage */
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .publics { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-solid) + 10px) 0 30px; }
  main:has(.hero) .publics-intro { padding-top: 0; }
  .publics .sec-head-row { margin-bottom: 0; }
  .publics .sec-head { margin-bottom: 0; gap: 10px; }
  .publics .sec-head h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
  .publics-track { padding-top: 26px; padding-bottom: 0; }
  .pub-card { min-height: min(540px, 58svh); }
}
.publics .sec-head-row { margin-bottom: 0; }
.publics-track { padding-top: 26px; }
/* survol des cartes : le texte reste lisible (blanc sur fond sombre) */
.pub-card:hover, .pub-card:focus-visible, .album:hover, .bg-navy a.agenda-item:hover, .bg-navy a.rung:hover, .cta-band a:not(.btn):hover { color: var(--white); }
.pub-card:hover h3 { color: var(--gold-2); }
main .publics .sec-head-row, main .publics .sec-head { margin-bottom: 0; }
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  main .publics .publics-intro { padding-top: 0; }
  .publics .pub-card { min-height: 0; height: min(520px, 56svh); }
}
.pub-card img { width: 130%; max-width: none; left: -15%; right: auto; }

/* Diaporama : masqué tant qu'il n'est pas prêt (pas de clignotement au chargement) */
.js .show-frame:not(.is-ready) .slide, .js .show-frame:not(.is-ready) ~ .show-caption { opacity: 0; }


/* Interclubs de l'accueil : visuel dynamique par équipe */
.team-visual { position: relative; aspect-ratio: 4 / 4.2; isolation: isolate; }
.team-big { position: absolute; left: -2%; top: -12%; z-index: -1; font-family: var(--font-display); font-weight: 900; font-size: clamp(9rem, 22vw, 19rem); line-height: .8; color: transparent; -webkit-text-stroke: 3px var(--gold); opacity: .9; pointer-events: none; }
.team-big.is-in { animation: big-in .7s cubic-bezier(.22, .9, .25, 1) both; }
@keyframes big-in { from { opacity: 0; transform: translateX(-30px) skewX(-8deg); } }
.team-photos { position: absolute; inset: 14% 0 12% 14%; border-radius: var(--radius-l); overflow: hidden; background: var(--navy); box-shadow: var(--shadow); transform: rotate(-2deg); }
.team-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 0 100%); transition: clip-path .8s cubic-bezier(.7, 0, .2, 1); }
.team-photos img.is-on { clip-path: inset(0 0 0 0); z-index: 2; }
.team-photos img.is-on { animation: team-zoom 5s ease-out both; }
.team-photos img.is-off { clip-path: inset(0 0 0 0); z-index: 1; }
@keyframes team-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.team-info { position: absolute; left: 4%; bottom: 0; z-index: 3; background: var(--navy); color: var(--white); border-radius: 16px; padding: 16px 20px; display: grid; gap: 2px; box-shadow: var(--shadow); min-width: 56%; border-left: 5px solid var(--gold); }
.team-info b { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.team-info span { color: rgba(255, 255, 255, .75); font-size: .92rem; }
.team-info a { color: var(--gold-2); font-weight: 700; font-size: .9rem; margin-top: 4px; }
#home-ladder .rung { width: 100%; font: inherit; text-align: left; cursor: pointer; border: 2px solid var(--line); transition: border-color .25s, background .25s, transform .3s; }
#home-ladder .rung:hover { transform: translateX(6px); border-color: var(--blue); }
#home-ladder .rung[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateX(10px); }
#home-ladder .rung[aria-selected="true"] small { color: rgba(255, 255, 255, .7); }
#home-ladder .rung[aria-selected="true"] .lvl { color: var(--gold); }
.rung-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.rung[aria-selected="true"] .rung-check { background: var(--gold); border-color: var(--gold); }
.rung[aria-selected="true"] .rung-check::after { content: ""; width: 9px; height: 5px; border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(-45deg) translate(1px, -1px); }
@media (max-width: 860px) { .team-visual { max-width: 520px; width: 100%; margin: 0 auto 30px; } }

.js .show-frame:not(.is-ready) ~ .show-ctrl, .js .show-frame:not(.is-ready) ~ .show-caption { opacity: 0; }
