/* ═══════════════════════════════════════════════════════════════════════════
   LDA Games - Design System
   Dark Futuristic Gaming · Red Accent · Glassmorphism cards
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg-base:       #130208;
  --bg-0:          #130208;
  --bg-1:          #170309;
  --bg-2:          #1c040b;
  --bg-3:          #21050d;
  --bg-card:       rgba(255 255 255 / 0.045);
  --bg-card-hover: rgba(255 255 255 / 0.08);

  --accent:        #e63946;
  --accent-dark:   #c1121f;
  --accent-light:  #ff5a66;
  --accent-glow:   rgba(230 57 70 / 0.32);
  --accent-glow-sm:rgba(230 57 70 / 0.16);

  --discord:       #5865f2;
  --discord-dark:  #4752c4;

  --online:        #22c55e;
  --online-glow:   rgba(34 197 94 / 0.2);
  --offline:       #ef4444;
  --soon:          #f59e0b;

  --text-1:        #f0f0f8;
  --text-2:        #a0a0b8;
  --text-3:        #606078;
  --text-accent:   var(--accent-light);

  --border:        rgba(255 255 255 / 0.07);
  --border-hover:  rgba(255 255 255 / 0.14);

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-xl:     24px;

  --shadow-glow:   0 0 40px var(--accent-glow);
  --shadow-card:   0 4px 32px rgba(0 0 0 / 0.5);

  --font-head:     'Rajdhani', 'Inter', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;

  --nav-h:         64px;
  --container:     1200px;
  --container-sm:  760px;

  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-base);
}

body {
  background: transparent;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul[role="list"] { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 48px);
}

.container--narrow {
  max-width: var(--container-sm);
}

/* ─── Reveal animation ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
  color: #fff;
  transform: translateY(-1px);
}

.btn-discord {
  background: var(--discord);
  color: #fff;
}
.btn-discord:hover {
  background: var(--discord-dark);
  transform: translateY(-1px);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all 0.18s;
  min-height: 36px;
}
.btn-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow-sm);
}
.btn-copy.copied {
  border-color: var(--online);
  color: var(--online);
  background: rgba(34 197 94 / 0.08);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; }

/* ─── Nav ────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(6 6 12 / 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { height: 44px; width: auto; max-width: 140px; object-fit: contain; }
.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color 0.18s, background 0.18s;
}
.nav-link:hover, .nav-link.active { color: var(--text-1); background: var(--bg-card); }
.nav-link.active { color: var(--accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  margin-left: 8px;
  background: var(--discord);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.18s, transform 0.18s;
  min-height: 36px;
}
.nav-cta:hover { background: var(--discord-dark); transform: translateY(-1px); }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all 0.22s var(--ease-out);
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-block: 120px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  /* Overlay uniquement - la couleur de fond vient du body */
  background:
    radial-gradient(ellipse 85% 45% at 50% -5%, rgba(230 57 70 / 0.22) 0%, transparent 60%);
}

/* .hero-bg-grid removed - div supprimé du template */

.hero-particles {
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(34 197 94 / 0.1);
  border: 1px solid rgba(34 197 94 / 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--online);
  letter-spacing: 0.04em;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--online);
  border-radius: 50%;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34 197 94 / 0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(34 197 94 / 0); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.hero-title-accent {
  color: var(--accent);
  text-shadow: 0 0 60px rgba(230 57 70 / 0.6), 0 0 120px rgba(230 57 70 / 0.2);
}

/* Typing cursor */
.hero-typing-cursor {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: inherit;
  font-weight: 700;
  line-height: 1;
  margin-left: 2px;
  animation: blink-cursor 0.75s step-end infinite;
  text-shadow: 0 0 30px rgba(230 57 70 / 0.8);
}
.hero-typing-cursor.hidden { display: none; }

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-desc {
  max-width: 580px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 32px;
  backdrop-filter: blur(12px);
}

