/* ============================================================
   FATELESS — design tokens
   Reference : qsmp.co (hero bleu vif + logo pixel contoure,
   pages interieures marine sombre, nav en pilule flottante,
   boutons/badges tout arrondis)
   Type    : Press Start 2P (gros titres uniquement) + Rubik
             (titres de cartes, nombres) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Rubik:wght@600;700;800;900&family=Inter:wght@400;500;600;700&family=Bungee&family=Outfit:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --bg: #0b0e1a;
  --bg-card: #131728;
  --bg-card-hover: #191f38;
  --border: #232a45;
  --border-light: #333c5e;
  --text: #f4f6fb;
  --text-dim: #9aa1bf;
  --text-dim2: #565d7c;
  --accent: #ff8a3d;
  --accent-dim: #d66a1f;
  --accent-ink: #2a1300;
  --good: #58d68d;
  --hero-bg: #35b6e8;
  --hero-bg-dim: #2a9bc7;
  --hero-ink: #06263d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.pixel-title {
  font-family: "Press Start 2P", monospace;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   NAVIGATION — pilule flottante
   ============================================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.navbar .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.navbar .brand span {
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 15px;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(11,14,26,0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
}

.navbar nav a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-dim);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.navbar nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.navbar nav a.active { color: var(--accent-ink); background: var(--accent); }

.navbar .nav-cta {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--accent-dim);
  transition: transform 0.15s, box-shadow 0.15s;
}

.navbar .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--accent-dim);
}

.navbar .nav-cta:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--accent-dim);
}

@media (max-width: 640px) {
  .navbar nav { display: none; }
}

/* ============================================================
   DOWNLOAD MODAL (partagee par toutes les pages)
   ============================================================ */

.dl-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(4,6,12,0.82);
  z-index: 1000; align-items: center; justify-content: center;
  padding: 20px;
}
.dl-overlay.active { display: flex; }
.dl-modal {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  padding: 40px 36px; width: 100%; max-width: 400px; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  animation: modalIn 0.2s ease-out;
}
@keyframes modalIn {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.dl-modal h2 {
  font-size: 1.25rem; color: var(--text); margin-bottom: 8px;
  font-family: "Rubik", sans-serif;
}
.dl-modal p { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 26px; }

.platform-list { display: flex; flex-direction: column; gap: 10px; }

.platform-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 16px 18px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; cursor: pointer;
  font-family: "Inter", sans-serif; font-size: 0.95rem; font-weight: 500;
  transition: all 0.2s;
}
.platform-btn:hover:not(.disabled) {
  border-color: var(--accent); background: var(--bg-card-hover);
}
.platform-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.platform-btn .icon { font-size: 22px; width: 28px; text-align: center; }
.platform-btn .info { text-align: left; flex: 1; }
.platform-btn .info .name { display: block; }
.platform-btn .info .soon { display: block; font-size: 11px; color: var(--text-dim2); margin-top: 2px; }

.dl-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,138,61,0.08);
  border: 1px solid rgba(255,138,61,0.25);
  text-align: left;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dim);
}
.dl-note strong { color: var(--text); }

.dl-gate { padding: 8px 0 4px; }
.dl-gate p { color: var(--text-dim); font-size: 13.5px; line-height: 1.6; margin-bottom: 20px; }
.dl-gate p strong { color: var(--text); }

.discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  background: #5865F2;
  color: #fff;
  text-decoration: none;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 0 #454fbf;
}
.discord-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #454fbf; }
.discord-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #454fbf; }

.dl-switch-account {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-dim2);
  text-decoration: underline;
}
.dl-switch-account:hover { color: var(--text-dim); }

.dl-connected {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 14px;
  text-align: left;
}
.dl-connected a { color: var(--accent); text-decoration: underline; }

.dl-close {
  margin-top: 20px; background: none; border: none;
  color: var(--text-dim2); cursor: pointer; font-size: 0.85rem;
  font-family: "Inter", sans-serif; text-decoration: underline;
}
.dl-close:hover { color: var(--text-dim); }

/* ============================================================
   HERO — bleu vif, logo pixel contoure, sticker
   ============================================================ */

.hero {
  padding: 150px 24px 110px;
  background: var(--hero-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
}

.hero::before { width: 220px; height: 220px; top: -60px; left: -60px; }
.hero::after { width: 160px; height: 160px; bottom: -40px; right: 6%; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.hero-sticker {
  width: 92px;
  height: 92px;
  margin: 0 auto 28px;
  background: #fff;
  border: 4px solid var(--hero-ink);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-6deg);
  box-shadow: 0 8px 0 rgba(6,38,61,0.3);
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  transform: rotate(6deg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  background: rgba(6,38,61,0.85);
  color: #fff;
  font-family: "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.35;
  letter-spacing: 1px;
  color: #fff;
  text-shadow:
    3px 3px 0 var(--hero-ink),
    -3px 3px 0 var(--hero-ink),
    3px -3px 0 var(--hero-ink),
    -3px -3px 0 var(--hero-ink),
    0 7px 0 var(--hero-ink);
}

.hero .tagline {
  margin-top: 22px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--hero-ink);
  opacity: 0.82;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero .tagline strong { font-weight: 700; opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 38px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 0 var(--accent-dim);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--accent-dim);
}

.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-dim); }

