/* ============================================================
   FFCQ — Fédération Française de Culture Générale & Quiz
   style.css
   ============================================================ */

/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --blue:        #1a52a0;
  --blue-dark:   #0f3270;
  --blue-light:  #dbe6fb;
  --navy:        #0c1a3a;
  --navy-hover:  #122a5c;
  --green:       #27ae60;
  --green-hover: #219a52;
  --gold:        #f5b400;
  --text-dark:   #1f2937;
  --text-gray:   #6b7280;
  --border:      #e5e7eb;
  --bg-light:    #f5f3ee;
  --white:       #ffffff;
  --radius:      12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s, background 0.3s, border-color 0.3s;
}

.header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img {
  height: 50px;
  width: auto;
  transition: filter 0.3s;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.2s;
}

.header-nav a:hover { color: var(--blue); }
.header-nav a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   MENU MOBILE
   ============================================================ */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s;
}

.menu-overlay.visible {
  display: block;
  opacity: 1;
}

.menu-mobile {
  position: fixed;
  top: 0; right: 0;
  width: 280px;
  height: 100vh;
  background: white;
  z-index: 999;
  padding: 88px 24px 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}

@media (min-width: 769px) {
  .menu-mobile { display: none !important; }
  .menu-overlay { display: none !important; }
}

.menu-mobile.ouvert { transform: translateX(0); }

.menu-liens { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }

.menu-lien {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-lien:hover { background: var(--bg-light); color: var(--blue); }
.menu-lien.actif { background: var(--blue-light); color: var(--blue); }
.menu-lien.secondaire { font-size: 14px; font-weight: 500; color: var(--text-gray); }

.menu-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--green);
  color: white;
  padding: 2px 7px;
  border-radius: 20px;
}

.menu-titre {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-gray);
  padding: 8px 14px 4px;
}

.menu-pied {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.menu-btn.plein { background: var(--blue); color: white; }
.menu-btn.plein:hover { background: var(--blue-dark); }
.menu-btn.contour { border: 2px solid var(--blue); color: var(--blue); }
.menu-btn.contour:hover { background: var(--blue-light); }

.menu-insta {
  text-align: center;
  font-size: 13px;
  color: var(--text-gray);
  text-decoration: none;
}

.menu-insta:hover { color: var(--blue); }

/* Hamburger animé */
.hamburger.actif span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.actif span:nth-child(2) { opacity: 0; }
.hamburger.actif span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
   

/* ============================================================
   HERO SPLIT SCREEN
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  margin-top: 72px;
  overflow: hidden;
  background: #0c1a3a;
}

/* --- Diaporama : moitié droite sur desktop, plein cadre sur mobile --- */
.hero-slides {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  /* --zoom-pc : comme --zoom-mobile, la hauteur cale sur le conteneur (cover) et
     n'ouvre souvent aucune marge de recadrage verticale ; 100% (par défaut) = cover. */
  background-size: auto var(--zoom-pc, 100%);
  /* Cadrage réglable par image : --pos-pc (desktop) et --pos-mobile (mobile, plus bas) */
  background-position: var(--pos-pc, center);
  opacity: 0;
  /* Repos = déjà zoomé : la diapo sortante garde son échelle pendant le fondu
     au lieu de « sauter » brutalement à scale(1). */
  transform: scale(1.09);
  transform-origin: 55% 45%;
  transition: opacity 1.1s ease;
  will-change: opacity, transform;
}

/* Zoologie : image différente selon l'écran (la photo large des macareux ne
   rendait pas bien en très haut/étroit) -- --img-pc par défaut, --img-mobile
   la remplace en dessous de 768px (voir plus bas). */
#hero-slide-zoologie { background-image: var(--img-pc); }

.hero-slide.is-active {
  opacity: 1;
  animation: ffcqKen 8s ease-out forwards;
}

@keyframes ffcqKen {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

/* --- Voile de lisibilité posé sur l'image --- */
.hero-tint {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(12,26,58,0.62) 0%, rgba(12,26,58,0) 42%),
    radial-gradient(120% 90% at 70% 40%, rgba(0,0,0,0) 40%, rgba(12,26,58,0.5) 100%);
}

.hero-diagonal {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: absolute;
  top: 0; left: 0;
  width: 52%;
  height: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4rem 0 5rem;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.hero-eyebrow-bar {
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.hero-title {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.15rem;
}

.hero-title span { color: var(--gold); }

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin-bottom: 1.9rem;
  max-width: 400px;
}

.hero-desc--short { display: none; }

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
}

.btn-hero-primary:hover { background: var(--green-hover); transform: translateY(-1px); }

.btn-hero-badge {
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.22);
  padding: 3px 8px;
  border-radius: 20px;
}

