/* ================================================
   BAD'ITT — Styles principaux
   Club de badminton d'Itteville
   ================================================ */

/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

@keyframes spin { to { transform: rotate(360deg); } }

/* === VARIABLES === */
:root {
  /* Couleurs */
  --c-black:        #090909;
  --c-dark:         #EEF3FF;
  --c-dark-2:       #ffffff;
  --c-dark-3:       #F4F8FF;
  --c-border:       #D0DCFF;
  --c-text:         #1B2559;
  --c-text-muted:   #5E6E9C;
  --c-text-dim:     #8A99C2;
  --c-white:        #ffffff;
  --c-off-white:    #F4F8FF;
  --c-yellow:       #1A6EFF;
  --c-yellow-light: #5593FF;
  --c-yellow-dark:  #0D52CC;
  --c-yellow-bg:    rgba(26, 110, 255, 0.08);
  --c-yellow-bd:    rgba(26, 110, 255, 0.22);

  /* Typographie */
  --f-head: 'Poppins', sans-serif;
  --f-body: 'Inter', sans-serif;

  /* Layout */
  --nav-h:     72px;
  --max-w:     1200px;
  --pad:       1.5rem;

  /* Effets */
  --r-sm:  6px;
  --r:     12px;
  --r-lg:  20px;
  --r-xl:  32px;
  --shadow:    0 2px 16px rgba(26,50,120,0.09);
  --shadow-lg: 0 8px 36px rgba(26,50,120,0.16);
  --shadow-y:  0 4px 24px rgba(26,110,255,0.35);
  --trans:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: #ffffff;
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--trans); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* === UTILITAIRES === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding: 6rem 0; }
.section--dark   { background: var(--c-dark); }
.section--darker { background: var(--c-dark-2); }
.section--light  { background: var(--c-off-white); color: var(--c-text); }

.section-header { text-align: center; margin-bottom: 4rem; }

.section-label {
  display: inline-block;
  font-family: var(--f-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-yellow);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--f-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-title--dark { color: var(--c-dark); }

.section-desc {
  max-width: 580px;
  margin: 0 auto;
  color: var(--c-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}
.section-desc--dark { color: #555; }

.section-line {
  width: 44px; height: 3px;
  background: var(--c-yellow);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}
.section-line--left { margin-left: 0; }

.text-yellow { color: var(--c-yellow); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

/* === BOUTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--r-sm);
  font-family: var(--f-head);
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em;
  transition: var(--trans); white-space: nowrap;
}
.btn-primary  { background: var(--c-yellow); color: var(--c-white); }
.btn-primary:hover { background: var(--c-yellow-light); transform: translateY(-2px); box-shadow: var(--shadow-y); }
.btn-secondary { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.28); }
.btn-secondary:hover { border-color: var(--c-yellow); color: var(--c-yellow); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--c-yellow); border: 1.5px solid var(--c-yellow); }
.btn-outline:hover { background: var(--c-yellow); color: var(--c-white); transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.8rem; }

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  transition: var(--trans);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 2px 20px rgba(26,50,120,0.10);
}
.navbar.scrolled .navbar__logo { color: var(--c-text); }
.navbar.scrolled .navbar__links a { color: rgba(27,37,89,0.75); }
.navbar.scrolled .navbar__links a:hover,
.navbar.scrolled .navbar__links a.active { color: var(--c-yellow); background: var(--c-yellow-bg); }
.navbar.scrolled .navbar__burger span { background: var(--c-text); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.navbar__logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-head); font-size: 1.4rem; font-weight: 800;
  color: var(--c-white); letter-spacing: -0.02em;
}
.navbar__logo .logo-accent { color: var(--c-yellow); }
.navbar__logo svg { width: 30px; height: 30px; }

/* ── Logo image réel ─────────────────────── */
.navbar__logo-img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 6px;
  /* Sur fond sombre (hero) : invert pour logo blanc */
  filter: invert(1);
  transition: filter 0.3s ease;
}
/* Sur navbar claire (après scroll) : logo naturel noir sur blanc */
.navbar.scrolled .navbar__logo-img {
  filter: none;
}
/* Logo dans le footer (fond sombre) */
.footer__logo-img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 6px;
  filter: invert(1);
}

/* ── Lien Tournoi (badge animé) ─────────────── */
.nav-tournoi-badge {
  color: var(--c-yellow) !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center;
  gap: .3rem;
}
.nav-tournoi-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--c-yellow);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: tournoi-pulse 2s ease-in-out infinite;
}
@keyframes tournoi-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.65); }
}
.navbar__mobile .nav-tournoi-badge { color: var(--c-yellow) !important; }