.btn.big { padding: 19px 50px; font-size: 17px; }

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  box-shadow: none;
  padding: 14px 36px;
}
.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
  transform: translateY(-2px);
}
.btn.ghost:active { transform: translateY(0); }

.hero .btn {
  background: var(--hero-ink);
  color: #fff;
  box-shadow: 0 4px 0 rgba(0,0,0,0.3);
}
.hero .btn:hover { box-shadow: 0 6px 0 rgba(0,0,0,0.3); }
.hero .btn.ghost {
  background: transparent;
  color: var(--hero-ink);
  border: 2px solid rgba(6,38,61,0.35);
}
.hero .btn.ghost:hover { border-color: var(--hero-ink); color: var(--hero-ink); }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
  background: rgba(255,255,255,0.28);
  padding: 10px 18px;
  border-radius: 999px;
}

.hero-stat strong {
  font-family: "Rubik", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--hero-ink);
}

.hero-stat span {
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--hero-ink);
  opacity: 0.75;
}

/* ============================================================
   STEPS — comment ca marche
   ============================================================ */

.steps {
  padding: 130px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-head .eyebrow {
  background: rgba(255,138,61,0.12);
  color: var(--accent);
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  margin-top: 10px;
  line-height: 1.4;
}

.section-head p {
  color: var(--text-dim);
  margin-top: 14px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.steps-list { display: flex; flex-direction: column; }

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.step:last-child { border-bottom: 1px solid var(--border); }

.step-num {
  font-family: "Rubik", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--border-light);
}

.step-body .tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,138,61,0.12);
  margin-bottom: 14px;
}

.step-body h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.step-body p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
  max-width: 560px;
}

/* ============================================================
   CTA
   ============================================================ */

.cta {
  padding: 120px 24px 140px;
  text-align: center;
}

.cta .hero-sticker {
  margin: 0 auto 26px;
  background: var(--bg-card);
  border-color: var(--border-light);
  box-shadow: 0 8px 0 rgba(0,0,0,0.3);
}

.cta h2 {
  font-size: clamp(32px, 5vw, 52px);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.15;
}

.cta .tagline {
  margin: 18px auto 0;
  color: var(--text-dim);
  max-width: 440px;
}

.cta .btn.big { margin-top: 36px; }

@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; gap: 8px; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: 90px 24px 36px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.footer h3 {
  font-size: 17px;
  letter-spacing: 1px;
  margin-bottom: 28px;
  color: var(--text-dim);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.social {
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s;
}

.social:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.social.discord:hover { border-color: #5865F2; color: #5865F2; }

.footer-bottom {
  margin-top: 48px;
  font-size: 12px;
  color: var(--text-dim2);
}

.footer-legal {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-dim2);
  opacity: 0.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ============================================================
   PAGE HISTORIQUE — timeline
   ============================================================ */

.history-page {
  padding: 150px 24px 100px;
  max-width: 760px;
  margin: 0 auto;
  min-height: 100vh;
}

.timeline {
  position: relative;
  margin-top: 64px;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 5px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--border);
}

.timeline-item.closed::before { background: var(--text-dim2); }
.timeline-item.current::before { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

.timeline-date {
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-item.closed .timeline-date { color: var(--text-dim2); }

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
}

.timeline-card .title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.timeline-card h3 { font-size: 17px; }

.timeline-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
}

.timeline-status.current { background: rgba(255,138,61,0.16); color: var(--accent); }
.timeline-status.closed { background: rgba(255,255,255,0.05); color: var(--text-dim2); }

.timeline-card p {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.65;
}

/* ============================================================
   PAGE EQUIPE
   ============================================================ */

.team-page {
  padding: 150px 24px 100px;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.member-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
}

.member-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--bg);
  border: 3px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Rubik", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  overflow: hidden;
  position: relative;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.member-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.member-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.member-badge.founder { background: rgba(255,138,61,0.18); color: var(--accent); }
.member-badge.admin { background: rgba(88,214,141,0.14); color: var(--good); }
.member-badge.builder { background: rgba(255,255,255,0.06); color: var(--text-dim); }

.member-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}

.member-roles span {
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 3px 12px;
  border-radius: 999px;
}

.member-card p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE SERVEURS
   ============================================================ */

