/* ===== VARIABLES ===== */
:root {
  --navy: #1A3A6B;
  --electric: #1E5FBE;
  --bright: #3A7FE8;
  --white: #FFFFFF;
  --offwhite: #F4F6FA;
  --lightgrey: #E8ECF2;
  --dark: #0D1F3C;
  --win: #22C55E;
  --draw: #94A3B8;
  --loss: #EF4444;
  --font-display: 'Barlow Condensed', 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, -apple-system, sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --hero-name-size: 120px;
  --jersey-num-opacity: 0.07;
  --card-radius: 12px;
  --section-padding: 96px;
  --geo-opacity: 1;
  --anim-duration: 0.9s;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--offwhite); color: var(--dark); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== PWA INSTALL BUTTON ===== */
.pwa-install-btn {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 95;
  background: var(--navy);
  color: var(--white);
  border: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(13,31,60,0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.25s, transform 0.25s;
  animation: pwaInstallPop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pwa-install-btn:hover { background: var(--electric); transform: translateY(-2px); }
.pwa-install-btn[hidden] { display: none; }
@keyframes pwaInstallPop {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 600px) {
  .pwa-install-btn { bottom: 80px; right: 12px; font-size: 10px; padding: 10px 14px; }
}
/* Cache le bouton si l'app est déjà en mode standalone (déjà installée) */
@media (display-mode: standalone) {
  .pwa-install-btn { display: none !important; }
}

/* ===== COOKIE CONSENT (RGPD/CNIL — Accept/Reject/Customize équiprobables) ===== */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  z-index: 99998;
  background: var(--white);
  border: 1px solid var(--lightgrey);
  border-radius: 12px;
  box-shadow: 0 16px 50px rgba(13,31,60,0.18);
  padding: 22px 24px;
  display: none;
  font-family: var(--font-body);
  animation: cookieSlideUp 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cookie-banner.visible { display: block; }
@keyframes cookieSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-banner-icon {
  width: 28px; height: 28px;
  background: rgba(58,127,232,0.1);
  color: var(--electric);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cookie-banner-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.cookie-banner-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--dark);
  margin-bottom: 16px;
}
.cookie-banner-text a {
  color: var(--electric);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex: 1;
  min-width: 110px;
  white-space: nowrap;
}
.cookie-btn.primary { background: var(--navy); color: var(--white); }
.cookie-btn.primary:hover { background: var(--electric); }
.cookie-btn.secondary { background: var(--white); color: var(--navy); border-color: var(--lightgrey); }
.cookie-btn.secondary:hover { border-color: var(--navy); }
.cookie-btn.ghost { background: transparent; color: var(--draw); border-color: transparent; }
.cookie-btn.ghost:hover { color: var(--navy); }

/* Modal de personnalisation */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(13,31,60,0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal-backdrop.open { display: flex; }
.cookie-modal {
  background: var(--white);
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(13,31,60,0.3);
  animation: cookieSlideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cookie-modal-head {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--lightgrey);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.cookie-modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.cookie-modal-subtitle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 4px;
}
.cookie-modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--offwhite);
  border: 1px solid var(--lightgrey);
  color: var(--draw);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}
.cookie-modal-close:hover { background: var(--navy); color: var(--white); }
.cookie-modal-body { padding: 20px 28px; }
.cookie-modal-intro {
  font-size: 13px;
  line-height: 1.6;
  color: var(--draw);
  margin-bottom: 22px;
}
.cookie-category {
  padding: 16px 0;
  border-bottom: 1px solid var(--lightgrey);
}
.cookie-category:last-child { border-bottom: none; }
.cookie-category-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}
.cookie-category-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}
.cookie-category-required {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--draw);
  font-weight: 600;
}
.cookie-category-desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--draw);
}
/* Toggle switch iOS-like */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--lightgrey);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s;
  flex-shrink: 0;
}
.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.cookie-toggle.active { background: var(--electric); }
.cookie-toggle.active::after { transform: translateX(20px); }
.cookie-toggle.disabled { opacity: 0.5; cursor: not-allowed; }
.cookie-modal-footer {
  padding: 18px 28px 24px;
  border-top: 1px solid var(--lightgrey);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .cookie-banner { padding: 18px 18px; bottom: 8px; left: 8px; right: 8px; }
  .cookie-banner-actions { flex-direction: column; }
  .cookie-btn { width: 100%; min-width: 0; }
  .cookie-modal { max-height: 92vh; }
  .cookie-modal-head { padding: 18px 20px 14px; }
  .cookie-modal-body { padding: 16px 20px; }
  .cookie-modal-footer { padding: 14px 20px 18px; flex-direction: column; }
  .cookie-modal-footer .cookie-btn { width: 100%; }
}

/* ===== AUTH-GATED ELEMENTS (visibles uniquement si licencié connecté) ===== */
.nav-auth-only { display: none !important; }
body.is-logged-in .nav-auth-only { display: inline-flex !important; }
body.is-logged-in .nav-links .nav-auth-only { display: inline !important; }
body:not(.is-logged-in) #convocations { display: none !important; }

/* ===== ACCESSIBILITÉ ===== */
/* Skip link : invisible jusqu'au focus clavier (Tab) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  z-index: 99999;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 0.2s ease;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--bright);
  outline-offset: 2px;
}
/* Focus visible cohérent partout (clavier uniquement, pas au click) */
:focus-visible {
  outline: 2px solid var(--bright);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Pas d'outline disgracieux au click */
:focus:not(:focus-visible) { outline: none; }

/* ===== LANGUAGE TOGGLE ===== */
[data-lang="en"] { display: none; }
body.en [data-lang="fr"] { display: none; }
body.en [data-lang="en"] { display: block; }
body.en span[data-lang="en"] { display: inline; }
body.en span[data-lang="fr"] { display: none; }
span[data-lang="en"] { display: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
@keyframes numberPulse { 0%, 100% { opacity: 0.05; } 50% { opacity: 0.09; } }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
nav.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(26,58,107,0.12);
}
nav.scrolled .nav-logo-name { color: var(--navy); }
nav.scrolled .nav-links a { color: var(--navy); }
nav.scrolled .nav-links a::after { background: var(--electric); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  background: var(--white);
  border-radius: 50%;
  padding: 5px;
  box-sizing: border-box;
  border: 2px solid rgba(255,255,255,0.85);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(13,31,60,0.15);
}
nav.scrolled .nav-logo img {
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(13,31,60,0.08);
}
.nav-logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1.2;
  transition: color 0.3s;
}
.nav-logo-name span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--white);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.3s;
}
.lang-toggle:hover { background: rgba(255,255,255,0.2); color: var(--white); }
nav.scrolled .lang-toggle { color: var(--navy); background: var(--lightgrey); border-color: var(--lightgrey); }

.btn-join {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--electric);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
  border: 0;
}
.btn-join:hover { background: var(--bright); transform: translateY(-1px); }

/* Hide inline nav-links — replaced by burger overlay on all viewports */
.nav-links { display: none !important; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.hamburger:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}
nav.scrolled .hamburger {
  background: var(--offwhite);
  border-color: var(--lightgrey);
}
nav.scrolled .hamburger:hover {
  background: var(--electric);
  border-color: var(--electric);
}
nav.scrolled .hamburger:hover span { background: var(--white); }
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
nav.scrolled .hamburger span { background: var(--navy); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ===== BURGER DRAWER (slide from right) ===== */
.burger-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 18, 36, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.burger-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.burger-panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(440px, 100%);
  background: linear-gradient(180deg, var(--dark) 0%, var(--navy) 100%);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.35);
  overflow: hidden;
}
.burger-overlay.open .burger-panel { transform: translateX(0); }

.burger-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  flex-shrink: 0;
  min-height: 72px;
  box-sizing: border-box;
}
.burger-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.burger-logo img {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 50%;
  padding: 4px;
  box-sizing: border-box;
}
.burger-logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.12em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.burger-logo-name span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  font-weight: 400;
  opacity: 0.5;
  margin-top: 1px;
}
.burger-close {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-left: 12px;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  padding: 0;
}
.burger-close:hover {
  background: rgba(255,255,255,0.18);
  transform: rotate(90deg);
}
.burger-close:active { background: rgba(255,255,255,0.25); }

