/*
Theme Name:   ACL Handball Lodève
Theme URI:    https://www.lodeve-handball.com
Description:  Child theme of Kadence for the ACL Handball Lodève club website. Design tokens and signature styles from the Claude Design mockup (July 2026). Design lives here; functionality stays in plugins.
Author:       ACL Handball / Boris Henriot
Template:     kadence
Version:      0.1.0
Requires PHP: 7.4
Text Domain:  acl-handball
*/

/* =============================================================
   Design tokens are defined in theme.json (colors, fonts, spacing).
   This file holds only the signature visual elements that
   theme.json cannot express. Keep it small.
   ============================================================= */

/* =============================================================
   Re-assert theme.json tokens over Kadence
   -------------------------------------------------------------
   theme.json emits its styles as low-specificity `:root :where(…)`
   rules, which lose to Kadence's plain `body {}` / `h1 {}` /
   `.wp-block-button__link {}` selectors. Restating them here (this
   file loads last) is what actually makes the tokens land.
   theme.json stays the single source of truth for the VALUES —
   everything below reads from its generated custom properties.
   ============================================================= */

body,
.entry-content {
  font-family: var(--wp--preset--font-family--barlow);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--wp--preset--color--contrast);
  background-color: var(--wp--preset--color--base);
}

/* ---- Signature diagonal shapes (hero / page banners) ---- */

.acl-banner {
  position: relative;
  overflow: hidden;
  background: var(--wp--preset--color--navy);
}

.acl-banner::before,
.acl-banner::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 520px;
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.acl-banner::before {
  right: -260px;
  background: var(--wp--preset--color--gold);
}

.acl-banner::after {
  right: -120px;
  background: var(--wp--preset--color--blue);
}

.acl-banner > * { position: relative; z-index: 1; }

/* ---- Headings: condensed uppercase ---- */

h1, h2, h3,
.wp-block-button__link {
  font-family: var(--wp--preset--font-family--barlow-condensed);
  text-transform: uppercase;
  letter-spacing: .02em;
}

h1, h2 { font-weight: 800; }
h3 { font-weight: 700; }

h1 { line-height: .98; }

/* ---- Buttons ---- */

.wp-block-button__link {
  padding: 14px 26px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .03em;
}

.acl-btn-pill .wp-block-button__link {
  border-radius: 999px;
  background: var(--wp--preset--color--gold);
  color: var(--wp--preset--color--navy);
}

.acl-btn-pill .wp-block-button__link:hover {
  background: #ffffff;
}

/* =============================================================
   Full-bleed section reset
   -------------------------------------------------------------
   Kadence auto-pads any group carrying a background:
     .entry-content .wp-block-group.has-background { padding: 20px 30px }
   (content.min.css, 3 classes). ACL sections set their own padding,
   so neutralise it with a matching 3-class selector — style.css is
   enqueued after Kadence's CSS (see functions.php), so equal
   specificity wins without !important.
   Every acl-* full-bleed section group carries .acl-section.
   ============================================================= */

.entry-content .wp-block-group.acl-section {
  /* Side gutters, as in the mockup (`.section{padding:56px 40px}`). These must be
     real padding: the constrained layout only *centres* the inner content, so below
     the content width there would otherwise be no gutter at all and text would run
     into the screen edge. Vertical padding comes from each pattern's inline style. */
  padding-left: 40px;
  padding-right: 40px;
  margin-top: 0;
  margin-bottom: 0; /* sections sit flush against each other, as in the mockup */
}

/* Le héro est la seule section dont le FOND va d'un bord à l'autre (navy +
   calque flou). Son CONTENU, lui, se cale sur les autres : même gouttière de
   40 px et même largeur maximale de 1200 px, posée sur `.wp-block-columns`
   plus bas. Sans ça, au-delà de ~1280 px le titre restait collé à 40 px du
   bord pendant que le contenu des sections se recentrait. */
.entry-content .wp-block-group.acl-hero-split { padding: 0 40px; }

@media (max-width: 860px) {
  .entry-content .wp-block-group.acl-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  /* Le héro reprend la main sur sa gouttière à 980 px, pas à 860 — voir le
     bloc « Accueil §1 » plus bas. */
}

/*
 * The mockup specifies every vertical margin explicitly. Two things fight that:
 *   - WP's block-gap rules  `.wp-container-… > * + * { margin-block-start: … }`
 *   - Kadence's content rhythm, which gives every block a 2rem bottom margin
 *     (`.single-content .wp-block-group`, `… p`, `… .wp-block-buttons`) and
 *     headings a 1.5em/0.5em rhythm (`.single-content h2`).
 * Kadence's selectors carry two classes, so they outrank single-class ACL
 * selectors whatever the load order. Reset both here at matching specificity;
 * every component rule below is scoped under `.acl-section` so it stays at or
 * above this specificity and wins on source order.
 * Flex rows (.acl-band-inner, .acl-sponsor-row…) space themselves with `gap`.
 */
.acl-section > * + *,
.acl-section .wp-block-group > * + *,
.acl-section .wp-block-columns > * + * { margin-block-start: 0; }

.acl-section .wp-block-group,
.acl-section .wp-block-columns,
.acl-section .wp-block-buttons,
.acl-section .wp-block-button,
.acl-section p,
.acl-section table,
.acl-section figure,
.acl-section h1,
.acl-section h2,
.acl-section h3 {
  margin-top: 0;
  margin-bottom: 0;
}

/* ---- Photo placeholders (diagonal stripes — swap for real photos later) ---- */

.acl-ph-navy {
  background: repeating-linear-gradient(135deg,
    var(--wp--preset--color--navy) 0 14px,
    var(--wp--preset--color--navy-light) 14px 28px);
}

.acl-ph-blue {
  background: repeating-linear-gradient(135deg,
    var(--wp--preset--color--blue) 0 14px,
    var(--wp--preset--color--blue-dark) 14px 28px);
}

.acl-ph-gold {
  background: repeating-linear-gradient(135deg,
    var(--wp--preset--color--gold) 0 14px,
    var(--wp--preset--color--gold-dark) 14px 28px);
}

.acl-ph-caption {
  margin: 0;
  font: 600 12px ui-monospace, monospace;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .85);
}

.acl-ph-gold .acl-ph-caption { color: var(--wp--preset--color--navy); }

/* ---- Accueil §1 — split hero "info importante" ---- */

/* La bande est le repère de position du calque flou et du voile, tous deux en
   absolu. `overflow:hidden` rogne le fond agrandi à 1,28 — cet agrandissement
   existe pour masquer la frange transparente que `blur()` crée sur les bords. */
.acl-hero-split { position: relative; overflow: hidden; }

/* Calque de fond : injecté au rendu par l'extension ACL Héro à partir de la
   MÊME image que celle du premier plan (voir acl-hero/acl-hero.php pour
   pourquoi ce n'est pas un deuxième bloc image). Extension désactivée =
   aucun calque = navy plat, le héro reste correct.

   ENFANT DIRECT, volontairement (2026-08-05). Posé plus bas dans l'arbre — par
   exemple dans la colonne de l'image — le calque se retrouve dans le contexte
   d'empilement créé par `.wp-block-columns` (z-index:2) et recouvre le titre et
   l'accroche au lieu de passer dessous. Ce sélecteur fait qu'un calque mal
   placé reste un div vide sans effet, plutôt qu'un aplat qui masque le texte. */
.acl-hero-split > .acl-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  /* Flou 38 px / voile 74 % : réglage retenu par Boris le 2026-08-04 après
     mesure des quatre formes réelles. Un voile plus faible (60 %) faisait
     passer le titre blanc sous le seuil AAA de 7:1 sur l'affiche claire de
     l'AG ; un voile plus fort aplatit l'image quel que soit le flou. */
  filter: blur(38px) saturate(.6);
  transform: scale(1.28);
}

.acl-hero-split::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 29, 72, .74);
  pointer-events: none;
}

.acl-hero-split .wp-block-columns {
  position: relative;
  z-index: 2;
  /* Même plafond que `contentSize` dans theme.json, et donc que le contenu de
     toutes les sections en dessous : le titre du héro s'aligne sur celui de la
     section suivante à toutes les largeurs, au lieu de s'en écarter dès que
     l'écran dépasse 1280 px. */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  gap: 0;
  margin-top: 0;
  margin-bottom: 0;
  align-items: center;
}

.acl-hero-split .acl-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Plus de gouttière horizontale ici : elle est portée par le groupe
     (`.acl-hero-split`, 40 px) comme pour toute autre section. La garder ici
     l'aurait ajoutée une deuxième fois et décalé le titre de 40 px vers la
     droite par rapport aux sections du dessous. */
  padding: 70px 0;
}

.acl-hero-split .acl-label {
  width: fit-content;
  margin: 0 0 20px;
}

.acl-hero-split .acl-hero-title {
  margin: 0 0 16px;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.05;
}

.acl-hero-split .acl-hero-lead {
  margin: 0 0 26px;
  /* 46ch : sans plafond, l'accroche courait sur toute la colonne, soit ~75
     caractères par ligne sur grand écran — au-delà de ce qui se lit d'un
     seul balayage de l'œil. */
  max-width: 46ch;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: #e0e3e8;
}

.acl-hero-split .acl-hero-lead strong { color: var(--wp--preset--color--gold); }

/* ---- La ligne d'informations pratiques (date, horaires, lieu) ----

   POURQUOI ELLE EXISTE. Le club publie autant d'affiches que de photos, et une
   affiche porte ses faits GRAVÉS EN PIXELS : ni Google ni un lecteur d'écran
   ne les lisent, et on ne peut pas copier une adresse pour la coller dans un
   GPS. Réserve ouverte le 2026-08-05, réglée ici en répétant ces faits en
   texte réel à côté du visuel plutôt qu'en espérant que l'accroche y pense.

   C'est un <dl> : « Date » et « Samedi 5 septembre » sont un terme et sa
   définition. Le <div> intermédiaire n'est pas décoratif — le conteneur est en
   flex, et sans lui `gap` écarterait un libellé de sa propre valeur autant que
   deux faits voisins. */
.acl-hero-split .acl-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0 0 26px;
  padding: 16px 0 0;
  /* Un filet, pas un encadré : la ligne se distingue de l'accroche sans
     devenir une deuxième boîte dans une bande qui en a déjà deux. */
  border-top: 1px solid rgba(255, 255, 255, .16);
  /* Même logique que les 46ch de l'accroche : au-delà, les faits s'étalent en
     une seule ligne illisible sur grand écran au lieu de former un groupe. */
  max-width: 52ch;
}

.acl-hero-split .acl-hero-facts dt {
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold);
  margin: 0 0 1px;
}

.acl-hero-split .acl-hero-facts dd {
  /* Les navigateurs donnent 40 px de retrait à un <dd>. Non remis à zéro, la
     valeur se décalerait sous son libellé. */
  margin: 0;
  font-size: 15px;
  color: #e7eaef;
  /* Une adresse longue coupe plutôt qu'elle ne déborde de la colonne. */
  word-break: break-word;
}

.acl-hero-split .wp-block-buttons { align-self: flex-start; margin-bottom: 0; }

/* Le bouton du héro est plus bas que les autres : 36 px au lieu de 42
   (2026-08-07, demande de Boris — il paraissait trop épais une fois en ligne).

   CADRÉ AU HÉRO, volontairement, et pas seulement pour éviter de déranger le
   reste du site : ça sert la hiérarchie. Le bouton principal de l'accueil est
   celui de la bande dorée juste en dessous (« Voir les tarifs et s'inscrire »),
   qui est la conversion du site ; celui du héro est contextuel et change à
   chaque annonce (« Voir l'itinéraire », « Voir le programme »). Qu'il soit
   légèrement plus discret que son voisin dit lequel des deux compte.

   Seule la hauteur bouge : la gouttière horizontale reste à 24 px (la valeur
   de la maquette) et le texte à 14 px. Réduire aussi la police aurait rendu
   les majuscules condensées difficiles à lire, ce qui n'était pas la demande. */
.acl-hero-split .wp-block-button__link { padding: 11px 24px; }

/* PLUS AUCUN RECADRAGE (2026-08-04). L'ancienne bande 320/400 px versait la
   photo dans une fente dont la hauteur venait de la colonne de texte et la
   largeur de l'écran : le cadrage se déplaçait quand on tapait une phrase de
   plus, et jusqu'à 53 % de l'image disparaissait sur un écran large.
   Surtout, le club publie autant d'affiches que de photos — et recadrer une
   affiche ne perd pas du décor, ça perd l'information (date, heure, adresse).
   L'image n'est donc plus recadrée, seulement bornée : elle garde sa forme,
   la colonne de texte prend ce qui reste. Une affiche portrait fait juste une
   colonne image étroite et une colonne texte large. */
.acl-hero-split .acl-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
}

.acl-hero-split .acl-hero-media .acl-hero-photo {
  margin: 0;
  width: auto;
  max-width: 100%;
  /* Le rayon est porté par la <figure>, pas par l'<img> : la page de staging a
     déjà des styles en ligne `border-radius:0px` sur l'image (panneau Bordure
     ouvert puis remis à zéro), et rien en CSS ne bat un style en ligne. */
  border-radius: 10px;
  overflow: hidden;
}

.acl-hero-split .acl-hero-media .acl-hero-photo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 560px;
  display: block;
}

/* 980 px et non 860 : mesuré, une bande portrait dépassait 1000 px de haut
   dès 950 px de large. WP force `.wp-block-columns{flex-wrap:nowrap!important}`
   au-dessus de 782 px, d'où le !important pour atteindre ce point de rupture. */
