/* ==========================================================================
   Nova Onda : styles communs aux 7 pages publiques
   (accueil, pages disciplines, Horaires et lieux, Adhésion, Contact)
   --------------------------------------------------------------------------
   Sommaire (chercher le numéro, ex. « 15. », pour aller au bloc) :
      1. Généralités                     11. Actualités (flux Instagram)
      2. Boutons                         12. Avis Google
      3. En-tête et menu                 13. Contact (formulaire)
      4. Accueil (héros)                 14. Pied de page et barre mobile
      5. Cadre commun des sections       15. Pied de page : liens utiles, lieux
      6. Disciplines                     16. Techniques (adhérent connecté)
      7. Horaires (tableau du planning)  17. Pages disciplines
      8. Questions, valeurs, tarifs      18. Pages pratiques
      9. Le club                         19. Fiche « Son parcours »
     10. Équipe                          20. Adhésion : tarif selon la période
   Les couleurs du thème (var(--…), clair et sombre) sont dans base.css.
   ========================================================================== */

/* Couleurs fixes (identiques en mode clair et sombre) : ceintures et marques.
   Les couleurs du thème, elles, sont dans base.css. */
:root {
  --blanc: #fff;
  --ceinture-noire: #111;
  --ceinture-rouge: #c8221b; /* extrémité de la ceinture noire */
  --ceinture-marron: #6b3d1f;
  --facebook: #1877f2;
  --telephone: #25a244;
  --instagram: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}

/* ==========================================================================
   1. Généralités
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-size: 17px;
  line-height: 1.75;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0.01em;
  text-wrap: balance;
}

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

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 44px);
}

/* Petit sur-titre en capitales espacées */
.label {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   2. Boutons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.8em 1.5em;
  border: 1.5px solid var(--indigo);
  border-radius: 999px;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
}

/* Bouton plein (action principale) */
.btn-fill {
  background: var(--indigo);
  color: var(--on-indigo);
}

.btn-fill:hover {
  background: var(--ink);
  border-color: var(--ink);
}

/* Bouton contour (action secondaire) */
.btn-line {
  background: transparent;
  color: var(--indigo);
}

.btn-line:hover {
  background: var(--indigo);
  color: var(--on-indigo);
}

/* Petite flèche qui glisse au survol */
.arrow {
  transition: transform 0.25s;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   3. En-tête et menu
   ========================================================================== */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: 0 6px 18px -14px color-mix(in srgb, var(--ink) 45%, transparent);
  backdrop-filter: blur(10px);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
}

/* Logo + nom du club */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  flex: none;
  width: 60px;
  height: 60px;
}

.brand b {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--wood);
}

.brand em {
  display: block;
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--muted);
}

.brand .loc {
  color: var(--indigo);
}

.brand .loc i {
  font-style: normal;
}

@media (max-width: 520px) {
  .brand img {
    width: 50px;
    height: 50px;
  }

  .brand > span {
    min-width: 0;
  }

  .brand b {
    font-size: 1.12rem;
  }

  .brand small {
    line-height: 1.4;
    white-space: normal;
  }

  .brand em {
    margin-top: 1px;
    font-size: 0.66rem;
  }

  /* « Salles (33) » passe à la ligne sur petit écran */
  .brand .loc {
    display: block;
  }

  .brand .loc i {
    display: none;
  }
}

/* Téléphones de 360 px : lettres un peu moins espacées pour que « Southwest Jiu-Jitsu »
   tienne sur une ligne (en dessous, il se coupe entre les deux mots, jamais sur le trait d'union) */
@media (max-width: 380px) {
  .brand small {
    letter-spacing: 0.18em;
  }
}

/* Menu principal */
nav ul {
  display: flex;
  /* Resserré : « Disciplines » porte une flèche (sous-menu) */
  gap: clamp(12px, 1.4vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  position: relative;
  font-size: 0.94rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
}

/* Trait orange qui apparaît sous le lien survolé */
nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1.5px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

nav a:hover {
  color: var(--ink);
}

nav a:hover::after,
nav a.is-active::after {
  transform: scaleX(1);
}

/* Section en cours de lecture (repérée en JS pendant le défilement) */
nav a.is-active {
  color: var(--ink);
}

.head-cta {
  padding: 0.55em 1.2em;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Espace membre + cours d'essai + bouton du menu mobile, regroupés à droite */
.head-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

/* Accès à l'espace membre : icône ronde */
.head-membre {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  color: var(--indigo);
  transition: border-color 0.2s;
}

.head-membre:hover {
  border-color: var(--indigo);
}

/* Pastille orange : l'adhérent est connecté (ajoutée par home.js) */
.head-membre.is-connecte::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--sun);
}

/* Bouton « hamburger » (mobile) */
.burger {
  display: none;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

/* Tablette et mobile : le menu devient un panneau déroulant */
@media (max-width: 1180px) {
  nav {
    position: absolute;
    inset: 100% 0 auto 0;
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 2px clamp(16px, 4vw, 44px) 8px;
  }

  nav li a {
    display: block;
    padding: 9px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
  }

  nav a::after {
    display: none;
  }

  .burger {
    display: block;
  }

  .head-cta {
    display: none;
  }
}

/* ==========================================================================
   4. Accueil (héros)
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(28px, 4vw, 48px) 0;
  background: linear-gradient(170deg, var(--wash) 0%, var(--paper) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}

.hero-text {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

/* Nom du club en grand */
.club-name {
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.club-name span {
  display: block;
  margin-top: 10px;
  font-size: 0.54em;
  letter-spacing: 0.24em;
  color: var(--wood);
}

/* Petits téléphones : « Southwest Jiu-Jitsu » reste sur une ligne (jusqu'à 320 px) */
@media (max-width: 400px) {
  .club-name span {
    letter-spacing: 0.16em;
  }
}

/* Devise « A onda não para » encadrée de deux vagues.
   Hiérarchie de l'accueil : NOVA ONDA > SOUTHWEST JIU-JITSU > devise > traduction
   (la devise reste plus petite que le sous-titre : c'est une signature, pas un second titre) */
.motto-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 22px;
}

.motto-line .motto {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}

.motto-line .motto em {
  font-style: normal;
  color: var(--indigo);
}

.motto-line .wave-icon {
  width: 1.3em;
  height: auto;
  margin: 0 0.3em;
  vertical-align: -0.15em;
}

.motto-line .translation {
  margin-top: -4px;
  font-family: var(--display);
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  line-height: 1.3;
  font-style: italic;
  color: var(--sun-ink);
}

.hero .lead {
  max-width: 48ch;
  margin: 22px auto 0;
  font-size: 1.1rem;
  color: var(--muted);
}

/* Points forts (avec pastille orange) */
.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
}

.meta li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
}

.meta li.g-rate::before {
  display: none;
}

.meta .g-rate a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.meta .g-rate a:hover {
  color: var(--ink);
}

.meta .g-rate b {
  color: var(--ink);
}

.meta .g-stars {
  letter-spacing: 1px;
  color: var(--sun);
}

/* Pastille « 2 cours d'essai offerts » (ordinateur uniquement) */
.hero-cta {
  margin-top: 22px;
  text-align: center;
}

.hero-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1.5px solid var(--sun);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  transition:
    background 0.2s,
    color 0.2s;
}

.hero-cta a b {
  color: var(--sun-ink);
}

.hero-cta a:hover,
.hero-cta a:hover b {
  background: var(--sun);
  color: var(--blanc);
}

@media (max-width: 1180px) {
  .hero-cta {
    display: none;
  }
}

/* Photo de groupe : rectangle aux coins à peine arrondis (même forme que les carrousels des disciplines) */
.hero-photo {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--wood);
  border-radius: 10px;
  box-shadow: 0 22px 40px -18px color-mix(in srgb, var(--ink) 40%, transparent);
}

.hero-photo figcaption {
  margin-top: 6px;
  font-size: 0.74rem;
  text-align: right;
  color: var(--muted);
}

@media (max-width: 700px) {
  .hero-photo img {
    border-radius: 8px;
  }
}

/* Grand écran : texte à gauche, photo à droite, sur une largeur plus grande que le reste
   du site (l'accueil tient sans défiler). En dessous de 1100 px : texte au-dessus de la photo. */
@media (min-width: 1100px) {
  .hero-grid {
    max-width: 1440px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 3.5vw, 64px);
    padding-bottom: clamp(24px, 3vw, 44px);
  }

  .hero-text {
    max-width: none;
  }

  .club-name {
    font-size: clamp(2.5rem, 3vw, 3.6rem);
  }

  .club-name span {
    white-space: nowrap;
  }

  .hero-photo {
    max-width: none;
  }
}