.burger-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.burger-nav {
  display: flex;
  flex-direction: column;
}
.burger-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: var(--white);
  opacity: 0;
  transform: translateX(20px);
  transition: padding-left 0.25s ease, opacity 0.4s ease, transform 0.4s ease, color 0.2s;
}
.burger-overlay.open .burger-nav-item { opacity: 1; transform: translateX(0); }
.burger-overlay.open .burger-nav-item:nth-child(1) { transition-delay: 0.18s; }
.burger-overlay.open .burger-nav-item:nth-child(2) { transition-delay: 0.22s; }
.burger-overlay.open .burger-nav-item:nth-child(3) { transition-delay: 0.26s; }
.burger-overlay.open .burger-nav-item:nth-child(4) { transition-delay: 0.30s; }
.burger-overlay.open .burger-nav-item:nth-child(5) { transition-delay: 0.34s; }
.burger-overlay.open .burger-nav-item:nth-child(6) { transition-delay: 0.38s; }
.burger-overlay.open .burger-nav-item:nth-child(7) { transition-delay: 0.42s; }
.burger-overlay.open .burger-nav-item:nth-child(8) { transition-delay: 0.46s; }
.burger-overlay.open .burger-nav-item:nth-child(9) { transition-delay: 0.50s; }
.burger-overlay.open .burger-nav-item:nth-child(10) { transition-delay: 0.54s; }
.burger-nav-item:hover { padding-left: 8px; }
.burger-nav-item:hover .burger-title { color: var(--bright); }
.burger-nav-item:hover .burger-arrow {
  background: var(--bright);
  transform: translateX(4px);
  border-color: var(--bright);
}

.burger-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  width: 22px;
}
.burger-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  flex: 1;
  transition: color 0.2s;
}
.burger-arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  flex-shrink: 0;
}
.burger-arrow svg { width: 11px; height: 11px; stroke: var(--white); fill: none; stroke-width: 2; }

.burger-foot {
  padding: 18px 28px 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}
.burger-foot-meta {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.burger-foot-social {
  display: flex;
  gap: 8px;
}
.burger-foot-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
}
.burger-foot-social a:hover {
  background: var(--white);
  transform: translateY(-2px);
}
.burger-foot-social svg { width: 14px; height: 14px; fill: var(--white); transition: fill 0.25s; }
.burger-foot-social a:hover svg { fill: var(--navy); }

@media (max-width: 600px) {
  .burger-panel { width: 100%; }
  .burger-head { padding: 18px 22px; }
  .burger-body { padding: 20px 22px 24px; }
  .burger-foot { padding: 16px 22px 20px; }
  .burger-title { font-size: 17px; }
  .burger-nav-item { padding: 12px 0; gap: 12px; }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--dark);
  z-index: 999;
  padding: 24px 32px;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 16px;
}

/* ===== HERO (Photo réelle ESI + slideshow + dark overlay) ===== */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--dark);
  display: flex;
  align-items: flex-end;
  padding: 120px 56px 100px;
  isolation: isolate;
}
/* Slideshow background images (toutes superposées, on fade entre elles) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-image: url('assets/team-bg.webp');
  background-size: cover;
  background-position: center 35%;
  opacity: 0;
  transition: opacity 1.6s ease;
  transform: scale(1.04);
  animation: heroKenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}
@media (max-width: 768px) {
  .hero-bg-slide { background-image: url('assets/team-bg-mobile.jpg'); }
}
.hero-bg-slide.active { opacity: 1; }
@keyframes heroKenBurns {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1%, -1%); }
}
/* Overlay sombre pour lisibilité du texte (fort à gauche, fade vers droite) */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6,14,30,0.92) 0%, rgba(6,14,30,0.78) 32%, rgba(6,14,30,0.55) 60%, rgba(6,14,30,0.4) 100%),
    linear-gradient(to top, rgba(6,14,30,0.6) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
/* Grain léger pour matière */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 1;
}

/* Player transparent désactivé — la photo de fond fait le job */
.hero-player { display: none !important; }

/* Big title on the left */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 0 1 640px;
  max-width: 640px;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeUp var(--anim-duration) ease 0.1s both;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--bright);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(54px, 7.5vw, 118px);
  line-height: 0.88;
  letter-spacing: -0.028em;
  color: var(--white);
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
  animation: fadeUp var(--anim-duration) ease 0.2s both;
}
.hero-title span { display: block; }
.hero-title .accent {
  color: var(--bright);
  -webkit-text-stroke: 0;
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  animation: fadeUp var(--anim-duration) ease 0.35s both;
}
.hero-tagline strong {
  color: var(--white);
  font-weight: 600;
}

/* CTA row */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
  animation: fadeUp var(--anim-duration) ease 0.45s both;
}
.hero-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 16px 30px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  cursor: pointer;
  border: 1px solid transparent;
}
.hero-cta.primary {
  background: var(--white);
  color: var(--navy);
}
.hero-cta.primary:hover { background: var(--bright); color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(58,127,232,0.45); }
.hero-cta.ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.hero-cta.ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--white); transform: translateY(-2px); }
.hero-cta:active { transform: translateY(0) scale(0.98); transition-duration: 0.08s; }
.hero-cta { transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.hero-cta-arrow {
  width: 18px; height: 1px;
  background: currentColor;
  position: relative;
  flex-shrink: 0;
  transition: width 0.25s ease;
}
.hero-cta-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.hero-cta-arrow svg { display: none; }
.hero-cta:hover .hero-cta-arrow { width: 24px; }

/* Hero social icons (bottom right) */
.hero-social {
  position: absolute;
  bottom: 36px;
  right: 56px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 1s ease 1s both;
}
.hero-social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}
.hero-social-link:hover {
  background: var(--white);
  border-color: var(--white);
}
.hero-social-link svg {
  width: 16px; height: 16px;
  fill: var(--white);
  transition: fill 0.25s;
}
.hero-social-link:hover svg { fill: var(--navy); }

/* ===== HERO FIXTURES STACK (Moretti-style pills) ===== */
.hero-fixtures {
  position: absolute;
  top: 50%;
  right: 56px;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 320px;
  animation: slideLeft 1s ease 0.5s both;
}

.fix-pill {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 14px;
  text-decoration: none;
  color: var(--navy);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.fix-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(58,127,232,0.35), 0 0 0 1px rgba(58,127,232,0.4);
  border-color: rgba(58,127,232,0.6);
}
.fix-pill:active { transform: translateY(-1px) scale(0.99); transition-duration: 0.08s; }

.fix-pill.featured {
  background: var(--dark);
  color: var(--white);
  border-color: rgba(255,255,255,0.1);
}

.fix-pill-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 56px;
}
.fix-pill-date-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(13,31,60,0.45);
  line-height: 1;
}
.fix-pill.featured .fix-pill-date-label { color: rgba(255,255,255,0.55); }
.fix-pill-date-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.fix-pill-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.fix-pill-logo {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--lightgrey);
  padding: 3px;
  object-fit: contain;
  flex-shrink: 0;
}
.fix-pill.featured .fix-pill-logo {
  border-color: rgba(255,255,255,0.2);
}
.fix-pill-vs-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: rgba(13,31,60,0.4);
  letter-spacing: 0.06em;
}
.fix-pill.featured .fix-pill-vs-label { color: rgba(255,255,255,0.5); }

.fix-pill-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.fix-pill.featured .fix-pill-arrow { background: var(--electric); }
.fix-pill:hover .fix-pill-arrow { background: var(--electric); transform: translateX(2px); }
.fix-pill.featured:hover .fix-pill-arrow { background: var(--bright); }
.fix-pill-arrow svg { width: 12px; height: 12px; }
.fix-pill-arrow svg path { stroke: var(--navy); transition: stroke 0.2s; }
.fix-pill:hover .fix-pill-arrow svg path { stroke: var(--white); }
.fix-pill.featured .fix-pill-arrow svg path { stroke: var(--white); }
.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.widget-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bright);
}
.widget-arrow {
  width: 28px; height: 28px;
  background: var(--electric);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  border: 0;
}
.widget-arrow:hover { background: var(--bright); }
.widget-arrow svg { width: 14px; height: 14px; fill: var(--white); }

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.match-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.badge-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  color: var(--white);
  text-transform: uppercase;
}
.badge-esi { background: var(--electric); }
.badge-opp { background: rgba(255,255,255,0.15); }
.badge-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  text-align: center;
}
.vs-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: rgba(255,255,255,0.3);
}

.match-details {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
}
.match-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 4px;
}
.match-meta { display: flex; gap: 8px; align-items: center; }
.match-time {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.home-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(34,197,94,0.15);
  color: var(--win);
  padding: 2px 8px;
  border-radius: 3px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 20;
  animation: fadeIn 1s ease 1.2s both;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.4));
  animation: fadeIn 2s ease infinite;
}
.scroll-text {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  writing-mode: vertical-rl;
}

/* ===== INFO BAND ===== */
#info-band { background: var(--dark); padding: 0; }
.info-band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--electric);
}
.info-item {
  padding: 28px 36px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  position: relative;
}
.info-item:last-child { border-right: none; }
.info-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.info-key {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
}

/* ===== HISTOIRE — 2-col layout (text + photo carousel) ===== */
#histoire {
  padding: var(--section-padding) 48px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
#histoire::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse at top right, rgba(58,127,232,0.06), transparent 60%);
  pointer-events: none;
}

