/* =====================================================
   NoverraRP - Style global
   Palette inspirée du logo : violet sombre + cyan néon
   + magenta sunset + orange RP
===================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-0: #0a0612;
  --bg-1: #120822;
  --bg-2: #1a0d2e;
  --panel: #150a24;
  --panel-2: #1d1233;
  --border: rgba(120, 180, 255, 0.12);
  --border-strong: rgba(120, 180, 255, 0.28);

  --cyan: #6ec6ff;
  --cyan-soft: #9bd4ff;
  --magenta: #ff5a8a;
  --orange: #ff7a3d;
  --orange-soft: #ffb070;
  --green: #38d96b;

  --text: #e9ecf5;
  --text-dim: #98a2b8;
  --text-faint: #6b7388;
}

html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---- Topbar ---- */
.topbar {
  background: #07040d;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  position: relative; z-index: 50;
}
.topbar-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 8px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.online { display: inline-flex; align-items: center; gap: 8px; color: #d8dde8;
  font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; font-size: 11px; }
.online .dot { width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green), 0 0 14px rgba(56,217,107,0.5);
  animation: blink 2s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
.topbar .sep { color: #2a2240; }
.topbar a:hover { color: var(--cyan); }

/* ---- Navbar ---- */
.navbar {
  background: rgba(10, 6, 18, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; left: 0; right: 0; z-index: 40;
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 17px; letter-spacing: 1px; color: #fff; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(110,198,255,0.55)); }
.brand .rp { color: var(--orange-soft); text-shadow: 0 0 8px rgba(255,122,61,0.5); }

.nav-links { list-style: none; display: flex; gap: 4px; }
.nav-links a { display: inline-block; padding: 10px 16px; color: var(--text-dim);
  font-size: 12.5px; font-weight: 600; letter-spacing: 1.5px; border-radius: 6px;
  position: relative; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 10px; }

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; border: 1px solid transparent;
  transition: all .18s; text-decoration: none; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-discord { background: #5865F2; color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 4px 14px rgba(88,101,242,0.35); }
.btn-discord:hover { background: #4752c4; transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(88,101,242,0.5); }
.btn-primary {
  background: linear-gradient(135deg, #5865F2, #4752c4); color: #fff;
  padding: 14px 26px; font-size: 13px; border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 8px 24px rgba(88,101,242,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(88,101,242,0.55); }
.btn-connect {
  background: transparent; color: var(--cyan); border: 1px solid var(--cyan);
  padding: 14px 26px; font-size: 13px; border-radius: 6px;
}
.btn-connect:hover { background: rgba(110,198,255,0.08); box-shadow: 0 0 20px rgba(110,198,255,0.25); }

/* ---- Hero ---- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center;
  overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg svg { width: 100%; height: 100%; display: block; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,6,18,0.55) 0%, rgba(10,6,18,0.35) 40%, rgba(10,6,18,0.95) 100%),
    radial-gradient(ellipse at 50% 100%, rgba(255,90,138,0.18), transparent 60%);
  z-index: 1; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 5; max-width: 1100px; margin: 0 auto;
  padding: 80px 32px;
  display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center;
}
.hero-logo { width: 200px; height: 200px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(110,198,255,0.25),
              0 0 40px rgba(110,198,255,0.35),
              0 0 90px rgba(255,90,138,0.25),
              0 20px 60px rgba(0,0,0,0.6); }
.hero-text .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 18px; padding: 6px 14px;
  border: 1px solid var(--border-strong); border-radius: 100px;
  background: rgba(110,198,255,0.06);
}
.hero-text .eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 6px var(--cyan); animation: blink 2s infinite; }
h1.hero-title { font-size: clamp(44px, 6vw, 78px); font-weight: 900; line-height: 1;
  letter-spacing: 1px; margin-bottom: 14px; color: #fff; }
h1.hero-title .rp { color: var(--orange-soft); text-shadow: 0 0 18px rgba(255,122,61,0.45); }
.hero-sub { font-size: 14px; color: var(--text-dim); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 28px; font-weight: 500; }
.hero-sub .dot-sep { color: var(--cyan); margin: 0 10px; }
.hero-intro { font-size: 15.5px; color: #c5cad8; line-height: 1.75;
  max-width: 620px; margin-bottom: 32px; }
.hero-intro strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Alert strip ---- */
.alert-strip {
  background: linear-gradient(90deg, rgba(255,122,61,0.15), rgba(255,90,138,0.12), rgba(110,198,255,0.10));
  border-bottom: 1px solid rgba(255,122,61,0.25);
  padding: 12px 32px; font-size: 13px; text-align: center; color: #fff;
}
.alert-strip .badge { display: inline-block; background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px; padding: 3px 8px;
  border-radius: 3px; margin-right: 10px; text-transform: uppercase; vertical-align: middle; }
.alert-strip a { color: var(--cyan); border-bottom: 1px solid var(--cyan); margin-left: 6px; }

/* ---- Server status / node ---- */
.server-status { background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border-bottom: 1px solid var(--border); padding: 28px 32px; }
.status-grid { max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr) auto;
  gap: 24px; align-items: center; }
.status-cell .label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 6px; font-weight: 600; }
.status-cell .value { font-size: 18px; color: #fff; font-weight: 700;
  font-family: 'JetBrains Mono', 'Consolas', monospace; letter-spacing: 0.5px; }
.status-cell .value.cyan { color: var(--cyan); }
.status-cell .value.green { color: var(--green); }
.status-cell .value.orange { color: var(--orange-soft); }
.players-bar { margin-top: 8px; height: 4px; background: rgba(110,198,255,0.12);
  border-radius: 2px; overflow: hidden; }
.players-bar > span { display: block; height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 8px var(--cyan); border-radius: 2px; transition: width .4s; }
.copy-ip { display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--cyan);
  padding: 12px 18px; border-radius: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; cursor: pointer;
  transition: all .2s; }
.copy-ip:hover { border-color: var(--cyan); background: rgba(110,198,255,0.08); }
.copy-ip svg { width: 14px; height: 14px; }

/* ---- Sections génériques ---- */
section.block { padding: 80px 32px; border-bottom: 1px solid var(--border); }
.container { max-width: 1400px; margin: 0 auto; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px; gap: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; font-weight: 800; letter-spacing: 0.5px; color: #fff; }
.section-head .tagline { font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 8px; font-weight: 600; display: block; }
.section-head .more { font-size: 12px; color: var(--text-dim); letter-spacing: 1.5px;
  text-transform: uppercase; border-bottom: 1px solid var(--border-strong); padding-bottom: 2px; }
.section-head .more:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---- News cards ---- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.news-card { background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; transition: all .25s;
  display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-3px); border-color: var(--border-strong);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 30px rgba(110,198,255,0.08); }
.news-thumb { height: 140px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border); }
.news-thumb svg { width: 100%; height: 100%; display: block; }
.news-tag { position: absolute; top: 12px; left: 12px;
  background: rgba(10,6,18,0.85); border: 1px solid var(--border-strong); color: #fff;
  padding: 4px 10px; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 700; border-radius: 3px; backdrop-filter: blur(6px); }
.news-tag.update { color: var(--cyan); border-color: rgba(110,198,255,0.5); }
.news-tag.event { color: var(--orange-soft); border-color: rgba(255,122,61,0.5); }
.news-tag.recrut { color: var(--magenta); border-color: rgba(255,90,138,0.5); }
.news-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.news-meta { font-size: 11px; color: var(--text-faint); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 8px; }
.news-meta .dot { color: var(--cyan); margin: 0 6px; }
.news-card h3 { font-size: 16px; color: #fff; margin-bottom: 8px; font-weight: 700; line-height: 1.3; }
.news-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; flex: 1; }
.news-read { margin-top: 14px; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cyan); font-weight: 700; }

/* ---- Changelog ---- */
.changelog { background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 28px 32px; }
.patch { padding: 16px 0; border-bottom: 1px dashed var(--border);
  display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: flex-start; }
.patch:last-child { border-bottom: none; }
.patch .ver { font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--cyan); font-weight: 700; }
.patch .ver .date { display: block; color: var(--text-faint);
  font-size: 11px; margin-top: 4px; font-weight: 400; }
.patch ul { list-style: none; }
.patch li { font-size: 13.5px; color: var(--text-dim);
  padding: 4px 0 4px 22px; position: relative; }
.patch li::before { content: ''; position: absolute; left: 0; top: 11px;
  width: 8px; height: 8px; border-radius: 2px; }
.patch li.add::before { background: var(--green); box-shadow: 0 0 6px var(--green); }
.patch li.fix::before { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.patch li.new::before { background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.patch li b { color: #fff; font-weight: 600; }

/* ---- Footer ---- */
footer { background: #07040d; padding: 40px 32px 24px; }
.footer-inner { max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: #fff; }
.footer-brand img { width: 32px; height: 32px; border-radius: 50%; }
.footer-links { display: flex; gap: 22px; font-size: 12px; color: var(--text-faint);
  letter-spacing: 1px; text-transform: uppercase; }
.footer-links a:hover { color: var(--cyan); }
.copyr { font-size: 11px; color: var(--text-faint); letter-spacing: 0.5px; }

/* ---- Page règlement ---- */
.page-header { padding: 80px 32px 40px; text-align: center;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0)); border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 42px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.page-header p { color: var(--text-dim); font-size: 14px; max-width: 600px; margin: 0 auto; }

.rules-layout { max-width: 1100px; margin: 0 auto;
  padding: 60px 32px; display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: flex-start; }
.rules-toc { position: sticky; top: 90px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.rules-toc h4 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px; }
.rules-toc a { display: block; padding: 8px 0; font-size: 13px; color: var(--text-dim);
  border-bottom: 1px solid var(--border); }
.rules-toc a:hover { color: var(--cyan); }
.rules-toc a:last-child { border-bottom: none; }

.rules-content { background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 32px 40px; }
.rules-content h2 { color: #fff; margin: 28px 0 14px; font-size: 22px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.rules-content h2:first-child { margin-top: 0; }
.rules-content h3 { color: var(--cyan); margin: 18px 0 8px; font-size: 16px; }
.rules-content p, .rules-content li { color: var(--text-dim); font-size: 14.5px;
  line-height: 1.75; margin-bottom: 10px; }
.rules-content ul { padding-left: 22px; }
.rules-content strong { color: #fff; }
.rules-content .warn { background: rgba(255,90,138,0.08); border-left: 3px solid var(--magenta);
  padding: 12px 16px; border-radius: 4px; margin: 16px 0; color: #ffd2dd; font-size: 14px; }
.rules-content .info { background: rgba(110,198,255,0.06); border-left: 3px solid var(--cyan);
  padding: 12px 16px; border-radius: 4px; margin: 16px 0; color: #cfe7ff; font-size: 14px; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .nav-inner { flex-wrap: wrap; padding: 12px 20px; }
  .nav-links { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  .nav-links a { padding: 8px 10px; font-size: 11px; letter-spacing: 1px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 60px 24px; gap: 28px; }
  .hero-logo { margin: 0 auto; width: 150px; height: 150px; }
  .hero-actions { justify-content: center; }
  .status-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .status-grid .copy-ip { grid-column: 1 / -1; justify-content: center; }
  section.block { padding: 56px 20px; }
  .rules-layout { grid-template-columns: 1fr; padding: 40px 20px; }
  .rules-toc { position: static; }
  .rules-content { padding: 24px; }
}