@media (max-width: 980px) {
  /* Sur téléphone la bannière devient une image pleine largeur posée sur un
     bloc navy — le fond flou n'a plus de raison d'être et il est réellement
     retiré du rendu (`display:none`), pas seulement masqué : aucun filtre
     n'est calculé sur mobile. */
  .acl-hero-split > .acl-hero-bg,
  .acl-hero-split::after { display: none; }

  /* Sur téléphone l'image va vraiment d'un bord à l'autre (choix de la
     variante V3) : la gouttière repasse donc du groupe à la colonne de texte,
     sinon l'image resterait à 40 px des bords. */
  .entry-content .wp-block-group.acl-hero-split { padding: 0; }

  .acl-hero-split .wp-block-columns { max-width: none; }
  .acl-hero-split .wp-block-columns { flex-wrap: wrap !important; }
  .acl-hero-split .wp-block-column { flex-basis: 100% !important; }
  .acl-hero-split .acl-hero-content { padding: 32px 20px; }
  .acl-hero-split .acl-hero-title { font-size: 38px; }

  .acl-hero-split .acl-hero-media { order: -1; padding: 0; }

  .acl-hero-split .acl-hero-media .acl-hero-photo {
    width: 100%;
    border-radius: 0;
  }

  .acl-hero-split .acl-hero-media .acl-hero-photo img {
    width: 100%;
    max-height: none;
  }
}

@media (max-width: 560px) {
  .acl-hero-split .acl-hero-title { font-size: 32px; }

  /* Trois faits côte à côte ne tiennent pas sur 375 px : ils passent à deux
     par ligne, et l'écart horizontal se resserre pour que « Horaires » ne
     bascule pas seul sur une troisième ligne. */
  .acl-hero-split .acl-hero-facts { gap: 8px 18px; }
}

/* ---- Accueil §2 — gold "devenir licencié" band ---- */

.acl-section .acl-band-inner { gap: 24px; }

/* Titre 26 px et non 30 (B2, 2026-08-04) : avec le rembourrage ramené à 32 px
   dans le motif, la bande passe de 179 à 123 px — 56 px rendus à la page sans
   rien perdre. On s'est arrêté là : plus bas (85 px), la bande fonctionne
   encore visuellement mais l'appel à l'action principal du site se met à
   ressembler à un bandeau de notification. */
.acl-section .acl-band-licence-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--wp--preset--color--navy);
}

.acl-section .acl-band-licence-text {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(0, 29, 72, .78);
}

@media (max-width: 860px) {
  .acl-band-licence { text-align: center; }
  .acl-band-licence .acl-band-inner { justify-content: center; }
  .acl-band-licence .wp-block-buttons { width: 100%; justify-content: center; }
  .acl-band-licence .wp-block-button { width: 100%; }
  .acl-band-licence .wp-block-button__link { display: block; text-align: center; }
}

/* ---- Accueil §3 — sponsors strip ---- */

.acl-band-sponsors { text-align: center; }

.acl-section .acl-kicker {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(15, 18, 22, .62);
}

.acl-section .acl-sponsor-row { gap: 20px; margin-bottom: 16px; }
.acl-section .acl-sponsor-row-sm { gap: 14px; }

/* Sponsor logo placeholders — tan diagonal stripes, replaced by real logos later */
.acl-section .acl-ph-tan,
.acl-section .acl-ph-tan-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.acl-section .acl-ph-tan {
  width: 170px;
  height: 70px;
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, #e4e0d8 0 8px, #d8d3c8 8px 16px);
}

.acl-section .acl-ph-tan p {
  margin: 0;
  font: 500 10px ui-monospace, monospace;
  color: #847d6e;
}

.acl-section .acl-ph-tan-sm {
  width: 120px;
  height: 50px;
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, #ede9e0 0 6px, #e0dbd0 6px 12px);
}

/* Centered "voir tout →" link closing a section */
.acl-section .acl-section-link {
  margin: 20px 0 0;
  text-align: center;
}

.acl-section .acl-section-link a {
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wp--preset--color--blue);
}

.acl-section .acl-section-link a:hover { text-decoration: underline; }

/* ---- Accueil §4 — résultats / prochains matchs / classements ----
   Static placeholders in phase 1. In phase 3 the acl-ffhandball-results
   plugin renders the same markup, so these styles carry over unchanged. */

.acl-section .acl-section-head {
  gap: 10px;
  align-items: baseline;
  margin-bottom: 26px;
}

.acl-section .acl-section-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.acl-section .acl-section-note {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  font-style: italic;
  color: rgba(15, 18, 22, .62);
}

/* Two-up grid; stacks at the mockup's 860px breakpoint */
.acl-section .acl-grid-2 { gap: 20px; margin-bottom: 22px; }
.acl-section .acl-grid-2 > .wp-block-column { flex-basis: 50%; }

/* Dark result card */
.acl-section .acl-card-dark {
  padding: 26px;
  border-radius: 10px;
  background: var(--wp--preset--color--navy);
  color: #fff;
}

.acl-section .acl-tag-gold {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold);
}

.acl-section .acl-score-row {
  gap: 10px;
  align-items: baseline;
  margin: 10px 0;
}

.acl-section .acl-score {
  margin: 0;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.acl-section .acl-opp {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .75);
}

.acl-section .acl-result-meta {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, .6);
}

/* is-style-wide in the pattern opts out of core's
   `.wp-block-separator:not(.is-style-wide){width:100px}` */
.acl-section .acl-hr-dark {
  width: 100%;
  max-width: none;
  height: 1px;
  margin: 14px 0;
  border: 0;
  background: rgba(255, 255, 255, .15);
  opacity: 1;
}

.acl-section .acl-next-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold);
}

.acl-section .acl-next-match {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.acl-section .acl-next-meta {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, .7);
}

/* Salle du prochain match (carte sombre de l'accueil).
   Le nom et l'adresse forment un seul lien sortant vers Google Maps : deux
   cibles côte à côte pour la même chose donneraient deux fois la même
   destination et deux fois la taille de zone tactile à viser. */
.acl-section .acl-next-salle {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

.acl-section .acl-next-salle a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  border-bottom: 1px solid rgba(222, 187, 25, .5);
}

.acl-section .acl-next-salle a:hover,
.acl-section .acl-next-salle a:focus-visible {
  color: var(--wp--preset--color--gold);
  border-bottom-color: var(--wp--preset--color--gold);
}

.acl-section .acl-next-salle-adresse {
  display: block;
  font-weight: 400;
  color: rgba(255, 255, 255, .6);
}

/* Mini standings card */
.acl-section .acl-mini-card {
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.acl-section .acl-mini-card-head {
  gap: 6px;
  align-items: center;
  padding: 14px 18px;
  background: var(--wp--preset--color--navy);
}

.acl-section .acl-mini-card-title {
  margin: 0;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
}

.acl-section .acl-mini-card-link { margin: 0; }

.acl-section .acl-mini-card-link a {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wp--preset--color--gold);
}

.acl-section .acl-mini-card-link a:hover { text-decoration: underline; }

/* Standings table — core table block, so columns are targeted by position:
   1 = rank, 2 = club, 3 = points, 4 = matches played. */
.acl-section .acl-mini-table { margin: 0; }

.acl-section .acl-mini-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-weight: 500;
}

/* Kadence puts a 3px rule under every table head (.wp-block-table thead) */
.acl-section .acl-mini-table thead { border-bottom: 0; }

.acl-section .acl-mini-table th,
.acl-section .acl-mini-table td {
  padding: 9px 10px;
  border: 0;
  text-align: left;
}

.acl-section .acl-mini-table th {
  padding: 8px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(15, 18, 22, .62);
}

.acl-section .acl-mini-table td { border-top: 1px solid rgba(0, 0, 0, .06); }

.acl-section .acl-mini-table th:first-child,
.acl-section .acl-mini-table td:first-child { padding-left: 18px; }

.acl-section .acl-mini-table th:last-child,
.acl-section .acl-mini-table td:last-child { padding-right: 18px; }

.acl-section .acl-mini-table th:nth-child(3),
.acl-section .acl-mini-table th:nth-child(4),
.acl-section .acl-mini-table td:nth-child(3),
.acl-section .acl-mini-table td:nth-child(4) { text-align: center; }

.acl-section .acl-mini-table td:nth-child(3) { font-weight: 700; }

.acl-section .acl-mini-table td:first-child,
.acl-section .acl-mini-table td:nth-child(4) { color: rgba(15, 18, 22, .62); }

/* ACL's own row is highlighted. Phase 1 marks it with <strong> in the cells;
   the phase-3 plugin will emit tr.acl-is-us — both are matched here so the
   plugin needs no CSS change. */
.acl-section .acl-mini-table tbody tr.acl-is-us td,
.acl-section .acl-mini-table tbody tr:has(strong) td {
  font-weight: 700;
  color: var(--wp--preset--color--navy);
  background: #f7f2e0;
}

/* "Other teams" panel */
.acl-section .acl-teams-panel {
  padding: 8px 20px;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 10px;
  background: #fff;
}

.acl-section .acl-team-row {
  gap: 6px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.acl-section .acl-team-row:last-child { border-bottom: none; }

.acl-section .acl-team-name {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.acl-section .acl-team-next {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(15, 18, 22, .62);
}

@media (max-width: 860px) {
  .acl-section .acl-grid-2 { flex-wrap: wrap !important; }
  .acl-section .acl-grid-2 > .wp-block-column { flex-basis: 100% !important; }
}

/* ---- Accueil §5 — actualités (flux Facebook) ---- */

.acl-section .acl-actu-grid { gap: 18px; }

.acl-section .acl-actu-card {
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.acl-section .acl-actu-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  padding: 10px;
  text-align: center;
}

.acl-section .acl-actu-body { padding: 16px 18px; }

.acl-section .acl-actu-meta { gap: 6px; align-items: center; margin-bottom: 6px; }

.acl-section .acl-actu-source {
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--blue);
}

.acl-section .acl-actu-time {
  margin: 0;
  font-size: 10.5px;
  font-weight: 500;
  color: #83878e;
}

.acl-section .acl-actu-title {
  margin: 0;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.acl-section .acl-actu-excerpt {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #575c64;
}

.acl-section .acl-section-link-actus { margin-top: 22px; }

/* Smash Balloon feed (phase 2) inherits the same card look.
   The plugin markup replaces .acl-actu-grid; these hooks keep the design. */
#cff .cff-item {
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

/* ---- Accueil §6 — accès & contact ---- */

.acl-section .acl-acces-grid { margin-bottom: 0; }

.acl-section .acl-map-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  border-radius: 10px;
  text-align: center;
}

.acl-section .acl-contact-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.acl-section .acl-contact-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--blue);
}

.acl-section .acl-contact-value {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

/* ---- Accueil §7 — discreet navy club bar ---- */

.acl-section .acl-band-club-text {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .75);
}

.acl-section .acl-band-club-link { margin: 0; }

.acl-section .acl-band-club-link a {
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wp--preset--color--gold);
}

.acl-section .acl-band-club-link a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .acl-section .acl-actu-grid { flex-wrap: wrap !important; }
  .acl-section .acl-actu-grid > .wp-block-column { flex-basis: 100% !important; }
}

/* =============================================================
   Site chrome — header & footer (Kadence header/footer builder)
   -------------------------------------------------------------
   Structure (zones, background colors, logo icon, button label/link,
   nav menu) is configured via Kadence theme mods, per the project's
   hard rule ("header/footer built with Kadence's builder, not in
   code") — see DECISIONS.md for the WP-CLI setup script. These rules
   only supply what the builder's typography/color controls can't:
   the self-hosted Barlow fonts, uppercase treatment, exact mockup
   spacing, and the badge+stacked-title layout Kadence doesn't offer
   as a preset.
   ============================================================= */

/* ---- Logo: club logo on a white plaque + stacked title/tagline ----
   Kadence renders logo, title and tagline as three siblings under
   .brand (not nested), so a 2-column grid — rather than nested flex —
   is what lets the logo sit beside a stacked text block. Kadence's
   own `.site-branding a.brand{display:flex}` (header.min.css) carries
   an element+2-class selector, so ours must match or exceed it. */
.site-header .site-branding a.brand {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 12px;
  align-items: center;
  text-decoration: none;
}

/* ---- Header gutter: the same 40px the page content uses ----
   `header_main_layout = fullwidth` (see header-footer-setup.php) lets the
   header reach the edges, but Kadence's own `.site-container` then applies a
   24px gutter — which is *not* where the content below starts, so the logo
   sat 16px left of everything under it and the CTA 16px right.

   Matching `.acl-section`'s 40px/20px instead, at the same 860px breakpoint,
   so the header lines up with the page at every width rather than only on
   desktop. Beats Kadence's single-class `.site-container` with two.
   Both trees need it: mobile is a separate #mobile-header. */
.site-header .site-container,
#mobile-header .site-container {
  padding-left: 40px;
  padding-right: 40px;
}

/* Largeur maximale de l'en-tête : 1280 = 1200 de contenu + les deux gouttières
   de 40, en border-box. Le logo et la pilule se calent ainsi exactement sur le
   contenu des sections à toutes les largeurs.

   QUATRE CLASSES, ET C'EST NÉCESSAIRE. Kadence débride explicitement le
   conteneur des rangées en pleine largeur :
     .site-header-row-layout-fullwidth > .site-header-row-container-inner
       > .site-container { max-width: none }
   soit trois classes (header.min.css et all.min.css). Un sélecteur à deux
   classes ne passait pas — c'est pourquoi la première tentative n'a rien changé
   à la barre alors qu'elle corrigeait bien le héro.

   Le FOND navy reste d'un bord à l'autre : il est porté par
   `.site-header-row-container-inner`, le parent de ce conteneur. */
