/* ==========================================================================
   OBC — Olympique Badminton Club — obc.nc
   Direction "Sport minimal" : blanc / gris très clair, noir, accent unique #004A89
   (et sa version éclaircie --blue-300, réservée aux fonds sombres).
   Une seule section sombre (Horaires, façon tableau d'affichage) + le pied de page.
   Aucune dépendance (polices Google Fonts chargées dans index.html).
   ========================================================================== */

:root {
  /* Palette */
  --blue: #004A89;        /* bleu du blason : SEUL accent */
  --blue-700: #003766;    /* survol des boutons bleus */
  --blue-300: #91BEE3;    /* même bleu, éclairci : uniquement sur fond sombre (9,5:1 sur --ink) */
  --blue-050: #EBF1F7;    /* teinte très claire (messages de succès) */
  --ink: #0E1116;         /* titres, noir sportif, fonds sombres */
  --ink-2: #161B22;       /* cartes sur fond sombre */
  --text: #22272E;        /* texte courant (anthracite) */
  --muted: #4F5864;       /* texte secondaire (7,2:1 sur blanc) */
  --on-dark: #C5CCD4;     /* texte secondaire sur fond sombre (11,7:1) */
  --on-dark-muted: #AAB1B8; /* texte discret sur fond sombre (8,7:1) */
  --line: #D6DCE3;        /* filets */
  --line-soft: #E6EAEE;
  --line-dark: rgba(255, 255, 255, .14);
  --field: #5A626C;       /* bordure des champs (6:1) */
  --bg: #FFFFFF;
  --bg-alt: #F3F5F7;      /* sections alternées */
  --danger: #A3161B;      /* réservé aux erreurs de formulaire */

  /* Typo */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Mise en page */
  --container: 1180px;
  --gutter: 16px;
  --header-h: 60px;
  --radius: 3px;
  color-scheme: light;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header-h: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

img, svg, iframe, picture { display: block; max-width: 100%; }
img { height: auto; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  text-transform: uppercase;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--blue); color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -200px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }
.skip-link:focus-visible { outline-color: var(--blue); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
  .btn:active { transform: translateY(1px); }
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 20px; height: 20px; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* Variante pour fond sombre : texte blanc, et texte SOMBRE au survol (jamais blanc sur blanc) */
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }

.btn-ghost {
  min-height: 44px;
  padding: 8px 4px;
  background: none;
  color: var(--blue);
  border: 0;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  font-size: 1.05rem;
}
.btn-ghost:hover { color: var(--ink); }

.btn-lg { min-height: 54px; padding: 13px 26px; font-size: 1.2rem; }
.btn-sm { min-height: 40px; padding: 7px 16px; font-size: 1rem; }

.btn[aria-disabled="true"] { opacity: .7; cursor: progress; }

@media (max-width: 400px) {
  .btn, .btn-lg { padding-inline: 16px; }
  .btn-lg { font-size: 1.1rem; }
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line-soft);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(10px); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: auto; height: 42px; }
.brand-text {
  display: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.brand-text small {
  display: block;
  margin-top: 3px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--blue);
}

/* Barre de navigation défilante (mobile) : fondus à gauche et à droite selon la position
   (classes .fade-l / .no-fade-r posées par js/app.js ; sans JS, fondu à droite seulement). */
.nav {
  --fade-l: 0px;
  --fade-r: 28px;
  position: relative;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.nav.fade-l { --fade-l: 28px; }
.nav.no-fade-r { --fade-r: 0px; }
.nav::-webkit-scrollbar { display: none; }
.nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0 24px 0 4px;
  list-style: none;
  white-space: nowrap;
}
.nav a {
  position: relative;
  display: block;
  padding: 10px 9px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav a:focus-visible { outline-offset: -3px; }
.nav a::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px; bottom: 4px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .nav a::after { transition: transform .2s ease; }
}
.nav a:hover::after,
.nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current] { color: var(--blue); }

/* Facebook toujours visible ; "S'inscrire" dès que la place le permet */
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-cta { display: none; }
@media (min-width: 560px) {
  .header-cta { display: inline-flex; }
  .header-actions { gap: 10px; }
}

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}
.icon-link:hover { border-color: var(--blue); color: var(--blue); }
.icon-link .icon { width: 20px; height: 20px; }