.btn-hero-outline {
  font-size: 14px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.45);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
  display: inline-block;
}

.btn-hero-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* --- Onglets de thèmes + barre de progression (desktop) --- */
.hero-themes {
  position: absolute;
  bottom: 84px; right: 26px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  width: min(660px, 70vw);
}

.hero-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
}

.hero-tab {
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  padding: 6px 13px;
  border-radius: 20px;
  background: rgba(12,26,58,0.38);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  white-space: nowrap;
  /* pas de "all" : Chrome n'anime pas border-color quand la valeur vient d'un var() */
  transition: color 0.35s, background 0.35s;
}

.hero-tab:hover { color: var(--white); background: rgba(12,26,58,0.55); }

.hero-tab.is-active {
  font-weight: 700;
  color: var(--white);
  background: rgba(12,26,58,0.62);
  border-color: var(--tc, rgba(255,255,255,0.6));
}

.hero-progress {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.22);
  border-radius: 2px;
  overflow: hidden;
}

.hero-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--gold);
}

@keyframes ffcqProg {
  from { width: 0%; }
  to   { width: 100%; }
}

/* --- Rail de thème (mobile uniquement) --- */
.hero-rail {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.hero-rail-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.hero-rail-dots { display: flex; gap: 6px; }

.hero-rail-dots span {
  width: 6px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.35);
  transition: width 0.35s;
}

.hero-rail-dots span.is-active {
  width: 16px;
  background: var(--tc, var(--gold));
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; transform: none; }
  .hero-slide.is-active { animation: none; }
  .hero-progress-fill { animation: none !important; }
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll::before {
  content: '';
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.3);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   CHIFFRES CLÉS
   ============================================================ */
.stats-bar {
  background: var(--blue-dark);
  padding: 2.5rem 5rem;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number span { color: var(--gold); }

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ============================================================
   QUIZ DE LA SEMAINE
   ============================================================ */
   
@media (max-width: 768px) {
  #accueil-themes-grid { grid-template-columns: repeat(2,1fr) !important; }
}

/* ============================================================
   SECTION GÉNÉRIQUE
   ============================================================ */
.section {
  padding: 5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--blue);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 6px;
  display: inline-block;
}

.section-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.section-link:hover { gap: 8px; }

/* ============================================================
   CARTES ÉVÉNEMENTS
   ============================================================ */
.events-bg { background: var(--bg-light); }

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

.event-card {
  background: #fdfaf5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.event-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.07); transform: translateY(-3px); }

.event-card.white { background: var(--white); }

.event-card.dark {
  background: var(--blue);
  border: none;
  color: var(--white);
}

.event-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.event-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 5px;
  text-transform: uppercase;
}