/* Bande de vagues sous l'accueil */
.seig {
  height: 72px;
  margin-top: clamp(18px, 3vw, 32px);
  background: var(--seigaiha) repeat bottom/48px 24px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 85%);
  mask-image: linear-gradient(to bottom, transparent, black 85%);
}

/* ==========================================================================
   5. Cadre commun des sections
   Chaque section : un cartouche vertical à gauche (style estampe) + le contenu.
   Couleur de fond : .wood (sable), .pine (pinède), sinon océan.
   Sur chaque page, les sections suivent le cycle vert → sable → bleu, de haut en bas.
   Vert = .pine + tex-pines, sable = .wood + tex-sand + <svg class="dune">, bleu = tex-sea.
   Sur l'accueil, Actus (si Instagram répond) et Techniques (adhérents connectés) peuvent
   apparaître : home.js recolore alors les sections affichées pour garder le cycle.
   ========================================================================== */
section {
  padding-block: clamp(40px, 5.5vw, 72px);
}

/* Arrivée par un lien (« /#equipe ») : la section s'arrête juste sous l'en-tête collant
   (81 à 85 px de haut), son titre entièrement visible ; la section précédente reste cachée */
main section[id] {
  scroll-margin-top: 64px;
}

.sec {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(20px, 4vw, 48px);
}

.cartouche {
  position: sticky;
  top: 96px;
  align-self: start;
  justify-self: center;
  padding: 16px 8px;
  border: 1.5px solid var(--wood);
  background: var(--card);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--wood);
  writing-mode: vertical-rl;
}

.sec-body {
  min-width: 0;
}

.sec h1,
.sec h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
}

.intro {
  max-width: 56ch;
  margin-top: 14px;
  color: var(--muted);
}

/* Titres et introductions centrés (h1 : titre de la 1re section des pages pratiques) */
.sec-body > h1,
.sec-body > h2,
.sec-body > .intro {
  margin-inline: auto;
  text-align: center;
}

.sub-title {
  margin-top: 30px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  text-align: center;
}

@media (max-width: 760px) {
  .sec {
    grid-template-columns: 1fr;
  }

  .cartouche {
    position: static;
    justify-self: start;
    padding: 6px 14px;
    font-size: 0.9rem;
    writing-mode: horizontal-tb;
  }
}

/* Couleurs de fond */
/* --fond : couleur de fond de la section, reprise par les éléments qui doivent
   « trouer » un trait (ex. numéros des étapes « Comment nous rejoindre ») */
.wood {
  --fond: var(--wood-bg);
  background: var(--wood-bg);
}

.pine {
  --fond: var(--pine-bg);
  background: var(--pine-bg);
}

.contact {
  border-top: 1px solid var(--rule);
}

/* Décors de bas de section : pins, vagues, dune */
.tex {
  position: relative;
  isolation: isolate;
}

.tex::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Silhouettes de pins (sections vertes) */
.tex-pines {
  padding-bottom: clamp(120px, 12vw, 156px);
}

.tex-pines::before {
  top: auto;
  height: 120px;
  background: var(--pine);
  opacity: 0.16;
  -webkit-mask: url("../img/textures/pins.svg") repeat-x left bottom/480px 140px;
  mask: url("../img/textures/pins.svg") repeat-x left bottom/480px 140px;
}

@media (prefers-color-scheme: dark) {
  .tex-pines::before {
    opacity: 0.28;
  }
}

/* Bande de vagues (sections bleues) */
.tex-sea {
  padding-bottom: calc(clamp(40px, 5.5vw, 72px) + 52px);
}

.tex-sea::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 72px;
  background: var(--seigaiha) repeat bottom/48px 24px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 85%);
  mask-image: linear-gradient(to bottom, transparent, black 85%);
  pointer-events: none;
}

/* Dune de sable, clin d'œil à la dune du Pilat (sections sable) */
.tex-sand {
  padding-bottom: calc(clamp(40px, 5.5vw, 72px) + 64px);
}

.dune {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: clamp(60px, 9vw, 110px);
  pointer-events: none;
  --dune-far: color-mix(in srgb, var(--dune) 45%, var(--wood-bg));
  --dune-near: color-mix(in srgb, var(--dune) 80%, var(--wood-bg));
}

/* ==========================================================================
   6. Disciplines
   ========================================================================== */
.disc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  border-top: 2px solid var(--wood);
}

.disc article {
  min-width: 0;
  padding: 28px 28px 8px 0;
}

.disc article + article {
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}

/* Photo de la discipline. Mobile : format 3:2, celui des photos (affichées en entier).
   Ordinateur : même hauteur pour les trois (les colonnes n'ont pas exactement la même largeur).
   --cadre = partie de la photo à garder visible quand elle est recadrée (horizontal vertical). */
.disc-photo {
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 3 / 2;
  background: var(--rule);
}

@media (min-width: 861px) {
  .disc-photo {
    aspect-ratio: auto;
    height: clamp(150px, 15vw, 200px);
  }
}

.disc-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cadre, 50% 50%);
}

/* Ligne du haut : type (Gi / No-Gi…) et jours */
.disc .k {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.disc .k b {
  font-weight: 500;
  color: var(--indigo);
}

.disc .k span {
  font-weight: 700;
  color: var(--ink);
}

.disc h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  font-size: 1.75rem;
}

.disc .ico {
  flex: none;
  width: 60px;
  height: 60px;
  padding: 6px;
  border: 1.5px solid var(--wood);
  border-radius: 50%;
  background: var(--card);
  color: var(--indigo);
}

/* Même couleur que dans le planning : JJB bleu, Grappling vert, Boxe orange */
.disc .ico.nogi {
  color: var(--pine);
}

.disc .ico.boxe {
  color: var(--sun-ink);
}

.disc p {
  margin-top: 12px;
  font-size: 0.97rem;
  color: var(--muted);
}

/* Ordinateur : trois colonnes alignées (la hauteur des textes est égalisée en JS) */
@media (min-width: 861px) {
  .disc article {
    display: flex;
    flex-direction: column;
  }

  .disc article:last-child {
    padding-right: 0;
  }

  .disc h3 {
    min-height: 2.4em;
    line-height: 1.15;
  }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .disc h3 {
    gap: 10px;
    font-size: 1.45rem;
  }

  .disc .ico {
    width: 48px;
    height: 48px;
    padding: 4px;
  }
}

@media (max-width: 860px) {
  .disc {
    grid-template-columns: 1fr;
  }

  .disc article,
  .disc article + article {
    padding: 24px 0;
    border-left: 0;
  }

  .disc article + article {
    border-top: 1px solid var(--rule);
  }
}

/* ==========================================================================
   7. Horaires (tableau du planning)
   ========================================================================== */
.tides {
  margin-top: 28px;
  overflow-x: auto;
  border-top: 2px solid var(--wood);
}

.tides table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.tides th {
  padding: 12px 12px 12px 0;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
}

.tides td {
  padding: 12px 12px 12px 0;
  border-top: 1px solid var(--rule);
  vertical-align: top;
}

.tides .day {
  width: 22%;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
}

.tides time {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Icône de la discipline (mêmes dessins que la section Disciplines),
   trait plus épais pour rester lisible en petit */
.tides .disc-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.tides .disc-tag svg {
  --trait-48: 2.8;
  --trait-24: 1.6;
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--indigo);
}

.tides .disc-tag.boxe svg {
  color: var(--sun-ink);
}

.tides .disc-tag.nogi svg {
  color: var(--pine);
}

/* Lieu : lien vers Google Maps */
.tides .lieu {
  font-size: 0.92rem;
  color: var(--muted);
}

.tides .lieu a {
  display: inline-block;
  padding-top: 3px; /* zone cliquable d'au moins 24 px */
  border-bottom: 1px solid color-mix(in srgb, var(--indigo) 40%, transparent);
  text-decoration: none;
  color: inherit;
}

.tides .lieu a:hover {
  border-bottom-color: var(--indigo);
  color: var(--indigo);
}

.tides .lieu .pin {
  font-size: 0.85em;
  color: var(--indigo);
}

/* Créneau optionnel (samedi) */
.tides tr.opt .day,
.tides tr.opt time {
  color: var(--muted);
}

.tides .opt-note {
  display: block;
  margin-top: 3px;
  font-size: 0.85em;
}

/* Nom de salle court : sur mobile seulement (le nom complet reste sur ordinateur) */
.tides .lieu-court {
  display: none;
}

/* Jour courant, surligné automatiquement en JS */
.tides tr.today td {
  background: var(--wash);
}