@media (min-width: 1024px) {
  .header-inner { gap: 24px; }
  .brand-text { display: block; }
  .nav { -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .nav ul { justify-content: flex-end; padding: 0; gap: 6px; }
  .nav a { padding-inline: 10px; }
  .nav a::after { left: 10px; right: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}

/* Terrain de badminton en perspective, en filigrane, avec la trajectoire d'un volant */
.hero-court {
  position: absolute;
  top: 0;
  right: -38%;
  height: 100%;
  width: auto;
  aspect-ratio: 16 / 10;
  max-width: none;
  color: var(--blue);
  opacity: .2;
  pointer-events: none;
}
.hero-court path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
.hero-court .c-net { stroke-width: 5; }
.hero-court .traj { stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 16; }
.hero-court .shuttle-skirt { stroke-width: 3; stroke-linejoin: round; }
.hero-court .shuttle-cork { fill: currentColor; stroke: none; }

@media (min-width: 640px) { .hero-court { right: -14%; } }
@media (min-width: 1024px) { .hero-court { right: -6%; opacity: .22; } }

.hero-inner {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: center;
  padding-block: 36px 28px;
}

.hero-crest { justify-self: center; width: min(190px, 50vw); }
.hero-crest img { width: 100%; filter: drop-shadow(0 18px 28px rgba(0, 40, 80, .14)); }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
}
.kicker::before { content: ""; width: 34px; height: 3px; background: currentColor; flex: none; }

.hero h1 {
  font-size: clamp(3.25rem, 15vw, 7.5rem);
  line-height: .86;
  letter-spacing: -.005em;
  margin: 0 0 .28em;
}
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--blue); }

.hero-lead {
  max-width: 32em;
  font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem);
  line-height: 1.5;
  color: var(--text);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-cta .btn { flex: 1 1 260px; }

/* Infos clés cliquables */
.facts {
  position: relative;
  display: grid;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.facts li { border-bottom: 1px solid var(--line); }
.fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "k more" "v more";
  align-items: center;
  column-gap: 16px;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
}
.fact:focus-visible { outline-offset: 2px; }
.fact-k {
  grid-area: k;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact-v {
  grid-area: v;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}
/* Mobile : flèche seule (le libellé reste lu par les lecteurs d'écran) */
.fact-more {
  grid-area: more;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  font-size: 0;
}
.fact-more .icon { width: 20px; height: 20px; }
.fact:hover .fact-v { color: var(--blue); }
.fact:hover .fact-more { border-color: var(--blue); background: var(--blue); color: #fff; }

@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts li { border-bottom: 0; }
  .facts li + li { border-left: 1px solid var(--line); }
  .fact {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "k" "v" "more";
    align-items: start;
    height: 100%;
    padding: 18px 20px 18px 0;
  }
  .facts li + li .fact { padding-left: 20px; }
  .fact-more {
    justify-self: start;
    align-self: end;
    gap: 8px;
    width: auto; height: auto;
    margin-top: 10px;
    border: 0;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .fact-more .icon { width: 18px; height: 18px; }
  .fact:hover .fact-more { background: none; color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
  .hero-cta .btn { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .fact-more .icon { transition: transform .15s ease; }
  .fact:hover .fact-more .icon { transform: translateX(4px); }
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr);
    gap: 48px;
    padding-block: 84px 56px;
  }
  .hero-crest { order: 2; width: min(330px, 100%); }
  .facts { margin-bottom: 64px; }
  .fact-v { font-size: 1.85rem; }
}

/* Animations décoratives seulement (le contenu est visible immédiatement, sans fondu) */
@media (prefers-reduced-motion: no-preference) {
  .hero-court .ln {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: obc-draw 1.4s cubic-bezier(.65, .05, .3, 1) forwards;
  }
  .hero-court .ln:nth-child(2) { animation-delay: .1s; }
  .hero-court .ln:nth-child(3) { animation-delay: .2s; }
  .hero-court .ln:nth-child(4) { animation-delay: .3s; }
  .hero-court .ln:nth-child(5) { animation-delay: .4s; }
  .hero-court .ln:nth-child(6) { animation-delay: .5s; }
  .hero-court .traj,
  .hero-court .shuttle { animation: obc-fade 1s .7s both; }
}
@keyframes obc-draw { to { stroke-dashoffset: 0; } }
@keyframes obc-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: 64px; }
.section-alt { background: var(--bg-alt); }
.section > .container { position: relative; z-index: 0; }

@media (min-width: 900px) { .section { padding-block: 104px; } }

/* Grand numéro détouré, en filigrane, DERRIÈRE le contenu (z-index négatif dans .container) */
.section-num {
  position: absolute;
  z-index: -1;
  top: -.7em;
  right: var(--gutter);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5.5rem, 16vw, 10rem);
  line-height: 1;
  color: rgba(0, 74, 137, .06);
  pointer-events: none;
  user-select: none;
}
@supports (-webkit-text-stroke: 1px black) {
  .section-num { color: transparent; -webkit-text-stroke: 1.5px rgba(0, 74, 137, .2); }
}

