/* ==========================================================================
   TT Billom — Design system v4
   Style : hero plein écran + sections one-page, typographies élégantes
   Palette : violet #563d82 · orange #f28c28 · bleu #5dade2 · gris #2c2f36 · blanc
   Répartition : sombre = violet 70% / gris 20% / orange 5% / blanc 5%
                 clair  = blanc 55% / violet 30% / gris 10% / orange 5%
   ========================================================================== */

:root, [data-theme="light"] {
  --font-title: "Fraunces", Georgia, serif;
  --font-text: "Lato", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --violet: #563d82;
  --violet-strong: #452f68;
  --violet-soft: #ede8f6;
  --orange: #f28c28;
  --orange-soft: #fceedd;
  --bleu: #5dade2;
  --bleu-soft: #e5f0fb;
  --gris: #2c2f36;
  --blanc: #ffffff;

  /* Répartition claire : blanc dominant, violet 30% */
  --bg: #fbf9fd;
  --bg-alt: #ede8f6;
  --surface: #ffffff;
  --surface-2: #f3f0fa;
  --border: #e2ddf0;
  --text: #2c2f36;
  --text-soft: #4a4f59;
  --text-muted: #6b7280;
  --heading: #563d82;
  --on-alt: #563d82;
  --accent: #c2410c;
  --link: #2563eb;

  /* Boutons flottants (burger mobile + bascule de thème) : verre translucide.
     Clair = verre blanc + symboles anthracite (visibles sur fond clair) ;
     sombre = verre noir + symboles éclaircis. */
  --nav-btn-bg: #fff3;
  --nav-btn-bg-light: #FFFE;
  --nav-btn-border: #2c2f36e0;
  --nav-btn-radius: 5px;
  --nav-btn-line: #2c2f36e0;

  --shadow: 0 12px 34px rgba(86, 61, 130, 0.18);
  --shadow-sm: 0 4px 14px rgba(86, 61, 130, 0.10);
  --nav-bg: rgba(255, 255, 255, 0.98);
  --nav-bg-light: rgba(255, 255, 255, 0.98);
  --nav-link: #2c2f36;
  --btn-primary-text: #ffffff;
  --btn-secondary-text: #2c2f36;
  --banner-img-dark: none;
  --banner-img-light: block;
}

[data-theme="dark"] {
  --violet: #563d82;
  --violet-strong: #6d4fa3;
  --violet-soft: #2a2140;
  --orange: #f28c28;
  --orange-soft: #3a2b17;
  --bleu: #5dade2;
  --bleu-soft: #16293c;
  --gris: #2c2f36;
  --blanc: #ffffff;

  /* Répartition sombre : violet dominant */
  --bg: #1c1e23;
  --bg-alt: #503677;
  --surface: #23262c;
  --surface-2: #2c2f36;
  --border: #3a3d46;
  --text: #eef0f4;
  --text-soft: #c6cad4;
  --text-muted: #9399a6;
  --heading: #f28c28;
  --on-alt: #ffffff;
  --accent: #f28c28;
  --link: #5dade2;

  /* Sombre = verre noir + symboles éclaircis (lisibles sur fond noir) */
  --nav-btn-bg: #0003;
  --nav-btn-bg-dark: #000D;
  --nav-btn-border: #bcbcbce0;
  --nav-btn-radius: 5px;
  --nav-btn-line: #bcbcbce0;

  --shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --nav-bg: rgba(28, 30, 35, 0.92);
  --nav-bg-dark: rgba(28, 30, 35, 0.92);
  --nav-link: #eef0f4;
  --btn-primary-text: #ffffff;
  --btn-secondary-text: #2c2f36;
  --banner-img-dark: block;
  --banner-img-light: none;
}

/* Contraste renforcé : variables plus sombres (thème clair uniquement)
   — le thème sombre est déjà conforme, on ne touche pas à ses couleurs */
[data-theme="light"] body.a11y {
  --link: #1e40af;
  --accent: #9a3412;
  --text-muted: #52525b;
}

/* --- Base -------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text, "Lato"), system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Bande violette verticale (10px) sur toute la hauteur, toutes les pages */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 100vh;
  background: #563d82;
  z-index: 300;
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-title, "Fraunces"), Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--heading);
  letter-spacing: 0.02em;
}
h1 { font-size: 3rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1rem; }
a { color: var(--link); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }
/* Liens externes : icône flèche (signal non colorimétrique) */
.prose a[href^="http"]::after, .faq-item a[href^="http"]::after, .footer a[href^="http"]::after {
  content: ' ↗';
  font-size: 0.85em;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.25rem 1.4rem; }
li { margin-bottom: 0.4rem; }
strong { color: var(--text); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; width: 100%; }
.main { flex: 1; }

/* --- Navigation ---------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 3.6rem;
  position: relative;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--nav-link);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover { color: var(--violet); background: var(--violet-soft); }
.nav-link.active { color: var(--violet); background: var(--violet-soft); }
/* Sombre : entrée active/hover orange (lisible sur fond sombre, plus de violet/violet) */
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: var(--orange);
  background: none;
}

