/* Pages serveur — NovaLife & GMod (thème Uniora, aligné sur le fond clair du site) */
body.server-page {
  background: transparent;
  color: var(--flat-ink, #202a2f);
}

.server-page .srv-hero {
  padding: 132px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.server-page .srv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, var(--srv-glow, rgba(20, 184, 166, 0.14)), transparent 58%),
    radial-gradient(ellipse 40% 30% at 85% 20%, rgba(244, 208, 111, 0.06), transparent 50%);
  pointer-events: none;
}

.server-page--gmod {
  --srv-accent: #38bdf8;
  --srv-glow: rgba(56, 189, 248, 0.16);
  --srv-card-accent: rgba(56, 189, 248, 0.12);
}

.server-page--nova {
  --srv-accent: #f4d06f;
  --srv-glow: rgba(20, 184, 166, 0.14);
  --srv-card-accent: rgba(244, 208, 111, 0.1);
}

.server-page .srv-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.server-page .srv-hero h1 {
  color: var(--flat-ink, #202a2f);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1.02;
  margin-bottom: 20px;
}

.server-page .srv-hero h1 em {
  font-style: normal;
  color: var(--srv-accent, #f4d06f);
}

.server-page .srv-hero-lead {
  font-size: 1.05rem;
  color: var(--flat-muted, #657176);
  font-weight: 500;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 36px;
}

.server-page .srv-hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.server-page .srv-cover {
  margin: 48px auto 0;
  max-width: 880px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.server-page .srv-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  object-position: center 35%;
}

.server-page .srv-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 24, 32, 0.85), transparent 45%);
  pointer-events: none;
}

.server-page .srv-cover {
  position: relative;
}

/* Sections */
.server-page .srv-section {
  padding: 72px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.server-page .srv-section-head {
  text-align: center;
  margin-bottom: 44px;
}

.server-page .srv-section-head .section-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(32, 42, 47, 0.46);
  margin-bottom: 12px;
}

.server-page .srv-section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  color: var(--flat-ink, #202a2f);
}

.server-page .srv-section-head p {
  font-size: 0.98rem;
  color: var(--flat-muted, #657176);
  font-weight: 500;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Factions */
.server-page .srv-factions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.server-page .srv-faction {
  border-radius: 22px;
  padding: 36px 32px;
  background: var(--flat-surface, #fffdf8);
  border: 1px solid var(--flat-border, rgba(32, 42, 47, 0.11));
  box-shadow: var(--flat-shadow, 0 10px 28px rgba(68, 76, 80, 0.08));
  position: relative;
  overflow: hidden;
}

.server-page .srv-faction--law {
  border-color: rgba(96, 165, 250, 0.2);
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.08), rgba(255, 255, 255, 0.02));
}

.server-page .srv-faction--shadow {
  border-color: rgba(239, 68, 68, 0.18);
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.06), rgba(255, 255, 255, 0.02));
}

.server-page--gmod .srv-faction--law {
  border-color: rgba(56, 189, 248, 0.22);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.1), rgba(255, 255, 255, 0.02));
}

.server-page .srv-faction-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(32, 42, 47, 0.46);
  margin-bottom: 14px;
}

.server-page .srv-faction h3 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--flat-ink, #202a2f);
}

.server-page .srv-faction-desc {
  font-size: 0.9rem;
  color: var(--flat-muted, #657176);
  line-height: 1.65;
  margin-bottom: 24px;
  font-weight: 500;
}

.server-page .srv-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.server-page .srv-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.server-page .srv-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(32, 42, 47, 0.42);
}

.server-page .srv-dots {
  display: flex;
  gap: 5px;
}

.server-page .srv-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(32, 42, 47, 0.12);
}