.tides tr.today .day::after {
  content: "Aujourd'hui";
  display: block;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun-ink);
}

/* Ordinateur : colonnes fixes */
@media (min-width: 901px) {
  .tides table {
    table-layout: fixed;
  }

  .tides th,
  .tides td {
    padding-right: clamp(14px, 2vw, 28px);
    vertical-align: middle;
  }

  .tides th:first-child,
  .tides td:first-child {
    padding-left: 4px;
  }

  .tides th:nth-child(1),
  .tides td:nth-child(1) {
    width: 18%;
  }

  .tides th:nth-child(2),
  .tides td:nth-child(2) {
    width: 19%;
  }

  /* Discipline : icône + nom (passe à la ligne si la colonne est étroite) */
  .tides th:nth-child(3),
  .tides td:nth-child(3) {
    width: 28%;
  }

  .tides th:nth-child(4),
  .tides td:nth-child(4) {
    width: 35%;
  }

  .tides .day {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .tides time {
    font-size: 1rem;
  }

  .tides .lieu {
    line-height: 1.45;
  }
}

/* Mobile et tablette : chaque créneau devient une carte « agenda »
   - à gauche : jour, début du cours, fin du cours (centrés) ;
   - à droite : discipline puis salle (centrées) ;
   - un trait fin sépare les deux colonnes ; toutes les cartes ont la même hauteur.
   Le jour est affiché depuis l'attribut data-jour de la cellule horaire, pour que
   la colonne de gauche forme un seul bloc, centré verticalement. */
@media (max-width: 900px) {
  .tides {
    --col-gauche: 96px;
    --marge: 14px;
    overflow: visible;
    border-top: 0;
  }

  .tides table,
  .tides tbody {
    display: block;
    min-width: 0;
  }

  .tides thead {
    display: none;
  }

  .tides tr {
    display: grid;
    grid-template-columns: var(--col-gauche) 1fr;
    /* lignes vides en haut et en bas : le contenu des deux colonnes reste centré */
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: var(--marge);
    min-height: 118px;
    margin-top: 8px;
    padding: 10px var(--marge);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--wood);
    border-radius: 6px;
    background-color: var(--card);
    /* trait vertical entre les deux colonnes */
    background-image: linear-gradient(var(--rule), var(--rule));
    background-position: calc(
        var(--marge) + var(--col-gauche) + var(--marge) / 2
      )
      12px;
    background-size: 1px calc(100% - 24px);
    background-repeat: no-repeat;
  }

  .tides td,
  .tides tr.today td {
    padding: 0;
    border: 0;
    background: none;
    text-align: center;
  }

  /* Le jour est repris dans la cellule horaire (voir ::before plus bas) */
  .tides .day {
    display: none;
  }

  /* Colonne de gauche : jour, début, fin */
  .tides td:nth-child(2) {
    grid-row: 2 / 4;
    grid-column: 1;
    align-self: center;
  }

  .tides td:nth-child(2)::before {
    content: attr(data-jour);
    display: block;
    margin-bottom: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
  }

  .tides time {
    font-size: 1.25rem;
    line-height: 1.15;
  }

  .tides time .fin {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
  }

  /* Colonne de droite : discipline (au-dessus du centre), salle (en dessous) */
  .tides td:nth-child(3) {
    grid-row: 2;
    grid-column: 2;
    align-self: end;
    justify-self: center;
  }

  .tides td:nth-child(4) {
    grid-row: 3;
    grid-column: 2;
    align-self: start;
    justify-self: center;
  }

  .tides .lieu a {
    padding: 2px 0;
    line-height: 1.35;
  }

  /* Noms de salle courts : chaque carte garde la même hauteur */
  .tides .lieu-long {
    display: none;
  }

  .tides .lieu-court {
    display: inline;
  }

  /* Samedi : mention « Optionnel » en petit, dans la carte */
  .tides tr.opt td:nth-child(2)::before {
    color: var(--muted);
  }

  .tides .opt-note {
    margin-top: 2px;
    font-size: 0.8rem;
    line-height: 1.3;
    text-wrap: balance; /* deux lignes de longueur proche */
  }

  /* Jour courant : couleur, pastille « Aujourd'hui » et halo */
  .tides tr.today {
    border-color: var(--sun);
    box-shadow:
      0 0 0 3px color-mix(in srgb, var(--sun) 35%, transparent),
      0 0 18px color-mix(in srgb, var(--sun) 45%, transparent);
  }

  .tides tr.today .day::after {
    content: none;
  }

  .tides tr.today td:nth-child(2)::before,
  .tides tr.today time {
    color: var(--sun-ink);
  }

  .tides tr.today time::after {
    content: "Aujourd’hui";
    display: block;
    width: max-content;
    margin: 5px auto 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--sun-ink);
    font-family: var(--body);
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blanc);
  }

  /* Pulsation du halo, 3 fois, quand le planning arrive à l'écran (classe posée en JS) */
  .tides tr.today.pulse {
    animation: halo-jour 1s ease-in-out 3;
  }
}

@keyframes halo-jour {
  50% {
    box-shadow:
      0 0 0 5px color-mix(in srgb, var(--sun) 55%, transparent),
      0 0 30px color-mix(in srgb, var(--sun) 70%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tides tr.today.pulse {
    animation: none;
  }
}

/* ==========================================================================
   8a. Questions fréquentes : chaque question se déplie (balise details)
   ========================================================================== */
.faq {
  max-width: 820px;
  margin: 20px auto 0;
}

/* Mobile : les deux colonnes se suivent, sans double trait entre elles */
.faq-col:first-child details:last-child {
  border-bottom: 0;
}

/* Ordinateur : deux colonnes indépendantes, alignées en haut */
@media (min-width: 901px) {
  .faq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 0 48px;
    max-width: none;
  }

  .faq-col:first-child details:last-child {
    border-bottom: 1px solid var(--rule);
  }
}

.faq details {
  border-top: 1px solid var(--rule);
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  position: relative;
  padding: 14px 40px 14px 0;
  list-style: none;
  cursor: pointer;
}

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

/* + / – à droite de la question */
.faq summary::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 6px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--wood);
}

.faq details[open] summary::after {
  content: "–";
}

.faq summary:hover h3 {
  color: var(--indigo);
}

.faq h3 {
  font-size: 1.12rem;
}

.faq .reponse {
  padding-bottom: 18px;
  font-size: 0.97rem;
  color: var(--muted);
}

.faq .reponse ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.2em;
}

.faq .reponse b {
  color: var(--ink);
}

/* ==========================================================================
   8b. Nos valeurs
   Blocs dépliés sur ordinateur, en accordéon sur mobile (géré en JS).
   ========================================================================== */
.vision {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
  margin-top: 28px;
}

.vision details {
  min-width: 0;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}

.vision summary {
  list-style: none;
  cursor: default;
}

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

.vision h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.15rem;
}

/* Petite vague orange devant chaque valeur */
.vision h3::before {
  content: "〜";
  flex: none;
  font-family: var(--body);
  color: var(--sun);
}

.vision p {
  margin-top: 6px;
  color: var(--muted);
}

.vision p {
  font-size: 0.96rem;
}

@media (max-width: 1000px) {
  .vision {
    grid-template-columns: 1fr 1fr;
  }
}

