/* ==========================================================================
   HonteRP — Reusable Components (components.css)
   ========================================================================== */

/* ==========================================================================
   1. NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(9, 9, 15, 0.75);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.is-scrolled {
  background: rgba(9, 9, 15, 0.92);
  border-bottom-color: rgba(168, 85, 247, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--brand-gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 0 16px var(--glow-primary);
  color: #fff;
}

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

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--magenta-400);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Statut live pastille dans la nav */
.server-pulse-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--emerald-400);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.server-pulse-pill:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--emerald-400);
}

/* Serveur injoignable : la pastille passe en rouge et cesse de pulser */
.server-pulse-pill.is-offline {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.3);
  color: var(--rose-400);
}

.server-pulse-pill.is-offline:hover {
  background: rgba(244, 63, 94, 0.18);
  border-color: var(--rose-400);
}

.server-pulse-pill.is-offline .pulse-dot {
  background-color: var(--rose-400);
  box-shadow: 0 0 10px var(--rose-400);
  animation: none;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.nav-toggle-btn {
  display: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.nav-toggle-btn:hover {
  border-color: var(--magenta-400);
  background: var(--glass-bg-hover);
}

/* ==========================================================================
   2. BOUTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-base),
              background var(--transition-base),
              border-color var(--transition-base),
              color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(217, 70, 239, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(168, 85, 247, 0.12);
  color: var(--magenta-400);
  border-color: rgba(168, 85, 247, 0.35);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(217, 70, 239, 0.2);
  border-color: var(--magenta-400);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(217, 70, 239, 0.2);
}

.btn-steam {
  background: linear-gradient(135deg, #171a21 0%, #1b2838 50%, #2a475e 100%);
  color: #c7d5e0;
  border-color: rgba(102, 192, 244, 0.3);
}

.btn-steam:hover {
  border-color: #66c0f4;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(102, 192, 244, 0.3);
  transform: translateY(-2px);
}

.btn-discord {
  background: #5865f2;
  color: #ffffff;
}

.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-icon-only {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   3. BADGES & ÉTIQUETTES
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.badge-magenta {
  background: rgba(217, 70, 239, 0.15);
  color: var(--magenta-400);
  border-color: rgba(217, 70, 239, 0.3);
}

.badge-violet {
  background: rgba(168, 85, 247, 0.15);
  color: var(--violet-400);
  border-color: rgba(168, 85, 247, 0.3);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-400);
  border-color: rgba(6, 182, 212, 0.3);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-amber {
  background: rgba(251, 191, 36, 0.15);
  color: var(--amber-400);
  border-color: rgba(251, 191, 36, 0.3);
}

.badge-rose {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose-400);
  border-color: rgba(244, 63, 94, 0.3);
}

/* ==========================================================================
   4. HERO SECTION & EN-TÊTES
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
  text-align: center;
}

.hero-glow-back {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 450px;
  background: radial-gradient(ellipse, rgba(217, 70, 239, 0.22) 0%, rgba(168, 85, 247, 0.1) 45%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

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

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: rgba(217, 70, 239, 0.1);
  border: 1px solid rgba(217, 70, 239, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--magenta-400);
  margin-bottom: 24px;
}

.hero-title {
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* ==========================================================================
   5. WIDGET STATUT SERVEUR (LIVE BANNER)
   ========================================================================== */
.server-status-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(26, 22, 48, 0.8) 0%, rgba(18, 16, 32, 0.9) 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(168, 85, 247, 0.12);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  text-align: left;
}

.server-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  display: grid;
  place-items: center;
  color: var(--magenta-400);
}

.server-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.server-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.server-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.server-meta-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.server-ip-copy-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--magenta-400);
}

.server-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   6. SECTIONS GLOBALES
   ========================================================================== */
.section {
  position: relative;
  padding: var(--section-spacing-y) 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--magenta-400);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   7. GRILLE DE CARTES EXCLUSIVITÉS & FEATURES
   ========================================================================== */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.feature-card {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-icon-container {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid rgba(217, 70, 239, 0.35);
  display: grid;
  place-items: center;
  color: var(--magenta-400);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.15);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover .feature-icon-container {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.35);
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.feature-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
}