.hero-stat { text-align: center; padding-inline: 24px; }
.hero-stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
}
.hero-stat-label { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-stat-sep { width: 1px; height: 40px; background: var(--border); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-3);
  animation: bounce-down 2.4s ease-in-out infinite;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.18s;
}
.hero-scroll:hover { color: var(--text-1); }

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── Section commons ────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-glow-sm);
  border: 1px solid rgba(230 57 70 / 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-1);
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-2);
  font-size: 16px;
  max-width: 520px;
  margin-inline: auto;
}

/* ─── Servers ────────────────────────────────────────────────────────────── */
.servers-section {
  padding-block: 100px;
  background: transparent;
  border-top: 1px solid rgba(255 255 255 / 0.05);
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ─── Server card ────────────────────────────────────────────────────────── */
.server-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0 0 0 / 0.3);
  isolation: isolate;
}
.server-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0 0 0 / 0.5);
}

/* ── Statut coloré sur la card ──────────────────────────────────────────────
   Pas de neon rotatif. Accent subtil : bordure top colorée + glow au hover. */

.server-card--online {
  border-color: rgba(34 197 94 / 0.3);
  border-top: 2px solid var(--online);
}
.server-card--online:hover {
  border-color: rgba(34 197 94 / 0.5);
  box-shadow: 0 20px 56px rgba(0 0 0 / 0.5), 0 0 32px rgba(34 197 94 / 0.12);
}

.server-card--offline {
  border-color: rgba(239 68 68 / 0.18);
  border-top: 2px solid rgba(239 68 68 / 0.4);
}
.server-card--offline:hover {
  box-shadow: 0 20px 56px rgba(0 0 0 / 0.5);
}

.server-card--coming-soon { opacity: 0.7; }

.server-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  clip-path: inset(0 round 24px 24px 0 0);
  transform: translateZ(0);
}

.server-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.4s var(--ease-out);
}
.server-card:hover .server-card-img { filter: brightness(1.08); }

/* Fond de secours si l'image ne charge pas */
.server-card-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255 255 255 / 0.2);
  background: linear-gradient(135deg, #1a1118 0%, #221019 100%);
}

.server-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(10 10 19 / 0.85) 100%);
  pointer-events: none;
}

.server-card-game-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(0 0 0 / 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-1);
}

.server-card-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0 0 0 / 0.65);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
}

.status-online  { color: var(--online);  border-color: rgba(34 197 94 / 0.3); }
.status-offline { color: var(--offline); border-color: rgba(239 68 68 / 0.3); }
.status-loading { color: var(--text-2);  border-color: var(--border); }
.status-soon    { color: var(--soon);    border-color: rgba(245 158 11 / 0.3); }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-online .status-dot { animation: pulse-dot 2.4s ease-in-out infinite; }

.server-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.server-card-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.server-card-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.server-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.server-tag {
  padding: 3px 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.server-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: auto;
}

/* ─── Server card footer (scf) ───────────────────────────────────────────── */
.scf {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scf-players {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-3);
  font-size: 12px;
}

.scf-players svg { color: var(--text-3); flex-shrink: 0; }

.scf-players-count {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
}

.scf-players-sep { color: var(--text-3); font-size: 14px; margin-inline: 1px; }
.scf-players-max { color: var(--text-2); font-weight: 600; font-size: 14px; }
.scf-players-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; margin-left: 2px; }

/* ─── Connect (IP) block ─────────────────────────────────────────────────── */
.scf-connect {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scf-connect-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 600;
}

.scf-connect-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.scf-connect-ip {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.03em;
  user-select: all;
}

.scf-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.18s;
}
.scf-copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow-sm);
}
.scf-copy-btn.copied {
  border-color: var(--online);
  color: var(--online);
  background: rgba(34 197 94 / 0.08);
}