.site-header .site-header-row-layout-fullwidth > .site-header-row-container-inner > .site-container,
#mobile-header .site-header-row-layout-fullwidth > .site-header-row-container-inner > .site-container {
  box-sizing: border-box;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 860px) {
  .site-header .site-container,
  #mobile-header .site-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* The official club logo is navy artwork on white and the header bar is
   navy: unaltered it would read as a dark smudge, and recoloring it would
   mean altering the club's mark. So it gets a white plaque instead — which
   is really just its own white background, squared off and rounded.

   No width here on purpose. Kadence emits `.site-branding a.brand img
   {max-width:…}` per breakpoint from the logo_width theme mod, and the
   artwork is square, so leaving width alone keeps those responsive sizes
   authoritative. border-box makes the padding eat into that width rather
   than add to it, so the plaque never outgrows the header.

   Beats Kadence's element+2-class rule with element+3 classes. */
.site-header .site-branding a.brand img.custom-logo {
  grid-row: 1 / 3;
  box-sizing: border-box;
  padding: 4px;
  background: #fff;
  border-radius: 8px;
}

/* ALIGNEMENT DU BLOC DE MARQUE SUR LA PLAQUE DU LOGO (demande de Boris,
   2026-08-09) : le haut de « ACL HANDBALL » sur le haut de la plaque blanche,
   le bas de « LODÈVE » sur son bas.

   Les deux lignes se serraient AU MILIEU (le titre calé en bas de sa rangée,
   la baseline calée en haut de la sienne). Mesuré sur staging : le titre
   commençait 1,6 px sous la plaque et « LODÈVE » débordait de 2,8 px dessous —
   4,4 px d'écart entre les deux côtés, ce qui se voit dès qu'on agrandit.
   Elles se calent maintenant sur les bords EXTÉRIEURS.

   DEUX CORRECTIONS, ET LA PREMIÈRE EST LA MOINS ÉVIDENTE :

   1. `line-height: 1` sur les deux lignes. Le pas entre elles était donné par
      leurs interlignes (1,1 et « normal »), ce qui rendait la pile de texte
      3,2 px plus HAUTE que la plaque sur mobile : aucun décalage ne pouvait
      alors aligner les deux bords à la fois — recoller le haut décollait le
      bas d'autant. Une fois les interlignes à 1, la pile mesure exactement la
      hauteur de la plaque (excédent mesuré : 0,1 px).

   2. `margin-top: -5.6px` sur le conteneur du titre. `align-self: start` cale
      le haut de la BOÎTE de ligne, pas le haut des lettres : entre les deux il
      reste la montée de la fonte au-dessus de la hauteur de capitale.

   3. `position: relative; top: 2px` sur ce même conteneur, et c'est le point
      subtil. La marge du (2) ne déplace pas seulement le titre : elle change la
      hauteur du bloc de marque, donc le recentrage du logo dedans, donc AUSSI
      la position de « LODÈVE ». `gapHaut + gapBas` reste constant (−1,1 px) —
      redescendre le titre d'un pixel avec la marge faisait descendre la
      baseline d'autant. `position: relative` décale le rendu SANS toucher à la
      mise en page : le titre bouge seul, « LODÈVE » ne bouge plus.

   POURQUOI DEUX RÉGLAGES ET PAS UN SEUL : le (2) fixe la mise en page (et donc
   le calage du bas, que Boris a validé à 0,9 px), le (3) corrige l'optique du
   haut sans y retoucher. Les fondre en un seul nombre est impossible tant que
   la pile de texte dépasse la plaque de 1,1 px.

   Les mêmes valeurs conviennent aux deux en-têtes parce que le titre y fait
   19 px dans les deux cas. EN PX ET NON EN EM À DESSEIN : `em` sur le conteneur
   se résoudrait sur la taille héritée (15,5 px), pas sur les 19 px du titre.
   À REDÉRIVER si la taille ou la fonte du titre change.

   MESURÉ, PAS DEVINÉ — et la première mesure était fausse : le demi-interligne
   se calcule sur (montée + descente) de la fonte, PAS sur la taille de police.
   Avec `line-height: 1` l'erreur valait 2 px, ce qui a fait croire à un haut
   aligné alors que le titre dépassait de 2 px au-dessus de la plaque — défaut
   que Boris a vu à l'œil. Formule correcte :
     demiInterligne = (interligne − (montée + descente)) / 2
     baseline       = hautDeBoîte + demiInterligne + montée
   Résultat vérifié sur staging : 0 px en haut, 0,9 px en bas, sur les deux
   arbres. */
.site-header .site-title-wrap {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin-top: -5.6px;
  position: relative;
  top: 2px;
}

.site-header .site-title {
  margin: 0;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
}

.site-header .site-description {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  margin: 0;
  font-family: var(--wp--preset--font-family--barlow);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold);
}

/* ---- Primary nav ----
   Kadence's own nav color is set via an inline `<style>` tag generated
   from the header theme mods (`.main-navigation .primary-menu-container
   > ul > li.menu-item > a`, 3 classes deep). The #primary-menu ID beats
   it outright rather than chasing that specificity. */
.site-header .main-navigation .menu {
  display: flex;
  align-items: center;
}

#primary-menu a {
  font-family: var(--wp--preset--font-family--barlow);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .7);
}

#primary-menu .current-menu-item > a,
#primary-menu a:hover { color: #fff; }

/* ---- CTA pill button ---- */
.site-header .header-button {
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: var(--wp--preset--color--gold);
  color: var(--wp--preset--color--navy);
}

.site-header .header-button:hover { background: #fff; }

/* ---- Mobile trigger + drawer ---- */
.menu-toggle-open,
.menu-toggle-close { color: #fff; }

#mobile-drawer .site-title,
#mobile-drawer .site-description { color: #fff; }

/* ---- Footer ---- */
.site-footer,
.site-footer .site-bottom-footer-wrap { background: var(--wp--preset--color--navy-dark); }

.site-footer .footer-html-inner p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.site-footer .acl-footer-brand {
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer .acl-footer-copy {
  font-family: var(--wp--preset--font-family--barlow);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, .55);
}

/* Liens légaux : au centre de la barre du bas sur grand écran, et sur leur
   propre ligne quand la barre passe en colonne. */
.site-footer .acl-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}

.site-footer .acl-footer-legal a {
  font-family: var(--wp--preset--font-family--barlow);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
}

.site-footer .acl-footer-legal a:hover,
.site-footer .acl-footer-legal a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* ---- Mobile header (<1025px — Kadence's own #mobile-header breakpoint) ----
   #main-header/#mobile-header are two separate, fully-independent markup
   trees (not one responsive layout), so the polish rules above only ever
   touch the desktop one; #mobile-header needs its own sizing entirely.
   Kadence lays the row out as `display:grid;grid-template-columns:auto auto`
   with no wrapping or shrinking — at real phone widths (~375–430px) the
   unmodified badge+title (left) plus button+hamburger (right) overflow
   past the right edge, taking the hamburger off-screen with them. */
#mobile-header .site-branding.mobile-site-branding a.brand {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 8px;
  align-items: center;
}

/* Le logo remplit exactement la barre : 40 + 8 + 8 = 56 px sur téléphone,
   42 + 10 + 10 = 62 px sur tablette — soit les hauteurs et rembourrages posés
   par `header-footer-setup.php` (décision du 2026-08-04).

   IL ÉTAIT ÉPINGLÉ À 36 px, ET C'ÉTAIT UN RESTE. Cette valeur venait du
   correctif de DÉBORDEMENT HORIZONTAL décrit juste au-dessus (à ~320 px, logo +
   titre + pilule + hamburger poussaient le hamburger hors de l'écran) — jamais
   d'un problème de hauteur. Or le même correctif a aussi posé
   `flex-wrap: wrap` sur la rangée, qui règle le débordement en repliant : deux
   parades pour un seul défaut, et c'est la réduction qui coûtait un logo plus
   petit que prévu.

   Ce que ça ne change pas, et c'est le point : la hauteur de la barre est un
   PLANCHER (`header_main_height`), pas une conséquence du contenu. À 36 px le
   contenu culminait à 52 px dans une barre de 56 — la barre ne bougeait pas,
   il y avait seulement 4 px de vide. La rendre plus basse demanderait de
   baisser `header_main_height` ; rapetisser le contenu n'y suffit pas.

   Coût du retour à 40 px : 4 px de largeur, sur une marge d'environ 50 px à
   375 px. La pilule, elle, reste volontairement à sa taille réduite : la
   ramener au format bureau coûterait ~30 px, soit presque toute la marge. */
#mobile-header .site-branding a.brand img.custom-logo {
  grid-row: 1 / 3;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 3px;
  background: #fff;
  border-radius: 6px;
}

/* Tablette (720–1024 px, la tranche « md » de Kadence — l'en-tête mobile sert
   jusqu'à 1024 px) : barre de 62 px et rembourrage de 10, donc 42 px. */
@media (min-width: 720px) {
  #mobile-header .site-branding a.brand img.custom-logo {
    width: 42px;
    height: 42px;
  }
}

/* Même calage que sur l'en-tête bureau, et la même valeur : voir le long
   commentaire « ALIGNEMENT DU BLOC DE MARQUE » plus haut pour le pourquoi des
   `line-height: 1` et du -5,6 px. Ici la plaque fait 40 px au lieu de 42 —
   c'est justement ce qui rendait le débordement du bas plus visible sur
   téléphone (2,8 px au bureau, 3,8 px sur mobile). */
#mobile-header .site-title-wrap {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin-top: -5.6px;
  position: relative;
  top: 2px;
}

/* Titre, baseline et pilule : mêmes tailles qu'au bureau (19 / 11 / 13 px),
   demande de Boris. La barre ne bouge pas — le texte culmine à ~35 px, sous
   le logo de 40 px, lui-même sous le plancher de 56. Le coût est en LARGEUR
   (~30 px) : c'est `flex-wrap: wrap` plus bas qui sert de filet si ça ne
   tient pas, la rangée passe alors sur deux lignes. */
#mobile-header .site-title {
  margin: 0;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

#mobile-header .site-description {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  margin: 0;
  font-family: var(--wp--preset--font-family--barlow);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold);
}

/* Kadence lays this row out as a non-wrapping 2-column grid
   (`.site-header-row{display:grid;grid-template-columns:auto auto}`,
   1 class — low specificity, easy to beat). On a real phone the badge +
   title + button + hamburger combined don't reliably fit one line at
   every width/locale, and a grid with no wrap just pushes the overflow
   off-screen (the hamburger vanishes entirely) instead of reflowing —
   that's what happened on Boris's phone. Switch to a wrapping flex row
   so if it doesn't fit, the button+hamburger drop to a second line
   instead of going off-canvas. */
#mobile-header .site-main-header-inner-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  row-gap: 6px;
}

#mobile-header .site-header-main-section-right { margin-left: auto; }

/* LA BARRE DOIT TENIR SUR UNE SEULE LIGNE (demande de Boris, 2026-08-09, capture
   d'écran d'iPhone à l'appui : logo + titre sur une ligne, pilule + hamburger
   rejetés sur une deuxième).

   Ce n'était pas une marge un peu juste, c'était un dépassement franc. Mesuré
   sur staging à 375 px : la rangée dispose de 335 px (375 moins les deux
   gouttières de 20), la partie gauche en occupe 153 et la droite 191, plus
   10 px d'écart entre les deux — soit 354 px demandés pour 335 disponibles,
   19 px de trop. `flex-wrap: wrap` faisait alors exactement son travail de
   filet : replier plutôt que pousser le hamburger hors de l'écran.

   LA GOUTTIÈRE DE 20 px N'EST PAS TOUCHÉE. C'est elle qui aligne le logo et la
   pilule sur le contenu des sections en dessous (voir « Header gutter » plus
   haut) ; la rogner ferait rentrer la barre au prix d'un décalage visible sur
   toute la page. La largeur est donc reprise à l'intérieur.

   D'abord un DOUBLON D'ESPACEMENT, et c'est la plus grosse part : la section de
   droite est un conteneur flex avec `gap`, mais Kadence pose EN PLUS un
   `margin-right: 10px` sur chaque `.site-header-item`. Les deux s'additionnaient
   entre la pilule et le hamburger — 20 px là où le dessin en demande 8. Le
   margin est neutralisé, le `gap` fait foi.

   Ensuite la pilule, rétrécie de 22 à 14 px de rembourrage horizontal et de 13 à
   12 px de corps. Sa HAUTEUR ne bouge pas (43 px, donc la cible tactile reste
   confortable) : le rembourrage vertical passe de 11 à 12 px, ce qui compense
   exactement la ligne de texte plus courte.

   Total repris : ~35 px. La rangée demande alors ~317 px pour 335 disponibles à
   375 px, et tient jusqu'à ~360 px de large. Le titre reste à 19 px — c'était
   une demande explicite de Boris (voir plus haut) et il n'a pas fallu y toucher.
   `flex-wrap: wrap` RESTE en place : en dessous de ~360 px, ou si un lecteur
   grossit les polices, mieux vaut encore une deuxième ligne qu'un hamburger
   hors écran. */
#mobile-header .header-button {
  padding: 12px 14px;
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--wp--preset--color--gold);
  color: var(--wp--preset--color--navy);
}

#mobile-header .site-header-main-section-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Le doublon décrit ci-dessus. Cadré à la section de droite : à gauche, le
   `margin-right` de l'item sépare le bloc de marque de ce qui suit et n'a pas
   d'équivalent en `gap`. */
#mobile-header .site-header-main-section-right > .site-header-item { margin-right: 0; }

@media (max-width: 860px) {
  .site-header .site-header-row-container-inner,
  .site-header .site-main-header-inner-wrap { flex-wrap: wrap; }
}

/* =============================================================
   Internal pages — shared hero + footer-info
   -------------------------------------------------------------
   Used by Le Club, Galerie, Infos Pratiques, Devenir Membre,
   Sponsors, Calendrier (hero only — Calendrier has no footer-info,
   matching the mockup, which the audit confirms is deliberate).
   ============================================================= */

/* ---- Internal page hero: navy + single blue diagonal ---- */

.acl-hero-page {
  position: relative;
  overflow: hidden;
}

