/* ═══════════════════════════════════════════════════════════════════
   HOME PAGE
   ═══════════════════════════════════════════════════════════════════ */

.text-accent { color: var(--accent); }

/* ── HERO ──────────────────────────────────────────────────────────── */
.home-hero {
  position       : relative;
  min-height     : calc(100vh - 64px);
  display        : flex;
  flex-direction : column;
  align-items    : center;
  justify-content: center;
  overflow       : hidden;
  padding        : 4rem 1.5rem 6rem;
}

/* Fond */
.home-hero-bg {
  position: absolute;
  inset   : 0;
  z-index : 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(88,101,242,.28) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 80%, rgba(52,211,153,.08) 0%, transparent 60%),
              var(--bg);
}

/* Grille décorative */
.hero-grid {
  position  : absolute;
  inset     : 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Halos */
.hero-glow {
  position     : absolute;
  border-radius: 50%;
  filter       : blur(80px);
  pointer-events: none;
}
.hero-glow-1 {
  width    : 600px;
  height   : 600px;
  top      : -200px;
  left     : 50%;
  transform: translateX(-50%);
  background: rgba(88,101,242,.15);
}
.hero-glow-2 {
  width    : 350px;
  height   : 350px;
  bottom   : 0;
  right    : 10%;
  background: rgba(52,211,153,.08);
}

/* Contenu hero */
.home-hero-inner { position: relative; z-index: 1; width: 100%; }

.hero-content {
  display       : flex;
  flex-direction: column;
  align-items   : center;
  text-align    : center;
  gap           : 1.25rem;
}

/* Badge eyebrow */
.hero-eyebrow {
  display      : inline-flex;
  align-items  : center;
  gap          : .55rem;
  padding      : .35rem 1rem;
  border-radius: 999px;
  background   : rgba(88,101,242,.12);
  border       : 1px solid rgba(88,101,242,.3);
  color        : #818cf8;
  font-size    : .82rem;
  font-weight  : 700;
  letter-spacing: .05em;
}
.hero-pulse {
  width        : 8px;
  height       : 8px;
  border-radius: 50%;
  background   : #34d399;
  box-shadow   : 0 0 0 0 rgba(52,211,153,.5);
  animation    : pulse 2s ease-in-out infinite;
  flex-shrink  : 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,.5); }
  50%       { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}

/* Logo hero */
.hero-logo {
  width    : 120px;
  height   : 120px;
  object-fit: contain;
  filter   : drop-shadow(0 0 40px rgba(88,101,242,.5));
  animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Titre */
.hero-title {
  font-size  : clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin     : 0;
}
.hero-title-accent {
  background             : linear-gradient(135deg, #818cf8 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip        : text;
}

/* Sous-titre */
.hero-sub {
  color    : rgba(255,255,255,.5);
  font-size: 1.05rem;
  max-width: 46rem;
  line-height: 1.65;
  margin   : 0;
}

/* CTA boutons */
.hero-cta { display: flex; gap: .85rem; flex-wrap: wrap; justify-content: center; }

.btn-hero {
  display      : inline-flex;
  align-items  : center;
  gap          : .55rem;
  padding      : .8rem 1.6rem;
  border-radius: calc(var(--radius) + 2px);
  font-size    : .95rem;
  font-weight  : 700;
  cursor       : pointer;
  border       : none;
  text-decoration: none;
  transition   : transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space  : nowrap;
}
.btn-hero:hover { transform: translateY(-2px); }

.btn-hero-primary {
  background: var(--accent);
  color     : #fff;
  box-shadow: 0 4px 20px rgba(88,101,242,.4);
}
.btn-hero-primary:hover {
  background: var(--accent-h);
  color     : #fff;
  box-shadow: 0 6px 28px rgba(88,101,242,.55);
}
.btn-hero-outline {
  background: rgba(255,255,255,.06);
  color     : var(--text);
  border    : 1px solid rgba(255,255,255,.14);
}
.btn-hero-outline:hover { background: rgba(255,255,255,.10); color: var(--text); }
.btn-hero-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* Stats dans le hero */
.hero-stats {
  display    : flex;
  align-items: center;
  gap        : 0;
  background : rgba(255,255,255,.04);
  border     : 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding    : 1rem 2rem;
  margin-top : .5rem;
  flex-wrap  : wrap;
  justify-content: center;
}
.hero-stat {
  display       : flex;
  flex-direction: column;
  align-items   : center;
  gap           : .2rem;
  padding       : 0 1.5rem;
}
.hero-stat-value { font-size: 1.8rem; font-weight: 900; color: var(--text); }
.hero-stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); }
.hero-stat-sep   { width: 1px; height: 40px; background: rgba(255,255,255,.1); }