/* Sous-menu déroulant (desktop) */
.nav-item.has-sub { position: relative; }
.nav-item.has-sub > .nav-link::after {
  content: '▾';
  margin-left: 0.35rem;
  font-size: 0.75em;
  opacity: 0.75;
}
.nav-submenu {
  position: absolute;
  top: 51px;
  min-width: 210px;
  background: #FFFD;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: 0.4rem;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 150;
  border-left-width: 0;
  border-right-width: 0;
}
/* Pont invisible : couvre l'espace entre le lien et le sous-menu (top:51px)
   pour ne pas perdre le survol en traversant */
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}
/* Sombre : fond noir translucide */
[data-theme="dark"] .nav-submenu { background: #000D; }
.nav-item.has-sub:hover .nav-submenu,
.nav-item.has-sub:focus-within .nav-submenu { display: block; }
.nav-subitem .nav-sub-link {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  color: var(--nav-link);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-subitem .nav-sub-link:hover { color: var(--link); background: none; }
[data-theme="dark"] .nav-subitem .nav-sub-link:hover { color: var(--orange); background: none; }

.theme-toggle {
  position: fixed;
  top: 0.6rem;
  right: 1rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--nav-btn-radius);
  border: 1px solid var(--nav-btn-border);
  background: var(--nav-btn-bg-light);
  color: var(--nav-btn-line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
[data-theme="dark"] .theme-toggle {
  background: var(--nav-btn-bg-dark);
}
.theme-toggle:hover { color: var(--violet); border-color: var(--violet); }

/* Bouton contraste renforcé (accessibilité) — à côté du theme-toggle */
.a11y-toggle {
  position: fixed;
  top: 0.6rem;
  right: 3.6rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--nav-btn-radius);
  border: 1px solid var(--nav-btn-border);
  background: var(--nav-btn-bg-light);
  color: var(--nav-btn-line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}
[data-theme="dark"] .a11y-toggle {
  background: var(--nav-btn-bg-dark);
}
.a11y-toggle sup { font-size: 0.6em; }
.a11y-toggle:hover { color: var(--violet); border-color: var(--violet); }

/* Bouton données enregistrées (stockage local) — à gauche du contraste */
.storage-toggle {
  position: fixed;
  top: 0.6rem;
  right: 6.2rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--nav-btn-radius);
  border: 1px solid var(--nav-btn-border);
  background: var(--nav-btn-bg-light);
  color: var(--nav-btn-line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
[data-theme="dark"] .storage-toggle {
  background: var(--nav-btn-bg-dark);
}
.storage-toggle:hover { color: var(--violet); border-color: var(--violet); }
.storage-toggle.has-data { border-color: var(--violet); color: var(--violet); }
[data-theme="dark"] .storage-toggle.has-data { border-color: var(--orange); color: var(--orange); }

/* Panneau de gestion du stockage local */
.storage-panel {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 1rem;
}
.storage-panel > *:not(.storage-panel-backdrop) {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem;
  max-width: 480px;
  width: 100%;
}
.storage-panel h3 { margin: 0 0 0.5rem; }
.storage-panel p { margin: 0 0 0.8rem; color: var(--text-muted); font-size: 0.95rem; }
.storage-list { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.8rem 0 1rem; }
.storage-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.7rem; cursor: pointer; }
.storage-item input { width: 1.1rem; height: 1.1rem; }
.storage-nom { font-weight: 700; }
.storage-etat { color: var(--text-muted); font-size: 0.92rem; text-align: right; }
.storage-actions { display: flex; gap: 0.7rem; margin-top: 1rem; }
.a11y-toggle[aria-pressed="true"] {
  background: var(--violet);
  color: #ffffff;
  border-color: var(--violet);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-burger span { display: block; width: 1.6em; height: 2px; background: var(--nav-btn-line); border-radius: 0; }

[data-theme="dark"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: block; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg-dark { display: var(--banner-img-dark); }
.hero-bg-light { display: var(--banner-img-light); }
/* Règle m. : sans préfixe = desktop (par défaut), préfixe m. = mobile */
.hero-bg-mobile { display: none; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 30, 35, 0.55), rgba(28, 30, 35, 0.35) 55%, rgba(28, 30, 35, 0.75));
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 2rem 1rem;
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  top: -15vh;
}
.hero-logo {
  height: 10rem;
  width: auto;
  margin: 0 auto 0;
}

.hero-title {
  font-family: var(--font-title, "Fraunces"), Georgia, serif;
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
  white-space: nowrap;
}
.hero-title .t-word { display: inline; }
.hero-title .de {
  display: inline;
  font-size: 0.5em;
  vertical-align: baseline;
}
.title-break { display: none; }
.hero-title .de-mobile { display: inline; }
.hero-tagline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 4px auto 2rem;
  max-width: 100%;
}
.hero-tagline {
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}
.tagline-line {
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  flex: 1;
}
.tagline-line.tagline-line-left{margin-left:17.5%}
.tagline-line.tagline-line-right{margin-right:16.75%}
/* Hero (desktop) : sous-menu transparent sur l'image, règles a11y associées
   — en mobile le menu déplié violet prime, ces règles ne s'appliquent pas */
@media (min-width: 721px) {
  .hero .nav-submenu { background: rgba(0, 0, 0, 0.75); border-color: rgba(255, 255, 255, 0.5); }
  [data-theme="light"] .hero .nav-submenu {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  /* Lisibilité des liens du sous-menu hero en mode light */
  [data-theme="light"] .hero .nav-submenu .nav-sub-link {
    color: #1c2a3a;
    text-shadow: none;
  }
  [data-theme="light"] .hero .nav-submenu .nav-sub-link:hover {
    color: #ffffff;
    background: var(--violet);
  }
  /* Contraste renforcé : hero */
  body.a11y .hero .nav-submenu { background: rgba(0, 0, 0, 0.75); }
  [data-theme="light"] body.a11y .hero .nav-submenu { background: rgba(255, 255, 255, 0.9); }
  [data-theme="light"] body.a11y .hero .site-nav ul li a { color: var(--gris); }
  [data-theme="light"] body.a11y .hero .site-nav ul li a:hover,
  [data-theme="light"] body.a11y .hero .site-nav ul li a.active {
    background: var(--violet);
    color: #ffffff;
    border-bottom: 2px solid var(--violet);
  }
}
.hero .site-nav {
  position: relative;
  background: #0005;
  border: none;
  border-radius: 0;
  display: block;
  width: 100%;
  box-shadow: 0 5px 10px #0005;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  top: calc(-5vh - 30px);
}
[data-theme="light"] .hero .site-nav {
  background: #fff2;
}
[data-theme="light"] .site-nav.stuck,
[data-theme="light"] .hero .site-nav.stuck {
  background: var(--nav-bg);
}
[data-theme="dark"] .hero .site-nav {
  background: #0005;
}
[data-theme="dark"] .site-nav.stuck,
[data-theme="dark"] .hero .site-nav.stuck {
  background: var(--nav-bg);
}
.hero .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.4rem 1rem;
  min-height: 0;
  gap: 0.2rem;
  justify-content: center;
}
.hero .nav-link {
  color: #ffffff;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0.4rem 0.7rem;
}
.hero .nav-link:hover { color: var(--orange); background: none; }
.hero .nav-link.active { color: var(--orange); background: none; }

/* Nav collée en haut (ajoutée par JS au scroll) */
.site-nav.stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  border-radius: 0;
  background: var(--nav-bg);
  border: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transform: none;
}
.site-nav.stuck .nav-inner { justify-content: center; padding: 0.4rem 1rem; }
.site-nav.stuck .nav-link { color: var(--nav-link); }
.site-nav.stuck .nav-link:hover { color: var(--orange); background: none; }
.site-nav.stuck .nav-link.active { color: var(--orange); background: none; }
[data-theme="light"] .site-nav.stuck .nav-link:hover { color: var(--violet); background: none; }
[data-theme="light"] .site-nav.stuck .nav-link.active { color: var(--violet); background: none; }

/* --- Boutons -------------------------------------------------------------- */
/* La base et les variantes de boutons sont définies dans css/buttons.css */

/* Groupes de sections (Le Club, Infos pratiques) */
.section-group {
  scroll-margin-top: 4rem;
}
/* Le groupe prend la couleur de sa 1re section ; toutes les sections
   du groupe héritent de ce fond pour rester homogènes. */
#le-club { background: var(--bg); }
#infos-pratiques { background: var(--bg-alt); }
#competitions { background: var(--bg); }
.section-group .section { background: inherit; }
.group-title {
  text-align: center;
  font-size: 2.4rem;
  color: var(--heading);
  padding: 3rem 1rem 0.5rem;
  margin: 0;
  border-bottom: 1px solid var(--border);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Sections -------------------------------------------------------------- */
.section { padding: 5rem 0; }
.section h2 { margin-bottom: 1.25rem; }

/* Sections à aplat violet (alternance) */
.section.alt {
  background: var(--bg-alt);
  color: var(--text);
}
/* Dans un regroupement : la section prend le fond de la 1re section (via .section-group .section)
   — spécificité supérieure pour écraser .section.alt */
.section-group .section.alt { background: inherit; }
.section.alt h2 { color: var(--on-alt); }
.section.alt h3 { color: var(--on-alt); }
.section.alt .alt-more { text-align: center; margin-top: 2rem; }
.page .alt-more { text-align: center; margin: 2.5rem 0 0; }

/* Split image + texte */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}
.split-media img, .split-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-media { position: relative; }
.split-media .split-theme-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-media .split-img-dark { display: var(--banner-img-dark); }
.split-media .split-img-light { display: var(--banner-img-light); }
.split-body h2 { margin-bottom: 1rem; }

/* Légende des lieux sur la carte (pins violet/orange) */
.loc-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.loc-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.9rem;
}
.loc-pin { position: absolute; left: 0; top: 2px; }
.loc-list li strong { color: var(--heading); }