.acl-hero-page::after {
  content: "";
  position: absolute;
  top: 0;
  right: -120px;
  width: 520px;
  height: 100%;
  background: var(--wp--preset--color--blue);
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .acl-hero-page::after { display: none; }
}

.acl-hero-page-inner {
  position: relative;
  z-index: 1;
  max-width: 640px !important; /* Kadence's constrained layout otherwise ignores the nested contentSize */
  margin: 0;
}

.acl-hero-page h1 {
  margin: 0 0 18px;
  line-height: .98;
  letter-spacing: .01em;
}

.acl-hero-page .acl-hero-page-lead {
  margin: 0;
  max-width: 480px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: #e0e3e8;
}

/* PALIERS DE LA BANNIÈRE DE PAGE — ET POURQUOI `!important` EST ICI LE BON OUTIL.

   Ces deux paliers viennent du modèle (`design/*.html` : 64 px, puis 44 px sous
   860, puis 34 px sous 560) et ils étaient ÉCRITS DEPUIS LE DÉBUT — mais aucun
   n'a jamais pris effet. Le `h1` porte la classe `has-xx-large-font-size` que
   pose l'éditeur de blocs, et WordPress en tire une règle en ligne :

     .has-xx-large-font-size { font-size: var(--wp--preset--font-size--xx-large) !important }

   Un `!important` bat n'importe quelle spécificité : la bannière restait donc à
   64 px À TOUTES LES LARGEURS, y compris sur téléphone. C'est ce qui coupait
   « CLASSEMENTS » en plein mot à 375 px — le mot mesure alors ~340 px pour
   335 px disponibles, et Kadence pose `word-break: break-word`, qui préfère
   scinder le mot plutôt que déborder. D'où le « S » seul sur sa ligne.

   `!important` de notre côté, donc, et la spécificité tranche ensuite :
   `.acl-hero-page h1` (0,1,1) l'emporte sur `.has-xx-large-font-size` (0,1,0).
   Cadré à la bannière de page, pas aux titres en général.

   UN PALIER À 420 px / 27 px A ÉTÉ SUPPRIMÉ ICI. Il avait été ajouté contre ce
   même symptôme, avec le diagnostic « ça coupe encore à 34 px » — diagnostic
   faux, puisque la page rendait 64 px et que sa règle ne s'appliquait pas plus
   que les autres. Mesuré : à 34 px « CLASSEMENTS » fait 181 px et
   « CALENDRIER & » 185 px, donc ça tient largement jusqu'à 320 px de large
   (280 px utiles). Le palier ne servait à rien et rapetissait la bannière pour
   rien ; on revient exactement au modèle. */
@media (max-width: 860px) {
  .acl-hero-page h1 { font-size: 44px !important; }
}

@media (max-width: 560px) {
  .acl-hero-page h1 { font-size: 34px !important; }
}

/* ---- Footer info: 3-col adresse / salles / contact ---- */

.acl-section .acl-footer-info-grid { gap: 32px; }

.acl-section .acl-footer-info-label {
  margin: 0 0 10px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wp--preset--color--blue);
}

.acl-section .acl-footer-info-value {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

/* The band is four columns (three venues + contact). Between the tablet range
   and the 860px stack, four abreast are too narrow — Kadence keeps flex columns
   on one row until then — so fold to 2×2 first. */
@media (max-width: 1100px) and (min-width: 861px) {
  .acl-footer-info-grid { flex-wrap: wrap !important; }
  .acl-footer-info-grid > .wp-block-column {
    flex-basis: calc(50% - 16px) !important;
    flex-grow: 0;
  }
  .acl-footer-info-grid > .wp-block-column:nth-child(n+3) { margin-top: 32px; }
}

@media (max-width: 860px) {
  .acl-footer-info-grid { flex-wrap: wrap !important; }
  .acl-footer-info-grid > .wp-block-column { flex-basis: 100% !important; }
}

/* =============================================================
   Le Club
   ============================================================= */

.acl-container-sm { max-width: 900px; margin: 0 auto; }

/* Centered 40px section title — shared by "Nos valeurs" and
   "L'équipe dirigeante" (identical treatment in the mockup). */
.acl-section-title-lg {
  margin: 0 0 40px;
  font-size: 40px;
  line-height: 1.1;
  text-align: center;
}

/* ---- Timeline ---- */

.acl-section .acl-timeline-row { gap: 40px; align-items: center; margin-bottom: 60px; }
.acl-section .acl-timeline-row:last-child { margin-bottom: 0; }
.acl-section .acl-timeline-reverse { flex-direction: row-reverse; }

.acl-section .acl-timeline-year {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--blue);
}

.acl-section .acl-timeline-title {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.05;
}

.acl-section .acl-timeline-text {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(15, 18, 22, .72);
}

.acl-section .acl-timeline-media {
  height: 280px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
}

/* Chronologie en texte seul (2026-08-01).
   Le contenu réel du club compte 8 étapes et aucune photo d'archive n'est
   numérisée : les lignes texte/photo ci-dessus ne sont plus utilisées par le
   motif, mais restent définies pour le jour où des photos reviendront sur
   quelques étapes.
   Le filet vertical remplace la photo comme repère de lecture : sans lui, huit
   blocs de texte à la suite se lisent comme un seul pavé. */
.acl-section .acl-timeline-entry {
  position: relative;
  padding: 0 0 0 28px;
  margin: 0 0 40px;
  border-left: 2px solid rgba(2, 103, 199, .18);
}

.acl-section .acl-timeline-entry:last-of-type { margin-bottom: 0; }

/* La pastille marque l'année sur le filet. Décorative : le repère de lecture
   réel est l'année en toutes lettres juste à côté. */
.acl-section .acl-timeline-entry::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--wp--preset--color--gold);
  border: 2px solid var(--wp--preset--color--base);
}

.acl-section .acl-timeline-entry .acl-timeline-title { margin-bottom: 12px; }

.acl-section .acl-timeline-outro {
  margin: 48px 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(15, 18, 22, .12);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--wp--preset--color--navy);
}

@media (max-width: 640px) {
  .acl-section .acl-timeline-entry { padding-left: 20px; margin-bottom: 32px; }
  .acl-section .acl-timeline-entry .acl-timeline-title { font-size: 26px; }
}

@media (max-width: 860px) {
  .acl-timeline-row,
  .acl-timeline-reverse { flex-wrap: wrap !important; flex-direction: row !important; }
  .acl-timeline-row > .wp-block-column { flex-basis: 100% !important; }
}

/* ---- Nos valeurs (navy) ---- */

.acl-club-valeurs .acl-club-valeurs-title { color: #fff; }
.acl-section .acl-club-valeurs-grid { gap: 32px; }

.acl-section .acl-value-title {
  margin: 0 0 12px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold);
}

.acl-section .acl-value-text {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
}

@media (max-width: 860px) {
  .acl-club-valeurs-grid { flex-wrap: wrap !important; }
  .acl-club-valeurs-grid > .wp-block-column { flex-basis: 100% !important; }
}

/* ---- Équipe dirigeante ----
   Sans photo (choix du club, 2026-08-01) : une pastille d'initiales tient lieu
   de portrait. Grille CSS et non wp:columns — 10 personnes ne tiennent pas dans
   une rangée de colonnes, et la grille se réorganise seule. */

.acl-section .acl-equipe-intro {
  margin: 0 0 8px;
  max-width: 62ch;
  color: rgba(15, 18, 22, .7);
}

.acl-section .acl-equipe-groupe-titre {
  margin: 32px 0 16px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--blue, #0267c7);
}

.acl-section .acl-equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.acl-section .acl-equipe-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-left: 3px solid var(--wp--preset--color--blue, #0267c7);
  border-radius: 10px;
}

.acl-section .acl-equipe-card.is-president {
  border-left-color: var(--wp--preset--color--gold, #debb19);
}

.acl-section .acl-equipe-initiales {
  flex: 0 0 auto;
  margin: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wp--preset--color--navy, #001d48);
  color: var(--wp--preset--color--gold, #debb19);
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
}

.acl-section .acl-equipe-info { min-width: 0; }

.acl-section .acl-equipe-nom {
  margin: 0 0 2px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
}

.acl-section .acl-equipe-role {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(15, 18, 22, .55);
}

@media (max-width: 600px) {
  .acl-section .acl-equipe-grid { grid-template-columns: 1fr; }
}

/* ---- Ancienne grille à photos (conservée : d'autres pages peuvent la réutiliser) ---- */

.acl-section .acl-team-grid { gap: 20px; }

.acl-section .acl-team-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 10px;
  overflow: hidden;
}

.acl-section .acl-team-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.acl-section .acl-team-info { padding: 16px; }

.acl-section .acl-team-name {
  margin: 0 0 4px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.acl-section .acl-team-role {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(15, 18, 22, .55);
}

@media (max-width: 860px) {
  .acl-team-grid { flex-wrap: wrap !important; }
  .acl-team-grid > .wp-block-column { flex: 1 1 50% !important; }
}

/* =============================================================
   Galerie
   ============================================================= */

.acl-section .acl-gal-title {
  margin: 0 0 8px;
  font-size: 26px;
}

/* Chapeau du motif de lancement (grille unique) : sert aussi d'appel aux
   photos des familles — voir PHOTOS-GALERIE.md. */
.acl-section .acl-gal-intro {
  margin: 0 0 30px;
  max-width: 640px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(15, 18, 22, .65);
}

.acl-section .acl-gal-intro a {
  color: var(--wp--preset--color--blue);
  text-decoration: underline;
}

/* ---- Sections (galerie-section pattern) : titre subordonné au H2 de page --
   H3 hérite déjà de la règle globale h1,h2,h3 (condensé, majuscules, 700) ;
   seuls la taille et les marges sont propres à la galerie. 19px contre les
   26px de .acl-gal-title suffit à marquer la hiérarchie sans accent de
   couleur, qui alourdirait une simple étiquette de mois/événement. */
.acl-section .acl-gal-section-title {
  margin: 0 0 20px;
  font-size: 19px;
}

/* Titre vide (bénévole qui ne renseigne pas de titre) : pas de balise
   fantôme, pas de vide à sa place. `display:none` annule aussi la marge
   ci-dessus, donc la grille qui suit ne laisse aucun espace résiduel.
   Limite connue : ne couvre que le vrai vide (`<h3></h3>`) ; un titre
   laissé avec une simple espace ou un `&nbsp;` n'est pas détectable en CSS
   seul (pas de sélecteur `:blank` fiable sans JS) — voir DECISIONS.md. */
.acl-section .acl-gal-section-title:empty {
  display: none;
}

/* Le wrapper de section suit directement ce qui précède (pas de padding-top
   propre, même logique que acl-infos-horaires après acl-infos-salles) ; le
   padding-bottom espace une section de la suivante, y compris quand son
   titre est vide. */
.acl-section.acl-gal-section {
  padding-top: 0;
  padding-bottom: 60px;
}

/* -------------------------------------------------------------
   Bloc Galerie natif (core/gallery), motif de lancement ou section
   -------------------------------------------------------------
   Ancrée sur la classe `acl-gal-galerie` du bloc lui-même plutôt que sur un
   ancêtre `.acl-galerie` : la grille unique de lancement et chaque section
   ajoutée (`galerie-section`) portent toutes deux cette classe, quelle que
   soit leur position dans la page — pas besoin que l'éditeur insère le motif
   au bon endroit dans l'arborescence pour que la grille s'affiche bien.
   Le cœur de WordPress met les vignettes en flex avec une largeur
   calculée (.columns-N … :not(#individual-image), d'où la
   spécificité d'un ID) : on repasse en grille pour retrouver la
   maquette — 4 colonnes, gouttière 16px, carré, coins 8px — et le
   `!important` est nécessaire pour neutraliser cette largeur.
   ------------------------------------------------------------- */

.acl-gal-galerie.wp-block-gallery.has-nested-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 16px;
}

.acl-gal-galerie.wp-block-gallery.has-nested-images > figure.wp-block-image {
  width: auto !important;
  max-width: none;
  flex: none;
  margin: 0;
}

.acl-gal-galerie.wp-block-gallery.has-nested-images > figure.wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 860px) {
  .acl-gal-galerie.wp-block-gallery.has-nested-images { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   Infos Pratiques
   -------------------------------------------------------------
   The mockup's "salles / horaires / tarifs" is ONE continuous
   .section-lg with 80px margin-bottom between each internal block —
   split here into 3 acl-sections so each is a standalone, reusable
   pattern. To reproduce the mockup's spacing exactly (not double it),
   only the first pattern carries top padding and only the last
   carries bottom padding; the gaps between them come from each
   grid's own margin-bottom, same as the mockup.
   ============================================================= */

.acl-container-md { max-width: 1000px; margin: 0 auto; }

.acl-section .acl-venues-grid { gap: 60px; margin-bottom: 80px; }

.acl-section .acl-venues-grid h2 {
  margin: 0 0 24px;
  font-size: 28px;
}

.acl-section .acl-venue { margin-bottom: 30px; }
.acl-section .acl-venue:last-child { margin-bottom: 0; }

.acl-section .acl-venue-name {
  margin: 0 0 8px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.acl-section .acl-venue-detail {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(15, 18, 22, .72);
}

.acl-section .acl-map-box {
  height: 360px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
}

/* Shared by "Horaires d'entraînement" and "Tarifs d'adhésion" */
.acl-section .acl-section-title {
  margin: 0 0 30px;
  font-size: 28px;
}

/* ---- Horaires d'entraînement --------------------------------
   Une carte par équipe, jusqu'à 8 (contre 4 catégories auparavant), d'où une
   vraie grille CSS et non plus un `wp-block-columns` : à 8 colonnes flex, les
   cartes tombaient à 130 px de large. `auto-fill` + `minmax` donne 4 colonnes
   en pleine largeur, 2 en tablette, 1 en mobile, sans point de rupture à
   maintenir.

   Deux états cohabitent en permanence : une équipe dont les créneaux sont
   connus, et une équipe encore en attente. Ce n'est pas transitoire — les
   horaires de la saison arrivent équipe par équipe en septembre, donc la page
   restera panachée plusieurs semaines. La carte en attente est volontairement
   DISCRÈTE (fond neutre, pas de cadre en pointillés) : répétée six fois, un
   encadré appuyé donnerait une page en travaux. */

.acl-section .acl-sched-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 80px;
}

.acl-section .acl-sched-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 10px;
  padding: 20px;
}

.acl-section .acl-sched-card--attente { background: var(--wp--preset--color--cream); }

.acl-section .acl-sched-t {
  margin: 0;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wp--preset--color--blue);
}

