/* =========================================================
   Site public — design « Nouvelle identité » (couleurs du logo).
   Chargée uniquement sur les pages publiques (includes/header.php),
   APRÈS style.css : elle redéfinit les variables communes, si bien que
   toutes les pages publiques (calendrier, classements, records…)
   adoptent la nouvelle identité sans être réécrites.
   Mode clair par défaut ; mode sombre (bleu nuit) en option, mémorisé
   dans le navigateur (html[data-mode="sombre"]).
   Polices : Barlow Condensed (titres, chiffres) et Barlow (texte).
   ========================================================= */

html.site-public {
  --bleu: #1a56b8;
  --bleu-nuit: #0f2f66;
  --bleu-clair: #1e9be0;
  --rouge-logo: #d0202a;

  --bg-main: #f4f7fb;
  --bg-alt: #ffffff;
  --card-bg: #ffffff;
  --surface-rgb: 255, 255, 255;
  --surface-2: #eef3fa;
  --border: #e2e9f3;
  --text-main: #1d2a44;
  --text-muted: #56627a;
  --red: #d0202a;
  --red-dim: #f8d9db;
  --gold: #1a56b8;
  --steel: #56627a;
  --green: #1b7a45;
  --titre: #0f2f66;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --radius: 14px;
  color-scheme: light;
}
html.site-public[data-mode="sombre"] {
  --bleu: #6fb3f2;
  --bg-main: #0b1730;
  --bg-alt: #0f2040;
  --card-bg: #132a52;
  --surface-rgb: 19, 42, 82;
  --surface-2: #1a3565;
  --border: #24406f;
  --text-main: #eef3fb;
  --text-muted: #a9b8d3;
  --red: #ef4a52;
  --red-dim: #4a1c2a;
  --gold: #6fb3f2;
  --steel: #a9b8d3;
  --green: #4cc38a;
  --titre: #ffffff;
  color-scheme: dark;
}

html.site-public body { background: var(--bg-main); color: var(--text-main); font-family: var(--font-body); }
html.site-public h1, html.site-public h2, html.site-public h3 { font-family: var(--font-display); }
html.site-public h1, html.site-public h2 { color: var(--titre); text-transform: uppercase; letter-spacing: 0.01em; }
html.site-public a { color: var(--bleu); }