.navbar__links { display: flex; align-items: center; gap: 0.15rem; }
.navbar__links a {
  padding: 0.5rem 0.9rem; border-radius: var(--r-sm);
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.78);
}
.navbar__links a:hover, .navbar__links a.active {
  color: var(--c-yellow); background: var(--c-yellow-bg);
}
.navbar__cta { margin-left: 1rem; }

.navbar__burger {
  display: none; flex-direction: column; gap: 5px;
  padding: 0.5rem; cursor: pointer;
}
.navbar__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--c-white); border-radius: 2px; transition: var(--trans);
}
.navbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar__mobile {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--c-border);
  padding: 1.5rem; flex-direction: column; gap: 0.5rem;
}
.navbar__mobile.open { display: flex; }
.navbar__mobile a {
  padding: 0.875rem 1.25rem; border-radius: var(--r-sm);
  font-family: var(--f-head); font-size: 1rem; font-weight: 500;
  color: var(--c-text); border: 1px solid transparent;
}
.navbar__mobile a:hover, .navbar__mobile a.active {
  color: var(--c-yellow); border-color: var(--c-yellow-bd); background: var(--c-yellow-bg);
}

/* === HERO === */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    url('https://images.unsplash.com/photo-1626224583764-f87db24ac4ea?auto=format&fit=crop&w=1920&q=80')
    center / cover no-repeat,
    linear-gradient(135deg, #090909 0%, #1a1a1a 100%);
  opacity: 0.35;
  transform: scale(1.04);
  transition: transform 8s ease, opacity 1s ease;
}
.hero__bg.loaded { transform: scale(1); opacity: 0.4; }

.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(9,9,9,0.72) 0%, rgba(9,9,9,0.45) 55%, rgba(9,9,9,0.68) 100%);
}

/* Decorative pattern */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(26,110,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero__content { position: relative; z-index: 1; max-width: 760px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--c-yellow-bg); border: 1px solid var(--c-yellow-bd);
  color: var(--c-yellow); padding: 0.45rem 1rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero__badge::before {
  content: ''; width: 7px; height: 7px;
  background: var(--c-yellow); border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

.hero__title {
  font-family: var(--f-head);
  font-size: clamp(2.8rem, 7.5vw, 5.8rem);
  font-weight: 900; line-height: 1.02;
  margin-bottom: 1.5rem; letter-spacing: -0.03em;
  color: #ffffff;
}
.hero__title .line-yellow { color: var(--c-yellow); display: block; }

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.65); margin-bottom: 2.5rem;
  max-width: 500px; line-height: 1.75;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.3); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  animation: scrollBounce 2.5s infinite;
}
.hero__scroll::after {
  content: ''; width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(26,110,255,0.5), transparent);
}
@keyframes scrollBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(9px)} }