.histoire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.histoire-intro {
  max-width: 640px;
}
.histoire-intro .section-eyebrow { color: var(--electric); }
.histoire-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  margin-top: 24px;
}
.histoire-text strong {
  color: var(--navy);
  font-weight: 600;
}
.histoire-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.histoire-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.histoire-stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  color: var(--electric);
  line-height: 1;
  letter-spacing: -0.02em;
}
.histoire-stat-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--draw);
}

/* === Photo Carousel (right side of Histoire) === */
.histoire-carousel {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--dark);
  box-shadow: 0 30px 80px rgba(13,31,60,0.18), 0 0 0 1px rgba(13,31,60,0.04);
}
.histoire-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 8s ease-out;
  transform: scale(1.05);
}
.histoire-slide.active {
  opacity: 1;
  transform: scale(1);
}
.histoire-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.histoire-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13,31,60,0.85) 100%);
  pointer-events: none;
}
.histoire-slide-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  color: var(--white);
  z-index: 2;
}
.histoire-slide-caption-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--electric);
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 8px;
}
.histoire-slide-caption-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.histoire-carousel-dots {
  position: absolute;
  bottom: 14px;
  right: 18px;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.histoire-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s;
}
.histoire-dot.active {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}

/* Timeline horizontal carousel (gardée mais simplifiée — désactivée pour l'instant) */
.timeline-wrap {
  position: relative;
  padding-right: 48px;
}
.timeline-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 32px;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.timeline-track::-webkit-scrollbar { display: none; }

.timeline-slide {
  flex: 0 0 auto;
  width: clamp(280px, 32vw, 420px);
  scroll-snap-align: start;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--dark);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline-slide:hover { transform: translateY(-4px); }
.timeline-slide-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline-slide:hover .timeline-slide-img { transform: scale(1.06); }
.timeline-slide.vintage .timeline-slide-img {
  filter: sepia(0.85) contrast(0.92) brightness(0.85) saturate(0.6);
}
.timeline-slide.bw .timeline-slide-img {
  filter: grayscale(1) contrast(1.1) brightness(0.92);
}
.timeline-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.timeline-slide-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 14px),
    linear-gradient(135deg, var(--dark) 0%, var(--navy) 100%);
}
.timeline-slide-placeholder span {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 6px;
}
.timeline-slide-year {
  position: absolute;
  top: 18px; left: 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--white);
  background: var(--electric);
  padding: 6px 14px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(30,95,190,0.3);
}
.timeline-slide.featured .timeline-slide-year {
  background: linear-gradient(135deg, #d4a017, #f4c440);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(212,160,23,0.4);
}
.timeline-slide-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  color: var(--white);
  z-index: 2;
}
.timeline-slide-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.timeline-slide-desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.8);
}

.timeline-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-right: 48px;
}
.timeline-progress {
  flex: 1;
  height: 2px;
  background: var(--lightgrey);
  border-radius: 999px;
  margin-right: 32px;
  position: relative;
  overflow: hidden;
}
.timeline-progress-bar {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--electric), var(--bright));
  border-radius: 999px;
  width: 16%;
  transition: width 0.3s ease;
}
.timeline-nav {
  display: flex;
  gap: 8px;
}
.timeline-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--lightgrey);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.timeline-btn:hover { background: var(--electric); border-color: var(--electric); }
.timeline-btn:hover svg { stroke: var(--white); }
.timeline-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.timeline-btn svg { width: 16px; height: 16px; stroke: var(--navy); fill: none; stroke-width: 2; transition: stroke 0.2s; }

/* ===== SECTION BASE ===== */
.section-header { margin-bottom: 56px; }
.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--electric);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 5.4vw, 72px);
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.022em;
  color: var(--navy);
}
.section-title.light { color: var(--white); }

/* ===== CALENDRIER ===== */
#calendrier {
  padding: var(--section-padding) 48px;
  background: var(--offwhite);
}
.calendar-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}
.voir-tout {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--electric);
  border-bottom: 2px solid var(--electric);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.voir-tout:hover { color: var(--bright); border-color: var(--bright); }

.match-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.match-card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 28px 28px 24px;
  box-shadow: 0 1px 3px rgba(13,31,60,0.04);
  border: 1px solid var(--lightgrey);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.match-card:hover {
  border-color: rgba(58,127,232,0.25);
  box-shadow: 0 8px 24px rgba(13,31,60,0.08);
  transform: translateY(-2px);
}
.match-card.featured {
  background: var(--electric);
  border-color: var(--electric);
  color: var(--white);
}

.card-competition {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--electric);
  margin-bottom: 16px;
}
.match-card.featured .card-competition { color: rgba(255,255,255,0.6); }

.card-teams {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.card-badge {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  color: var(--white);
  flex-shrink: 0;
}
.card-badge.esi { background: var(--electric); }
.match-card.featured .card-badge.esi { background: rgba(255,255,255,0.2); }
.card-badge.opp { background: var(--lightgrey); color: var(--navy); }
.match-card.featured .card-badge.opp { background: rgba(255,255,255,0.15); color: var(--white); }

.card-team-names { flex: 1; }
.card-team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  line-height: 1.2;
}
.match-card.featured .card-team-name { color: var(--white); }
.card-vs {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  color: var(--draw);
  letter-spacing: 0.08em;
}
.match-card.featured .card-vs { color: rgba(255,255,255,0.5); }

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--lightgrey);
  padding-top: 14px;
}
.match-card.featured .card-footer { border-color: rgba(255,255,255,0.15); }

.card-date {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark);
  font-weight: 500;
}
.match-card.featured .card-date { color: rgba(255,255,255,0.9); }

.location-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 3px;
}
.location-tag.home { background: rgba(34,197,94,0.1); color: var(--win); }
.location-tag.away { background: rgba(148,163,184,0.15); color: var(--draw); }
.match-card.featured .location-tag.home { background: rgba(255,255,255,0.2); color: var(--white); }

/* ===== FIXTURE LOGOS ===== */
.fixture-logos {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
}
.fixture-logo {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  padding: 3px;
  object-fit: contain;
  box-shadow: 0 1px 4px rgba(26,58,107,0.08);
  border: 1px solid var(--lightgrey);
  margin: 0 auto;
}
.fixture.featured .fixture-logo {
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.4);
}
.fixture-vs {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: var(--draw);
  letter-spacing: 0.08em;
}
.fixture.featured .fixture-vs { color: rgba(255,255,255,0.6); }

/* ===== UPCOMING FIXTURES STRIP ===== */
.fixtures-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 56px;
}
.fixture {
  background: var(--white);
  border: 1px solid var(--lightgrey);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.fixture:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26,58,107,0.10);
  border-color: var(--electric);
}
.fixture::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--electric);
}
.fixture.featured {
  background: linear-gradient(135deg, var(--electric), var(--bright));
  border-color: var(--electric);
  color: var(--white);
}
.fixture.featured::before { background: var(--white); }
.fixture-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fixture-comp {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--electric);
}
.fixture.featured .fixture-comp { color: rgba(255,255,255,0.85); }
.fixture-loc {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 3px;
}
.fixture-loc.home { background: rgba(34,197,94,0.12); color: var(--win); }
.fixture-loc.away { background: rgba(148,163,184,0.18); color: var(--draw); }
.fixture.featured .fixture-loc.home,
.fixture.featured .fixture-loc.away { background: rgba(255,255,255,0.2); color: var(--white); }
.fixture-teams {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.fixture.featured .fixture-teams { color: var(--white); }
.fixture-teams .vs-mini {
  font-weight: 700;
  font-size: 11px;
  color: var(--draw);
  letter-spacing: 0.1em;
  margin: 4px 0;
  display: block;
}
.fixture.featured .fixture-teams .vs-mini { color: rgba(255,255,255,0.6); }
.fixture-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--lightgrey);
  padding-top: 10px;
  margin-top: auto;
}
.fixture.featured .fixture-meta { border-color: rgba(255,255,255,0.2); }
.fixture-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fixture.featured .fixture-date { color: var(--white); }
.fixture-time {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--electric);
}
.fixture.featured .fixture-time { color: var(--white); }

.subsection-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--draw);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lightgrey);
  display: flex;
  align-items: center;
  gap: 10px;
}
.subsection-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--electric), transparent);
}

