/* ============ NAV ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--surface-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-violet);
  flex-wrap: wrap;
  gap: 12px;
  row-gap: 8px;
}
.site-nav.site-nav--fixed { position: fixed; left: 0; right: 0; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, oklch(0.85 0.16 200), oklch(0.55 0.18 300));
  box-shadow: 0 0 20px oklch(0.7 0.18 260 / 0.7);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--bg-2);
  flex-shrink: 0;
}
.nav-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: white; letter-spacing: .5px; }
.nav-title-accent { color: var(--c-cyan); }

.nav-burger {
  display: none;
  background: none; border: 1px solid var(--border-soft); border-radius: 10px;
  width: 40px; height: 40px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-burger span { width: 18px; height: 2px; background: white; border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-links { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.nav-link { color: white; text-decoration: none; font-weight: 600; font-size: 13.5px; opacity: .8; white-space: nowrap; }
.nav-link:hover { opacity: 1; }
.nav-link.is-active { opacity: 1; font-weight: 700; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px;
  cursor: pointer; text-decoration: none; border: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn-join {
  background: oklch(0.22 0.05 285 / 0.6);
  border: 1px solid oklch(0.5 0.05 280 / 0.5);
  color: white; padding: 8px 17px; font-size: 13.5px;
}
.btn-join:hover { background: oklch(0.28 0.06 285 / 0.8); border-color: oklch(0.7 0.1 280 / 0.7); }

.btn-shop {
  background: linear-gradient(135deg, var(--c-violet-2), var(--c-magenta-2));
  color: white; padding: 8px 19px; font-weight: 700; font-size: 13.5px;
  box-shadow: 0 4px 20px oklch(0.65 0.2 330 / 0.6), 0 0 0 1px oklch(0.85 0.16 300 / 0.4) inset;
}
.btn-shop:hover { transform: translateY(-2px); box-shadow: 0 8px 28px oklch(0.65 0.2 330 / 0.75), 0 0 0 1px oklch(0.9 0.16 300 / 0.5) inset; }

.btn-cta {
  gap: 10px;
  background: linear-gradient(135deg, oklch(0.7 0.19 300), oklch(0.62 0.2 340));
  color: white; padding: 17px 30px; font-family: var(--font-display); font-weight: 600; font-size: 17px;
  box-shadow: 0 8px 30px oklch(0.65 0.2 320 / 0.55);
}
.btn-outline-glow {
  gap: 10px;
  background: oklch(0.3 0.1 285 / 0.6);
  border: 1px solid oklch(0.75 0.15 200 / 0.5);
  color: white; padding: 17px 28px; font-family: var(--font-display); font-weight: 600; font-size: 17px;
  box-shadow: 0 0 20px oklch(0.75 0.15 200 / 0.2);
}
.btn-pill-soft {
  background: oklch(0.3 0.1 285 / 0.6);
  border: 1px solid oklch(0.75 0.15 200 / 0.5);
  color: white; padding: 13px 26px; font-family: var(--font-display); font-weight: 600; font-size: 15px;
}
.btn-gold {
  background: linear-gradient(135deg, var(--c-gold), oklch(0.65 0.2 330));
  color: white; padding: 13px 24px; font-family: var(--font-display); font-weight: 600; font-size: 15px;
}
.btn-discord {
  background: linear-gradient(135deg, oklch(0.65 0.15 280), oklch(0.55 0.16 300));
  color: white; padding: 14px 26px; font-family: var(--font-display); font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 24px oklch(0.6 0.15 290 / 0.5);
}
.btn-support {
  background: linear-gradient(135deg, var(--c-gold), oklch(0.72 0.17 45));
  color: #2a1500; padding: 16px 32px; font-family: var(--font-display); font-weight: 600; font-size: 16px;
  box-shadow: 0 8px 26px oklch(0.72 0.17 45 / 0.45);
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============ MODAL (Rejoindre) ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: oklch(0.05 0.02 280 / 0.75);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  width: 100%; max-width: 480px;
  background: oklch(0.13 0.05 285 / 0.98);
  border: 1px solid var(--border-violet);
  border-radius: 22px; padding: 32px; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: popIn .25s var(--ease);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none; color: oklch(0.85 0.02 280 / 0.6);
  font-size: 20px; cursor: pointer; line-height: 1;
}
.modal-title { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: white; margin: 0 0 6px; }
.modal-subtitle { color: oklch(0.85 0.02 280 / 0.65); font-size: 13.5px; margin: 0 0 22px; }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.platform-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: oklch(0.2 0.06 285 / 0.6);
  border: 1.5px solid var(--border-soft);
  color: white; padding: 16px 10px; border-radius: var(--radius-card-sm);
  font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.platform-btn.is-active { background: oklch(0.78 0.16 200 / 0.2); border-color: oklch(0.78 0.16 200 / 0.6); }
.platform-btn-icon { font-size: 24px; }
.platform-badge {
  position: absolute; top: -9px; right: 8px;
  background: var(--c-gold); color: #2a1500;
  font-size: 9.5px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill);
}
.platform-info {
  background: oklch(0.2 0.06 285 / 0.7);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card-sm); padding: 18px 20px;
}
.platform-info-label {
  color: oklch(0.85 0.02 280 / 0.5); font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px;
}
.platform-address-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.platform-address { flex: 1; font-family: var(--font-display); font-weight: 700; color: var(--c-cyan); font-size: 17px; word-break: break-word; overflow-wrap: break-word; }
@media (max-width: 380px) {
  .platform-address { font-size: 14.5px; }
}
.btn-copy-mini {
  background: oklch(0.78 0.16 200 / 0.2); border: 1px solid oklch(0.78 0.16 200 / 0.5);
  color: white; padding: 7px 14px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 12.5px; cursor: pointer; flex-shrink: 0;
}
.platform-note { color: oklch(0.85 0.02 280 / 0.6); font-size: 12.5px; line-height: 1.5; margin: 0 0 14px; }
.platform-steps { border-top: 1px solid var(--border-soft); padding-top: 12px; }
.platform-step { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 9px; }
.platform-step-n {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: oklch(0.78 0.16 200 / 0.2); border: 1px solid oklch(0.78 0.16 200 / 0.5);
  color: var(--c-cyan); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.platform-step-text { color: oklch(0.9 0.02 280 / 0.8); font-size: 12.5px; line-height: 1.4; }

/* ============ TOAST ============ */
.toast {
  position: relative;
  background: oklch(0.8 0.18 145 / 0.2);
  border: 1px solid oklch(0.8 0.18 145 / 0.5);
  color: oklch(0.9 0.15 145);
  padding: 10px 22px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 14px;
  animation: popIn 0.3s var(--ease);
}
.toast[hidden] { display: none; }
.toast--top { position: fixed; top: 90px; left: 50%; transform: translateX(-50%); z-index: 150; }