.event-tag.majeur   { background: #fdedd3; color: #92660b; }
.event-tag.regional { background: var(--blue-light); color: #1e40af; }
.event-tag.annonce  { background: rgba(255,255,255,0.15); color: var(--white); }

.event-date { font-size: 12px; color: var(--text-gray); }
.event-card.dark .event-date { color: rgba(255,255,255,0.6); }

.event-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.event-card.dark .event-title { color: var(--white); }

.event-desc {
  font-size: 13.5px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.event-card.dark .event-desc { color: rgba(255,255,255,0.75); }

.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.event-card.dark .event-footer { border-top: none; padding-top: 0; }

.event-avatars { display: flex; }

.event-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #d1d5db;
  border: 2px solid var(--bg-light);
  margin-left: -8px;
  font-size: 10px;
  font-weight: 700;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-avatar:first-child { margin-left: 0; }
.event-avatar.more { background: var(--blue); color: var(--white); }

.event-loc {
  font-size: 12.5px;
  color: var(--text-gray);
}

.btn-card {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 7px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}

.btn-card:hover { background: rgba(26,82,160,0.06); }

.btn-card.full {
  width: 100%;
  background: var(--white);
  color: var(--blue);
  border: none;
  padding: 11px;
  text-align: center;
  margin-top: 10px;
  border-radius: 7px;
  display: block;
}

.btn-card.full:hover { background: #f0f0f0; }

/* ============================================================
   À PROPOS
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.about-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.about-text {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}

.about-badge {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--blue-light);
  color: var(--blue);
}

.btn-about {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
}

.btn-about:hover { background: var(--navy-hover); transform: translateY(-1px); }

.about-image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 420px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder { font-size: 80px; }

.about-badge-float {
  position: absolute;
  bottom: 20px; left: 20px;
  background: var(--white);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-badge-float .icon { font-size: 28px; }
.about-badge-float .label { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.about-badge-float .sub   { font-size: 11px; color: var(--text-gray); }

/* ============================================================
   APPRENDRE
   ============================================================ */
.learn-bg { background: var(--blue); }

.learn-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 5rem;
}

.learn-header { text-align: center; margin-bottom: 3rem; }
.learn-header .section-title { color: var(--white); border-color: var(--gold); }

.learn-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-top: 0.75rem;
}

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

.learn-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: background 0.2s, transform 0.2s;
}

.learn-card:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

.learn-icon { font-size: 36px; margin-bottom: 16px; }

.learn-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.learn-card-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin-bottom: 20px;
}

.learn-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
  text-decoration: none;
}

.learn-link:hover { gap: 8px; }

/* ============================================================
   CLUBS & CARTE
   ============================================================ */
.map-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.map-placeholder {
  background: var(--blue-light);
  border-radius: 16px;
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px dashed rgba(26,82,160,0.2);
}

.map-placeholder .map-emoji { font-size: 60px; }

.map-pins {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 260px;
}

.map-pin {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--white);
  border-radius: 20px;
  color: var(--blue);
  border: 1px solid var(--blue-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.clubs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2rem;
}

.club-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: 8px;
  font-size: 14px;
}

.club-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.club-name { font-weight: 500; color: var(--text-dark); }
.club-city { color: var(--text-gray); font-size: 13px; margin-left: auto; }

/* ============================================================
   INSTAGRAM TEASER
   ============================================================ */
.insta-bg { background: var(--bg-light); }

.insta-inner {
  text-align: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 5rem;
}

.insta-inner .section-title { margin-bottom: 0.5rem; }

.insta-handle {
  font-size: 15px;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
}

.insta-handle a { color: var(--blue); font-weight: 600; }

.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 2rem;
}

.insta-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

.insta-cell:hover { transform: scale(1.03); filter: brightness(0.92); }

.insta-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.insta-cta:hover { background: var(--blue); color: var(--white); }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 5rem;
  text-align: center;
}

.cta-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.cta-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn-cta-white {
  font-size: 15px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

.btn-cta-outline {
  font-size: 15px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.45);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}

.btn-cta-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0c1a3a;
  padding: 3.5rem 5rem 2rem;
  color: rgba(255,255,255,0.6);
}

.footer-inner { max-width: 1300px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 16px;
}

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

.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.15s;
  cursor: pointer;
}

.social-btn:hover { background: rgba(255,255,255,0.15); }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li {
  font-size: 13.5px;
  margin-bottom: 10px;
  transition: color 0.15s;
  cursor: pointer;
}