/* Flèche scroll */
.hero-scroll-hint {
  position : absolute;
  bottom   : 1.5rem;
  left     : 50%;
  transform: translateX(-50%);
  color    : rgba(255,255,255,.2);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── BARRE LIVE QUEUE ──────────────────────────────────────────────── */
.queue-bar {
  background   : var(--bg-card);
  border-top   : 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding      : .85rem 0;
  transition   : border-color .3s ease;
}
.queue-bar.live-card-active {
  border-color: rgba(251,191,36,.35);
  background  : rgba(251,191,36,.04);
}

.queue-bar-inner {
  display        : flex;
  align-items    : center;
  gap            : 1.25rem;
  flex-wrap      : wrap;
}
.queue-bar-left   { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.queue-bar-label  { color: var(--text); }
.queue-bar-center { display: flex; align-items: center; gap: .3rem; font-size: .9rem; color: var(--text-muted); flex-shrink: 0; }
.queue-bar-center strong { color: var(--text); font-size: 1.05rem; font-weight: 800; }
.queue-bar-msg  { flex: 1; font-size: .85rem; color: var(--text-muted); min-width: 160px; }
.queue-bar-link { font-size: .82rem; color: var(--accent); font-weight: 600; white-space: nowrap; text-decoration: none; transition: opacity .15s; }
.queue-bar-link:hover { opacity: .75; }

/* Points de statut */
.queue-bar-dot {
  width        : 9px;
  height       : 9px;
  border-radius: 50%;
  flex-shrink  : 0;
}
.dot-active  { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,.6); animation: pulse 1.5s ease-in-out infinite; }
.dot-waiting { background: #818cf8; box-shadow: 0 0 6px rgba(129,140,248,.5); }
.dot-empty   { background: rgba(255,255,255,.2); }

/* Slots de file */
.queue-bar-slots { display: flex; gap: 4px; flex-shrink: 0; }
.queue-slot {
  width        : 18px;
  height       : 8px;
  border-radius: 3px;
  background   : rgba(255,255,255,.08);
  border       : 1px solid rgba(255,255,255,.1);
  transition   : background .3s ease;
}
.queue-slot.slot-filled {
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 0 6px rgba(88,101,242,.4);
}

/* ── SECTIONS ──────────────────────────────────────────────────────── */
.home-section {
  padding: 5rem 0;
}
.home-section-alt {
  background   : rgba(255,255,255,.015);
  border-top   : 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.section-label {
  font-size     : .72rem;
  font-weight   : 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color         : var(--accent);
  margin-bottom : .65rem;
}
.home-section-title {
  font-size    : clamp(1.7rem, 4vw, 2.4rem);
  font-weight  : 900;
  margin-bottom: .6rem;
  line-height  : 1.15;
}
.home-section-sub {
  color      : var(--text-muted);
  font-size  : 1rem;
  margin-bottom: 2.5rem;
  max-width  : 46rem;
}

/* ── ÉTAPES ────────────────────────────────────────────────────────── */
.steps-grid {
  display              : grid;
  grid-template-columns: repeat(4, 1fr);
  gap                  : 1rem;
  position             : relative;
}

/* Ligne connecteur entre étapes */
.steps-grid::before {
  content   : '';
  position  : absolute;
  top       : 3.2rem;
  left      : calc(12.5% + 1rem);
  right     : calc(12.5% + 1rem);
  height    : 1px;
  background: linear-gradient(90deg, transparent, rgba(88,101,242,.4) 20%, rgba(88,101,242,.4) 80%, transparent);
  pointer-events: none;
  z-index   : 0;
}

.step-card {
  position     : relative;
  z-index      : 1;
  background   : var(--bg-card);
  border       : 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding      : 1.75rem 1.25rem 1.5rem;
  text-align   : center;
  transition   : border-color .2s ease, transform .2s ease;
}
.step-card:hover {
  border-color: rgba(88,101,242,.4);
  transform   : translateY(-3px);
}

.step-num {
  font-size    : .72rem;
  font-weight  : 900;
  color        : var(--accent);
  letter-spacing: .1em;
  margin-bottom: .9rem;
  opacity      : .7;
}
.step-icon {
  font-size    : 2rem;
  margin-bottom: .85rem;
  line-height  : 1;
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.step-card p  { color: var(--text-muted); font-size: .875rem; line-height: 1.55; margin: 0; }
.step-card code {
  background   : rgba(129,140,248,.12);
  border       : 1px solid rgba(129,140,248,.25);
  color        : #818cf8;
  border-radius: 5px;
  padding      : .1rem .4rem;
  font-size    : .85em;
}

/* ── TOP JOUEURS ───────────────────────────────────────────────────── */
.top-list { display: flex; flex-direction: column; gap: .55rem; }

.top-row {
  display        : grid;
  grid-template-columns: 2.5rem 2.8rem 1fr auto auto auto;
  align-items    : center;
  gap            : 1rem;
  padding        : .9rem 1.25rem;
  background     : var(--bg-card);
  border         : 1px solid var(--border);
  border-radius  : calc(var(--radius) + 2px);
  text-decoration: none;
  color          : inherit;
  transition     : background .15s, transform .15s, border-color .15s;
}
.top-row:hover          { background: var(--bg-hover); transform: translateX(4px); }
.top-row-first          { border-color: rgba(251,191,36,.25); background: linear-gradient(to right, rgba(251,191,36,.05), transparent); }
.top-row-first:hover    { border-color: rgba(251,191,36,.4); }

.top-rank   { font-size: 1.3rem; text-align: center; }
.top-avatar {
  width        : 36px;
  height       : 36px;
  border-radius: 50%;
  object-fit   : cover;
  border       : 2px solid rgba(255,255,255,.1);
}
.top-info       { display: flex; flex-direction: column; gap: .1rem; overflow: hidden; }
.top-name       { font-size: .95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-sub        { font-size: .75rem; color: var(--text-muted); }
.top-sub-muted  { opacity: .5; }

.top-mmr        { display: flex; flex-direction: column; align-items: flex-end; gap: .05rem; }
.top-mmr-value  { font-size: 1.1rem; font-weight: 900; }
.top-mmr-label  { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }

.top-bar-wrap {
  position     : relative;
  width        : 80px;
  height       : 6px;
  background   : rgba(255,255,255,.06);
  border-radius: 99px;
  overflow     : hidden;
}
.top-bar-fill {
  position     : absolute;
  inset        : 0;
  right        : auto;
  border-radius: 99px;
  border       : 1px solid transparent;
}
.top-bar-label {
  display : none; /* visible via title/tooltip si besoin */
}

.top-arrow { color: rgba(255,255,255,.2); flex-shrink: 0; }

/* ── FEATURES ──────────────────────────────────────────────────────── */
.features-grid {
  display              : grid;
  grid-template-columns: repeat(3, 1fr);
  gap                  : 1.1rem;
}

.feature-card {
  background   : var(--bg-card);
  border       : 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding      : 1.75rem 1.5rem;
  transition   : border-color .2s ease, transform .2s ease;
}
.feature-card:hover {
  border-color: rgba(88,101,242,.35);
  transform   : translateY(-3px);
}

.feature-icon-wrap {
  width        : 52px;
  height       : 52px;
  border-radius: 14px;
  display      : flex;
  align-items  : center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.feature-icon-discord { background: rgba(88,101,242,.15); color: #818cf8;  }
.feature-icon-mmr     { background: rgba(52,211,153,.12); color: #34d399;  }
.feature-icon-stats   { background: rgba(251,191,36,.12); color: #fbbf24;  }
.feature-icon-riot    { background: rgba(239,68,68,.12);  color: #f87171;  }
.feature-icon-season  { background: rgba(168,85,247,.12); color: #c084fc;  }
.feature-icon-admin   { background: rgba(245,158,11,.12); color: #fbbf24;  }

.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .55rem; }
.feature-card p  { color: var(--text-muted); font-size: .875rem; line-height: 1.6; margin: 0; }

/* ── CTA FINAL ─────────────────────────────────────────────────────── */
.home-cta-section {
  padding  : 5rem 0;
  position : relative;
  overflow : hidden;
  background: linear-gradient(180deg, transparent 0%, rgba(88,101,242,.06) 50%, transparent 100%);
  border-top: 1px solid rgba(88,101,242,.12);
}
.home-cta-inner {
  position    : relative;
  text-align  : center;
  z-index     : 1;
}
.home-cta-glow {
  position     : absolute;
  width        : 500px;
  height       : 500px;
  border-radius: 50%;
  background   : rgba(88,101,242,.12);
  filter       : blur(80px);
  top          : 50%;
  left         : 50%;
  transform    : translate(-50%, -50%);
  pointer-events: none;
}
.home-cta-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 900; margin-bottom: .6rem; }
.home-cta-sub   { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.75rem; }

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .steps-grid    { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .home-hero { min-height: auto; padding: 3rem 1.5rem 4rem; }
  .hero-logo { width: 88px; height: 88px; }
  .hero-stats { padding: .75rem 1rem; }
  .hero-stat  { padding: 0 .85rem; }
  .hero-stat-value { font-size: 1.4rem; }
  .queue-bar-slots { display: none; }
  .top-row { grid-template-columns: 2.5rem 2.8rem 1fr auto auto; }
  .top-bar-wrap { display: none; }
}

@media (max-width: 640px) {
  .steps-grid    { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats    { flex-direction: column; gap: .6rem; }
  .hero-stat-sep { width: 60px; height: 1px; }
  .hero-cta      { flex-direction: column; align-items: stretch; }
  .top-row { grid-template-columns: 2.5rem 2.8rem 1fr auto; }
  .top-arrow { display: none; }
}