/* Soulignement « trait du logo » à la place de l'ancienne barre décorative */
html.site-public .barbell-rule {
  height: 12px; margin: 6px 0 26px; border: none; background: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='12' viewBox='0 0 220 12'%3E%3Cpath d='M1 8 C 70 4, 150 3, 219 5 L 219 7 C 150 7, 70 9, 1 11 Z' fill='%23d0202a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}
html.site-public .barbell-rule .plate { display: none; }
html.site-public .page-hero .eyebrow { font-family: var(--font-display); font-style: italic; font-weight: 600; letter-spacing: 0.06em; color: var(--red); }

/* Badges : lisibles sur les nouvelles couleurs */
html.site-public .cal-etiquette-prochain, html.site-public .badge-nouveau-record { background: var(--red); color: #fff; }
html.site-public .compte-a-rebours .car-nombre { color: var(--bleu); }

/* ---------------------------------------------------------- En-tête */
.sp-entete { position: sticky; top: 0; z-index: 50; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.sp-entete .inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 84px; display: flex; align-items: center; gap: 28px; }
.sp-logo { display: flex; align-items: center; flex-shrink: 0; }
.sp-logo img { height: 56px; width: auto; display: block; border-radius: 8px; }
html.site-public[data-mode="sombre"] .sp-logo img { background: #fff; padding: 4px 8px; }
.sp-entete .main-nav { display: flex; align-items: center; gap: 4px; flex-grow: 1; }
.sp-entete .main-nav > a, .sp-entete .main-nav-group-toggle {
  font: 600 16px var(--font-body); color: var(--text-main); background: none; border: none; cursor: pointer;
  padding: 30px 12px 27px; border-bottom: 3px solid transparent; text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;   /* « La ligue » sur une seule ligne */
}
.sp-entete .main-nav > a:hover, .sp-entete .main-nav-group-toggle:hover { color: var(--bleu); text-decoration: none; }
.sp-entete .main-nav > a.active, .sp-entete .main-nav-group-toggle.active { color: var(--bleu); border-bottom-color: var(--rouge-logo); }
.sp-entete .main-nav-group { position: relative; }
.sp-entete .main-nav-group-links {
  position: absolute; top: calc(100% - 6px); left: 0; min-width: 230px; padding: 8px; display: flex; flex-direction: column;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px rgba(15, 47, 102, 0.14);
}
.sp-entete .main-nav-group-links[hidden] { display: none; }
.sp-entete .main-nav-group-links a { padding: 10px 12px; border-radius: 8px; color: var(--text-main); font-weight: 500; text-decoration: none; }
.sp-entete .main-nav-group-links a:hover, .sp-entete .main-nav-group-links a.active { background: var(--surface-2); color: var(--bleu); }
.sp-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
/* Bouton « Contact » de l'en-tête : version compacte (pastille, icône enveloppe) */
.sp-actions .sp-btn-contact { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; justify-content: center; flex-shrink: 0; }   /* rond, comme la loupe et le thème */
.sp-actions .sp-btn-contact svg { flex-shrink: 0; }
.sp-mode {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--card-bg); color: var(--text-main);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.sp-mode .ico-soleil { display: none; }
html.site-public[data-mode="sombre"] .sp-mode .ico-soleil { display: block; }
html.site-public[data-mode="sombre"] .sp-mode .ico-lune { display: none; }
.sp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 10px;
  font: 600 16px var(--font-body); cursor: pointer; text-decoration: none; border: 1.5px solid transparent; transition: transform 0.15s ease;
}
.sp-btn:hover { transform: translateY(-1px); text-decoration: none; }
.sp-btn-principal { background: #1a56b8; color: #fff; }
.sp-btn-principal:hover { color: #fff; background: #154a9f; }
/* Lien en forme de bouton : plus précis que « html.site-public a » (liens en bleu), sinon texte bleu sur fond bleu en mode clair */
html.site-public a.sp-btn-principal, html.site-public a.sp-btn-principal:hover, html.site-public a.sp-btn-principal:visited { color: #fff; }
.sp-btn-secondaire { background: var(--card-bg); color: var(--bleu); border-color: var(--border); }
.sp-entete .nav-toggle { display: none; }
/* Neutralise l'ancien style du menu (style.css : capitales, fond gris, retour à la ligne) */
.sp-entete nav.main-nav { flex-wrap: nowrap; }
.sp-entete nav.main-nav a, .sp-entete nav.main-nav .main-nav-group-toggle {
  text-transform: none; letter-spacing: normal; font-family: var(--font-body); font-size: 16px; border-radius: 0; background: none;
}
.sp-entete nav.main-nav > a:hover, .sp-entete nav.main-nav > a.active,
.sp-entete nav.main-nav .main-nav-group-toggle:hover, .sp-entete nav.main-nav .main-nav-group-toggle.active { background: none; color: var(--bleu); }
.sp-entete nav.main-nav .main-nav-group-links a { font-size: 15px; font-weight: 500; border-radius: 8px; padding: 10px 12px; color: var(--text-main); }
.sp-entete nav.main-nav .main-nav-group-links a:hover, .sp-entete nav.main-nav .main-nav-group-links a.active { background: var(--surface-2); color: var(--bleu); }
.sp-entete .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sp-entete .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1280px) {
  .sp-entete .inner { height: 70px; gap: 12px; padding: 0 16px; }
  .sp-logo img { height: 46px; }
  .sp-entete .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 44px; height: 44px; padding: 0 11px;
    border: none; border-radius: 12px; background: #1a56b8; cursor: pointer; order: 3;
  }
  .sp-entete .nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }
  .sp-actions .sp-btn-contact { display: none; }
  .sp-entete .main-nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 16px 18px; background: var(--bg-alt); border-bottom: 1px solid var(--border); box-shadow: 0 16px 30px rgba(15, 47, 102, 0.12);
  }
  .sp-entete .main-nav.open { display: flex; }
  .sp-entete .main-nav > a, .sp-entete .main-nav-group-toggle { padding: 14px 6px; border-bottom: 1px solid var(--border); justify-content: space-between; width: 100%; }
  .sp-entete .main-nav > a.active, .sp-entete .main-nav-group-toggle.active { border-bottom-color: var(--border); }
  .sp-entete .main-nav-group-links { position: static; box-shadow: none; border: none; padding: 4px 0 8px 12px; background: none; }
  .sp-entete .sp-contact-menu { display: flex !important; margin-top: 12px; }
}
.sp-contact-menu { display: none !important; }

/* ---------------------------------------------------------- Sections de l'accueil */
.sp-conteneur { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sp-section { padding: 72px 0 0; }
.sp-section-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.sp-section-tete h2 { margin: 0 0 8px; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; }
.sp-trait { display: block; width: 120px; height: 8px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8'%3E%3Cpath d='M1 5 C 40 2, 80 2, 119 3 L 119 5 C 80 5, 40 6, 1 7 Z' fill='%23d0202a'/%3E%3C/svg%3E"); background-repeat: no-repeat; }
.sp-lien-fleche { font-weight: 600; text-decoration: none; }
.sp-lien-fleche:hover { text-decoration: underline; }

/* Bandeau principal */
.sp-hero { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.sp-hero .sp-conteneur { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: stretch; padding-top: 64px; padding-bottom: 56px; }
/* Texte et tableau du prochain rendez-vous de même hauteur : le texte part du haut du tableau, les boutons s'alignent sur son bas */
.sp-hero-texte { display: flex; flex-direction: column; }
.sp-hero-texte .sp-boutons { margin-top: auto; }
.sp-hero-texte .sp-surtitre { margin-top: 0; }
.sp-surtitre { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.2rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.sp-hero h1 { margin: 12px 0 14px; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 0.95; overflow-wrap: break-word; hyphens: auto; }   /* mot trop long pour un écran étroit (ou police de secours plus large) : coupé plutôt que de déborder */
.sp-hero h1 span { color: var(--bleu); }
/* Taille du titre selon sa longueur (Site internet → Page d'accueil → Taille du titre) */
.sp-hero h1.sp-titre-moyenne { font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 0.97; }
.sp-hero h1.sp-titre-petite { font-size: clamp(2.1rem, 3.4vw, 3rem); line-height: 1; }
@media (min-width: 1240px) { .sp-hero h1.sp-bleu-une-ligne span { white-space: nowrap; } }
.sp-hero .sp-trait-grand { display: block; width: 340px; max-width: 80%; height: 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='14' viewBox='0 0 360 14'%3E%3Cpath d='M2 9 C 90 4, 230 3, 358 6 L 358 8 C 230 7, 90 9, 2 12 Z' fill='%23d0202a'/%3E%3C/svg%3E"); background-size: 100% 100%; background-repeat: no-repeat; }
.sp-hero p { font-size: 1.2rem; line-height: 1.55; color: var(--text-muted); max-width: 34em; margin: 20px 0 26px; }
.sp-hero .sp-boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.sp-rdv { background: #0f2f66; color: #fff; border-radius: 22px; padding: 30px 32px; display: flex; flex-direction: column; gap: 14px; }
html.site-public[data-mode="sombre"] .sp-rdv { background: #1a3565; }
.sp-rdv-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sp-rdv-etiquette { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #9cc7f2; }
.sp-rdv-type { background: #d0202a; color: #fff; font-size: 0.8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.sp-rdv-titre { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; line-height: 1.05; text-transform: uppercase; }
.sp-rdv-infos { color: #c8d6ec; }
.sp-rdv .compte-a-rebours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sp-rdv .compte-a-rebours .car-bloc { background: #1a3f7e; border: none; border-radius: 12px; min-width: 0; padding: 14px 4px 10px; }
.sp-rdv .compte-a-rebours .car-nombre { color: #fff !important; font-size: 2.3rem; }
.sp-rdv .compte-a-rebours .car-unite { color: #9cc7f2; }
.sp-rdv-compteur:not(.compte-a-rebours) { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.sp-rdv a { color: #fff; font-weight: 600; text-decoration: none; }
/* Agenda « Prochains rendez-vous » : une ligne par discipline (repère rouge : haltérophilie, violet : musculation) */
html.site-public .sp-rdv .sp-rdv-ligne { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #1a3f7e; border-left: 5px solid #d0202a; border-radius: 0 14px 14px 0; color: #fff; text-decoration: none; transition: background .15s, transform .15s; }
html.site-public .sp-rdv a.sp-rdv-ligne:hover { background: #22498d; transform: translateX(2px); }
html.site-public .sp-rdv a.sp-rdv-ligne:focus-visible { outline: 3px solid #9cc7f2; outline-offset: 2px; }
html.site-public .sp-rdv .sp-rdv-musculation { border-left-color: #9b6bd6; }
.sp-rdv-ligne-texte { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.sp-rdv-ligne-type { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #f2b8bb; }
.sp-rdv-musculation .sp-rdv-ligne-type { color: #d4b8f2; }
.sp-rdv-ligne-titre { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.1; text-transform: uppercase; }
.sp-rdv-ligne-infos { color: #c8d6ec; font-size: 0.92rem; font-weight: 400; }
.sp-rdv-encours { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #d0202a; color: #fff; font-size: 0.72rem; letter-spacing: 0; }
.sp-rdv-jours { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; padding: 8px 10px; border-radius: 12px; background: #0f2f66; text-align: center; flex-shrink: 0; }
.sp-rdv-jours strong { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.sp-rdv-jours span { font-size: 0.75rem; color: #9cc7f2; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.sp-rdv-pied { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.15); color: #c8d6ec; font-size: 0.92rem; }
html.site-public[data-mode="sombre"] .sp-rdv .sp-rdv-ligne { background: #24467f; }
html.site-public[data-mode="sombre"] .sp-rdv-jours { background: #1a3565; }
.sp-rdv a:hover { text-decoration: underline; }
.sp-rdv-vide { color: #c8d6ec; font-size: 1.05rem; line-height: 1.5; }

/* Prochain rendez-vous : journées d'un tour, club organisateur, inscriptions */
.sp-rdv-journees { display: flex; flex-direction: column; gap: 6px; }
.sp-rdv-journee, .sp-rdv-organisateur { display: flex; align-items: center; gap: 10px; background: #16386f; border-radius: 10px; padding: 8px 10px; }
.sp-rdv-organisateur { padding: 10px 12px; border-radius: 12px; }
.sp-rdv-organisateur > span:last-child { display: flex; flex-direction: column; }
.sp-rdv-journee.passee { opacity: 0.5; }
.sp-rdv-journee-nom { flex-grow: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-rdv-journee-date { font-size: 0.85rem; color: #9cc7f2; white-space: nowrap; }
.sp-rdv-prochaine { font-size: 0.72rem; font-weight: 600; background: #e7b92e; color: #3b2a00; border-radius: 999px; padding: 2px 8px; }
.sp-rdv-ensuite { font-size: 0.9rem; color: #c8d6ec; border-top: 1px solid #2a4a82; padding-top: 10px; }
.sp-mini-logo {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; color: #1a56b8; text-transform: uppercase; border: 1px solid var(--border);
}
.sp-mini-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; }
.sp-mini-logo-grand { width: 44px; height: 44px; font-size: 0.85rem; }
.sp-insc { display: inline-flex; align-self: flex-start; font-size: 0.8rem; font-weight: 600; border-radius: 999px; padding: 4px 11px; }
.sp-insc-ouvertes { background: #1b7a45; color: #fff; }
.sp-insc-bientot { background: #b56a00; color: #fff; }
.sp-insc-closes { background: #5b6b7a; color: #fff; }

/* Cartes des tours (onglet Championnat) et des compétitions (onglet Individuelles) */
.sp-tour, .sp-compet { padding: 20px 22px; gap: 12px; }
.sp-tour-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sp-tour-tete .sp-evt-type { font-size: 1.3rem; }
.sp-tour-encours { font-size: 0.72rem; font-weight: 600; background: var(--red); color: #fff; border-radius: 999px; padding: 3px 9px; }
.sp-tour-dates { font-size: 0.95rem; color: var(--text-muted); margin-top: -6px; }
.sp-tour-journees { display: flex; flex-direction: column; gap: 6px; }
.sp-tour-journee { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 10px; padding: 7px 10px; }
.sp-tour-journee.passee { opacity: 0.55; }
.sp-tour-club { flex-grow: 1; font-weight: 600; font-size: 0.95rem; color: var(--text-main); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-tour-date { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
.sp-compet-haut { display: flex; gap: 16px; align-items: center; }

/* Chiffres */
.sp-chiffres { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.sp-chiffres .sp-conteneur { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-chiffre { padding: 28px 0 28px 28px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.sp-chiffre:first-child { border-left: none; padding-left: 0; }
.sp-chiffre b { font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--bleu); }
.sp-chiffre span { color: var(--text-muted); }

/* Cartes génériques de l'accueil */
.sp-grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.sp-carte { background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; color: inherit; text-decoration: none; display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.sp-carte:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15, 47, 102, 0.12); text-decoration: none; color: inherit; }
.sp-actu-image { height: 200px; background: var(--surface-2) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.sp-actu-corps { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.sp-rubrique { font-size: 0.85rem; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: 0.05em; }
.sp-actu-corps h3 { margin: 0; font-family: var(--font-body); font-size: 1.3rem; line-height: 1.3; font-weight: 600; color: var(--text-main); }
.sp-date { font-size: 0.92rem; color: var(--text-muted); }
.sp-vide { color: var(--text-muted); background: var(--card-bg); border: 1px dashed var(--border); border-radius: 18px; padding: 28px; text-align: center; }

/* Prochains rendez-vous */
.sp-bascule { display: inline-flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 12px; }
.sp-bascule button { border: none; background: transparent; color: var(--text-muted); font: 600 15px var(--font-body); padding: 10px 18px; border-radius: 9px; cursor: pointer; min-height: 44px; }
.sp-bascule button[aria-selected="true"] { background: var(--card-bg); color: var(--bleu); box-shadow: 0 2px 6px rgba(15, 47, 102, 0.08); }
.sp-evt { padding: 22px; flex-direction: row; gap: 18px; align-items: center; }
.sp-evt-date { width: 82px; flex-shrink: 0; border-radius: 14px; background: var(--surface-2); padding: 12px 0; text-align: center; }
.sp-evt-date b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.3rem; line-height: 1; color: var(--bleu); }
.sp-evt-date span { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); }
.sp-evt-infos { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sp-evt-type { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red); }
.sp-evt-titre { font-size: 1.15rem; font-weight: 600; color: var(--text-main); }
.sp-evt-lieu { font-size: 0.92rem; color: var(--text-muted); }
[data-panneau-rdv][hidden] { display: none; }

/* Podiums du championnat */
.sp-podium { padding: 24px 24px 12px; }
.sp-podium h3 { margin: 0 0 8px; font-size: 1.6rem; text-transform: uppercase; color: var(--titre); }
.sp-podium-ligne { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.sp-rang { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.sp-rang-1 { background: #e7b92e; color: #3b2a00; }
.sp-rang-2 { background: #c9d2dd; color: #1d2a44; }
.sp-rang-3 { background: #d99a6c; color: #3a1d06; }
.sp-equipe { flex-grow: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-evo { font-size: 0.85rem; font-weight: 600; }
.sp-evo.monte { color: var(--green); } .sp-evo.descend { color: var(--red); } .sp-evo.stable { color: var(--text-muted); }
.sp-score { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--bleu); }

/* Records récents */
.sp-records { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 52px; align-items: start; }
.sp-records-intro p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.6; }
.sp-records-liste { padding: 6px 26px; }
/* Records récents : un tableau pour les femmes, un pour les hommes */
.sp-records-sexes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.sp-records-sexe { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 0 2px; }
.sp-records-sexes .sp-records-liste { padding: 2px 20px 4px; }
.sp-record-cat { font-weight: 400; font-size: 0.85rem; color: var(--text-muted); }
.sp-records-sexe-f { color: #e0679a; }
.sp-records-sexe-h { color: var(--bleu); }
.sp-record.sp-record-compact { grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; padding: 9px 0; }
.sp-record-compact .sp-record-mvt { margin-top: 1px; font-size: 0.85rem; line-height: 1.35; }
.sp-record-compact .sp-record-valeur { font-size: 1.4rem; }
.sp-record-compact .sp-badge-nouveau { font-size: 0.7rem; padding: 3px 9px; }
@media (max-width: 960px) { .sp-records-sexes { grid-template-columns: 1fr; } }
.sp-record { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.sp-record:last-child { border-bottom: none; }
.sp-record-nom { font-weight: 600; }
.sp-record-club, .sp-record-mvt { font-size: 0.9rem; color: var(--text-muted); }
.sp-record-valeur { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--bleu); white-space: nowrap; }
.sp-badge-nouveau { background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 5px 10px; border-radius: 999px; }

/* Ruban des clubs */
.sp-ruban { overflow: hidden; padding: 10px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.sp-ruban-piste { display: flex; gap: 22px; width: max-content; animation: sp-defile 60s linear infinite; }
.sp-ruban:hover .sp-ruban-piste { animation-play-state: paused; }
.sp-ruban a { width: 104px; height: 104px; flex-shrink: 0; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #56627a; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; text-decoration: none; }
.sp-ruban a img { width: 100%; height: 100%; object-fit: contain; padding: 12px; box-sizing: border-box; }
@keyframes sp-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Partenaires (accueil) */
.sp-partenaires { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.sp-partenaire {
  height: 110px; display: flex; align-items: center; justify-content: center; padding: 16px; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; text-decoration: none; color: #1d2a44; font-weight: 600; text-align: center; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.sp-partenaire:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 47, 102, 0.1); text-decoration: none; }
.sp-partenaire img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(0.2); }
a.sp-partenaire:hover img { filter: none; }

/* ---------------------------------------------------------- Pied de page */
.sp-pied { margin-top: 90px; background: #0f2f66; color: #c8d6ec; }
html.site-public[data-mode="sombre"] .sp-pied { background: #081226; }
.sp-pied .sp-conteneur { padding-top: 60px; padding-bottom: 30px; }
.sp-pied-grille { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 44px; }   /* colonnes souples : menus personnalisés du pied de page */
.sp-pied-logo { background: #fff; border-radius: 14px; padding: 12px 16px; display: inline-block; }
.sp-pied-logo img { height: 62px; width: auto; display: block; }
.sp-pied p { line-height: 1.6; margin: 16px 0 0; }
.sp-pied-col { display: flex; flex-direction: column; gap: 10px; }
.sp-pied-col strong { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.sp-pied a, .sp-pied button.sp-lien { color: #c8d6ec; text-decoration: none; background: none; border: none; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.sp-pied a:hover, .sp-pied button.sp-lien:hover { color: #fff; text-decoration: underline; }
.sp-pied-bas { border-top: 1px solid #2a4a82; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.9rem; }

/* Réseaux sociaux (pied de page, menu mobile) */
.sp-suivez { font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; margin: 22px 0 10px !important; }
.sp-reseaux { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-reseau { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.sp-reseau:hover { transform: translateY(-2px); text-decoration: none; }
.sp-reseau:focus-visible { outline: 3px solid #e7b92e; outline-offset: 2px; }
.sp-reseaux-pied .sp-reseau { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid #3a5a92; color: #fff !important; }
.sp-reseaux-pied .sp-reseau:hover { background: var(--couleur-reseau, #1a56b8); border-color: var(--couleur-reseau, #1a56b8); }
.sp-reseaux-pied .sp-reseau-instagram:hover { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); border-color: transparent; }
.sp-reseaux-pied .sp-reseau-tiktok:hover, .sp-reseaux-pied .sp-reseau-x:hover { border-color: #fff; }
.sp-reseaux-menu { display: none !important; }
@media (max-width: 1280px) {
  .sp-entete .sp-reseaux-menu { display: flex !important; justify-content: center; gap: 12px; margin-top: 14px; }
  .sp-reseaux-menu .sp-reseau { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--border); color: var(--text-main); font-weight: 600; font-size: 15px; }
  .sp-reseaux-menu .sp-reseau:hover { color: var(--couleur-reseau); border-color: var(--couleur-reseau); }
  html.site-public[data-mode="sombre"] .sp-reseaux-menu .sp-reseau-tiktok:hover, html.site-public[data-mode="sombre"] .sp-reseaux-menu .sp-reseau-x:hover { color: #fff; border-color: #fff; }
}

/* ---------------------------------------------------------- Fenêtre « Nous contacter » */
.sp-contact { width: min(640px, 94vw); max-height: 92vh; overflow-y: auto; border: none; border-radius: 22px; padding: 26px 28px; background: var(--card-bg); color: var(--text-main); box-shadow: 0 30px 80px rgba(15, 47, 102, 0.3); }
.sp-contact::backdrop { background: rgba(11, 23, 48, 0.5); backdrop-filter: blur(3px); }
.sp-contact-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sp-contact-tete h2 { margin: 0; font-size: 1.8rem; }
.sp-contact-fermer { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--surface-2); color: var(--text-main); font-size: 1.5rem; cursor: pointer; }
.sp-contact-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.sp-champ { display: flex; flex-direction: column; gap: 5px; }
.sp-champ-large { grid-column: 1 / -1; }
.sp-champ label { font-size: 0.85rem; font-weight: 600; text-transform: none; font-family: var(--font-body); color: var(--text-main); }
.sp-champ label span { font-weight: 400; color: var(--text-muted); }
.sp-champ input, .sp-champ select, .sp-champ textarea { font: inherit; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--bg-alt); color: var(--text-main); }
.sp-champ textarea { resize: vertical; min-height: 110px; }
.sp-champ [aria-invalid="true"] { border-color: var(--red); }
.sp-champ small { min-height: 1em; font-size: 0.78rem; color: var(--red); }
.sp-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sp-contact-erreur { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--red-dim); color: var(--red); }
.sp-contact-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.sp-contact-merci { text-align: center; padding: 10px 0 4px; }
.sp-contact-merci svg { color: var(--green); }
.sp-contact-merci circle { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-dasharray: 64; stroke-dashoffset: 64; transform: rotate(-90deg); transform-origin: 50% 50%; animation: anim-trace 0.6s ease-out forwards; }
.sp-contact-merci polyline { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; animation: anim-trace 0.4s ease-out 0.5s forwards; }
.sp-contact-merci .titre { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; color: var(--titre); margin: 12px 0 6px; }
.sp-contact-merci p { color: var(--text-muted); margin: 0 0 18px; }

/* ==========================================================
   Pages intérieures : composants communs redessinés (bandeau de titre,
   tableaux, cartes, onglets, rangs, boutons, badges, filtres). Toutes
   les pages publiques en profitent sans être réécrites.
   ========================================================== */

/* Bandeau de titre : bande claire sur toute la largeur, trait rouge sous le titre */
html.site-public .page-hero {
  position: relative; padding: 46px 0 34px; margin-bottom: 30px; background: var(--bg-alt);
  box-shadow: 0 0 0 100vmax var(--bg-alt); clip-path: inset(0 -100vmax); border-bottom: 1px solid var(--border);
}
html.site-public .page-hero .eyebrow { font-size: 1.05rem; margin-bottom: 8px; }
html.site-public .page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 0.98; margin: 0; }
html.site-public .page-hero h1::after {
  content: ""; display: block; width: 220px; max-width: 60%; height: 12px; margin-top: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='12' viewBox='0 0 220 12'%3E%3Cpath d='M1 8 C 70 4, 150 3, 219 5 L 219 7 C 150 7, 70 9, 1 11 Z' fill='%23d0202a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}
html.site-public .page-hero p.lead, html.site-public .page-hero .lead { font-size: 1.15rem; line-height: 1.55; color: var(--text-muted); margin: 16px 0 0; max-width: 46em; }
html.site-public .page-hero + .barbell-rule { display: none; }

/* Titres de section */
html.site-public .section-title { margin: 34px 0 16px; align-items: flex-end; }
html.site-public .section-title h2, html.site-public .container > h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; margin: 0; }
html.site-public .section-title h2::after, html.site-public .container > h2::after {
  content: ""; display: block; width: 110px; height: 8px; margin-top: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8'%3E%3Cpath d='M1 5 C 40 2, 80 2, 119 3 L 119 5 C 80 5, 40 6, 1 7 Z' fill='%23d0202a'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% 100%;
}

/* Tableaux */
html.site-public .table-wrap { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 6px 20px rgba(15, 47, 102, 0.05); }
html.site-public table { font-size: 0.98rem; }
html.site-public thead th {
  background: var(--surface-2); color: var(--text-muted); font-family: var(--font-display); font-weight: 600;
  font-size: 0.88rem; letter-spacing: 0.06em; padding: 14px 16px;
}
html.site-public tbody td { padding: 13px 16px; border-top: 1px solid var(--border); }
html.site-public tbody tr { transition: background 0.12s ease; }
html.site-public tbody tr:hover { background: rgba(26, 86, 184, 0.045); }
html.site-public[data-mode="sombre"] tbody tr:hover { background: rgba(111, 179, 242, 0.07); }
html.site-public td.num, html.site-public th.num { font-family: var(--font-body); font-variant-numeric: tabular-nums; }
html.site-public td.num { font-weight: 600; }
html.site-public td.team-name { font-weight: 600; color: var(--text-main); }
html.site-public td.team-name a { color: var(--text-main); }
html.site-public td.team-name a:hover { color: var(--bleu); }

/* Cartes et statistiques */
html.site-public .card { border-radius: 18px; padding: 22px 24px; box-shadow: 0 6px 20px rgba(15, 47, 102, 0.05); }
html.site-public .card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
html.site-public .stat-value { font-family: var(--font-display); font-weight: 700; font-size: 2.7rem; line-height: 1; color: var(--bleu); }
html.site-public .stat-sub { font-size: 0.92rem; }
html.site-public a.card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
html.site-public a.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15, 47, 102, 0.12); }

/* Onglets : même bascule que l'accueil */
html.site-public .tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 12px; }
html.site-public .tabs a {
  border: none; border-radius: 9px; padding: 10px 18px; min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; text-transform: none; letter-spacing: normal; color: var(--text-muted);
}
html.site-public .tabs a:hover { color: var(--bleu); }
html.site-public .tabs a.active { background: var(--card-bg); color: var(--bleu); box-shadow: 0 2px 6px rgba(15, 47, 102, 0.08); }

/* Rangs : or, argent, bronze comme les podiums de l'accueil */
html.site-public .rank-badge { width: 32px; height: 32px; font-family: var(--font-display); font-size: 1.05rem; background: var(--surface-2); color: var(--text-main); }
html.site-public .rank-badge.r1 { background: #e7b92e; color: #3b2a00; }
html.site-public .rank-badge.r2 { background: #c9d2dd; color: #1d2a44; }
html.site-public .rank-badge.r3 { background: #d99a6c; color: #3a1d06; }

/* Badges */
html.site-public .badge { font-family: var(--font-body); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.04em; padding: 4px 10px; }
html.site-public .badge.oui { background: rgba(27, 122, 69, 0.12); color: var(--green); }
html.site-public .badge.non { background: var(--surface-2); color: var(--text-muted); }

/* Boutons */
html.site-public .btn {
  background: #1a56b8; color: #fff; border: 1.5px solid transparent; border-radius: 10px; min-height: 44px; padding: 0 20px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; text-transform: none; letter-spacing: normal; justify-content: center;
}
html.site-public .btn:hover { background: #154a9f; color: #fff; }
html.site-public .btn.secondary { background: var(--card-bg); color: var(--bleu); border-color: var(--border); }
html.site-public .btn.secondary:hover { background: var(--surface-2); color: var(--bleu); }
html.site-public .btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }

/* Filtres et formulaires */
html.site-public label { font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; text-transform: none; letter-spacing: normal; color: var(--text-main); }
html.site-public input[type=text], html.site-public input[type=number], html.site-public input[type=date], html.site-public input[type=email],
html.site-public input[type=search], html.site-public input[type=tel], html.site-public select, html.site-public textarea {
  border: 1.5px solid var(--border); border-radius: 10px; background: var(--bg-alt); color: var(--text-main); font-family: var(--font-body); font-size: 15px; min-height: 44px;
}
html.site-public input:focus, html.site-public select:focus, html.site-public textarea:focus { border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(26, 86, 184, 0.15); outline: none; }

/* Lecture d'une actualité */
.sp-article { width: 100%; max-width: none; }   /* pleine largeur de la zone centrale */
.sp-article-image { width: 100%; max-height: 460px; object-fit: cover; border-radius: 18px; margin-bottom: 26px; display: block; }
.sp-article-texte { white-space: pre-line; font-size: 1.14rem; line-height: 1.75; color: var(--text-main); margin: 0 0 30px; }

/* Annuaire des clubs */
.annuaire-filtres { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px 24px; margin-bottom: 14px; }   /* champ de recherche et barre des départements : mêmes bords haut et bas */
html.site-public .annuaire-filtres .tabs { margin: 0; align-items: center; }   /* sans la marge basse héritée des styles généraux */
.annuaire-recherche { flex: 1 1 320px; max-width: 460px; display: flex; }
.annuaire-recherche input { width: 100%; box-sizing: border-box; min-height: 52px; height: auto; margin: 0; }
/* Annuaire des clubs : tuiles verticales (bandeau aux couleurs du département, logo au centre) */
.annuaire-grille { --c75: #2A327B; --c77: #2A327B; --c78: #E42313; --c91: #E42313; --c92: #E42313; --c93: #2A327B; --c94: #2A327B; --c95: #E42313;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 8px; }
.annuaire-carte {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px; color: inherit; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.annuaire-carte[hidden] { display: none; }
.annuaire-carte:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(15, 47, 102, 0.14); border-color: var(--bleu); text-decoration: none; color: inherit; }
.annuaire-carte:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.tuile-bandeau { position: relative; align-self: stretch; height: 64px; background: var(--bleu); }
.tuile-bandeau[data-dep="75"] { background: var(--c75); } .tuile-bandeau[data-dep="77"] { background: var(--c77); } .tuile-bandeau[data-dep="78"] { background: var(--c78); } .tuile-bandeau[data-dep="91"] { background: var(--c91); }
.tuile-bandeau[data-dep="92"] { background: var(--c92); } .tuile-bandeau[data-dep="93"] { background: var(--c93); } .tuile-bandeau[data-dep="94"] { background: var(--c94); } .tuile-bandeau[data-dep="95"] { background: var(--c95); }
.tuile-dep { position: absolute; top: 10px; right: 12px; padding: 2px 9px; border-radius: 8px; background: rgba(0, 0, 0, 0.28); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.03em; }
.annuaire-logo {
  width: 84px; height: 84px; margin-top: -42px; flex-shrink: 0; position: relative; border-radius: 50%; background: #fff; border: 4px solid var(--card-bg); overflow: hidden;
  box-shadow: 0 6px 16px rgba(10, 20, 40, 0.18); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #173f8a; text-transform: uppercase; letter-spacing: 0.02em;
}
.annuaire-logo img { width: 100%; height: 100%; object-fit: contain; padding: 9px; box-sizing: border-box; }
.annuaire-logo.initiales-longues { font-size: 1.05rem; }
.tuile-corps { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 16px 14px; flex: 1; width: 100%; box-sizing: border-box; }
.annuaire-nom { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.15; color: var(--text-main); overflow-wrap: anywhere; }
.annuaire-ville { font-size: 0.92rem; color: var(--text-muted); }
.annuaire-carte .annuaire-badges { justify-content: center; margin-top: 6px; }
.tuile-pied { align-self: stretch; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 0.86rem; font-weight: 600; color: var(--text-muted); }
.tuile-pied { color: var(--text-muted); font-weight: 600; font-size: 0.82rem; line-height: 1.6; }
.tuile-stat { white-space: nowrap; }   /* passage à la ligne entre deux éléments, jamais au milieu */
.tuile-sep { opacity: 0.6; }
.tuile-bandeau.avec-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0) 60%); }   /* numéro lisible sur une image claire */
.tuile-bandeau.avec-image .tuile-dep { z-index: 1; }
@media (prefers-reduced-motion: reduce) { .annuaire-carte { transition: none; } .annuaire-carte:hover { transform: none; } }

/* Mentions légales */
.legal h2 { font-size: 1.7rem; margin: 34px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 600; margin: 18px 0 6px; color: var(--text-main); text-transform: none; }
.legal p { font-size: 1.04rem; line-height: 1.7; margin: 0 0 12px; white-space: normal; }
.legal-lien { background: none; border: none; padding: 0; font: inherit; color: var(--bleu); text-decoration: underline; cursor: pointer; }
.legal-a-completer { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #fff3cd; color: #7a5200; font-weight: 600; font-size: 0.9em; }

/* Mot du Président */
.mot-president { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 44px; align-items: start; max-width: 1040px; }
.mot-president-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; box-shadow: 0 16px 40px rgba(15, 47, 102, 0.15); }
.mot-president-texte { position: relative; }
.mot-president-guillemet { display: block; font-family: var(--font-display); font-size: 6rem; line-height: 0.6; color: var(--red); margin-bottom: 8px; }
.mot-president-signature { display: flex; flex-direction: column; gap: 2px; margin: 0; padding-top: 18px; border-top: 1px solid var(--border); }
.mot-president-signature strong { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; color: var(--titre); }
.mot-president-signature span { color: var(--text-muted); font-size: 0.95rem; }

/* Comité directeur */
.comite-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 18px; }
.comite-carte { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 24px 16px 20px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px; }
.comite-photo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; border: 4px solid var(--surface-2); }
.comite-initiales { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--bleu); font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; }
.comite-nom { font-weight: 600; font-size: 1.08rem; color: var(--text-main); }
.comite-fonction { font-size: 0.92rem; color: var(--red); font-weight: 600; }


/* Commissions */
.commissions-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.commission-carte { background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px; padding: 22px 22px 18px; }
.commission-carte h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; color: var(--titre); }
.commission-description { margin: 0 0 12px; color: var(--text-muted); line-height: 1.55; font-size: 0.95rem; }
.commission-membres { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.commission-membres li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: var(--surface-2); border-radius: 12px; }
.commission-photo { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; object-fit: cover; font-size: 0.95rem; }
.commission-nom { flex-grow: 1; font-weight: 600; color: var(--text-main); min-width: 0; }
.commission-role { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.commission-role.president { color: #fff; background: var(--red); border-radius: 999px; padding: 3px 10px; }

/* Documents officiels */
.doc-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.doc-carte { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px; color: inherit; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.doc-carte:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15, 47, 102, 0.12); border-color: var(--bleu); text-decoration: none; color: inherit; }
.doc-icone { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--bleu); }
.doc-titre { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; color: var(--titre); }
.doc-texte { color: var(--text-muted); line-height: 1.55; flex-grow: 1; }
.doc-etat { font-weight: 600; color: var(--bleu); }
.doc-lecteur { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface-2); height: 80vh; min-height: 520px; }
.doc-lecteur iframe { width: 100%; height: 100%; border: none; display: block; }
@media (max-width: 760px) {
  .mot-president { grid-template-columns: 1fr; gap: 24px; }
  .mot-president-photo { max-width: 240px; }
  .doc-lecteur { height: 70vh; min-height: 420px; }
}

/* Résultats du championnat (resultats.php) */
.resultats-journee { margin-bottom: 22px; }
.resultats-journee-tete { display: flex; align-items: center; gap: 14px; }
.resultats-journee-tete .club-logo { width: 52px; height: 52px; }
.resultats-categorie { margin: 18px 0 8px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.resultats-equipes { display: flex; flex-direction: column; gap: 8px; }
.resultats-equipe { border: 1px solid var(--border); border-radius: 12px; padding: 0; background: var(--card-bg); }
.resultats-equipe > summary { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; min-height: 44px; }
.resultats-equipe > summary::-webkit-details-marker { display: none; }
.resultats-equipe > summary::after { content: "▾"; margin-left: 4px; color: var(--text-muted); transition: transform 0.2s ease; }
.resultats-equipe[open] > summary::after { transform: rotate(180deg); }
.resultats-equipe > summary:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; border-radius: 12px; }
.resultats-equipe .club-logo { width: 34px; height: 34px; flex-shrink: 0; }
.resultats-equipe-nom { flex-grow: 1; font-weight: 600; min-width: 0; }
.resultats-score { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--bleu); white-space: nowrap; }
.resultats-score small { font-family: var(--font-body); font-weight: 500; font-size: 0.75rem; color: var(--text-muted); }
.resultats-equipe .table-wrap { margin: 0 14px 14px; }

/* Navigation entre les pages du championnat (sous le titre) */
.nav-championnat { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.nav-championnat a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; color: var(--text-main); text-decoration: none; border: 1.5px solid var(--border); background: var(--card-bg);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.nav-championnat a:hover { border-color: var(--bleu); color: var(--bleu); text-decoration: none; }
.nav-championnat a.active { background: var(--bleu); border-color: var(--bleu); color: #fff; }
html.site-public[data-mode="sombre"] .nav-championnat a.active { color: #0b1730; }
.nav-championnat a:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
@media (max-width: 600px) {
  .nav-championnat { flex-wrap: wrap; gap: 6px; }   /* téléphone : les onglets passent à la ligne, tous visibles */
  .nav-championnat a { padding: 7px 12px; font-size: 0.86rem; }
}

/* Article importé de l'ancien site (contenu mis en forme) */
.sp-article-html { white-space: normal; }
.sp-article-html > * + * { margin-top: 0.9em; }
.sp-article-html h2, .sp-article-html h3, .sp-article-html h4, .sp-article-html h5 { font-family: var(--font-display); margin: 1.3em 0 0.4em; line-height: 1.2; }
.sp-article-html ul, .sp-article-html ol { padding-left: 1.4em; }
.sp-article-html li + li { margin-top: 0.3em; }
.sp-article-html a { color: var(--bleu); text-decoration: underline; text-underline-offset: 2px; }
.sp-article-html img { max-width: 100%; height: auto; border-radius: 10px; }
.sp-article-html figure { margin: 1em 0; }
.sp-article-html figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.3em; }
.sp-article-html blockquote { border-left: 4px solid var(--bleu); padding: 0.2em 0 0.2em 1em; color: var(--text-muted); }
.sp-article-html table, .sp-article-texte table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
/* Tablette et téléphone : un tableau trop large défile dans son cadre au lieu d'élargir toute la page
   (un élément tableau ignore « overflow » : il doit d'abord devenir un bloc) */
@media (max-width: 1024px) { .sp-article-html table, .sp-article-texte table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } }
.sp-article-html, .sp-article-texte { overflow-wrap: break-word; }   /* mots et adresses très longs coupés plutôt que de déborder */
.sp-article-html img, .sp-article-texte img { max-width: 100%; height: auto; }
.sp-article-html th, .sp-article-html td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
.sp-article-html th { background: var(--surface-2); }

/* Classement : vue d'ensemble des trois catégories */
.classement-apercu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 6px 0 14px; }
@media (max-width: 960px) { .classement-apercu { grid-template-columns: 1fr; } }
.classement-apercu-carte { display: flex; flex-direction: column; gap: 14px; }
.classement-apercu-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.classement-apercu-tete h2 { margin: 0; font-size: 1.6rem; }
.classement-apercu-leader { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.classement-apercu-leader .club-logo { width: 54px; height: 54px; flex-shrink: 0; margin: 0; }
.classement-apercu-leader strong { display: block; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.15; }
.classement-apercu-moyenne { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--bleu); }
.classement-apercu-moyenne small { font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; color: var(--text-muted); }
.classement-apercu-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.classement-apercu-liste li { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--border); }
.classement-apercu-liste li:last-child { border-bottom: none; }
.classement-apercu-liste .club-logo { margin: 0; flex-shrink: 0; }
.classement-apercu-nom { flex-grow: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classement-apercu-points { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.classement-apercu-bouton { margin-top: auto; align-self: flex-start; }

/* Bandeau d'aperçu (site pas encore ouvert : accès anticipé ou personne connectée) */
.bandeau-apercu { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; padding: 8px 16px; background: #f4b400; color: #1d1d1d; font-size: 0.9rem; text-align: center; }
html.site-public .bandeau-apercu a { color: #1d1d1d; font-weight: 700; text-decoration: underline; }

/* Boutons de partage (articles et pages) */
.partage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); }
.partage-titre { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 4px; }
.partage-bouton { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--card-bg); color: var(--text-main); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: border-color .15s, color .15s; }
html.site-public a.partage-bouton { color: var(--text-main); text-decoration: none; }
.partage-bouton:hover, html.site-public a.partage-bouton:hover { border-color: var(--bleu); color: var(--bleu); }
.partage-bouton svg { flex-shrink: 0; }
.partage-bouton:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.partage-natif { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.partage-message { flex-basis: 100%; margin: 4px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2, #eef2f8); font-size: 0.88rem; line-height: 1.45; }
.partage-natif:hover { color: #fff; opacity: 0.9; }
@media (max-width: 600px) { .partage-bouton span { display: none; } .partage-bouton { padding: 0 11px; } .partage-natif span { display: inline; } }

/* Réactions aux articles et compteurs */
.reactions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; }
.reactions + .partage { margin-top: 18px; }
.reactions-titre { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 4px; }
.reactions-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.reaction { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--card-bg); color: var(--text-main); font: inherit; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.reaction:hover { border-color: var(--bleu); transform: translateY(-1px); }
.reaction:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.reaction.active { border-color: var(--bleu); background: rgba(26, 86, 184, 0.12); }
.reaction-emoji { font-size: 1.25rem; line-height: 1; }
.reaction.pop .reaction-emoji { animation: reaction-pop .4s ease; }
@keyframes reaction-pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .reaction.pop .reaction-emoji { animation: none; } .reaction:hover { transform: none; } }
.compteurs-carte { display: inline-flex; gap: 10px; font-size: 0.85em; color: var(--text-muted); white-space: nowrap; }
.article-vues { color: var(--text-muted); font-size: 0.92em; white-space: nowrap; }

/* Texte d'introduction d'une rubrique de l'accueil (Site internet → Page d'accueil) */
.sp-section-intro { margin: 10px 0 0; max-width: 46em; color: var(--text-muted); font-size: 1.02rem; line-height: 1.55; }

/* Calendrier : « Ajouter à mon agenda » */
.ajout-agenda { position: relative; display: inline-block; }
/* Calendrier : choix de la saison et « Ajouter à mon agenda » sur la même ligne */
.cal-barre { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ajout-agenda > summary { list-style: none; cursor: pointer; }
.ajout-agenda > summary::-webkit-details-marker { display: none; }
.ajout-agenda-menu { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(320px, 86vw); display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--card-bg); box-shadow: 0 16px 36px rgba(10, 20, 40, 0.18); }
.ajout-agenda-menu a, .ajout-agenda-menu button { display: block; width: 100%; padding: 9px 12px; border: none; border-radius: 10px; background: var(--surface-2, transparent); color: var(--text-main); font: inherit; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
html.site-public .ajout-agenda-menu a { color: var(--text-main); text-decoration: none; }
.ajout-agenda-menu a:hover, .ajout-agenda-menu button:hover { background: var(--bleu); color: #fff; }
html.site-public .ajout-agenda-menu a:hover { color: #fff; }

/* Questions-réponses dépliables (pages et actualités) */
.sp-article-html details { margin: 0 0 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--card-bg); overflow: hidden; }
.sp-article-html summary { position: relative; padding: 15px 48px 15px 18px; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; }
.sp-article-html summary::-webkit-details-marker { display: none; }
.sp-article-html summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--bleu); border-bottom: 2.5px solid var(--bleu); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.sp-article-html details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.sp-article-html summary:hover { color: var(--bleu); }
.sp-article-html summary:focus-visible { outline: 3px solid var(--bleu); outline-offset: -3px; }
.sp-article-html details > :not(summary) { margin: 0 18px 14px; }
@media (prefers-reduced-motion: reduce) { .sp-article-html summary::after { transition: none; } }

/* Calculateur de points IWF */
.calculateur { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; align-items: stretch; margin-bottom: 22px; }
@media (max-width: 860px) { .calculateur { grid-template-columns: 1fr; } }
.calculateur-form { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.calculateur-sexe { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; padding: 0; border: none; }
.calculateur-sexe legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.calculateur-sexe label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1.5px solid var(--border); border-radius: 999px; cursor: pointer; font-weight: 600; text-transform: none; font-family: var(--font-body); }
.calculateur-sexe label:has(input:checked) { border-color: var(--bleu); background: rgba(26, 86, 184, 0.1); }
.calculateur-sexe input { width: auto; accent-color: var(--bleu); }
.calculateur-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.calculateur-champs label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; text-transform: none; font-family: var(--font-body); }
.calculateur-champs label span { font-weight: 400; color: var(--text-muted); }
.calculateur-champs input { font-size: 1.15rem; padding: 11px 13px; }
.calculateur-resultat { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 24px; text-align: center; background: var(--marine, #0f2f66); color: #fff; }
.calculateur-etiquette { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9cc7f2; }
.calculateur-score { font-family: var(--font-display); font-size: clamp(3.4rem, 8vw, 5rem); line-height: 1; }
.calculateur-detail { color: #c8d6ec; font-size: 0.92rem; }
.calculateur-position { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.18); width: 100%; }
.calculateur-position p { margin: 0 0 4px; }
.calculateur-position .small-note { color: #c8d6ec; }
.calculateur-explications { padding: 24px; margin-bottom: 40px; }
.calculateur-explications h2 { margin-top: 0; }

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

/* Recherche : barre de l'en-tête, suggestions, page de résultats */
.sp-barre-recherche { position: relative; z-index: 40; padding: 12px 0; background: var(--card-bg); border-bottom: 1px solid var(--border); box-shadow: 0 10px 24px rgba(10, 20, 40, 0.08); }
.sp-barre-recherche .sp-conteneur { position: relative; }
.sp-barre-recherche input { width: 100%; font-size: 1.1rem; padding: 13px 16px; border-radius: 12px; }
.sp-suggestions { position: absolute; left: 24px; right: 24px; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 40px rgba(10, 20, 40, 0.18); max-height: 70vh; overflow: auto; }
.sp-suggestions a { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--text-main); text-decoration: none; }
html.site-public .sp-suggestions a { color: var(--text-main); text-decoration: none; }
.sp-suggestions li.actif a, .sp-suggestions a:hover { background: var(--surface-2, rgba(26, 86, 184, 0.08)); }
.sp-sugg-type { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bleu); }
.sp-sugg-titre { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-sugg-info { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }
.sp-sugg-tout a { display: block; font-weight: 700; color: var(--bleu); }
html.site-public .sp-sugg-tout a { color: var(--bleu); }
@media (max-width: 600px) { .sp-suggestions a { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.recherche-page-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; max-width: 720px; }
.recherche-page-form input { flex: 1; min-width: 220px; font-size: 1.1rem; padding: 12px 15px; }
.recherche-groupe { margin: 0 0 28px; }
.recherche-groupe h2 { font-size: 1.4rem; margin: 0 0 10px; }
.recherche-groupe ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.recherche-groupe li { padding: 14px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--card-bg); }
.recherche-groupe li > a { font-weight: 700; font-size: 1.08rem; }
.recherche-info { margin-left: 8px; font-size: 0.85rem; color: var(--text-muted); }
.recherche-groupe li p { margin: 6px 0 0; color: var(--text-muted); line-height: 1.5; }
.recherche-groupe mark, .recherche-page-form mark { background: rgba(244, 180, 0, 0.35); color: inherit; padding: 0 2px; border-radius: 3px; }

/* Page Clubs : filtres par pratique, carte, pastilles */
.annuaire-pratiques { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 16px; }
.annuaire-pratique { padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--card-bg); color: var(--text-main); font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.annuaire-pratique[aria-pressed="true"] { border-color: var(--bleu); background: var(--bleu); color: #fff; }
.annuaire-pratique:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.annuaire-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.annuaire-badge { padding: 2px 8px; border-radius: 999px; background: rgba(26, 86, 184, 0.12); color: var(--bleu); font-size: 0.72rem; font-weight: 700; }

/* Galeries photos et visionneuse */
.galeries-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 40px; }
.galerie-carte { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--card-bg); border: 1px solid var(--border); color: var(--text-main); text-decoration: none; transition: transform .2s, box-shadow .2s; }
html.site-public a.galerie-carte { color: var(--text-main); text-decoration: none; }
.galerie-carte:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(10, 20, 40, 0.14); }
.galerie-carte-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.galerie-carte-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.galerie-carte:hover .galerie-carte-image img { transform: scale(1.04); }
.galerie-carte-texte { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.galerie-carte-texte strong { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.15; text-transform: uppercase; }
.galerie-carte-texte span { color: var(--text-muted); font-size: 0.9rem; }
.galerie-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.galerie-vignette { padding: 0; border: none; border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; background: var(--surface-2); }
.galerie-vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; }
.galerie-vignette:hover img { transform: scale(1.05); opacity: 0.92; }
.galerie-vignette:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
.visionneuse { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(5, 10, 25, 0.94); }
.visionneuse[hidden] { display: none; }
.visionneuse-figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.visionneuse-figure img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 6px; }
.visionneuse-figure figcaption { color: #e3e9f3; font-size: 0.95rem; text-align: center; }
.visionneuse-fermer, .visionneuse-nav { position: absolute; border: none; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; border-radius: 999px; }
.visionneuse-fermer { top: 16px; right: 16px; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; }
.visionneuse-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2.2rem; line-height: 1; }
.visionneuse-prec { left: 16px; } .visionneuse-suiv { right: 16px; }
.visionneuse-fermer:hover, .visionneuse-nav:hover { background: rgba(255, 255, 255, 0.25); }
.visionneuse button:focus-visible { outline: 3px solid #9cc7f2; outline-offset: 2px; }
@media (max-width: 600px) { .galerie-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .visionneuse-nav { display: none; } }
.album-lie { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding: 14px 18px; border-radius: 14px; background: var(--surface-2, rgba(26, 86, 184, 0.06)); border: 1px solid var(--border); }

/* Lettre d'information */
.lettre-form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; padding: 24px; margin-bottom: 40px; }
.lettre-form input[type="email"] { font-size: 1.1rem; padding: 12px 14px; }
.lettre-consentement { display: flex; gap: 10px; align-items: flex-start; text-transform: none; font-family: var(--font-body); font-weight: 400; line-height: 1.45; }
.lettre-consentement input { width: auto; margin-top: 4px; }
.lettre-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lettre-message { max-width: 720px; margin: 0 0 22px; padding: 14px 18px; border-radius: 14px; font-weight: 600; }
.lettre-succes { background: rgba(46, 157, 91, 0.12); color: #1d6b3d; border: 1px solid rgba(46, 157, 91, 0.35); }
.lettre-erreur { background: rgba(208, 32, 42, 0.1); color: #a3141c; border: 1px solid rgba(208, 32, 42, 0.3); }
.lettre-info { background: rgba(26, 86, 184, 0.08); border: 1px solid rgba(26, 86, 184, 0.25); }
html.site-public[data-mode="sombre"] .lettre-succes { color: #7fd9a3; }
html.site-public[data-mode="sombre"] .lettre-erreur { color: #ff9ca1; }

/* Résultats en direct */
.direct-point { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #e24b4a; animation: direct-pulse 1.4s infinite; vertical-align: middle; }
@keyframes direct-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(226, 75, 74, 0.6); } 50% { box-shadow: 0 0 0 6px rgba(226, 75, 74, 0); } }
@media (prefers-reduced-motion: reduce) { .direct-point { animation: none; } }
.bandeau-direct { display: block; padding: 9px 16px; background: #a3141c; color: #fff; text-align: center; font-size: 0.95rem; text-decoration: none; }
html.site-public a.bandeau-direct, html.site-public a.bandeau-direct:hover { color: #fff; text-decoration: none; }
.bandeau-direct .direct-point { background: #fff; }
.direct-maj { margin: 10px 0 0; font-weight: 600; }
.direct-attente { padding: 22px; margin-bottom: 40px; max-width: 640px; }
.direct-mise-en-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .direct-mise-en-page { grid-template-columns: 1fr; } .direct-fil { order: -1; } }
.direct-rencontre { padding: 20px; margin-bottom: 18px; }
.direct-rencontre-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.direct-rencontre-tete h2 { margin: 0; font-size: 1.35rem; }
.direct-statut { padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.direct-statut.en-cours { background: rgba(226, 75, 74, 0.14); color: #c4282f; }
.direct-statut.terminee { background: var(--surface-2); color: var(--text-muted); }
.direct-equipe { border-top: 1px solid var(--border); }
.direct-equipe summary { display: flex; align-items: center; gap: 12px; padding: 12px 4px; cursor: pointer; list-style: none; }
.direct-equipe summary::-webkit-details-marker { display: none; }
.direct-rang { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-2); font-weight: 800; }
.direct-equipe:first-of-type .direct-rang { background: #f4b400; color: #1d1d1d; }
.direct-nom-equipe { flex: 1; font-weight: 700; }
.direct-score { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--bleu); }
.direct-tableau { overflow-x: auto; padding-bottom: 10px; }
.direct-tableau table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.direct-tableau th, .direct-tableau td { padding: 6px 7px; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap; }
.direct-tableau th:first-child, .direct-athlete { text-align: left; }
.direct-athlete span { display: block; font-size: 0.78rem; color: var(--text-muted); }
.essai.reussi { color: #1d7a45; font-weight: 700; }
.essai.manque { color: #c4282f; text-decoration: line-through; }
.essai.nouveau { animation: direct-nouveau 2.5s ease; }
@keyframes direct-nouveau { 0% { background: rgba(244, 180, 0, 0.6); } 100% { background: transparent; } }
.direct-fil { padding: 18px; position: sticky; top: 16px; }
.direct-fil h2 { margin: 0 0 10px; font-size: 1.2rem; }
.direct-fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow: auto; }
.direct-fil li { padding: 9px 11px; border-radius: 10px; background: var(--surface-2); font-size: 0.88rem; line-height: 1.45; border-left: 4px solid var(--border); }
.direct-fil li.reussi { border-left-color: #2e9d5b; }
.direct-fil li.manque { border-left-color: #d0202a; }
html.site-public[data-mode="sombre"] .essai.reussi { color: #6fdc9a; }
html.site-public[data-mode="sombre"] .essai.manque { color: #ff8c92; }

/* Fiche d'un club : réseaux sociaux */
.club-reseaux { display: flex; flex-wrap: wrap; gap: 8px; }
.club-reseaux a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.88rem; font-weight: 600; text-decoration: none; }

/* Fiche d'un club : salle d'entraînement */
.club-salle { line-height: 1.5; }
.club-itineraire { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 5px 12px; border-radius: 999px; background: var(--bleu); color: #fff; font-weight: 700; font-size: 0.88rem; text-decoration: none; }
html.site-public a.club-itineraire, html.site-public a.club-itineraire:hover { color: #fff; text-decoration: none; }

/* Carte schématique de l'Île-de-France (page Clubs) */
.carte-idf { --c75: #1b2160; --c77: #2A327B; --c78: #E42313; --c91: #b81a0d; --c92: #f2533f; --c93: #3d47a6; --c94: #5560c2; --c95: #ff7462; --carte-trait: #ffffff; --carte-texte-clair: #0f2a5c;
  position: relative; margin: 4px 0 18px; }
html.site-public[data-mode="sombre"] .carte-idf { --c75: #2a3180; --c77: #353f99; --c93: #4a55b8; --c94: #6470d0; --carte-trait: #0b1530; }
.carte-idf-svg { display: block; width: 100%; max-width: 820px; height: auto; aspect-ratio: 800 / 648; margin: 0 auto; }
.carte-idf-barre { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 40px; margin-bottom: 4px; }
.carte-idf-titre-vue { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.carte-idf-retour { padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--card-bg); color: var(--text-main); font: inherit; font-weight: 700; cursor: pointer; }
.carte-idf-retour:hover { border-color: var(--bleu); color: var(--bleu); }
.carte-idf-legende { margin: 0 auto 0 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.carte-idf-legende span { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-left: 6px; }
.legende-ouest { background: #E42313; } .legende-est { background: #2A327B; }
html.site-public[data-mode="sombre"] .legende-est { background: #4a55b8; }
.calque-zoom { display: none; }
.carte-idf.zoom .calque-zoom { display: inline; }
.carte-idf.zoom .calque-ensemble { display: none; }   /* zoom : seules les étiquettes de la vue zoomée sont affichées */
.carte-idf-aide { grid-column: 1 / -1; margin: 0; }
.carte-idf-source { opacity: 0.7; }
.carte-dep { stroke: var(--carte-trait); stroke-width: 2; stroke-linejoin: round; cursor: pointer; transition: opacity .2s, filter .2s; outline: none; }
.carte-dep[data-dep="75"] { fill: var(--c75); } .carte-dep[data-dep="77"] { fill: var(--c77); } .carte-dep[data-dep="78"] { fill: var(--c78); } .carte-dep[data-dep="91"] { fill: var(--c91); }
.carte-dep[data-dep="92"] { fill: var(--c92); } .carte-dep[data-dep="93"] { fill: var(--c93); } .carte-dep[data-dep="94"] { fill: var(--c94); } .carte-dep[data-dep="95"] { fill: var(--c95); }
.carte-dep:hover { filter: brightness(1.15); }
.carte-dep:focus-visible { stroke: #f4b400; stroke-width: 3; }
.carte-idf.filtre .carte-dep:not(.actif) { opacity: 0.35; }
.carte-dep.actif { stroke: #f4b400; stroke-width: 3; }
.carte-etiquette, .carte-num-petit { pointer-events: none; }
.carte-etiquette text { font-family: var(--font-display); font-weight: 700; fill: #ffffff; }
.carte-etiquette .carte-compte { font-family: var(--font-body); font-weight: 600; opacity: 0.85; }
.carte-etiquette.clair text, .carte-num-petit.clair { fill: var(--carte-texte-clair); }
.carte-num-petit { font-family: var(--font-display); font-weight: 700; font-size: 13px; fill: #ffffff; }
.carte-point circle { fill: #ffffff; stroke: #0b1530; cursor: pointer; transition: fill .15s; }
.carte-point:hover circle, .carte-point:focus circle { fill: #f4b400; }
.carte-point:focus { outline: none; }
.carte-point:focus-visible circle { stroke: #f4b400; }
@media (prefers-reduced-motion: reduce) { .carte-dep { transition: none; } }

/* Page Calcul IWF (Sinclair) : largeur dynamique */
.calc-carte { margin-bottom: 0; min-width: 0; }
.calc-individuel { margin-bottom: 22px; }
.calc-individuel .grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.calc-equipes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 540px), 1fr)); gap: 22px; margin-bottom: 26px; align-items: start; }
.calc-equipes .calc-mixte { grid-column: 1 / -1; }
.calc-carte table { width: 100%; }
.calc-carte td input, .calc-carte td select { width: 100%; min-width: 80px; box-sizing: border-box; }
@media (max-width: 600px) {
  .calc-carte td input, .calc-carte td select { min-width: 0; padding: 8px 6px; }
  html.site-public .calc-carte th, html.site-public .calc-carte td { padding: 8px 5px; font-size: 0.85rem; white-space: normal; }
  .calc-carte table { table-layout: fixed; }
}

/* Championnats de France des clubs */
.cn-saison { margin: 0 0 18px; display: flex; align-items: center; gap: 8px; }
.cn-pastille { display: inline-block; padding: 2px 10px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 0.85em; letter-spacing: 0.03em; text-transform: uppercase; vertical-align: middle; }
.cn-top9 { background: #f4b400; color: #1d1d1d; }
.cn-nat1 { background: #c9d2de; color: #1d2b45; }
.cn-nat2 { background: #cd7f32; color: #ffffff; }
/* Pastilles de division utilisées comme liens (fiche club…) : leur couleur de texte prime sur celle des liens, en mode clair comme sombre */
html.site-public a.cn-pastille, html.site-public a.cn-pastille:hover, html.site-public a.cn-pastille:focus { text-decoration: none; }
html.site-public a.cn-top9, html.site-public a.cn-top9:hover, html.site-public[data-mode="sombre"] a.cn-top9, html.site-public[data-mode="sombre"] a.cn-top9:hover { color: #1d1d1d; }
html.site-public a.cn-nat1, html.site-public a.cn-nat1:hover, html.site-public[data-mode="sombre"] a.cn-nat1, html.site-public[data-mode="sombre"] a.cn-nat1:hover { color: #1d2b45; }
html.site-public a.cn-nat2, html.site-public a.cn-nat2:hover, html.site-public[data-mode="sombre"] a.cn-nat2, html.site-public[data-mode="sombre"] a.cn-nat2:hover { color: #ffffff; }
html.site-public a.cn-pastille:hover { filter: brightness(1.08); }
.cn-division { margin-bottom: 34px; }
.cn-division h2 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; margin: 0 0 14px; }
.cn-equipe { padding: 20px; margin-bottom: 16px; }
.cn-equipe-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.cn-equipe-tete h3 { margin: 0; font-size: 1.35rem; }
.cn-rang { text-align: right; flex-shrink: 0; }
.cn-rang strong { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--bleu); }
.cn-rang span { font-size: 0.85rem; color: var(--text-muted); }
.cn-rencontre { border-top: 1px solid var(--border); }
.cn-rencontre summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "j infos points" "j scores points"; gap: 2px 12px; align-items: center; padding: 12px 4px; cursor: pointer; list-style: none; }
.cn-rencontre summary::-webkit-details-marker { display: none; }
.cn-journee { grid-area: j; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); font-family: var(--font-display); font-weight: 700; }
.cn-rencontre-infos { grid-area: infos; font-size: 0.85rem; color: var(--text-muted); }
.cn-scores { grid-area: scores; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.92rem; }
.cn-scores .nous { color: var(--bleu); font-weight: 700; }
.cn-points { grid-area: points; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #2e9d5b; }
.cn-athletes th, .cn-athletes td { white-space: nowrap; text-align: center; }
.cn-athletes th:first-child, .cn-athletes td:first-child { text-align: left; }
.cn-essai.reussi { color: #1d7a45; font-weight: 700; }
@media (max-width: 600px) { .cn-athletes .cn-essai, .cn-athletes thead th[colspan] { display: none; } html.site-public .cn-athletes th, html.site-public .cn-athletes td { padding: 8px 6px; white-space: normal; } }   /* téléphone : athlète, catégorie, total et IWF (essais masqués) */
.cn-essai.manque { color: #c4282f; text-decoration: line-through; }
html.site-public[data-mode="sombre"] .cn-essai.reussi { color: #6fdc9a; }
html.site-public[data-mode="sombre"] .cn-essai.manque { color: #ff8c92; }
@media (max-width: 600px) { .cn-equipe-tete { flex-direction: column; } .cn-rang { text-align: left; } }

/* Championnats de France : parties Classement / Résultats à onglets */
.cn-partie { margin-bottom: 38px; }
.cn-partie-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cn-partie-tete h2 { margin: 0; font-size: 1.7rem; }
.cn-filtre { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; text-transform: none; font-family: var(--font-body); cursor: pointer; }
.cn-filtre input { width: auto; accent-color: var(--bleu); }
.cn-onglets { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 14px; }   /* sans ascenseur : les onglets passent à la ligne sur petit écran */
.cn-onglet { position: relative; padding: 11px 20px; border: none; background: none; color: var(--text-muted); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.03em; cursor: pointer; white-space: nowrap; }
.cn-onglet[aria-selected="true"] { color: var(--bleu); }
.cn-onglet[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--red, #e3242b); }
.cn-onglet:focus-visible, .cn-sexe:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.cn-onglet-point { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--red, #e3242b); vertical-align: middle; }
.cn-sexes { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: var(--surface-2); }
.cn-sexe { padding: 7px 18px; border: none; border-radius: 999px; background: none; color: var(--text-muted); font: inherit; font-weight: 700; cursor: pointer; }
.cn-sexe[aria-selected="true"] { background: var(--card-bg); color: var(--bleu); box-shadow: 0 2px 6px rgba(15, 47, 102, 0.1); }
.cn-titre-panneau { margin: 0 0 10px; font-size: 1.15rem; }
.cn-vide { margin: 6px 0 0; }
.cn-classement tr.nous td { background: rgba(26, 86, 184, 0.09); font-weight: 600; }
@media (max-width: 600px) { .cn-classement th:nth-child(4), .cn-classement td:nth-child(4), .cn-classement th:nth-child(5), .cn-classement td:nth-child(5) { display: none; } }   /* téléphone : rang, équipe, points */
.cn-classement tr.nous td:first-child { box-shadow: inset 4px 0 0 var(--bleu); }
.cn-idf { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--bleu); color: #fff; font-size: 0.72rem; font-weight: 700; vertical-align: middle; }
.cn-partie-classement.seulement-idf .cn-classement tbody tr:not(.nous) { display: none; }
.cn-partie-classement:not(.seulement-idf) .cn-vide-idf { display: none; }
.cn-journee-titre { margin: 18px 0 8px; font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.cn-rencontre-carte { padding: 0; margin-bottom: 10px; overflow: hidden; }
.cn-rencontre-carte > summary { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px; cursor: pointer; list-style: none; }
.cn-rencontre-carte > summary::-webkit-details-marker { display: none; }
.cn-rencontre-carte[open] > summary { border-bottom: 1px solid var(--border); }
.cn-rencontre-carte > :not(summary) { margin-left: 18px; margin-right: 18px; }
.cn-podium { display: flex; flex-direction: column; gap: 4px; }
.cn-ligne-equipe { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 64px; gap: 10px; align-items: center; padding: 5px 8px; border-radius: 8px; }
.cn-ligne-equipe.nous { background: rgba(26, 86, 184, 0.1); font-weight: 700; color: var(--bleu); }
.cn-place { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: 0.85rem; }
.cn-score { font-variant-numeric: tabular-nums; }
.cn-pts { text-align: right; font-weight: 700; color: #2e9d5b; }
.cn-voir { font-size: 0.82rem; font-weight: 600; color: var(--bleu); }
.cn-rencontre-carte[open] .cn-voir { display: none; }
.cn-equipe-detail { margin: 12px 0 4px; font-weight: 700; }

/* Fiche publique d'un club (page « magazine ») */
.fiche-club { padding-top: 24px; padding-bottom: 40px; }
.fc-entete { position: relative; margin-bottom: 18px; border-radius: 22px; overflow: hidden; background: var(--card-bg); border: 1px solid var(--border); }
.fc-bandeau { height: 190px; background: linear-gradient(120deg, #1c4aa0, #0f2a5c); background-size: cover; background-position: center; }
.fc-bandeau[style*="url("] { box-shadow: inset 0 -80px 80px -40px rgba(8, 18, 42, 0.55); }
.fc-identite { display: flex; align-items: flex-end; gap: 20px; padding: 0 26px 20px; margin-top: -58px; position: relative; }
.fc-logo { width: 120px; height: 120px; flex-shrink: 0; border-radius: 50%; background: #fff; border: 5px solid var(--card-bg); box-shadow: 0 10px 24px rgba(10, 20, 40, 0.2); overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: #173f8a; }
.fc-logo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; box-sizing: border-box; }
.fc-titre { min-width: 0; padding-top: 66px; padding-bottom: 4px; }   /* seul le logo déborde sur le bandeau ; le texte commence dessous */
.fc-surtitre { margin: 0 0 2px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.fc-titre h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.05; }
.fc-pastilles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fc-pastille { padding: 3px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: #fff; background: var(--bleu); }
.fc-secteur-ouest { background: #E42313; } .fc-secteur-est { background: #2A327B; }
html.site-public[data-mode="sombre"] .fc-secteur-est { background: #4a55b8; }
.fc-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.fc-chiffres div { padding: 14px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--border); text-align: center; }
.fc-chiffres strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--bleu); }
.fc-chiffres span { font-size: 0.85rem; color: var(--text-muted); }
.fc-grille { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.fc-pratique { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.fc-principal { display: flex; flex-direction: column; gap: 14px; }
.fc-bloc { padding: 20px; margin: 0; }
.fc-bloc h2 { margin: 0 0 12px; font-size: 1.3rem; }
.fc-bloc h3 { margin: 14px 0 6px; font-size: 0.95rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fc-description { white-space: pre-line; margin: 0; line-height: 1.6; }
.fc-liste { list-style: none; margin: 0; padding: 0; }
.fc-liste li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.fc-liste li:last-child { border-bottom: none; }
.fc-valeur { text-align: right; font-size: 0.92rem; white-space: nowrap; }
.fc-portee { font-size: 0.75rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.fc-portee-reg { background: rgba(244, 180, 0, 0.2); color: #9a6f00; } .fc-portee-dep { background: rgba(26, 86, 184, 0.12); color: var(--bleu); }
html.site-public[data-mode="sombre"] .fc-portee-reg { color: #f4c64a; }
.fc-depliant summary { cursor: pointer; list-style: none; }
.fc-depliant summary::-webkit-details-marker { display: none; }
.fc-depliant summary h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 0; }
.fc-depliant summary h2::after { content: "▾"; font-size: 0.9rem; color: var(--text-muted); transition: transform .2s; }
.fc-depliant[open] summary h2::after { transform: rotate(180deg); }
.fc-depliant + .fc-depliant { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.fc-noms { columns: 2 220px; margin: 10px 0 0; padding: 0; list-style: none; }
.fc-noms li { padding: 3px 0; break-inside: avoid; }
.mini-carte-club { display: block; width: 100%; height: auto; margin-bottom: 10px; }
.fc-adresse { margin: 0 0 8px; line-height: 1.5; }
.fc-horaires { margin: 0; line-height: 1.6; }
.fc-contact { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.fc-infos { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 0.92rem; }
.fc-infos dt { color: var(--text-muted); } .fc-infos dd { margin: 0; }
.fc-labels { display: flex; flex-wrap: wrap; gap: 14px; }
.fc-labels div { width: 84px; text-align: center; font-size: 0.78rem; color: var(--text-muted); }
.fc-labels img { display: block; width: 60px; height: 60px; margin: 0 auto 4px; }
@media (max-width: 900px) {
  .fc-grille { grid-template-columns: 1fr; }
  .fc-pratique { position: static; order: -1; }   /* téléphone : où et quand s'entraîner, juste sous l'en-tête */
}
@media (max-width: 600px) {
  .fc-bandeau { height: 120px; }
  .fc-identite { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: -48px; padding: 0 18px 18px; }
  .fc-titre { padding-top: 0; }
  .fc-logo { width: 92px; height: 92px; }
  .fc-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Avertissement « page en cours de finalisation » */
.avis-finalisation { background: rgba(240, 140, 43, 0.14); border-bottom: 1px solid rgba(240, 140, 43, 0.45); color: #8a4b05; font-size: 0.95rem; }
.avis-finalisation .sp-conteneur { padding-top: 10px; padding-bottom: 10px; }
html.site-public[data-mode="sombre"] .avis-finalisation { color: #ffd2a1; }

/* Résultats d'une compétition (calendrier : bouton et fenêtre ; page resultats-competition.php) */
.cal-resultats { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 14px; border-radius: 999px; background: var(--bleu); color: #fff !important; font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.cal-resultats:hover { filter: brightness(1.1); }
.cal-resultats.cal-voir { background: transparent; border: 1.5px solid var(--bleu); color: var(--bleu) !important; }
.sp-tour-journee-lien { text-decoration: none; color: inherit; border-radius: 10px; transition: background .15s; }
.sp-tour-journee-lien:hover { background: var(--surface-2); text-decoration: none; }
.sp-tour-journee-lien .sp-tour-date { white-space: nowrap; }
.rc-tete { margin-bottom: 16px; padding-right: 40px; }
.rc-tete h2 { margin: 2px 0 0; font-size: 1.6rem; }
.rc-surtitre { margin: 0; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); }
.rc-bloc { margin-bottom: 22px; }
.rc-bloc h3 { margin: 0 0 10px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.03em; }
.rc-equipe { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 8px; overflow: hidden; }
.rc-equipe summary { display: grid; grid-template-columns: 34px 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; list-style: none; }
.rc-equipe summary::-webkit-details-marker { display: none; }
.rc-equipe[open] summary { border-bottom: 1px solid var(--border); background: var(--surface-2); }
.rc-equipe .table-wrap { margin: 0; }
.rc-rang { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); font-weight: 700; }
.rc-rang-1 { background: #f4b400; color: #1d1d1d; } .rc-rang-2 { background: #c9d2de; color: #1d2b45; } .rc-rang-3 { background: #cd7f32; color: #fff; }
.rc-logo { width: 40px; height: 40px; border-radius: 50%; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rc-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; }
.rc-initiales { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: #173f8a; }
.rc-nom { display: flex; flex-direction: column; min-width: 0; }
.rc-nom .muted { font-size: 0.82rem; }
.rc-score { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--bleu); font-variant-numeric: tabular-nums; }
.rc-table { width: 100%; }   /* toute la largeur de la colonne centrale */
.rc-table th, .rc-table td { white-space: nowrap; }
.rc-table td:nth-child(2) { white-space: normal; }
.rc-page { margin-bottom: 18px; }
.rc-page .rc-bloc { margin-bottom: 30px; }
.rc-page .rc-bloc h3 { font-size: 1.4rem; }
.rc-page .rc-equipe summary { padding: 14px 18px; }
.rc-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; margin: 0 0 26px; }   /* deux colonnes sur téléphone */
.rc-infos div { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--border); }
.rc-infos span { font-size: 0.82rem; color: var(--text-muted); }
.rc-infos strong { font-size: 1.05rem; }
.rc-retour { margin: 0 0 40px; font-weight: 600; }
.rc-presentation { margin: 0 0 26px; }
html.site-public .container > .rc-presentation h2, html.site-public .container > h2.rc-titre-resultats { margin: 0 0 18px; font-size: 1.4rem; }
.rc-presentation p { margin: 0; line-height: 1.6; }
.rc-clubs { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-club { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--card-bg); border: 1px solid var(--border); font-weight: 600; text-decoration: none; color: var(--text-main); }
.rc-club:hover { border-color: var(--bleu); color: var(--bleu); text-decoration: none; }
.rc-club .rc-logo { width: 32px; height: 32px; }
.rc-inscriptions { margin: -8px 0 24px; padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.rc-insc-ouvertes { background: rgba(46, 157, 91, 0.12); color: #1d7a45; } .rc-insc-avenir { background: rgba(244, 180, 0, 0.15); color: #8a6400; } .rc-insc-closes { background: var(--surface-2); color: var(--text-muted); }
html.site-public[data-mode="sombre"] .rc-insc-ouvertes { color: #6fdc9a; } html.site-public[data-mode="sombre"] .rc-insc-avenir { color: #f4c64a; }
.rc-article { display: flex; gap: 16px; align-items: center; margin: 0 0 26px; padding: 14px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--border); border-left: 5px solid var(--rouge, #e42313); color: var(--text-main); text-decoration: none; }
.rc-article:hover { border-color: var(--bleu); text-decoration: none; }
.rc-article > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.rc-article-titre { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.rc-article-image { flex-shrink: 0; width: 120px; height: 78px; border-radius: 10px; background: var(--surface-2) center / cover no-repeat; }
@media (max-width: 600px) { .rc-article-image { width: 84px; height: 60px; } }
.rc-onglets { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 18px; border-radius: 999px; background: var(--surface-2); }
.rc-onglets button { padding: 8px 20px; border: none; border-radius: 999px; background: transparent; font: inherit; font-weight: 700; color: var(--text-muted); cursor: pointer; }
.rc-onglets button.actif { background: var(--card-bg); color: var(--bleu); box-shadow: 0 2px 6px rgba(15, 47, 102, 0.1); }
.rc-vue[hidden] { display: none; }
.rc-dates { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.rc-dates button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card-bg); font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; }
.rc-dates button.actif { background: var(--bleu); border-color: var(--bleu); color: #fff; }
html.site-public[data-mode="sombre"] .rc-dates button.actif { color: #0b1730; }
.rc-bloc[hidden], .rc-table tr[hidden] { display: none; }
.rc-regle-jeunes { margin: -4px 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(244, 180, 0, 0.12); }
.rc-attente { padding: 18px; border-radius: 14px; background: var(--surface-2); text-align: center; }
.rc-podium-1 td:first-child { box-shadow: inset 4px 0 0 #f4b400; } .rc-podium-2 td:first-child { box-shadow: inset 4px 0 0 #c9d2de; } .rc-podium-3 td:first-child { box-shadow: inset 4px 0 0 #cd7f32; }
.rc-lien { font-size: 0.9rem; }

/* Records : onglets actuels / archivés */
.records-epoques-onglets { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 8px; border-radius: 999px; background: var(--surface-2); }
.records-epoques-onglets a { padding: 8px 20px; border-radius: 999px; font-weight: 700; color: var(--text-muted); text-decoration: none; }
.records-epoques-onglets a.actif { background: var(--card-bg); color: var(--bleu); box-shadow: 0 2px 6px rgba(15, 47, 102, 0.1); }
.records-epoque-texte { margin: 0 0 16px; }

/* Page des records (proposition C) */
.rec-recents { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 6px 0 22px; }
.rec-recent { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, var(--card-bg), var(--surface-2)); border: 1px solid var(--border); border-left: 5px solid #f4b400; }
.rec-recent-titre { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.rec-recent strong { font-family: var(--font-display); font-size: 2.1rem; line-height: 1.05; color: #c48f00; }
html.site-public[data-mode="sombre"] .rec-recent strong { color: #f4c64a; }
.rec-recent-qui { font-size: 0.85rem; color: var(--text-muted); }
.rec-filtres { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 10px; }
.rec-groupe, .rec-ages { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.rec-groupe a, .rec-ages a { padding: 7px 13px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; color: var(--text-muted); text-decoration: none; }
.rec-groupe a:hover, .rec-ages a:hover { color: var(--bleu); }
.rec-groupe a.actif, .rec-ages a.actif { background: var(--card-bg); color: var(--bleu); box-shadow: 0 2px 6px rgba(15, 47, 102, 0.12); }
.rec-ages { margin-bottom: 18px; }
.rec-recherche { margin-left: auto; }
.rec-recherche input { min-width: 220px; }
.rec-titre { font-size: 1.35rem; }
html.site-public .container > h2.rec-titre { margin: 4px 0 1.4em; }   /* deux lignes d'air sous le liseré rouge (la règle générale des titres remet les marges à zéro) */
.rec-vide { margin: 10px 0 40px; }
/* Tableau à la largeur de l'écran, sans défilement horizontal : colonnes fixes, textes qui passent à la ligne */
html.site-public .rec-tableau-cadre { overflow: hidden; }   /* rogne l'en-tête et la dernière ligne aux angles arrondis du cadre ; pas de défilement (le tableau tient dans la largeur) */
.rec-tableau { width: 100%; table-layout: fixed; }
.rec-tableau th, .rec-tableau td { vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.rec-tableau thead th:first-child { width: 136px; }
.rec-tableau thead th:not(:first-child) { width: auto; }
.rec-categorie { font-family: var(--font-display); font-size: 1.15rem; white-space: nowrap; }
html.site-public .rec-tableau tbody th.rec-categorie { background: transparent; color: var(--text-main); text-transform: none; letter-spacing: normal; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--border); }
html.site-public .rec-tableau thead th:first-child { text-align: center; }   /* même style que les autres cellules de la ligne */
.rec-valeur { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--bleu); line-height: 1.1; }
.rec-qui { display: block; margin-top: 2px; font-weight: 600; font-size: 0.9rem; }
.rec-quand { display: block; font-size: 0.78rem; color: var(--text-muted); }
.rec-sans { color: var(--text-muted); }
@media (max-width: 720px) {
  .rec-recherche { margin-left: 0; width: 100%; } .rec-recherche input { width: 100%; }
  /* Téléphone : chaque catégorie devient une petite carte */
  html.site-public .rec-tableau-cadre { overflow: visible; background: transparent; border: none; border-radius: 0; box-shadow: none; }   /* téléphone : chaque carte a ses propres angles */
  .rec-tableau thead { display: none; }
  .rec-tableau, .rec-tableau tbody, .rec-tableau tr, .rec-tableau th, .rec-tableau td { display: block; width: 100%; box-sizing: border-box; }
  .rec-tableau tr { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--card-bg); }
  html.site-public .rec-tableau .rec-categorie { background: var(--surface-2); padding: 8px 14px; text-align: left; }
  .rec-tableau td { padding: 8px 14px; border-top: 1px solid var(--border); }
  .rec-tableau td::before { content: attr(data-mouvement); display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
}

/* Pied de page : inscription à la lettre d'information */
.sp-lettre-pied { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px 36px; align-items: center; margin: 0 0 34px; padding: 26px 30px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
html.site-public .sp-lettre-pied h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.7rem; text-transform: uppercase; color: #fff; }   /* plus précis que la couleur foncée des titres du site */
.sp-lettre-pied h2::after { display: none; }
.sp-lettre-pied p { margin: 0; color: #c8d6ec; }
.sp-lettre-pied-ligne { display: flex; gap: 8px; }
.sp-lettre-pied-ligne input[type="email"] { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.95); color: #12203f; font-size: 1rem; }
.sp-lettre-pied-ligne .sp-btn { flex-shrink: 0; border-radius: 999px; }
html.site-public .sp-lettre-pied-accord { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 0.82rem; font-weight: 400; text-transform: none; letter-spacing: normal; color: #c8d6ec; cursor: pointer; }
.sp-lettre-pied-accord input { width: auto; margin-top: 3px; flex-shrink: 0; accent-color: #f4b400; }
html.site-public .sp-lettre-pied-accord a { color: #fff; text-decoration: underline; }
@media (max-width: 760px) { .sp-lettre-pied { grid-template-columns: 1fr; padding: 22px 20px; } .sp-lettre-pied-ligne { flex-direction: column; } }

/* Téléphone : classement complet du championnat et grille des minima en cartes */
@media (max-width: 700px) {
  html.site-public .table-wrap:has(> .classement-cartes), html.site-public .table-wrap:has(> .minima-cartes) { background: transparent; border: none; box-shadow: none; overflow: visible; }
  .classement-cartes thead, .minima-cartes thead { display: none; }
  .classement-cartes, .classement-cartes tbody, .minima-cartes, .minima-cartes tbody { display: block; width: 100%; }
  /* Classement : rang, équipe et moyenne en tête ; club ; T1…T4 et record ; accession */
  .classement-cartes tr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-areas: "rang equipe equipe moy moy" "club club club club club" "t1 t2 t3 t4 rec" "acc acc acc acc acc";
    gap: 6px 8px; align-items: center; margin-bottom: 12px; padding: 14px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--border); }
  html.site-public .classement-cartes td, html.site-public .minima-cartes td { border: none; box-shadow: none; }   /* sans les traits des tableaux */
  .classement-cartes td { display: block; padding: 0; border: none; background: none; text-align: left; min-width: 0; }
  .classement-cartes .c-rang { grid-area: rang; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
  .classement-cartes .c-equipe { grid-area: equipe; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
  .classement-cartes .c-moy { grid-area: moy; text-align: right; font-family: var(--font-display); font-size: 1.35rem; color: var(--bleu); white-space: nowrap; }
  .classement-cartes .c-rang .rank-badge { flex-shrink: 0; }
  .classement-cartes .c-club { grid-area: club; font-size: 0.88rem; display: flex; align-items: center; gap: 8px; }
  .classement-cartes .c-club a, .classement-cartes .c-equipe { white-space: normal; overflow-wrap: break-word; min-width: 0; }   /* noms de clubs très longs : à la ligne */
  .classement-cartes .c-t1 { grid-area: t1; } .classement-cartes .c-t2 { grid-area: t2; } .classement-cartes .c-t3 { grid-area: t3; } .classement-cartes .c-t4 { grid-area: t4; } .classement-cartes .c-rec { grid-area: rec; }
  .classement-cartes .c-t1, .classement-cartes .c-t2, .classement-cartes .c-t3, .classement-cartes .c-t4, .classement-cartes .c-rec { padding: 6px 4px; border-radius: 10px; background: var(--surface-2); text-align: center; font-size: 0.92rem; font-weight: 600; }
  .classement-cartes .c-acc { grid-area: acc; font-size: 0.85rem; }
  .classement-cartes [data-label]::before { content: attr(data-label); display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
  .classement-cartes .c-moy::before, .classement-cartes .c-acc::before { display: inline; margin-right: 6px; }
  .classement-cartes .c-moy::before { display: block; margin: 0; }
  .classement-cartes tr td[colspan] { grid-column: 1 / -1; }
  /* Minima : une carte par catégorie de poids, les niveaux en grille */
  .minima-cartes tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; padding: 14px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--border); }
  .minima-cartes td { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 7px 10px; border: none; border-radius: 10px; background: var(--surface-2); font-weight: 700; }
  .minima-cartes td:first-child { grid-column: 1 / -1; padding: 0 0 4px; background: none; font-family: var(--font-display); font-size: 1.3rem; }
  .minima-cartes td[data-label]::before { content: attr(data-label); font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
}

/* Résultats des tours : nom d'équipe et score sans chevauchement */
.resultats-equipe-nom { flex: 1; min-width: 0; overflow-wrap: break-word; }
@media (max-width: 600px) {
  .resultats-equipe > summary { gap: 8px; padding: 10px; }
  .resultats-score small { display: none; }   /* « pts IWF » : rappelé en tête de page */
  .resultats-score { font-size: 1.1rem; }
}

/* Tableaux adaptatifs : pile de cartes sur téléphone (titre de colonne devant chaque valeur, repris par main.js) */
@media (max-width: 700px) {
  html.site-public .table-wrap:has(> table.tableau-adaptatif) { background: transparent; border: none; box-shadow: none; overflow: visible; }
  table.tableau-adaptatif thead { display: none; }
  table.tableau-adaptatif, table.tableau-adaptatif tbody { display: block; width: 100%; }
  table.tableau-adaptatif tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; margin-bottom: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--border); }
  html.site-public table.tableau-adaptatif td { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; padding: 4px 0; border: none; background: none; text-align: right; white-space: normal; overflow-wrap: break-word; }
  table.tableau-adaptatif td[data-label]::before { content: attr(data-label); flex-shrink: 0; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-align: left; }
  html.site-public table.tableau-adaptatif td.ta-titre { grid-column: 1 / -1; justify-content: flex-start; padding: 0 0 6px; margin-bottom: 4px; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; text-align: left; }
  html.site-public table.tableau-adaptatif td.ta-titre { order: -1; }   /* le titre de la carte en premier */
  table.tableau-adaptatif.ta-une-colonne tr { grid-template-columns: minmax(0, 1fr); }
  table.tableau-adaptatif tr.ta-ligne-unique { display: block; }
  html.site-public table.tableau-adaptatif tr.ta-ligne-unique td { display: block; text-align: left; }
}

/* Calendrier : niveau des compétitions individuelles */
.cal-filtre-niveau { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.cal-filtre-niveau button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card-bg); font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; }
.cal-filtre-niveau button span { margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); font-size: 0.78rem; }
.cal-filtre-niveau button.actif { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.cal-filtre-niveau button.actif span { background: rgba(255, 255, 255, 0.22); }
html.site-public[data-mode="sombre"] .cal-filtre-niveau button.actif { color: #0b1730; }
.cal-badge-national { background: rgba(26, 86, 184, 0.14); color: #1a56b8; font-weight: 700; }
.cal-badge-international { background: rgba(244, 180, 0, 0.18); color: #8a6400; font-weight: 700; }
html.site-public[data-mode="sombre"] .cal-badge-national { color: #8fc2f5; } html.site-public[data-mode="sombre"] .cal-badge-international { color: #f4c64a; }
.cal-carte[hidden] { display: none; }
.cal-avatar-federation { background: #fff; } .cal-avatar-federation img { object-fit: contain; padding: 9px; box-sizing: border-box; }   /* logo de la FFHM, rectangulaire */

/* Bourse au matériel */
.bourse-apercu { margin: 16px 0 0; padding: 10px 16px; border-radius: 12px; background: rgba(244, 180, 0, 0.14); border: 1px solid rgba(244, 180, 0, 0.5); }
.bourse-filtres { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 20px; }
.bourse-filtres-selects { display: flex; gap: 8px; flex-wrap: wrap; }
.bourse-filtres-selects select { width: auto; min-width: 190px; }
.bourse-vide { margin: 10px 0 30px; }
.bourse-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-bottom: 24px; }
.bourse-carte { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--card-bg); border: 1px solid var(--border); color: var(--text-main); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.bourse-carte:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 47, 102, 0.14); text-decoration: none; }
.bourse-carte-image { position: relative; height: 190px; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--surface-2) center / cover no-repeat; }
.bourse-conclue .bourse-carte-image { filter: grayscale(0.7); opacity: 0.75; }
.bourse-type { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: #fff; }
.bourse-carte-image .bourse-type { position: absolute; top: 12px; left: 12px; }
.bourse-type-vente { background: #1a56b8; } .bourse-type-don { background: #2e9d5b; } .bourse-type-recherche { background: #c48f00; }
.bourse-statut { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: #1d1d1d; color: #fff; }
.bourse-carte-image .bourse-statut { position: absolute; top: 12px; right: 12px; }
.bourse-carte-corps { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.bourse-carte-corps strong { font-size: 1.05rem; line-height: 1.3; }
.bourse-prix { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--bleu); }
.bourse-prix-grand { font-size: 2rem; margin: 0 0 12px; }
.bourse-meta { font-size: 0.86rem; color: var(--text-muted); }
.bourse-cadre { margin: 0 0 40px; }
.bourse-retour { margin: 18px 0 10px; font-weight: 600; }
.bourse-annonce { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; margin: 0 0 26px; }
@media (max-width: 800px) { .bourse-annonce { grid-template-columns: 1fr; } }
.bourse-photo-principale { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: var(--surface-2); display: block; }
.bourse-sans-photo { display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.bourse-vignettes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }   /* jusqu'à 6 photos */
.bourse-vignettes button { padding: 0; width: 84px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; }
.bourse-vignettes button.actif { border-color: var(--bleu); }
.bourse-vignettes img { width: 100%; height: 100%; object-fit: cover; }
html.site-public .bourse-infos h1 { margin: 10px 0 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.bourse-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.bourse-details div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.bourse-details dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.bourse-details dd { margin: 2px 0 0; font-weight: 600; }
.bourse-description { line-height: 1.6; }
.bourse-contact { margin: 0 0 18px; }
html.site-public .bourse-contact h2 { margin: 0 0 6px; font-size: 1.4rem; }
html.site-public .bourse-contact h2::after { display: none; }
.bourse-contact-ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
.bourse-contact textarea { margin-bottom: 12px; }
.bourse-signaler { margin: 0 0 14px; font-size: 0.9rem; }
.bourse-signaler summary { cursor: pointer; color: var(--text-muted); }
.bourse-signaler form { margin-top: 10px; max-width: 520px; }
/* Accueil : dernières annonces */
.sp-bourse-accueil { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }

/* Engagement au Critérium national */
.crit-message { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); }
.crit-message ul { margin: 6px 0 0; padding-left: 20px; }
.crit-succes { background: rgba(46, 157, 91, 0.12); border-color: rgba(46, 157, 91, 0.45); }
.crit-erreur { background: rgba(228, 35, 19, 0.08); border-color: rgba(228, 35, 19, 0.4); }
.crit-info { background: rgba(26, 86, 184, 0.08); border-color: rgba(26, 86, 184, 0.35); }
.crit-recap { margin: 0 0 18px; padding: 22px 24px; }
.crit-recap-tete h3 { margin: 0 0 14px; font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; color: var(--bleu); }
.crit-recap-tete dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0 0 22px; }
.crit-recap-tete dl div { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.crit-recap-tete dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.crit-recap-tete dd { margin: 3px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.crit-recap-tete dd span { font-weight: 400; color: var(--text-muted); }
.crit-recap-groupe { margin: 0 0 18px; }
.crit-recap-groupe h4 { margin: 0 0 8px; font-size: 1.05rem; }
.crit-recap-vide { margin: 0; color: var(--text-muted); }
.crit-recap-table { width: 100%; border-collapse: collapse; }
.crit-recap-table th { padding: 8px 12px; text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.crit-recap-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: normal; }   /* la règle commune des tableaux interdit le retour à la ligne */
.crit-recap-table th { white-space: normal; }
.crit-recap-table tr:last-child td { border-bottom: none; }
.crit-recap-table td:first-child { font-weight: 600; }
.crit-recap-table td:last-child { color: var(--text-muted); font-family: var(--font-mono, monospace); font-size: 0.9rem; }
.crit-recap-total { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.crit-recap-liens { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
@media (max-width: 600px) {
  .crit-recap { padding: 18px 16px; }
  .crit-recap-table { table-layout: fixed; font-size: 0.9rem; }
  .crit-recap-table th, .crit-recap-table td { padding: 8px 6px; overflow-wrap: anywhere; }
  html.site-public .crit-recap-table th { font-size: 0.64rem; letter-spacing: 0; overflow-wrap: normal; word-break: keep-all; }   /* plus précis que la règle commune des en-têtes */
  .crit-recap-table th:nth-child(1) { width: 46%; } .crit-recap-table th:nth-child(2), .crit-recap-table th:nth-child(3) { width: 27%; }
  .crit-recap-table td:last-child { font-size: 0.82rem; }
}
.crit-form fieldset { margin: 0 0 18px; border: 1px solid var(--border); }
.crit-form legend { padding: 0 8px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; color: var(--bleu); }
.crit-epreuves { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.crit-epreuve { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--border); cursor: pointer; text-transform: none; font-family: var(--font-body); margin: 0; }
.crit-epreuve:has(input:checked) { border-color: var(--bleu); background: rgba(26, 86, 184, 0.06); }
.crit-epreuve input { width: auto; margin-top: 4px; }
.crit-epreuve span { display: flex; flex-direction: column; gap: 2px; }
.crit-epreuve small { color: var(--text-muted); }
.crit-ligne3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; margin-top: 10px; }
.crit-lieu { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 12px; }
.crit-lieu-titre { font-weight: 700; }
.crit-lieux[hidden] { display: none; }
.crit-lieux label { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 0 0; text-transform: none; font-family: var(--font-body); font-size: 1rem; }
.crit-lieux input { width: auto; }
.crit-compte { display: inline-block; min-width: 26px; padding: 0 8px; margin-left: 6px; border-radius: 999px; background: var(--bleu); color: #fff; font-size: 0.9rem; text-align: center; }
.crit-entete, .crit-athlete { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) 38px; gap: 8px; align-items: center; }
.crit-entete { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 4px; }
.crit-athlete { margin-bottom: 8px; }
.crit-athlete input, .crit-athlete select { margin: 0; }
.crit-retirer { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text-muted); cursor: pointer; }
.crit-retirer:hover { color: #c4282f; border-color: #c4282f; }
.crit-ajouter { margin-top: 4px; }
.sp-carte.crit-import { flex-direction: row; padding: 16px 20px; }   /* les cartes sont en colonne : le cadre d'import est en ligne */
.crit-import { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; margin: 0 0 18px; border: 1px dashed var(--border); }
.crit-import > div:first-child { display: flex; flex-direction: column; gap: 4px; flex: 1 1 340px; }
.crit-import-fichier { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crit-import-fichier input[type=file] { width: auto; max-width: 260px; margin: 0; }
.crit-alerte { grid-column: 1 / -1; margin: -2px 0 0; padding: 6px 10px; border-radius: 8px; background: rgba(228, 35, 19, 0.1); color: #c4282f; font-size: 0.85rem; font-weight: 600; }
html.site-public[data-mode="sombre"] .crit-alerte { color: #ff8a80; }
.crit-total { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 0 0 10px; }
.sp-carte.crit-total { flex-direction: row; padding: 14px 20px; }   /* les cartes sont en colonne : la barre des effectifs est en ligne */
.crit-total > span:not(.crit-boutons) { white-space: nowrap; }
.crit-total .btn { margin-left: auto; }
.crit-boutons { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; } .crit-boutons .btn { margin-left: 0; }
@media (max-width: 700px) {
  .crit-entete { display: none; }
  .crit-athlete { grid-template-columns: minmax(0, 1fr) 38px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
  .crit-athlete input[name$="[nom]"] { grid-column: 1; }
  .crit-athlete select, .crit-athlete .crit-licence { grid-column: 1; }
  .crit-retirer { grid-column: 2; grid-row: 1; }
  .crit-total .btn { margin-left: 0; width: 100%; } .crit-boutons { width: 100%; margin-left: 0; }
}

/* Divers */
html.site-public .small-note { color: var(--text-muted); }
html.site-public .flash { border-radius: 12px; }

/* ==========================================================
   Mode clair : cadres mieux visibles — liseré bleu du logo en haut de
   chaque cadre et bordure plus marquée (les cadres se fondaient dans le
   fond de page). Le mode sombre n'est pas concerné.
   ========================================================== */
html.site-public:not([data-mode="sombre"]) :is(.card, .sp-carte, .cal-carte, .comite-carte, .commission-carte, .doc-carte, .annuaire-carte, .sp-partenaire, .table-wrap) {
  border: 1px solid #d3deec;
  border-top: 4px solid #1a56b8;
}
html.site-public:not([data-mode="sombre"]) :is(a.sp-carte, .cal-carte, .doc-carte, .annuaire-carte, a.sp-partenaire, a.card):hover {
  border-color: #1a56b8;
}

/* Pied de page : couleurs prioritaires sur la règle générale des liens
   (en mode clair, les liens prenaient le bleu du logo, illisible sur le
   fond bleu nuit). Textes éclaircis pour un meilleur contraste. */
html.site-public .sp-pied { color: #dbe6f5; }
html.site-public .sp-pied a, html.site-public .sp-pied button.sp-lien, html.site-public .sp-pied .sp-pied-col span { color: #dbe6f5; }
html.site-public .sp-pied a:hover, html.site-public .sp-pied button.sp-lien:hover { color: #ffffff; text-decoration: underline; }
html.site-public .sp-pied .sp-pied-bas, html.site-public .sp-pied .sp-pied-bas a { color: #b9c9e2; }
html.site-public .sp-pied .sp-pied-bas a:hover { color: #ffffff; }
html.site-public .sp-pied a:focus-visible, html.site-public .sp-pied button:focus-visible { outline: 3px solid #e7b92e; outline-offset: 2px; }

/* ---------------------------------------------------------- Responsive */
@media (max-width: 1000px) {
  .sp-hero .sp-conteneur { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 36px; }
  .sp-chiffres .sp-conteneur { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-chiffre { padding: 20px 0 20px 20px; }
  .sp-chiffre:nth-child(3) { border-left: none; padding-left: 0; border-top: 1px solid var(--border); }
  .sp-chiffre:nth-child(4) { border-top: 1px solid var(--border); }
  .sp-grille-3 { grid-template-columns: 1fr; }
  .sp-records { grid-template-columns: 1fr; gap: 20px; }
  .sp-pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .sp-pied-grille > :first-child { grid-column: 1 / -1; }
  .sp-section { padding-top: 48px; }
}
@media (max-width: 600px) {
  .sp-conteneur { padding: 0 18px; }
  .sp-chiffre b { font-size: 2.5rem; }
  .sp-rdv { padding: 22px 20px; }
  .sp-rdv-titre { font-size: 1.6rem; }
  .sp-rdv .compte-a-rebours .car-nombre { font-size: 1.8rem; }
  .sp-record { grid-template-columns: minmax(0, 1fr) auto; }
  .sp-record-mvt, .sp-badge-nouveau { display: none; }
  .sp-record-compact .sp-record-mvt { display: block; }   /* disposition femmes / hommes : la ligne tient sous le nom */
  .sp-contact-grille { grid-template-columns: 1fr; }
  .sp-bascule { width: 100%; }
  .sp-bascule button { flex: 1; padding: 10px 8px; }
}
@media (max-width: 600px) {
  html.site-public .page-hero { padding: 32px 0 24px; }
  html.site-public .tabs { display: flex; }
  html.site-public .tabs a { flex: 1 1 auto; justify-content: center; }
  html.site-public thead th, html.site-public tbody td { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-ruban-piste { animation: none; }
  .sp-reseau:hover { transform: none; }
  .sp-btn:hover, a.sp-carte:hover, html.site-public a.card:hover { transform: none; }
}