.footer-col li:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .section { padding: 4rem 2.5rem; }
  .hero-content { width: 60%; padding: 0 2.5rem 0 3rem; }
  .stats-bar { padding: 2.5rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid .event-card:last-child { grid-column: span 2; }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { height: 300px; }
  .learn-inner { padding: 4rem 2.5rem; }
  .learn-grid { grid-template-columns: 1fr 1fr; }
  .map-inner { grid-template-columns: 1fr; }
  .map-placeholder { height: 260px; }
  .insta-inner { padding: 4rem 2.5rem; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-section { padding: 4rem 2.5rem; }
  .footer { padding: 3rem 2.5rem 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .header { padding: 0 1.25rem; }
  .header-nav { display: none; }
  .hamburger { display: flex; }

  /* Accueil : header transparent tant qu'on est en haut, il redevient blanc au scroll
     (classe .scrolled posée par js/main.js). Ne s'applique qu'à la page d'accueil. */
  .header--accueil:not(.scrolled) {
    background: transparent;
    border-bottom-color: transparent;
  }
  .header--accueil:not(.scrolled) .header-logo img { filter: brightness(0) invert(1); }
  .header--accueil:not(.scrolled) .hamburger span { background: #fff; }

  /* ...sauf si le menu mobile est ouvert (classe posée par js/menu-mobile.js) :
     on repasse en blanc pour la lisibilité */
  .header--accueil:not(.scrolled).menu-ouvert {
    background: var(--white);
    border-bottom-color: var(--border);
  }
  .header--accueil:not(.scrolled).menu-ouvert .header-logo img { filter: none; }
  .header--accueil:not(.scrolled).menu-ouvert .hamburger span { background: var(--text-dark); }

  /* Hero plein écran, image passant sous le header transparent ;
     la section chiffres n'apparaît qu'au scroll. (dvh suit la barre d'URL mobile) */
  .hero {
    margin-top: 0;
    height: 100vh;
    height: 100dvh;
    min-height: 520px;
  }
  .hero-content {
    width: 100%;
    justify-content: flex-end;
    padding: 0 1.5rem 3rem;
    background: transparent;
  }
  .hero-diagonal { display: none; }
  .hero-slides { width: 100%; }
  /* Cadrage mobile propre à chaque image (retombe sur --pos-pc si absent).
     Écran très haut et étroit : « cover » seul cale sur la hauteur et affiche
     toute l'image (donc tout le ciel vide en haut, sans marge de recadrage
     vertical). --zoom-mobile ajoute un zoom au cas par cas (certaines photos
     ont beaucoup de ciel/fond à retirer, d'autres non) pour pouvoir vraiment
     remonter le sujet avec --pos-mobile ; 100% = équivalent à cover seul. */
  .hero-slide { background-size: auto var(--zoom-mobile, 100%); background-position: var(--pos-mobile, var(--pos-pc, center)); }
  #hero-slide-zoologie { background-image: var(--img-mobile, var(--img-pc)); }
  .hero-tint {
    width: 100%;
    background: linear-gradient(180deg, rgba(12,26,58,0.62) 0%, rgba(12,26,58,0.5) 35%, rgba(12,26,58,0.92) 80%);
  }
  .hero-title { font-size: 31px; margin-bottom: 0.9rem; }
  .hero-eyebrow { margin-bottom: 0.75rem; }
  .hero-eyebrow-bar { width: 26px; }
  .hero-desc { display: none; }
  .hero-desc--short { display: block; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.8); margin-bottom: 1.1rem; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn-hero-primary { justify-content: center; }
  .btn-hero-outline { display: none; }
  .hero-themes { display: none; }
  .hero-rail { display: flex; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 3rem 1.25rem; }
  .events-grid { grid-template-columns: 1fr; }
  .events-grid .event-card:last-child { grid-column: auto; }
  .learn-inner { padding: 3rem 1.25rem; }
  .learn-grid { grid-template-columns: 1fr; }
  .insta-inner { padding: 3rem 1.25rem; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-section { padding: 3rem 1.25rem; }
  .cta-title { font-size: 26px; }
  .footer { padding: 2.5rem 1.25rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ============================================================
   PANNEAUX CLASSEMENT / ARCHIVES  (même langage que le quiz refondu)
   ============================================================ */
.cl-wrap { min-height: 100vh; background: var(--bg-light); padding: calc(72px + 2.5rem) 1.25rem 5rem; }
.cl-inner { max-width: 960px; margin: 0 auto; }
.cl-panel {
  background: #f5f3ee; border-radius: 20px; padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 18px 50px rgba(12,26,58,0.13);
  display: flex; flex-direction: column; gap: 22px;
}

.cl-hero { background: var(--navy); border-radius: 18px; padding: 30px 34px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.cl-hero-txt { flex: 1; min-width: min(300px, 100%); }
.cl-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cl-eyebrow > span:first-child { display: block; width: 34px; height: 2px; background: var(--gold); }
.cl-eyebrow > span:last-child { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.cl-hero-txt h1 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 10px; }
.cl-hero-txt > p { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.74); max-width: 440px; }
.cl-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.cl-stats b { display: block; font-size: 26px; font-weight: 800; color: #fff; line-height: 1.05; }
.cl-stats b.gold { color: var(--gold); }
.cl-stats span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

.cl-loading { text-align: center; padding: 2.5rem; color: var(--text-gray); }
.cl-vide { text-align: center; padding: 3rem 1.5rem; background: #fff; border-radius: 16px; }
.cl-vide > p:first-child { font-size: 44px; margin-bottom: 1rem; }
.cl-vide h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.cl-vide > p { font-size: 14px; color: var(--text-gray); margin-bottom: 1.2rem; }
.cl-vide-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; padding: 12px 24px; border-radius: 10px; background: var(--green); color: #fff; }
.cl-vide-cta:hover { background: var(--green-hover); }

.cl-liens { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cl-lien { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; padding: 13px 24px; border-radius: 10px; transition: background 0.18s, color 0.18s; }
.cl-lien.green { background: var(--green); color: #fff; }
.cl-lien.green:hover { background: var(--green-hover); }
.cl-lien.outline { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.cl-lien.outline:hover { background: var(--blue); color: #fff; }

@keyframes ffcqSlide { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes ffcqPop { 0% { transform: scale(0.7); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes ffcqMonte { from { transform: scaleY(0.2); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes ffcqBrille { 0%,100% { box-shadow: 0 0 0 0 rgba(245,180,0,0.35); } 50% { box-shadow: 0 0 0 12px rgba(245,180,0,0); } }

@media (prefers-reduced-motion: reduce) {
  .cl-panel *, .cl-panel *::before, .cl-panel *::after { animation: none !important; }
}

/* ============================================================
   PAGES ÉDITORIALES  (À propos · Apprentissage · Clubs)
   même langage que le quiz refondu
   ============================================================ */
.ed-hero {
  margin-top: 72px;
  background: var(--navy);
  background-image: radial-gradient(120% 100% at 82% 12%, rgba(245,180,0,0.10) 0%, rgba(12,26,58,0) 58%);
  padding: clamp(48px, 8vw, 72px) clamp(1.25rem, 5vw, 5rem) clamp(44px, 7vw, 60px);
}
.ed-hero-inner { max-width: 1120px; margin: 0 auto; }
.ed-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ed-eyebrow > span:first-child { display: block; width: 40px; height: 2px; background: var(--gold); flex-shrink: 0; }
.ed-eyebrow > span:last-child { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.ed-hero h1 { max-width: 760px; font-size: clamp(30px, 5vw, 46px); font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 18px; }
.ed-chapeau { max-width: 560px; font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.76); }
.ed-ancres { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.ed-ancre { font-size: 12.5px; font-weight: 700; padding: 8px 15px; border-radius: 20px; color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22); transition: background 0.15s; }
.ed-ancre:hover { background: rgba(255,255,255,0.16); color: #fff; }

.ed-body { max-width: 1120px; margin: 0 auto; padding: clamp(40px, 7vw, 56px) clamp(1.25rem, 5vw, 3rem); display: flex; flex-direction: column; gap: clamp(40px, 6vw, 52px); }

.ed-sec-titre { display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 3.5vw, 26px); font-weight: 800; color: var(--navy); letter-spacing: -0.015em; line-height: 1.2; }
.ed-label { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.ed-h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 800; color: var(--navy); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 18px; }
.ed-p { font-size: 15.5px; line-height: 1.8; color: #4b5563; margin-bottom: 16px; }
.ed-p:last-child { margin-bottom: 0; }

.ed-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 48px); align-items: start; }
.ed-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.ed-card { background: #fff; border-radius: 16px; padding: 26px; border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(12,26,58,0.05); animation: ffcqSlide 0.3s ease-out both; }
.ed-card.beige { background: #faf9f6; border-color: #ece9e2; box-shadow: none; }
.ed-card h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin: 16px 0 8px; }
.ed-card p { font-size: 14px; line-height: 1.7; color: var(--text-gray); }

.ed-disc { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.ed-disc.sm { width: 34px; height: 34px; border-radius: 11px; font-size: 17px; }
.ed-disc.lg { width: 52px; height: 52px; border-radius: 15px; font-size: 25px; }

.ed-badges { display: flex; flex-wrap: wrap; gap: 9px; }
.ed-badge { font-size: 13px; font-weight: 700; color: #1a3564; background: #eef2fa; border: 1px solid #d9e2f3; padding: 8px 14px; border-radius: 20px; }

.ed-navy { background: var(--navy); border-radius: 16px; padding: 26px; color: #fff; }
.ed-navy h3 { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.ed-navy p { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.72); }
.ed-navy-sep { height: 1px; background: rgba(255,255,255,0.16); margin: 20px 0; }
.ed-navy-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ed-navy-stats b { display: block; font-size: 26px; font-weight: 800; color: #fff; line-height: 1.05; }
.ed-navy-stats b.gold { color: var(--gold); }
.ed-navy-stats span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

.ed-steps { display: flex; flex-direction: column; gap: 10px; }
.ed-step { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: #faf9f6; border: 1px solid #ece9e2; }
.ed-step-num { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; background: var(--navy); color: #fff; }
.ed-step b { display: block; font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.ed-step p { font-size: 13.5px; line-height: 1.65; color: var(--text-gray); margin: 0; }

.ed-liste { display: flex; flex-direction: column; }
.ed-liste-row { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid #ece9e2; transition: background 0.15s; }
.ed-liste-row:last-child { border-bottom: none; }
.ed-liste-row > span:nth-child(2) { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--navy); }
.ed-liste-row .ed-liste-lien { font-size: 12.5px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.ed-liste-row:hover .ed-liste-lien { color: var(--blue-dark); }

/* Accordéon ressources */
.ed-acc { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #ece9e2; box-shadow: 0 2px 10px rgba(12,26,58,0.04); transition: box-shadow 0.2s, border-color 0.2s; }
.ed-acc.open { border-color: #d3ddf0; box-shadow: 0 10px 30px rgba(12,26,58,0.09); }
.ed-acc-head { display: flex; align-items: center; gap: 16px; padding: 20px 22px; width: 100%; background: none; border: none; text-align: left; font-family: inherit; cursor: pointer; }
.ed-acc-head .ed-acc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ed-acc-head .ed-acc-txt b { font-size: 17px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.ed-acc-head .ed-acc-txt span { font-size: 13px; color: var(--text-gray); }
.ed-acc-nb { font-size: 12px; font-weight: 700; white-space: nowrap; color: #5b6472; background: #f2efe8; padding: 5px 11px; border-radius: 20px; flex-shrink: 0; }
.ed-acc-chevron { font-size: 13px; color: #9ca3af; flex-shrink: 0; transition: transform 0.25s; }
.ed-acc.open .ed-acc-chevron { transform: rotate(180deg); }
.ed-acc-body { border-top: 1px solid #ece9e2; padding: 18px 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; animation: ffcqSlide 0.24s ease-out both; }
.ed-site { display: flex; flex-direction: column; gap: 7px; padding: 18px; border-radius: 12px; background: #faf9f6; border: 1px solid #ece9e2; transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s; }
.ed-site:hover { border-color: #c3d3ee; box-shadow: 0 8px 22px rgba(12,26,58,0.09); transform: translateY(-2px); }
.ed-site-fav { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; background: #fff center / 24px 24px no-repeat; border: 1px solid var(--border); }
.ed-site b { font-size: 15.5px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.ed-site-dom { font-size: 11.5px; color: #9ca3af; }
.ed-site p { flex: 1; font-size: 13px; line-height: 1.6; color: var(--text-gray); margin: 0; }
.ed-site-open { font-size: 12.5px; font-weight: 700; color: var(--blue); }

/* Clubs : filtre région */
.ed-region-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ed-region-tab { font-family: inherit; font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 20px; background: #fff; color: var(--navy); border: 1px solid #d6d2c8; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.ed-region-tab:hover { border-color: var(--navy); }
.ed-region-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.ed-clubs-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: stretch; }
.ed-map { border-radius: 16px; overflow: hidden; border: 1px solid #ece9e2; min-height: 420px; }
.ed-map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.ed-club-card { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(12,26,58,0.05); }
.ed-club-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ed-club-card-top b { font-size: 16.5px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.ed-club-etat { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #1d6b41; background: #e3f7ea; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.ed-club-card p { font-size: 13.5px; color: var(--text-gray); margin-bottom: 4px; }
.ed-club-contact { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--blue); }
.ed-club-vide { background: #faf9f6; border: 1px dashed #d6d2c8; border-radius: 16px; padding: 26px; text-align: center; }
.ed-club-vide h3 { font-size: 16.5px; font-weight: 800; color: var(--navy); margin: 10px 0 8px; }
.ed-club-vide p { font-size: 13.5px; line-height: 1.65; color: var(--text-gray); }

.ed-encart-navy { background: var(--navy); border-radius: 14px; padding: 22px; }
.ed-encart-navy h3 { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.ed-encart-navy p { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.72); margin-bottom: 16px; }
.ed-encart-navy.row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 26px; }
.ed-encart-navy.row > div { flex: 1; min-width: 280px; }
.ed-encart-navy.row p { margin-bottom: 0; max-width: 520px; }
.ed-btn-green { display: inline-block; font-size: 13.5px; font-weight: 700; padding: 11px 20px; border-radius: 9px; background: var(--green); color: #fff; border: none; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.ed-btn-green:hover { background: var(--green-hover); }
.ed-btn-gold { font-size: 13.5px; font-weight: 700; padding: 12px 22px; border-radius: 9px; background: var(--gold); color: #3d2c00; border: none; cursor: pointer; font-family: inherit; white-space: nowrap; }

/* Clubs : tournois à la une */
.ed-tournoi { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 22px; border-radius: 14px; background: #fff; border: 1px solid #ece9e2; border-left: 4px solid var(--blue); }
.ed-tournoi.attente { border-left-color: #d6d2c8; opacity: 0.82; }
.ed-tournoi-date { min-width: 72px; flex-shrink: 0; border-radius: 11px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--navy); color: #fff; }
.ed-tournoi.attente .ed-tournoi-date { background: #9ca3af; }
.ed-tournoi-date b { font-size: 22px; font-weight: 800; line-height: 1; }
.ed-tournoi-date span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.82; }
.ed-tournoi-info { flex: 1; min-width: 0; }
.ed-tournoi-info-top { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; flex-wrap: wrap; }
.ed-tournoi-info-top b { font-size: 16.5px; font-weight: 800; color: var(--navy); }
.ed-tournoi-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 10px; border-radius: 5px; white-space: nowrap; }
.ed-tournoi-tag.majeur { color: #7a5c00; background: #ffeab8; }
.ed-tournoi-tag.regional { color: #1a3564; background: #dbe6fb; }
.ed-tournoi-tag.confirmer { color: #5b6472; background: #f1efe9; }
.ed-tournoi-info p { font-size: 13.5px; color: var(--text-gray); margin: 0; }
.ed-tournoi-cta { font-size: 13px; font-weight: 700; white-space: nowrap; padding: 10px 18px; border-radius: 9px; background: var(--green); color: #fff; border: none; cursor: pointer; font-family: inherit; }
.ed-tournoi-cta.off { background: transparent; color: #9ca3af; border: 1px dashed #d6d2c8; cursor: default; }

/* Clubs : calendrier mensuel */
.ed-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.ed-cal-nav h3 { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -0.015em; }
.ed-cal-btn { font-family: inherit; font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 9px; background: #fff; color: var(--blue); border: 1px solid #d6d2c8; cursor: pointer; white-space: nowrap; }
.ed-cal-btn:hover { border-color: var(--blue); }
.ed-cal { background: #fff; border: 1px solid #ece9e2; border-radius: 16px; overflow: hidden; }
.ed-cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--navy); }
.ed-cal-dow span { padding: 11px 0; text-align: center; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; color: #fff; }
.ed-cal-dow span.we { color: rgba(255,255,255,0.55); }
.ed-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.ed-cal-cell { height: 96px; padding: 7px 8px; border-right: 1px solid #ece9e2; border-bottom: 1px solid #ece9e2; background: #fff; display: flex; flex-direction: column; gap: 3px; text-align: left; overflow: hidden; }
.ed-cal-cell:nth-child(7n) { border-right: none; }
.ed-cal-cell.autre { background: #faf9f6; }
.ed-cal-cell.actif { background: #eef4fe; }
.ed-cal-cell.cliquable { cursor: pointer; }
.ed-cal-num { font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 2px; flex-shrink: 0; }
.ed-cal-cell.autre .ed-cal-num { color: #d1d5db; }
.ed-cal-cell.actif .ed-cal-num { color: var(--blue); font-weight: 800; }
.ed-cal-ev { display: block; font-size: 10.5px; font-weight: 700; line-height: 1.3; padding: 3px 6px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0; }
.ed-cal-ev.club { background: #dbe6fb; color: #1a3564; }
.ed-cal-ev.regional { background: #e3f7ea; color: #1d6b41; }
.ed-cal-ev.majeur { background: #ffeab8; color: #7a5c00; }
.ed-cal-plus { font-size: 10px; font-weight: 700; color: var(--text-gray); padding: 0 6px; flex-shrink: 0; }
.ed-cal-legende { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 14px; }
.ed-cal-legende > span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-gray); }
.ed-cal-legende i { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.ed-cal-legende i.club { background: var(--blue); }
.ed-cal-legende i.regional { background: var(--green); }
.ed-cal-legende i.majeur { background: var(--gold); }
.ed-cal-filtre { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ed-cal-filtre b { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.ed-cal-filtre a { font-size: 12px; font-weight: 700; color: var(--blue); border-bottom: 1px solid #b9cdec; }
.ed-cal-liste { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.ed-cal-liste-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 11px; background: #fff; border: 1px solid #ece9e2; border-left: 4px solid var(--blue); }
.ed-cal-liste-row.regional { border-left-color: var(--green); }
.ed-cal-liste-row.majeur { border-left-color: var(--gold); }
.ed-cal-liste-badge { min-width: 46px; flex-shrink: 0; border-radius: 9px; padding: 6px; display: flex; flex-direction: column; align-items: center; font-size: 11px; font-weight: 800; line-height: 1.3; background: #dbe6fb; color: #1a3564; }
.ed-cal-liste-row.regional .ed-cal-liste-badge { background: #e3f7ea; color: #1d6b41; }
.ed-cal-liste-row.majeur .ed-cal-liste-badge { background: #ffeab8; color: #7a5c00; }
.ed-cal-liste-row > span:nth-child(2) { flex: 1; min-width: 0; }
.ed-cal-liste-row b { display: block; font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.ed-cal-liste-row small { font-size: 13px; color: var(--text-gray); }
.ed-cal-vide { margin: 0; padding: 20px; text-align: center; font-size: 13.5px; color: var(--text-gray); background: #faf9f6; border: 1px dashed #d6d2c8; border-radius: 11px; }

.ed-vide { background: #faf9f6; border: 1px solid #ece9e2; border-radius: 16px; padding: 44px; text-align: center; }
.ed-vide h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin: 14px 0 8px; }
.ed-vide p { font-size: 14px; line-height: 1.7; color: var(--text-gray); max-width: 420px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .ed-card, .ed-acc-body { animation: none !important; }
}
@media (max-width: 900px) {
  .ed-split, .ed-clubs-split { grid-template-columns: 1fr; }
  .ed-grid-3 { grid-template-columns: 1fr; }
  .ed-acc-body { grid-template-columns: repeat(2, 1fr); }
  .ed-anki-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  .ed-acc-body { grid-template-columns: 1fr; }
  .ed-cal { display: none; }
  .ed-cal-nav, .ed-cal-legende { display: none; }
}