/* Ordinateur et tablette : blocs centrés, vague au-dessus du titre */
@media (min-width: 641px) {
  .vision details {
    padding-top: 18px;
    border-top: 0;
    text-align: center;
  }

  .vision details {
    position: relative;
  }

  .vision h3 {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .vision h3::before {
    font-size: 1.1rem;
    line-height: 1;
  }

  .vision p {
    margin-inline: auto;
    text-wrap: balance;
  }

  .vision p {
    max-width: 34ch;
  }
}

/* Grand écran : 4 valeurs par rangée (grille de 8 demi-colonnes, chaque valeur en
   occupe 2), la rangée incomplète est centrée. Moins de rangées, section moins haute. */
@media (min-width: 1001px) {
  .vision {
    grid-template-columns: repeat(8, 1fr);
    gap: 0 28px;
  }

  .vision details {
    grid-column: span 2;
    padding-block: 14px;
  }

  /* 7 valeurs : la 5e démarre décalée d'une demi-colonne pour centrer les 3 dernières */
  .vision details:nth-child(5):nth-last-child(3) {
    grid-column: 2 / span 2;
  }

  .vision p {
    max-width: none;
  }
}

/* Titres mis en avant, textes plus légers : les titres seuls portent le message */
@media (min-width: 641px) {
  .vision h3 {
    font-size: 1.28rem;
    line-height: 1.2;
  }

  .vision h3::before {
    font-size: 1.45rem;
    font-weight: 700;
  }

  .vision p {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.6;
  }
}

/* 4 valeurs par rangée sur écran moyen : un titre peut passer sur 2 lignes (« Respect
   et gratitude »). Tous les titres réservent alors 2 lignes, calés en bas, pour que les
   textes d'une même rangée partent au même niveau. Au-delà de 1250 px, tout tient sur une ligne. */
@media (min-width: 1001px) and (max-width: 1250px) {
  .vision h3 {
    justify-content: flex-end;
    min-height: calc(1.45rem + 2px + 2 * 1.2 * 1.28rem);
  }
}

@media (min-width: 641px) and (max-width: 1000px) {
  .vision details:last-child:nth-child(2n + 1) {
    grid-column: 1/-1;
    justify-self: center;
    max-width: 50%;
  }
}

/* Mobile : accordéon avec + / – */
@media (max-width: 640px) {
  .vision {
    grid-template-columns: 1fr;
  }

  /* La marge est portée par le titre : toute la ligne est cliquable */
  .vision details {
    padding: 0;
  }

  .vision details[open] {
    padding-bottom: 16px;
  }

  .vision summary {
    position: relative;
    padding: 16px 28px 16px 0;
    cursor: pointer;
  }

  .vision summary::after {
    content: "+";
    position: absolute;
    top: 16px;
    right: 0;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--wood);
  }

  .vision details[open] summary::after {
    content: "–";
  }
}

/* ==========================================================================
   8c. Tarifs
   Chaque carte porte une couleur (--cb) : bandeau, titre, puces, bouton.
   ========================================================================== */
.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 30px auto 0;
}

.price {
  --cb: var(--indigo);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px 26px 26px;
  border: 1.5px solid color-mix(in srgb, var(--cb) 45%, transparent);
  border-top: 6px solid var(--cb);
  background: var(--card);
  color: var(--ink);
  text-align: center;
  container-type: inline-size;
}

.price--pine {
  --cb: var(--pine);
}

.price--wood {
  --cb: var(--wood);
}

.price h3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.3em; /* titres sur 2 lignes au plus : les prix restent alignés */
  font-size: clamp(1.05rem, 9cqi, 1.4rem);
  line-height: 1.15;
  color: var(--cb);
}

.amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 14cqi, 2.3rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}

.amount small {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

/* Tarif réduit en cours de saison : « à partir de janvier » sur sa propre ligne, sous le prix */
.amount {
  flex-wrap: wrap;
}

.amount .tarif-depuis {
  flex-basis: 100%;
  margin-top: -4px;
  font-size: 0.85rem;
  text-align: center;
  color: var(--sun-ink);
}

.price .details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price ul {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  line-height: 1.5;
}

.price li::before {
  content: "〜 ";
  color: var(--cb);
}

/* Condition particulière (formule Judokas) */
.price .cond {
  padding-top: 10px;
  border-top: 1px dashed color-mix(in srgb, var(--cb) 50%, transparent);
  font-size: 0.86rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--cb);
}

.price .btn {
  align-self: stretch;
  justify-content: center;
  margin-top: auto;
  padding: 0.65em 1em;
  border-color: var(--cb);
  background: var(--cb);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--card);
}

.price .btn:hover {
  filter: brightness(1.08);
}

/* « Comment nous rejoindre » : 3 étapes numérotées */
.join-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 22px auto 0;
  padding: 0;
  list-style: none;
}

.join-steps li {
  position: relative;
  padding: 26px 22px 22px;
  border-top: 2px solid var(--wood);
  text-align: center;
}

.join-num {
  position: absolute;
  top: -17px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--wood);
  border-radius: 50%;
  background: var(--fond, var(--paper));
  font-family: var(--display);
  font-weight: 800;
  color: var(--wood);
  transform: translateX(-50%);
}

.join-steps h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
}

.join-steps p {
  max-width: 32ch;
  margin: 6px auto 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.join-steps b {
  color: var(--sun-ink);
}

@media (max-width: 1180px) {
  .prices {
    gap: 14px;
  }

  .price {
    padding: 22px 20px 24px;
  }
}

@media (max-width: 760px) {
  .prices {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Comment nous rejoindre : frise verticale (pastille au niveau du titre, trait qui relie
     les pastilles, séparation entre les étapes de la même couleur que la frise) */
  .join-steps {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 520px;
  }

  .join-steps li {
    padding: 16px 0 16px 50px;
    border-top: 0;
    text-align: left;
  }

  .join-steps li:first-child {
    padding-top: 0;
  }

  .join-steps li:last-child {
    padding-bottom: 0;
  }

  /* trait vertical : un segment par étape, du centre de la 1re pastille à celui de la dernière */
  .join-steps li::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 16px;
    width: 2px;
    background: var(--wood);
    opacity: 0.5;
  }

  .join-steps li:first-child::before {
    top: 16px;
  }

  .join-steps li:last-child::before {
    bottom: auto;
    height: 32px;
  }

  .join-steps li + li::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 50px;
    height: 1px;
    background: var(--wood);
    opacity: 0.5;
  }

  .join-num {
    top: 0;
    left: 0;
    z-index: 1;
    transform: none;
  }

  .join-steps li + li .join-num {
    top: 16px;
  }

  .join-steps h4 {
    font-size: 1.15rem;
    line-height: 32px;
  }

  .join-steps p {
    max-width: none;
    margin: 2px 0 0;
  }

  /* Mobile : carte compacte, titre à gauche et prix à droite sur la même ligne,
     puis un avantage par ligne et le bouton sur toute la largeur */
  .price {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 12px;
    padding: 16px 18px 18px;
    text-align: left;
  }

  .price h3 {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    min-height: 0;
    font-size: 1.15rem;
    line-height: 1.2;
  }

  .amount {
    grid-column: 2;
    grid-row: 1;
    gap: 4px;
    margin: 0;
    font-size: 1.75rem;
  }

  .amount small {
    font-size: 0.78rem;
  }

  /* Prix en bloc (et non en ligne flexible) : la colonne garde la largeur du plus long
     des deux (prix ou « à partir de janvier »), le titre garde sa place à gauche */
  .amount:has(.tarif-depuis:not([hidden])) {
    display: block;
    text-align: right;
  }

  .amount .tarif-depuis {
    display: block;
    margin-top: -2px;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .amount .tarif-depuis[hidden] {
    display: none;
  }

  .price .details {
    grid-column: 1 / -1;
  }

  .price ul {
    justify-items: start;
    font-size: 0.88rem;
  }

  .price .cond {
    padding-top: 8px;
    font-size: 0.82rem;
  }

  .price .btn {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 0.55em 1em;
  }
}

/* ==========================================================================
   9. Le club
   ========================================================================== */

/* Écusson d'origine + signification du nom */
.origin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: 720px;
  margin: 14px auto 0;
}

.origin-badge {
  flex: none;
  margin: 0;
  text-align: center;
}

.origin-badge img {
  display: block;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  filter: drop-shadow(0 6px 14px rgb(0 0 0 / 18%));
  transform: rotate(-6deg);
  transition: transform 0.4s;
}

.origin-badge:hover img {
  transform: rotate(0);
}

.name-note {
  max-width: 62ch;
  margin: 0;
  text-align: left;
  text-wrap: balance;
}

.name-note i {
  font-family: var(--display);
  font-style: normal;
  font-weight: 700;
  color: var(--indigo);
}

@media (max-width: 640px) {
  .origin {
    flex-direction: column;
    gap: 14px;
  }

  .origin-badge img {
    width: 112px;
    height: 112px;
  }

  .name-note {
    text-align: center;
  }
}

/* Texte de présentation */
.club {
  max-width: 760px;
  margin: 36px auto 0;
}

.club-text {
  min-width: 0;
  text-align: center;
}

.club-text .quote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.45;
}

.club-text .quote span {
  color: var(--indigo);
}

.club-text p + p {
  margin-top: 18px;
  color: var(--muted);
}

/* Affiliations (CFJJB, ASPTT, IBJJF) : logos cliquables vers les sites officiels, sous la photo de
   groupe de l'accueil et sous le carrousel des pages JJB et Grappling. Les logos ASPTT et IBJJF
   ont une version à texte clair pour le mode sombre. */
.hero-droite {
  min-width: 0;
}

.hero-droite .affiliations {
  margin-top: 22px;
  text-align: center;
}

/* Logos seuls (intitulé lu seulement par les lecteurs d'écran), bien espacés */
.hero-droite .logos-affil {
  gap: 10px 48px;
}