.section-head { position: relative; max-width: 46rem; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.5rem); line-height: .92; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow-num { color: var(--ink); }
.eyebrow-num::after {
  content: "";
  display: inline-block;
  width: 28px; height: 2px;
  margin-left: 12px;
  vertical-align: middle;
  background: var(--blue);
}

.lead { margin-top: 16px; font-size: 1.15rem; color: var(--muted); }

/* ---------- 01 · Le club ---------- */
.club-grid { display: grid; gap: 8px; }
.club-text { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.6; color: var(--text); max-width: 40em; }

@media (min-width: 900px) {
  .club-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: end; }
  .club-grid .section-head { margin-bottom: 0; }
}

.pillars {
  display: grid;
  gap: 0;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.pillar { padding: 20px 0; border-top: 2px solid var(--ink); }
.pillar-k {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}
.pillar-k::before {
  content: "";
  display: block;
  width: 22px; height: 4px;
  margin-bottom: 14px;
  background: var(--blue);
}
.pillar p { color: var(--muted); }

@media (min-width: 700px) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}

.fb-band {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-top: 48px;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
}
.fb-band h3 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); line-height: 1; margin-bottom: 8px; }
.fb-band p { color: var(--muted); }
@media (min-width: 800px) {
  .fb-band { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; padding: 32px 36px; }
}

/* ---------- 02 · Entraînements : LA section sombre (tableau d'affichage) ---------- */
.section-dark {
  background: var(--ink);
  color: var(--on-dark);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--blue-300); }
.section-dark .eyebrow-num { color: #fff; }
.section-dark .eyebrow-num::after { background: var(--blue-300); }
.section-dark a:not(.btn) { color: #fff; }
.section-dark :focus-visible { outline-color: #fff; }
.section-dark .section-num { color: rgba(255, 255, 255, .05); }
@supports (-webkit-text-stroke: 1px black) {
  .section-dark .section-num { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .16); }
}

.board {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid #fff;
}
.slot {
  position: relative;
  /* Mobile / tablette : jour et heure sur une ligne si la place suffit, sinon l'heure passe
     dessous (texte agrandi, petit écran, pastille "Aujourd'hui") ; jamais de chevauchement. */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--line-dark);
}
.slot-head { grid-area: head; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.slot-day {
  font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  color: #fff;
}
.slot-time {
  grid-area: time;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.6rem + 3vw, 3rem);
  font-weight: 800;
  line-height: .95;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.slot-sep { margin-inline: .08em; color: var(--blue-300); }
.slot-today {
  padding: 3px 8px 2px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.slot.is-today { box-shadow: inset 4px 0 0 var(--blue-300); padding-left: 16px; }

/* Barre du créneau sur l'échelle horaire (positions posées par js/app.js : --debut, --duree, --pas, --x) */
.slot-gauge { grid-area: gauge; flex: 1 0 100%; margin-top: 14px; }
.slot-track {
  position: relative;
  height: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 1px, transparent 1px var(--pas, 25%)),
    rgba(255, 255, 255, .08);
  border-right: 1px solid rgba(255, 255, 255, .28);
}
.slot-bar {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--debut, 0%);
  width: var(--duree, 100%);
  background: var(--blue-300);
  transform-origin: left center;
}
.slot-scale {
  position: relative;
  height: 1.4em;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--on-dark-muted);
  font-variant-numeric: tabular-nums;
}
.slot-scale span { position: absolute; top: 0; left: var(--x, 0%); transform: translateX(-50%); white-space: nowrap; }
.slot-scale span:first-child { transform: none; }
.slot-scale span:last-child { transform: translateX(-100%); }