/* Carte Leaflet (plan d'accès) */
.ttb-map {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 14px;
  z-index: 1;
  background: #f2efe9;
}
.ttb-map .leaflet-container { height: 100%; width: 100%; border-radius: 14px; }
.prose .ttb-map { height: 420px; min-height: 420px; }
/* Supprime les joints visibles entre tuiles et les contours de carreaux */
.ttb-map .leaflet-tile {
  outline: 1px solid transparent;
  border: none;
  image-rendering: auto;
}
.ttb-map .leaflet-tile-pane { z-index: 1; }

/* Cartes */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.cards-subtitle { grid-column: 1 / -1; margin: 1.2rem 0 0; color: var(--heading); }
.cards-cta { grid-column: 1 / -1; display: flex; justify-content: flex-start; margin: 0.2rem 0; }
.cards .card-addr { list-style: none; margin-left: -1.4rem; }

/* Partenaires et sponsors : grille de fiches */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.partner-small { min-height: 100px; }
.partner-medium { min-height: 140px; }
.partner-large { min-height: 180px; }
.partner-card img { max-height: 80px; width: auto; object-fit: contain; }
.partner-card .partner-logo-dark { display: var(--banner-img-dark); }
.partner-card .partner-logo-light { display: var(--banner-img-light); }
.partner-card .partner-logo-link { display: flex; align-items: center; justify-content: center; }
.partner-card .partner-name { font-weight: 700; color: var(--link); }
/* Flèche lien externe dans la grille de la homepage (hors .prose, pas de doublon) */
#partenaires .partner-card .partner-name[href^="http"]::after { content: ' ↗'; font-size: 0.85em; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  color: var(--text);
}
/* Seules les cartes cliquables (liens) ont un roll-over et une animation */
a.card:hover { border-color: var(--violet); box-shadow: var(--shadow); }
.card h3 { margin-top: 0; font-size: 1.15rem; }
.card p { margin-bottom: 0.4rem; }
.card ul { margin-bottom: 0; }
.section.alt .card h3 { color: var(--violet); }
[data-theme="dark"] .section.alt .card h3 { color: var(--orange); }
a.card { display: block; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
a.card:hover { color: var(--text); }
.actus-card time { color: var(--text); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.actus-lieu { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.2rem; }
/* Vignette des articles dans les listes (50×50, recadrée, non étirée) */
.actus-card.actus-card--thumb { display: flex; flex-direction: column; gap: 0.5rem; }
.actus-card--thumb .actus-card-head { display: flex; gap: 1rem; align-items: center; }
.actus-card--thumb .actus-card-body { flex: 1; min-width: 0; }
.actus-thumb { width: 50px; height: 50px; object-fit: cover; object-position: center; border-radius: 10px; flex-shrink: 0; }
.actus-card--thumb .actus-card-desc { width: 100%; }

/* Widget « prochain match » (dans les actualités) */
.actus-matches { display: grid; grid-template-columns: 1fr; gap: 0.5rem; margin-bottom: 0.5rem; }
a.actus-match { border: 2px solid var(--violet); position: relative; z-index: 2; display: flex; align-items: stretch; overflow: hidden; padding: 0; }
.actus-match-badge { display: inline-block; background: var(--violet); color: #fff; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 999px; padding: 0.2rem 0.7rem; margin-bottom: 0.5rem; margin-right: 0.6rem; }
.actus-match-body { padding: 0.9rem 40% 0.9rem 1rem; flex: 1; }
.actus-match-img { position: absolute; top: 0; right: 0; bottom: 0; width: 40%; overflow: hidden; }
.actus-match-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.actus-match[hidden] { display: none; }
.actus-match-data { display: none; }
.actus-match time { color: var(--violet); }
[data-theme="dark"] .actus-match time { color: var(--orange); }
[data-theme="dark"] .actus-match { border-color: var(--orange); }
[data-theme="dark"] .actus-match-badge { background: var(--orange); color: #000; }
/* Tiroir des matches suivants */
.actus-next { display: grid; grid-template-columns: 1fr; gap: 0.5rem; border: 1px solid var(--violet-200); border-radius: 14px; padding: 1.4rem 0.6rem 0.6rem; background: #dedae5; margin-top: -1.5rem; position: relative; z-index: 0; }
[data-theme="dark"] .actus-next { border-color: var(--orange-700); background: #2c2f36; }
.actus-next[hidden] { display: none; }
.actus-next-card { border: 1px solid var(--border); padding: 0.45rem 0.8rem; min-width: 0; }
.actus-next-card time { color: var(--text-muted); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.actus-next-card h3 { margin: 0.1rem 0 0; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Desktop : principal pleine largeur, tiroir des matches suivants en rangée */
@media (min-width: 721px) {
  .actus-next { grid-template-columns: 1fr 1fr 1fr; }
  .actus-match-body { padding: 0.9rem 40% 0.9rem 1rem; }
}
/* Image du prochain match : desktop uniquement */
@media (max-width: 720px) {
  .actus-match-img { display: none; }
  .actus-match-body { padding: 0.9rem 0% 0.9rem 1rem; flex: 1; }
}

/* Liste dépliable des matchs (espace membres) */
.cal-liste { margin-top: 0.8rem; }
.cal-liste summary { cursor: pointer; font-weight: 700; color: var(--link); font-size: 0.92rem; }

/* Flyers tournois */
.flyers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.flyers img {
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.flyers a:hover img { border-color: var(--violet); box-shadow: var(--shadow); }

/* Contact CTA */
.contact-cta { text-align: center; }
.contact-cta .contact-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }

/* --- Pages internes -------------------------------------------------------- */
.page-article-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2rem 2rem 0 0;
  border: 1px solid var(--border);
  margin-bottom: 0;
}
.page-bando {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  object-position: center;
}
.page { padding: 3.5rem 2rem; max-width: 900px; margin: 0 auto; }
.page-header { margin-bottom: 1.75rem; }
.page-header h1 { margin-bottom: 0.5rem; }
.page-header .lead { font-size: 1.1rem; color: var(--text-soft); }
.article-date { color: var(--text-muted); margin-bottom: 0.5rem; }

.prose { max-width: 78ch; }
.prose h2 { color: var(--heading); border-bottom: 2px solid var(--border); padding-bottom: 0.4rem; }
.prose img { border-radius: 14px; margin: 1.25rem 0; border: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.55rem 0.85rem; text-align: left; }
.prose th { background: var(--surface-2); }
.prose blockquote { border-left: 4px solid var(--accent); background: var(--bg-alt); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; margin: 1.25rem 0; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 1.75rem 0; }
.back-link { margin-top: 2.25rem; display: block; }

/* Règlement intérieur : articles repliables (details/summary) */
.ri-article {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin: 0.75rem 0;
  overflow: hidden;
}
.ri-article summary {
  cursor: pointer;
  padding: 0.9rem 2.4rem 0.9rem 1.1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: relative;
}
.ri-article summary::-webkit-details-marker { display: none; }
.ri-article summary::before {
  content: '+';
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}
.ri-article summary strong { color: var(--heading); font-size: 1.05rem; }
.ri-article summary em { color: var(--text-soft); font-size: 0.95rem; font-style: italic; }
.ri-article[open] summary::before { content: '−'; }
.ri-article[open] summary { border-bottom: 1px solid var(--border); }
.ri-article > *:not(summary) {
  padding: 0.9rem 1.1rem;
}
[data-theme="dark"] .ri-article summary strong { color: var(--orange); }

/* Galerie */
.galerie-cat { margin: 2rem 0 0.9rem; scroll-margin-top: 5rem; }
.albums-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.album-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); color: var(--text); display: block; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.album-card:hover { border-color: var(--violet); box-shadow: var(--shadow); color: var(--text); }
.album-cover { aspect-ratio: 4/3; overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-info { padding: 0.9rem 1.1rem 1rem; }
.album-info h3 { margin: 0; font-size: 1.05rem; }
.album-info p { margin: 0.2rem 0 0; color: var(--text-muted); font-size: 0.88rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.gallery-item { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); display: block; transition: border-color 0.2s ease; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery-item:hover { border-color: var(--violet); }

/* Visionneuse de photos (lightbox) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
}
.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  display: block;
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  background: #ffffff;
  padding: 5px;
  border-radius: 5px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
}
.lightbox-caption {
  margin-top: 0.8rem;
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.lightbox-btn {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(20, 20, 20, 0.55);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.22); border-color: #ffffff; }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(20, 20, 20, 0.55);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); border-color: #ffffff; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 640px) {
  .lightbox-btn { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* FAQ */
.faq-list { max-width: 78ch; display: flex; flex-direction: column; gap: 0.85rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0.2rem 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--text); padding: 0.85rem 0; list-style-position: inside; }
.faq-item[open] summary { color: var(--violet); }
.faq-item .prose { padding-bottom: 1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: start; }
.form-embed { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.form-embed iframe { display: block; border: 0; background: #fff; }

/* Aides financières */
.aides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.aide-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.aide-media { background: var(--surface-2); display: flex; align-items: flex-start; justify-content: center; overflow: hidden; height: 120px; }
.aide-media img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: top; }
.aide-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.aide-body h2 { margin: 0; font-size: 1.25rem; }
.aide-montant { font-weight: 700; color: var(--violet); font-size: 1.15rem; margin: 0; }.aide-beneficiaires { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.aide-notes { margin: 0.2rem 0 0; padding-left: 1.1rem; }
.aide-notes li { margin-bottom: 0.3rem; font-size: 0.92rem; }
.aide-body .btn { align-self: flex-start; margin-top: auto; }
.badge-cumul { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--violet-soft); color: var(--violet); border-radius: 999px; padding: 0.15rem 0.6rem; vertical-align: middle; }
[data-theme="dark"] .aide-montant { color: var(--bleu); }
[data-theme="dark"] .badge-cumul { background: var(--bleu-soft); color: var(--bleu); }
.aide-cumul { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 1.2rem 1.5rem; margin: 1.5rem 0; }
.aide-cumul h2 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.aide-cumul p { margin: 0; }
.aide-contact { color: var(--text-muted); }

/* Espace membres : calendriers & favoris */
.cal-saison { color: var(--text-muted); font-size: 0.95rem; }
.cal-avertissement { background: var(--orange-soft); border: 1px solid var(--orange); color: var(--text); border-radius: 12px; padding: 1rem 1.2rem; font-weight: 600; }
.cal-aide { color: var(--text-muted); font-size: 0.92rem; }
.cal-favs { margin: 0 0 2rem; }
.cal-favs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.cal-equipes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 1.5rem; align-items: start; }
.cal-equipe { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); margin: 0; }
.cal-equipe.cal-equipe-fav { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), var(--shadow-sm); }
.cal-equipe-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.cal-equipe-head h3 { margin: 0; font-size: 1.2rem; }
.cal-equipe-head a { font-size: 1.2rem; font-weight: 700; color: var(--heading); }
.cal-etat-badge { margin: 0.7rem 0 0.3rem; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.cal-cartouche-passe { opacity: 0.6; filter: grayscale(0.5); }
.star { background: none; border: none; cursor: pointer; font-size: 1.5rem; line-height: 1; color: var(--violet); padding: 0.2rem 0.4rem; border-radius: 8px; }
.star:hover { background: var(--violet-soft); }
.star[aria-pressed="true"] { color: #f5a623; }
.star-inline { font-size: 1rem; vertical-align: baseline; cursor: default; color: #f5a623; }
.cal-joueurs { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--text-soft); }
.cal-matchs { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1rem; }
.cal-match { display: flex; gap: 0.8rem; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 0.7rem 0.9rem; background: var(--surface-2); }
.cal-icon { font-size: 1.2rem; }
.cal-match-info { display: flex; flex-direction: column; gap: 0.15rem; }
.cal-etat { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--violet); }
[data-theme="dark"] .cal-etat { color: var(--bleu); }
.cal-cartouche { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-top: 0.9rem; box-shadow: var(--shadow-sm); }
.cal-cartouche-date { background: #c0392b; color: #ffffff; display: flex; flex-direction: column; align-items: center; padding: 0.7rem 1rem; }
.cal-cartouche-jour { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.9; }
.cal-cartouche-num { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.cal-cartouche-mois { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.cal-cartouche-corps { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.8rem 1rem; }
.cal-cartouche-ligne { font-size: 0.95rem; }
.cal-cartouche-icon { margin-right: 0.45rem; }
.cal-cartouche .cal-lieu { margin-top: 0.2rem; }
.cal-lieu { color: var(--text-muted); font-size: 0.9rem; }
.cal-aucun { color: var(--text-muted); font-style: italic; }
.cal-ics { margin: 0.9rem 0 0; display: flex; gap: 0.7rem; flex-wrap: wrap; }
.cal-ics .btn { padding: 0.45rem 1rem; font-size: 0.85rem; }
.cal-ics-info { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 1.2rem 1.5rem; margin-top: 2rem; }
.cal-ics-info h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.cal-ics-info p { margin: 0 0 0.6rem; }
.cal-ics-info ul { margin: 0; }
.cal-archives { list-style: none; margin: 0.5rem 0 1.5rem; padding: 0; }
.cal-archives li { margin-bottom: 0.4rem; }
.cal-archives a { color: var(--link); }

/* Timeline des événements (zone compétition) */
.timeline { position: relative; margin: 1.5rem 0; padding-left: 1.6rem; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 0.4rem 0 1.2rem; }
.timeline-point { position: absolute; left: -1.6rem; top: 0.7rem; width: 14px; height: 14px; border-radius: 50%; background: var(--violet); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--violet); }
.timeline-item[data-type="tournoi"] .timeline-point { background: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.timeline-content { display: flex; flex-direction: column; gap: 0.2rem; }
.timeline-badge { display: inline-block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--violet); }
.timeline-item[data-type="tournoi"] .timeline-badge { color: var(--orange); }
.timeline-date { font-size: 1.02rem; }
.timeline-detail { font-size: 0.95rem; }
.timeline-lieu { color: var(--text-muted); font-size: 0.9rem; }
.timeline-vide { color: var(--text-muted); font-style: italic; }

/* Timeline compacte (homepage) : cartouches horizontaux */
.timeline-compact { padding-left: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.9rem; }
.timeline-compact::before { display: none; }
.timeline-compact .timeline-item { padding: 0; position: relative; overflow: hidden; border-radius: 12px; display: flex; flex-direction: column; min-height: 190px; border: 1px solid transparent; }
.timeline-compact .timeline-point { display: none; }
.timeline-compact .timeline-bg { position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px; background-size: cover; background-position: center; filter: blur(4px) brightness(0.45); }
[data-theme="light"] .timeline-compact .timeline-bg { filter: blur(4px) brightness(0.45); }
.timeline-compact .timeline-content { position: relative; border-radius: 12px; display: flex; flex-direction: column; height: 100%; }
.timeline-compact .timeline-head { padding: 1rem 1rem 0.5rem; color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.timeline-compact .timeline-badge { font-size: 0.78rem; }
.timeline-compact .timeline-head .timeline-badge,
.timeline-compact .timeline-head .timeline-badge[class*="timeline-badge-"] { color: #ffffff; }
.timeline-compact .timeline-body { padding: 0.6rem 1rem 0.9rem; display: flex; flex-direction: column; gap: 0.15rem; background: rgba(255,255,255,0.85); color: var(--text); flex: 1; }
[data-theme="dark"] .timeline-compact .timeline-body { background: rgba(0,0,0,0.7); color: #ffffff; }
.timeline-compact .timeline-date { font-size: 0.95rem; }
.timeline-compact .timeline-detail { font-size: 0.88rem; }
.timeline-compact .timeline-more { margin-top: 0.4rem; align-self: flex-start; font-size: 0.82rem; font-weight: 700; color: var(--violet); background: var(--violet-soft); border: 1px solid var(--violet); border-radius: 999px; padding: 0.25rem 0.8rem; text-decoration: none; }
[data-theme="dark"] .timeline-compact .timeline-more { color: var(--bleu); background: var(--bleu-soft); border-color: var(--bleu); }
.timeline-compact .timeline-more:hover { background: var(--violet); color: #ffffff; }
.timeline-compact .timeline-lieu { font-size: 0.82rem; color: var(--text-muted); }
.timeline-compact .timeline-lieu a { color: var(--link); }
.timeline-compact .timeline-item[data-type="tournoi"] .timeline-body { border-top: 2px solid var(--tournoi-couleur, var(--orange)); }

/* --- Footer ---------------------------------------------------------------- */
.site-footer {
  background: var(--gris);
  color: #eef0f4;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 2rem 1.5rem;
}
.footer-col h3 { color: #ffffff; margin-bottom: 0.75rem; }
.footer-col p, .footer-col address { color: rgba(238, 240, 244, 0.8); font-style: normal; font-size: 0.93rem; }
.footer-col a { color: #8ec5ef; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-bottom { border-top: 1px solid rgba(238, 240, 244, 0.15); }
.footer-bottom p { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; color: rgba(238, 240, 244, 0.6); font-size: 0.88rem; text-align: center; }

/* --- 404 -------------------------------------------------------------------- */
.page-404 { text-align: center; padding: 5rem 1rem; }
.page-404 h1 { font-size: 3rem; }

/* --- Contraste renforcé (a11y) ---------------------------------------------- */
/* Liens soulignés */
body.a11y a {
  border-bottom: 2px solid currentColor;
  text-decoration: none;
}
/* Boutons colorés : gardent leur fond vif (texte foncé déjà conforme) */
body.a11y .btn-secondary { background: var(--orange-base, #f28c28); }
body.a11y .btn-bleu { background: var(--bleu-base, #5dade2); }
/* Pas d'ombres portées ni de bordures de boutons (lisibilité) */
body.a11y .btn, body.a11y .card, body.a11y .album-card, body.a11y .theme-toggle, body.a11y .a11y-toggle, body.a11y .nav-burger {
  box-shadow: none !important;
}
body.a11y .btn { border-color: transparent !important; }
/* Fonds de menu opaques (lisibilité) — hors hero */
body.a11y .nav-submenu { background: #ffffff; }
[data-theme="dark"] body.a11y .nav-submenu { background: #1c1e23; }
/* Sur le hero, le sous-menu garde sa transparence (règle desktop ≥721px) */
body.a11y .hero .site-nav { background: rgba(0, 0, 0, 0.85); }
body.a11y .hero .site-nav.stuck { background: rgba(0, 0, 0, 0.85); }
body.a11y .site-nav.stuck,
body.a11y [data-theme="light"] .site-nav.stuck { background: var(--nav-bg-light); }
body.a11y [data-theme="dark"] .site-nav.stuck { background: var(--nav-bg-dark); }
[data-theme="light"] body.a11y .hero .site-nav { background: var(--nav-bg-light); }

/* --- Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .split.reverse .split-media { order: 0; }
  .hero-title { font-size: 2.8rem; }
  .flyers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-burger {
    display: inline-flex;
    position: fixed;
    top: 0.6rem;
    left: 1.3rem;
    z-index: 400;
    background: var(--nav-btn-bg-light);
    border: 1px solid var(--nav-btn-border);
    border-radius: var(--nav-btn-radius);
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
  }
  [data-theme="dark"] .nav-burger {
    background: var(--nav-btn-bg-dark);
  }
  /* Burger violet quand le menu est déplié */
  body.menu-open .nav-burger {
    background: #563d82;
    border-color: #563d82;
  }
  body.menu-open .nav-burger span { background: #ffffff; }
  .nav-inner { flex-wrap: wrap; padding: 0; }
  .site-nav, .hero .site-nav { display: none; }
  .site-nav.open,
  .hero .site-nav.open {
    display: block;
    position: fixed;
    top: 3.4rem;
    left: 0;
    z-index: 390;
    background: #563d82;
    border: none;
    border-radius: 0 12px 12px 0;
    box-shadow: 10px 0px 15px rgba(0, 0, 0, 0.35);
    width: fit-content;
    max-width: calc(100vw - 2.6rem);
    padding: 0.7rem 0 0 0.3rem;
    animation: nav-slide-down 0.28s ease;
    transform-origin: top left;
  }
  @keyframes nav-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .site-nav.open .nav-inner {
    min-height: 0;
    padding: 0;
  }
  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    margin: 0;
  }
  .nav-list.open {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    min-width: 200px;
    background: transparent;
    opacity: 1;
    z-index: auto;
    justify-content: flex-start;
    gap: 0.1rem;
    padding: 0 0.6rem;
    border-radius: 0;
    border: none;
    overflow-y: auto;
    max-height: calc(100vh - 4.5rem);
    line-height: 1.1rem;
  }
  .nav-list.open .nav-link {
    font-size: 1.1rem;
    padding: 0.42rem 0.5rem;
    border-radius: 8px;
    color: #ffffff;
    text-align: left;
    width: 100%;
    line-height: 1.2rem;
  }
  .nav-list.open .nav-link:hover,
  .nav-list.open .nav-link.active { color: #ffffff; background: rgba(255, 255, 255, 0.16); }

  /* Sous-menus : affichés en ligne, indentés à droite */
  .nav-item.has-sub > .nav-link::after { content: ''; }
  .nav-submenu {
    position: static;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.05rem;
    min-width: 0;
    background: none;
    border: none;
    border-left-width: medium;
    border-left-style: none;
    border-left-color: currentcolor;
    box-shadow: none;
    border-radius: 0;
    padding: 0.3rem 0.4rem;
    margin: 0.1rem 0.5rem 0.3rem 1rem;
    border-left-color: #FFF5;
    border-left-width: 1px;
    border-left-style: solid;
  }
  .nav-submenu::before { display: none; }
  /* Sombre mobile : même règle que clair (pas de fond, bordure gauche #FFF5) */
  [data-theme="dark"] .nav-submenu {
    background: none;
    border: none;
    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: #FFF5;
  }
  /* Contraste renforcé : le menu déplié violet/texte blanc est déjà conforme,
     on neutralise les overrides desktop a11y pour garder le rendu identique */
  body.a11y .nav-submenu,
  [data-theme="dark"] body.a11y .nav-submenu,
  body.a11y .hero .nav-submenu,
  [data-theme="light"] body.a11y .hero .nav-submenu,
  [data-theme="light"] body.a11y .hero .nav-submenu {
    background: none;
    border: none;
    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: #FFF5;
  }
  body.a11y .site-nav.open,
  body.a11y .hero .site-nav.open { background: #563d82; box-shadow: none; }
  .nav-subitem .nav-sub-link {
    font-size: 1rem;
    padding: 0.3rem 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    width: 100%;
    font-weight: normal;
  }
  .nav-subitem .nav-sub-link:hover { color: #ffffff; background: rgba(255, 255, 255, 0.14); border-radius: 6px; }
  .hero .nav-inner { flex-wrap: wrap; }
  .hero .site-nav { border-radius: 0; max-width: none; }
  .hero .nav-list:not(.open) { position: static; }
  .hero .nav-list.open { position: static; }
  h1 { font-size: 2.2rem; }
  .hero-title {
    font-size: 2.75rem;
    white-space: normal;
  }
  .hero-title .de-mobile { display: none; }
  .title-break { display: block; }
  .hero-tagline { font-size: 1.0rem; }
  .tagline-line { margin-left: 25px; margin-right: 25px; }
  .tagline-line:first-child { margin-right: 0; }
  .tagline-line:last-child { margin-left: 0; }
  h2 { font-size: 1.45rem; }
  .section-group, section[id] { scroll-margin-top: 0; }
  .section { padding: 3rem 0; }
  .page { padding: 2.5rem 1.25rem 2rem; }

  /* Espacement 15px sur les bords (évite la bande violette + bords) */
  .container, .split, .page, .footer-grid, .footer-bottom p {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }
  .hero-inner { padding-left: 1.6rem; padding-right: 1.6rem; }

  /* Widget prochain match : passage à la ligne après le badge (sans l'élargir) */
  .actus-match-badge { display: table; margin-right: 0; }
  .actus-match-lieu { display: block; margin-top: 0.15rem; }
}

/* Hero : versions mobiles (préfixe m.) — valables uniquement en mobile portrait */
@media (max-width: 720px) and (orientation: portrait) {
  .hero .hero-bg-desktop { display: none; }
  .hero .hero-bg-mobile.hero-bg-dark { display: var(--banner-img-dark); }
  .hero .hero-bg-mobile.hero-bg-light { display: var(--banner-img-light); }
}

/* --- Accessibilité : réduction des animations --------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
