/* ============================================
   ASP Fight Impact 93 — Feuille de style
   Sobre, lisible, accessible (WCAG AA)
   Mobile-first | Vanilla CSS
   Polices hébergées sur le site (assets/fonts) : Oswald (titres) + Inter (texte)
   — aucune requête vers Google Fonts (RGPD)
   ============================================ */

/* ── Polices (fichiers locaux, licence SIL OFL) ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('../assets/fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ── Variables ── */
:root {
  /* Fonds — contenu clair */
  --bg: #FAFAF7;            /* fond principal (blanc cassé) */
  --bg-alt: #F0F0EC;        /* sections alternées (gris très clair) */
  --bg-card: #FFFFFF;       /* cartes */
  --bg-card-alt: #FFFFFF;
  --bg-light: #FAFAF7;
  --bg-white: #FFFFFF;

  /* Textes sur fond clair */
  --title: #111111;         /* titres */
  --text: #1A1A1A;          /* texte principal */
  --text-2: #555555;        /* texte secondaire (jamais plus clair) */
  --text-dark: #1A1A1A;
  --text-dark-2: #555555;

  /* Zones sombres : en-tête, bannière d'accueil, pied de page */
  --dark: #111111;
  --on-dark: #F5F5F5;       /* texte sur fond sombre */
  --on-dark-2: #C9C9C9;     /* texte secondaire sur fond sombre */
  --on-dark-3: #8A8A8A;     /* mention discrète du pied de page (5,4:1 sur #111) */
  --border-dark: #333333;

  /* Accent (boutons, soulignements) */
  --accent: #D62828;
  --accent-hover: #B71F1F;

  /* Bordures */
  --border: #E4E4E0;
  --border-light: #E4E4E0;
  --border-strong: #8A8A84;  /* bordure des boutons de filtre */

  /* Couleurs des disciplines (bandes, pastilles — jamais pour du texte) */
  --c-initiation: #FF9800;        /* orange */
  --c-k1: #2196F3;                /* bleu */
  --c-mma: #D62828;               /* rouge */
  --c-striking-ados: #9E9E9E;     /* gris */
  --c-striking-adultes: #4CAF50;  /* vert */
  --c-lutte: #9E1B32;             /* bordeaux */

  /* Typographie */
  --font-titre: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-texte: 'Inter', 'Open Sans', Arial, sans-serif;

  /* Mise en page */
  --container: 1200px;
  --gutter: 1rem;
  --section-space: 56px;
  --header-h: 72px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  --shadow-light: 0 1px 6px rgba(0, 0, 0, 0.06);
  --focus: #111111;
  --transition: 0.2s ease;
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  font-family: var(--font-texte);
  font-size: 1.0625rem; /* 17px sur mobile */
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Focus clavier bien visible */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Texte réservé aux lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Lien d'évitement */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  padding: 0.75rem 1rem;
  background: var(--bg-white);
  color: var(--text-dark);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* ── Typographie ── */
h1, h2, h3, h4 {
  font-family: var(--font-titre);
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--title);
}

h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); }   /* 36 → 56 px */
h2 { font-size: clamp(1.75rem, 5vw, 2.25rem); }  /* 28 → 36 px */
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }   /* 20 → 24 px */
h4 { font-size: 1.125rem; }

p {
  max-width: 70ch;
}

strong {
  font-weight: 700;
}

/* ── Conteneurs et sections ── */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-space) 0;
  background: var(--bg);
  color: var(--text);
}

.section-alt {
  background: var(--bg-alt);
}