/* ============ STATUS BADGE ============ */
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: oklch(0.75 0.15 200 / 0.15);
  border: 1px solid oklch(0.75 0.15 200 / 0.4);
  padding: 7px 16px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; color: oklch(0.85 0.13 200);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 8px var(--c-green); flex-shrink: 0; }
.status-dot--off { background: oklch(0.6 0.18 30); box-shadow: 0 0 8px oklch(0.6 0.18 30); }

/* ============ CARDS ============ */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ============ FOOTER ============ */
.site-footer {
  padding: 60px 40px 30px;
  background: var(--bg-3);
  border-top: 1px solid var(--border-violet);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, oklch(0.85 0.16 200), oklch(0.55 0.18 300));
}
.footer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: white; }
.footer-desc { color: oklch(0.8 0.02 280 / 0.6); font-size: 13.5px; max-width: 280px; line-height: 1.6; }
.footer-ip { margin-top: 14px; color: var(--c-cyan); font-weight: 700; font-size: 14px; }
.footer-col-title { color: white; font-weight: 700; font-size: 13.5px; margin-bottom: 14px; }
.footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a { color: oklch(0.8 0.02 280 / 0.65); text-decoration: none; font-size: 13.5px; }
.footer-col-links a:hover { color: white; }
.footer-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  text-align: center; color: oklch(0.8 0.02 280 / 0.45); font-size: 12.5px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 48px 24px 24px; }
}