/* Point de couleur entre deux logos (même orange que les puces du haut de l'accueil),
   centré dans l'écart : la moitié de l'écart horizontal à gauche du logo */
.hero-droite .logos-affil li {
  position: relative;
  --ecart: 48px;
}

.hero-droite .logos-affil li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--ecart) / -2 - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sun);
  transform: translateY(-50%);
}

@media (max-width: 480px) {
  .hero-droite .logos-affil {
    gap: 8px 16px;
  }

  .hero-droite .logos-affil li {
    --ecart: 16px;
  }

  .hero-droite .logos-affil li + li::before {
    width: 4px;
    height: 4px;
    left: calc(var(--ecart) / -2 - 2px);
  }
}

/* Petit téléphone (360 px) : logos un peu réduits pour que les trois tiennent sur une ligne */
@media (max-width: 400px) {
  .hero-droite .logos-affil {
    gap: 8px 12px;
  }

  .hero-droite .logos-affil li {
    --ecart: 12px;
  }

  .hero-droite .logos-affil img {
    height: 25px;
  }
}

.logos-affil {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logos-affil a {
  display: flex;
  align-items: center;
  min-height: 32px;
  border-radius: 6px;
  transition: opacity 0.2s, transform 0.2s;
}

.logos-affil a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.logos-affil img {
  display: block;
  width: auto;
  height: 28px;
}

/* Petit téléphone : les trois logos tiennent sur une ligne */
@media (max-width: 480px) {
  .logos-affil {
    gap: 8px 14px;
  }
}

/* Ordinateur : présentation sur deux colonnes, séparées par un trait fin
   (à gauche l'écusson et le sens du nom, à droite la phrase du club) */
@media (min-width: 901px) {
  .club-intro {
    display: grid;
    grid-template-columns: 2fr 3fr;
    align-items: center;
    max-width: 1000px;
    margin: 32px auto 0;
  }

  .club-intro .origin {
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding-right: 44px;
  }

  .club-intro .name-note {
    text-align: center;
  }

  .club-intro .club {
    margin: 0;
    padding-left: 44px;
    border-left: 1px solid var(--rule);
  }

  .club-intro .club-text {
    text-align: left;
  }
}

/* Grand écran : présentation à gauche (écusson, sens du nom, phrase du club, l'un sous l'autre),
   diaporama à droite. Moins de défilement. */
@media (min-width: 1100px) {
  .club-haut {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(32px, 3.5vw, 56px);
    margin-top: 32px;
  }

  .club-haut .club-intro {
    display: block;
    max-width: none;
    margin: 0;
  }

  .club-haut .origin {
    flex-direction: row;
    gap: 22px;
    padding: 0;
  }

  .club-haut .origin-badge img {
    width: 104px;
    height: 104px;
  }

  .club-haut .name-note {
    text-align: left;
  }

  .club-haut .club {
    margin-top: 26px;
    padding: 26px 0 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .club-haut .club-text .quote {
    font-size: clamp(1.3rem, 1.7vw, 1.6rem);
  }

  .club-haut .gallery {
    max-width: none;
    margin: 0;
  }
}

/* Diaporama photos */
.gallery {
  max-width: 980px;
  margin: 40px auto 0;
}

.slides {
  position: relative;
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  overflow: hidden;
  border: 1.5px solid var(--wood);
  background: var(--ink);
  aspect-ratio: 3/2;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  margin: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.on {
  opacity: 1;
}

.slide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

/* Photo verticale : affichée entière sur un fond flou d'elle-même */
.slide img.fit-c {
  object-fit: contain;
}

.slide img.bg {
  filter: blur(22px) brightness(0.7) saturate(1.1);
  transform: scale(1.15);
}

.slide figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 40px 22px 16px;
  background: linear-gradient(transparent, rgb(10 20 35 / 72%));
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--blanc);
}

/* Flèches précédent / suivant */
.sl-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  font-size: 1.3rem;
  color: var(--indigo);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s;
}

.sl-btn:hover {
  background: var(--card);
}

.sl-prev {
  left: 14px;
}

.sl-next {
  right: 14px;
}

/* Points de navigation (ordinateur) */
.dots {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 14px;
}

.dots button {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.dots button::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px solid var(--wood);
  border-radius: 50%;
}

.dots button[aria-current="true"]::before {
  background: var(--wood);
}

/* Compteur « 3 / 17 » (mobile) */
.sl-count {
  display: none;
  margin: 10px 0 0;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 700px) {
  .slides {
    aspect-ratio: 4/3;
  }

  .sl-btn {
    width: 38px;
    height: 38px;
  }

  .slide figcaption {
    padding: 28px 14px 10px;
    font-size: 0.92rem;
    line-height: 1.35;
  }
}

@media (max-width: 640px) {
  .dots {
    display: none;
  }

  .sl-count {
    display: block;
  }
}

/* ==========================================================================
   10. Équipe
   ========================================================================== */
/* Carte du professeur référent */
.referent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 40px);
  max-width: 620px;
  margin: 36px auto 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1.5px solid var(--wood);
  background: var(--card);
}

.referent .portrait {
  flex: none;
  width: clamp(110px, 16vw, 150px);
  background: var(--indigo);
}

.ref-txt {
  min-width: 0;
}

.ref-txt .role {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun-ink);
}

.ref-txt h3 {
  margin-top: 4px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.ref-txt p {
  color: var(--muted);
}

/* Ligne « ceinture » (référent et professeurs) */
.belt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--ink);
}

.ref-txt .belt {
  margin-top: 8px;
}

/* Ceinture dessinée en CSS : la barre rouge porte les degrés (une barrette <i> par degré) */
.belt-bar {
  display: inline-flex;
  flex: none;
  justify-content: flex-end;
  width: 60px;
  height: 12px;
  padding: 0 5px;
  border-radius: 2px;
  background: var(--ceinture-noire);
}

.belt-bar b {
  display: flex;
  justify-content: center;
  gap: 2px;
  width: 24px;
  padding: 0 3px;
  background: var(--ceinture-rouge);
}

.belt-bar i {
  width: 3px;
  background: var(--blanc);
}

/* Mode sombre : léger contour pour que la ceinture noire reste visible */
@media (prefers-color-scheme: dark) {
  .belt-bar {
    box-shadow: 0 0 0 1px rgb(255 255 255 / 25%);
  }
}

/* Ceinture marron : barre noire au lieu de rouge */
.belt-bar--brown {
  background: var(--ceinture-marron);
}

.belt-bar--brown b {
  background: var(--ceinture-noire);
}

@media (max-width: 560px) {
  .referent {
    flex-direction: column;
    text-align: center;
  }

  .ref-txt .belt {
    justify-content: center;
  }
}

/* Les professeurs */
.team-title {
  margin-top: 52px;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  text-align: center;
}

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 28px;
}

/* Cartes de même hauteur (grille) : « Son parcours » calé en bas, aligné d'une carte à l'autre */
.coach {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: center;
}

/* Portrait rond (référent et professeurs) */
.portrait {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--wood);
  border-radius: 50%;
  background: var(--wash);
  aspect-ratio: 1;
}

.coach .portrait {
  position: relative;
  overflow: visible; /* laisse dépasser la pastille « Responsable du club » ; la photo garde son rond */
  width: min(100%, 170px);
  margin-inline: auto;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.coach h3 {
  margin-top: 22px; /* place pour la pastille posée sur le bas de la photo */
  font-size: 1.25rem;
}

/* Même hauteur pour la ceinture et la pastille Boxe : les cartes restent alignées */
.coach .belt {
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 42px;
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--ink);
}

/* Pastille Boxe (pas de ceinture dans cette discipline) */
.boxe-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sun) 14%, var(--card));
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sun-ink);
}

/* « Responsable du club » : pastille posée sur le bas de la photo, dans la largeur du rond */
.coach .role {
  position: absolute;
  bottom: -11px;
  left: 50%;
  max-width: 100%;
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sun-ink);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--card);
  transform: translateX(-50%);
}

.coach p {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .team {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }
}