/* Section claire (Tarifs, Matériel, Boutique) */
.section-light {
  --focus: #1A1A1A;
  background: var(--bg-light);
  color: var(--text-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Soulignement rouge sous les titres de section */
.section-header h1,
.section-header h2 {
  display: inline-block;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 4px solid var(--accent);
}

.section-header p {
  margin: 0 auto;
  color: var(--text-2);
}

.section-light .section-header p {
  color: var(--text-dark-2);
}

/* Première section d'une page secondaire (sous l'en-tête fixe) */
.page-top {
  padding-top: calc(var(--header-h) + var(--section-space));
}

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-texte);
  font-size: 1.0625rem; /* 17 px */
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

/* Bouton principal : fond rouge, texte blanc */
.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Bouton secondaire sur fond sombre : contour blanc */
.btn-outline {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: #FFFFFF;
}

/* Bouton secondaire sur fond clair : contour noir */
.btn-outline-dark {
  background: transparent;
  border-color: var(--text-dark);
  color: var(--text-dark);
}

.btn-outline-dark:hover {
  background: var(--text-dark);
  color: #FFFFFF;
}

/* Bouton discret (lien souligné de taille normale) */
.btn-discret {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.5rem 0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: inherit;
}

.btn-discret:hover {
  text-decoration-thickness: 2px;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-group .btn {
  width: 100%;
}

/* ── En-tête fixe ── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  --focus: #FFFFFF;
  background: var(--dark);
  color: var(--on-dark);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
}

.logo img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
}

/* Bouton « S'inscrire » de l'en-tête */
.header-cta {
  padding: 0.6rem 1rem;
  white-space: nowrap;
}

/* Menu burger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 2px solid var(--border-dark);
  border-radius: var(--radius-sm);
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--on-dark);
  transition: transform var(--transition), opacity var(--transition);
}

/* 1er enfant = libellé pour lecteurs d'écran, puis les 3 barres */
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(9px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-9px) rotate(-45deg); }

/* Menu mobile : panneau latéral avec grandes zones cliquables */
.nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: min(100%, 360px);
  padding: 1rem 1.25rem 2rem;
  background: #1A1A1A;
  border-left: 1px solid var(--border-dark);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--transition), visibility var(--transition);
  z-index: 1001;
}

.nav.open {
  transform: translateX(0);
  visibility: visible;
}

.nav ul {
  display: flex;
  flex-direction: column;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0.5rem 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--on-dark);
  border-bottom: 1px solid var(--border-dark);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.nav-overlay {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

.nav-overlay[hidden] {
  display: none;
}

/* ── Accueil : plein écran, même fond blanc cassé que le reste de la page ── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh; /* hauteur visible réelle sur mobile */
  padding: var(--header-h) var(--gutter) 4rem; /* l'en-tête fixe est compté */
  background: var(--bg);
  text-align: center;
}

/* Scène : gorilles du logo en filigrane derrière le titre.
   Le titre se place dans la moitié basse de l'image. */
.hero-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100vw;                       /* mobile : toute la largeur */
  aspect-ratio: 1076 / 650;           /* proportions de l'image : jamais déformée */
  padding-bottom: 4%;
}

.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/images/gorille-filigrane.webp") center bottom / contain no-repeat;
  opacity: 0.32;
  pointer-events: none;
}

.hero-scene .hero-titre {
  position: relative;
  z-index: 1;                         /* texte au premier plan */
}

@media (min-width: 640px) {
  .hero-scene {
    /* tablette / ordinateur : ~80 % de l'écran, 1100 px max, sans dépasser la hauteur visible */
    width: min(80vw, 1100px, calc((100svh - var(--header-h) - 4rem) * 1.655));
    padding-bottom: 6%;
  }
}

/* Bloc titre : la petite phrase s'aligne sur le bord droit du grand titre */
.hero-titre {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 100%;
}

.hero h1 {
  font-size: clamp(4rem, 11vw, 9.5rem); /* 64 px sur mobile → 120 px et plus sur ordinateur */
  line-height: 1;
  letter-spacing: 0.01em;
  color: #111111;
  /* Une ligne par mot-groupe sur mobile ; le bloc fait la largeur du texte,
     pour que « Rejoins-nous ! » s'aligne sur le bord droit du titre */
  display: inline-grid;
  justify-items: center;
}

.hero h1 span {
  white-space: nowrap;
}

@media (min-width: 640px) {
  .hero h1 {
    grid-auto-flow: column;
    column-gap: 0.25em;
  }
}

.hero-tagline {
  margin-top: 0.75rem;
  font-size: 0.9375rem; /* 15 px */
  font-weight: 400;
  text-transform: none;
  color: #555555;
  /* léger halo couleur fond : reste lisible quand la phrase passe sur le filigrane */
  text-shadow: 0 0 4px #FAFAF7, 0 0 8px #FAFAF7;
}