.acl-section .acl-sched-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(15, 18, 22, .55);
}

.acl-section .acl-sched-slots {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.acl-section .acl-sched-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid rgba(0, 0, 0, .07);
  font-size: 14px;
}

/* Largeur fixe : les jours s'alignent d'une ligne à l'autre, ce qui rend la
   colonne des horaires lisible en diagonale. « Mercredi » est le plus long. */
.acl-section .acl-sched-d {
  flex: none;
  width: 68px;
  font-weight: 700;
}

.acl-section .acl-sched-h {
  flex: 1;
  font-variant-numeric: tabular-nums;
  color: rgba(15, 18, 22, .72);
}

.acl-section .acl-sched-v {
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  background: var(--wp--preset--color--navy);
}

.acl-section .acl-sched-v-ramadier { background: var(--wp--preset--color--blue); }

/* Une salle inconnue du club (« autre ») ne prend pas une couleur de marque :
   elle serait lue comme un troisième lieu officiel. */
.acl-section .acl-sched-v-autre {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, .18);
  color: rgba(15, 18, 22, .66);
}

.acl-section .acl-sched-attente {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, .07);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15, 18, 22, .55);
}

/* ---- Tarifs -------------------------------------------------
   Trois cartes, et pas une par formule : à six, chacune tombait à 150 px de
   large pour 102 px de contenu utile. Les tarifs compétitifs (trois tranches
   d'année de naissance) occupent les cartes ; les autres formules vivent dans
   la liste qui suit, qui encaisse une ligne de plus sans rien casser.
   Cartes blanches à filet or, comme les cartes horaires voisines — les
   anciennes cartes navy juraient avec le reste de la page. */

.acl-section .acl-tarifs-intro {
  margin: 0 0 26px;
  font-size: 16px;
  color: rgba(15, 18, 22, .68);
}

.acl-section .acl-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.acl-section .acl-price-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-top: 5px solid var(--wp--preset--color--gold);
  border-radius: 12px;
  padding: 24px 22px;
  text-align: center;
}

.acl-section .acl-price-amount {
  margin: 0 0 2px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--wp--preset--color--navy);
}

.acl-section .acl-price-t {
  margin: 0;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--blue);
}

.acl-section .acl-price-desc {
  margin: 2px 0 0;
  font-size: 15px;
  color: rgba(15, 18, 22, .72);
}

/* ---- Formules non compétitives ---- */
.acl-section .acl-formules {
  margin: 22px 0 0;
  padding: 8px 22px;
  list-style: none;
  background: var(--wp--preset--color--cream);
  border-radius: 12px;
}

.acl-section .acl-formule {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.acl-section .acl-formule:last-child { border-bottom: 0; }

.acl-section .acl-formule-n {
  font-weight: 600;
  font-size: 16px;
  color: var(--wp--preset--color--navy);
}

.acl-section .acl-formule-d {
  font-weight: 400;
  font-size: 14px;
  color: rgba(15, 18, 22, .6);
}

/* Tiret décoratif : il n'a de sens que tant que la précision suit le nom sur
   la même ligne — en mobile elle passe dessous. */
.acl-section .acl-formule-d::before { content: "— "; }

.acl-section .acl-formule-p {
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 22px;
  font-weight: 700;
  color: var(--wp--preset--color--navy);
  white-space: nowrap;
}

.acl-section .acl-tarifs-note {
  margin: 14px 0 0;
  font-size: 14.5px;
  color: rgba(15, 18, 22, .68);
}

.acl-section .acl-tarifs-note strong { color: var(--wp--preset--color--navy); }

/* ---- Tableaux (page « Devenir licencié ») ---- */
.acl-section .acl-tbl {
  width: 100%;
  /* separate + border-spacing 0, et non collapse : un overflow:hidden pour
     arrondir les coins rognait la première lettre de la légende. */
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 12px;
}

.acl-section .acl-tbl + .acl-tbl { margin-top: 26px; }

.acl-section .acl-tbl caption {
  /* Même retrait horizontal que les cellules (padding: 13px 16px plus bas) :
     la légende est un <caption>, donc en dehors de la boîte des lignes, et son
     padding ne suivait pas celui des <td> — elle démarrait 16px plus à gauche
     que le contenu du tableau juste en dessous. Repéré sur mobile, capture à
     l'appui. */
  padding: 0 16px 8px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: left;
  color: var(--wp--preset--color--blue);
}

.acl-section .acl-tbl th,
.acl-section .acl-tbl td {
  padding: 13px 16px;
  text-align: left;
  font-size: 15.5px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.acl-section .acl-tbl thead th {
  background: var(--wp--preset--color--navy);
  color: #fff;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.acl-section .acl-tbl thead th:first-child { border-top-left-radius: 11px; }
.acl-section .acl-tbl thead th:last-child { border-top-right-radius: 11px; }
.acl-section .acl-tbl tbody tr:last-child td { border-bottom: 0; }

.acl-section .acl-tbl-price {
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 21px;
  font-weight: 700;
  color: var(--wp--preset--color--navy);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .acl-venues-grid { flex-wrap: wrap !important; }
  .acl-venues-grid > .wp-block-column { flex-basis: 100% !important; }

  /* `.acl-sched-grid` n'est plus un `wp-block-columns` mais une grille CSS :
     `auto-fill` gère seul le passage à une colonne, il n'y a plus de
     `flex-basis` à forcer. La règle historique visait `> .wp-block-column`,
     qui n'existe plus dans ce gabarit. */
  .acl-section .acl-sched-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Sur mobile, les cartes s'empilent : la hauteur devient le coût principal
     de la section, et les équipes SANS créneau la paient sans rien apporter.
     Mesuré à 375 px avec 8 équipes dont 4 en attente : 519 px sur 1215 px de
     grille, soit 43 % de hauteur pour quatre fois « on ne sait pas encore ».
     Et c'est l'état qui tiendra jusqu'en septembre.

     La carte en attente est donc RESSERRÉE, pas supprimée ni regroupée :
     chaque équipe garde la sienne (les créneaux arrivent équipe par équipe,
     un bloc groupé ne saurait pas représenter l'état partiel). On retire le
     filet de séparation et son écart : il sépare des créneaux d'un en-tête,
     or ici il n'y a pas de créneaux à séparer. */
  .acl-section .acl-sched-card--attente { padding: 16px 20px; }

  .acl-section .acl-sched-card--attente .acl-sched-attente {
    margin-top: 4px;
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 760px) {
  /* Les cartes deviennent des bandeaux : le montant à gauche, là où l'œil
     descend quand on balaie du pouce. */
  .acl-section .acl-price-grid { grid-template-columns: 1fr; }

  .acl-section .acl-price-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 16px 18px;
    border-top: 1px solid rgba(0, 0, 0, .07);
    border-left: 5px solid var(--wp--preset--color--gold);
  }

  .acl-section .acl-price-amount {
    font-size: 34px;
    min-width: 92px;
  }

  /* La précision passe sous le nom : sinon un libellé long enveloppe le prix,
     qui reste accroché à la première ligne. */
  .acl-section .acl-formule {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 14px;
  }

  .acl-section .acl-formule-d {
    display: block;
    margin-top: 1px;
  }

  .acl-section .acl-formule-d::before { content: none; }

  /* Tableau → paires étiquette/valeur, jamais de défilement horizontal. */
  .acl-section .acl-tbl,
  .acl-section .acl-tbl tbody,
  .acl-section .acl-tbl tr,
  .acl-section .acl-tbl td {
    display: block;
    width: 100%;
  }

  .acl-section .acl-tbl thead { display: none; }

  .acl-section .acl-tbl tr {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
  }

  .acl-section .acl-tbl tr:last-child { border-bottom: 0; }

  .acl-section .acl-tbl td {
    display: grid;
    grid-template-columns: 34% 1fr;
    gap: 12px;
    align-items: baseline;
    padding: 3px 12px;
    border: 0;
    text-align: right;
  }

  .acl-section .acl-tbl td::before {
    content: attr(data-l);
    text-align: left;
    white-space: nowrap;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(15, 18, 22, .55);
  }

  .acl-section .acl-tbl-price { font-size: 20px; }

  /* Tableau des catégories : la colonne de gauche se lit d'elle-même. Répéter
     « Catégorie / Années » sur onze lignes ajoutait 22 étiquettes de bruit.
     La ligne entière repasse en flex, sinon chaque cellule forme sa propre
     ligne et les années tombent sous le nom, doublant la hauteur. */
  .acl-section .acl-tbl-cats tr {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 11px 16px;
  }

  .acl-section .acl-tbl-cats td {
    display: block;
    width: auto;
    padding: 0;
    text-align: right;
  }

  .acl-section .acl-tbl-cats td::before { content: none; }
  .acl-section .acl-tbl-cats td:first-child {
    font-weight: 600;
    color: var(--wp--preset--color--navy);
  }
}

/* =============================================================
   Devenir Membre
   -------------------------------------------------------------
   Same "one continuous section-lg split into 3 patterns" spacing
   model as Infos Pratiques — see that block's comment above.
   ============================================================= */

.acl-section .acl-intro-grid { gap: 60px; margin-bottom: 80px; }
.acl-section .acl-intro-grid h2 { margin: 0 0 24px; font-size: 32px; }

.acl-section .acl-steps { display: flex; flex-direction: column; gap: 24px; }

.acl-section .acl-step-title-row {
  align-items: center;
  margin-bottom: 6px;
}

.acl-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--wp--preset--color--blue);
  color: #fff;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 18px;
  font-weight: 700;
}

.acl-section .acl-step-title {
  margin: 0;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.acl-section .acl-step-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(15, 18, 22, .72);
}

/* Colonne illustration de « Devenir licencié » — une vraie photo depuis le
   2026-08-07, plus le placeholder doré.

   La colonne fait 420 px de côté : 900 de conteneur (`acl-container-sm`)
   moins 60 de gouttière, divisé par deux. C'est un CARRÉ, et c'est ce qui
   rend la photo portrait utilisable — le recadrage garde toute la largeur de
   l'original et ne jette que du parquet vide.

   Plus de `padding` : il servait à espacer la légende du placeholder, il
   creuserait un liseré autour de l'image. */
.acl-section .acl-illus {
  height: 420px;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}

.acl-section .acl-illus > figure,
.acl-section .acl-illus > figure > img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.acl-section .acl-illus > figure > img {
  object-fit: cover;
}

.acl-section .acl-doc-panel {
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 80px;
}

.acl-section .acl-doc-grid { gap: 24px; }

.acl-section .acl-doc-t {
  margin: 0 0 8px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.acl-section .acl-doc-text {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
}

.acl-section .acl-contact-grid-2 { gap: 30px; }

.acl-section .acl-contact-card-2 {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 10px;
  padding: 28px;
}

.acl-section .acl-contact-card-t {
  margin: 0 0 16px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wp--preset--color--blue);
}

.acl-section .acl-contact-card-v {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(15, 18, 22, .72);
}

.acl-section .acl-contact-card-note {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(15, 18, 22, .55);
}

/* -------------------------------------------------------------
   Bandeau de rentrée (extension ACL Infos, [acl_essais])
   -------------------------------------------------------------
   Deux états, deux traitements. « Rentrée » est doré et se voit de
   loin : c'est le moment de l'année où la page reçoit le plus de
   visiteurs qui ne connaissent pas le club. « En cours de saison »
   est crème et discret — le message reste vrai en février, mais il
   n'a plus à crier.

   Le liseré est porté par border-left plutôt que par un ::before,
   pour qu'il survive à un fond de section changé sans prévenir.
   ------------------------------------------------------------- */

.acl-section .acl-essais {
  border-radius: 10px;
  /* Or foncé sur fond or : sur le bandeau de rentrée, un liseré de la même
     couleur que le fond ne se verrait pas. */
  border-left: 6px solid var(--wp--preset--color--gold-dark);
  padding: 24px 28px;
  margin-bottom: 40px;
  background: var(--wp--preset--color--gold);
}

.acl-section .acl-essais--saison {
  background: var(--wp--preset--color--cream);
  border-left-color: var(--wp--preset--color--blue);
}

.acl-section .acl-essais-titre {
  margin: 0 0 8px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--wp--preset--color--navy);
}

.acl-section .acl-essais-texte {
  margin: 0;
  max-width: 60ch;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(0, 29, 72, .82);
}

.acl-section .acl-essais--saison .acl-essais-texte { color: rgba(15, 18, 22, .72); }

/* -------------------------------------------------------------
   Par où commencer — les deux cartes ([acl_parcours])
   -------------------------------------------------------------
   Les cartes sont volontairement IDENTIQUES : ni l'une ni l'autre
   n'est mise en avant. Un renouvellement et une première licence
   sont deux publics, pas un principal et un secondaire — et c'est
   le nouveau venu, celui qu'on veut accueillir, qui se sentirait
   relégué si sa carte était la discrète.

   align-items: stretch + flex sur la carte : les deux boutons
   s'alignent en bas même si les listes de pièces sont de longueurs
   différentes, ce qu'elles sont par construction.
   ------------------------------------------------------------- */

.acl-section .acl-parcours { gap: 30px; align-items: stretch; margin-bottom: 60px; }

.acl-section .acl-parcours-carte {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-top: 4px solid var(--wp--preset--color--blue);
  border-radius: 10px;
  padding: 28px;
}

.acl-section .acl-parcours-titre {
  margin: 0 0 10px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wp--preset--color--navy);
}

