/* ==========================================================================
   Dojo Mervillois — feuille de style unique
   Mobile-first : la base s'applique à ~360 px, les @media sont TOUS en
   min-width et rangés du plus étroit au plus large (aucune règle « max-width »,
   pour qu'aucun palier n'écrase accidentellement le précédent).

   Sommaire :
   1.  Reset léger + utilitaires
   2.  Design tokens (:root)
   3.  @font-face (polices auto-hébergées)
   4.  Typographie de base + rythme des sections
   5.  Ceinture obi + bandeau de reprise
   6.  Header / navigation
   7.  Boutons & composants partagés
   8.  Hero
   9.  Bande de confiance (preuves)
   10. Le club (atouts)
   11. Cartes cours
   12. Horaires, filtre & tableaux
   13. Code moral
   14. Infos pratiques & tarifs
   15. FAQ
   16. Bande réseaux (suivez-nous)
   17. Contact
   18. Pied de page
   19. Barre CTA mobile collante
   20. Scroll reveal
   21. Paliers responsive (min-width : 560 → 640 → 900 → 1040)
   22. prefers-reduced-motion
   23. Page 404
   24. Impression
   ========================================================================== */

/* ---------- 1. Reset léger + utilitaires ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Compense l'en-tête collant : sans ça, les ancres arrivent sous le header. */
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  overflow-x: hidden;
}

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

ul[class],
ol[class] {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

table {
  border-collapse: collapse;
  width: 100%;
}

[hidden] {
  display: none !important;
}

.is-hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 4px;
  font-weight: 600;
  transition: top 0.15s ease;
}

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

/* Anneau de focus contextuel : --focus-ring vaut var(--ink) par défaut
   (fond clair) et repasse en var(--canvas-2) dans les zones sombres — un
   doré unique échouait à 3:1 sur au moins un des deux fonds. */
:focus-visible {
  outline: 3px solid var(--focus-ring, var(--ink));
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: 820px;
}

.mono {
  font-family: var(--font-mono);
}

.lien {
  color: var(--red-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  font-weight: 500;
}

.lien:hover,
.lien:focus-visible {
  color: var(--ink);
}

.fallback-message {
  display: inline-block;
  color: var(--red-dark);
  font-style: italic;
  font-size: 0.9rem;
}

/* ---------- 2. Design tokens ---------- */

:root {
  --ink: #151a2d;
  --ink-2: #1f2740;
  --ink-3: #28325a;
  --canvas: #efe9dc;
  --canvas-2: #f7f2e9;
  --canvas-3: #e4dbc8;
  --red: #d42a2a;
  --red-dark: #a81f1f;
  --gold: #f2b441;
  --muted: #565e73;
  --line: #dbd1bd;
  --line-soft: #e6ddcb;

  --b-white: #f4efe2;
  --b-yellow: #e6b62e;
  --b-orange: #d9772b;
  --b-green: #3f8552;
  --b-blue: #2e63a8;
  --b-brown: #6e4a2f;
  --b-black: #14161f;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-kanji: "Noto Serif JP", serif;

  --maxw: 1180px;
  --gutter: 20px;
  --section-pad: 3.75rem;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 24px 48px -28px rgba(21, 26, 45, 0.5);
  --shadow-soft: 0 2px 3px -2px rgba(21, 26, 45, 0.12);
  --header-height: 64px;
}

/* ---------- 3. @font-face ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/big-shoulders-display-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/big-shoulders-display-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/big-shoulders-display-latin-800.woff2") format("woff2");
}

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/big-shoulders-display-latin-900.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif JP";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/noto-serif-jp-judo-700.woff2") format("woff2");
  /* Sous-ensemble maison : ne contient que 柔 (U+67D4) et 道 (U+9053). */
  unicode-range: U+67D4, U+9053;
}

/* ---------- 4. Typographie de base + rythme des sections ---------- */

body {
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

p {
  max-width: 64ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* red-dark plutôt que red : sur fond clair, red seul tombe sous 4.5:1. */
  color: var(--red-dark);
  display: inline-block;
  margin-bottom: 0.85rem;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 9px;
  background: linear-gradient(
    90deg,
    var(--b-yellow) 0 25%,
    var(--b-green) 25% 50%,
    var(--b-blue) 50% 75%,
    var(--b-black) 75% 100%
  );
}

/* .sec-head partage la largeur de .wrap : lui donner un max-width le
   recentrerait (margin-inline:auto), désaligné du contenu en dessous.
   On borne donc le titre et le chapô, pas le bloc. */
.sec-head {
  margin-bottom: 2.25rem;
}

.sec-head h2 {
  max-width: 18ch;
}

.sec-head p {
  max-width: 62ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.03rem;
}

.section {
  padding-block: var(--section-pad);
}

.section--canvas2 {
  background: var(--canvas-2);
  border-block: 1px solid var(--line-soft);
}

/* ---------- 5. Ceinture obi + bandeau de reprise ---------- */

.obi {
  height: 6px;
  display: flex;
}

.obi--thin {
  height: 4px;
}

.obi i {
  flex: 1;
}

.obi i:nth-child(1) { background: var(--b-white); }
.obi i:nth-child(2) { background: var(--b-yellow); }
.obi i:nth-child(3) { background: var(--b-orange); }
.obi i:nth-child(4) { background: var(--b-green); }
.obi i:nth-child(5) { background: var(--b-blue); }
.obi i:nth-child(6) { background: var(--b-brown); }
.obi i:nth-child(7) { background: var(--b-black); }

.reprise-strip {
  --focus-ring: var(--canvas-2);
  background: var(--ink);
  color: var(--canvas-2);
  font-size: 0.82rem;
  text-align: center;
  padding: 0.55rem 1rem;
  letter-spacing: 0.01em;
  max-width: none;
}

.reprise-strip strong {
  color: var(--gold);
  font-weight: 600;
}

/* ---------- 6. Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  /* Au-dessus de la barre CTA mobile (z 70) : le voile de nav en plein écran
     est un enfant du header et doit pouvoir la recouvrir. */
  z-index: 80;
  background: rgba(239, 233, 220, 0.88);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(21, 26, 45, 0.8);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand__name span {
  color: var(--red-dark);
}

.site-footer .brand__name span {
  color: var(--gold);
}

.brand__logo {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-socials__link {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.15s ease;
}

.header-socials__link:hover,
.header-socials__link:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--canvas-2);
  transform: translateY(-1px);
}