/* Flèche vers le bas, la plus discrète possible */
.hero-fleche {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #B5B5B5;
}

.hero-fleche:hover {
  color: #8A8A84;
}

.inscription-note {
  font-size: 1rem;
  color: var(--text-2);
}

/* ── Cartes (base commune) ── */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-alt .card {
  background: var(--bg-card);
}

.section-light .card {
  background: var(--bg-white);
  border-color: var(--border-light);
  box-shadow: var(--shadow-light);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  padding: 1.5rem;
}

.card-body p {
  color: var(--text-2);
}

.section-light .card-body p {
  color: var(--text-dark-2);
}

/* Photo de carte (coachs, disciplines) — à ajouter seulement quand une photo existe :
   <div class="media media-square"><img src="..." alt="..." class="media-img" width="600" height="600"></div>
   La carte garde sa largeur ; sans photo, elle n'affiche aucun cadre vide. */
.media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  overflow: hidden;
}

.media-square {
  aspect-ratio: 1 / 1;
}

.media img,
.media .media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%; /* cadrage sur le visage */
}

/* Grilles de cartes : hauteur égale sur une même ligne */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* ── Disciplines ── */
.discipline-card {
  border-top: 4px solid var(--disc, var(--accent));
}

.disciplines-grid .card-body h3 {
  margin-bottom: 0.25rem;
}

/* ── ASP Fight Impact 93 (points forts) ── */
.feature .card-body {
  border-top: 4px solid var(--accent);
}

/* ── Couleurs de discipline : bande, pastille, étiquette ── */
.disc-initiation { --disc: var(--c-initiation); }
.disc-k1 { --disc: var(--c-k1); }
.disc-mma { --disc: var(--c-mma); }
.disc-striking-ados { --disc: var(--c-striking-ados); }
.disc-striking-adultes,
.disc-boxe { --disc: var(--c-striking-adultes); }
.disc-lutte { --disc: var(--c-lutte); }
/* Filtre « Striking / Boxe anglaise » : pastille deux couleurs (ados + adultes) */
.disc-striking { --disc: linear-gradient(90deg, var(--c-striking-ados) 50%, var(--c-striking-adultes) 50%); }

.pastille {
  display: inline-block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--disc, var(--text-2));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.etiquette {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

/* ── Coachs ── */
.coach-card {
  border-top: 6px solid var(--disc, var(--accent));
}

.coach-card h3 {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
}

.coach-card .etiquette {
  color: var(--text-2);
}

.etiquette .pastille {
  margin-top: 0.35em;
}

.coach-card[hidden] {
  display: none;
}

.coach-card .btn-discret {
  margin-top: 0.25rem; /* reste près du texte, même quand la carte voisine a une photo */
  color: var(--text);
}

/* Fenêtre vidéo (pop-up) */
.video-dialog {
  width: min(94vw, 460px);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text);
  overflow: hidden;
}

.video-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.video-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.video-dialog-header h2 {
  font-size: 1.25rem;
}

.video-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  font-size: 1.75rem;
  line-height: 1;
}

.video-close:hover {
  background: var(--bg-alt);
}

.video-frame {
  position: relative;
  height: min(70vh, 640px);
  background: #000;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-dialog-footer {
  padding: 0.25rem 1.25rem 0.5rem;
}

/* ── Planning ── */
.planning-lieu {
  font-weight: 600;
}

.filtres {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.filtre-groupe {
  border: 0;
}

.filtre-groupe legend {
  margin-bottom: 0.6rem;
  font-weight: 700;
  color: var(--text);
}

.filtre-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Gros boutons faciles à toucher */
.filtre-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 1.1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  background: #FFFFFF;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.filtre-btn:hover {
  border-color: var(--dark);
}

/* Filtre actif bien visible : noir, texte blanc */
.filtre-btn[aria-pressed="true"] {
  background: var(--dark);
  border-color: var(--dark);
  color: #FFFFFF;
}

.filtre-btn[aria-pressed="true"] .pastille {
  box-shadow: 0 0 0 2px #FFFFFF;
}