/* Legacy - gardé pour compatibilité JS (bindCopyButtons cible [data-copy]) */
.scf-ip-btn {
  display: none; /* remplacé par scf-connect */
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s;
  width: 100%;
  text-align: left;
}
.scf-ip-btn:hover {
  border-color: rgba(230 57 70 / 0.5);
  background: var(--accent-glow-sm);
}
.scf-ip-btn.copied {
  border-color: rgba(34 197 94 / 0.5);
  background: rgba(34 197 94 / 0.08);
}

.scf-ip-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.scf-ip-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 500;
}

.scf-ip-text {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--text-1);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scf-copy-icon { color: var(--text-3); flex-shrink: 0; transition: color 0.18s; }
.scf-ip-btn:hover .scf-copy-icon { color: var(--accent); }
.scf-ip-btn.copied .scf-copy-icon { color: var(--online); }

.scf--soon {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.server-coming-text {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
}

/* ─── About ──────────────────────────────────────────────────────────────── */
.about-section {
  padding-block: 100px;
  background: transparent;
  border-top: 1px solid rgba(255 255 255 / 0.05);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 760px;
  margin: 0 auto;
}

.about-content { display: flex; flex-direction: column; gap: 16px; }
.about-content .section-label {
  text-align: left;
  align-self: flex-start; /* empêche l'étirement pleine largeur en flex column */
}
.about-content .section-title { text-align: left; }

.about-text { color: var(--text-2); font-size: 15px; line-height: 1.75; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.about-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--accent-glow-sm);
  border: 1px solid rgba(230 57 70 / 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
}

.about-feature strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 2px;
}
.about-feature p { font-size: 13px; color: var(--text-3); }

/* About visual card */
.about-visual { display: flex; justify-content: center; }

.about-glow-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  width: 100%;
  max-width: 360px;
  overflow: hidden;
}

.about-glow-top {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.about-logo-large {
  height: 64px;
  width: auto;
  margin-inline: auto;
  margin-bottom: 16px;
}

.about-card-tagline {
  color: var(--text-3);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.about-card-stats {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.about-card-stat { text-align: center; }
.about-card-stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 4px;
}
.about-card-stat-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* ─── About games panel ──────────────────────────────────────────────────── */
.about-games-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-games-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.about-games-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-game-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255 255 255 / 0.04);
}
.about-game-entry:last-child { border-bottom: none; padding-bottom: 0; }

.about-game-entry-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.about-game-entry-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
}
.about-game-entry-sub {
  font-size: 12px;
  color: var(--text-3);
}

.about-game-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.about-game-badge--active {
  background: rgba(34 197 94 / 0.12);
  border: 1px solid rgba(34 197 94 / 0.3);
  color: var(--online);
}
.about-game-badge--soon {
  background: rgba(245 158 11 / 0.10);
  border: 1px solid rgba(245 158 11 / 0.25);
  color: var(--soon);
}

/* ─── Contact section (home page) ────────────────────────────────────────── */
.contact-section {
  padding-block: 100px;
  background: transparent;
  border-top: 1px solid rgba(255 255 255 / 0.05);
}

/* ─── Discord CTA ────────────────────────────────────────────────────────── */
.discord-cta {
  padding-block: 80px;
  background: transparent;
  border-top: 1px solid rgba(255 255 255 / 0.05);
}

.discord-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 48px 56px;
  background: rgba(88 101 242 / 0.06);
  border: 1px solid rgba(88 101 242 / 0.22);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Halo violet ambiant centré */
.discord-cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(88 101 242 / 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 80% 50%, rgba(88 101 242 / 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.discord-cta-icon-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  background: rgba(88 101 242 / 0.14);
  border: 1px solid rgba(88 101 242 / 0.35);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
  box-shadow: 0 0 32px rgba(88 101 242 / 0.15);
}

.discord-cta-body { position: relative; flex: 1; }

.discord-cta-label { text-align: left; align-self: flex-start; margin-bottom: 6px; display: block; }

.discord-cta-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
  line-height: 1.15;
}

