/* ─────────────────────────────────────────
   Design System
────────────────────────────────────────── */
:root {
  --green:     #3ecf6c;
  --green-dk:  #28a355;
  --green-lt:  #e7faf0;
  --blue:      #5a9eff;
  --orange:    #ff8c42;
  --purple:    #a78bfa;
  --yellow:    #fbbf24;
  --teal:      #22d3ee;

  --bg:        #f5f7ff;
  --white:     #ffffff;
  --text:      #0d1b2a;
  --sub:       #475569;
  --muted:     #94a3b8;
  --border:    #e2e8f0;

  --hero-from: #eef3ff;
  --hero-to:   #f0fff6;

  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(13, 27, 42, .06);
  --shadow:    0 8px 28px rgba(13, 27, 42, .10);
  --shadow-lg: 0 24px 60px rgba(13, 27, 42, .16);

  /* Couleurs dynamiques selon la ligue (dashboard) */
  --league-a: rgba(62, 207, 108, .95);
  --league-b: rgba(90, 158, 255, .75);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fw-reg: 400;
  --fw-med: 500;
  --fw-bold: 700;
  --fw-black: 800;
}

/* ─────────────────────────────────────────
   Reset & Base
────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Pour les ancres avec la navbar fixe */
section { scroll-margin-top: 100px; }

/* Texte discret (utilisé dans plusieurs sections) */
.muted { color: var(--sub); }

/* ─────────────────────────────────────────
   Navbar
────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 24px;
  transition: background .25s, box-shadow .25s, padding .25s;
}
.nav--scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 12px 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: var(--fw-black);
  font-size: 1.15rem;
  color: var(--text);
}
.nav-logo {
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.nav-name { letter-spacing: -.3px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--sub);
  font-weight: var(--fw-med);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--text); background: rgba(0,0,0,.04); }

.btn-nav {
  display: inline-block;
  background: var(--text);
  color: var(--white);
  font-weight: var(--fw-bold);
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .9rem;
  transition: opacity .18s, transform .18s;
  white-space: nowrap;
}
.btn-nav:hover { opacity: .88; transform: translateY(-1px); }

/* ─────────────────────────────────────────
   Hero
────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  padding: 140px 24px 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 700px at 80% 30%, rgba(62,207,108,.14), transparent 60%),
    radial-gradient(600px 600px at 10% 70%, rgba(90,158,255,.12), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(62, 207, 108, .12);
  border: 1px solid rgba(62, 207, 108, .3);
  color: var(--green-dk);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: var(--fw-bold);
  margin-bottom: 20px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.4); }
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: var(--fw-black);
  line-height: 1.1;
  letter-spacing: -.5px;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--green-dk) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--sub);
  line-height: 1.7;
  max-width: 50ch;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--white);
  font-weight: var(--fw-bold);
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .97rem;
  transition: opacity .18s, transform .18s, box-shadow .18s;
  box-shadow: 0 4px 18px rgba(13,27,42,.25);
}
.btn-primary:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(13,27,42,.3); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--text);
  font-weight: var(--fw-bold);
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .97rem;
  border: 1.5px solid var(--border);
  transition: border-color .18s, transform .18s, box-shadow .18s;
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: #c8d2e0; transform: translateY(-2px); box-shadow: var(--shadow); }

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sub);
  font-size: .9rem;
}
.stars { color: #fbbf24; font-size: 1.1rem; letter-spacing: 2px; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone-wrap {
  position: relative;
  width: min(360px, 100%);
}
.phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(62,207,108,.25) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.phone-img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.8);
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 60px; }

/* ─────────────────────────────────────────
   Stats Bar
────────────────────────────────────────── */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--border); }
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-val { font-size: 1.6rem; font-weight: var(--fw-black); color: var(--text); letter-spacing: -.5px; }
.stat-lbl { font-size: .85rem; color: var(--muted); font-weight: var(--fw-med); margin-top: 2px; }
.stat-sep { width: 1px; height: 40px; background: var(--border); }