.filtres-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filtres-actions .btn {
  min-width: 160px;
}

/* Légende */
.planning-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.planning-legend h3 {
  width: 100%;
  font-size: 1rem;
}

.legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

.planning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.planning-day {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.planning-day[hidden],
.cours-item[hidden] {
  display: none;
}

.day-title {
  padding: 0.85rem 1.25rem;
  font-size: 1.375rem;
  background: #FFFFFF;
  border-bottom: 3px solid var(--accent);
}

.day-courses {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

/* Un cours : horaire (gros, gras), puis tranche d'âge, puis discipline */
.cours-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem 0.85rem 1.1rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-left: 6px solid var(--disc, var(--border));
  border-radius: var(--radius-sm);
}

.cours-horaire {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--title);
  font-variant-numeric: tabular-nums;
}

.cours-age {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.cours-discipline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.0625rem;
  color: var(--text-2);
}

.planning-vide {
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px dashed var(--text-2);
  border-radius: var(--radius);
}

.planning-vide[hidden] {
  display: none;
}

/* ── Témoignages ── */
.testimonial-text {
  font-size: 1.0625rem;
  color: var(--text) !important;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.testimonial-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  font-family: var(--font-titre);
  font-size: 1.25rem;
  font-weight: 600;
}

.testimonial-name {
  font-weight: 700;
}

.testimonial-detail {
  font-size: 1rem;
  color: var(--text-2);
}

/* ── Chiffres clés (section ASP Fight Impact 93) ── */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 2 × 2 sur mobile */
  gap: 1.5rem 1rem;
  margin: 0 auto 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column-reverse;          /* nombre au-dessus de son libellé */
  justify-content: flex-end;               /* nombres alignés en haut de chaque case */
  align-items: center;
  gap: 0.25rem;
}

.stat-nombre {
  font-family: var(--font-titre);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--title);
}

.stat-label {
  max-width: 22ch;
  font-size: 1rem;
  color: var(--text-2);
}

@media (min-width: 1024px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item h3 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.contact-item p {
  font-size: 1.0625rem;
}

.contact-item a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.contact-item a:hover {
  text-decoration-thickness: 2px;
}

.contact-item .aides {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.4rem;
}

.contact-item .aide {
  display: block;
  font-size: 1rem;
  color: var(--text-2);
}

.contact-titre {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-titre svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-link svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Carte Google Maps : encadré gris clair, la carte ne se charge qu'au clic */
.map-container.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 320px;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--bg-alt);   /* gris clair */
}

.map-titre {
  font-weight: 700;
}

.map-info {
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* Vraie carte Google Maps intégrée */
.map-container {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.map-container iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

/* ── Pied de page ── */
.site-footer {
  --focus: #FFFFFF;
  padding: 3rem 0 2rem;
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
  color: var(--on-dark-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand .logo img {
  width: 64px;
  height: 64px;
}

.footer-brand p {
  margin-bottom: 0.75rem;
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  color: var(--on-dark);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
}

.footer-links a,
.footer-brand a:not(.logo) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.footer-links a:hover,
.footer-brand a:not(.logo):hover {
  color: var(--on-dark);
  text-decoration-color: currentColor;
}

/* Mention discrète du directeur du club */
.footer-directeur {
  font-size: 0.9375rem; /* 15 px */
  font-weight: 400;
  color: #A0A0A0;
}

.footer-ancien {
  display: block;
  font-size: 0.75rem;   /* 12 px */
  color: #8A8A8A;
}

/* Lien Instagram : icône + texte alignés */
.footer-instagram {
  gap: 0.6rem;
}

.footer-instagram svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  font-size: 1rem;
  text-align: center;
}

/* Mention discrète, lisible mais sans attirer l'attention */
.footer-mention {
  max-width: none;
  margin-top: 0.75rem;
  font-size: 0.875rem; /* 14 px */
  font-weight: 400;
  color: var(--on-dark-3);
}

/* ── Bouton flottant WhatsApp (mobile uniquement) ── */
.fab-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(42, 42, 42, 0.88);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.fab-whatsapp svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.fab-whatsapp.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Tarifs ── */
.tarifs-grid .card-body {
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.tarif-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--text-dark);
  border-radius: 999px;
}

.tarif-card h3 {
  min-height: 1.6em;
  font-size: 1.25rem;
  color: var(--text-dark);
}

.tarif-card .tarif-prix {
  font-family: var(--font-titre);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text-dark);
}

.tarif-saison {
  font-weight: 600;
  color: var(--text-dark-2) !important;
}

.tarif-option {
  margin: 1.5rem auto 0;
  text-align: center;
  color: var(--text-dark-2);
}

.page-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  text-align: center;
}