/* ==========================================================================
   8. STATS & COMPTEURS
   ========================================================================== */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.stat-box {
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   9. ÉTAPES & ONBOARDING (STEPS)
   ========================================================================== */
.steps-timeline {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 2px solid var(--violet-500);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--magenta-400);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   10. CTA FINAL & BANNIÈRE DE CONVERSION
   ========================================================================== */
.cta-banner-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.cta-banner-box {
  padding: 64px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.2) 0%, rgba(168, 85, 247, 0.15) 50%, rgba(99, 102, 241, 0.2) 100%);
  border: 1px solid rgba(217, 70, 239, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(217, 70, 239, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  color: #ffffff;
}

.cta-banner-box p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ==========================================================================
   11. PIED DE PAGE (FOOTER)
   ========================================================================== */
.site-footer {
  background: #06060a;
  border-top: 1px solid rgba(168, 85, 247, 0.15);
  padding: 80px 0 36px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand-col p {
  margin-top: 16px;
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 340px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--magenta-400);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
  color: var(--magenta-400);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   12. PAGE RÈGLES : RECHERCHE, TABS, SOMMAIRE & ACCORDÉONS
   ========================================================================== */
.rules-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.toc-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  padding: 24px;
  max-height: calc(100vh - var(--nav-height) - 48px);
  overflow-y: auto;
}

.toc-header {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 16px;
}

.toc-category-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--magenta-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 18px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-category-title:first-of-type {
  margin-top: 0;
}

.toc-list {
  list-style: none;
  counter-reset: toc-counter;
}

.toc-list li {
  counter-increment: toc-counter;
}

.toc-list a {
  display: block;
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}

.toc-list a:hover {
  color: #ffffff;
  background: rgba(168, 85, 247, 0.08);
}

.toc-list a.active {
  color: var(--magenta-400);
  background: rgba(217, 70, 239, 0.12);
  border-left-color: var(--magenta-400);
  font-weight: 700;
}

/* Barre de recherche du règlement */
.rule-search-container {
  margin-bottom: 36px;
}

.rule-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.rule-search-icon {
  position: absolute;
  left: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.rule-search-input {
  width: 100%;
  padding: 16px 110px 16px 54px;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 1rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.rule-search-input:focus {
  outline: none;
  border-color: var(--magenta-500);
  background: rgba(26, 22, 48, 0.9);
  box-shadow: 0 0 25px rgba(217, 70, 239, 0.25);
}

.rule-search-shortcut {
  position: absolute;
  right: 50px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  pointer-events: none;
}

.rule-search-clear {
  position: absolute;
  right: 14px;
  width: 30px;
  height: 30px;
  display: none;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.2);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.rule-search-clear:hover {
  background: var(--magenta-500);
}

.rule-search-container.has-query .rule-search-clear {
  display: grid;
}

.rule-filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-tab-btn {
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.filter-tab-btn:hover {
  color: #ffffff;
  border-color: var(--magenta-400);
}

.filter-tab-btn.active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(217, 70, 239, 0.35);
}

/* Blocs de Règles */
.rule-category-section {
  margin-bottom: 64px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.category-banner {
  padding: 20px 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.12) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid rgba(217, 70, 239, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.category-banner h2 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rule-article {
  padding: 32px;
  margin-bottom: 28px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.rule-article-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.rule-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rule-index {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--brand-gradient);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.rule-article-header h3 {
  font-size: 1.35rem;
}

.rule-anchor-btn {
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-xs);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.rule-anchor-btn:hover {
  color: var(--magenta-400);
  background: rgba(217, 70, 239, 0.1);
}

.rules-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rules-items-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.rules-items-list li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta-400);
  box-shadow: 0 0 8px var(--magenta-400);
}

.rules-items-list strong {
  color: #ffffff;
}

/* Illustrations de règles (exemples in-game) */
.rule-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
  gap: 16px;
  margin: 14px 0 6px;
}

.rule-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(14, 14, 24, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.2);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.rule-figure:hover {
  border-color: rgba(217, 70, 239, 0.45);
  transform: translateY(-2px);
}

.rule-figure.is-ok {
  border-color: rgba(16, 185, 129, 0.35);
}

.rule-figure.is-ko {
  border-color: rgba(244, 63, 94, 0.35);
}

.rule-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-core);
  cursor: zoom-in;
}

.rule-figure img:focus-visible {
  outline: 2px solid var(--magenta-400);
  outline-offset: -2px;
}

.rule-figure figcaption {
  padding: 10px 14px 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.figure-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}

.figure-tag.tag-ok {
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.figure-tag.tag-ko {
  color: var(--rose-400);
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.figure-tag.tag-info {
  color: var(--violet-400);
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

/* Visionneuse plein écran des illustrations */
.figure-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 40px 24px;
  background: rgba(9, 9, 15, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.figure-lightbox.is-active {
  display: grid;
  opacity: 1;
}

.figure-lightbox img {
  max-width: min(1280px, 100%);
  max-height: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(217, 70, 239, 0.35);
  box-shadow: var(--shadow-lg);
}

.figure-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.figure-lightbox-close:hover {
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
}

@media (prefers-reduced-motion: reduce) {
  .rule-figure:hover {
    transform: none;
  }
}

/* Fiches Métiers */
.job-card {
  margin: 18px 0;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(14, 14, 24, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.2);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.job-card:hover {
  border-color: rgba(217, 70, 239, 0.4);
  background: rgba(20, 19, 34, 0.8);
}

.job-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.job-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

/* Tableau Pénalités */
.table-responsive-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(168, 85, 247, 0.2);
  background: rgba(14, 14, 24, 0.6);
}

.penalty-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.penalty-table th {
  padding: 16px 20px;
  background: rgba(168, 85, 247, 0.1);
  color: var(--magenta-400);
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.penalty-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
  color: var(--text-secondary);
}

.penalty-table tr:hover td {
  background: rgba(168, 85, 247, 0.05);
}

.penalty-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   13. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(18, 16, 32, 0.95);
  border: 1px solid var(--magenta-400);
  backdrop-filter: blur(16px);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(217, 70, 239, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all var(--transition-base);
}

.toast.is-active {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ==========================================================================
   14. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1080px) {
  .rules-layout-grid {
    grid-template-columns: 1fr;
  }
  .toc-sidebar {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .server-status-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .server-icon-wrap {
    margin: 0 auto;
  }
  .server-meta-top, .server-meta-bottom {
    justify-content: center;
  }
  .server-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(9, 9, 15, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.25);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
  }
  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle-btn {
    display: flex;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .step-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