/* ─────────────────────────────────────────
   Shared Section styles
────────────────────────────────────────── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.section-inner--narrow { max-width: 780px; }

.section-label {
  display: inline-block;
  background: var(--green-lt);
  color: var(--green-dk);
  font-weight: var(--fw-bold);
  font-size: .82rem;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-inner h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: var(--fw-black);
  letter-spacing: -.4px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--sub);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 auto 44px;
}

/* ─────────────────────────────────────────
   Features
────────────────────────────────────────── */
.features { padding: 96px 0; background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
.feat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform .22s, box-shadow .22s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat-icon {
  width: 50px; height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.feat-icon svg { flex-shrink: 0; }
.feat-icon--green  { background: rgba(62, 207, 108, .12); color: var(--green-dk); }
.feat-icon--orange { background: rgba(255, 140, 66, .12); color: var(--orange); }
.feat-icon--blue   { background: rgba(90, 158, 255, .12); color: var(--blue); }
.feat-icon--purple { background: rgba(167,139,250,.12);   color: var(--purple); }
.feat-icon--yellow { background: rgba(251,191, 36,.12);   color: #d97706; }
.feat-icon--teal   { background: rgba( 34,211,238,.12);   color: #0891b2; }

.feat-card h3 { font-size: 1rem; font-weight: var(--fw-bold); margin-bottom: 8px; }
.feat-card p  { font-size: .92rem; color: var(--sub); line-height: 1.65; }

/* ─────────────────────────────────────────
   Levels — ticker infini
────────────────────────────────────────── */
.levels {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, var(--white) 0%, #f0fff6 100%);
  overflow: hidden;
}

/* Wrapper du ticker avec masques latéraux */
.levels-ticker {
  position: relative;
  margin-top: 0;
  overflow: hidden;
}

.ticker-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.ticker-fade--left {
  left: 0;
  background: linear-gradient(to right, #f0fff6 0%, transparent 100%);
}
.ticker-fade--right {
  right: 0;
  background: linear-gradient(to left, #f0fff6 0%, transparent 100%);
}

/* La piste qui défile */
.ticker-track {
  display: flex;
  gap: 14px;
  padding: 16px 0 20px;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Cartes de niveau */
.level-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 14px 14px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1.5px solid var(--border);
  min-width: 104px;
  flex-shrink: 0;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  cursor: default;
}
.level-card:hover {
  transform: translateY(-8px) scale(1.06);
  box-shadow: var(--shadow);
  border-color: rgba(62, 207, 108, .45);
  z-index: 2;
}
.level-card--max {
  background: linear-gradient(145deg, #fff9e6, #fffdf0);
  border-color: rgba(251, 191, 36, .4);
}
.level-card--max:hover { border-color: var(--yellow); box-shadow: 0 8px 28px rgba(251,191,36,.2); }

.level-badge-wrap {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.level-badge-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.12));
  transition: filter .22s, transform .22s;
}
.level-card:hover .level-badge-wrap img {
  filter: drop-shadow(0 6px 16px rgba(62,207,108,.35));
  transform: scale(1.1);
}
.level-card--max:hover .level-badge-wrap img {
  filter: drop-shadow(0 6px 16px rgba(251,191,36,.45));
}
.level-badge-wrap--special img {
  filter: drop-shadow(0 4px 10px rgba(251,191,36,.3));
}

.level-num {
  font-size: .8rem;
  font-weight: var(--fw-black);
  color: var(--text);
  letter-spacing: -.2px;
}
.level-steps {
  font-size: .71rem;
  color: var(--muted);
  font-weight: var(--fw-med);
  text-align: center;
  line-height: 1.3;
}
.level-steps--max {
  color: #d97706;
  font-weight: var(--fw-bold);
}

/* ─────────────────────────────────────────
   Leagues
────────────────────────────────────────── */
.leagues {
  padding: 96px 0 80px;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.leagues-grid {
  max-width: 1100px;
  margin: 26px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.league-card {
  background: rgba(255,255,255,.9);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.league-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(62, 207, 108, .35);
}

.league-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(13, 27, 42, .10));
}

.league-name {
  font-weight: var(--fw-black);
  letter-spacing: -.3px;
  color: var(--text);
  font-size: .98rem;
}

.league-desc {
  color: var(--sub);
  font-size: .88rem;
  line-height: 1.35;
}

.league-card--gold,
.league-card:nth-child(4) {
  border-color: rgba(251, 191, 36, .45);
}

.league-card:nth-child(4) img {
  filter: drop-shadow(0 10px 22px rgba(217, 119, 6, .25));
}

/* ─────────────────────────────────────────
   Screens Showcase
────────────────────────────────────────── */
.screens {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, var(--bg) 0%, #eef3ff 100%);
  overflow: hidden;
}
.screens-track {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 16px 24px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.screen-item {
  flex: 0 0 auto;
  width: min(260px, 80vw);
  text-align: center;
}
.screen-item img {
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.9);
  transition: transform .3s;
  width: 100%;
}
.screen-item:hover img { transform: translateY(-6px) scale(1.02); }
.screen-item:nth-child(even) { margin-top: 32px; }
.screen-cap {
  margin-top: 14px;
  font-size: .88rem;
  color: var(--muted);
  font-weight: var(--fw-med);
}

/* ─────────────────────────────────────────
   Reviews
────────────────────────────────────────── */
.reviews { padding: 96px 0; background: var(--white); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .22s, box-shadow .22s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review-stars { color: var(--yellow); font-size: 1rem; letter-spacing: 3px; }
.review-card p { font-size: .95rem; color: var(--sub); line-height: 1.7; flex: 1; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-black);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.review-name { font-weight: var(--fw-bold); font-size: .92rem; }
.review-meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* ─────────────────────────────────────────
   CTA Section
────────────────────────────────────────── */
.cta-section {
  padding: 96px 24px;
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a2a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 600px at 20% 50%, rgba(62,207,108,.15), transparent 60%),
    radial-gradient(600px 600px at 80% 50%, rgba(90,158,255,.10), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.cta-logo {
  width: 72px; height: 72px;
  border-radius: 22px;
  margin: 0 auto 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.cta-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: var(--fw-black);
  color: #fff;
  letter-spacing: -.4px;
  margin-bottom: 14px;
}
.cta-inner p {
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.18);
  color: #fff;
  padding: 14px 24px;
  border-radius: 16px;
  text-decoration: none;
  transition: background .18s, transform .18s;
  min-width: 180px;
}
.btn-store:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.store-sub { font-size: .75rem; opacity: .65; margin-bottom: 2px; }
.store-name { font-weight: var(--fw-black); font-size: 1.05rem; }

/* ─────────────────────────────────────────
   Privacy
────────────────────────────────────────── */
.privacy-section { padding: 96px 0; background: var(--bg); }
.privacy-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
  margin-top: 0;
}
.privacy-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.priv-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.privacy-item strong { display: block; font-weight: var(--fw-bold); margin-bottom: 6px; }
.privacy-item p { font-size: .9rem; color: var(--sub); line-height: 1.6; margin: 0; }
.privacy-item a { color: var(--green-dk); font-weight: var(--fw-med); }
.privacy-note {
  margin-top: 24px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .88rem;
  color: #92400e;
  line-height: 1.6;
}
.privacy-note code { background: rgba(0,0,0,.06); padding: 2px 6px; border-radius: 6px; }

/* ─────────────────────────────────────────
   Footer
────────────────────────────────────────── */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--fw-black);
  font-size: .95rem;
}
.footer-logo { border-radius: 10px; object-fit: cover; }
.footer-links { display: flex; gap: 18px; margin-left: auto; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: .88rem; transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: .85rem; }

/* ─────────────────────────────────────────
   Legal Notice page
────────────────────────────────────────── */
.legal-shell{
  max-width: 980px;
  margin: 0 auto;
  padding: 140px 24px 50px;
  text-align: left;
}
.legal-header{ margin-bottom: 18px; }
.legal-title{
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: var(--fw-black);
  letter-spacing: -.5px;
  margin-bottom: 10px;
}
.legal-intro{
  color: var(--sub);
  line-height: 1.7;
  font-size: 1.05rem;
  max-width: 70ch;
}
.legal-block{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 22px 22px;
}
.legal-block h2{
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
}
.legal-block h2:first-child{ margin-top: 0; }
.legal-block p{
  color: var(--sub);
  line-height: 1.8;
  margin: 10px 0;
}
.legal-block ul{
  margin: 12px 0 6px 18px;
  padding: 0;
}
.legal-block li{
  color: var(--sub);
  line-height: 1.75;
  margin: 6px 0;
}
.legal-block a{ color: var(--green-dk); font-weight: var(--fw-med); text-decoration: none; }
.legal-meta{
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(226,232,240,.95);
  color: var(--sub);
  font-weight: var(--fw-med);
}

/* ─────────────────────────────────────────
   Responsive
────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-sub { margin: 0 auto 28px; }
  .hero-actions { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-wrap { width: min(280px, 70vw); }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid  { grid-template-columns: 1fr 1fr; }
  .privacy-cards { grid-template-columns: 1fr; }
  .section-inner h2 { font-size: 1.9rem; }

  .ticker-fade { width: 60px; }

  .leagues-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .league-selector-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .reviews-grid  { grid-template-columns: 1fr; }
  .stat-sep { display: none; }
  .hero { padding: 100px 20px 80px; }
  .features, .levels, .screens, .reviews, .cta-section, .privacy-section { padding: 60px 0; }
  .screens-track { flex-direction: column; align-items: center; }
  .screen-item:nth-child(even) { margin-top: 0; }
  .footer-links { margin-left: 0; }
  .footer-copy { width: 100%; }

  .ticker-fade { width: 40px; }
  .level-card { min-width: 88px; padding: 14px 10px 10px; }
  .level-badge-wrap { width: 48px; height: 48px; }
  .level-num { font-size: .72rem; }
  .level-steps { font-size: .64rem; }

  .ticker-track { animation-duration: 45s; gap: 10px; }

  .leagues-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .league-card img { width: 62px; height: 62px; }

  .league-selector-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .league-selector .league-card img{
    width: 50px;
    height: 50px;
  }
}

/* ─────────────────────────────────────────
   Dashboard compétitif (faux)
────────────────────────────────────────── */
.dashboard {
  padding: 96px 0 80px;
  background: #f6f7ff;
}

.dashboard-inner {
  max-width: 1100px;
  margin: 26px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.dash-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

/* League selector inside dashboard */
.league-selector{
  margin: 12px 0 16px;
}
.league-selector-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.league-selector .league-card{
  cursor: pointer;
  min-height: auto;
  padding: 10px 8px 8px;
  border-radius: 16px;
}
.league-selector .league-card img{
  width: 52px;
  height: 52px;
}
.league-selector .league-desc{
  display: none;
}

/* Podium */
.podium{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(245,247,255,.65);
  border: 1px solid rgba(226,232,240,.85);
}
.podium-slot{
  flex: 1;
  text-align:center;
  min-width: 0;
  position: relative;
}
.podium-slot--1{
  transform: translateY(-10px) scale(1.03);
}
.podium-medal{
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 16px;
  background: rgba(251, 191, 36, .18);
  border: 1px solid rgba(251, 191, 36, .45);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: var(--fw-black);
  color: #9a5b00;
  box-shadow: 0 18px 40px rgba(154,91,0,.12);
}
.podium-medal--1{
  background: linear-gradient(145deg, rgba(251,191,36,.25), rgba(62,207,108,.12));
  border-color: rgba(251,191,36,.75);
  color: #b45309;
}
.podium-slot--2 .podium-medal,
.podium-slot--3 .podium-medal{
  background: rgba(2,6,23,.04);
  border-color: rgba(226,232,240,.9);
  color: var(--sub);
}
.podium-name{
  font-weight: var(--fw-bold);
  font-size: .95rem;
}
.podium-xp{
  margin-top: 4px;
  font-weight: var(--fw-black);
  font-size: .85rem;
  color: var(--text);
}

/* Affichage podium selon la ligue */
.dashboard--league-poussin { --league-a: rgba(70, 208, 120, .95); --league-b: rgba(90, 158, 255, .65); }
.dashboard--league-bronze  { --league-a: rgba(255, 154, 82, .95); --league-b: rgba(90, 158, 255, .45); }
.dashboard--league-argent  { --league-a: rgba(90, 158, 255, .9); --league-b: rgba(34, 211, 238, .6); }
.dashboard--league-or      { --league-a: rgba(251,191,36,.95); --league-b: rgba(62,207,108,.55); }
.dashboard--league-diamant { --league-a: rgba(167,139,250,.95); --league-b: rgba(34,211,238,.6); }

/* Active state ligue */
.league-card--active{
  border-color: rgba(62,207,108,.45) !important;
  box-shadow: 0 20px 55px rgba(62,207,108,.10);
  transform: translateY(-6px);
}

.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dash-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: rgba(62, 207, 108, .12);
  border: 1px solid rgba(62, 207, 108, .25);
  color: var(--green-dk);
  font-weight: var(--fw-bold);
  font-size: .78rem;
  padding: 6px 12px;
  border-radius: 999px;
}

.dash-badge--blue {
  background: rgba(90, 158, 255, .12);
  border-color: rgba(90, 158, 255, .25);
  color: #2f6ee8;
}

.dash-updated {
  color: var(--sub);
  font-weight: var(--fw-med);
  font-size: .9rem;
}

.leaderboard {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lb-row {
  display: grid;
  grid-template-columns: 34px 1fr 90px 120px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, .7);
  background: rgba(245, 247, 255, .6);
}

.lb-row--you {
  border-color: rgba(62, 207, 108, .35);
  background: rgba(62, 207, 108, .08);
}

.lb-rank {
  font-weight: var(--fw-black);
  color: var(--sub);
}

.lb-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-black);
  color: #0b1220;
  box-shadow: 0 12px 24px rgba(13, 27, 42, .08);
}

.lb-text { min-width: 0; }
.lb-name { font-weight: var(--fw-bold); font-size: .95rem; }
.lb-sub { font-size: .78rem; margin-top: 2px; }

.lb-value {
  justify-self: end;
  font-weight: var(--fw-black);
  color: var(--text);
}

.lb-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, .06);
  overflow: hidden;
}
.lb-progress-fill {
  height: 100%;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--league-a), var(--league-b));
  transition: width .6s ease;
}