/* ===== TEAM CARDS (Nos équipes) ===== */
.team-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.team-cat-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--lightgrey);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.team-cat-tag:hover { border-color: var(--electric); color: var(--electric); }
.team-cat-tag.active { background: var(--electric); border-color: var(--electric); color: var(--white); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.team-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--lightgrey);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(13,31,60,0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
  /* button reset (some team-cards are <button>) */
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  text-decoration: none;
  position: relative;
}
button.team-card { font-family: inherit; }
.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,31,60,0.08);
  border-color: rgba(58,127,232,0.4);
}
/* Lien "Fiche complète →" injecté en JS sur chaque card pour SEO + accès direct */
.team-card-link-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--electric);
  background: var(--white);
  border: 1px solid var(--lightgrey);
  padding: 5px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  opacity: 0.92;
}
.team-card-link-badge:hover {
  background: var(--electric);
  color: var(--white);
  border-color: var(--electric);
  opacity: 1;
}
.team-card-link-badge svg { width: 8px; height: 8px; stroke: currentColor; fill: none; stroke-width: 2; }
.team-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.team-card-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1;
}
.team-card-cat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--electric);
  margin-top: 6px;
}
.team-card-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  color: var(--lightgrey);
  line-height: 1;
  letter-spacing: -0.04em;
}
.team-card-rank {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--offwhite);
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.team-card-rank-pos {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: var(--electric);
  letter-spacing: -0.02em;
}
.team-card-rank-pos sup {
  font-size: 10px;
  font-weight: 700;
  vertical-align: super;
}
.team-card-rank-meta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--draw);
}
.team-card-stats {
  display: flex;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--draw);
  letter-spacing: 0.04em;
}
.team-card-stats strong {
  color: var(--navy);
  font-weight: 900;
  font-size: 13px;
  display: block;
}
.team-card-comp {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark);
  line-height: 1.4;
}
.team-card-comp strong {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--navy);
}
.team-card-form {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--lightgrey);
  padding-top: 14px;
}
.form-mini-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--draw);
}
.form-mini-dots {
  display: flex;
  gap: 4px;
}
.form-mini-dots .dot-mini {
  width: 18px; height: 18px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 10px;
  color: var(--white);
}
.form-mini-dots .dot-mini.W { background: var(--win); }
.form-mini-dots .dot-mini.D { background: var(--draw); }
.form-mini-dots .dot-mini.L { background: var(--loss); }
.form-mini-dots .dot-mini.empty { background: var(--lightgrey); color: var(--draw); }

/* ===== RÉSULTATS ===== */
#resultats {
  padding: var(--section-padding) 48px;
  background: var(--white);
}
.resultats-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.results-list { display: flex; flex-direction: column; gap: 12px; }
.result-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--offwhite);
  border-radius: 8px;
  border-left: 4px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.result-row:hover { transform: translateX(4px); box-shadow: 0 4px 20px rgba(26,58,107,0.08); }
.result-row.win { border-color: var(--win); }
.result-row.draw { border-color: var(--draw); }
.result-row.loss { border-color: var(--loss); }

.result-indicator {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
}
.result-row.win .result-indicator { background: rgba(34,197,94,0.12); color: var(--win); }
.result-row.draw .result-indicator { background: rgba(148,163,184,0.15); color: var(--draw); }
.result-row.loss .result-indicator { background: rgba(239,68,68,0.1); color: var(--loss); }

.result-teams {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.result-competition {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--draw);
  font-weight: 400;
  text-transform: none;
  display: block;
  letter-spacing: 0;
}

.result-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--navy);
  min-width: 60px;
  text-align: right;
}

.season-card {
  background: var(--dark);
  border-radius: 16px;
  padding: 32px;
  color: var(--white);
  position: sticky;
  top: 100px;
}
.season-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.season-year {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.season-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.s-stat { text-align: center; }
.s-stat-val {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  color: var(--white);
  line-height: 1;
}
.s-stat-key {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

.form-streak {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}
.streak-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
}
.streak-dots { display: flex; gap: 8px; }
.dot {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  color: var(--white);
}
.dot.W { background: var(--win); }
.dot.D { background: var(--draw); }
.dot.L { background: var(--loss); }

/* ===== GALERIE ===== */
#galerie {
  padding: var(--section-padding) 48px;
  background: var(--dark);
}
.galerie-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 560px;
  margin-bottom: 32px;
}
.galerie-main { grid-row: 1 / 3; border-radius: 12px; overflow: hidden; }
.galerie-small { border-radius: 12px; overflow: hidden; }

.photo-placeholder {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.photo-placeholder:hover .photo-overlay { opacity: 1; }
.photo-placeholder:hover .photo-bg { transform: scale(1.05); }

.photo-bg { width: 100%; height: 100%; transition: transform 0.5s ease; }
.photo-stripe {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.stripe-1 { background: repeating-linear-gradient(-45deg, rgba(30,95,190,0.25) 0px, rgba(30,95,190,0.25) 1px, rgba(13,31,60,0.9) 1px, rgba(13,31,60,0.9) 20px); }
.stripe-2 { background: repeating-linear-gradient(45deg, rgba(58,127,232,0.2) 0px, rgba(58,127,232,0.2) 1px, rgba(26,58,107,0.85) 1px, rgba(26,58,107,0.85) 18px); }
.stripe-3 { background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px, rgba(13,31,60,0.9) 1px, rgba(13,31,60,0.9) 16px); }
.stripe-4 { background: repeating-linear-gradient(45deg, rgba(30,95,190,0.3) 0px, rgba(30,95,190,0.3) 1px, rgba(9,23,48,0.95) 1px, rgba(9,23,48,0.95) 22px); }
.stripe-5 { background: repeating-linear-gradient(-45deg, rgba(58,127,232,0.15) 0px, rgba(58,127,232,0.15) 1px, rgba(26,58,107,0.8) 1px, rgba(26,58,107,0.8) 14px); }

.photo-placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  pointer-events: none;
}
.photo-placeholder-label span {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,95,190,0.75);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-caption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  text-align: center;
  padding: 16px;
}

.galerie-footer { text-align: center; }
.btn-galerie {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  padding: 14px 36px;
  border-radius: 6px;
  transition: all 0.3s;
}
.btn-galerie:hover {
  border-color: var(--bright);
  background: rgba(58,127,232,0.15);
  color: var(--bright);
}

/* ===== STAFF ===== */
#staff {
  padding: var(--section-padding) 48px;
  background: var(--offwhite);
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.staff-card {
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(26,58,107,0.05);
  border: 1px solid var(--lightgrey);
  transition: transform 0.2s, box-shadow 0.2s;
}
.staff-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,58,107,0.1); }
.staff-role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--electric);
  margin-bottom: 6px;
}
.staff-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.3;
}
.staff-sep {
  color: var(--electric);
  font-weight: 400;
  margin: 0 4px;
}

/* ===== BUREAU CARDS (executive committee) ===== */
.bureau-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.bureau-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--offwhite) 100%);
  border: 1px solid var(--lightgrey);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.bureau-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26,58,107,0.12);
  border-color: var(--electric);
}
.bureau-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--electric), var(--bright));
  border-radius: 14px 14px 0 0;
}
.bureau-card.president {
  background: linear-gradient(135deg, var(--navy) 0%, var(--electric) 100%);
  color: var(--white);
  border-color: var(--electric);
}
.bureau-card.president::before {
  background: linear-gradient(90deg, #d4a017, #f4c440, #d4a017);
  height: 4px;
}
.bureau-card.president::after {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.1), transparent 70%);
  pointer-events: none;
}
.bureau-card-icon {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  background: rgba(30,95,190,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.bureau-card.president .bureau-card-icon {
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
}
.bureau-card-icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--electric);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bureau-card-icon svg.filled {
  fill: var(--electric);
  stroke: none;
}
.bureau-card.president .bureau-card-icon svg { stroke: #f4c440; }
.bureau-card.president .bureau-card-icon svg.filled { fill: #f4c440; stroke: none; }
.bureau-role {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.bureau-card.president .bureau-role { color: #f4c440; }
.bureau-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.15;
  position: relative;
  z-index: 2;
}
.bureau-card.president .bureau-name { color: var(--white); }
.bureau-subrole {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  font-style: italic;
  color: var(--draw);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(13,31,60,0.08);
  position: relative;
  z-index: 2;
}
.bureau-card.president .bureau-subrole {
  color: rgba(255,255,255,0.75);
  border-top-color: rgba(255,255,255,0.18);
}

.staff-section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--draw);
  margin: 36px 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.staff-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--lightgrey), transparent);
}

/* ===== MARQUEE PARTENAIRES (entre les sections) ===== */
.divider-marquee {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding: 22px 0;
  border-top: 1px solid var(--lightgrey);
  border-bottom: 1px solid var(--lightgrey);
}
.divider-marquee::before,
.divider-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.divider-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}
.divider-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}
.divider-marquee-label {
  position: absolute;
  top: 50%; left: 24px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--draw);
  background: var(--white);
  padding: 7px 16px;
  border: 1px solid var(--lightgrey);
  border-radius: 20px;
  z-index: 3;
  white-space: nowrap;
  pointer-events: none;
}
.divider-marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee-scroll 55s linear infinite;
  will-change: transform;
  padding-left: 180px; /* laisse passer le label sticky */
}
.divider-marquee:hover .divider-marquee-track { animation-play-state: paused; }
.divider-marquee-logo {
  flex-shrink: 0;
  width: 130px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.divider-marquee-logo:hover { opacity: 1; transform: scale(1.08); }
.divider-marquee-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .divider-marquee-track { animation: none; }
}
@media (max-width: 768px) {
  .divider-marquee { padding: 20px 0; }
  .divider-marquee-label { display: none; }
  .divider-marquee-track { gap: 40px; padding-left: 24px; animation-duration: 60s; }
  .divider-marquee-logo { width: 100px; height: 70px; }
}

