/* Minimal placeholder to avoid 404; extend as needed */
:root {
  /* Deep blue elite football theme */
  --bg: #0a1320;         /* page background */
  --fg: #e9eef6;         /* main foreground */
  --muted: #b9c3d4;
  --brand-blue: #0d3b66; /* dark brand */
  --accent: #00a8ff;     /* primary accent */
  --accent-2: #4dd0ff;   /* secondary accent */
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.cta-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041016;
  border: 0;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
}

.cta-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
}

/* --- Enhanced UI/UX Styles --- */

/* Typography */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; letter-spacing: .2px; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 0 0 .5rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { color: var(--muted); line-height: 1.7; }

/* Navigation */
#main-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: transform .35s ease, background .35s ease; }
#main-nav.nav-hidden { transform: translateY(-100%); }
#main-nav .nav-container { 
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(9,18,35,.72), rgba(9,18,35,.46));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.nav-menu a { color: #eaeaf2; text-decoration: none; font-weight: 500; opacity: .9; }
.nav-menu a:hover { opacity: 1; color: #FFD54F; text-shadow: 0 0 8px rgba(255,213,79,.35), 0 0 14px rgba(255,215,0,.2); }
.nav-menu a:focus-visible {
  outline: 2px solid rgba(255,213,79,.6);
  outline-offset: 2px;
  border-radius: 4px;
  color: #FFD54F;
  text-shadow: 0 0 8px rgba(255,213,79,.45);
}
.nav-logo .logo-mini { font-weight: 800; letter-spacing: 1px; color: #fff; }
/* Brand logo sizing */
.brand-logo {
  height: 40px;
  width: auto;
  transition: opacity 0.3s ease;
}

.brand-logo:hover {
  opacity: 0.8;
}

.footer .brand-logo {
  height: 60px;
  margin-bottom: 1rem;
}

.nav-logo .brand-logo { height: 34px; width: auto; display: block; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
/* Header logo focus-visible ring */
.nav-logo .brand-logo:focus-visible {
  outline: 2px solid rgba(255,213,79,.6);
  outline-offset: 2px;
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(255,213,79,.18);
}
/* Active nav link for better visibility */
.nav-menu a.active {
  color: #FFD54F;
  text-shadow: 0 0 12px rgba(255,213,79,.45), 0 0 18px rgba(255,215,0,.25);
  position: relative;
}
.nav-menu a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: linear-gradient(90deg, #FFD54F, #FFC107);
  border-radius: 2px;
}

/* Section helpers */
section { padding: 72px 0; }
.section-header { text-align: center; margin-bottom: 28px; }
.section-header h2 { text-shadow: 0 6px 20px rgba(0,0,0,.35); }
.section-header p { max-width: 720px; margin: 8px auto 0; }

/* --- About section animated UX/UI --- */
.about-section .about-content { 
  display: grid; 
  grid-template-columns: 1.2fr .8fr; 
  gap: 28px; 
  align-items: start; 
}

.about-section .methodology-grid { 
  display: grid; 
  gap: 14px; 
  margin-top: 16px; 
}

.about-section .method-item {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(22,40,66,.45), rgba(15,28,48,.28));
  border: 1px solid rgba(255,255,255,.08);
  transition: transform 0.3s ease, 
              box-shadow 0.3s ease, 
              border-color 0.3s ease, 
              background 0.3s ease;
  overflow: hidden;
}

.about-section .method-item::before {
  content: ""; 
  position: absolute; 
  left: 6px; 
  top: 10px; 
  bottom: 10px; 
  width: 2px; 
  border-radius: 2px;
  background: linear-gradient(180deg, 
    rgba(255,213,79,0), 
    rgba(255,213,79,.6), 
    rgba(255,213,79,0)
  );
  z-index: 1;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.about-section .method-item::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255,213,79,0.5));
}

.about-section .method-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,.35);
  border-color: rgba(255,213,79,.25);
}

.about-section .method-item:hover::before {
  opacity: 0.9;
}

.about-section .method-item:hover::after {
  opacity: 1;
  transform: translateY(100%);
}

.about-section .method-item.in-view {
  transform: translateY(0);
  opacity: 1;
}

.about-section .method-item h4 { 
  margin: 0 0 4px; 
  position: relative;
  z-index: 3;
}