/* Apparition des barres quand le tableau entre à l'écran */
@media (prefers-reduced-motion: no-preference) {
  .board.anim .slot-bar { transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
  .board.anim .slot:nth-child(2) .slot-bar { transition-delay: .12s; }
  .board.anim .slot:nth-child(3) .slot-bar { transition-delay: .24s; }
  .board.anim.is-in .slot-bar { transform: none; }
}

@media (min-width: 1024px) {
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slot {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "time" "gauge";
    gap: 14px;
    padding: 28px 32px 26px;
    border-bottom: 0;
  }
  .slot:first-child { padding-left: 0; }
  .slot + .slot { border-left: 1px solid var(--line-dark); }
  .slot.is-today { padding-left: 32px; }
  .slot:first-child.is-today { padding-left: 16px; }
  .slot-day { font-size: 1.5rem; letter-spacing: .14em; color: var(--on-dark); }
  .slot-time { font-size: clamp(3rem, 4.2vw, 4.25rem); }
  .slot-gauge { margin-top: 6px; }
}

.note { margin-top: 24px; color: var(--on-dark); }

.place {
  display: grid;
  margin-top: 48px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
}
.map { position: relative; aspect-ratio: 4 / 3; background: #1E242C; }
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.9) contrast(1.05);
}
@media (prefers-reduced-motion: no-preference) {
  .map iframe { transition: filter .3s ease; }
}
.place:hover .map iframe, .map:focus-within iframe { filter: none; }
@media (min-width: 640px) { .map { aspect-ratio: 16 / 9; } }

.place-body {
  display: grid;
  gap: 20px;
  align-content: space-between;
  padding: 24px 22px 26px;
}
.place-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.2;
}
.section-dark .place-label { color: var(--blue-300); }
.place-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}
.place-addr { margin: 8px 0 0; color: var(--on-dark); }
.place-body .btn { justify-self: start; }

@media (min-width: 960px) {
  .place { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .map { aspect-ratio: auto; min-height: 340px; }
  .place-body { padding: 34px 32px; }
  .place-name { font-size: 2.4rem; }
}

/* ---------- 03 · Inscription ---------- */
.prices { display: grid; gap: 16px; }
@media (min-width: 760px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }

.price {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--ink);
}
.price-main { border-top-color: var(--blue); }
.price-label {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .04em;
}
.price-amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 14px 0 4px;
  color: var(--ink);
}
.price-num {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 2.6rem + 3vw, 4.75rem);
  font-weight: 800;
  line-height: .9;
  font-variant-numeric: tabular-nums;
}
.price-main .price-num { color: var(--blue); }
.price-cur {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.price-note { margin: 0; color: var(--muted); }

.steps {
  display: grid;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  counter-increment: step;
  padding: 22px 0 26px 66px;
  border-top: 2px solid var(--ink);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--blue);
}
.step h3 { font-size: 1.65rem; line-height: 1.05; margin-bottom: 10px; }
.step p, .step li { color: var(--text); }
.step .btn { margin-top: 18px; }

.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 9px; height: 2px;
  background: var(--blue);
}

@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
  .step { padding: 70px 0 0; }
  .step::before { top: 16px; }
}

.docs { margin-top: 48px; }
.docs-title { font-size: 1.35rem; letter-spacing: .04em; margin-bottom: 14px; }
.doc-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .doc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }

.doc {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .doc { transition: border-color .15s ease, box-shadow .15s ease; }
}
.doc:hover { border-color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.doc-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 54px;
  border: 2px solid var(--blue);
  border-radius: 2px 12px 2px 2px;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--blue);
}
.doc-text { display: grid; gap: 2px; min-width: 0; }
.doc-title { font-weight: 600; line-height: 1.3; }
.doc-meta { font-size: .92rem; color: var(--muted); }
.doc .icon { margin-left: auto; color: var(--blue); }