.acl-section .acl-parcours-intro {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(15, 18, 22, .72);
}

.acl-section .acl-parcours-pieces {
  margin: 0 0 24px;
  padding-left: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(15, 18, 22, .72);
}

.acl-section .acl-parcours-pieces li { margin-bottom: 6px; }

/* margin-top auto : le bouton descend au bas de la carte. */
.acl-section .acl-parcours-cta { margin-top: auto; margin-bottom: 0; }

/* -------------------------------------------------------------
   Certificat médical ([acl_certificat], sous les deux cartes)

   Volontairement discret : ce n'est pas une troisième carte, et
   surtout pas un troisième bouton doré — la page a déjà deux
   appels à l'action, et en ajouter un ferait hésiter là où le
   parcours doit être évident. Un liseré doré et un lien suffisent
   à le rendre trouvable par qui le cherche.

   Le .acl-parcours au-dessus porte margin-bottom: 60px ; ce bloc
   remonte donc de 30px pour rester rattaché aux cartes.
   ------------------------------------------------------------- */

.acl-section .acl-certificat {
  margin: -30px 0 60px;
  padding: 18px 22px;
  background: var(--wp--preset--color--cream);
  border-left: 4px solid var(--wp--preset--color--gold);
  border-radius: 0 8px 8px 0;
}

.acl-section .acl-certificat-titre {
  margin: 0 0 6px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wp--preset--color--navy);
}

.acl-section .acl-certificat-texte {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(15, 18, 22, .72);
}

.acl-section .acl-certificat-lien { margin: 0; font-size: 14px; font-weight: 600; }

.acl-section .acl-certificat-lien a {
  color: var(--wp--preset--color--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.acl-section .acl-certificat-saison {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(15, 18, 22, .55);
}

/* -------------------------------------------------------------
   Moyens de paiement ([acl_paiement])
   ------------------------------------------------------------- */

.acl-section .acl-paiement-intro {
  margin: 0 0 28px;
  max-width: 60ch;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(15, 18, 22, .72);
}

.acl-section .acl-paiement-grid { gap: 24px; flex-wrap: wrap; }

.acl-section .acl-paiement-moyen {
  background: var(--wp--preset--color--cream);
  border-radius: 8px;
  padding: 20px;
}

.acl-section .acl-paiement-t {
  margin: 0 0 6px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wp--preset--color--blue);
}

.acl-section .acl-paiement-texte {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(15, 18, 22, .72);
}

.acl-section .acl-paiement-note {
  margin: 24px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(15, 18, 22, .55);
}

@media (max-width: 860px) {
  .acl-intro-grid,
  .acl-doc-grid,
  .acl-contact-grid-2,
  .acl-parcours { flex-wrap: wrap !important; gap: 30px; }
  .acl-intro-grid > .wp-block-column,
  .acl-doc-grid > .wp-block-column,
  .acl-contact-grid-2 > .wp-block-column,
  .acl-parcours > .wp-block-column { flex-basis: 100% !important; }

  /* Une fois la colonne à pleine largeur, les 420 px fixes ne veulent plus
     rien dire : sur un téléphone de 375 px ils donnent une bande plus haute
     que large, et `object-fit:cover` rogne alors les côtés de la photo — donc
     les enfants du bord. En carré, on montre la même image qu'au bureau. */
  .acl-section .acl-illus {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  /*
   * Les moyens de paiement restent sur DEUX colonnes en mobile : ce
   * sont cinq libellés courts, les passer à 100 % produisait cinq
   * cartes empilées pour une information qui tient en un coup d'œil.
   * La grille est déclarée dans l'extension (assets/acl-infos.css) —
   * ici on ne fait qu'en changer le nombre de colonnes.
   */
  .acl-section .acl-paiement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .acl-section .acl-essais { padding: 20px; }
  .acl-section .acl-essais-titre { font-size: 19px; }
}

/* =============================================================
   Sponsors
   ============================================================= */

/* Le sous-titre de palier (« Soutien prioritaire »…) a été retiré le
   2026-08-11 ; c'est lui qui portait l'écart de 40 px avant la grille, d'où
   cette marge reprise par le titre — sans quoi les logos se collent au
   titre. */
.acl-section .acl-tier-title { margin: 0 0 40px; font-size: 28px; }

.acl-section .acl-grid-gold {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.acl-section .acl-grid-silver {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.acl-section .acl-grid-bronze {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.acl-sponsor-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

/* Palier institutionnel (ajouté le 2026-08-11) — collectivités et
   institutions, au-dessus des partenaires principaux. Bordure NAVY et non or :
   l'or est déjà pris par le palier du dessous, et deux bordures dorées de
   largeurs différentes ne se distinguent pas en scrollant. Le navy dit « autre
   nature de partenaire » plutôt que « même chose en plus gros ». */
.acl-sponsor-box-inst { min-height: 180px; padding: 44px; border-radius: 10px; border: 2px solid var(--wp--preset--color--navy); }
.acl-sponsor-box-gold { min-height: 160px; padding: 40px; border-radius: 10px; border: 2px solid var(--wp--preset--color--gold); }
.acl-sponsor-box-silver { min-height: 140px; padding: 32px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .1); }
.acl-sponsor-box-bronze { min-height: 120px; padding: 24px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .08); }

.acl-sponsor-logo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acl-sponsor-logo-caption { margin: 0; font-family: ui-monospace, monospace; }

.acl-sponsor-logo-gold {
  height: 80px;
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, #e4e0d8 0 8px, #d8d3c8 8px 16px);
}
.acl-sponsor-logo-gold .acl-sponsor-logo-caption { font-size: 11px; color: #847d6e; }

.acl-sponsor-logo-silver {
  height: 70px;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, #ede9e0 0 6px, #e0dbd0 6px 12px);
}
.acl-sponsor-logo-silver .acl-sponsor-logo-caption { font-size: 10px; color: #9c8f84; }

.acl-sponsor-logo-bronze {
  height: 60px;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, #f0ede4 0 4px, #e5ddd2 4px 8px);
}
.acl-sponsor-logo-bronze .acl-sponsor-logo-caption { font-size: 9px; color: #a89a8f; }

.acl-sponsors-cta { text-align: center; }

.acl-sponsors-cta .acl-sponsors-cta-title { margin: 0 0 20px; font-size: 32px; }

.acl-sponsors-cta .acl-sponsors-cta-tel {
  margin: 18px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .9);
}

.acl-sponsors-cta .acl-sponsors-cta-tel a {
  color: var(--wp--preset--color--gold, #debb19);
  text-decoration: none;
  font-weight: 700;
}

.acl-sponsors-cta .acl-sponsors-cta-text {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
}

@media (max-width: 860px) {
  .acl-section .acl-grid-gold { grid-template-columns: 1fr; }
  .acl-section .acl-grid-silver,
  .acl-section .acl-grid-bronze { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Sponsors — live data (extension ACL Sponsors) ----------
   The plugin's templates are hand-written markup, so they never receive WP's
   generated block-layout classes (is-layout-flex / wp-container-*) the static
   patterns rely on — every flex/grid property here must be declared outright.
   Same lesson as the FFHandball templates.

   Grids are FLEX, not CSS Grid, specifically so a partial last row centres
   instead of leaving a hole on the right: the club will rarely have exactly
   3/4/6 sponsors in a tier. flex-basis reproduces the static grid's column
   widths exactly when a row is full.
   ------------------------------------------------------------ */

/* Tier spacing: only BETWEEN sections, so whichever tiers exist, the first has
   no stray top margin and the last no trailing gap. */
.acl-section .acl-sponsor-tier + .acl-sponsor-tier { margin-top: 80px; }

.acl-section .acl-sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.acl-section .acl-sponsor-grid-inst { gap: 24px; }
.acl-section .acl-sponsor-grid-gold { gap: 24px; }
.acl-section .acl-sponsor-grid-silver { gap: 20px; }
.acl-section .acl-sponsor-grid-bronze,
.acl-section .acl-sponsor-grid-autre { gap: 16px; }

/* 3 par rangée comme le palier principal : les logos d'institutions (mairie,
   département, région) sont larges, et 2 par rangée les étirerait au point de
   dominer la page entière. */
.acl-section .acl-sponsor-grid-inst > .acl-sponsor-box { flex: 0 1 calc((100% - 2 * 24px) / 3); }
.acl-section .acl-sponsor-grid-gold > .acl-sponsor-box { flex: 0 1 calc((100% - 2 * 24px) / 3); }
.acl-section .acl-sponsor-grid-silver > .acl-sponsor-box { flex: 0 1 calc((100% - 3 * 20px) / 4); }
.acl-section .acl-sponsor-grid-bronze > .acl-sponsor-box,
.acl-section .acl-sponsor-grid-autre > .acl-sponsor-box { flex: 0 1 calc((100% - 5 * 16px) / 6); }

/* Untiered: bronze sizing, but no border and no section heading — these are
   partners the club hasn't ranked, and a border would imply a tier. */
.acl-section .acl-sponsor-box-autre {
  min-height: 120px;
  padding: 24px;
  border-radius: 8px;
  border: none;
}

/* NB: these are scoped under .acl-section rather than left as single-class
   rules, because Kadence styles `.single-content a` and `.single-content img`
   with two-class selectors that would otherwise win regardless of load order —
   the recurring specificity trap on this project. */
.acl-section .acl-sponsor-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

/* The WRAP carries the height, and the image fills it with object-fit:contain.
   That way a logo scales to the box whatever its source size — volunteers
   upload anything from a 200px JPEG to a 2000px PNG, and a rule based on the
   image's own dimensions would leave the small ones looking lost in a big box.
   contain also guarantees nothing is ever cropped or stretched. */
/* --acl-logo-k : coefficient posé en ligne par l'extension, d'après la forme
   du logo (voir logo_scale_attr()). À hauteur d'emplacement fixe, tous les
   logos sortent à la même hauteur et c'est la largeur qui varie du simple au
   double — l'œil compare des surfaces, pas des hauteurs, et croit à un
   réglage qui n'existe pas. Le coefficient donne de la hauteur aux logos
   ramassés et en retire aux logos en bandeau, ce qui resserre les largeurs.
   Défaut 1 : sans l'extension, ou sans dimensions connues, rien ne change. */
.acl-section .acl-sponsor-logo-wrap {
  display: flex;
  width: 100%;
  --acl-logo-h: 80px;
  height: calc(var(--acl-logo-h) * var(--acl-logo-k, 1));
  align-items: center;
  justify-content: center;
}

.acl-section .acl-sponsor-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.acl-section .acl-sponsor-box-inst .acl-sponsor-logo-wrap { --acl-logo-h: 88px; }
.acl-section .acl-sponsor-box-silver .acl-sponsor-logo-wrap { --acl-logo-h: 70px; }
.acl-section .acl-sponsor-box-bronze .acl-sponsor-logo-wrap,
.acl-section .acl-sponsor-box-autre .acl-sponsor-logo-wrap { --acl-logo-h: 60px; }

/* Homepage strip — live. The static rows get their flex from WP's block
   layout classes; these hand-written ones must set it themselves. */
.acl-section .acl-sponsor-row-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.acl-section .acl-sponsor-band-lg,
.acl-section .acl-sponsor-band-sm {
  flex: 0 0 auto;
  min-height: 0;
  padding: 8px;
  border: none;
  border-radius: 8px;
}

.acl-section .acl-sponsor-band-lg { width: 170px; height: 70px; }
.acl-section .acl-sponsor-band-sm { width: 120px; height: 50px; border-radius: 6px; }

/* La bande d'accueil garde une hauteur ferme : `height` l'emporte ici sur le
   `calc()` ci-dessus, donc --acl-logo-k n'y joue pas. C'est voulu — ces deux
   valeurs ont été réglées à l'œil sur les 7 pages (dont 34 px en mobile,
   vérifié le 2026-08-09), et une bande de logos alignés sur une même ligne
   pardonne moins la hauteur variable qu'une grille de cartes. À revoir si la
   même disparité s'y voit. */
.acl-section .acl-sponsor-band-lg .acl-sponsor-logo-wrap { height: 54px; }
.acl-section .acl-sponsor-band-sm .acl-sponsor-logo-wrap { height: 34px; }

@media (max-width: 860px) {
  .acl-section .acl-sponsor-grid-inst > .acl-sponsor-box { flex: 0 1 100%; }
  .acl-section .acl-sponsor-grid-gold > .acl-sponsor-box { flex: 0 1 100%; }
  .acl-section .acl-sponsor-grid-silver > .acl-sponsor-box { flex: 0 1 calc((100% - 20px) / 2); }
  .acl-section .acl-sponsor-grid-bronze > .acl-sponsor-box,
  .acl-section .acl-sponsor-grid-autre > .acl-sponsor-box { flex: 0 1 calc((100% - 16px) / 2); }
  .acl-section .acl-sponsor-tier + .acl-sponsor-tier { margin-top: 56px; }
}

/* Accueil "Merci à nos partenaires" strip on mobile: with no partner marked
   "or" in the DB, the plugin's guard-rail promotes all 33 logos to the large
   size (.acl-sponsor-band-lg, 170px wide) — that's out of scope here, don't
   "fix" it in PHP. At 375px the container is only 335px wide, so those
   170px boxes can't fit two per row and stack one-per-row: a 3150px-tall
   strip, 42% of the whole Accueil page — more than résultats + actualités
   combined. Fix is CSS-only, scoped to .acl-band-sponsors specifically
   (NOT .acl-sponsor-grid, which is the Sponsors page and must stay
   untouched): force a 2-column grid and let logos shrink to fit. A 3-column
   grid was tested and rejected by Boris — it's more compact but makes the
   text-heavy artisan logos (Franck Beteille, Laverie des Halles, Globe
   Trotteur — address/phone number in the logo) unreadable. 2 columns takes
   the strip from 3150px to 1616px (-49%) while keeping every logo legible.
   Desktop is untouched. */
@media (max-width: 860px) {
  .acl-band-sponsors .acl-sponsor-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .acl-band-sponsors .acl-sponsor-box { width: auto; height: 72px; padding: 8px; }
  .acl-band-sponsors .acl-sponsor-logo-wrap { width: 100%; height: 100%; }
  .acl-band-sponsors .acl-sponsor-img { width: 100%; height: 100%; object-fit: contain; }
}

/* =============================================================
   Calendrier — static placeholder data (phase 1).
   The acl-ffhandball-results plugin (phase 3) will render the same
   markup shape into these same classes; ACL's own row is matched by
   tr.acl-is-us so the plugin can emit it directly, same convention
   as the Accueil résultats teaser.
   ============================================================= */

.acl-section .acl-source-note-text {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(15, 18, 22, .68);
}

.acl-section .acl-team-tag { gap: 12px; margin-bottom: 6px; }

.acl-eyebrow-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--wp--preset--color--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.acl-section .acl-team-tag h2 { margin: 0; font-size: 26px; }

.acl-section .acl-team-layout { gap: 20px; align-items: flex-start; }
.acl-team-layout > .wp-block-column:first-child { flex: 1.4; }
.acl-team-layout > .wp-block-column:last-child { flex: 1; }

.acl-section .acl-table-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 10px;
  overflow: hidden;
}

.acl-section .acl-standings { margin: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.acl-section .acl-standings table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-weight: 500;
}

.acl-section .acl-standings th {
  padding: 10px 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, .75);
  background: var(--wp--preset--color--navy);
}

.acl-section .acl-standings td {
  padding: 11px 8px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.acl-section .acl-standings th.l,
.acl-section .acl-standings td.l { text-align: left; padding-left: 16px; }

.acl-section .acl-standings tbody tr.acl-is-us td {
  font-weight: 700;
  color: var(--wp--preset--color--navy);
  background: #f7f2e0;
}

@media (max-width: 860px) {
  .acl-standings table { min-width: 620px; }
  .acl-team-layout { flex-wrap: wrap !important; }
  .acl-team-layout > .wp-block-column { flex-basis: 100% !important; }
}

.acl-section .acl-side-col { display: flex; flex-direction: column; gap: 12px; }

.acl-section .acl-side-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--wp--preset--color--blue);
}

.acl-side-label-top { margin-top: 6px !important; }

.acl-section .acl-match-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 10px;
  padding: 14px 16px;
}

.acl-section .acl-match-m { margin: 0; font-size: 14px; font-weight: 600; }
.acl-section .acl-match-d { margin: 0; font-size: 12px; font-weight: 500; color: rgba(15, 18, 22, .55); }

/* Salle du prochain match (page Calendrier, fond clair). */
.acl-section .acl-match-salle { margin: 8px 0 0; font-size: 12px; line-height: 1.45; }

.acl-section .acl-match-salle a {
  color: var(--wp--preset--color--navy);
  text-decoration: none;
  font-weight: 600;
}

.acl-section .acl-match-salle a:hover,
.acl-section .acl-match-salle a:focus-visible { color: var(--wp--preset--color--blue); }

.acl-section .acl-match-salle-adresse {
  display: block;
  font-weight: 400;
  color: rgba(15, 18, 22, .55);
}

/* « Ouvrir dans Google Maps » : même formulation que la carte des salles, pour
   que le visiteur reconnaisse l'action d'une page à l'autre. */
.acl-section .acl-match-salle-maps {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--wp--preset--color--blue);
}

.acl-section .acl-result-box {
  background: var(--wp--preset--color--cream);
  border-radius: 10px;
  padding: 14px 16px;
}

.acl-section .acl-result-s {
  margin: 0;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 18px;
  font-weight: 800;
  color: var(--wp--preset--color--navy);
}

/* Dernier résultat gagné (page Calendrier) : la carte crème passe en marine,
   avec la pastille dorée du bouton « Devenir licencié » et le score en or.
   Nuls et défaites gardent la carte crème. */
.acl-section .acl-result-box--win {
  background: var(--wp--preset--color--navy);
  box-shadow: inset 4px 0 0 var(--wp--preset--color--gold);
}

.acl-section .acl-result-box--win .acl-result-s {
  font-size: 22px;
  line-height: 1.15;
  color: #fff;
}

.acl-section .acl-result-box--win .acl-result-score { color: var(--wp--preset--color--gold); }

.acl-section .acl-result-box--win .acl-match-d { color: rgba(255, 255, 255, .72); }

.acl-section .acl-result-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--wp--preset--color--gold);
  color: var(--wp--preset--color--navy);
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.acl-section .acl-jeunes-title { margin: 0 0 6px; }

.acl-section .acl-section-sub {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(15, 18, 22, .55);
}

.acl-section .acl-block-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 10px;
  overflow: hidden;
}

.acl-section .acl-block-head {
  padding: 16px 18px;
  background: var(--wp--preset--color--navy);
}

.acl-section .acl-block-head-t {
  margin: 0;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
}

.acl-section .acl-jeunes-cards { gap: 18px; }

.acl-section .acl-youth-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 10px;
  padding: 20px;
}