/* Grand écran : référent à gauche (carte verticale), les 4 professeurs à droite sur une ligne */
@media (min-width: 1200px) {
  .equipe-grille {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 2.5fr);
    align-items: center;
    gap: clamp(28px, 3vw, 48px);
    margin-top: 36px;
  }

  .equipe-grille .referent {
    flex-direction: column;
    gap: 18px;
    max-width: none;
    margin: 0;
    text-align: center;
  }

  .equipe-grille .referent .portrait {
    width: 150px;
  }

  .equipe-grille .ref-txt h3 {
    font-size: 1.55rem;
  }

  /* Ceinture au-dessus de son libellé, comme pour les professeurs */
  .equipe-grille .ref-txt .belt {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  /* « Les professeurs » devient un petit intitulé */
  .equipe-grille .team-title {
    margin-top: 0;
    font-family: var(--body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sun-ink);
  }

  .equipe-grille .team {
    gap: 16px;
    margin-top: 18px;
  }

  .equipe-grille .coach .portrait {
    width: min(100%, 140px);
  }

  .equipe-grille .coach h3 {
    /* Taille fixe : la zone des professeurs ne s'élargit plus au-delà de 1200 px */
    font-size: 0.98rem;
    white-space: nowrap;
  }

  .equipe-grille .coach .role {
    font-size: 0.68rem;
    letter-spacing: 0;
  }
}

/* ==========================================================================
   11. Actualités (section affichée seulement si le flux Instagram est branché)
   ========================================================================== */
.actus-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.actus-head > div:first-child {
  min-width: 0;
  margin-inline: auto;
  text-align: center;
}

.actus-head .intro {
  margin-inline: auto;
}

/* Grand écran : titre à gauche, boutons « Suivre » à droite, sur la même ligne */
@media (min-width: 1200px) {
  .actus-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
  }

  .actus-head > div:first-child,
  .actus-head .intro {
    margin-inline: 0;
    text-align: left;
  }

  .actus-head .follow {
    flex: none;
    flex-direction: column;
    align-items: stretch;
  }
}

/* Boutons « Suivre sur Instagram / Facebook » */
.follow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border: 1.5px solid var(--wood);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s;
}

.fbtn:hover {
  border-color: var(--indigo);
}

.fbtn .ci {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  color: var(--blanc);
}

/* Pastilles aux couleurs des réseaux */
.ci-ig {
  background: var(--instagram);
}

.ci-fb {
  background: var(--facebook);
}

.ci-tel {
  background: var(--telephone);
}

/* Cartes des publications : carrousel horizontal (3 cartes visibles, 2 sur tablette,
   1 et le bord de la suivante sur mobile). Le défilement natif garde le glissé au doigt. */
.carrousel {
  margin-top: 36px;
}

.posts {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  /* marge intérieure : ni le survol (carte qui monte) ni le contour de focus ne sont rognés */
  margin: -6px;
  padding: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;
  scrollbar-width: none;
}

.posts::-webkit-scrollbar {
  display: none;
}

.post {
  scroll-snap-align: start;
}

/* Flèches et points sous les cartes */
.car-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

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

.car-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.2s,
    opacity 0.2s;
}

.car-btn:hover:not(:disabled) {
  border-color: var(--wood);
}

.car-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.car-btn svg {
  width: 20px;
  height: 20px;
}

.car-points {
  display: flex;
  gap: 8px;
}

.car-points span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rule);
  transition: background 0.2s;
}

.car-points span[aria-current="true"] {
  background: var(--ink);
}

.post {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--rule);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.post:hover {
  border-color: var(--wood);
  transform: translateY(-3px);
}

.post-img {
  position: relative;
  max-width: 100%;
  background: var(--wash) center/cover no-repeat;
  aspect-ratio: 1;
}

.post-net {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  color: var(--blanc);
}

/* Reel ou vidéo : bouton « lecture » au centre de l'image */
.post-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid rgb(255 255 255 / 85%);
  border-radius: 50%;
  background: rgb(0 0 0 / 45%);
  color: var(--blanc);
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}

.post-play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px; /* le triangle paraît centré */
}

.post:hover .post-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.post-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.post-date {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun-ink);
}

.post-text {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.94rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

@media (max-width: 860px) {
  .posts {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
}

@media (max-width: 520px) {
  .posts {
    grid-auto-columns: 84%; /* le bord de la carte suivante invite à glisser */
    gap: 14px;
  }
}

/* ==========================================================================
   12. Avis Google : ligne du bloc Contact (note et nombre d'avis)
   ========================================================================== */
.reach .ci-avis {
  padding: 8px; /* étoile un peu plus petite que les autres icônes */
  background: var(--sun-ink);
}

.reach .g-stars {
  margin: 0 2px;
  letter-spacing: 1px;
  color: var(--sun);
}

.avis-laisser {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.avis-laisser a {
  color: var(--indigo);
}

/* ==========================================================================
   13. Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 30px;
}

/* Colonne de gauche : réseaux, téléphone, lieux */
.reach {
  display: grid;
  align-content: start;
}

.reach > a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.reach > a:hover {
  color: var(--indigo);
}

.reach > a > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reach .ct {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reach .ci {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  color: var(--blanc);
  transition: transform 0.2s;
}

.reach > a:hover .ci {
  transform: scale(1.08);
}

/* Formulaire de contact (cours d'essai ou question) */
.trial-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1.5px solid var(--wood);
  background: var(--card);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.full {
  grid-column: 1/-1;
}

/* Groupe de boutons radio (« Cours souhaité ») */
fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
}

legend.flabel {
  margin-bottom: 6px;
  padding: 0;
}

label,
.flabel {
  font-size: 0.84rem;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7em 0.85em;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--card);
  font: inherit;
  font-size: 0.96rem;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--indigo);
  outline-offset: 0;
}

/* Choix du cours en pastilles */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choices label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  font-weight: 400;
  cursor: pointer;
}

.choices input {
  width: auto;
  accent-color: var(--indigo);
}

.choices label:has(input:checked) {
  border-color: var(--indigo);
  color: var(--indigo);
}

.trial-form .btn {
  grid-column: 1/-1;
  justify-self: start;
}

/* Message après envoi (succès ou erreur) */
.form-msg {
  grid-column: 1/-1;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--wash);
  font-size: 0.92rem;
}

.form-msg.is-error {
  background: color-mix(in srgb, var(--sun) 14%, var(--card));
}

/* Confirmation après l'envoi du formulaire de contact (remplace le formulaire) */
.trial-form[hidden],
.trial-merci[hidden] {
  display: none;
}

.trial-merci {
  padding: clamp(26px, 4vw, 40px) clamp(22px, 3vw, 34px);
  border: 1.5px solid var(--wood);
  background: var(--card);
  text-align: center;
}

.trial-merci:focus {
  outline: none;
}

.trial-merci__coche {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pine) 16%, var(--card));
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pine);
}

.trial-merci h3 {
  margin-top: 14px;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
}

.trial-merci p {
  margin-top: 10px;
  color: var(--muted);
}

.trial-merci__liens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px !important;
}

.trial-merci__autre {
  min-height: 24px;
  padding: 4px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--indigo);
  text-decoration: underline;
  cursor: pointer;
}

.rgpd {
  grid-column: 1/-1;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.rgpd a {
  color: var(--indigo);
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .trial-form {
    grid-template-columns: 1fr;
  }

  .reach .ct {
    font-size: 0.92rem;
  }

  .reach > a > span:first-child {
    min-width: 0;
    overflow-wrap: normal;
  }
}

/* ==========================================================================
   14. Pied de page et barre d'actions mobile
   ========================================================================== */
footer .band {
  height: 56px;
  background: var(--seigaiha) repeat top/48px 24px;
  -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent);
  mask-image: linear-gradient(to bottom, black 20%, transparent);
}

/* Barre « Appeler / Réserver un essai » collée en bas sur mobile */
.mbar {
  display: none;
}

@media (max-width: 1180px) {
  body {
    padding-bottom: 76px;
  }

  .mbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: flex;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--rule);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(10px);
  }

  .mbar .btn {
    flex: 1;
    justify-content: center;
    padding: 0.75em 1em;
  }
}

/* Bouton « retour en haut » (mobile et tablette), au-dessus de la barre d'actions */
.haut {
  display: none;
}

@media (max-width: 1180px) {
  .haut {
    position: fixed;
    right: 16px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    z-index: 31;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: var(--card);
    box-shadow: 0 4px 14px rgb(0 0 0 / 15%);
    color: var(--indigo);
  }

  .haut svg {
    width: 22px;
    height: 22px;
  }
}

/* ==========================================================================
   15. Pied de page de l'accueil : présentation, liens utiles, lieux
   ========================================================================== */
footer .pied {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px 40px;
  padding-block: 36px 24px;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  line-height: 1.6;
}

footer .pied p + p {
  margin-top: 8px;
}