/* === PAGE HERO (pages intérieures) === */
.page-hero {
  padding: calc(var(--nav-h) + 2.5rem) 0 2.75rem;
  background: #0F1729; color: #ffffff; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(26,110,255,0.10) 0%, transparent 60%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(26,110,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.page-hero__content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; text-align: center; }
.page-hero__label {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-yellow); margin-bottom: 0.75rem;
}
.page-hero__title {
  font-family: var(--f-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.08;
  margin-bottom: 1rem; letter-spacing: -0.025em;
}
.page-hero__desc { color: rgba(255,255,255,0.58); font-size: 1.05rem; line-height: 1.75; }

/* === CARTE IDENTITÉ CLUB === */
.club-id-card {
  background: var(--c-dark-2); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 2.5rem;
  display: flex; gap: 2.5rem; flex-wrap: wrap; align-items: center; justify-content: center;
}
.club-id-item { display: flex; align-items: center; gap: 1rem; }
.club-id-icon {
  width: 48px; height: 48px;
  background: var(--c-yellow-bg); border: 1px solid var(--c-yellow-bd);
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.club-id-icon svg { width: 22px; height: 22px; stroke: var(--c-yellow); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.club-id-label { font-size: 0.78rem; color: var(--c-text-muted); margin-bottom: 0.2rem; }
.club-id-value { font-family: var(--f-head); font-size: 1rem; font-weight: 600; }

/* === ARTICLE CARD === */
.article-card {
  background: var(--c-dark-2); border: 1px solid var(--c-border);
  border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; transition: var(--trans);
}
.article-card:hover { border-color: var(--c-yellow-bd); transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.article-card__img {
  aspect-ratio: 16/10; overflow: hidden; background: var(--c-dark-3);
  position: relative;
}
.article-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-card:hover .article-card__img img { transform: scale(1.06); }

.article-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.article-card__meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.article-card__cat {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c-yellow);
  background: var(--c-yellow-bg); padding: 0.22rem 0.6rem; border-radius: 100px;
}
.article-card__date { font-size: 0.8rem; color: var(--c-text-muted); }
.article-card__title {
  font-family: var(--f-head); font-size: 1.05rem; font-weight: 600;
  line-height: 1.45; margin-bottom: 0.75rem; color: var(--c-text);
}
.article-card__excerpt {
  font-size: 0.875rem; color: var(--c-text-muted); line-height: 1.65;
  margin-bottom: 1.25rem; flex: 1;
}
.article-card__link {
  font-size: 0.82rem; font-weight: 600; color: var(--c-yellow);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.article-card__link svg { transition: transform 0.3s ease; width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.article-card:hover .article-card__link svg { transform: translateX(4px); }

/* === EVENT CARD === */
.event-card {
  background: var(--c-dark-2); border: 1px solid var(--c-border);
  border-radius: var(--r); padding: 1.5rem;
  display: flex; gap: 1.5rem; align-items: flex-start; transition: var(--trans);
}
.event-card:hover { border-color: var(--c-yellow-bd); background: var(--c-dark-3); }

.event-card__date-block {
  background: var(--c-yellow); color: var(--c-white);
  border-radius: var(--r-sm); padding: 0.75rem 1rem;
  text-align: center; min-width: 60px; flex-shrink: 0;
}
.event-card__day { font-family: var(--f-head); font-size: 1.75rem; font-weight: 800; line-height: 1; display: block; }
.event-card__month { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; display: block; margin-top: 0.15rem; }

.event-card__body { flex: 1; }
.event-card__name { font-family: var(--f-head); font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.event-card__loc {
  font-size: 0.82rem; color: var(--c-text-muted);
  display: flex; align-items: center; gap: 0.3rem; margin-bottom: 0.75rem;
}
.event-card__loc svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.badge {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.18rem 0.6rem; border-radius: 100px;
}
.badge-upcoming { background: rgba(26,110,255,0.14); color: var(--c-yellow); }
.badge-open { background: rgba(74,222,128,0.14); color: #4ade80; }
.badge-closed { background: rgba(156,163,175,0.14); color: #9ca3af; }
.badge-result { background: rgba(99,102,241,0.14); color: #a5b4fc; }

/* === STAT CARD === */
.stat-card { text-align: center; padding: 2rem 1.5rem; }
.stat-card__number {
  font-family: var(--f-head);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800; color: var(--c-yellow);
  line-height: 1; display: block; margin-bottom: 0.5rem;
}
.stat-card__label { font-size: 0.9rem; color: var(--c-text-muted); font-weight: 500; }

/* === TEAM CARD === */
.team-card {
  background: var(--c-dark-2); border: 1px solid var(--c-border);
  border-radius: var(--r); overflow: hidden; text-align: center;
  transition: var(--trans);
}
.team-card:hover { border-color: var(--c-yellow-bd); transform: translateY(-5px); box-shadow: var(--shadow); }
.team-card__photo { aspect-ratio: 1; background: var(--c-dark-3); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.team-card__photo svg { width: 70%; height: 70%; }
.team-card:hover .team-card__photo img { transform: scale(1.05); }
.team-card__body { padding: 1.25rem; }
.team-card__name { font-family: var(--f-head); font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.team-card__role { font-size: 0.8rem; color: var(--c-yellow); font-weight: 500; }

/* === TESTIMONIALS === */
.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.55s cubic-bezier(0.4,0,0.2,1); }
.testimonial-card { min-width: 100%; padding: 3rem 2rem; text-align: center; }
.testimonial-card__quote {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--c-text);
  line-height: 1.75; max-width: 660px; margin: 0 auto 2rem; font-style: italic;
}
.testimonial-card__quote::before {
  content: '"'; color: var(--c-yellow); font-size: 3.5rem;
  font-family: var(--f-head); font-weight: 900;
  display: block; line-height: 1; margin-bottom: 0.5rem;
}
.testimonial-card__author { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.testimonial-card__avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--c-dark-3); border: 2px solid var(--c-yellow-bd);
  overflow: hidden; flex-shrink: 0;
}
.testimonial-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card__name { font-family: var(--f-head); font-weight: 600; font-size: 0.95rem; }
.testimonial-card__info { font-size: 0.8rem; color: var(--c-text-muted); margin-top: 0.2rem; }

.slider-dots { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 2rem; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-border); transition: var(--trans); cursor: pointer; border: none; }
.slider-dot.active { background: var(--c-yellow); width: 24px; border-radius: 4px; }

/* === VALUE CARD === */
.value-card {
  padding: 2rem; background: var(--c-dark-2); border: 1px solid var(--c-border);
  border-radius: var(--r); border-top: 3px solid var(--c-yellow); transition: var(--trans);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card__icon { font-size: 2.2rem; margin-bottom: 1rem; }
.value-card__title { font-family: var(--f-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.value-card__text { font-size: 0.875rem; color: var(--c-text-muted); line-height: 1.65; }

/* === SPONSOR === */
.sponsor-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: stretch; justify-content: center; }
.sponsor-item {
  background: var(--c-dark-2); border: 1px solid var(--c-border);
  border-radius: var(--r-sm); padding: 1.5rem;
  transition: var(--trans);
  display: flex; align-items: center; gap: 1.25rem;
  width: calc(50% - 0.75rem); max-width: 420px; min-width: 260px;
  box-sizing: border-box;
}
.sponsor-item:hover { border-color: var(--c-yellow-bd); transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.sponsor-item__logo {
  flex-shrink: 0; width: 90px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 6px; overflow: hidden; padding: 6px;
}
.sponsor-item__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsor-item__info { display: flex; flex-direction: column; gap: 0.2rem; }
.sponsor-item__name {
  font-family: var(--f-head); font-size: 1rem; font-weight: 700;
  color: var(--c-text);
}
.sponsor-item__desc { font-size: 0.78rem; color: var(--c-yellow); font-weight: 500; }
.sponsor-item__address { font-size: 0.78rem; color: var(--c-text-muted); line-height: 1.5; }

/* === SCHEDULE TABLE === */
.schedule-wrapper { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--c-border); }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.schedule-table th {
  background: var(--c-dark-2); padding: 1rem 1.5rem; text-align: left;
  font-family: var(--f-head); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-yellow);
  border-bottom: 2px solid var(--c-yellow);
}
.schedule-table td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--c-border); font-size: 0.9rem; }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: rgba(26,110,255,0.03); }

.level-badge { display: inline-block; font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 100px; }
.level-loisir  { background: rgba(96,165,250,0.14); color: #60a5fa; }
.level-compet  { background: rgba(251,146,60,0.14); color: #fb923c; }
.level-jeunes  { background: rgba(110,231,183,0.14); color: #6ee7b7; }
.level-ados    { background: rgba(196,181,253,0.14); color: #c4b5fd; }
.level-libre   { background: rgba(156,163,175,0.14); color: #9ca3af; }

/* === PRICE CARDS === */
.price-card {
  background: var(--c-dark-2); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 2.25rem; transition: var(--trans); position: relative;
}
.price-card--featured { border-color: var(--c-yellow); background: rgba(26,110,255,0.04); }
.price-card--featured::before {
  content: 'Le + populaire'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--c-yellow); color: var(--c-white); font-size: 0.68rem; font-weight: 700;
  padding: 0.22rem 0.75rem; border-radius: 100px; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--c-yellow-bd); }
.price-card--featured:hover { border-color: var(--c-yellow); }
.price-card__name { font-family: var(--f-head); font-size: 0.85rem; font-weight: 600; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.price-card__price { font-family: var(--f-head); font-size: 2.75rem; font-weight: 800; color: var(--c-yellow); line-height: 1; margin-bottom: 0.25rem; }
.price-card__price span { font-size: 1rem; font-weight: 400; color: var(--c-text-muted); }
.price-card__period { font-size: 0.78rem; color: var(--c-text-muted); margin-bottom: 1.75rem; }
.price-card__features { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.price-card__feature { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; }
.price-card__feature::before {
  content: '';
  width: 18px; height: 18px; flex-shrink: 0;
  background: var(--c-yellow-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A6EFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid var(--c-yellow-bd); border-radius: 50%;
  margin-top: 2px;
}

/* === RESULTS TABLE === */
.results-wrapper { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--c-border); }
.results-table { width: 100%; border-collapse: collapse; min-width: 540px; }
.results-table th {
  background: var(--c-dark-2); padding: 0.875rem 1.25rem; text-align: left;
  font-family: var(--f-head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-yellow);
  border-bottom: 2px solid var(--c-yellow);
}
.results-table td { padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--c-border); font-size: 0.88rem; }
.results-table tr:last-child td { border-bottom: none; }
.results-table tr:hover td { background: rgba(26,110,255,0.02); }
.medal--gold   { color: #FFD700; font-weight: 700; }
.medal--silver { color: #C0C0C0; font-weight: 700; }
.medal--bronze { color: #CD7F32; font-weight: 700; }

/* === PALMARÈS === */
.palmares-item {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.25rem; background: var(--c-dark-2);
  border: 1px solid var(--c-border); border-radius: var(--r);
  margin-bottom: 0.875rem; transition: var(--trans);
}
.palmares-item:hover { border-color: var(--c-yellow-bd); }
.palmares-item__rank { font-family: var(--f-head); font-size: 1.5rem; font-weight: 800; width: 44px; text-align: center; flex-shrink: 0; }
.palmares-item__title { font-family: var(--f-head); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
.palmares-item__meta { font-size: 0.8rem; color: var(--c-text-muted); }

/* === FORM === */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.84rem; font-weight: 500; color: var(--c-text); }
.form-group label .req { color: var(--c-yellow); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--c-dark-2); border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm); padding: 0.875rem 1rem;
  color: var(--c-text); font-size: 0.9rem; outline: none; transition: var(--trans);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--c-yellow); background: rgba(26,110,255,0.03);
}
.form-group input.error, .form-group select.error, .form-group textarea.error { border-color: #f87171; }
.form-group select option { background: var(--c-dark-2); }
.form-group textarea { resize: vertical; min-height: 130px; }
.error-msg { font-size: 0.76rem; color: #f87171; display: none; }
.error-msg.visible { display: block; }

.form-success {
  display: none; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem; border-radius: var(--r-sm);
  background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80; font-size: 0.9rem;
}
.form-success svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* === CONTACT INFO === */
.contact-info-card {
  background: var(--c-dark-2); border: 1px solid var(--c-border);
  border-radius: var(--r); padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem;
}
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-item__icon {
  width: 42px; height: 42px; background: var(--c-yellow-bg);
  border: 1px solid var(--c-yellow-bd); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item__icon svg { width: 18px; height: 18px; stroke: var(--c-yellow); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-info-item__label { font-size: 0.72rem; font-weight: 600; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.contact-info-item__value { font-size: 0.9rem; line-height: 1.55; }
.contact-info-item__value a { color: var(--c-yellow); }
.contact-info-item__value a:hover { text-decoration: underline; }

.map-wrapper { border-radius: var(--r); overflow: hidden; border: 1px solid var(--c-border); aspect-ratio: 16/8; }
.map-wrapper iframe { width: 100%; height: 100%; border: none; }

/* Social links */
.social-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.social-link {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--c-dark-3); border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans); color: var(--c-text-muted);
}
.social-link:hover { border-color: var(--c-yellow); color: var(--c-yellow); background: var(--c-yellow-bg); }
.social-link svg { width: 17px; height: 17px; fill: currentColor; }

/* === ARTICLE DETAIL === */
.article-detail { max-width: 780px; }
.article-detail__header { margin-bottom: 2rem; }
.article-detail__title { font-family: var(--f-head); font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.02em; }
.article-detail__meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.article-detail__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 16/9; margin-bottom: 2.5rem; }
.article-detail__img img { width: 100%; height: 100%; object-fit: cover; }
.article-content p { color: var(--c-text-muted); margin-bottom: 1.25rem; line-height: 1.85; font-size: 1.02rem; }
.article-content h2 { font-family: var(--f-head); font-size: 1.4rem; font-weight: 700; margin: 2.5rem 0 1rem; }
.article-content h3 { font-family: var(--f-head); font-size: 1.1rem; font-weight: 600; margin: 2rem 0 0.75rem; color: var(--c-yellow); }
.article-content blockquote {
  border-left: 3px solid var(--c-yellow); padding: 1rem 1.5rem;
  background: var(--c-yellow-bg); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 1.5rem 0; font-style: italic; color: var(--c-text);
}

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--c-text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-yellow); }
.breadcrumb .sep { color: var(--c-text-dim); }

/* === STEPS (Rejoindre) === */
.step-item { display: flex; gap: 1.5rem; align-items: flex-start; padding: 1.5rem; background: var(--c-dark-2); border: 1px solid var(--c-border); border-radius: var(--r); margin-bottom: 1rem; }
.step-number { width: 44px; height: 44px; border-radius: 50%; background: var(--c-yellow); color: var(--c-white); font-family: var(--f-head); font-size: 1rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-title { font-family: var(--f-head); font-weight: 600; margin-bottom: 0.4rem; }
.step-desc { font-size: 0.875rem; color: var(--c-text-muted); line-height: 1.6; }

/* === CTA SECTION === */
.cta-section {
  padding: 5rem 0; text-align: center;
  background: linear-gradient(135deg, #0F1729 0%, #162040 50%, #0F1729 100%);
  color: #ffffff; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(26,110,255,0.12) 0%, transparent 65%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section__title { font-family: var(--f-head); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; }
.cta-section__desc { color: rgba(255,255,255,0.6); font-size: 1.05rem; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-section__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === DIVIDER === */
.divider { height: 1px; background: var(--c-border); margin: 4rem 0; }

/* === FOOTER === */
.footer { background: #0F1729; border-top: 1px solid rgba(255,255,255,0.08); padding: 4.5rem 0 2rem; color: var(--c-text-muted); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3.5rem; }
.footer__brand .navbar__logo { margin-bottom: 1rem; }
.footer__brand p { font-size: 0.875rem; color: var(--c-text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.footer__col-title { font-family: var(--f-head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-white); margin-bottom: 1rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a { font-size: 0.875rem; color: var(--c-text-muted); }
.footer__links a:hover { color: var(--c-yellow); }
.footer__contact-item { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.875rem; }
.footer__contact-item svg { width: 15px; height: 15px; stroke: var(--c-yellow); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 3px; }
.footer__contact-item span { font-size: 0.84rem; color: var(--c-text-muted); line-height: 1.55; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer__copyright { font-size: 0.78rem; color: var(--c-text-muted); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { font-size: 0.78rem; color: var(--c-text-muted); }
.footer__legal a:hover { color: var(--c-yellow); }

/* === ANIMATIONS === */
.reveal       { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left  { opacity: 0; transform: translateX(-28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* === MEDIA QUERIES === */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --nav-h: 64px; --pad: 1rem; }
  .section { padding: 4rem 0; }
  .navbar__links, .navbar__cta { display: none; }
  .navbar__burger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .club-id-card { flex-direction: column; gap: 1.5rem; }
  .event-card { flex-direction: column; }
  .cta-section__actions { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ================================================
   GALERIE PHOTOS
   ================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--c-dark-3);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.07); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,41,0);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  transition: background 0.3s;
}
.gallery-item:hover .gallery-item__overlay { background: rgba(15,23,41,0.55); }

.gallery-item__caption {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover .gallery-item__caption { opacity: 1; transform: none; }

/* Animation d'apparition des items (créés dynamiquement, pas de reveal observer) */
@keyframes galleryFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.gallery-item--anim {
  animation: galleryFadeIn 0.5s ease both;
}
.gallery-item--anim:nth-child(2) { animation-delay: 0.05s; }
.gallery-item--anim:nth-child(3) { animation-delay: 0.10s; }
.gallery-item--anim:nth-child(4) { animation-delay: 0.15s; }
.gallery-item--anim:nth-child(5) { animation-delay: 0.20s; }
.gallery-item--anim:nth-child(6) { animation-delay: 0.25s; }
.gallery-item--anim:nth-child(7) { animation-delay: 0.30s; }
.gallery-item--anim:nth-child(8) { animation-delay: 0.35s; }
.gallery-item--anim:nth-child(9) { animation-delay: 0.40s; }

.gallery-empty {
  grid-column: 1 / -1;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--c-dark-3);
  border-radius: var(--r-md);
  border: 2px dashed var(--c-border);
}

/* ── Lightbox ─────────────────────────────────── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox-content img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  text-align: center;
  min-height: 1.2em;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-family: var(--f-body);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.28); }

.lightbox-close {
  top: 1.25rem; right: 1.25rem;
  font-size: 1.6rem; line-height: 1;
}
.lightbox-prev {
  left: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.8rem;
}
.lightbox-next {
  right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.8rem;
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