.discord-cta-desc {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 500px;
  margin-bottom: 18px;
}

.discord-cta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discord-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(88 101 242 / 0.10);
  border: 1px solid rgba(88 101 242 / 0.22);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: #a5b4fc;
}

.discord-cta-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.discord-hint {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  white-space: nowrap;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid rgba(230 57 70 / 0.12);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand-logo-row { display: flex; align-items: center; gap: 10px; }
.footer-logo { height: 40px; width: auto; max-width: 120px; object-fit: contain; flex-shrink: 0; }
.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-1);
  text-transform: uppercase;
}
.footer-desc { font-size: 14px; color: var(--text-3); line-height: 1.6; max-width: 260px; }

.footer-socials { display: flex; gap: 8px; }
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: color 0.18s;
}
.footer-social-link:hover { color: var(--discord); }

.footer-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-1);
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link { font-size: 14px; color: var(--text-3); transition: color 0.18s; }
.footer-link:hover { color: var(--text-1); }

.footer-credit {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-3);
}
.footer-credit-name { color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-3);
}

.footer-credit-block {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
}

.footer-szdev-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 4px;
  background: rgba(255 255 255 / 0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.18s;
  text-decoration: none;
}
.footer-szdev-link:hover {
  background: rgba(255 255 255 / 0.1);
  border-color: var(--border-hover);
}

.footer-szdev-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-credit-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.footer-admin-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  margin-top: 16px;
  padding: 7px 14px;
  background: var(--discord);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}
.footer-admin-btn:hover { background: var(--discord-dark); transform: translateY(-1px); }

.footer-link--admin { opacity: 0.55; }
.footer-link--admin:hover { opacity: 1; }

.footer-admin-profile {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 5px 14px 5px 5px;
  background: rgba(255 255 255 / 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.18s;
}
.footer-admin-profile:hover { background: rgba(255 255 255 / 0.1); border-color: var(--border-hover); }
.footer-admin-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.footer-admin-profile-name { font-size: 13px; font-weight: 600; color: var(--text-1); }

/* ─── Toast ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-1);
  box-shadow: var(--shadow-card);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s var(--ease-out);
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ─── Page inner ─────────────────────────────────────────────────────────── */
.page-main {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 100px;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}

/* Le canvas particules fond est z-index:0, le contenu doit être au-dessus */
main { position: relative; z-index: 1; }

.page-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ─── Contact ────────────────────────────────────────────────────────────── */
/* ─── Contact cards (2 cartes centrées, sans formulaire) ─────────────────── */
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-width: 260px;
  max-width: 340px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-card:hover {
  border-color: rgba(230 57 70 / 0.25);
  box-shadow: 0 8px 32px rgba(0 0 0 / 0.25);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
}

.contact-card-icon--discord {
  background: rgba(88 101 242 / 0.12);
  border-color: rgba(88 101 242 / 0.3);
  color: #a5b4fc;
}

.contact-card-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
}
.contact-card-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

/* ─── Legal ──────────────────────────────────────────────────────────────── */
.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.legal-section {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child { border-bottom: none; }

.legal-section h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 12px;
}
.legal-section p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 8px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a { color: var(--accent-light); }
.legal-section a:hover { text-decoration: underline; }

.legal-update {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-3);
}

/* ─── Page 404 ───────────────────────────────────────────────────────────── */
.page-404 {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
}

.e404-inner {
  text-align: center;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.e404-code {
  font-family: var(--font-head);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(230 57 70 / 0.3);
  letter-spacing: -0.04em;
  user-select: none;
}

.e404-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text-1);
}

.e404-desc {
  color: var(--text-2);
  font-size: 16px;
  max-width: 360px;
}

.e404-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ─── API page ───────────────────────────────────────────────────────────── */
.api-doc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 780px;
  margin: 0 auto;
}