.servers-page {
  padding: 150px 24px 100px;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 100vh;
}

.servers-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 56px;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.server-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.server-card .server-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 24px;
}

.server-card .server-body { flex: 1; min-width: 0; }

.server-card .server-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.server-card h3 { font-size: 18px; }

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
}

.status-dot.online { background: rgba(88,214,141,0.14); color: var(--good); }
.status-dot.offline { background: rgba(255,107,107,0.1); color: #ff6b6b; }

.status-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.server-card p {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.6;
}

.server-card .server-meta {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-dim2);
}

.server-card .server-meta strong { color: var(--text-dim); }

.server-card-empty {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 48px 32px;
  text-align: center;
  color: var(--text-dim2);
  font-size: 14px;
}

@media (max-width: 640px) {
  .server-card { flex-direction: column; text-align: center; }
  .server-card .server-meta { justify-content: center; }
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero h1 { letter-spacing: 0; }
  .steps { padding: 90px 20px; }
}

/* ============================================================
   PAGE PARTICIPANTS
   ============================================================ */

.participants-page {
  padding: 150px 24px 100px;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
}

.participants-controls {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.participant-search {
  width: 100%;
  max-width: 380px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.participant-search::placeholder { color: var(--text-dim2); }
.participant-search:focus { border-color: var(--accent); }

.participants-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.participant-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.participant-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
}

.participant-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--bg);
  border: 3px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Rubik", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  overflow: hidden;
  position: relative;
}

.participant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  image-rendering: pixelated;
}

.participant-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.participant-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.social-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.2s;
}