.header-socials__link svg {
  width: 16px;
  height: 16px;
}

.burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
}

.burger__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.burger__bars i {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger[aria-expanded="true"] .burger__bars i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__bars i:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger__bars i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem var(--gutter) 3rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.site-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav__list a {
  display: block;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible,
.site-nav__list a[aria-current="true"] {
  color: var(--red-dark);
}

/* Le bouton contact de l'en-tête n'apparaît qu'en desktop : sur mobile, la
   barre CTA collante en bas de page joue déjà ce rôle. */
.site-header .site-header__cta {
  display: none;
}

/* ---------- 7. Boutons & composants partagés ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: 4px;
  transition: background-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -16px rgba(168, 31, 31, 0.9);
}

.btn--lg {
  padding: 15px 26px;
  font-size: 1rem;
}

.btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(247, 242, 233, 0.55);
  color: var(--canvas-2);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(247, 242, 233, 0.1);
  border-color: var(--canvas-2);
  box-shadow: none;
}

/* Le nœud de ceinture : petit losange doré, motif signature du site. */
.knot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.knot--gold {
  background: var(--gold);
}

.knot--lg {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--red);
}

.mini {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.mini:hover,
.mini:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.mini svg {
  width: 16px;
  height: 16px;
}

.mini--fb {
  /* Bleu Facebook assombri : #1877f2 avec du texte blanc tombe à 4.23:1,
     sous le seuil AA (4.5:1) pour ce texte de petite taille. */
  background: #1665d6;
}

.mini--ig {
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}

.social-label {
  font-size: 0.85rem;
  color: rgba(247, 242, 233, 0.72);
}

.sbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.sbtn:hover,
.sbtn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.sbtn svg {
  width: 20px;
  height: 20px;
}

.sbtn--fb {
  background: #1665d6;
}

.sbtn--ig {
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}

/* Dans la bande rouge « suivez-nous », les boutons passent en blanc avec
   icône/texte de la couleur de marque, pour rester lisibles sur le rouge. */
.actu .sbtn {
  background: #fff;
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.5);
}

.actu .sbtn--fb {
  /* #1877f2 en texte sur blanc tombe à 4.23:1 (sous 4.5:1) : assombri. */
  color: #1665d6;
}

.actu .sbtn--ig {
  color: #c1358a;
}

/* Bandeau d'appel (rappel « pas d'inscription en ligne ») */
.callout {
  margin-top: 1.5rem;
  max-width: none;
  background: var(--ink);
  color: rgba(247, 242, 233, 0.88);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  font-size: 0.97rem;
}

/* ---------- 8. Hero ---------- */

.hero {
  --focus-ring: var(--canvas-2);
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--canvas-2);
}

/* Trame tatami + halo : la texture remplace l'ancienne écharpe arc-en-ciel
   plein cadre, trop bruyante ; la ceinture ne reste qu'en accent diagonal. */
.hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(80% 60% at 78% 12%, rgba(46, 99, 168, 0.28), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(212, 42, 42, 0.22), transparent 70%),
    linear-gradient(rgba(247, 242, 233, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 242, 233, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
}

.hero__ribbon {
  position: absolute;
  top: -30%;
  right: -30%;
  width: 58%;
  height: 175%;
  display: flex;
  flex-direction: column;
  transform: rotate(20deg);
  opacity: 0.22;
  filter: saturate(0.85);
}

.hero__ribbon i {
  flex: 1;
}

.hero__ribbon i:nth-child(1) { background: var(--b-white); }
.hero__ribbon i:nth-child(2) { background: var(--b-yellow); }
.hero__ribbon i:nth-child(3) { background: var(--b-orange); }
.hero__ribbon i:nth-child(4) { background: var(--b-green); }
.hero__ribbon i:nth-child(5) { background: var(--b-blue); }
.hero__ribbon i:nth-child(6) { background: var(--b-brown); }
.hero__ribbon i:nth-child(7) { background: var(--b-black); }

.hero__kanji {
  position: absolute;
  right: -4%;
  bottom: -12%;
  font-family: var(--font-kanji);
  font-size: clamp(200px, 32vw, 440px);
  line-height: 0.8;
  color: rgba(247, 242, 233, 0.045);
  pointer-events: none;
  user-select: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2.25rem;
  align-items: center;
  padding-block: 2.75rem 3rem;
}

/* Sur-titre : disciplines + lieu, en mono doré (9.4:1 sur --ink). Il ne
   répète plus le nom du club — celui-ci est désormais dans le h1, en très
   gros ; le sur-titre dit ce que le titre ne dit pas. */
.hero__eyebrow {
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  max-width: none;
}

/* Le dégradé ceinture des eyebrows finit en noir : invisible sur fond ink.
   Sur le hero, la dernière bande passe donc en blanc de ceinture. */
.hero__eyebrow::after {
  width: 52px;
  background: linear-gradient(
    90deg,
    var(--b-yellow) 0 25%,
    var(--b-green) 25% 50%,
    var(--b-blue) 50% 75%,
    var(--b-white) 75% 100%
  );
}

/* Le titre est un bloc-marque en deux registres : l'invitation en petit,
   puis le nom du club en très gros. C'est l'élément signature de la page —
   quelqu'un qui arrive depuis Facebook doit savoir en une seconde où il est.
   Toute l'audace du design est dépensée ici ; le reste reste sobre. */
.hero__title {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.hero__title-kicker {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: clamp(1rem, 0.92rem + 0.5vw, 1.3rem);
  line-height: 1.25;
  color: rgba(247, 242, 233, 0.74);
}

/* « DOJO » sur une ligne, « MERVILLOIS » sur la suivante : le mot qui
   identifie vraiment le club occupe toute la largeur de la colonne. */
.hero__wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  /* Borne haute volontairement contenue : « MERVILLOIS » est un mot long et
     insécable, et la colonne du hero se resserre juste après le palier 900 px.
     À 6rem il reste large tout en gardant de la marge contre le débordement. */
  font-size: clamp(2.8rem, 1.1rem + 10vw, 6rem);
  line-height: 0.84;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--canvas-2);
}

.hero__wordmark-2 {
  display: block;
  color: var(--gold);
}

.hero__title-dot {
  color: var(--red);
}

.hero__lead {
  margin-top: 1.25rem;
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  color: rgba(247, 242, 233, 0.84);
  max-width: 46ch;
}

/* Sur mobile les deux boutons ne tiennent pas côte à côte : plutôt qu'un
   retour à la ligne bancal, on les empile en pleine largeur. */
.hero__cta {
  margin-top: 1.9rem;
  display: grid;
  gap: 12px;
}

/* L'offre d'essai est la promesse qui fait venir les gens : elle ne peut pas
   rester une pastille discrète. Ligne pleine, adossée à un filet doré, posée
   juste sous les boutons — on lit le bouton, puis pourquoi le cliquer. */
.offre {
  margin-top: 1.4rem;
  max-width: none;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  background: rgba(212, 42, 42, 0.16);
  border-left: 3px solid var(--gold);
}

.offre .knot {
  align-self: center;
}

.offre strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--canvas-2);
}

.offre__fine {
  font-size: 0.85rem;
  color: rgba(247, 242, 233, 0.68);
}

.hero__fine {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: rgba(247, 242, 233, 0.62);
  max-width: 46ch;
}

.hero__social {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__photo {
  position: relative;
  /* Même ratio que la photo (3/2) : object-fit ne rogne donc jamais les
     bords du groupe, quelle que soit la largeur d'écran. */
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(247, 242, 233, 0.12);
  box-shadow: 0 40px 60px -40px rgba(0, 0, 0, 0.9);
}

/* Voile indigo par-dessus la photo (légèrement en contre-jour) : elle se fond
   dans le fond ink et la légende comme le liseré restent lisibles. */
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(21, 26, 45, 0) 0%,
    rgba(21, 26, 45, 0.12) 45%,
    rgba(21, 26, 45, 0.75) 100%
  );
}

/* Liseré ceinture le long de la photo : rappel du motif sans le surcharger. */
.hero__photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--b-white) 0 14.28%,
    var(--b-yellow) 14.28% 28.56%,
    var(--b-orange) 28.56% 42.84%,
    var(--b-green) 42.84% 57.12%,
    var(--b-blue) 57.12% 71.4%,
    var(--b-brown) 71.4% 85.68%,
    var(--b-black) 85.68% 100%
  );
}

.hero__photo picture,
.hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Le groupe est légèrement au-dessus du milieu : on recadre autour de lui. */
  object-position: center 45%;
}

/* ---------- 9. Bande de confiance ---------- */

/* Fine bande claire entre le hero sombre et le contenu : quatre preuves en
   mono, chacune marquée d'une puce reprenant le spectre des ceintures.
   Fond --canvas + texte --ink = 14:1, très au-dessus du seuil AA. */
.preuves-bande {
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}

.preuves {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 1.75rem;
  padding-block: 0.95rem;
}

.preuve {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.preuve__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--red);
}