/* ===== STADE BAND (encart compact navy minimaliste) ===== */
.stade-section {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 100%);
  overflow: hidden;
  isolation: isolate;
}
/* Pattern grain subtil + halo bleu electric côté droit (cohérent avec les autres sections navy) */
.stade-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}
.stade-section::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse 80% 60% at 80% 50%, rgba(58,127,232,0.16), transparent 70%);
  pointer-events: none;
}
.stade-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.stade-content { color: var(--white); }
.stade-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bright);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.stade-eyebrow-line {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
}
.stade-eyebrow span[data-lang]:not(.stade-eyebrow-line) { display: inline; }
.stade-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
}
.stade-title br { display: none; }  /* Plus de break — titre sur une ligne pour rester compact */
/* Méta : ligne horizontale fine, pas de bloc bordé */
.stade-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 14px 0 0;
  margin-bottom: 24px;
}
.stade-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-left: 2px solid rgba(58,127,232,0.5);
  padding-left: 12px;
}
.stade-meta-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.stade-meta-value {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  color: var(--white);
  font-weight: 500;
}
.stade-meta-value br { display: inline; }
.stade-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stade-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  border: 1px solid transparent;
}
.stade-btn.primary { background: var(--white); color: var(--navy); }
.stade-btn.primary:hover { background: var(--bright); color: var(--white); }
.stade-btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.stade-btn.ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.stade-btn-arrow { width: 16px; height: 1px; background: currentColor; position: relative; transition: width 0.25s; }
.stade-btn-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 5px; height: 5px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.stade-btn:hover .stade-btn-arrow { width: 22px; }

/* Logo : cercle blanc avec le logo navy, halo bleu electric autour */
.stade-logo-mark {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.stade-logo-mark::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58,127,232,0.25) 0%, transparent 60%);
  z-index: -1;
}
.stade-logo-mark img {
  position: relative;
  width: 70%;
  height: 70%;
  object-fit: contain;
}

@media (max-width: 900px) {
  .stade-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 24px;
    text-align: left;
  }
  .stade-logo-mark { width: 96px; height: 96px; }
  .stade-meta { gap: 18px; }
  .stade-section::after { display: none; }
}
@media (max-width: 560px) {
  .stade-meta { flex-direction: column; gap: 10px; }
  .stade-actions .stade-btn { flex: 1; justify-content: center; }
}

/* ===== FOOTER (3 colonnes légères) ===== */
footer { background: var(--dark); padding: 56px 48px 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 56px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-brand img { margin-bottom: 4px; }
.footer-desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
  max-width: 280px;
}
.footer-col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}
.footer-link {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--bright); }

@media (max-width: 900px) {
  footer { padding: 40px 24px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 28px; }
  .footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col-brand { grid-column: auto; }
}

/* Old grid layout (kept for backward compat — unused) */
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo-name { color: var(--white); margin-top: 12px; font-size: 16px; }
.footer-links h4,
.footer-social h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links ul li a {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links ul li a:hover { color: var(--white); }

.social-links { display: flex; gap: 12px; }
.social-btn {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.social-btn:hover { background: var(--electric); border-color: var(--electric); }
.social-btn svg { width: 18px; height: 18px; fill: var(--white); }

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--electric);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 20px;
  border-radius: 6px;
  transition: background 0.2s;
  margin-top: 8px;
}
.footer-cta:hover { background: var(--bright); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}
.footer-cookie-link {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.2);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.footer-cookie-link:hover {
  color: var(--bright);
  text-decoration-color: var(--bright);
}
.footer-credit {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.35);
}
.footer-credit strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-left: 4px;
}

/* ===== BOUTIQUE ===== */
#boutique {
  padding: var(--section-padding) 48px;
  background: linear-gradient(180deg, var(--offwhite) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}
#boutique::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(58,127,232,0.08), transparent 70%);
  pointer-events: none;
}

.boutique-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}
.boutique-cta-jako {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 14px 24px;
  border-radius: 999px;
  transition: all 0.25s;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.boutique-cta-jako:hover { background: var(--electric); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30,95,190,0.3); }
.boutique-cta-jako svg { width: 14px; height: 14px; }

.boutique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.boutique-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--lightgrey);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.boutique-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26,58,107,0.10);
}

.boutique-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.boutique-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(58,127,232,0.06), transparent 60%),
    linear-gradient(180deg, var(--white) 0%, var(--offwhite) 100%);
  pointer-events: none;
}
.boutique-card-photo {
  width: 92%;
  height: 92%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 8px 16px rgba(13,31,60,0.10));
}
.boutique-card:hover .boutique-card-photo { transform: scale(1.06); }

/* ESI logo badge over product photo */
.boutique-card-esi-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  padding: 5px;
  z-index: 4;
  box-shadow: 0 4px 16px rgba(13,31,60,0.18), 0 0 0 1px rgba(13,31,60,0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.boutique-card-esi-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.boutique-card:hover .boutique-card-esi-badge {
  transform: scale(1.08) rotate(-4deg);
}
.boutique-card-personalized {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 4;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--electric);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(30,95,190,0.3);
}
.boutique-card-personalized::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--win);
  box-shadow: 0 0 8px var(--win);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.boutique-card-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.boutique-card-brand {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 3;
}

.boutique-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.boutique-card-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.2;
}
.boutique-card-cat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--draw);
}
.boutique-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--lightgrey);
}
.boutique-card-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.boutique-card-price-from {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--draw);
}
.boutique-card-price-amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--electric);
  line-height: 1;
  letter-spacing: -0.02em;
}
.boutique-card-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  border: 0;
  cursor: pointer;
}
.boutique-card-btn:hover { background: var(--electric); transform: translateY(-1px); }
.boutique-card-btn svg { width: 12px; height: 12px; }

.boutique-footer {
  margin-top: 48px;
  padding: 28px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--lightgrey);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.boutique-footer-text {
  flex: 1;
  min-width: 240px;
}
.boutique-footer-text h4 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.boutique-footer-text p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  line-height: 1.5;
}

/* ===== GALLERY ALBUMS ===== */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}
.album-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.album-card:hover {
  transform: translateY(-3px);
  border-color: rgba(58,127,232,0.4);
  background: rgba(58,127,232,0.06);
}
.album-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.album-meta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.album-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.01em;
}
.album-vs {
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.05em;
  margin: 0 6px;
}
.album-result {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.album-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  color: var(--win);
  letter-spacing: -0.02em;
}
.album-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.album-tag.win { background: rgba(34,197,94,0.15); color: var(--win); }
.album-count {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 36px;
  color: rgba(58,127,232,0.85);
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: right;
  flex-shrink: 0;
}
.album-count span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}
.album-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.album-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: transform 0.25s, opacity 0.25s;
}
.album-preview img:hover { transform: scale(1.04); opacity: 0.9; }
.album-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(58,127,232,0.1);
  border: 1px solid rgba(58,127,232,0.25);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.album-cta:hover { background: var(--electric); border-color: var(--electric); transform: translateY(-1px); }
.album-cta svg { width: 14px; height: 14px; }

/* ===== UPLOAD PHOTOS (parents) ===== */
.upload-section {
  margin-top: 64px;
  padding: 40px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 100%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.upload-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(58,127,232,0.25), transparent 70%);
  pointer-events: none;
}
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .upload-section { padding: 28px 20px; margin-top: 40px; border-radius: 18px; }
  .upload-section::before { width: 240px; height: 240px; top: -60px; right: -60px; }
  .upload-grid { grid-template-columns: 1fr; gap: 24px; }
  .upload-form { padding: 22px 18px; }
  .upload-intro h3 { font-size: 28px; }
}
@media (max-width: 480px) {
  .upload-section { padding: 22px 14px; border-radius: 14px; }
  .upload-form { padding: 18px 14px; gap: 14px; }
  .upload-intro h3 { font-size: 24px; line-height: 1.1; }
}
.upload-intro h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.5vw, 40px);
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.upload-intro p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  margin-bottom: 18px;
}
.upload-intro ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.upload-intro li {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  padding: 8px 0 8px 24px;
  position: relative;
}
.upload-intro li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--win);
  font-weight: 700;
}