footer .pied-titre {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

footer .pied ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Salles : liens vers Google Maps, même repère que le tableau des horaires (trait fin + ↗) */
footer .pied-lieux a {
  display: inline-block;
  padding-block: 2px; /* zone cliquable d'au moins 24 px */
  color: inherit;
  text-decoration: underline 1px
    color-mix(in srgb, currentcolor 50%, transparent);
  text-underline-offset: 4px;
}

footer .pied-lieux a:hover,
footer .pied-lieux a:focus-visible {
  text-decoration-color: currentcolor;
}

footer .pied-lieux .pin {
  font-size: 0.85em;
}

footer .pied-reseaux {
  display: flex;
  gap: 10px;
}

footer .pied-reseaux a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
}

footer .pied-reseaux svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 760px) {
  footer .pied {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   16. Techniques (section visible seulement pour un adhérent connecté)
   ========================================================================== */
.techniques-cta {
  margin-top: 22px;
  text-align: center;
}

/* --- Visionneuse des actus : la publication s'ouvre en grand sur le site ---
   Ordinateur : image à gauche, texte à droite. Mobile : plein écran, image puis texte. */
.visio {
  width: min(1040px, 94vw);
  max-width: none;
  height: min(680px, 88vh);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 60px rgb(0 0 0 / 35%);
}

.visio[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.visio::backdrop {
  background: rgb(10 18 30 / 78%);
}

.visio-fermer {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  color: var(--ink);
  cursor: pointer;
}

.visio-fermer svg {
  width: 22px;
  height: 22px;
}

.visio-media {
  position: relative;
  min-height: 0;
  background: #0b111a;
}

/* Images d'un carrousel côte à côte : glissé au doigt, ou flèches */
.visio-piste {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.visio-piste::-webkit-scrollbar {
  display: none;
}

.visio-diapo {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  scroll-snap-align: start;
}

.visio-diapo img,
.visio-diapo video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.visio-secours {
  position: absolute;
  bottom: 16px;
  left: 50%;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--indigo);
  text-decoration: none;
  transform: translateX(-50%);
}

.visio-fleche {
  position: absolute;
  top: 50%;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
}

.visio-fleche[data-sens="-1"] {
  left: 10px;
}

.visio-fleche[data-sens="1"] {
  right: 10px;
}

.visio-fleche svg {
  width: 22px;
  height: 22px;
}

.visio-compteur {
  position: absolute;
  bottom: 10px;
  left: 50%;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgb(0 0 0 / 55%);
  font-size: 0.8rem;
  color: #fff;
  transform: translateX(-50%);
}

.visio-compteur:empty {
  display: none;
}

.visio-texte {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 56px 22px 20px;
  overflow-y: auto;
}

.visio-texte p {
  margin: 0;
  font-size: 0.95rem;
  white-space: pre-line; /* garde les retours à la ligne de la publication */
}

.visio-insta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.visio-insta .post-net {
  position: static;
  width: 18px;
  height: 18px;
  padding: 0;
  background: none;
  color: currentColor;
}

@media (max-width: 760px) {
  .visio {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .visio[open] {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 62vh) minmax(0, 1fr);
  }

  .visio-texte {
    padding: 16px 18px 24px;
  }
}

/* ==========================================================================
   17. Pages disciplines (jiu-jitsu-bresilien/, grappling/, boxe/)
   Même cadre que l'accueil : en-tête, sections vert → sable → bleu, pied de page.
   ========================================================================== */

/* --- Menu : « Disciplines » ouvre la liste des pages disciplines (home.js) --- */
.sous {
  position: relative;
}

.sous-bouton {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.94rem;
  color: var(--muted);
  cursor: pointer;
}

.sous-bouton:hover,
.sous-bouton[aria-expanded="true"] {
  color: var(--ink);
}

.sous-bouton svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.sous-bouton[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.sous-liste {
  display: none;
}

.sous.is-ouvert .sous-liste {
  display: block;
}

nav .sous-liste a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

/* Ordinateur : petite fenêtre sous le menu */
@media (min-width: 1181px) {
  nav .sous-liste {
    position: absolute;
    top: calc(100% + 12px);
    left: -16px;
    z-index: 30;
    min-width: 220px;
    padding: 8px 0;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--card);
    box-shadow: 0 16px 30px -18px
      color-mix(in srgb, var(--ink) 45%, transparent);
  }

  nav .sous-liste a {
    display: block;
    padding: 9px 16px;
  }

  nav .sous-liste a::after {
    display: none;
  }

  nav .sous-liste a:hover {
    background: var(--wash);
  }
}

/* Mobile et tablette : la liste se déplie dans le panneau du menu */
@media (max-width: 1180px) {
  .sous-bouton {
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 9px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
  }

  nav .sous-liste {
    padding: 0 0 0 16px;
  }
}

/* --- En-tête de page : fil d'Ariane, titre, l'essentiel, photo --- */
.ariane {
  margin-bottom: 14px;
  font-size: 0.86rem;
  color: var(--muted);
}

.ariane a {
  display: inline-block;
  padding: 4px 0; /* zone de toucher d'au moins 24 px */
  color: var(--indigo);
}

/* Le fil d'Ariane est aussi une balise <nav> : il ne reprend aucun style du menu principal
   (panneau déroulant sur téléphone, taille et trait orange des liens) */
nav.ariane {
  position: static;
  border: 0;
  background: none;
}

nav.ariane a {
  font-size: inherit;
  white-space: normal;
  text-decoration: underline;
}

nav.ariane a::after {
  display: none;
}

.page-titre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
}

.page-titre .ico {
  flex: none;
  width: 64px;
  height: 64px;
  padding: 7px;
  border: 1.5px solid var(--wood);
  border-radius: 50%;
  background: var(--card);
  color: var(--indigo);
}

.page-titre > span {
  flex-basis: 100%;
  margin-top: 8px; /* un peu d'air sous le titre */
  font-size: 0.42em;
  font-weight: 700;
  line-height: 1.3;
  color: var(--wood);
}

.page-hero .hero-photo img {
  border-radius: 10px;
}

/* Carrousel du haut des pages disciplines : même rectangle que la photo de l'accueil, sans légende sur
   les photos ; les photos remplissent le cadre (format 3/2 de la première) */
.page-photo .slides {
  max-height: none;
  border: 2px solid var(--wood);
  border-radius: 10px;
  box-shadow: 0 22px 40px -18px color-mix(in srgb, var(--ink) 40%, transparent);
  aspect-ratio: 3/2;
}

.page-photo .slide img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-photo .sl-btn {
  top: auto;
  bottom: 12px;
  width: 38px;
  height: 38px;
  transform: none;
}

.page-photo .dots {
  display: flex;
  min-height: 24px; /* place des points réservée avant leur création (pas de saut de la page) */
  margin-top: 8px;
}

@media (max-width: 700px) {
  /* Icône au-dessus du nom : le nom tient sur une ligne avec la police du site comme avec
     celle de secours (pas de saut de la page à l'arrivée de la police) */
  .page-titre {
    flex-direction: column;
    gap: 10px;
  }

  .page-titre > span {
    flex-basis: auto;
    margin-top: 4px;
  }

  .page-titre .ico {
    width: 52px;
    height: 52px;
  }

  .page-hero .hero-photo img {
    border-radius: 8px;
  }

  .page-photo .slides {
    border-radius: 8px;
    aspect-ratio: 3/2;
  }
}

@media (min-width: 1100px) {
  .page-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .page-hero .hero-text {
    text-align: left;
  }

  .page-hero .page-titre {
    justify-content: flex-start;
  }

  .page-hero .hero-cta {
    text-align: left;
  }

  .page-hero .lead {
    margin-left: 0;
  }
}

/* --- La discipline : trois points forts --- */
.atouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Deux ou quatre cartes : deux colonnes centrées (2 × 2 pour quatre) */
.atouts.atouts-2,
.atouts.atouts-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  margin-inline: auto;
}

.atouts article {
  padding: 22px;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--wood);
  border-radius: 8px;
  background: var(--card);
}

.atouts h3 {
  font-size: 1.3rem;
}

.atouts p {
  margin-top: 8px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .atouts,
  .atouts.atouts-2,
  .atouts.atouts-4 {
    grid-template-columns: 1fr;
  }
}

/* --- Horaires : adresse sous le tableau --- */
.adresse {
  margin-top: 16px;
  font-size: 0.92rem;
  text-align: center;
  color: var(--muted);
}

/* --- Ceintures : de la blanche à la noire --- */
.ceintures {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  margin: 30px auto 6px;
  padding: 0;
  list-style: none;
}

.ceintures li {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-weight: 700;
}

.ceintures .belt-bar {
  width: 96px;
  height: 18px;
}

.ceintures .belt-bar b {
  width: 34px;
}

.belt-bar--blanche {
  background: #f3f1ea;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent);
}