/* Spectre des ceintures, dans l'ordre de progression. Le liseré rend la
   ceinture blanche visible sur le fond écru. */
.preuve:nth-child(6n + 1) .preuve__dot {
  background: var(--b-white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.preuve:nth-child(6n + 2) .preuve__dot { background: var(--b-yellow); }
.preuve:nth-child(6n + 3) .preuve__dot { background: var(--b-green); }
.preuve:nth-child(6n + 4) .preuve__dot { background: var(--b-blue); }
.preuve:nth-child(6n + 5) .preuve__dot { background: var(--b-brown); }
.preuve:nth-child(6n + 6) .preuve__dot { background: var(--b-black); }

/* ---------- 10. Le club (atouts) ---------- */

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

.atout-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--canvas-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-soft);
}

.atout-item__belt {
  width: 1.6rem;
  height: 0.45rem;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 0.45rem;
  background: var(--red);
}

.atout-item:nth-child(7n + 1) .atout-item__belt { background: var(--b-white); box-shadow: inset 0 0 0 1px var(--line); }
.atout-item:nth-child(7n + 2) .atout-item__belt { background: var(--b-yellow); }
.atout-item:nth-child(7n + 3) .atout-item__belt { background: var(--b-orange); }
.atout-item:nth-child(7n + 4) .atout-item__belt { background: var(--b-green); }
.atout-item:nth-child(7n + 5) .atout-item__belt { background: var(--b-blue); }
.atout-item:nth-child(7n + 6) .atout-item__belt { background: var(--b-brown); }
.atout-item:nth-child(7n + 7) .atout-item__belt { background: var(--b-black); }

.atout-item__label {
  font-weight: 600;
  font-size: 0.98rem;
}

.club-mascotte {
  margin-top: 1.4rem;
  color: var(--muted);
  font-style: italic;
  font-size: 0.93rem;
}

/* Bandeau photo pleine largeur : il sort de .wrap, donc il est posé
   directement dans la <section>, sans conteneur. */
.club-banner {
  position: relative;
  margin-top: 2.75rem;
  /* Le bandeau vient mordre le padding bas de la section : il touche la
     section suivante, sans avoir à répéter la valeur à chaque palier. */
  margin-bottom: calc(var(--section-pad) * -1);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}

.club-banner picture,
.club-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

/* Même voile indigo que la photo du hero, en plus léger : cohérence de
   traitement d'une photo à l'autre. */
.club-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(21, 26, 45, 0.28) 0%,
    rgba(21, 26, 45, 0.06) 40%,
    rgba(21, 26, 45, 0.42) 100%
  );
}

.club-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--b-white) 0 14.28%,
    var(--b-yellow) 14.28% 28.56%,
    var(--b-orange) 28.56% 42.84%,
    var(--b-green) 42.84% 57.12%,
    var(--b-blue) 57.12% 71.4%,
    var(--b-brown) 71.4% 85.68%,
    var(--b-black) 85.68% 100%
  );
}

/* ---------- 11. Cartes cours ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--red);
}

.card:nth-child(3n + 1)::before { background: var(--b-orange); }
.card:nth-child(3n + 2)::before { background: var(--b-brown); }
.card:nth-child(3n + 3)::before { background: var(--b-green); }

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--canvas-3);
}

.card__pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--red-dark);
  background: rgba(212, 42, 42, 0.09);
  padding: 5px 11px;
  border-radius: 100px;
}

.card h3 {
  font-size: 1.75rem;
  margin: 14px 0 8px;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- 11 bis. Ton premier cours (parcours d'essai) ---------- */

/* Section sombre glissée entre deux sections claires : c'est le moment de
   conversion de la page, il doit trancher. Même fond que le hero, pour que
   l'invitation du haut et le mode d'emploi du milieu se répondent. */
.essai {
  --focus-ring: var(--canvas-2);
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--canvas-2);
  padding-block: var(--section-pad);
}

.essai h2 {
  color: var(--canvas-2);
}

.essai .sec-head p {
  color: rgba(247, 242, 233, 0.68);
}

.essai .eyebrow {
  color: var(--gold);
}

.essai .eyebrow::after {
  background: linear-gradient(90deg, var(--gold), rgba(242, 180, 65, 0.15));
}

.essai .lien {
  color: var(--gold);
}

.etapes {
  display: grid;
  gap: 14px;
  list-style: none;
}

.etape {
  position: relative;
  background: rgba(247, 242, 233, 0.045);
  border: 1px solid rgba(247, 242, 233, 0.1);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
}

/* Liseré de ceinture en haut de chaque étape, dans l'ordre de progression
   blanche → verte → marron : la couleur raconte la même chose que le numéro. */
.etape::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
}

.etape:nth-child(1)::before { background: var(--b-white); }
.etape:nth-child(2)::before { background: var(--b-green); }
.etape:nth-child(3)::before { background: var(--b-brown); }

/* Le numéro porte une vraie information — les trois étapes se suivent dans
   l'ordre — donc il a le droit d'être gros. */
.etape__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.etape h3 {
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--canvas-2);
  margin-bottom: 0.4rem;
}