.social-chip.twitch:hover { border-color: #9146FF; color: #9146FF; }
.social-chip.x:hover { border-color: #fff; color: #fff; }
.social-chip.youtube:hover { border-color: #FF0000; color: #FF0000; }

.participants-empty {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 48px 32px;
  text-align: center;
  color: var(--text-dim2);
  font-size: 14px;
}

@media (max-width: 900px) {
  .participants-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .participants-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE TV — participants en direct sur Twitch
   Style dedie a cette page uniquement (calque sur qsmp.tv) :
   fond noir avec vignette, panneaux "verre depoli" (blur + blanc 4%),
   bordure jaune vif #facc15, police Bungee pour les titres.
   ============================================================ */

.tv-body {
  background-color: #000;
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 15%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.95)),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
  font-family: "Outfit", "Inter", sans-serif;
}

.tv-body .pixel-title { font-family: "Bungee", "Rubik", sans-serif; letter-spacing: 0.5px; }

.tv-body .navbar nav {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255,255,255,0.1);
}

.tv-body .navbar nav a.active { background: #facc15; color: #000; }

.tv-page {
  display: grid;
  grid-template-columns: 240px 1fr 350px;
  gap: 18px;
  padding: 110px 24px 60px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  align-items: start;
}

.tv-sidebar,
.tv-player-wrap,
.tv-info,
.tv-chat-wrap {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 3px solid #facc15;
  border-radius: 20px;
  box-shadow: 10px 10px 0 0 #000;
}

.tv-sidebar { padding: 20px; }

.tv-sidebar-head { margin-bottom: 18px; }
.tv-sidebar-head .eyebrow { font-size: 10px; padding: 6px 12px; background: rgba(250,204,21,0.14); color: #facc15; }
.tv-sidebar-head h2 { font-size: 15px; line-height: 1.6; letter-spacing: 0.3px; margin-top: 10px; color: #fff; white-space: nowrap; }
.tv-sidebar-head p { font-size: 12px; color: #9a9a9a; margin-top: 8px; line-height: 1.5; }

.tv-actor-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 60vh;
  overflow-y: auto;
}

.tv-actor {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.tv-actor:hover { background: rgba(255,255,255,0.06); }
.tv-actor.active { background: rgba(250,204,21,0.1); border-color: rgba(250,204,21,0.5); }

.tv-actor-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
}

.tv-actor-avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }

.tv-actor .name { font-size: 13px; font-weight: 600; color: #fff; }

.tv-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.tv-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.tv-player-wrap iframe { width: 100%; height: 100%; }

.tv-info {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
}

.tv-info .tv-actor-avatar { width: 48px; height: 48px; border-radius: 12px; }
.tv-info h3 { color: #fff; font-family: "Outfit", sans-serif; }

.tv-chat-wrap {
  overflow: hidden;
  height: calc(60vh + 76px + 16px);
}

.tv-chat-wrap iframe { width: 100%; height: 100%; }

@media (max-width: 1100px) {
  .tv-page { grid-template-columns: 1fr; padding-top: 100px; }
  .tv-sidebar { order: 1; }
  .tv-main { order: 0; }
  .tv-chat-wrap { order: 2; height: 480px; }
  .tv-actor-list { max-height: none; }
}

/* Footer assorti au theme de cette page */
.tv-body .footer {
  border-top-color: rgba(255,255,255,0.1);
  background: transparent;
}

.tv-body .footer h3 { color: #fff; font-family: "Bungee", "Rubik", sans-serif; }

.tv-body .footer .social {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: #ddd;
}

.tv-body .footer .social:hover {
  border-color: #facc15;
  color: #facc15;
}

.tv-body .footer .social.discord:hover { border-color: #5865F2; color: #5865F2; }

.tv-body .footer .footer-bottom,
.tv-body .footer .footer-legal { color: #7a7a7a; }

.tv-body .footer-terminal { color: rgba(255,255,255,0.1); }
.tv-body .footer-terminal:hover { color: rgba(250,204,21,0.7); }

.tv-body .participants-empty {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.15);
  color: #9a9a9a;
}

/* ============================================================
   TERMINAL — acces cache, lore par codes
   ============================================================ */

.footer-terminal {
  display: inline-block;
  margin-top: 18px;
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.18);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
}

.footer-terminal:hover { color: rgba(77,255,136,0.7); }

.terminal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(6px);
  z-index: 1100; align-items: center; justify-content: center;
  padding: 20px;
}
.terminal-overlay.active { display: flex; }

.terminal-window {
  width: 100%;
  max-width: 560px;
  background: #020803;
  border: 1px solid #1c5c33;
  border-radius: 10px;
  box-shadow: 0 0 60px rgba(0,255,120,0.15), 0 30px 80px rgba(0,0,0,0.6);
  font-family: "Share Tech Mono", monospace;
  color: #4dff88;
  overflow: hidden;
  animation: modalIn 0.2s ease-out;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #1c5c33;
  background: rgba(77,255,136,0.05);
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-prompt { margin-left: 6px; color: #4dff88; opacity: 0.8; }

.terminal-version {
  margin-left: auto;
  font-size: 11px;
  color: #2d8a52;
  letter-spacing: 0.5px;
}

.terminal-body { padding: 26px 26px 22px; text-align: center; }

.terminal-logo {
  font-family: "Press Start 2P", monospace;
  font-size: 22px;
  color: #4dff88;
  text-shadow: 0 0 12px rgba(77,255,136,0.6);
  margin-bottom: 14px;
}

.terminal-sub {
  font-size: 13px;
  letter-spacing: 1px;
  color: #4dff88;
  margin-bottom: 6px;
}

.terminal-hint {
  font-size: 12px;
  color: #2d8a52;
  margin-bottom: 18px;
  line-height: 1.5;
}

.terminal-log {
  max-height: 260px;
  overflow-y: auto;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.7;
  margin-bottom: 14px;
  padding: 0 2px;
}

.terminal-log .line { white-space: pre-wrap; word-break: break-word; }
.terminal-log .line.cmd { color: #4dff88; opacity: 0.7; }
.terminal-log .line.ok { color: #7dffb0; }
.terminal-log .line.err { color: #ff6b6b; }

.terminal-reveal { margin: 4px 0 8px; }

.terminal-reveal-title {
  font-weight: 700;
  color: #4dff88;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.terminal-reveal img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  border: 1px solid #1c5c33;
  margin-top: 4px;
}

.terminal-reveal-caption {
  font-size: 11px;
  color: #2d8a52;
  margin-top: 4px;
}

.terminal-reveal-link {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 16px;
  background: #4dff88;
  color: #020803;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
}

.terminal-reveal-link:hover { opacity: 0.85; }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #1c5c33;
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(77,255,136,0.04);
}

.terminal-caret { color: #4dff88; }

.terminal-input-row input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #4dff88;
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.terminal-input-row input::placeholder { color: #1c5c33; }

.terminal-input-row button {
  background: #4dff88;
  color: #020803;
  border: none;
  border-radius: 4px;
  padding: 8px 14px;
  font-family: "Share Tech Mono", monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.terminal-input-row button:hover { opacity: 0.85; }

.terminal-close {
  width: 100%;
  padding: 12px;
  background: rgba(77,255,136,0.04);
  border: none;
  border-top: 1px solid #1c5c33;
  color: #2d8a52;
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
}

.terminal-close:hover { color: #4dff88; }

/* ============================================================
   EASTER EGG — Konami Code
   ============================================================ */

.konami-particle {
  position: fixed;
  top: -40px;
  pointer-events: none;
  z-index: 9999;
  animation: konami-fall linear forwards;
}

@keyframes konami-fall {
  to { transform: translateY(110vh) rotate(360deg); opacity: 0.2; }
}

.konami-toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 14px 30px;
  border-radius: 999px;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.konami-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   FOCUS VISIBLE (accessibilite)
   ============================================================ */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