.about-section .method-icon { 
  width: 36px; 
  height: 36px; 
  display: grid; 
  place-items: center; 
  border-radius: 10px; 
  background: radial-gradient(
    60% 60% at 50% 45%, 
    rgba(255,213,79,.3), 
    rgba(255,255,255,0)
  );
  box-shadow: 0 6px 16px rgba(0,0,0,.25), 
              inset 0 0 0 1px rgba(255,213,79,.25);
  animation: floatGold 5s ease-in-out infinite;
  position: relative;
  z-index: 3;
}

.about-section .method-item:hover .method-icon { 
  box-shadow: 0 10px 22px rgba(0,0,0,.35), 
              inset 0 0 0 1px rgba(255,213,79,.35); 
  transform: scale(1.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-section .about-story > p { margin-bottom: 12px; }

/* Staggered reveal defaults */
.about-section .method-item { opacity: 0; transform: translateY(8px); }
.about-section .method-item.reveal-1.in-view { transition-delay: .05s; }
.about-section .method-item.reveal-2.in-view { transition-delay: .12s; }
.about-section .method-item.reveal-3.in-view { transition-delay: .2s; }

/* Stats showcase polish */
.about-section .stats-showcase { display: grid; gap: 12px; background: linear-gradient(180deg, rgba(22,40,66,.4), rgba(15,28,48,.26)); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.about-section .stat-item { display: grid; gap: 4px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.about-section .stat-item:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.3); border-color: rgba(255,213,79,.25); }
.about-section .stat-number { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.8rem; color: #fff; text-shadow: 0 6px 18px rgba(0,0,0,.35); }
.about-section .stat-label { color: #b9c3d4; text-transform: none; letter-spacing: .02em; }
.about-section .stat-number.gold { color: #FFD54F; text-shadow: 0 0 12px rgba(255,213,79,.35); }

/* About CTA */
.about-cta { margin-top: 14px; }
.about-cta .about-more { min-width: 180px; }

/* About visual micro-parallax prep */
.about-section .about-visual { will-change: transform; transform-style: preserve-3d; perspective: 800px; }
.about-section .about-visual .stats-showcase { transform: translateZ(20px); }

/* Keyframes */
@keyframes floatGold { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Shine animation moving along the vertical gold line */

@media (prefers-reduced-motion: reduce) {
  .about-section .method-item, .about-section .method-icon { animation: none !important; transition: none !important; }
}

/* Buttons */
.cta-primary, .cta-secondary { position: relative; transition: transform .15s ease, box-shadow .25s ease, background .25s ease; }
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(255, 213, 79, .25); }
.cta-secondary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255,213,79,.18); color: #FFD54F; border-color: rgba(255,213,79,.45); }
.cta-primary:active, .cta-secondary:active { transform: translateY(0); }
/* Emphasize CTAs for visibility */
.cta-primary { font-weight: 700; letter-spacing: .2px; }
.cta-primary:hover { filter: brightness(1.05); }
/* CTA focus and subtle gold outline */
.cta-primary:focus-visible, .cta-secondary:focus-visible { outline: 2px solid rgba(255,213,79,.6); outline-offset: 2px; box-shadow: 0 0 0 3px rgba(255,213,79,.18); }

/* --- Modal --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(6,12,20,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; z-index: 1000; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { width: min(720px, 92vw); max-height: 86vh; overflow: auto; background: linear-gradient(180deg, rgba(18,30,48,.95), rgba(10,18,32,.95)); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 20px; box-shadow: 0 24px 64px rgba(0,0,0,.45); transform: translateY(10px); transition: transform .25s ease; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal h3 { margin-top: 4px; margin-bottom: 10px; }
.modal-list { margin: 10px 0 14px; padding-left: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal-close { position: absolute; top: 8px; right: 12px; background: transparent; color: #fff; border: none; font-size: 28px; line-height: 1; cursor: pointer; padding: 4px; }
.cta-secondary:focus-visible { color: #FFD54F; border-color: rgba(255,213,79,.55); }
.cta-secondary { border-color: rgba(255,213,79,.25); }

/* Forms: gold focus ring */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], textarea, select {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--fg);
  border-radius: 10px;
  padding: 10px 12px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid rgba(255,213,79,.6);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(255,213,79,.18);
  border-color: rgba(255,213,79,.55);
}

/* Links focus visible global */
a:focus-visible { outline: 2px solid rgba(255,213,79,.6); outline-offset: 2px; }

/* Contact social links */
.social-links a { color: #cfd3dc; text-decoration: none; transition: color .2s ease, text-shadow .2s ease; }
.social-links a:hover { color: #FFD54F; text-shadow: 0 0 8px rgba(255,213,79,.35); }
.social-links a:focus-visible { outline: 2px solid rgba(255,213,79,.6); outline-offset: 2px; color: #FFD54F; text-shadow: 0 0 8px rgba(255,213,79,.45); border-radius: 4px; }

/* Cards & Surfaces */
.surface { background: linear-gradient(180deg, rgba(22,40,66,.35), rgba(15,28,48,.25));
  border: 1px solid rgba(255,255,255,.08); border-radius: 16px; }
.elev-1 { box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.elev-2 { box-shadow: 0 16px 40px rgba(0,0,0,.35); }

/* Top50 grid basics (progressively enhance later) */
.players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.player-card { position: relative; padding: 16px; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.player-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.35); border-color: rgba(106,255,193,.35); }
.player-card.locked { display: grid; grid-template-rows: auto 140px auto; place-items: center; text-align: center; }
.player-card .player-rank { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.12); color: #fff; padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.player-card .player-image { width: 100%; height: 140px; border-radius: 12px; background: radial-gradient(60% 60% at 50% 40%, rgba(0,229,255,.25), rgba(255,255,255,0) 70%); display: grid; place-items: center; border: 1px dashed rgba(255,255,255,.12); }
.player-card .player-info h3 { margin: 10px 0 4px; }
.player-card .player-info p { margin: 0; font-size: .95rem; opacity: .85; }

/* Countdown */
.countdown-container { margin-top: 20px; }
.countdown-3d { display: grid; grid-auto-flow: column; gap: 16px; align-items: end; perspective: 900px; }
.countdown-item { 
  background: linear-gradient(180deg, rgba(13,59,102,.55), rgba(7,22,41,.45));
  padding: 12px 16px; border-radius: 14px; 
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 16px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05), 0 0 28px rgba(255,215,0,.08);
  transform-style: preserve-3d;
  position: relative; overflow: hidden;
}
.countdown-number { 
  font-family: 'Playfair Display', serif; font-weight: 900; font-size: 2rem; line-height: 1;
  letter-spacing: .06em; color: #fff; text-shadow: 0 6px 24px rgba(0,0,0,.35);
  display: inline-block; will-change: transform; transform-origin: center top;
}
.countdown-label { font-size: .75rem; color: #b9c3d4; text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; display: block; }
.countdown-separator { 
  align-self: center; font-weight: 900; color: #FFD54F; opacity: .95;
  text-shadow: 0 0 10px rgba(255,213,79,.45), 0 0 18px rgba(255,215,0,.25);
}

/* Program timeline */
.program-section .program-timeline { position: relative; display: grid; gap: 14px; margin-top: 18px; }
.program-section .timeline-item {
  display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: start;
  background: linear-gradient(180deg, rgba(22,40,66,.35), rgba(15,28,48,.25));
  border: 1px solid rgba(255,255,255,.08); border-left: 3px solid rgba(255,213,79,.25);
  border-radius: 14px; padding: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.program-section .timeline-item:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0,0,0,.35); border-left-color: #FFD54F; background: linear-gradient(180deg, rgba(22,40,66,.45), rgba(15,28,48,.3)); }
.program-section .timeline-item:focus-visible {
  outline: 2px solid rgba(255,213,79,.6); outline-offset: 2px; border-left-color: #FFD54F;
  box-shadow: 0 0 0 3px rgba(255,213,79,.18), 0 16px 32px rgba(0,0,0,.35);
}
.program-section .timeline-time { font-weight: 800; color: #FFD54F; text-shadow: 0 0 10px rgba(255,213,79,.35); }
.program-section .timeline-content h3 { margin: 0 0 4px; }
.program-section .timeline-content p { margin: 0; color: var(--muted); }

/* Mini countdown (Top 50 reveal) */
.mini-countdown { display: inline-flex; gap: 10px; align-items: baseline; background: rgba(7,22,41,.45); border: 1px solid rgba(255,255,255,.08); padding: 8px 12px; border-radius: 12px; }
.mini-countdown span { font-weight: 800; color: #fff; }

/* Footer */
.footer { background: linear-gradient(180deg, rgba(10,19,32,1), rgba(10,19,32,.94)); border-top: 1px solid rgba(255,255,255,.08); padding: 40px 0; }
.footer .footer-content { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.footer .logo-text { font-weight: 900; font-size: 1.4rem; }
.footer .brand-logo.footer { height: 48px; width: auto; display: block; margin-bottom: 8px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.footer a { color: #cfd3dc; text-decoration: none; }
.footer a:hover { color: #FFD54F; text-shadow: 0 0 8px rgba(255,213,79,.35); }
.footer a:focus-visible {
  outline: 2px solid rgba(255,213,79,.6);
  outline-offset: 2px;
  color: #FFD54F;
  text-shadow: 0 0 8px rgba(255,213,79,.45);
  border-radius: 4px;
}
/* Stronger specificity for column lists: Navigation / Légal / Réseaux */
.footer .footer-links a:focus-visible {
  outline: 2px solid rgba(255,213,79,.7);
  outline-offset: 2px;
  color: #FFD54F;
  text-shadow: 0 0 8px rgba(255,213,79,.5);
  border-radius: 4px;
}
.footer .footer-links { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.footer .footer-column h4 { margin: 0 0 8px; }
.footer-bottom { text-align: center; margin-top: 20px; color: #a9afbb; }

/* Utilities */
.glass { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08); }

/* --- Tabs (reference-style) --- */
.tab-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 10px; margin-bottom: 16px; }
.tab { color: var(--muted); padding: 8px 12px; border-radius: 10px; cursor: pointer; transition: background .2s ease, color .2s ease; position: relative; }
.tab:hover { color: var(--fg); background: rgba(22,40,66,.35); }
.tab.active { color: #fff; background: linear-gradient(180deg, rgba(22,40,66,.55), rgba(15,28,48,.4)); }
.tab.active::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -11px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #FFD54F, #FFC107); box-shadow: 0 0 12px rgba(255,213,79,.35); }
.tab:focus-visible { outline: 2px solid rgba(255,213,79,.6); outline-offset: 2px; box-shadow: 0 0 0 3px rgba(255,213,79,.18); }

/* --- Stat badge chips --- */
.stat-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.stat-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: linear-gradient(180deg, rgba(22,40,66,.55), rgba(15,28,48,.35)); border: 1px solid rgba(255,255,255,.08); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.stat-badge .value { font-weight: 800; color: #FFD54F; text-shadow: 0 0 10px rgba(255,213,79,.35); }
.stat-badge .label { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* --- Stat panel (simple) --- */
.stat-panel { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); background: linear-gradient(180deg, rgba(22,40,66,.45), rgba(15,28,48,.3)); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 16px; }
.stat { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px; }
.stat .stat-title { font-size: .8rem; color: #b9c3d4; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.stat .stat-value { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.4rem; color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.chip:focus-visible { outline: 2px solid rgba(255,213,79,.6); outline-offset: 2px; box-shadow: 0 0 0 3px rgba(255,213,79,.18); }

/* Responsive */
@media (max-width: 768px) {
  .footer .footer-content { grid-template-columns: 1fr; }
  .footer .footer-links { grid-template-columns: repeat(2, minmax(0,1fr)); }
  section { padding: 56px 0; }
}

/* Visibility fallback: show animated elements before AOS initializes */
html:not(.aos-initialized) [data-aos] { opacity: 1 !important; transform: none !important; }

/* Countdown flip animation */
.flip-anim { animation: flipIn .45s ease; }
@keyframes flipIn {
  0% { transform: rotateX(90deg); opacity: .2; filter: drop-shadow(0 12px 24px rgba(0,0,0,.45)); }
  50% { transform: rotateX(-20deg); opacity: 1; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); }
  100% { transform: rotateX(0deg); filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
}
@media (prefers-reduced-motion: reduce) {
  .flip-anim { animation: none; }
}

/* Hinge line + lighting for mechanical look */
.countdown-item::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,213,79,.35), transparent); opacity: .75; pointer-events: none; }
.countdown-item::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 50% at 50% 0%, rgba(255,255,255,.06), transparent 60%); mix-blend-mode: screen; pointer-events: none; }