.etape p {
  font-size: 0.95rem;
  color: rgba(247, 242, 233, 0.75);
  max-width: none;
}

.essai__cta {
  margin-top: 1.75rem;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 12. Horaires, filtre & tableaux ---------- */

/* Bandeau « aujourd'hui » : la réponse immédiate à « est-ce qu'il y a cours
   ce soir ? ». Filet rouge à gauche pour le distinguer de la grille sans
   ajouter un aplat sombre de plus dans une section claire. */
.aujourdhui {
  background: var(--canvas-2);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 14px 18px 16px;
  margin-bottom: 1.1rem;
}

.aujourdhui__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-dark);
}

.aujourdhui__liste {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.aujourdhui__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
}

.aujourdhui__heure {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
}

.aujourdhui__discipline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}

.aujourdhui__public {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.85rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.1rem;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--canvas-2);
  border-radius: 100px;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--canvas-2);
  border-color: var(--ink);
}

.filtre-resultats {
  min-height: 1.3em;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
  margin-bottom: 1.1rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas-2);
}

.sched th,
.sched td {
  text-align: left;
  vertical-align: top;
}

.sched thead th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sched tbody th {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}

.sched .cours-public {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.sched .cours-heure {
  font-family: var(--font-mono);
}

/* --- Mobile : le tableau devient une pile de fiches lisibles. Sans ça, les
   colonnes « Horaire » / « Années » se retrouvaient hors écran à 360 px. --- */

.sched thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.sched tbody,
.sched tbody tr,
.sched tbody th,
.sched tbody td {
  display: block;
}

.sched tbody tr {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: baseline;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.sched tbody tr:last-child {
  border-bottom: 0;
}

.sched--horaires tbody th {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--red-dark);
  margin-bottom: 4px;
}

.sched--horaires tbody td:first-of-type {
  font-weight: 600;
}

.sched--horaires tbody .cours-heure {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.sched--categories tbody th {
  font-size: 1.05rem;
}

.sched--categories tbody td {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--muted);
  text-align: right;
}

.sched tbody .fallback-message {
  display: block;
  grid-column: 1 / -1;
  padding: 4px 0;
}

.sched-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.9rem;
  font-style: italic;
}

/* ---------- 13. Code moral ---------- */

.code {
  --focus-ring: var(--canvas-2);
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--canvas-2);
  padding-block: var(--section-pad);
}

.code__kanji {
  position: absolute;
  left: -3%;
  top: -8%;
  font-family: var(--font-kanji);
  font-size: clamp(180px, 26vw, 380px);
  line-height: 0.8;
  color: rgba(247, 242, 233, 0.035);
  pointer-events: none;
  user-select: none;
}

.code .wrap {
  position: relative;
  z-index: 2;
}

.code h2 {
  color: var(--canvas-2);
}

.code .sec-head p {
  color: rgba(247, 242, 233, 0.68);
}

.code .eyebrow {
  color: var(--gold);
}

.code .eyebrow::after {
  background: linear-gradient(90deg, var(--gold), rgba(242, 180, 65, 0.15));
}

.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(247, 242, 233, 0.14);
  border: 1px solid rgba(247, 242, 233, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}

.val {
  background: var(--ink);
  padding: 20px 20px 22px;
  transition: background-color 0.2s ease;
}

.val:hover {
  background: var(--ink-2);
}

.val__dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-bottom: 11px;
  box-shadow: 0 0 0 1px rgba(247, 242, 233, 0.35);
}

.val__dot--white { background: var(--b-white); }
.val__dot--yellow { background: var(--b-yellow); }
.val__dot--orange { background: var(--b-orange); }
.val__dot--green { background: var(--b-green); }
.val__dot--blue { background: var(--b-blue); }
.val__dot--red { background: var(--red); }
.val__dot--brown { background: var(--b-brown); }
/* Noir sur fond ink : c'est le liseré qui le rend visible. */
.val__dot--black { background: var(--b-black); }

.val h3 {
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--canvas-2);
}

.val p {
  font-size: 0.85rem;
  color: rgba(247, 242, 233, 0.62);
  margin-top: 4px;
}

/* ---------- 14. Infos pratiques & tarifs ---------- */

.infos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Colonne flex : les tuiles ont des textes de longueurs différentes, mais leurs
   liens secondaires doivent s'aligner sur une même ligne de base en bas. */
.info-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--canvas-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-soft);
}

.info-tile .tile-link {
  margin-top: auto;
  padding-top: 14px;
}

.info-tile__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(212, 42, 42, 0.09);
  color: var(--red-dark);
  margin-bottom: 14px;
}

.info-tile__icon svg {
  width: 20px;
  height: 20px;
}

.info-tile h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
}

.info-tile p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Lien secondaire d'une tuile (itinéraire, ajout à l'agenda) : discret, mais
   assez grand pour être touché au doigt sur mobile. */