.upload-form {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.upload-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.upload-field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.upload-field label .req { color: var(--loss); }
.upload-field select,
.upload-field input[type="text"],
.upload-field input[type="email"] {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 14px;
  border: 1px solid var(--lightgrey);
  border-radius: 8px;
  background: var(--offwhite);
  color: var(--dark);
  transition: border-color 0.2s, background 0.2s;
}
.upload-field select:focus,
.upload-field input:focus {
  outline: none;
  border-color: var(--electric);
  background: var(--white);
}

/* Drop zone */
.upload-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  padding: 24px;
  background: var(--offwhite);
  border: 2px dashed rgba(30,95,190,0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.upload-dropzone:hover,
.upload-dropzone.drag {
  background: rgba(58,127,232,0.06);
  border-color: var(--electric);
}
.upload-dropzone svg {
  width: 36px; height: 36px;
  stroke: var(--electric);
  fill: none;
  stroke-width: 1.5;
}
.upload-dropzone-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.upload-dropzone-hint {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--draw);
}
.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.upload-preview-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--lightgrey);
}
.upload-preview-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.upload-preview-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  background: rgba(0,0,0,0.7);
  color: white;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.upload-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--dark);
  line-height: 1.4;
}
.upload-consent input { margin-top: 3px; }

.upload-submit {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--electric);
  color: var(--white);
  border: 0;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.upload-submit:hover { background: var(--bright); transform: translateY(-1px); }
.upload-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.upload-submit svg { width: 14px; height: 14px; }

.upload-success,
.upload-error {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  display: none;
}
.upload-success.show, .upload-error.show { display: block; }
.upload-success {
  background: rgba(34,197,94,0.1);
  color: #15803d;
  border-left: 3px solid var(--win);
}
.upload-error {
  background: rgba(239,68,68,0.1);
  color: #b91c1c;
  border-left: 3px solid var(--loss);
}

/* Per-category counters */
.upload-categories {
  margin-top: 32px;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  position: relative;
  z-index: 2;
}
.upload-categories-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.upload-categories-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.15), transparent);
}
.upload-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.upload-cat-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--white);
}
.upload-cat-pill-count {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 999px;
  color: rgba(255,255,255,0.7);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(13,31,60,0.97);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.lightbox.open { display: flex; }
.lightbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(13,31,60,0.85);
  flex-shrink: 0;
}
.lightbox-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.lightbox-counter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
.lightbox-close {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  padding: 0;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}
.lightbox-close:active { background: rgba(255,255,255,0.3); }

.lightbox-grid {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  align-content: start;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.lightbox-grid::-webkit-scrollbar { width: 8px; }
.lightbox-grid::-webkit-scrollbar-track { background: transparent; }
.lightbox-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.lightbox-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}
.lightbox-grid img:hover { transform: scale(1.03); }

.lightbox-viewer {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(0,0,0,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-viewer img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.05); }
.lightbox-nav.prev { left: 24px; padding-bottom: 4px; }
.lightbox-nav.next { right: 24px; padding-bottom: 4px; }
.lightbox-viewer-info {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  backdrop-filter: blur(8px);
}
.lightbox-viewer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.lightbox-viewer-close:hover { background: rgba(255,255,255,0.2); }

/* ===== CONVOCATIONS SECTION ===== */
#convocations {
  padding: 96px 48px;
  background: var(--white);
}
.convoc-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(30,95,190,0.08), rgba(58,127,232,0.04));
  border: 1px solid rgba(30,95,190,0.15);
  border-radius: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.convoc-banner.logged {
  background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(34,197,94,0.04));
  border-color: rgba(34,197,94,0.25);
}
.convoc-banner-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--navy);
  flex: 1;
  min-width: 240px;
}
.convoc-banner-text strong { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.convoc-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-pill {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-pill.primary { background: var(--electric); color: var(--white); }
.btn-pill.primary:hover { background: var(--bright); transform: translateY(-1px); }
.btn-pill.ghost { background: var(--white); color: var(--navy); border: 1px solid var(--lightgrey); }
.btn-pill.ghost:hover { border-color: var(--electric); color: var(--electric); }

.convoc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.convoc-card {
  background: var(--white);
  border: 1px solid var(--lightgrey);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.convoc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26,58,107,0.08);
  border-color: var(--electric);
}
.convoc-card.featured {
  border-left: 4px solid var(--electric);
}
.convoc-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.convoc-cat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--electric);
  margin-bottom: 4px;
}
.convoc-team {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1;
}
.convoc-loc-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.convoc-loc-tag.home { background: rgba(34,197,94,0.12); color: var(--win); }
.convoc-loc-tag.away { background: rgba(148,163,184,0.18); color: var(--draw); }
.convoc-match-line {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark);
  font-weight: 500;
}
.convoc-match-line strong { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--navy); }
.convoc-times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  background: var(--offwhite);
  padding: 14px 16px;
  border-radius: 8px;
}
.convoc-time-item .convoc-time-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--draw);
}
.convoc-time-item .convoc-time-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--navy);
  margin-top: 2px;
}
.convoc-players {
  position: relative;
}
.convoc-players-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--draw);
  margin-bottom: 8px;
}
.convoc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 4px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark);
}
.convoc-list li::before { content: '·'; color: var(--electric); margin-right: 6px; font-weight: 700; }
.convoc-lock {
  position: absolute;
  inset: -4px;
  background: linear-gradient(180deg, transparent, var(--white) 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 16px;
}
.convoc-lock-content {
  background: var(--white);
  border: 1px solid var(--lightgrey);
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(26,58,107,0.08);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark);
}
.convoc-lock-content button {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--electric);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
}
.convoc-extras {
  border-top: 1px solid var(--lightgrey);
  padding-top: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--draw);
}
.convoc-extras strong { color: var(--navy); font-weight: 600; }

/* ===== CLASSEMENT TABLES (modal) ===== */
.classement-section {
  margin-top: 48px;
}
.classement-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.classement-trigger {
  background: var(--white);
  border: 1px solid var(--lightgrey);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
  text-align: left;
  width: 100%;
}
.classement-trigger:hover { border-color: var(--electric); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26,58,107,0.08); }
.classement-trigger-pos {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: var(--electric);
  letter-spacing: -0.02em;
  line-height: 1;
}
.classement-trigger-pos sup { font-size: 12px; }
.classement-trigger-info { flex: 1; }
.classement-trigger-team {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 2px;
}
.classement-trigger-meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--draw);
}
.classement-trigger-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.classement-trigger:hover .classement-trigger-arrow { background: var(--electric); }
.classement-trigger:hover .classement-trigger-arrow svg path { stroke: var(--white); }
.classement-trigger-arrow svg { width: 14px; height: 14px; }
.classement-trigger-arrow svg path { stroke: var(--navy); transition: stroke 0.2s; }

/* ===== MODAL (shared) ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13,31,60,0.75);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.25s ease;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  animation: scaleIn 0.25s ease;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--lightgrey);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}
.modal-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.modal-subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--electric);
  margin-top: 2px;
}
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--offwhite);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--navy);
  transition: background 0.2s;
}
.modal-close:hover { background: var(--lightgrey); }
.modal-body { padding: 24px 28px 28px; }

/* Classement modal — last match + next match cards */
.classement-recap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.recap-card {
  position: relative;
  padding: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--lightgrey);
}
.recap-card.last { background: linear-gradient(135deg, rgba(13,31,60,0.04), rgba(255,255,255,1)); }
.recap-card.next { background: linear-gradient(135deg, rgba(30,95,190,0.06), rgba(255,255,255,1)); border-color: rgba(30,95,190,0.2); }
.recap-card.win { background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(255,255,255,1)); border-color: rgba(34,197,94,0.3); }
.recap-card.loss { background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(255,255,255,1)); border-color: rgba(239,68,68,0.25); }
.recap-card.draw { background: linear-gradient(135deg, rgba(148,163,184,0.10), rgba(255,255,255,1)); border-color: rgba(148,163,184,0.3); }

.recap-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--draw);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.recap-card.win .recap-label,
.recap-card.win .recap-result-badge { color: var(--win); }
.recap-card.loss .recap-label,
.recap-card.loss .recap-result-badge { color: var(--loss); }
.recap-card.draw .recap-label { color: var(--draw); }
.recap-card.next .recap-label { color: var(--electric); }

