:root {
  --bg: #070d1a;
  --bg-2: #0b1426;
  --card: #0f1b33;
  --card-2: #13223f;
  --line: #1e3358;
  --text: #e6eefc;
  --muted: #8ea3c7;
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --cyan: #38bdf8;
  --ok: #34d399;
  --ko: #f87171;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Quadrillage discret façon blocs, en fond de page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(59, 130, 246, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--cyan); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: "Outfit", "Inter", sans-serif; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.accent { color: var(--cyan); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 13, 26, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff; font-size: 1rem; font-weight: 900;
  box-shadow: 0 0 20px rgba(56, 189, 248, .35);
}
.logo img { width: 34px; height: 34px; image-rendering: pixelated; filter: drop-shadow(0 0 8px rgba(56, 189, 248, .45)); }
.logo span b { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--card); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 10px; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav .btn-nav { display: none; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; font-size: 1rem; font-family: inherit; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), #2563eb); color: #fff; box-shadow: 0 6px 24px rgba(59, 130, 246, .35); }
.btn-primary:hover { color: #fff; box-shadow: 0 8px 30px rgba(59, 130, 246, .5); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--blue); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { color: #fff; background: #4752c4; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn.is-disabled { opacity: .55; cursor: default; pointer-events: none; box-shadow: none; }

/* ---------- Héros ---------- */
.hero { padding: 88px 0 64px; text-align: center; position: relative; }
.hero::after {
  content: ""; position: absolute; left: 50%; top: 40px; width: 620px; max-width: 90vw; height: 320px;
  transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .28), transparent);
  filter: blur(20px);
}
.hero h1 b { background: linear-gradient(90deg, var(--blue-2), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.off { background: var(--ko); }

.ip-box {
  display: inline-flex; align-items: stretch; margin: 0 auto 20px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card); max-width: 100%;
}
.ip-box code { padding: 14px 20px; font-size: 1.15rem; font-weight: 700; color: var(--text); font-family: "JetBrains Mono", ui-monospace, monospace; white-space: nowrap; }
.ip-box button { border: 0; border-radius: 0; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.version-note { margin-top: 18px; color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }
.kicker { display: inline-block; color: var(--cyan); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.page-hero { padding: 64px 0 24px; text-align: center; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(96, 165, 250, .5); }
.card .icon {
  width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(59, 130, 246, .12); border: 1px solid rgba(59, 130, 246, .3); font-size: 1.4rem;
}
.card p { color: var(--muted); margin-bottom: 0; }
.card ul { color: var(--muted); padding-left: 18px; margin: 12px 0 0; }
.card ul li { margin-bottom: 4px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: rgba(56, 189, 248, .12); color: var(--cyan); margin: 0 4px 8px 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.stat strong { display: block; font-family: "Outfit", sans-serif; font-size: 2rem; color: var(--text); }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Modes détaillés ---------- */
.mode { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); }
.mode:last-child { border-bottom: 0; }
.mode-badge {
  aspect-ratio: 1; border-radius: var(--radius); display: grid; place-items: center; font-size: 4rem;
  background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, .25), transparent 60%), var(--card);
  border: 1px solid var(--line);
}
@media (max-width: 700px) {
  .mode { grid-template-columns: 1fr; }
  .mode-badge { max-width: 140px; font-size: 3rem; }
}

/* ---------- Offres ---------- */
.offer { position: relative; display: flex; flex-direction: column; }
.offer .price { font-family: "Outfit", sans-serif; font-size: 2.2rem; font-weight: 800; margin: 8px 0 4px; }
.offer .price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.offer ul { flex: 1; margin-bottom: 20px; }
.offer.featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 10px 40px rgba(59, 130, 246, .2); }
.ribbon { position: absolute; top: -12px; right: 18px; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 6px; }

/* ---------- Règlement ---------- */
.rules { counter-reset: rule; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rules li { counter-increment: rule; position: relative; padding: 18px 18px 18px 64px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.rules li strong { color: var(--text); display: block; margin-bottom: 2px; }
.rules li::before {
  content: counter(rule); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; font-weight: 800; background: rgba(59, 130, 246, .15); color: var(--cyan);
}

/* ---------- Staff ---------- */
.member { text-align: center; }
.member img { width: 88px; height: 88px; margin: 0 auto 14px; image-rendering: pixelated; border-radius: 12px; background: var(--bg-2); }
.member .role { display: inline-block; margin-top: 4px; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.role-owner { background: rgba(248, 113, 113, .15); color: #fca5a5; }
.role-admin { background: rgba(251, 146, 60, .15); color: #fdba74; }
.role-modo { background: rgba(52, 211, 153, .15); color: #6ee7b7; }

/* ---------- Encadré ---------- */
.callout { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: rgba(59, 130, 246, .08); border: 1px solid rgba(59, 130, 246, .3); }
.callout p { margin: 0; color: var(--muted); }
.callout strong { color: var(--text); }
.cta { text-align: center; padding: 48px 24px; border-radius: 20px; background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, .18), transparent 70%), var(--card); border: 1px solid var(--line); }
.cta p { color: var(--muted); }

table.clean { width: 100%; border-collapse: collapse; }
table.clean th, table.clean td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.clean th { color: var(--muted); font-weight: 600; font-size: .9rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; color: var(--muted); font-size: .9rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.disclaimer { margin-top: 18px; font-size: .8rem; opacity: .8; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--card-2); border: 1px solid var(--blue); color: var(--text); padding: 10px 18px; border-radius: 10px;
  transition: .25s; pointer-events: none; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose p, .prose li { color: var(--muted); }

/* ---------- Photos du serveur ---------- */
.hero-photo {
  background:
    linear-gradient(180deg, rgba(7, 13, 26, .55) 0%, rgba(7, 13, 26, .8) 60%, var(--bg) 100%),
    url("img/lobby-jour.jpg") center 35% / cover no-repeat;
  padding-top: 56px;
}
.hero-photo::after { display: none; }
.hero-photo .lead { color: #c9d6ee; }
.hero-logo {
  width: 240px; max-width: 60vw; height: auto; margin: 0 auto 18px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .55));
}
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
}
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }
.mode-photo {
  width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; margin: 18px 0 4px;
  border-radius: var(--radius); border: 1px solid var(--line);
}