.dash-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(226, 232, 240, .95);
  font-weight: var(--fw-med);
  font-size: .9rem;
}

.challenge-card {
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: var(--radius-lg);
  background: rgba(245, 247, 255, .7);
  padding: 14px;
  margin-top: 10px;
}

.challenge-card--mini { margin-top: 12px; background: rgba(255, 255, 255, .75); }

.challenge-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.challenge-label { font-weight: var(--fw-bold); color: var(--text); }
.challenge-value { font-weight: var(--fw-black); }

.bar {
  height: 12px;
  background: rgba(2, 6, 23, .06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--league-a), var(--league-b));
  transition: width .7s ease;
}

.challenge-sub { margin-top: 8px; font-size: .9rem; }

.sparkline {
  height: 44px;
  margin-top: 10px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(62,207,108,.15), rgba(90,158,255,.10));
  position: relative;
  overflow: hidden;
}
.sparkline::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 10px, rgba(2,6,23,.04) 10px 11px);
}

.dash-hint {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(226, 232, 240, .95);
  font-size: .9rem;
}

@media (max-width: 980px) {
  .dashboard-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dash-panel { padding: 14px; border-radius: 22px; }
  .lb-row { grid-template-columns: 34px 1fr 90px; grid-auto-rows: auto; }
  .lb-progress { grid-column: 2 / -1; }

  .podium { gap: 8px; padding: 10px 10px; }
  .podium-medal { width: 38px; height: 38px; }
}