.callout {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-left: 5px solid var(--ink);
  font-weight: 500;
  color: var(--ink);
}
.callout strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- 04 · Calendrier ---------- */
.cal-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 8px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
  color: var(--muted);
}
.legend li { display: inline-flex; align-items: center; gap: 8px; }

.dot {
  display: inline-block;
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot-tournoi   { background: var(--blue); }
.dot-evenement { background: #fff; border: 2.5px solid var(--blue); }
.dot-ferie     { background: var(--muted); }
.dot-fermeture { background: var(--ink); border-radius: 2px; }
.dot-travaux   {
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: repeating-linear-gradient(45deg, var(--ink) 0 2px, #fff 2px 4px);
}

.cal:focus { outline: none; }
.cal-msg {
  margin: 24px 0 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}
.cal-msg p { margin: 0; }
.cal-msg a { font-weight: 600; }
.cal-msg .btn { margin-top: 12px; }

.cal-past { margin-bottom: 8px; padding-bottom: 28px; border-bottom: 1px dashed var(--field); }
.cal-past-title {
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-month { margin-top: 32px; }

/* Sur grand écran : les mois en colonnes (vue d'ensemble de la saison) */
@media (min-width: 900px) {
  .cal, .cal-past > .cal-months {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0 48px;
    align-items: start;
  }
  .cal > .cal-msg { grid-column: 1 / -1; }
}
.cal-month-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
  font-size: 1.6rem;
  font-weight: 800;
}
.cal-month-title::after { content: ""; order: 2; flex: 1; height: 1px; background: var(--line); }
.cal-count {
  order: 3;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--muted);
  white-space: nowrap;
}

.cal-list { margin: 0; padding: 0; list-style: none; }

.cal-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cal-item:last-child { border-bottom: 0; }

.cal-date {
  display: grid;
  justify-items: center;
  padding: 8px 4px 9px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  line-height: 1;
  text-align: center;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.cal-dow { font-size: .82rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.cal-day { margin: 3px 0 2px; font-size: 2.3rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.cal-mon { font-size: .82rem; font-weight: 700; letter-spacing: .1em; color: var(--blue); }
.cal-to {
  margin-top: 7px;
  padding-top: 6px;
  width: 100%;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}

.cal-body { padding-top: 2px; min-width: 0; }
.cal-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag .dot { width: 10px; height: 10px; }
.badge-now,
.badge-next {
  padding: 2px 8px;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.badge-now { background: var(--blue); color: #fff; }
.badge-next { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.cal-title {
  margin: 4px 0 2px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}
.cal-when { margin: 0 0 2px; font-weight: 500; color: var(--text); }
.cal-detail { margin: 0; color: var(--muted); }

.cal-item.is-now .cal-date,
.cal-item.is-next .cal-date { border-color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
/* Dates passées : atténuées par la couleur (contraste >= 4,5:1 conservé), jamais par l'opacité */
.cal-item.is-past .cal-title,
.cal-item.is-past .cal-day,
.cal-item.is-past .cal-when { color: var(--muted); }
.cal-item.is-past .cal-date { border-style: dashed; }

.cal-tournoi .cal-date { border-top: 4px solid var(--blue); }
.cal-fermeture .cal-date { border-top: 4px solid var(--ink); }

/* ---------- 05 · Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
}
.contact-intro .btn { margin-top: 8px; }

.form-card {
  padding: 24px 20px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  box-shadow: 0 18px 40px -28px rgba(14, 17, 22, .35);
}
@media (min-width: 640px) { .form-card { padding: 34px 36px 38px; } }

.form-intro { margin-bottom: 20px; font-size: .95rem; color: var(--muted); }

.form-row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { margin-bottom: 20px; }
.field > label, .field-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--ink);
}
.req { color: var(--blue); }
.opt { font-weight: 400; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--field);
  border-radius: var(--radius);
}
@media (prefers-reduced-motion: no-preference) {
  input, select, textarea { transition: border-color .15s ease, box-shadow .15s ease; }
}
textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230E1116' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: inset 4px 0 0 var(--danger); }

.field-error {
  margin: 6px 0 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--danger);
}
.field-error::before { content: "Erreur\00a0: "; font-weight: 700; }

.check { display: flex; align-items: flex-start; gap: 12px; }
.check input {
  flex: none;
  width: 22px; height: 22px;
  margin: 2px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.check label { font-weight: 500; color: var(--text); cursor: pointer; }
.field-hint { margin: 6px 0 0; font-size: .92rem; color: var(--muted); }
.field-hint-top { margin: -2px 0 8px; }
.field-hint-check, .field-error-check { margin-left: 34px; }

/* Pot de miel : invisible pour les humains */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }

/* Zone de statut : toujours présente dans l'arbre d'accessibilité (jamais display:none),
   simplement repliée quand elle est vide. */
.form-status {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 5px solid var(--blue);
  background: var(--blue-050);
  color: var(--ink);
  font-weight: 500;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.form-status:empty { margin: 0; padding: 0; border: 0; background: none; }
.form-status.is-info { border-left-color: var(--field); background: var(--bg-alt); }
.form-status.is-err { border-left-color: var(--danger); background: #FBEEEE; }

/* Messages affichés après redirection de contact.php (index.html#contact?ok=1 ...) via :target,
   avec ou sans JavaScript : le navigateur fait défiler jusqu'au message et lui donne le focus.
   js/app.js les masque (attribut hidden) dès qu'un nouvel envoi part par fetch. */
.flash {
  display: none;
  margin: 0 0 22px;
  padding: 14px 16px;
  border-left: 5px solid var(--danger);
  background: #FBEEEE;
  color: var(--ink);
  font-weight: 500;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.flash:target { display: block; }
.flash:focus { outline: none; }
.flash-ok { border-left-color: var(--blue); background: var(--blue-050); }
.flash[hidden] { display: none; }

/* ---------- Pied de page ---------- */
.site-footer {
  padding: 56px 0 28px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: .98rem;
}
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }

.footer-inner { display: grid; gap: 32px; }
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: minmax(0, 1.4fr) auto; align-items: end; }
}
.footer-id { display: flex; align-items: flex-start; gap: 20px; }
/* Plaque claire sous le blason (le blason ne se pose jamais sur un fond sombre) */
.footer-crest {
  flex: none;
  display: grid;
  place-items: center;
  width: 84px;
  padding: 10px 10px 12px;
  background: #fff;
  border-radius: var(--radius);
}
.footer-crest img { width: 62px; }
.footer-text p { margin: 0 0 4px; }
.footer-mark {
  margin: 0 0 6px !important;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: .85;
  letter-spacing: .01em;
  color: #fff;
}
.footer-mark span { color: var(--blue-300); }
.footer-name {
  margin: 0 0 8px !important;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
@media (max-width: 420px) {
  .footer-id { flex-direction: column; gap: 16px; }
}

.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
}
.copy { margin: 10px 0 0; font-size: .92rem; }

.legal { flex: 1 1 100%; order: -1; }
.legal summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #fff;
}
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
.legal[open] summary::after { content: "\2212"; }
.legal-body { max-width: 50rem; padding: 8px 0 12px; }
.legal-body h3 {
  margin: 18px 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
}

/* ---------- Page 404 / confirmation sans JS ---------- */
.page-simple {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 40px var(--gutter);
  background: var(--bg-alt);
}
.page-simple-card {
  width: 100%;
  max-width: 40rem;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
}
@media (min-width: 640px) { .page-simple-card { padding: 44px 48px; } }
.page-simple-card img { width: 72px; margin-bottom: 20px; }
.page-simple-card h1 { font-size: clamp(2.6rem, 2rem + 3vw, 4rem); line-height: .92; margin-bottom: 14px; }
.page-simple-card .form-status { margin-bottom: 16px; }
.recap { margin: 20px 0; padding: 0; border-top: 1px solid var(--line); }
.recap div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.recap dt { font-weight: 600; color: var(--ink); }
.recap dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }

/* ---------- Impression ---------- */
@media print {
  .site-header, .hero-court, .section-num, .map, .form-card, .hero-cta, .fb-band .btn, .slot-gauge, .fact-more { display: none !important; }
  .section, .section-alt, .section-dark { padding-block: 24px; background: none; color: #000; }
  .section-dark h2, .section-dark h3, .slot-day, .slot-time, .place-name { color: #000; }
  .place { background: none; border: 0; }
  body { font-size: 11pt; }
}