/* ============ DROPDOWNS (Classements) ============ */
.dropdown { flex: 1; min-width: 220px; position: relative; }
.dropdown-label {
  color: oklch(0.85 0.02 280 / 0.55); font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px;
}
.dropdown-btn {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, oklch(0.2 0.06 285 / 0.9), oklch(0.16 0.05 285 / 0.9));
  border: 1.5px solid var(--dd-color, var(--c-cyan));
  color: white; padding: 14px 18px; border-radius: var(--radius-card-sm);
  font-weight: 700; font-size: 15px; cursor: pointer;
  box-shadow: 0 0 22px var(--dd-glow, transparent);
}
.dropdown-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dd-color, var(--c-cyan)); box-shadow: 0 0 10px var(--dd-color, var(--c-cyan)); flex-shrink: 0; }
.dropdown-btn-label { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-chevron { transition: transform 0.2s ease; opacity: 0.6; }
.dropdown-btn[aria-expanded="true"] .dropdown-chevron { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: oklch(0.14 0.05 285 / 0.98);
  border: 1px solid var(--dd-color, var(--c-cyan));
  border-radius: var(--radius-card-sm); padding: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  max-height: 280px; overflow-y: auto;
  z-index: 96;
}
.dropdown-panel[hidden] { display: none; }
.dropdown-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: transparent; border: none; color: white;
  padding: 11px 12px; border-radius: 9px; font-weight: 600; font-size: 13.5px;
  cursor: pointer; text-align: left; margin-bottom: 2px;
}
.dropdown-item:hover { background: oklch(1 0 0 / 0.05); }
.dropdown-item.is-active { background: var(--dd-item-bg, oklch(0.78 0.16 200 / 0.2)); }
.dropdown-item-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dd-color, var(--c-cyan)); flex-shrink: 0; }
.dropdown-item-check { margin-left: auto; color: var(--dd-color, var(--c-cyan)); }
.dropdown-close-overlay { position: fixed; inset: 0; z-index: 90; }

/* ============ PAGE HERO (Classements / Vote) ============ */
.page-hero {
  padding: 80px 24px 40px;
  text-align: center;
  position: relative;
}
.page-hero-glow {
  position: absolute; top: 0; left: 50%; width: 800px; height: 300px; transform: translateX(-50%);
  filter: blur(10px); animation: glowPulse 5s ease-in-out infinite;
}
.page-hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: 56px; color: white;
  margin: 0 0 12px; position: relative;
}
.page-hero p { color: oklch(0.9 0.02 280 / 0.75); font-size: 16px; position: relative; max-width: 520px; margin: 0 auto; }
@media (max-width: 640px) {
  .page-hero h1 { font-size: 38px; }
}

/* ============ PODIUM ============ */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 20px; flex-wrap: wrap; }
.podium-slot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.podium-crown { font-size: 22px; }
.podium-avatar { flex-shrink: 0; }
.podium-name { color: white; font-weight: 700; }
.podium-value { color: oklch(0.8 0.02 280 / 0.6); font-size: 12.5px; }
.podium-bar {
  border-radius: 12px 12px 0 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: white;
}

/* ============ LOADING ============ */
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid oklch(0.85 0.02 280 / 0.2); border-top-color: var(--c-cyan);
  animation: spin .8s linear infinite;
}

/* ============ RESPONSIVE NAV ============ */
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-soft);
  }
  .nav-links.is-open { display: flex; }
  .nav-links .btn { width: 100%; }
  .nav-link { padding: 8px 4px; }
}