.api-endpoint {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.api-endpoint-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.api-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.api-badge--get {
  background: rgba(34 197 94 / 0.15);
  color: #4ade80;
  border: 1px solid rgba(34 197 94 / 0.25);
}

.api-path {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: var(--text-1);
}

.api-desc {
  color: var(--text-2);
  font-size: 14px;
}

.api-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-sm {
  font-size: 13px;
  padding: 6px 14px;
}

.api-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255 255 255 / 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}
.api-note svg { flex-shrink: 0; margin-top: 1px; }

.api-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  background: rgba(255 255 255 / 0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
}

.api-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
}

.api-info-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(230 57 70 / 0.06);
  border: 1px solid rgba(230 57 70 / 0.18);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--text-2);
  font-size: 13.5px;
}
.api-info-banner svg { flex-shrink: 0; color: var(--accent-light); }
.api-info-banner strong { color: var(--text-1); }
.api-info-banner code {
  background: rgba(255 255 255 / 0.07);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
}

.api-response-block {
  margin-top: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.api-response-label {
  background: rgba(255 255 255 / 0.04);
  border-bottom: 1px solid var(--border);
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.api-response {
  margin: 0;
  padding: 18px;
  background: rgba(0 0 0 / 0.25);
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: #a0e6b0;
  tab-size: 2;
}
.api-response code { font-family: inherit; background: none; padding: 0; color: inherit; }

.api-type {
  font-size: 11px;
  padding: 2px 7px;
  background: rgba(255 255 255 / 0.05);
  border-radius: 4px;
  color: var(--text-3);
}

/* Table de référence des IDs */
.api-table-wrap { overflow-x: auto; }

.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.api-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}

.api-table td {
  padding: 12px 14px;
  color: var(--text-2);
  border-bottom: 1px solid rgba(255 255 255 / 0.04);
}
.api-table tr:last-child td { border-bottom: none; }
.api-table td code {
  background: rgba(255 255 255 / 0.06);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 12px;
  color: var(--text-1);
}

.api-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 100px;
}
.api-status-badge--active {
  background: rgba(34 197 94 / 0.12);
  color: #4ade80;
  border: 1px solid rgba(34 197 94 / 0.25);
}
.api-status-badge--soon {
  background: rgba(251 191 36 / 0.10);
  color: #fbbf24;
  border: 1px solid rgba(251 191 36 / 0.22);
}

/* Conteneur étroit pour les pages de doc */
.container--narrow { max-width: 860px; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .servers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .discord-cta-inner { grid-template-columns: auto 1fr; }
  .discord-cta-action { grid-column: 1 / -1; align-items: flex-start; }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .nav-burger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6 6 12 / 0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 99;
    padding: 8px 12px 12px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0 0 0 / 0.5);
  }
  .nav-links.open { display: flex; }

  .nav-link { font-size: 1rem; padding: 12px 16px; border-radius: 8px; }
  .nav-cta { font-size: 0.95rem; padding: 12px 16px; margin: 4px 0 0; justify-content: center; }

  /* Hero */
  .hero-stats { padding: 14px 16px; flex-wrap: wrap; justify-content: center; }
  .hero-stat { padding-inline: 16px; }
  .hero-stat-sep { display: none; }

  /* Servers */
  .servers-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }

  /* About features */
  .about-features { grid-template-columns: 1fr; }

  /* Discord CTA */
  .discord-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 24px;
    gap: 28px;
  }
  .discord-cta-icon-wrap { margin: 0 auto; }
  .discord-cta-label { text-align: center; align-self: center; }
  .discord-cta-desc { margin-inline: auto; }
  .discord-cta-chips { justify-content: center; }
  .discord-hint { white-space: normal; }

  /* Contact */
  .contact-cards { flex-direction: column; align-items: center; }
  .contact-card { max-width: 100%; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Legal */
  .legal-content { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .servers-grid { grid-template-columns: 1fr; }
  .contact-card { min-width: unset; }
}