.belt-bar--blanche b,
.belt-bar--bleue b,
.belt-bar--violette b {
  background: var(--ceinture-noire);
}

.belt-bar--bleue {
  background: #2557a8;
}

.belt-bar--violette {
  background: #6c3a99;
}

/* --- Tarifs : deux formules seulement --- */
.prices.prices-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 680px;
}

/* Une carte sous l'autre à partir de la même largeur que les tarifs de l'accueil */
@media (max-width: 760px) {
  .prices.prices-2 {
    grid-template-columns: 1fr;
  }
}

/* --- Accueil : lien de chaque carte discipline vers sa page --- */
.disc .disc-lien {
  margin-top: 12px;
  font-weight: 700;
}

.disc .disc-lien a {
  display: inline-block;
  padding: 4px 0; /* zone de toucher d'au moins 24 px */
}

/* --- Accueil : « Pour toi si… » sous chaque discipline --- */
.disc .disc-pour {
  margin-top: 10px;
  font-size: 0.92rem;
  font-style: italic;
}

.disc .disc-pour b {
  font-style: normal;
  color: var(--ink);
}

/* --- Adhésion : ce que l'appli du club apporte, une ligne de pictos (2 × 2 sur téléphone) --- */
.adherent-plus {
  max-width: 760px;
  margin: 26px auto 4px;
  text-align: center;
}

.adherent-plus p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

.adherent-plus ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--ink);
}

.adherent-plus li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.adherent-plus svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--sun-ink);
}

/* Téléphone : une seule colonne centrée, chaque élément sur sa ligne (plus lisible qu'une grille serrée) */
@media (max-width: 520px) {
  .adherent-plus ul {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

/* --- Liens de fin de section --- */
.autres-questions,
.autres-disciplines {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
}

.essai-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* ==========================================================================
   18. Pages pratiques (horaires-lieux/, tarifs/, contact/) et encadré « Infos pratiques »
   ========================================================================== */

/* Les salles : une carte par lieu (discipline, adresse) */
.salles ul {
  margin: 8px 0 10px;
  padding-left: 1.1em;
}

.salles li + li {
  margin-top: 4px;
}

.salle-disc {
  font-weight: 700;
}

.salle-disc a,
.salle-adresse a {
  display: inline-block;
  padding: 2px 0;
}

.salle-adresse {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Blocs courts (atouts des disciplines, Bon à savoir, salles) : texte centré.
   Les textes longs, listes, tableaux et formulaires restent alignés à gauche. */
.atouts article {
  text-align: center;
}

/* Salles : photo en haut de chaque carte, bord à bord (format 3/2) */
.salles article {
  overflow: hidden;
  padding-top: 0;
}

.salle-photo {
  display: block;
  width: calc(100% + 44px); /* annule le retrait de 22 px de la carte, de chaque côté */
  max-width: none;
  height: auto;
  margin: 0 -22px 16px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Salles : « Itinéraire ↗ » sur sa propre ligne sous l'adresse */

.salle-adresse a {
  display: block;
  width: fit-content;
  margin: 2px auto 0;
}

/* Pages disciplines : lieu, formule et professeurs sous les horaires */
.pratique {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 22px auto 0;
}

.pratique > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 4px 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.pratique dt {
  font-weight: 700;
  color: var(--ink);
}

.pratique dd {
  margin: 0;
  min-width: 0;
}

.pratique a {
  display: inline-block;
  padding: 2px 0;
}

@media (max-width: 560px) {
  .pratique > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Professeurs qui encadrent : petite photo, prénom, grade */
.encadrants {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

.encadrants li,
.encadrants a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

/* Le prénom, souligné finement, ouvre la fiche « Son parcours » sur l'accueil */
.encadrants a b {
  text-decoration: underline 1px
    color-mix(in srgb, currentcolor 40%, transparent);
  text-underline-offset: 3px;
}

.encadrants a:hover b,
.encadrants a:focus-visible b {
  text-decoration-color: currentcolor;
}

.encadrants img {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--wood);
  border-radius: 50%;
  object-fit: cover;
}

.encadrants span {
  display: block;
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--muted);
}

.encadrants b,
.encadrants small {
  display: block;
}

.encadrants b {
  font-size: 0.98rem;
  color: var(--ink);
}

.encadrants small {
  font-size: inherit;
}

/* Ceinture dessinée entre le prénom et le grade (pages JJB et Grappling), comme sur
   l'accueil, en plus petit ; les règles .encadrants span / b ci-dessus sont rétablies */
.encadrants .belt-bar {
  display: flex;
  width: 40px;
  height: 9px;
  margin: 4px 0 3px;
  padding: 0 3px;
}

.encadrants .belt-bar b {
  display: flex;
  width: 16px;
  padding: 0 2px;
}

.encadrants .belt-bar i {
  width: 2px;
}

.pratique-essai {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
}

/* Accueil, équipe : « Son parcours » se déplie sous chaque professeur */
.parcours {
  margin-top: 10px;
  text-align: left;
}

.parcours summary {
  display: inline-block;
  min-height: 24px;
  padding: 2px 0;
  font-weight: 700;
  color: var(--indigo);
  cursor: pointer;
}

.parcours[open] summary {
  margin-bottom: 6px;
}

.parcours p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Parcours rempli : petits intertitres et frise de dates */
.parcours .parcours-titre {
  margin-top: 8px;
  font-weight: 700;
  color: var(--ink);
}

.parcours-dates {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Une ligne par période : la date à gauche, le lieu et les professeurs à droite */
.parcours-dates li {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 0 10px;
}

.parcours-dates li + li {
  margin-top: 6px;
}

.parcours-dates b {
  color: var(--ink);
}

.parcours-dates small {
  display: block;
  font-size: 0.85rem;
}

/* Professeur référent : « Son parcours » suit l'alignement de sa carte (centré quand la carte
   est en colonne, à gauche quand la photo est à côté du texte) */
.referent .parcours {
  text-align: inherit;
}

.coach .parcours {
  margin-top: auto; /* en bas de la carte */
  padding-top: 10px;
  text-align: center;
}

/* Fiche « Son parcours » : la photo reprise de la carte, sans la pastille */
.fiche-tete .role {
  display: none;
}

/* ==========================================================================
   19. Fiche « Son parcours » (accueil) : fenêtre par-dessus la page, ouverte par
   home.js à la place du dépliant ; les cartes de l'équipe ne bougent pas
   ========================================================================== */
.fiche {
  width: min(100% - 32px, 34rem);
  max-height: min(100% - 48px, 40rem);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 18px 50px rgb(0 0 0 / 30%);
}

.fiche::backdrop {
  background: rgb(10 20 40 / 55%);
}

.fiche-tete {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 56px 14px 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.fiche-tete .portrait {
  flex: none;
  width: 64px;
  margin: 0;
}

.fiche-tete h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.fiche-tete .belt {
  margin: 4px 0 0;
  font-size: 0.85rem;
}

.fiche-corps {
  padding: 0 20px 20px;
  text-align: left;
}

.fiche-corps p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.fiche-corps .parcours-titre {
  margin: 14px 0 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.fiche-fermer {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

/* Page bloquée derrière la fiche ouverte */
html.fiche-ouverte {
  overflow: hidden;
}

/* ==========================================================================
   20. Adhésion : « Tu arrives en cours de saison ? », les trois tarifs de chaque
   formule ; la colonne de la période en cours (classe en-cours) est mise en avant
   ========================================================================== */
.periodes {
  max-width: 760px;
  margin: 36px auto 0;
  text-align: center;
}

.periodes h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.periodes > p {
  margin-top: 4px;
  color: var(--muted);
}

.periodes table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.periodes th,
.periodes td {
  padding: 10px 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

.periodes thead th {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.periodes thead small {
  display: none;
}

.periodes thead .en-cours small {
  display: block;
  font-size: 0.75rem;
  color: var(--sun-ink);
}

.periodes tbody th {
  font-weight: 600;
  text-align: left;
}

.periodes td {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.periodes .en-cours {
  background: var(--card);
  font-weight: 700;
  color: var(--ink);
}

.periodes-note {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .periodes table {
    font-size: 0.85rem;
  }

  .periodes th,
  .periodes td {
    padding: 9px 4px;
  }

  .periodes thead th {
    font-size: 0.75rem;
    letter-spacing: 0.01em;
  }

  .periodes tbody th {
    font-size: 0.8rem;
  }
}

/* Retour à la ligne réservé au téléphone (titre qui passerait sinon à la ligne au chargement de la police) */
.br-mobile {
  display: none;
}

@media (max-width: 600px) {
  .br-mobile {
    display: inline;
  }
}