.server-page .srv-dots span.on {
  background: var(--srv-accent, #f4d06f);
  box-shadow: 0 0 10px color-mix(in srgb, var(--srv-accent, #f4d06f) 50%, transparent);
}

.server-page .srv-faction--shadow .srv-dots span.on {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.server-page .srv-jobs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.server-page .srv-jobs li {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(32, 42, 47, 0.05);
  border: 1px solid rgba(32, 42, 47, 0.1);
  color: var(--flat-ink, #202a2f);
}

.server-page .srv-factions-or {
  display: none;
}

/* Lieux (quartiers / zones) */
.server-page .srv-places-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.server-page .district-card,
.server-page .zone-card {
  border-radius: 22px;
  padding: 26px 24px;
  background: var(--flat-surface, #fffdf8);
  border: 1px solid var(--flat-border, rgba(32, 42, 47, 0.11));
  transition: border-color 0.2s, transform 0.2s;
}

.server-page .district-card:hover,
.server-page .zone-card:hover {
  border-color: rgba(32, 42, 47, 0.18);
  transform: translateY(-2px);
}

.server-page .srv-place-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(32, 42, 47, 0.05);
}

.server-page .district-card h3,
.server-page .zone-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  color: var(--flat-ink, #202a2f);
}

.server-page .district-card p,
.server-page .zone-card p {
  font-size: 0.86rem;
  color: var(--flat-muted, #657176);
  line-height: 1.6;
  font-weight: 500;
}

.server-page .district-card[data-c="blue"] .srv-place-icon { color: #60a5fa; background: rgba(96, 165, 250, 0.12); }
.server-page .district-card[data-c="green"] .srv-place-icon { color: #34d399; background: rgba(52, 211, 153, 0.12); }
.server-page .district-card[data-c="purple"] .srv-place-icon { color: #f4d06f; background: rgba(244, 208, 111, 0.12); }
.server-page .district-card[data-c="amber"] .srv-place-icon { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
.server-page .zone-card[data-c="cyan"] .srv-place-icon { color: #38bdf8; background: rgba(56, 189, 248, 0.12); }
.server-page .zone-card[data-c="amber"] .srv-place-icon { color: #f59e0b; background: rgba(245, 158, 11, 0.12); }
.server-page .zone-card[data-c="red"] .srv-place-icon { color: #f87171; background: rgba(248, 113, 113, 0.12); }
.server-page .zone-card[data-c="purple"] .srv-place-icon { color: #f4d06f; background: rgba(244, 208, 111, 0.12); }

/* Rejoindre */
.server-page .srv-connect {
  padding: 72px 24px 96px;
  max-width: 1100px;
  margin: 0 auto;
}

.server-page .srv-connect-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 44px 40px;
  border-radius: 22px;
  background: var(--flat-surface, #fffdf8);
  border: 1px solid var(--flat-border, rgba(32, 42, 47, 0.11));
  box-shadow: var(--flat-shadow, 0 10px 28px rgba(68, 76, 80, 0.08));
}

.server-page .srv-connect-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--srv-accent, #f4d06f);
  margin-bottom: 12px;
  display: block;
}

.server-page .srv-connect-panel h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--flat-ink, #202a2f);
}

.server-page .srv-connect-panel .srv-connect-text {
  font-size: 0.92rem;
  color: var(--flat-muted, #657176);
  line-height: 1.65;
  margin-bottom: 28px;
  font-weight: 500;
}

.server-page .srv-connect-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.server-page .srv-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.server-page .srv-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(32, 42, 47, 0.08);
}

.server-page .srv-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.server-page .srv-step-n {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--srv-accent, #f4d06f);
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.server-page .srv-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--flat-ink, #202a2f);
  margin-bottom: 4px;
}

.server-page .srv-step p {
  font-size: 0.84rem;
  color: var(--flat-muted, #657176);
  line-height: 1.6;
  font-weight: 500;
}

/* Footer compact */
.site-footer--compact {
  background: rgba(255, 253, 248, 0.34);
  border-top: 1px solid rgba(32, 42, 47, 0.1);
  padding: 40px 24px;
}

.site-footer--compact .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer--compact nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer--compact nav a {
  font-size: 0.84rem;
  color: rgba(32, 42, 47, 0.62);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.site-footer--compact nav a:hover {
  color: var(--flat-ink, #202a2f);
}

.site-footer--compact .footer-copy {
  font-size: 0.8rem;
  color: var(--flat-muted, #657176);
  font-weight: 500;
}

.site-footer--compact .footer-admin-link {
  color: rgba(32, 42, 47, 0.28);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.site-footer--compact .footer-admin-link:hover {
  color: rgba(32, 42, 47, 0.55);
}

@media (max-width: 900px) {
  .server-page .srv-factions {
    grid-template-columns: 1fr;
  }

  .server-page .srv-places-grid {
    grid-template-columns: 1fr;
  }

  .server-page .srv-connect-panel {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

@media (max-width: 720px) {
  .server-page .srv-hero h1 {
    letter-spacing: -2px;
  }

  .site-footer--compact .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