.recap-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.recap-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.recap-team img {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  padding: 3px;
  border: 1px solid var(--lightgrey);
  object-fit: contain;
}
.recap-team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.15;
  max-width: 90px;
}
.recap-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
}
.recap-vs {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--draw);
  letter-spacing: 0.05em;
}
.recap-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--lightgrey);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  color: var(--draw);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.recap-result-badge {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.classement-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 13px;
}
.classement-table th {
  text-align: left;
  padding: 8px 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--draw);
  border-bottom: 1px solid var(--lightgrey);
  position: sticky;
  top: 76px;
  background: var(--white);
}
.classement-table th.num, .classement-table td.num { text-align: center; font-variant-numeric: tabular-nums; }
.classement-table td {
  padding: 10px;
  border-bottom: 1px solid var(--offwhite);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--dark);
}
.classement-table td.team-name { color: var(--navy); font-weight: 700; }
.classement-table tr.is-esi {
  background: rgba(30,95,190,0.06);
  border-left: 3px solid var(--electric);
}
.classement-table tr.is-esi td { color: var(--navy); font-weight: 800; }
.classement-table .pos {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--navy);
}
.classement-table .pos-1 { color: #d4a017; }
.classement-table .pos-2 { color: #8a8a8a; }
.classement-table .pos-3 { color: #b97742; }
.classement-table .diff-pos { color: var(--win); }
.classement-table .diff-neg { color: var(--loss); }

/* ===== LOGIN MODAL ===== */
.login-modal { max-width: 440px; }
.login-tabs {
  display: flex;
  border-bottom: 1px solid var(--lightgrey);
  background: var(--offwhite);
}
.login-tab {
  flex: 1;
  padding: 14px;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--draw);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.login-tab.active { color: var(--navy); border-color: var(--electric); background: var(--white); }
.login-form { display: none; padding: 24px 28px 28px; flex-direction: column; gap: 14px; }
.login-form.active { display: flex; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--draw);
}
.login-field input {
  padding: 12px 14px;
  border: 1px solid var(--lightgrey);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--white);
  color: var(--dark);
  transition: border-color 0.2s;
}
.login-field input:focus { outline: 0; border-color: var(--electric); }
.login-helper {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--draw);
  line-height: 1.4;
}
.login-helper strong { color: var(--navy); }
.login-message {
  padding: 12px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  display: none;
}
.login-message.show { display: block; }
.login-message.success { background: rgba(34,197,94,0.1); color: var(--win); border: 1px solid rgba(34,197,94,0.3); }
.login-message.error { background: rgba(239,68,68,0.1); color: var(--loss); border: 1px solid rgba(239,68,68,0.3); }
.login-message.info { background: rgba(30,95,190,0.08); color: var(--electric); border: 1px solid rgba(30,95,190,0.2); }
.login-submit {
  margin-top: 4px;
  padding: 14px;
  background: var(--electric);
  color: var(--white);
  border: 0;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.login-submit:hover { background: var(--bright); }

.auth-badge {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
.auth-badge.visible { display: inline-flex; }
nav.scrolled .auth-badge { background: var(--offwhite); border-color: var(--lightgrey); }
.auth-badge:hover { background: rgba(255,255,255,0.18); }
nav.scrolled .auth-badge:hover { background: var(--lightgrey); }
.auth-badge-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--electric);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
}
.auth-badge-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
nav.scrolled .auth-badge-name { color: var(--navy); }

/* ===== AGENTS PANEL ===== */
.agents-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.agents-stat {
  background: var(--offwhite);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.agents-stat strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--navy);
  display: block;
  letter-spacing: -0.02em;
}
.agents-stat span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--draw);
}
.agents-stat#agentsHealth strong { color: var(--win); }

.agents-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.agent-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--lightgrey);
  border-radius: 10px;
  transition: border-color 0.2s;
}
.agent-row:hover { border-color: var(--electric); }
.agent-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
}
.agent-info-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.agent-info-desc {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--draw);
  margin-top: 2px;
}
.agent-schedule {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--electric);
  background: rgba(30,95,190,0.08);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.agent-status {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.agent-status.ok { background: var(--win); box-shadow: 0 0 0 4px rgba(34,197,94,0.15); }
.agent-status.pending { background: var(--draw); }
.agent-status.error { background: var(--loss); }

.agents-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--lightgrey);
  flex-wrap: wrap;
}
.agents-foot code {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  background: var(--offwhite);
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--navy);
}

/* ===== UPLOAD DROP ===== */
.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px 20px;
  border: 2px dashed var(--lightgrey);
  border-radius: 12px;
  background: var(--offwhite);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.upload-drop:hover, .upload-drop.dragover {
  border-color: var(--electric);
  background: rgba(30,95,190,0.06);
}
.upload-icon { font-size: 38px; }
.upload-text strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
}
.upload-text span {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--draw);
}
#uploadPreview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--lightgrey);
}

/* ===== CHATBOT WIDGET ===== */
.chatbot-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--electric);
  color: var(--white);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(30,95,190,0.4);
  transition: transform 0.25s, background 0.25s;
}
.chatbot-fab:hover { background: var(--bright); transform: translateY(-2px) scale(1.05); }
.chatbot-fab svg { width: 26px; height: 26px; fill: var(--white); }
.chatbot-fab .chatbot-fab-close { display: none; }
.chatbot-fab.open .chatbot-fab-icon { display: none; }
.chatbot-fab.open .chatbot-fab-close { display: block; font-size: 22px; line-height: 1; }
.chatbot-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--electric);
  opacity: 0.45;
  animation: chatPulse 2.4s ease-out infinite;
  pointer-events: none;
}
.chatbot-fab.open .chatbot-fab-pulse { animation: none; opacity: 0; }
@keyframes chatPulse {
  0% { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(1.6); opacity: 0; }
}

.chatbot-drawer {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 89;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 70vh;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--lightgrey);
  animation: chatSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chatbot-drawer.open { display: flex; }
@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.chatbot-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--navy), var(--electric));
  color: var(--white);
}
.chatbot-head-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--white);
  padding: 4px;
}
.chatbot-head-info h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chatbot-head-info p {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chatbot-head-info p::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--win);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.2);
}
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--offwhite);
}
.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
}
.chat-msg.bot {
  background: var(--white);
  color: var(--dark);
  align-self: flex-start;
  border: 1px solid var(--lightgrey);
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: var(--electric);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg a { color: var(--electric); text-decoration: underline; }
.chat-msg.user a { color: var(--white); }
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
  background: var(--offwhite);
}
.chat-suggestion {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--white);
  color: var(--electric);
  border: 1px solid var(--lightgrey);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.chat-suggestion:hover { background: var(--electric); color: var(--white); border-color: var(--electric); }
.chatbot-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: var(--white);
  border-top: 1px solid var(--lightgrey);
}
.chatbot-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--lightgrey);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  outline: 0;
}
.chatbot-input:focus { border-color: var(--electric); }
.chatbot-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--electric);
  border: 0;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chatbot-send:hover { background: var(--bright); }
.chatbot-send svg { width: 16px; height: 16px; fill: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  #hero { padding: 110px 40px 60px; gap: 16px; }
  .hero-fixtures { right: 32px; width: 280px; }
  .hero-title { font-size: clamp(54px, 7.5vw, 110px); }
}

@media (max-width: 1024px) {
  #hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 110px 32px 140px;
    align-items: start;
  }
  .hero-content { max-width: 600px; }
  .hero-player {
    position: absolute;
    right: -40px;
    bottom: 0;
    height: 70%;
    z-index: 1;
    opacity: 0.65;
  }
  .player-photo { max-height: 70vh; }
  .hero-fixtures {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: 360px;
    margin-top: 32px;
    z-index: 10;
  }
  .hero-social { right: 32px; bottom: 24px; }
  .resultats-grid { grid-template-columns: 1fr; }
  .season-card { position: static; }
}

/* Histoire — stack on tablet/mobile */
@media (max-width: 1024px) {
  .histoire-grid { grid-template-columns: 1fr; gap: 32px; }
  .histoire-carousel { aspect-ratio: 16 / 10; }
}