/* ── Matériel / Boutique ── */
.materiel-container {
  max-width: calc(960px + 2 * var(--gutter));
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tab-btn {
  min-height: 48px;
  padding: 0.6rem 1.4rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  background: #FFFFFF;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
}

.tab-btn:hover {
  border-color: var(--dark);
}

.tab-btn[aria-selected="true"] {
  background: var(--dark);
  border-color: var(--dark);
  color: #FFFFFF;
}

.tab-panel[hidden] {
  display: none;
}

/* Catégories dépliables, l'une sous l'autre */
.materiel-cats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.materiel-cat {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 6px solid var(--disc, var(--accent));
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
}

.materiel-cat summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-titre);
  font-size: 1.375rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.materiel-cat summary::-webkit-details-marker {
  display: none;
}

.materiel-cat summary .precision {
  display: block;
  font-family: var(--font-texte);
  font-size: 1rem;
  font-weight: 500;
  text-transform: none;
  color: var(--text-dark-2);
}

.materiel-cat summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-texte);
  font-size: 1.75rem;
  line-height: 1;
}

.materiel-cat[open] summary::after {
  content: '\2212';
}

.materiel-cat-body {
  padding: 0 1.25rem 1.25rem;
}

.materiel-cat-body > p {
  margin-bottom: 0.5rem;
}

.materiel-liste li {
  padding: 0.3rem 0;
}

.materiel-liste li::before {
  content: '– ';
}

.lien-boutique {
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* Sous-titres de la boutique */
.boutique-titre {
  margin: 0 0 1.25rem;
}

.boutique-titre:not(:first-child) {
  margin-top: 3rem;
}

.packs-discipline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.75rem 0 0.75rem;
  font-size: 1.25rem;
}

.packs-discipline:first-of-type {
  margin-top: 0;
}

.packs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Encadrés mis en avant */
.pack-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 1.25rem;
  background: var(--bg-white);
  border: 2px solid var(--text-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
}

.pack-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.pack-nom {
  font-weight: 700;
}

.pack-prix {
  font-family: var(--font-titre);
  font-size: 1.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pack-card p {
  color: var(--text-dark-2);
}

.boutique-note {
  margin-bottom: 1.25rem;
  color: var(--text-dark-2);
}

.boutique-liste {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
}

.boutique-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.boutique-item:last-child {
  border-bottom: none;
}

.boutique-nom small {
  display: block;
  font-size: 1rem;
  color: var(--text-dark-2);
}

.boutique-prix {
  font-weight: 800;
  white-space: nowrap;
}

/* ── Pages Mentions légales / Confidentialité ── */
.legal {
  max-width: calc(820px + 2 * var(--gutter));
}

.legal h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(1.375rem, 3.5vw, 1.75rem);
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
  max-width: 70ch;
}

.legal a {
  overflow-wrap: anywhere;
}

/* ── Pages annexes (demande de coaching, merci) ── */
.coaching-hero {
  padding-top: calc(var(--header-h) + 2rem);
}

.form-essai {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-item input {
  width: 22px;
  height: 22px;
  min-height: 0;
  accent-color: var(--accent);
}

.merci-section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 2rem) 0 3rem;
  text-align: center;
}

.merci-content {
  max-width: 520px;
  margin: 0 auto;
}

.merci-content h1,
.merci-content p {
  margin: 0 auto 1.25rem;
}

/* ── Apparition au défilement (discrète) ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */

/* Tablette (≥ 640 px) */
@media (min-width: 640px) {
  .btn-group {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn-group .btn {
    width: auto;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .planning-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .packs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filtres {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem 2.5rem;
  }

  .filtres-actions {
    width: 100%;
  }
}

/* (≥ 768 px) — le bouton flottant est réservé au mobile */
@media (min-width: 768px) {
  .map-container.map-placeholder {
    min-height: 400px;
  }

  :root {
    --gutter: 2rem;
    --section-space: 96px;
  }

  body {
    font-size: 1.125rem; /* 18 px sur ordinateur */
  }

  .fab-whatsapp {
    display: none;
  }


  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .map-container iframe {
    height: 400px;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .page-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Ordinateur (≥ 1024 px) */
@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .planning-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Menu complet dans l'en-tête (≥ 1180 px) */
@media (min-width: 1180px) {
  .menu-toggle,
  .nav-overlay {
    display: none !important;
  }

  .nav {
    position: static;
    width: auto;
    padding: 0;
    background: none;
    border: 0;
    overflow: visible;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .nav a {
    min-height: 48px;
    padding: 0.5rem 0.7rem;
    font-size: 1rem;
    border-bottom: 0;
  }

  .header-cta {
    order: 3;
    margin-left: 0.5rem;
  }

  .logo {
    margin-right: auto;
  }
}

/* Réduire les animations si l'utilisateur l'a demandé */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Bouton vidéo des coachs : icône lecture + flèche */
.video-btn .video-icone {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  color: var(--accent, #c8102e);
}

.video-btn .video-fleche {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.video-btn:hover .video-fleche,
.video-btn:focus-visible .video-fleche {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .video-btn .video-fleche { transition: none; }
}

/* ── Photos des coachs : style affiche de combat ──
   Fond noir, halo et bande diagonale à la couleur de la discipline,
   grand mot en contour derrière, gorille en filigrane,
   photos en cadres blancs avec un bloc de couleur décalé. */
.media-photos {
  --c: var(--disc, var(--accent));
  aspect-ratio: 1 / 1;
  isolation: isolate;
  container-type: inline-size;
  background:
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55)),
    linear-gradient(118deg, transparent 0 46%, color-mix(in srgb, var(--c) 70%, transparent) 46% 58%, transparent 58% 61%, color-mix(in srgb, var(--c) 35%, transparent) 61% 63%, transparent 63%),
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--c) 45%, transparent), transparent 65%),
    #0b0b0b;
}

/* Gorille en filigrane */
.media-photos::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/images/gorille-filigrane.webp") center 95% / 120% auto no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

/* Grand mot en contour (discipline) */
.media-photos::after {
  content: attr(data-mot);
  position: absolute;
  left: 50%;
  top: 3%;
  z-index: -1;
  transform: translateX(-50%);
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: var(--mot-taille, 22cqw);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.media-photos img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 6px;
  box-shadow:
    10px 10px 0 var(--c),
    0 22px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

/* Une seule photo : portrait au centre */
.media-portrait {
  display: grid;
  place-items: center;
}

.media-portrait .media-img {
  width: 58%;
  height: auto;
  margin-top: 8%;
  object-position: 50% 30%;
  transform: rotate(-2deg);
}

.coach-card:hover .media-portrait .media-img {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 14px 14px 0 var(--c), 0 28px 48px rgba(0, 0, 0, 0.65);
}

/* Deux photos : grande à gauche, petite en bas à droite, qui se croisent au coin */
.media-duo img {
  position: absolute;
  height: auto;
}

.media-duo .duo-grande {
  top: 16%;
  left: 8%;
  width: 54%;
  object-position: 75% 25%;
  transform: rotate(-4deg);
  z-index: 1;
}

.media-duo .duo-petite {
  right: 9%;
  bottom: 9%;
  width: 40%;
  object-position: 50% 25%;
  transform: rotate(5deg);
  z-index: 2;
}

.coach-card:hover .media-duo .duo-grande {
  transform: rotate(-2deg) translate(-4px, -4px);
}

.coach-card:hover .media-duo .duo-petite {
  transform: rotate(2deg) translate(4px, 4px) scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .media-photos img { transition: none; }
}