.acl-section .acl-youth-name {
  margin: 0 0 2px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.acl-section .acl-youth-div {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(15, 18, 22, .55);
}

.acl-section .acl-youth-rank {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 12px;
}

.acl-youth-num,
.acl-youth-num-sm {
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-weight: 800;
  color: var(--wp--preset--color--navy);
}

.acl-youth-num { font-size: 30px; }
.acl-youth-num sup { font-size: 15px; top: -.6em; }
.acl-youth-num-sm { font-size: 22px; }

.acl-youth-of { font-size: 12px; font-weight: 500; color: rgba(15, 18, 22, .55); }

.acl-youth-divider {
  width: 100%;
  max-width: none;
  height: 1px;
  margin: 0 0 12px;
  border: 0;
  background: rgba(0, 0, 0, .06);
  opacity: 1;
}

.acl-section .acl-youth-next-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wp--preset--color--blue);
}

.acl-section .acl-youth-next-match { margin: 0; font-size: 13px; font-weight: 600; }
.acl-section .acl-youth-next-meta { margin: 0; font-size: 12px; font-weight: 500; color: rgba(15, 18, 22, .55); }

@media (max-width: 860px) {
  .acl-jeunes-cards { flex-wrap: wrap !important; }
  .acl-jeunes-cards > .wp-block-column { flex-basis: 100% !important; }
}

.acl-section .acl-leisure-panel {
  padding: 22px 24px;
  border-radius: 10px;
  gap: 10px;
}

.acl-section .acl-leisure-t {
  margin: 0;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.acl-section .acl-leisure-d { margin: 0; font-size: 13px; font-weight: 500; color: rgba(15, 18, 22, .55); }
.acl-leisure-panel .acl-section-link { margin: 0; text-align: left; }

/* =============================================================
   FFHandball results plugin (acl-ffhandball-results)
   -------------------------------------------------------------
   The plugin's templates deliberately reuse the acl-* classes above
   (.acl-standings, .acl-card-dark, .acl-mini-table, .acl-teams-panel…)
   so live data inherits the design with no duplication. Only the few
   genuinely new bits live here.
   ============================================================= */

.acl-section .acl-ffhb-team { margin-bottom: 48px; }
.acl-section .acl-ffhb-team:last-of-type { margin-bottom: 0; }

/*
 * The static Calendrier patterns build the 1.4fr/1fr team layout out of a WP
 * columns block, so the shared rules above size `> .wp-block-column`. The
 * plugin templates emit plain divs (no block markup), so the same layout has to
 * be re-declared here against the real children — including `display:flex`,
 * which the static version inherited from `.wp-block-columns`.
 */
.acl-section .acl-ffhb-team .acl-team-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.acl-section .acl-ffhb-team .acl-table-card { flex: 1 1 420px; min-width: 0; }
.acl-section .acl-ffhb-team .acl-side-col { flex: 1 1 260px; min-width: 0; }

@media (max-width: 860px) {
  .acl-section .acl-ffhb-team .acl-table-card,
  .acl-section .acl-ffhb-team .acl-side-col { flex-basis: 100%; }
}

/*
 * Same cause as the team-layout rule above: the static patterns get their flex
 * behaviour from WP's generated block-layout classes (`is-layout-flex` plus a
 * `wp-container-*` class carrying gap/justify). Hand-written template markup
 * never receives those, so the few flex rows the teaser uses are declared here.
 */
.acl-ffhb-teaser .acl-score-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.acl-ffhb-teaser .acl-mini-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/*
 * Classement FANTÔME — poule sans classement publié (2026-10-04).
 *
 * Remplace la phrase seule, qui laissait une carte presque vide. Le tableau
 * garde la forme d'un classement (en-tête, lignes) mais tout est gris et les
 * chiffres sont des barres : impossible de le prendre pour de vraies données.
 * Le message, posé dessus dans une pastille blanche, dit l'essentiel.
 * Rendu par `Acl_FFHB_Format::standings_placeholder()`, sur la page Calendrier
 * et dans la carte de classement de l'accueil (variante `--compact`).
 */
.acl-standings-ghost {
  position: relative;
  overflow: hidden;
}

.acl-standings-ghost table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  opacity: .55;
}

.acl-standings-ghost th {
  padding: 10px 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(15, 18, 22, .45);
  background: #ecebe6;
}

.acl-standings-ghost td {
  padding: 13px 8px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, .05);
}

.acl-standings-ghost th.l,
.acl-standings-ghost td.l { text-align: left; padding-left: 16px; }

.acl-standings-ghost .acl-ghost-bar {
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 8px;
  border-radius: 4px;
  background: #e2e0d9;
}

.acl-standings-ghost td.l .acl-ghost-bar { display: block; }
.acl-standings-ghost td.l:first-child .acl-ghost-bar { width: 12px; }

/* Les lignes s'effacent vers le bas : le tableau « s'arrête » sous le
   message au lieu de se lire comme une liste vide coupée net. */
.acl-standings-ghost::after {
  content: "";
  position: absolute;
  inset: 40% 0 0 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

.acl-standings-ghost .acl-ghost-msg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 29, 72, .08);
  text-align: center;
}

.acl-standings-ghost .acl-ghost-title {
  margin: 0;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(15, 18, 22, .62);
}

.acl-standings-ghost .acl-ghost-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(15, 18, 22, .55);
}

.acl-standings-ghost--compact td { padding: 10px 8px; }
.acl-standings-ghost--compact th:first-child,
.acl-standings-ghost--compact td:first-child { padding-left: 18px; }

/*
 * Lignes « autres équipes » : nom | dernier résultat | prochain match.
 * Grille plutôt que flex : les scores s'alignent en colonne d'une ligne à
 * l'autre, ce qui se lit comme un tableau de résultats. Sous 600 px, le nom
 * passe seul sur la première ligne.
 */