/* Tablette portrait + landscape */
@media (max-width: 900px) {
  #convocations, #resultats, #calendrier, #staff { padding: 80px 24px; }
  #galerie { padding: 80px 24px; }
  .convoc-grid, .team-grid, .albums-grid { gap: 14px; }
  .albums-grid { grid-template-columns: 1fr; }
  .album-preview { grid-template-columns: repeat(4, 1fr); }
  .lightbox-head { padding: 16px 20px; }
  .lightbox-title { font-size: 18px; }
  .lightbox-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); padding: 16px; gap: 6px; }
  .modal { max-height: 92vh; }
  .modal-body { padding: 20px; }
  .resultats-grid { gap: 28px; }
  .classement-table th, .classement-table td { padding: 6px 4px; font-size: 12px; }
  .classement-trigger { padding: 14px 16px; }
  .convoc-banner { flex-direction: column; align-items: flex-start; }
  .convoc-banner-actions { width: 100%; justify-content: stretch; }
  .convoc-banner-actions .btn-pill { flex: 1; justify-content: center; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links, .btn-join { display: none; }
  .hamburger { display: flex; }
  .nav-right { gap: 8px; }

  #hero { padding: 100px 20px 100px; min-height: 100svh; }
  /* Overlay plus marqué sur mobile pour la lisibilité du texte sur photo */
  #hero::before {
    background:
      linear-gradient(180deg, rgba(6,14,30,0.78) 0%, rgba(6,14,30,0.85) 100%),
      linear-gradient(105deg, rgba(6,14,30,0.5) 0%, rgba(6,14,30,0.3) 100%);
  }
  .hero-content { gap: 18px; }
  .hero-eyebrow { font-size: 10px; gap: 10px; }
  .hero-eyebrow::before { width: 24px; }
  .hero-title { font-size: clamp(46px, 13vw, 80px); }
  .hero-tagline { font-size: 14px; }
  .hero-actions { gap: 10px; }
  .hero-cta { font-size: 11px; padding: 12px 20px; }
  .hero-player { right: -80px; opacity: 0.4; }
  .hero-fixtures { gap: 8px; max-width: 100%; }
  .fix-pill { padding: 12px 14px; gap: 10px; }
  .fix-pill-logo { width: 32px; height: 32px; }
  .fix-pill-date-value { font-size: 12px; }
  .fix-pill-arrow { width: 30px; height: 30px; }
  .hero-social { right: 20px; bottom: 18px; gap: 8px; }
  .hero-social-link { width: 34px; height: 34px; }

  #calendrier, #resultats, #galerie, #staff { padding: 64px 20px; }
  .calendar-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .info-band-inner { grid-template-columns: 1fr 1fr; }
  .info-item:nth-child(2) { border-right: none; }
  .info-item:nth-child(3) { border-right: none; border-top: 1px solid rgba(255,255,255,0.08); }
  .info-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.08); }

  .galerie-grid { grid-template-columns: 1fr; grid-template-rows: 280px 200px 200px; height: auto; }
  .galerie-main { grid-row: auto; }

  .fixture-logo { width: 32px; height: 32px; }

  footer { padding: 48px 20px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }

  /* Convocations on mobile */
  .convoc-grid { grid-template-columns: 1fr; }
  .convoc-card { padding: 18px; }
  .convoc-team { font-size: 18px; }
  .convoc-times { grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px; }
  .convoc-time-value { font-size: 13px; }
  .convoc-list { grid-template-columns: 1fr 1fr; font-size: 12px; }
  .convoc-extras { font-size: 11px; gap: 10px; }

  /* Classements on mobile */
  .classement-cards { grid-template-columns: 1fr; }
  .classement-trigger-pos { font-size: 22px; }
  .classement-table { font-size: 11px; }
  .classement-table th, .classement-table td { padding: 6px 3px; }
  .classement-table th:nth-child(n+5), .classement-table td:nth-child(n+5) { display: none; }
  .classement-table th:nth-child(8), .classement-table td:nth-child(8) { display: table-cell; }

  /* Galerie on mobile */
  .album-card { padding: 18px; }
  .album-title { font-size: 22px; }
  .album-count { font-size: 28px; }
  .album-preview { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .lightbox-head { padding: 14px 16px; }
  .lightbox-title { font-size: 16px; }
  .lightbox-counter { font-size: 10px; }
  .lightbox-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); padding: 12px; gap: 4px; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 26px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox-viewer-close { top: 14px; right: 14px; }

  /* Chatbot on mobile */
  .chatbot-fab { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .chatbot-drawer { bottom: 80px; right: 16px; left: 16px; width: auto; max-width: none; max-height: 75vh; }

  /* Login modal on mobile */
  .login-modal { max-width: 100%; }

  /* Auth badge on mobile */
  .auth-badge .auth-badge-name { display: none; }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero-title { font-size: clamp(40px, 14vw, 64px); }
  .section-title { font-size: clamp(38px, 11vw, 60px); }
  .convoc-list { grid-template-columns: 1fr; }
  .convoc-times { grid-template-columns: 1fr; }
  .album-preview { grid-template-columns: repeat(2, 1fr); }
}

/* Notch / safe area */
@supports (padding: env(safe-area-inset-bottom)) {
  .chatbot-fab { bottom: max(24px, env(safe-area-inset-bottom)); }
  .chatbot-drawer { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ===========================================================
   RESPONSIVE CONSOLIDATION — couverture exhaustive
   - 320-375px : iPhone SE, Galaxy S8, vieux Android
   - 376-480px : iPhone standard
   - 481-640px : phablets, iPhone Pro Max
   - 641-768px : grands phones, petites tablettes
   - 769-1024px : tablettes (portrait)
   - 1025-1280px : tablettes paysage / petits laptops
   - 1281-1599px : desktops standards
   - 1600px+ : grands écrans / 4K
   ============================================================ */

/* === 1. Touch targets : 44×44 min partout (WCAG AAA) === */
@media (hover: none) and (pointer: coarse) {
  .burger-close, .lightbox-close, .hero-cta, .btn-pill,
  .nav-links a, .auth-badge, .lang-toggle,
  .team-card-link-badge, .map-btn, .stade-btn,
  .footer-social a, .hero-social-link {
    min-height: 44px;
    min-width: 44px;
  }
}

/* === 2. Très petits écrans (320-375px) iPhone SE etc. === */
@media (max-width: 375px) {
  body { font-size: 15px; }
  /* Hero */
  #hero { padding: 90px 16px 80px; }
  .hero-title { font-size: clamp(36px, 14vw, 56px); line-height: 0.9; }
  .hero-tagline { font-size: 13px; }
  .hero-cta { font-size: 10px; padding: 12px 16px; gap: 8px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: 0.22em; }
  /* Section globals */
  .section-title { font-size: clamp(34px, 12vw, 52px); }
  .section-eyebrow { font-size: 10px; letter-spacing: 0.2em; }
  /* Cards plus compactes */
  .match-card, .team-card { padding: 18px; }
  /* Stade section */
  .stade-inner { padding: 48px 16px; }
  .stade-title { font-size: clamp(32px, 12vw, 48px); }
  .stade-meta { gap: 12px; }
  .stade-meta-label { font-size: 9px; letter-spacing: 0.18em; }
  .stade-meta-value { font-size: 12px; }
  .stade-btn { font-size: 10px; padding: 14px 18px; }
  .stade-logo-mark { max-width: 180px; }
  /* Burger */
  .burger-panel { width: 100%; }
  .burger-title { font-size: 16px; }
  .burger-num { font-size: 9px; }
  /* Footer */
  footer { padding: 32px 16px 20px; }
  .footer-grid { gap: 24px; }
}

/* === 3. Mobile standard (376-480px) === */
@media (min-width: 376px) and (max-width: 480px) {
  #hero { padding: 100px 18px 80px; }
  .hero-title { font-size: clamp(42px, 13vw, 70px); }
  .stade-title { font-size: clamp(36px, 11vw, 56px); }
  .stade-meta { grid-template-columns: 1fr 1fr; }
  .stade-meta-item:last-child { grid-column: 1 / -1; }
}

/* === 4. Phablets / iPhone Pro Max (481-640px) === */
@media (min-width: 481px) and (max-width: 640px) {
  .stade-meta { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .galerie-grid { grid-template-columns: 1fr; }
}

/* === 5. Landscape mobile (orientation paysage, petite hauteur) === */
@media (orientation: landscape) and (max-height: 500px) {
  #hero { min-height: auto; padding: 80px 32px 60px; }
  .hero-title { font-size: clamp(36px, 7vh, 64px); }
  .hero-content { gap: 12px; }
  .stade-section { min-height: auto; }
  .stade-inner { padding: 56px 32px; }
  .map-canvas { height: 280px; }
}

/* === 6. Tablettes portrait (768-1024px) === */
@media (min-width: 769px) and (max-width: 1024px) {
  nav { padding: 0 28px; }
  .nav-links { gap: 24px; }
  .nav-links a { font-size: 12px; }
  .partners-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .stade-inner { padding: 80px 40px; gap: 40px; }
  .stade-title { font-size: clamp(40px, 5vw, 64px); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === 7. Petits laptops / tablettes paysage (1025-1280px) === */
@media (min-width: 1025px) and (max-width: 1280px) {
  nav { padding: 0 36px; }
  .partners-grid.compact { grid-template-columns: repeat(3, 1fr); }
}

/* === 8. Grands écrans (1600px+) === */
@media (min-width: 1600px) {
  .hero-content { max-width: 720px; }
  .map-inner, .stade-inner, .newsletter-inner { max-width: 1400px; }
  section.team-section { max-width: 1400px; }
}

/* === 9. Empêcher le débordement horizontal sur tous les contextes === */
html, body { overflow-x: hidden; max-width: 100vw; }
img, video { max-width: 100%; height: auto; }
table { max-width: 100%; }

/* === 10. Toujours afficher les images en mode print === */
@media print {
  nav, .burger-overlay, .chatbot-fab, .map-section, .stade-section { display: none !important; }
  #hero { background: var(--white) !important; color: var(--navy) !important; }
}

/* Reduced motion */
@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;
  }
}