.tile-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 6px 0;
  min-height: 32px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--red-dark);
  border-bottom: 1px solid rgba(168, 31, 31, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tile-link:hover,
.tile-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.tile-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Dans le panneau contact, le lien suit l'adresse : il redevient un bloc à
   part entière plutôt qu'un élément de fin de ligne. */
.contact-info__row .tile-link {
  display: flex;
  width: fit-content;
  margin-top: 8px;
  font-weight: 600;
}

.tarifs {
  margin-top: 1.5rem;
  background: var(--canvas-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.tarifs__head .eyebrow {
  margin-bottom: 0.6rem;
}

.tarifs__head h3 {
  font-size: 1.4rem;
}

.tarifs-liste {
  margin-top: 1.1rem;
  display: grid;
  gap: 2px;
}

.tarifs-liste__ligne {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.tarifs-liste__ligne:last-child {
  border-bottom: 0;
}

.tarifs-liste__montant {
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
}

.tarifs-vide {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--muted);
  background: var(--canvas);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  max-width: none;
}

/* ---------- 15. FAQ ---------- */

.faq {
  max-width: 860px;
}

.faq details {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: var(--red);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 18px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

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

.faq summary::after {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: currentColor;
  color: var(--red);
  transition: transform 0.2s ease;
  /* Croix « + » dessinée en masque : pivote en « × » à l'ouverture. */
  -webkit-mask: linear-gradient(#000 0 0) center / 100% 2px no-repeat,
    linear-gradient(#000 0 0) center / 2px 100% no-repeat;
  mask: linear-gradient(#000 0 0) center / 100% 2px no-repeat,
    linear-gradient(#000 0 0) center / 2px 100% no-repeat;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- 16. Bande réseaux (suivez-nous) ---------- */

.actu {
  --focus-ring: var(--canvas-2);
  background: var(--red);
  color: #fff;
  padding-block: 2.75rem;
}

.actu__grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.actu .eyebrow {
  color: #fff;
}

.actu .eyebrow::after {
  background: rgba(255, 255, 255, 0.6);
}

.actu h2 {
  color: #fff;
}

.actu p {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.03rem;
  max-width: 52ch;
}

.actu__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- 17. Contact ---------- */

.contact-panel {
  display: grid;
  gap: 0;
  background: var(--canvas-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.contact-panel__main {
  padding: 26px 24px;
}

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

.contact-info__row {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.contact-info__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-info__row dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-dark);
  margin-bottom: 0.25rem;
}

.contact-info__row dd {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.02rem;
}

.contact-info__row dd a:hover,
.contact-info__row dd a:focus-visible {
  color: var(--red-dark);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-panel__socials {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-panel__socials .social-label {
  color: var(--muted);
}

.contact-panel__aside {
  --focus-ring: var(--canvas-2);
  background: var(--ink);
  color: rgba(247, 242, 233, 0.82);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.contact-panel__pitch {
  font-size: 0.98rem;
}

/* ---------- 18. Pied de page ---------- */

.site-footer {
  --focus-ring: var(--canvas-2);
  background: var(--ink);
  color: rgba(247, 242, 233, 0.62);
}

.site-footer .brand {
  color: var(--canvas-2);
}

.site-footer__inner {
  display: grid;
  gap: 2rem;
  padding-block: 2.75rem;
}

.site-footer__brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 46ch;
}

.site-footer__mentions,
.site-footer__sponsor,
.site-footer__copy {
  font-size: 0.85rem;
  max-width: none;
}

.site-footer__sponsor a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 242, 233, 0.5);
  margin-bottom: 0.9rem;
}

.site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--canvas-2);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer__right {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}

/* .header-socials est pensé pour le fond clair de l'en-tête : sur le fond
   sombre du footer, icône et liseré doivent repasser en clair. */
.site-footer__right .header-socials__link {
  color: var(--canvas-2);
  border-color: rgba(247, 242, 233, 0.3);
}

.site-footer__right .header-socials__link:hover,
.site-footer__right .header-socials__link:focus-visible {
  background: var(--canvas-2);
  border-color: var(--canvas-2);
  color: var(--ink);
}

.site-footer__copy {
  font-size: 0.78rem;
  color: rgba(247, 242, 233, 0.55);
}

/* ---------- 19. Barre CTA mobile collante ---------- */

.mobile-cta {
  --focus-ring: var(--canvas-2);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: rgba(21, 26, 45, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--red);
}

.mobile-cta__socials {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.mobile-cta__socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}

.mobile-cta__socials svg {
  width: 17px;
  height: 17px;
}

.mobile-cta__socials a[data-reseau="facebook"] {
  background: #1665d6;
}

.mobile-cta__socials a[data-reseau="instagram"] {
  background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888);
}

.mobile-cta__text {
  flex: 1;
  min-width: 0;
}

.mobile-cta__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.mobile-cta__text small {
  display: block;
  font-size: 0.7rem;
  color: rgba(247, 242, 233, 0.6);
}

/* Le pied de page réserve la hauteur de la barre pour ne rien masquer. */
.site-footer {
  padding-bottom: 5.5rem;
}

/* ---------- 20. Scroll reveal ---------- */

.reveal.reveal--init {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.reveal--init.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 21. Paliers responsive (min-width uniquement) ---------- */

@media (min-width: 560px) {
  :root {
    --gutter: 24px;
  }

  .hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .infos-grid {
    grid-template-columns: 1fr 1fr;
  }

  .values {
    grid-template-columns: 1fr 1fr;
  }

  /* Dès qu'il y a de la place, les cours du jour s'alignent en colonnes :
     un mercredi (4 créneaux) tient alors sur deux lignes au lieu de quatre. */
  .aujourdhui__liste {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 24px;
  }
}

@media (min-width: 640px) {
  :root {
    --section-pad: 5rem;
  }

  .sec-head {
    margin-bottom: 2.75rem;
  }

  /* Au-delà de 640 px, la grille tient : on revient à un vrai tableau. */
  .sched {
    min-width: 520px;
  }

  .sched thead {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
  }

  .sched tbody {
    display: table-row-group;
  }

  .sched tbody tr {
    display: table-row;
    padding: 0;
    border-bottom: 0;
  }

  .sched tbody th,
  .sched tbody td {
    display: table-cell;
  }

  .sched th,
  .sched td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--line-soft);
  }

  .sched tbody tr:last-child th,
  .sched tbody tr:last-child td {
    border-bottom: 0;
  }

  .sched tbody tr:hover {
    background: rgba(21, 26, 45, 0.025);
  }

  .sched--horaires tbody th {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-bottom: 0;
  }

  .sched--horaires tbody .cours-heure {
    font-size: 0.92rem;
    text-align: right;
    white-space: nowrap;
  }

  .sched--categories tbody th {
    font-size: 1.05rem;
  }

  .sched--categories tbody td {
    text-align: left;
    font-size: 0.92rem;
  }

  .preuves {
    gap: 0.55rem 2.25rem;
    padding-block: 1.1rem;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .atout-grid {
    grid-template-columns: 1fr 1fr;
  }

  .actu__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }

  .actu__btns {
    justify-content: flex-end;
  }

  .contact-panel {
    grid-template-columns: 1.35fr 0.65fr;
  }

  .contact-panel__main,
  .contact-panel__aside {
    padding: 32px 30px;
  }

  .site-footer {
    padding-bottom: 0;
  }

  .mobile-cta {
    display: none;
  }
}

@media (min-width: 900px) {
  .hero__grid {
    /* Colonnes quasi égales : la photo de groupe est large et peu haute,
       elle a besoin de largeur pour que les visages restent lisibles. */
    grid-template-columns: 1fr 1.02fr;
    gap: 2.5rem;
    padding-block: 4.25rem 4.5rem;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* Les trois étapes côte à côte : la séquence se lit d'un seul regard,
     de gauche à droite, comme on la vivra. */
  .etapes {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .club-banner {
    aspect-ratio: 2.6 / 1;
  }

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

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

  .tarifs {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: start;
    padding: 30px;
  }

  .tarifs-liste,
  .tarifs-vide {
    margin-top: 0;
  }

  .site-footer__inner {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    padding-block: 3.25rem;
  }
}

/* Palier dédié à la bascule nav mobile → desktop : plus large que celui du
   hero/cartes, pour laisser la place aux ancres + logo + icônes + CTA. */
@media (min-width: 1040px) {
  .burger {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    background: transparent;
    padding: 0;
    overflow: visible;
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: none;
    width: auto;
    gap: 0;
  }

  .site-nav__list {
    flex-direction: row;
    gap: 1.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    text-transform: none;
    font-family: var(--font-text);
  }

  .site-nav__list a {
    position: relative;
    padding: 0.35rem 0;
    border-bottom: 0;
    color: var(--muted);
    transition: color 0.15s ease;
  }

  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }

  .site-nav__list a:hover,
  .site-nav__list a:focus-visible,
  .site-nav__list a[aria-current="true"] {
    color: var(--ink);
  }

  .site-nav__list a:hover::after,
  .site-nav__list a[aria-current="true"]::after {
    transform: scaleX(1);
  }

  .site-header .site-header__cta {
    display: inline-flex;
  }

  .site-header__right {
    gap: 1.35rem;
  }
}

/* ---------- 22. prefers-reduced-motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

  .btn:hover,
  .card:hover,
  .mini:hover,
  .sbtn:hover,
  .header-socials__link:hover {
    transform: none;
  }
}

/* ---------- 23. Page 404 ---------- */

/* Même fond sombre que le hero : la page d'erreur reste une page du site,
   pas l'écran par défaut du serveur. */
.page-404 {
  --focus-ring: var(--canvas-2);
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 6px);
  display: grid;
  align-items: center;
  background: var(--ink);
  color: var(--canvas-2);
  padding-block: var(--section-pad);
}

/* Même traitement que le kanji de la section « code moral » : très grand,
   très pâle, ancré dans un coin. */
.page-404__kanji {
  position: absolute;
  right: -2%;
  bottom: -12%;
  font-family: var(--font-kanji);
  font-size: clamp(180px, 26vw, 380px);
  line-height: 0.8;
  color: rgba(247, 242, 233, 0.04);
  pointer-events: none;
  user-select: none;
}

.page-404__inner {
  position: relative;
}

.page-404__brand {
  color: var(--canvas-2);
  margin-bottom: 2.2rem;
}

.page-404__brand .brand__name span {
  color: var(--gold);
}

.page-404 .eyebrow {
  color: var(--gold);
}

.page-404 .eyebrow::after {
  background: linear-gradient(90deg, var(--gold), rgba(242, 180, 65, 0.15));
}

/* La règle globale « h1, h2, h3 » impose var(--ink) : sur ce fond sombre,
   la couleur doit être reprise explicitement, comme dans les autres sections
   sombres du site. */
.page-404__title {
  color: var(--canvas-2);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 9vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 12ch;
}

.page-404__lead {
  margin-top: 1.1rem;
  max-width: 46ch;
  color: rgba(247, 242, 233, 0.72);
  font-size: 1.02rem;
}

.page-404__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.page-404__nav {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(247, 242, 233, 0.14);
}

.page-404__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-404__nav .lien {
  color: var(--canvas-2);
  text-decoration-color: rgba(247, 242, 233, 0.4);
}

.page-404__nav .lien:hover,
.page-404__nav .lien:focus-visible {
  color: var(--gold);
}

/* ---------- 24. Impression ---------- */

/* En-tête réservé au papier (masqué à l'écran). */
.print-entete {
  display: none;
}

/* Ce qu'on imprime, c'est une antisèche à coller sur le frigo : les horaires,
   les catégories d'âge, les infos pratiques et le contact. Tout le reste —
   hero, argumentaire, code moral, FAQ, réseaux, boutons — est de la mise en
   scène qui n'a pas de sens sur une feuille A4, et coûterait huit pages. */
@media print {
  @page {
    margin: 14mm;
  }

  html {
    scroll-padding-top: 0;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
  }

  /* Sections entières écartées de l'impression. */
  .site-header,
  .hero,
  .preuves-bande,
  #club,
  #cours,
  #essai,
  #code-moral,
  #faq,
  .actu,
  .mobile-cta,
  .site-footer__nav,
  .site-footer__right,
  .contact-panel__aside,
  .obi,
  .reprise-strip,
  .skip-link,
  .filters,
  .filtre-resultats,
  .aujourdhui,
  .btn,
  .tile-link,
  .sec-head .eyebrow {
    display: none !important;
  }

  .print-entete {
    display: block;
    margin-bottom: 10mm;
    padding-bottom: 3mm;
    border-bottom: 2px solid #000;
  }

  .print-entete__nom {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 20pt;
    line-height: 1;
    text-transform: uppercase;
    color: #000;
  }

  .print-entete__ligne {
    margin-top: 2mm;
    font-size: 9pt;
    color: #333;
    max-width: none;
  }

  /* Le filtre d'âge n'existe plus sur papier : toutes les lignes reviennent. */
  .sched tbody tr.is-hidden {
    display: table-row !important;
  }

  .reveal,
  .reveal--init {
    opacity: 1 !important;
    transform: none !important;
  }

  .section {
    padding-block: 0 !important;
    margin-bottom: 8mm;
    background: #fff !important;
    color: #000 !important;
  }

  .section h2 {
    font-size: 16pt;
    color: #000 !important;
    margin-bottom: 2mm;
  }

  .sec-head p {
    font-size: 9.5pt;
    color: #333 !important;
    max-width: none;
  }

  .wrap {
    max-width: none;
    padding-inline: 0;
  }

  .table-wrap,
  .info-tile,
  .tarifs,
  .contact-panel,
  .callout {
    border: 1px solid #999 !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  /* Le défilement horizontal n'existe pas sur papier : la grille doit se
     déployer entièrement, et pouvoir se couper entre deux lignes. */
  .table-wrap {
    overflow: visible !important;
  }

  .info-tile,
  .tarifs,
  .contact-panel,
  .callout {
    break-inside: avoid;
  }

  .aujourdhui__discipline,
  .aujourdhui__heure,
  .contact-info__row dd,
  .info-tile h3,
  .tarifs__head h3 {
    color: #000 !important;
  }

  .sched thead {
    display: table-header-group; /* en-tête répété sur chaque page */
  }

  .sched tr,
  .info-tile {
    break-inside: avoid;
  }

  .infos-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-panel {
    display: block;
  }

  /* Les pastilles réseaux redeviennent du texte : sur papier, un aplat de
     couleur pleine ne sert qu'à vider la cartouche, et l'URL ajoutée derrière
     débordait de la pastille. */
  .mini,
  .sbtn,
  .header-socials__link {
    background: none !important;
    color: #000 !important;
    padding: 0 !important;
    margin-right: 10px;
    border-radius: 0 !important;
    font-weight: 600;
  }

  .mini svg,
  .sbtn svg {
    display: none;
  }

  /* Le pied de page garde ses mentions (fédération, sponsor) mais perd son
     fond sombre. */
  .site-footer {
    background: #fff !important;
    color: #000 !important;
    border-top: 1px solid #999;
    padding-block: 4mm !important;
    break-inside: avoid;
  }

  .site-footer a,
  .site-footer p,
  .site-footer .brand__name,
  .site-footer .brand__name span {
    color: #000 !important;
  }

  /* Les liens mailto:/tel: sont déjà écrits en clair sur la page ; inutile de
     répéter l'URL entre parenthèses. */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }

  a[href^="mailto:"]::after,
  a[href^="tel:"]::after,
  a[href^="#"]::after {
    content: "";
  }
}