.acl-ffhb-teaser .acl-team-row {
  display: grid;
  /* Trois colonnes en fractions, pas `auto` : chaque ligne est sa propre
     grille, et une colonne `auto` prendrait une largeur différente selon que
     la ligne a un prochain match ou non — les scores ne s'aligneraient plus. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 6px 16px;
}

.acl-ffhb-teaser .acl-team-row .acl-team-next { text-align: right; }

/* Rang dans la poule, accolé au nom : discret, le résultat reste l'élément
   fort de la ligne. */
.acl-ffhb-teaser .acl-team-rank {
  margin-left: 6px;
  font-weight: 500;
  /* Le nom est en capitales : sans ça, « 3e » s'affiche « 3E ». */
  text-transform: none;
  color: rgba(15, 18, 22, .55);
}

.acl-ffhb-teaser .acl-team-last {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  font-size: 13px;
}

.acl-ffhb-teaser .acl-team-row .acl-team-next { grid-column: 3; }

.acl-ffhb-teaser .acl-team-last-score {
  flex: none;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 16px;
  font-weight: 700;
  color: var(--wp--preset--color--navy);
}

.acl-ffhb-teaser .acl-team-last-opp {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(15, 18, 22, .7);
}

.acl-ffhb-teaser .acl-outcome-chip {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

/* Victoire : les couleurs de la carte gagnante du Calendrier (or sur marine). */
.acl-ffhb-teaser .acl-outcome-chip--win { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--gold); }
.acl-ffhb-teaser .acl-outcome-chip--draw { background: #e6e4dd; color: rgba(15, 18, 22, .7); }
.acl-ffhb-teaser .acl-outcome-chip--loss { background: transparent; color: rgba(15, 18, 22, .55); box-shadow: inset 0 0 0 1px rgba(15, 18, 22, .25); }

/* Mobile : nom et prochain match sur la première ligne, le résultat seul sur
   la seconde — partagé avec la date, le nom de l'adversaire disparaissait. */
@media (max-width: 600px) {
  .acl-ffhb-teaser .acl-team-row { grid-template-columns: auto minmax(0, 1fr); }
  .acl-ffhb-teaser .acl-team-row .acl-team-name { grid-column: 1; grid-row: 1; white-space: nowrap; }
  .acl-ffhb-teaser .acl-team-row .acl-team-next { min-width: 0; }
  .acl-ffhb-teaser .acl-team-row .acl-team-next { grid-column: 2; grid-row: 1; }
  .acl-ffhb-teaser .acl-team-last { grid-column: 1 / -1; grid-row: 2; }
}

/*
 * Mobile: interleave each team's score card with its own standings card
 * (score, classement, score, classement) instead of all scores then all
 * standings. The two rows are separate `.wp-block-columns` blocks — order
 * only reorders siblings within one flex/grid container, so both wrappers
 * are flattened with `display: contents` and the four columns become direct
 * children of `.acl-ffhb-teaser`, which is switched to a column flex here.
 * Desktop (>860px) keeps the existing two-row layout untouched.
 */
@media (max-width: 860px) {
  /* `gap` is required, not decorative: flattening the two wrappers with
   * `display: contents` discards THEIR gap, and without this the cards sit
   * flush against each other (measured: 20px spacing collapsed to 0). */
  .acl-ffhb-teaser { display: flex; flex-direction: column; gap: 20px; }
  .acl-ffhb-teaser .acl-grid-2-cards,
  .acl-ffhb-teaser .acl-grid-2-standings { display: contents; }

  /* Repli d'abord : une colonne non appariée prendrait `order: 0` et passerait
   * devant toutes les paires ci-dessous. Valeur volontairement très haute pour
   * ne pas entrer en collision avec les paires — au-delà de la 4e équipe, les
   * colonnes s'ajoutent à la fin plutôt que d'être promues en tête. */
  .acl-ffhb-teaser .acl-grid-2-cards > .wp-block-column,
  .acl-ffhb-teaser .acl-grid-2-standings > .wp-block-column { order: 20; }

  /* L'appariement par position n'est fiable que parce que le gabarit rend
     TOUJOURS une colonne de classement par carte de score, même sans
     classement publié. Ne pas revenir à un `continue` côté PHP : le
     `nth-child(1)` des classements deviendrait celui de la deuxième équipe.

     Les paires vont jusqu'à 4 alors que le teaser expédie `limit="2"`
     aujourd'hui. Ce n'est pas gratuit : à 3 équipes le repli `order: 5`
     apparie encore juste par hasard (égalité d'ordre, donc ordre du
     document), mais à 4 il regrouperait les deux cartes puis les deux
     classements. Autant que le passage à 3 ou 4 équipes soit un simple
     changement d'attribut. */
  .acl-ffhb-teaser .acl-grid-2-cards > .wp-block-column:nth-child(1) { order: 1; }
  .acl-ffhb-teaser .acl-grid-2-standings > .wp-block-column:nth-child(1) { order: 2; }
  .acl-ffhb-teaser .acl-grid-2-cards > .wp-block-column:nth-child(2) { order: 3; }
  .acl-ffhb-teaser .acl-grid-2-standings > .wp-block-column:nth-child(2) { order: 4; }
  .acl-ffhb-teaser .acl-grid-2-cards > .wp-block-column:nth-child(3) { order: 5; }
  .acl-ffhb-teaser .acl-grid-2-standings > .wp-block-column:nth-child(3) { order: 6; }
  .acl-ffhb-teaser .acl-grid-2-cards > .wp-block-column:nth-child(4) { order: 7; }
  .acl-ffhb-teaser .acl-grid-2-standings > .wp-block-column:nth-child(4) { order: 8; }

  .acl-ffhb-teaser .acl-teams-panel { order: 9; }
  .acl-ffhb-teaser .acl-ffhb-credit { order: 10; }
}

.acl-section .acl-ffhb-empty {
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: rgba(15, 18, 22, .62);
}

.acl-section .acl-ffhb-credit {
  margin: 24px 0 0;
  font-size: 12px;
  font-weight: 500;
  font-style: italic;
  color: rgba(15, 18, 22, .55);
}

/* Expandable full match list */
.acl-section .acl-ffhb-details { margin-top: 16px; }

.acl-section .acl-ffhb-details > summary {
  cursor: pointer;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 8px;
  background: #fff;
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--wp--preset--color--blue);
}

.acl-section .acl-ffhb-details[open] > summary { margin-bottom: 12px; }

.acl-section .acl-ffhb-details .acl-standings {
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

/* -------------------------------------------------------------
   Équipes « calendrier à venir » (variante A de la maquette
   design/calendrier-etats.html).
   -------------------------------------------------------------
   La fédération publie les poules par vagues : à la rentrée, une seule
   équipe du club a généralement la sienne. Le club aligne 8 à 10 équipes,
   d'où le bandeau d'une ligne plutôt qu'une carte pleine hauteur répétée
   neuf fois — sur mobile, tout étant empilé, les équipes qui ont de vraies
   données disparaîtraient sous celles qui n'en ont pas encore.
   ------------------------------------------------------------- */

/* Une équipe sans données n'a pas besoin des 48 px qui séparent deux blocs
   complets : ce serait un blanc de la hauteur du bandeau lui-même. */
.acl-section .acl-ffhb-team-avenir { margin-bottom: 28px; }

/* Le badge d'état, en ton neutre. Pas de rouge : une poule non publiée est un
   état d'attente normal, pas une erreur — et pas le navy de « Équipe phare »
   non plus, qui est une mise en avant. */
.acl-eyebrow-tag-soft {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  color: rgba(15, 18, 22, .68);
}

/*
 * ALIGNEMENT DU BADGE ET DU TITRE — rendu déterministe.
 *
 * Le badge se plaçait tantôt à côté du titre, tantôt au-dessus, selon la
 * longueur du libellé et la largeur de l'écran : « U18 Masculins » tenait sur
 * la ligne, « U15 Filles · Championnat départemental » non. Deux équipes
 * voisines se présentaient donc différemment sans que rien ne le justifie.
 *
 * Le badge passe TOUJOURS au-dessus. C'est le sens du mot « eyebrow » (une
 * accroche posée au-dessus d'un titre), ça évite au titre d'être poussé sur
 * une deuxième ligne par une pastille, et c'est déterministe : aucun libellé,
 * si long soit-il, ne peut plus changer la disposition. Réglé en flux normal
 * plutôt qu'en flex — un `flex-basis: 100%` étirerait la pastille sur toute la
 * largeur, fond compris.
 *
 * Cadré aux blocs du plugin : les motifs statiques du thème construisent le
 * même bloc en markup Gutenberg et gardent leur mise en page.
 */
.acl-section .acl-ffhb-team .acl-team-tag { display: block; }
.acl-section .acl-ffhb-team .acl-team-tag > .acl-eyebrow-tag { margin-bottom: 8px; }

/* Le bandeau lui-même : filet doré à gauche pour le rattacher à la charte sans
   occuper de hauteur, et fond crème pour qu'il se distingue des cartes
   blanches qui portent, elles, de vraies données. */
.acl-section .acl-avenir-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-left: 4px solid var(--wp--preset--color--gold);
  border-radius: 0 8px 8px 0;
  background: var(--wp--preset--color--cream);
}

.acl-section .acl-avenir-msg {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(15, 18, 22, .68);
}

/* -------------------------------------------------------------
   Dépliant « Saison précédente »
   -------------------------------------------------------------
   Deuxième <details> sous la même équipe, juste après « Tous les matchs ».
   Il porte AUSSI la classe .acl-ffhb-details : il hérite donc du dépliant
   ci-dessus et n'en change que l'habillage. Traitement navy + or parce que
   deux barres grises identiques empilées se lisent comme un doublon — le
   visiteur ne voit pas qu'elles ouvrent deux choses différentes.
   ------------------------------------------------------------- */

.acl-section .acl-season-details { margin-top: 12px; }

/* Le sommaire garde le marqueur natif du navigateur, comme le dépliant gris
   au-dessus : passer le <summary> en `display: flex` le supprimerait dans les
   moteurs Blink/WebKit (le marqueur n'existe que sur `display: list-item`), et
   la barre navy n'aurait plus rien qui dise qu'elle s'ouvre. Les deux libellés
   sont donc en ligne, `inline-block` pour qu'ils se replient proprement plutôt
   que de se couper au milieu d'un mot sur un petit écran. */
.acl-section .acl-season-details > summary {
  padding: 13px 16px;
  border-color: var(--wp--preset--color--navy);
  background: var(--wp--preset--color--navy);
  /* Le marqueur natif reprend `currentColor` : sans ça il resterait au bleu
     hérité du dépliant gris, illisible sur navy. Les deux libellés fixent leur
     propre couleur juste en dessous, donc l'or ne teinte que le triangle. */
  color: var(--wp--preset--color--gold);
}

.acl-section .acl-season-details > summary .acl-season-label,
.acl-section .acl-season-details > summary .acl-season-sub {
  display: inline-block;
  vertical-align: baseline;
}

.acl-section .acl-season-details > summary .acl-season-sub { margin-left: 10px; }

.acl-section .acl-season-details > summary .acl-season-label {
  font-family: var(--wp--preset--font-family--barlow-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
}

.acl-section .acl-season-details > summary .acl-season-sub {
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  color: rgba(255, 255, 255, .65);
}

/* Ouvert, le sommaire et le corps forment une seule boîte : on annule la marge
   de 12 px héritée de .acl-ffhb-details[open] et on soude les deux angles. */
.acl-section .acl-season-details[open] > summary {
  margin-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.acl-section .acl-season-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, .07);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: var(--wp--preset--color--cream);
}

.acl-section .acl-season-final-tag {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(15, 18, 22, .68);
}

/*
 * DÉFILEMENT HORIZONTAL DANS LES DÉPLIANTS — correction.
 *
 * `.acl-section .acl-standings` porte `overflow-x: auto`, mais la règle
 * `.acl-section .acl-ffhb-details .acl-standings` juste au-dessus déclare
 * `overflow: hidden` (posé là pour que le tableau n'échappe pas aux angles
 * arrondis du cadre). Étant plus spécifique, elle écrase aussi `overflow-x` :
 * sous 860 px, où `.acl-standings table` passe à `min-width: 620px`, le tableau
 * n'était pas rétréci mais ROGNÉ, et les colonnes de droite devenaient
 * inatteignables à 375 px — sans même une barre de défilement pour le signaler.
 *
 * `overflow-x: auto` rend le défilement et continue de rogner (une boîte qui
 * défile est une boîte qui rogne), donc les angles arrondis sont préservés. La
 * correction vaut pour « Tous les matchs de l'équipe » comme pour les deux
 * tableaux de « Saison précédente », qui a huit colonnes et en a le plus besoin.
 * Le défilement reste enfermé dans le cadre : la page, elle, ne défile jamais.
 */
.acl-section .acl-ffhb-details .acl-standings {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---- Cards ---- */

.acl-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 10px;
}

.acl-card-navy {
  background: var(--wp--preset--color--navy);
  border-radius: 10px;
  color: rgba(255, 255, 255, .8);
}

.acl-card-navy h3, .acl-card-navy strong {
  color: var(--wp--preset--color--gold);
}

/* ---- Section label pill (e.g. "LE CLUB", "PARTENAIRES OR") ---- */

.acl-label {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--wp--preset--color--blue);
  color: #fff;
  font: 700 12px var(--wp--preset--font-family--barlow);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* =============================================================
   Actualités feed (Smash Balloon) styled as the mockup's cards
   -------------------------------------------------------------
   Source is the club's INSTAGRAM account, not Facebook: Smash Balloon's
   Facebook plugin only renders photos in its paid tier, while the
   Instagram one does it free — and the mockup's cards are photo-led.
   See acl-handball/actualites-instagram and DECISIONS.md.

   Selectors come from the plugin's own templates/ (wrapper #sb_instagram,
   items .sbi_item, image .sbi_photo_wrap / .sbi_photo), so they should be
   stable. They are NOT yet verified against a live feed — no account is
   connected — so re-check this block once one is.

   The #cff rules are kept in case Facebook Feed (Pro) is ever added
   alongside; both feeds then share one card look.
   ============================================================= */

/* 3-up grid matching .acl-actu-grid, overriding the plugin's own columns. */
.acl-actus #sb_instagram {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 !important;
  width: 100% !important;
}

/* The plugin wraps items in its own container; flatten it into the grid. */
.acl-actus #sb_instagram #sbi_images {
  display: contents !important;
  padding: 0 !important;
  width: auto !important;
}

.acl-actus #sb_instagram .sbi_item,
#cff .cff-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 10px;
  overflow: hidden;
}

/* Plugin sizes items by percentage width for its own column count — we're
   using grid, so let the cell decide. */
.acl-actus #sb_instagram .sbi_item {
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 16/10 photo, matching .acl-actu-photo in the static pattern. */
.acl-actus #sb_instagram .sbi_photo_wrap,
.acl-actus #sb_instagram .sbi_photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto !important;
  padding: 0 !important;
  object-fit: cover;
}

.acl-actus #sb_instagram .sbi_photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hide the plugin's own header/follow button — the section already has a
   heading and a "Suivre l'ACL sur Instagram" link. */
.acl-actus #sb_instagram .sb_instagram_header,
.acl-actus #sb_instagram #sbi_load { display: none !important; }

/* Admin-only "no feed found" notice: keep it readable rather than raw. */
.acl-actus .sbi_no_js_error,
.acl-actus #sbi_mod_error {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15, 18, 22, .62);
}

@media (max-width: 860px) {
  .acl-actus #sb_instagram { grid-template-columns: 1fr; }
}

/* ---- Pages légales (mentions légales, confidentialité) ----
   Pages de texte nu sur un site réglé en pleine largeur « unboxed » : sans
   conteneur, elles se collent au bord de l'écran. Le groupe « acl-legal » est
   posé dans le contenu (voir wp-cli/import-legal-pages.php) ; la respiration et
   la longueur de ligne se règlent ici. */
.acl-legal {
  padding: clamp(40px, 6vw, 72px) 24px clamp(56px, 8vw, 96px);
}

.acl-legal > h1 {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.acl-legal > h2 {
  margin-top: clamp(32px, 5vw, 52px);
}

.acl-legal > h3 {
  margin-top: clamp(24px, 3vw, 32px);
}

/* La largeur de lecture est fixée par le groupe lui-même (contentSize 760px,
   voir wp-cli/import-legal-pages.php) : borner les paragraphes ici les ferait
   centrer un par un par la mise en page contrainte du noyau, qui applique
   `margin-left:auto !important`. */
.acl-legal > ul {
  padding-left: 1.2em;
}

.acl-legal > ul li {
  margin-bottom: .4em;
}
