/* ═══════════════════════════════════════════════════════════
 * THEME PRO — Sur-couche de design pour le site Royaume 2529
 * Appliquée par dessus index.html, surcharge les styles existants
 * sans casser la logique. Palette saphir/or préservée.
 * ═══════════════════════════════════════════════════════════ */

/* ── Smooth scroll & base tuning ───────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background-image:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(72,120,190,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 85% 100%, rgba(72,120,190,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(200,160,74,0.03) 0%, transparent 60%);
}

/* body::before noise overlay retiré — mix-blend-mode: overlay sur tout
   l'écran force un recompositing à chaque frame. Gain perf important. */

/* ── Header upgrade (opaque, pas de blur flou) ─────────────── */
header {
  background: rgba(8,10,18,0.94) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background 0.3s ease;
}
header.scrolled { background: #080a12 !important; }

/* ── Boutons : shine effect générique ──────────────────────── */
.btn, button.btn, a.btn, .btn-discord, .btn-primary-cta {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
  will-change: transform;
}
.btn::after, button.btn::after, a.btn::after, .btn-discord::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.btn:hover::after, button.btn:hover::after, a.btn:hover::after, .btn-discord:hover::after {
  transform: translateX(100%);
}
.btn:hover, button.btn:hover, a.btn:hover {
  transform: translateY(-1px);
}

.btn-discord {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s !important;
  box-shadow: 0 6px 22px rgba(88,101,242,0.25);
}
.btn-discord:hover { box-shadow: 0 10px 28px rgba(88,101,242,0.4); transform: translateY(-2px); }

/* ── Cards : tilt-ready + glassmorphism ────────────────────── */
.card, .pourquoi-card, .alliance-card, .actu-card, .stats-card {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.card::before, .pourquoi-card::before, .alliance-card::before, .actu-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(130,180,228,0.10), transparent 40%);
  opacity: 0; transition: opacity 0.35s;
  pointer-events: none;
  border-radius: inherit;
}
.pourquoi-card:hover::before, .alliance-card:hover::before, .actu-card:hover::before {
  opacity: 1;
}
.pourquoi-card, .alliance-card, .actu-card { transform-style: preserve-3d; }

/* ── Hero : container pour particules + decoration ─────────── */
.hero { position: relative; }
.hero-particles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

/* Reveal words inside hero title */
.reveal-word { display: inline-block; overflow: hidden; vertical-align: top; padding-right: 0.18em; line-height: 1.05; }
/* will-change retiré : anim joue 1x au mount puis fin, inutile de promouvoir en layer perpétuel */
.reveal-inner { display: inline-block; transform: translateY(110%); }
.reveal-ready .reveal-inner { animation: word-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.reveal-ready .reveal-word:nth-child(1) .reveal-inner { animation-delay: 0.05s; }
.reveal-ready .reveal-word:nth-child(2) .reveal-inner { animation-delay: 0.12s; }
.reveal-ready .reveal-word:nth-child(3) .reveal-inner { animation-delay: 0.19s; }
.reveal-ready .reveal-word:nth-child(4) .reveal-inner { animation-delay: 0.26s; }
.reveal-ready .reveal-word:nth-child(5) .reveal-inner { animation-delay: 0.33s; }
@keyframes word-up { to { transform: translateY(0); } }

/* Fade-up generic */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* ── Page transitions ──────────────────────────────────────── */
/* Bascule de page instantanée — l'ancienne animation page-in fade + translate
   créait un flash opacity 0 → 1 à chaque ouverture de catégorie. */
.page:not(.active) { display: none !important; }

/* ── Stats tables polish ───────────────────────────────────── */
.stats-subtabs { background: rgba(19,28,48,0.6); padding: 4px; border-radius: 10px; gap: 2px; }
.stats-subtab { border-radius: 7px; transition: background 0.25s, color 0.25s; }
.stats-subtab:hover { background: rgba(72,120,190,0.08); color: var(--text); }
.stats-subtab.active { background: linear-gradient(135deg, rgba(72,120,190,0.3), rgba(72,120,190,0.12)) !important; }

table tbody tr { transition: background 0.2s, transform 0.2s; }
table tbody tr:hover { background: rgba(72,120,190,0.08); }

/* Search inputs */
.form-input {
  background: rgba(19,28,48,0.6) !important;
  border: 1px solid var(--border) !important;
  transition: border-color 0.25s, box-shadow 0.25s !important;
}
.form-input:focus {
  border-color: var(--border-bright) !important;
  box-shadow: 0 0 0 3px rgba(72,120,190,0.12) !important;
  outline: none !important;
}

/* ── Scroll progress bar ───────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--deco-gold), var(--gold-light), var(--deco-gold));
  transform-origin: 0%; transform: scaleX(0);
  z-index: 1000; box-shadow: 0 0 14px rgba(200,160,74,0.65);
}

/* ── Custom cursor : DÉSACTIVÉ (supprimé par demande user) ─── */
.cursor-dot, .cursor-ring { display: none !important; }

/* ── Command palette ───────────────────────────────────────── */
.cmdk-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(4,6,12,0.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 14vh;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.cmdk-overlay.open { opacity: 1; pointer-events: auto; }
.cmdk {
  width: 100%; max-width: 560px;
  background: linear-gradient(180deg, rgba(19,28,48,0.98), rgba(13,18,40,0.98));
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(130,180,228,0.1);
  overflow: hidden;
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.cmdk-overlay.open .cmdk { transform: translateY(0) scale(1); }
.cmdk-input {
  width: 100%; padding: 1.05rem 1.3rem;
  background: transparent; border: none;
  color: var(--text); font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1rem; outline: none;
  border-bottom: 1px solid var(--border);
}
.cmdk-input::placeholder { color: var(--text-dim); }
.cmdk-list { max-height: 340px; overflow-y: auto; padding: 0.35rem; }
.cmdk-group {
  font-family: 'Cinzel', serif; font-size: 0.6rem;
  letter-spacing: 0.22rem; text-transform: uppercase;
  color: var(--deco-gold);
  padding: 0.75rem 1rem 0.35rem;
}
.cmdk-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.65rem 1rem; border-radius: 6px;
  cursor: pointer; color: var(--text-muted);
  font-size: 0.92rem;
}
.cmdk-item:hover, .cmdk-item.active {
  background: rgba(72,120,190,0.15); color: var(--text);
}
.cmdk-item-icon { width: 22px; text-align: center; color: var(--gold-light); font-size: 0.95rem; }
.cmdk-item-shortcut { margin-left: auto; display: flex; gap: 3px; }
.cmdk-footer {
  padding: 0.55rem 1rem; border-top: 1px solid var(--border);
  display: flex; gap: 1rem; font-size: 0.7rem; color: var(--text-dim);
}
.cmdk-kbd {
  display: inline-flex; align-items: center;
  padding: 1px 5px;
  background: rgba(72,120,190,0.12); border: 1px solid var(--border);
  border-radius: 4px; font-family: monospace; font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── Toasts ────────────────────────────────────────────────── */
.toast-stack {
  position: fixed; top: 1.2rem; right: 1.2rem;
  z-index: 600; display: flex; flex-direction: column; gap: 0.55rem;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: rgba(19,28,48,0.95);
  border: 1px solid var(--border-bright);
  border-left: 3px solid var(--deco-gold);
  border-radius: 10px; color: var(--text); font-size: 0.93rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  min-width: 260px; max-width: 420px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translateX(110%); opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s;
}
.toast.in { transform: translateX(0); opacity: 1; }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--red-bright); }
.toast-icon { color: var(--deco-gold); font-size: 1.05rem; }
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--red-bright); }

/* ── Hero stats upgrade (count-up ready) ───────────────────── */
.hero-stat-num { transition: text-shadow 0.3s; }
.hero-stat:hover .hero-stat-num { text-shadow: 0 0 24px rgba(130,180,228,0.4); }

/* ── Pourquoi cards : 3D tilt setup ───────────────────────── */
.pourquoi-card {
  transform-style: preserve-3d;
}
.pourquoi-card > * { transform: translateZ(0); }
.pourquoi-card-title, .pourquoi-card-label { position: relative; z-index: 1; }

/* ── Subtle lift on sticky scroll ──────────────────────────── */
header { transition: box-shadow 0.3s; }
header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,0.5); }

/* ── Focus ring cohérent ───────────────────────────────────── */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--deco-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Hero-stats : mise en valeur des nombres ───────────────── */
.hero-stat-num {
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--deco-gold-light) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Pagination buttons ────────────────────────────────────── */
#stats-page-nav button, #kvk-page-nav button {
  transition: all 0.2s;
}
#stats-page-nav button:hover, #kvk-page-nav button:hover {
  transform: translateY(-1px);
}

/* ── Preview badge (haut à gauche, indique environnement) ──── */
.preview-badge {
  position: fixed; bottom: 1rem; left: 1rem;
  z-index: 900;
  padding: 0.4rem 0.75rem;
  background: rgba(200,160,74,0.15);
  border: 1px solid rgba(200,160,74,0.4);
  border-radius: 100px;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem; letter-spacing: 0.22rem; text-transform: uppercase;
  color: var(--deco-gold-light);
  display: flex; align-items: center; gap: 0.4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
}
.preview-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--deco-gold);
  box-shadow: 0 0 8px var(--deco-gold);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.35); }
}

/* ═══════════════════════════════════════════════════════════
 * V2 — REDESIGN AGRESSIF
 * Hero cinémagraphique, cartes pro, tableaux premium,
 * modals, skeleton, empty states, mobile, admin ergonomie
 * ═══════════════════════════════════════════════════════════ */

/* ── HERO : cinémagraphique ──────────────────────────────── */
.hero {
  position: relative;
  min-height: 78vh;
  padding: 6rem 1.5rem 4rem !important;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background-size: cover !important;
  background-position: center !important;
}
/* overlay sombre + dégradé saphir par-dessus l'image château */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(8,10,18,0.35), rgba(8,10,18,0.9) 75%),
    linear-gradient(180deg, rgba(8,10,18,0.55) 0%, rgba(8,10,18,0.25) 40%, rgba(8,10,18,0.95) 100%),
    radial-gradient(ellipse 45% 35% at 20% 20%, rgba(72,120,190,0.25), transparent 55%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(200,160,74,0.12), transparent 55%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, var(--dark) 100%);
}
.hero > *:not(.hero-particles) { position: relative; z-index: 2; }

/* Tag haut du hero — capsule saphir/or */
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.55rem !important;
  font-family: 'Cinzel', serif !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.28rem !important;
  text-transform: uppercase !important;
  color: var(--deco-gold-light) !important;
  padding: 0.45rem 1.1rem !important;
  border: 1px solid rgba(200,160,74,0.4) !important;
  border-radius: 100px !important;
  background: rgba(200,160,74,0.07) !important;
  backdrop-filter: blur(6px);
  margin-bottom: 2rem !important;
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--deco-gold);
  box-shadow: 0 0 10px var(--deco-gold);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Titre XXL */
.hero-title {
  font-family: 'Cinzel', serif !important;
  font-weight: 800 !important;
  font-size: clamp(2.4rem, 6vw, 5rem) !important;
  line-height: 1.05 !important;
  letter-spacing: 0.01em !important;
  margin-bottom: 0.5rem !important;
  max-width: 20ch;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.hero-title .t2 {
  display: block;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 40%, var(--deco-gold-light) 70%, var(--deco-gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title .reveal-word {
  padding-right: 0.22em;
}
.hero-title .t2 .reveal-inner {
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 40%, var(--deco-gold-light) 70%, var(--deco-gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Étoiles hero (override inline) */
.hero-stars,
.hero > div[style*="★★★★★"] {
  color: var(--deco-gold) !important;
  letter-spacing: 0.6rem !important;
  text-shadow: 0 0 20px rgba(200,160,74,0.6) !important;
  font-size: 1.15rem !important;
  margin: 0.7rem 0 1.8rem !important;
}

/* Sub-texte hero */
.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 2rem;
  font-style: italic;
  line-height: 1.55;
}

/* CTAs hero */
.hero-ctas {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.hero .btn-discord {
  padding: 0.95rem 2rem !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.16rem !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #5865f2, #4752c4) !important;
}
.hero-ctas .btn-ghost {
  padding: 0.95rem 2rem;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem; letter-spacing: 0.16rem;
  text-transform: uppercase; color: var(--text);
  background: transparent;
  border: 1px solid var(--border-bright);
  border-radius: 10px; cursor: pointer;
  transition: all 0.25s;
}
.hero-ctas .btn-ghost:hover {
  background: rgba(72,120,190,0.1);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}

/* Divider : désactivé dans le hero (demande user — "carré noir avec rond jaune" inutile) */
.hero .hero-divider { display: none !important; }
/* Ailleurs : simple ligne dorée sans ornement central */
.hero-divider {
  width: 120px !important; height: 1px !important;
  margin: 2rem auto !important;
  background: linear-gradient(90deg, transparent, var(--deco-gold), transparent) !important;
}

/* Hero stats : carte unifiée glass */
.hero-stats, #hero-stats-area {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  gap: 1px !important;
  max-width: 900px !important; width: 100% !important;
  margin: 2rem auto 0 !important;
  background: var(--border) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  backdrop-filter: blur(10px);
  padding: 0 !important;
}
.hero-stat {
  padding: 1.6rem 1rem !important;
  background: rgba(13,18,40,0.72) !important;
  border: none !important;
  border-radius: 0 !important;
  text-align: center !important;
  transition: background 0.3s !important;
  min-width: auto !important;
}
.hero-stat:hover { background: rgba(72,120,190,0.12) !important; }
.hero-stat-num {
  font-family: 'Cinzel', serif !important;
  font-size: 2.2rem !important; font-weight: 800 !important;
  margin-bottom: 0.35rem !important;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--deco-gold-light) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block !important;
  line-height: 1 !important;
}
.hero-stat-label {
  font-family: 'Cinzel', serif !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.22rem !important;
  text-transform: uppercase !important;
  color: var(--text-muted) !important;
  display: block !important;
}

/* ── POURQUOI cards : icônes + label doré ─────────────────── */
.pourquoi-section { padding: 5rem 1.5rem !important; }
.pourquoi-badge {
  font-family: 'Cinzel', serif !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.28rem !important;
  color: var(--deco-gold) !important;
  padding: 0.35rem 0.9rem !important;
  border: 1px solid rgba(200,160,74,0.3) !important;
  border-radius: 100px !important;
  background: rgba(200,160,74,0.04);
  display: inline-block;
  margin-bottom: 1.2rem !important;
}
.pourquoi-title {
  font-family: 'Cinzel', serif !important;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem) !important;
  margin-bottom: 0.8rem !important;
  font-weight: 700 !important;
}
.pourquoi-sub {
  color: var(--text-muted) !important;
  font-size: 1.05rem !important;
  margin-bottom: 3rem !important;
}

.pourquoi-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 1.2rem !important;
  perspective: 1200px;
}
.pourquoi-card {
  position: relative !important;
  padding: 1.8rem 1.4rem !important;
  background: linear-gradient(180deg, rgba(19,28,48,0.85), rgba(13,18,40,0.95)) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  overflow: hidden;
  transform-style: preserve-3d;
}
.pourquoi-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(72,120,190,0.28), rgba(72,120,190,0.06));
  border: 1px solid var(--border-bright);
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  transform: translateZ(20px);
  box-shadow: 0 6px 20px rgba(72,120,190,0.2), inset 0 1px 0 rgba(255,255,255,0.07);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.pourquoi-card:hover .pourquoi-card-icon {
  transform: translateZ(30px) scale(1.08) rotate(-3deg);
}
.pourquoi-card-label {
  font-family: 'Cinzel', serif !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.22rem !important;
  color: var(--deco-gold) !important;
  text-transform: uppercase !important;
  margin-bottom: 0.5rem !important;
}
.pourquoi-card-title {
  font-family: 'Cinzel', serif !important;
  font-size: 1.2rem !important;
  color: var(--text) !important;
  margin-bottom: 0.7rem !important;
  transform: translateZ(10px);
}
.pourquoi-card-desc {
  color: var(--text-muted) !important;
  font-size: 0.96rem !important;
  line-height: 1.55 !important;
}

/* ── TABLEAUX premium ─────────────────────────────────────── */
table {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(19,28,48,0.55), rgba(13,18,40,0.75));
}
table thead tr {
  background: rgba(72,120,190,0.1) !important;
  border-bottom: 1px solid var(--border-bright);
}
table thead th {
  font-family: 'Cinzel', serif !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.22rem !important;
  text-transform: uppercase !important;
  color: var(--deco-gold) !important;
  padding: 1rem 0.9rem !important;
}
table tbody td { padding: 0.9rem !important; }
table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.2s, transform 0.2s; }
table tbody tr:last-child { border-bottom: none; }
table tbody tr:hover { background: rgba(72,120,190,0.1) !important; }

/* Rank column : premier <td> en doré */
table tbody tr td:first-child:not([colspan]) {
  font-family: 'Cinzel', serif;
  color: var(--deco-gold);
  font-weight: 700;
}
/* Top 3 ranks glow */
table tbody tr:nth-child(1) td:first-child { color: var(--deco-gold-light); text-shadow: 0 0 10px var(--deco-gold); }
table tbody tr:nth-child(2) td:first-child { color: var(--deco-gold); }
table tbody tr:nth-child(3) td:first-child { color: rgba(200,160,74,0.85); }

/* ── CARDS génériques polish ──────────────────────────────── */
.card {
  background: linear-gradient(180deg, rgba(19,28,48,0.65), rgba(13,18,40,0.88)) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(8px);
}
.card-title {
  font-family: 'Cinzel', serif !important;
  font-size: 1.2rem !important;
  color: var(--gold-light) !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.08rem;
}

/* ── ADMIN : ergonomie sidebar + content ──────────────────── */
.admin-layout { gap: 0 !important; }
.admin-sidebar {
  background: linear-gradient(180deg, rgba(6,9,22,0.98), rgba(8,10,18,0.98)) !important;
  border-right: 1px solid var(--sidebar-border) !important;
  backdrop-filter: blur(10px);
}
.admin-sidebar a, .admin-sidebar .asidenav-link, .admin-sidebar .asidenav-item {
  transition: all 0.2s !important;
  border-radius: 8px !important;
  margin: 2px 8px !important;
  position: relative;
}
.admin-sidebar a:hover, .admin-sidebar .asidenav-link:hover {
  background: rgba(72,120,190,0.1) !important;
  color: var(--gold-light) !important;
  transform: translateX(2px);
}
.admin-sidebar a.active, .admin-sidebar .asidenav-link.active {
  background: linear-gradient(135deg, rgba(72,120,190,0.25), rgba(72,120,190,0.1)) !important;
  color: var(--text) !important;
  box-shadow: inset 2px 0 0 var(--deco-gold);
}

.admin-content { padding: 1.5rem 2rem !important; }
.admin-content h3, .admin-content .section-title {
  font-family: 'Cinzel', serif;
  color: var(--gold-light);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.08rem;
}

/* Admin form inputs */
.admin-content input[type="text"],
.admin-content input[type="number"],
.admin-content input[type="url"],
.admin-content input[type="email"],
.admin-content textarea,
.admin-content select {
  background: rgba(19,28,48,0.7) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 0.65rem 0.9rem !important;
  color: var(--text) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  font-family: inherit !important;
}
.admin-content input:focus, .admin-content textarea:focus, .admin-content select:focus {
  border-color: var(--border-bright) !important;
  box-shadow: 0 0 0 3px rgba(72,120,190,0.15) !important;
  outline: none !important;
}

/* Boutons destructifs en rouge */
.btn-danger, button.danger, [data-danger] {
  background: linear-gradient(135deg, var(--red-bright), var(--red-rok)) !important;
  color: #fff !important;
  border: 1px solid rgba(190,62,62,0.5) !important;
}
.btn-danger:hover { box-shadow: 0 8px 20px rgba(190,62,62,0.35) !important; }

/* Boutons success */
.btn-success { background: linear-gradient(135deg, #4a9a57, #3a7a47) !important; color: #fff !important; }

/* ── MODAL (confirm replacement) ──────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(4,6,12,0.7);
  backdrop-filter: blur(6px);
  display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 460px;
  background: linear-gradient(180deg, rgba(19,28,48,0.98), rgba(13,18,40,0.98));
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(130,180,228,0.1);
  overflow: hidden;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-body {
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.modal-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(200,160,74,0.15);
  color: var(--deco-gold); font-size: 1.4rem;
  margin-bottom: 0.3rem;
}
.modal.danger .modal-icon {
  background: rgba(190,62,62,0.15);
  color: var(--red-bright);
}
.modal-title {
  font-family: 'Cinzel', serif; font-size: 1.15rem;
  color: var(--text); line-height: 1.3;
}
.modal-message {
  color: var(--text-muted); font-size: 0.96rem;
  line-height: 1.55;
}
.modal-actions {
  display: flex; gap: 0.7rem; justify-content: flex-end;
  padding: 0.85rem 1.5rem;
  background: rgba(6,9,22,0.4);
  border-top: 1px solid var(--border);
}
.modal-actions button {
  padding: 0.6rem 1.3rem;
  font-family: 'Cinzel', serif; font-size: 0.72rem;
  letter-spacing: 0.15rem; text-transform: uppercase;
  border-radius: 8px; cursor: pointer;
  transition: all 0.2s;
}
.modal-btn-cancel {
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
}
.modal-btn-cancel:hover { background: rgba(72,120,190,0.08); color: var(--text); }
.modal-btn-confirm {
  background: linear-gradient(135deg, var(--deco-gold-light), var(--deco-gold));
  color: var(--dark); border: none; font-weight: 700;
}
.modal-btn-confirm.danger {
  background: linear-gradient(135deg, var(--red-bright), var(--red-rok));
  color: #fff;
}
.modal-btn-confirm:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(200,160,74,0.3); }
.modal-btn-confirm.danger:hover { box-shadow: 0 8px 20px rgba(190,62,62,0.35); }

/* ── SKELETON loading ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, rgba(72,120,190,0.08), rgba(72,120,190,0.18), rgba(72,120,190,0.08));
  background-size: 200% 100%;
  animation: sk-wave 1.4s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes sk-wave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-line { height: 14px; margin: 8px 0; }
.skeleton-block { height: 120px; }
.skeleton-row { height: 40px; margin: 6px 0; }

.page-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 320px; gap: 1rem; padding: 2rem;
}
.page-loading .orb {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--deco-gold);
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.page-loading-label {
  font-family: 'Cinzel', serif; font-size: 0.72rem;
  letter-spacing: 0.3rem; text-transform: uppercase;
  color: var(--text-muted);
}

/* ── EMPTY state ──────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 3rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.empty-state-icon {
  width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(72,120,190,0.08);
  border: 1px solid var(--border);
  color: var(--text-muted); font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.empty-state-title {
  font-family: 'Cinzel', serif; font-size: 1.1rem;
  color: var(--text);
}
.empty-state-desc { color: var(--text-muted); max-width: 380px; font-size: 0.95rem; }

/* ── MOBILE BURGER ────────────────────────────────────────── */
.mobile-burger {
  display: none;
  width: 36px; height: 36px;
  background: transparent; border: 1px solid var(--border-bright);
  border-radius: 8px; cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.mobile-burger span {
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-burger.open span:nth-child(2) { opacity: 0; }
.mobile-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .mobile-burger { display: flex; }
  header nav { display: none !important; }
  header nav.mobile-open {
    display: flex !important;
    position: fixed; top: 70px; left: 0; right: 0;
    flex-direction: column !important;
    background: rgba(8,10,18,0.98);
    border-bottom: 1px solid var(--border-bright);
    padding: 1rem;
    gap: 0.4rem !important;
    z-index: 99;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: slide-down 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  header nav.mobile-open a, header nav.mobile-open .nav-link {
    width: 100%; text-align: center;
    padding: 0.9rem !important;
  }
  .hero { min-height: 65vh; padding: 4rem 1rem 3rem !important; }
  .hero-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .pourquoi-cards { grid-template-columns: 1fr !important; }
  /* Tables : wrap scroll horizontal sur mobile pour éviter débordement */
  main table, .admin-content table, .card table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Tablette : ajustements intermédiaires */
@media (max-width: 768px) {
  .hero-frame { padding: 3rem 2rem 2.5rem !important; }
  .actus-grid { grid-template-columns: 1fr !important; }
  .admin-content { padding: 1rem !important; }
  main { padding: 1.5rem 1rem !important; }
}

/* Petits mobiles (iPhone SE, Android compacts) */
@media (max-width: 480px) {
  .hero-frame { padding: 2.2rem 1.2rem 1.8rem !important; max-width: 100% !important; }
  .hero-frame .hero-title { font-size: clamp(1.5rem, 6.5vw, 2.2rem) !important; }
  .hero { padding: 3rem 0.8rem 2rem !important; }
  .hero-stats { grid-template-columns: 1fr !important; gap: 0.8rem !important; }
  .hero-stat { padding: 1rem !important; }
  .pourquoi-card { padding: 1.4rem 1.1rem !important; }
  .pourquoi-card-title { font-size: 1.05rem !important; }
  .page-title { font-size: 1.6rem !important; }
  .actu-card-title { font-size: 1.1rem !important; word-break: break-word; }
  .btn-primary-cta, .btn-discord { width: 100%; justify-content: center; }
  .hero-ctas { flex-direction: column; gap: 0.6rem !important; width: 100%; }
  table thead th { padding: 0.7rem 0.5rem !important; font-size: 0.58rem !important; }
  table tbody td { padding: 0.7rem 0.5rem !important; font-size: 0.85rem; }
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SEARCH dans tableaux admin ───────────────────────────── */
.table-search {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  background: rgba(19,28,48,0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.table-search:focus-within { border-color: var(--border-bright); }
.table-search input {
  flex: 1; background: transparent !important; border: none !important;
  outline: none; color: var(--text); padding: 0 !important;
  font-family: inherit; font-size: 0.95rem;
}
.table-search-icon { color: var(--text-muted); font-size: 0.95rem; }

/* Shortcuts hint overlay — visible au premier chargement */
.shortcuts-hint {
  position: fixed; bottom: 1.2rem; right: 1.2rem;
  z-index: 800;
  padding: 0.6rem 0.9rem 0.6rem 1rem;
  background: rgba(19,28,48,0.92);
  border: 1px solid var(--border-bright);
  border-left: 3px solid var(--deco-gold);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 0.6rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.4);
  transform: translateY(16px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.shortcuts-hint.in { transform: translateY(0); opacity: 1; pointer-events: auto; }
.shortcuts-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(72,120,190,0.15);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  color: var(--text);
  font-family: monospace;
  font-size: 0.75rem;
}
.shortcuts-hint-close {
  background: transparent; border: none; color: var(--text-dim);
  cursor: pointer; padding: 0 0 0 0.4rem; font-size: 1rem;
}

/* ── Sticky actions bar ─────────────────────────────────── */
.sticky-action-bar {
  position: sticky; top: 76px; z-index: 40;
  padding: 0.6rem 1rem;
  background: rgba(8,10,18,0.7); backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1rem;
  display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap;
}

/* ── Progress bar dans cellule (pour stats progression %) ── */
td .inline-progress {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-width: 80px;
}
td .inline-progress-bar {
  flex: 1; height: 6px;
  background: rgba(72,120,190,0.15);
  border-radius: 3px; overflow: hidden;
}
td .inline-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═══════════════════════════════════════════════════════════
 * V4 — PALETTE DESIGNER DE LUXE
 * Retrait des effets souris + refine champagne & ivoire
 * ═══════════════════════════════════════════════════════════ */

/* Palette affinée — champagne, ivoire, saphir profond */
:root {
  --deco-gold: #d4b87d !important;
  --deco-gold-light: #e8d2a0 !important;
  --deco-gold-dark: #8a7440 !important;
  --text: #e8e0d0 !important;
  /* Contrastes remontés pour lisibilité WCAG AA sur fond sombre */
  --text-muted: #b8b3a3 !important;
  --text-dim: #8a8578 !important;
  --gold-light: #a8c4e0 !important;
  --border: rgba(212,184,125,0.14) !important;
  --border-bright: rgba(212,184,125,0.32) !important;
}

/* Body : fond plus chaud, typographie raffinée + anti-blur */
body {
  color: #e8e0d0 !important;
  font-family: 'Cormorant Garamond', 'Crimson Pro', Georgia, serif !important;
  font-size: 18px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

/* Anti-blur global : jamais de text-shadow lourd, jamais de backdrop-blur hors overlay */
.hero-title, h1, h2, h3, h4, p, span, div {
  text-shadow: none !important;
}

/* Retrait du pattern héraldique diagonal (trop chargé) */
body::after { display: none !important; }

/* ── EFFETS SOURIS SUPPRIMÉS ─────────────────────────────── */

/* Plus de spotlight qui suit le curseur sur les cartes */
.card::before,
.pourquoi-card::before,
.alliance-card::before,
.actu-card::before,
.feature-card::before {
  display: none !important;
}

/* Plus de 3D tilt — cartes restent stables */
.pourquoi-card, .alliance-card, .actu-card, .feature-card {
  transform-style: flat !important;
  transform: none !important;
}
.pourquoi-card:hover, .alliance-card:hover, .actu-card:hover {
  transform: translateY(-2px) !important;
}

/* Icône qui bouge moins (plus restrainte) */
.pourquoi-card:hover .pourquoi-card-icon {
  transform: none !important;
}

/* ── BADGES DE SECTION SUPPRIMÉS (demande user) ──────────── */
.page-label,
.section-label,
.pourquoi-badge,
.hero-tag {
  display: none !important;
}
.hero-frame .hero-tag { display: inline-flex !important; } /* conserve le tag DANS le cadre */

/* Si user souhaite réactiver les badges : décommenter */
/* .page-label, .section-label, .pourquoi-badge { display: inline-block !important; } */

/* ── POLISH DESIGNER DE LUXE ─────────────────────────────── */

/* Texte : ivoire plus doux */
h1, h2, h3, h4, .card-title, .page-title {
  color: #f0e8d6 !important;
  letter-spacing: 0.015em !important;
}

/* Hero frame : surface opaque + crisp (plus de blur flou) */
.hero-frame {
  border-color: rgba(212,184,125,0.28) !important;
  background: #0c0f1c !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow:
    0 60px 140px rgba(0,0,0,0.7),
    0 0 0 1px rgba(212,184,125,0.08),
    inset 0 1px 0 rgba(255,240,210,0.04) !important;
  padding: 4rem 3rem 3.2rem !important;
}
.hero-frame::before {
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(212,184,125,0.08), transparent 65%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(80,120,180,0.08), transparent 65%) !important;
}
.hero-frame-corner::before,
.hero-frame-corner::after {
  background: rgba(212,184,125,0.75) !important;
  box-shadow: 0 0 10px rgba(212,184,125,0.4) !important;
  height: 1.5px !important;
}
.hero-frame-corner::after { height: 28px !important; width: 1.5px !important; }

/* Tag hero : champagne subtle */
.hero-frame .hero-tag {
  color: #e8d2a0 !important;
  border-color: rgba(212,184,125,0.3) !important;
  background: linear-gradient(180deg, rgba(212,184,125,0.06), rgba(212,184,125,0.02)) !important;
  box-shadow: 0 2px 10px rgba(212,184,125,0.1), inset 0 1px 0 rgba(255,240,210,0.06) !important;
}
.hero-frame .hero-tag::before {
  background: #d4b87d !important;
  box-shadow: 0 0 8px #d4b87d !important;
}

/* Titre hero ligne 2 : couleur champagne unie (crisp, pas de gradient clip) */
.hero-title .t2 .reveal-inner,
.hero-title .t2 { color: #d4b87d !important; }

/* Alternative gradient crisp (uniquement sur le chiffre 2529) — optionnel */
.hero-title .t2 .reveal-word:last-child .reveal-inner {
  color: #e8d2a0 !important;
}

/* Étoiles : champagne */
.hero-frame .hero-stars {
  color: #d4b87d !important;
  text-shadow: 0 0 16px rgba(212,184,125,0.5) !important;
}

/* Sub-texte : ivoire doux italique */
.hero-frame .hero-sub {
  color: #b8ad98 !important;
  font-style: italic !important;
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}

/* Discord btn : plus raffiné */
.hero-frame .btn-discord {
  background: linear-gradient(180deg, #6874f5 0%, #4752c4 100%) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow:
    0 10px 28px rgba(88,101,242,0.35),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -2px 0 rgba(0,0,0,0.18) !important;
}

/* Cards : shadow plus profonde et réaliste */
.card, .pourquoi-card, .alliance-card, .actu-card {
  background: linear-gradient(180deg,
    rgba(20,25,42,0.65) 0%,
    rgba(12,16,28,0.85) 100%) !important;
  border: 1px solid rgba(212,184,125,0.08) !important;
  border-radius: 12px !important;
  box-shadow:
    0 24px 60px -20px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,240,210,0.04) !important;
  transition: border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s !important;
}
.card:hover, .pourquoi-card:hover, .alliance-card:hover, .actu-card:hover {
  border-color: rgba(212,184,125,0.22) !important;
  box-shadow:
    0 32px 70px -20px rgba(0,0,0,0.8),
    0 0 0 1px rgba(212,184,125,0.06),
    inset 0 1px 0 rgba(255,240,210,0.06) !important;
  transform: translateY(-2px) !important;
}

/* Card titles : ivoire avec flourish champagne */
.card-title, .alliance-card-title, .actu-card-title {
  color: #f0e8d6 !important;
  font-family: 'Cinzel', serif !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08rem !important;
  text-transform: none !important;
}
.card-title::after, .alliance-card-title::after, .actu-card-title::after {
  background: linear-gradient(90deg, rgba(212,184,125,0.7), transparent) !important;
  width: 38px !important;
}

/* Icons cartes : champagne + border champagne */
.pourquoi-card-icon {
  background: linear-gradient(135deg, rgba(212,184,125,0.12), rgba(212,184,125,0.02)) !important;
  border: 1px solid rgba(212,184,125,0.2) !important;
  color: #e8d2a0 !important;
  box-shadow:
    0 6px 18px rgba(212,184,125,0.1),
    inset 0 1px 0 rgba(255,240,210,0.08) !important;
}

/* Labels des cartes : champagne léger */
.pourquoi-card-label {
  color: #d4b87d !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.32rem !important;
  font-weight: 600 !important;
}

/* Page titles : Cormorant Garamond — éditorial luxe */
.page-title::after { display: none !important; }
.page-title {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
  padding-bottom: 0 !important;
  margin: 1.2rem 0 1.5rem !important;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem) !important;
  line-height: 1.1 !important;
  color: #f2ebdc !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}
.page-title::before {
  content: '';
  display: block;
  width: 48px; height: 1px;
  margin-bottom: 1.5rem;
  background: #d4b87d;
}

/* Card titles : Cormorant italique pour luxe éditorial */
.card-title, .alliance-card-title, .actu-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 600 !important;
  font-style: normal !important;
  font-size: 1.4rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #f2ebdc !important;
  padding-bottom: 1rem !important;
  border-bottom: 1px solid rgba(212,184,125,0.1);
  margin-bottom: 1.2rem !important;
}
.card-title::after, .alliance-card-title::after, .actu-card-title::after {
  display: none !important;
}

/* Pourquoi title : éditorial grand format */
.pourquoi-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 500 !important;
  font-size: clamp(2.4rem, 5vw, 3.8rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
  color: #f2ebdc !important;
  text-transform: none !important;
  margin-bottom: 0.8rem !important;
}
.pourquoi-sub {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-size: 1.2rem !important;
  color: #b8ad98 !important;
}
.pourquoi-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 1.35rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #f2ebdc !important;
}
.pourquoi-card-label {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.35rem !important;
  font-weight: 500 !important;
  color: #d4b87d !important;
  text-transform: uppercase !important;
}

/* Body text : Crimson Pro reste pour le corps, Cormorant pour titres */
p, li, td, .reglement-content { font-family: 'Crimson Pro', Georgia, serif !important; }

/* Nav links : Inter pour modernité + distinction */
header nav a, header nav .nav-link {
  font-family: 'Inter', 'Cinzel', serif !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.22rem !important;
  text-transform: uppercase !important;
  color: #9a9588 !important;
}
header nav a:hover, header nav a.active,
header nav .nav-link:hover, header nav .nav-link.active {
  color: #f2ebdc !important;
}
.logo {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 1.35rem !important;
  color: #e8d2a0 !important;
}

/* Hero tag : Inter subtle capitals */
.hero-frame .hero-tag {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.62rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.35rem !important;
}

/* Stars : plus petites et centrées */
.hero-frame .hero-stars {
  font-size: 0.9rem !important;
  letter-spacing: 0.45rem !important;
  opacity: 0.85;
}

/* Hero sub : Cormorant italique */
.hero-frame .hero-sub {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  color: #b8ad98 !important;
  margin-bottom: 2.5rem !important;
}

/* Discord button : Inter semibold — pas de Cinzel */
.hero-frame .btn-discord {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.14rem !important;
  text-transform: uppercase !important;
}

/* Buttons généraux : Inter */
button, .btn {
  font-family: 'Inter', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12rem !important;
}

/* Labels forms : Inter */
label {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.24rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
}

/* Table headers : Inter */
table thead th {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.58rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.25rem !important;
}

/* Stats subtabs : Inter */
.stats-subtab {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.22rem !important;
  font-weight: 500 !important;
}

/* Preview badge : Inter */
.preview-badge {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.2rem !important;
  font-size: 0.58rem !important;
}

/* ═══════════════════════════════════════════════════════════
 * V6 — UNIFORMISATION DES ENCADRÉS + CARTES ACTUS + MODAL ACTU
 * ═══════════════════════════════════════════════════════════ */

/* Un style unique pour TOUTES les cartes du site */
.card,
.pourquoi-card,
.alliance-card,
.actu-card,
.actu-article,
.stats-card,
.admin-content .card,
#asec-reglement .card,
#asec-actus .card,
#asec-alliances .card,
#asec-stats .card,
#asec-stats-kvk .card,
#asec-import-fort .card,
#asec-import-kvk .card,
#asec-import-scan .card,
#asec-migration .card,
#asec-apparence .card,
#asec-comptes .card,
#asec-historique .card,
#asec-accueil .card,
#asec-sanctions .card,
#asec-rebelles .card,
#asec-suivi-joueurs .card {
  background: linear-gradient(180deg, rgba(20,25,42,0.65) 0%, rgba(12,16,28,0.85) 100%) !important;
  border: 1px solid rgba(212,184,125,0.10) !important;
  border-radius: 12px !important;
  padding: 1.8rem !important;
  box-shadow:
    0 24px 60px -20px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,240,210,0.04) !important;
  transition: border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s !important;
}
.card:hover,
.pourquoi-card:hover,
.alliance-card:hover,
.actu-card:hover,
.actu-article:hover {
  border-color: rgba(212,184,125,0.24) !important;
  box-shadow:
    0 32px 70px -20px rgba(0,0,0,0.8),
    0 0 0 1px rgba(212,184,125,0.08),
    inset 0 1px 0 rgba(255,240,210,0.06) !important;
  transform: translateY(-2px) !important;
}

/* ── ACTUS : grid de cartes preview ──────────────────────── */
.actus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
  margin-top: 1rem;
}

.actu-card {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  cursor: pointer;
  outline: none;
}
.actu-card:focus-visible {
  border-color: #d4b87d !important;
  box-shadow:
    0 0 0 3px rgba(212,184,125,0.18),
    0 32px 70px -20px rgba(0,0,0,0.8) !important;
}

.actu-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1f30 0%, #0c0f1c 100%);
  border-bottom: 1px solid rgba(212,184,125,0.08);
}
.actu-card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--img-bg, none);
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.55) saturate(1.1);
  transform: scale(1.18);
  z-index: 0;
}
.actu-card-media img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
}
.actu-card:hover .actu-card-media img { transform: scale(1.04); }

.actu-card-media--empty {
  display: flex; align-items: center; justify-content: center;
}
.actu-card-placeholder {
  font-size: 3.5rem; color: rgba(212,184,125,0.2);
  font-family: 'Cormorant Garamond', serif;
}

.actu-card-cat {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  background: rgba(8,10,18,0.92);
  border: 1px solid rgba(212,184,125,0.3);
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: #e8d2a0;
}

.actu-card-pin {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 10px;
  background: rgba(212,184,125,0.95);
  color: #0a0c16;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(212,184,125,0.35);
}

.actu-card-body {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  flex: 1;
}
.actu-card-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.24rem;
  text-transform: uppercase;
  color: #8a8578;
  font-weight: 500;
}
.actu-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 1.4rem !important;
  color: #f2ebdc !important;
  line-height: 1.25;
  letter-spacing: 0 !important;
  margin: 0 !important;
  text-transform: none !important;
}
.actu-card-excerpt {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 0.98rem;
  color: #9a9588;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.actu-card-cta {
  margin-top: auto;
  padding-top: 0.8rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  color: #d4b87d;
  font-weight: 600;
  border-top: 1px solid rgba(212,184,125,0.08);
  transition: color 0.25s, letter-spacing 0.25s;
}
.actu-card:hover .actu-card-cta {
  color: #f2ebdc;
  letter-spacing: 0.2rem;
}

/* ── MODAL LECTURE ACTU (full-width) ──────────────────────── */
.actu-reader-backdrop {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(4,6,12,0.88);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.actu-reader-backdrop.open { opacity: 1; pointer-events: auto; }

.actu-reader {
  position: relative;
  width: 100%; max-width: 820px;
  background: #0c0f1c;
  border: 1px solid rgba(212,184,125,0.2);
  border-radius: 14px;
  box-shadow: 0 60px 140px rgba(0,0,0,0.7);
  overflow: hidden;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  margin-bottom: 2rem;
}
.actu-reader-backdrop.open .actu-reader { transform: translateY(0) scale(1); }

.actu-reader-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(8,10,18,0.85);
  border: 1px solid rgba(212,184,125,0.25);
  border-radius: 50%;
  color: #e8d2a0;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.2s;
  z-index: 2;
}
.actu-reader-close:hover {
  background: #0c0f1c;
  border-color: #d4b87d;
  color: #f2ebdc;
  transform: scale(1.05);
}

.actu-reader-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-bottom: 1px solid rgba(212,184,125,0.1);
  background: #0c0f1c;
}
.actu-reader-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--img-bg, none);
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.5) saturate(1.1);
  transform: scale(1.2);
  z-index: 0;
}
.actu-reader-hero img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  z-index: 1;
}

.actu-reader-inner {
  padding: 2.5rem 3rem 3rem;
}
@media (max-width: 640px) { .actu-reader-inner { padding: 1.8rem 1.4rem; } }

.actu-reader-meta {
  display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap;
  margin-bottom: 1.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22rem;
  text-transform: uppercase;
  font-weight: 500;
}
.actu-reader-cat {
  padding: 4px 10px;
  background: rgba(212,184,125,0.1);
  border: 1px solid rgba(212,184,125,0.3);
  color: #e8d2a0;
  border-radius: 100px;
}
.actu-reader-date { color: #8a8578; }
.actu-reader-pin {
  padding: 4px 10px;
  background: rgba(212,184,125,0.95);
  color: #0a0c16;
  border-radius: 100px;
  font-weight: 700;
}

.actu-reader-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem) !important;
  color: #f2ebdc;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.8rem !important;
  text-transform: none !important;
}
.actu-reader-author {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #9a9588;
  font-size: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(212,184,125,0.08);
}
.actu-reader-body {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.1rem;
  color: #d8d0c0;
  line-height: 1.75;
}
.actu-reader-body p { margin-bottom: 1rem; }
.actu-reader-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.actu-reader-body a { color: #d4b87d; text-decoration: underline; text-decoration-color: rgba(212,184,125,0.4); text-underline-offset: 3px; }
.actu-reader-body a:hover { text-decoration-color: #d4b87d; }
.actu-reader-body h1, .actu-reader-body h2, .actu-reader-body h3 {
  font-family: 'Cormorant Garamond', serif !important;
  color: #f2ebdc !important;
  margin: 1.5rem 0 0.6rem !important;
}
.actu-reader-body ul, .actu-reader-body ol { margin: 0.6rem 0 1rem 1.5rem; }
.actu-reader-body li { margin-bottom: 0.3rem; }

.actu-reader-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212,184,125,0.08);
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.actu-tag {
  padding: 4px 10px;
  background: rgba(212,184,125,0.06);
  border: 1px solid rgba(212,184,125,0.15);
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: #d4b87d;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
 * V7 — ADMIN ERGONOMICS
 * Migration banner + toggle + filtres, sidebar badges,
 * sticky edit bar, empty admin states
 * ═══════════════════════════════════════════════════════════ */

/* ── MIGRATION BANNER (page accueil) ─────────────────────── */
.migration-banner {
  display: flex; align-items: center; gap: 1.4rem;
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(212,184,125,0.10), rgba(212,184,125,0.02));
  border: 1px solid rgba(212,184,125,0.32);
  border-left: 3px solid #d4b87d;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.migration-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 400px 200px at 0% 50%, rgba(212,184,125,0.12), transparent 70%);
  pointer-events: none;
}
.migration-banner-glyph {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #e8d2a0, #c4a66c);
  color: #0a0c16;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(212,184,125,0.4), inset 0 1px 0 rgba(255,240,210,0.5);
}
.migration-banner-text { flex: 1; min-width: 0; }
.migration-banner-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #f2ebdc;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}
.migration-banner-sub {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 0.98rem;
  color: #b8ad98;
  font-style: italic;
}
.migration-banner-cta {
  flex-shrink: 0;
  padding: 0.8rem 1.6rem !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.18rem !important;
  text-transform: uppercase !important;
  color: #0a0c16 !important;
  background: linear-gradient(180deg, #e8d2a0, #c4a66c) !important;
  border: 1px solid #d4b87d !important;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.3s;
  box-shadow: 0 6px 18px rgba(212,184,125,0.3), inset 0 1px 0 rgba(255,240,210,0.5);
}
.migration-banner-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(212,184,125,0.45), inset 0 1px 0 rgba(255,240,210,0.6);
}
@media (max-width: 620px) {
  .migration-banner { flex-direction: column; align-items: flex-start; }
  .migration-banner-cta { width: 100%; }
}

/* ── ADMIN MIGRATION : toggle switch ─────────────────────── */
.admin-mig-toggle {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(212,184,125,0.06), rgba(212,184,125,0.01));
  border: 1px solid rgba(212,184,125,0.2);
  border-radius: 10px;
}
.admin-mig-toggle-main { flex: 1; min-width: 0; }
.admin-mig-toggle-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f2ebdc;
  margin-bottom: 0.2rem;
}
.admin-mig-toggle-desc {
  font-family: 'Crimson Pro', serif;
  font-size: 0.9rem;
  color: #9a9588;
  line-height: 1.4;
}

.admin-switch {
  position: relative;
  display: inline-block;
  width: 52px; height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}
.admin-switch input {
  opacity: 0; width: 0; height: 0;
}
.admin-switch-slider {
  position: absolute;
  inset: 0;
  background: rgba(10,12,22,0.9);
  border: 1px solid rgba(212,184,125,0.3);
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.admin-switch-slider::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, #8a8578, #5e5a50);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.admin-switch input:checked + .admin-switch-slider {
  background: linear-gradient(135deg, rgba(212,184,125,0.3), rgba(212,184,125,0.15));
  border-color: #d4b87d;
}
.admin-switch input:checked + .admin-switch-slider::before {
  left: calc(100% - 24px);
  background: linear-gradient(135deg, #e8d2a0, #c4a66c);
  box-shadow: 0 2px 8px rgba(212,184,125,0.5);
}

/* ── ADMIN MIGRATION : filtres ───────────────────────────── */
.admin-mig-filters {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  padding: 4px;
  background: rgba(10,12,22,0.6);
  border: 1px solid rgba(212,184,125,0.1);
  border-radius: 10px;
  margin-bottom: 1.2rem;
  width: fit-content;
}
.admin-mig-filter {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem !important;
  background: transparent !important;
  border: none !important;
  border-radius: 7px;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.12rem !important;
  text-transform: uppercase !important;
  color: #9a9588 !important;
  cursor: pointer;
  transition: all 0.25s;
}
.admin-mig-filter:hover { color: #d4b87d !important; background: rgba(212,184,125,0.04) !important; }
.admin-mig-filter.active {
  background: linear-gradient(180deg, rgba(212,184,125,0.2), rgba(212,184,125,0.06)) !important;
  color: #f2ebdc !important;
  box-shadow: 0 2px 8px rgba(212,184,125,0.1), inset 0 1px 0 rgba(255,240,210,0.04);
}
.admin-mig-filter-count {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  background: rgba(212,184,125,0.12);
  border: 1px solid rgba(212,184,125,0.2);
  border-radius: 100px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #d4b87d;
}
.admin-mig-filter.active .admin-mig-filter-count {
  background: rgba(212,184,125,0.25);
  color: #f2ebdc;
}

/* Status badge migrations (refined) */
.admin-mig-status {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
}

/* ── ADMIN empty states (uniform) ────────────────────────── */
.admin-empty {
  text-align: center;
  padding: 3.5rem 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.admin-empty-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(212,184,125,0.06);
  border: 1px solid rgba(212,184,125,0.15);
  color: rgba(212,184,125,0.5);
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.admin-empty-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: #d8d0c0;
}
.admin-empty-desc {
  font-family: 'Crimson Pro', serif;
  color: #9a9588;
  max-width: 380px;
  font-size: 0.95rem;
}

/* ── SIDEBAR BADGES (pending count) ──────────────────────── */
.admin-nav-badge {
  margin-left: auto;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #e8d2a0, #c4a66c);
  color: #0a0c16;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(212,184,125,0.35);
}
.admin-nav-badge--danger {
  background: linear-gradient(135deg, #d85a5a, #9d3535);
  color: #fff;
  box-shadow: 0 2px 8px rgba(216,90,90,0.4);
}

/* ── STICKY EDIT MODE BAR (bottom) ───────────────────────── */
.edit-sticky-bar {
  position: fixed;
  left: 50%; bottom: 0;
  transform: translateX(-50%) translateY(100%);
  width: min(720px, 94%);
  z-index: 60;
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  background: rgba(10,12,22,0.96);
  border: 1px solid rgba(212,184,125,0.3);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -16px 40px rgba(0,0,0,0.5);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.edit-sticky-bar.visible { transform: translateX(-50%) translateY(0); }
.edit-sticky-bar-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(212,184,125,0.25), rgba(212,184,125,0.08));
  border: 1px solid rgba(212,184,125,0.3);
  color: #e8d2a0;
  font-size: 0.9rem;
}
.edit-sticky-bar-text { flex: 1; min-width: 0; overflow: hidden; }
.edit-sticky-bar-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.24rem;
  text-transform: uppercase;
  color: #d4b87d;
  font-weight: 600;
}
.edit-sticky-bar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: #f2ebdc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.edit-sticky-bar-actions {
  display: flex; gap: 0.5rem;
  flex-shrink: 0;
}
.edit-sticky-bar-actions button {
  padding: 0.55rem 0.95rem !important;
  font-size: 0.68rem !important;
  border-radius: 8px !important;
}

/* ── Admin sidebar active dot renforcé (visible quand badge) ── */
.admin-nav-dot {
  width: 6px; height: 6px;
  background: #d4b87d;
  border-radius: 50%;
  margin-left: 0.5rem;
  box-shadow: 0 0 8px #d4b87d;
  animation: pulse-dot 2s ease-in-out infinite;
}


/* Nav links : refine */
header nav a, header nav .nav-link {
  font-size: 0.68rem !important;
  letter-spacing: 0.26rem !important;
  color: #b8ad98 !important;
  transition: color 0.3s !important;
}
header nav a:hover, header nav a.active,
header nav .nav-link:hover, header nav .nav-link.active {
  color: #f0e8d6 !important;
}
header nav a::after, header nav .nav-link::after {
  background: linear-gradient(90deg, transparent, rgba(212,184,125,0.8), transparent) !important;
}

/* Forms : champagne focus */
input:focus, textarea:focus, select:focus, .form-input:focus {
  border-color: rgba(212,184,125,0.45) !important;
  box-shadow:
    0 0 0 3px rgba(212,184,125,0.08),
    inset 0 1px 0 rgba(0,0,0,0.3) !important;
}

/* Labels forms : champagne soft */
label {
  color: #d4b87d !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.26rem !important;
  font-weight: 600 !important;
}

/* Tables : affiner couleur header + rangs */
table thead th {
  color: #d4b87d !important;
  border-bottom: 1px solid rgba(212,184,125,0.15) !important;
  background: rgba(212,184,125,0.03) !important;
}
table tbody tr:hover {
  background: rgba(212,184,125,0.04) !important;
}
table tbody tr:nth-child(1) td:first-child { color: #e8d2a0 !important; text-shadow: 0 0 10px rgba(212,184,125,0.5) !important; }
table tbody tr:nth-child(2) td:first-child { color: #d4b87d !important; }
table tbody tr:nth-child(3) td:first-child { color: rgba(212,184,125,0.8) !important; }

/* Stats subtabs : affiner */
.stats-subtab {
  color: #9a9588 !important;
}
.stats-subtab:hover { color: #d4b87d !important; background: rgba(212,184,125,0.04) !important; }
.stats-subtab.active {
  background: linear-gradient(180deg, rgba(212,184,125,0.12), rgba(212,184,125,0.03)) !important;
  color: #e8d2a0 !important;
  border: 1px solid rgba(212,184,125,0.18);
  box-shadow: 0 4px 12px rgba(212,184,125,0.1), inset 0 1px 0 rgba(255,240,210,0.06) !important;
}

/* Scroll progress bar : champagne */
.scroll-progress {
  background: linear-gradient(90deg, rgba(212,184,125,0.6), rgba(232,210,160,0.9), rgba(212,184,125,0.6)) !important;
  box-shadow: 0 0 12px rgba(212,184,125,0.5) !important;
}

/* Scrollbar : champagne discret */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(212,184,125,0.3), rgba(212,184,125,0.15)) !important;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(212,184,125,0.5), rgba(212,184,125,0.25)) !important;
}

/* Selection : champagne */
::selection {
  background: rgba(212,184,125,0.25) !important;
  color: #f5efde !important;
  text-shadow: none !important;
}

/* Badge preview : champagne */
.preview-badge {
  color: #e8d2a0 !important;
  background: rgba(212,184,125,0.08) !important;
  border-color: rgba(212,184,125,0.3) !important;
}
.preview-badge::before {
  background: #d4b87d !important;
  box-shadow: 0 0 8px #d4b87d !important;
}

/* Footer : affiner */
footer {
  color: #8a8578 !important;
  border-top-color: rgba(212,184,125,0.1) !important;
}
footer::before {
  background: linear-gradient(90deg, transparent, rgba(212,184,125,0.5), transparent) !important;
  width: 120px !important;
}

/* Stats hero (CB|BE|GB etc.) : couleur champagne unie, crisp */
.hero-stat-num {
  color: #e8d2a0 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  text-shadow: none !important;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif !important;
  font-weight: 500 !important;
}
.hero-stat:hover .hero-stat-num { text-shadow: none !important; color: #f0e8d6 !important; }

/* Header : background plus sombre/chaud */
header {
  background: rgba(10,12,22,0.82) !important;
  border-bottom-color: rgba(212,184,125,0.12) !important;
}
header.scrolled {
  background: rgba(10,12,22,0.96) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 1px 0 rgba(212,184,125,0.08) !important;
}

/* Hero-stats grille : affiner */
.hero-stats, #hero-stats-area {
  border-color: rgba(212,184,125,0.12) !important;
  background: rgba(212,184,125,0.08) !important;
}
.hero-stat {
  background: rgba(10,14,26,0.8) !important;
}
.hero-stat:hover { background: rgba(212,184,125,0.04) !important; }
.hero-stat-label {
  color: #8a8578 !important;
}

/* Modals : palette raffinée */
.modal {
  background: linear-gradient(180deg, rgba(20,25,42,0.98), rgba(12,16,28,0.98)) !important;
  border-color: rgba(212,184,125,0.25) !important;
}
.modal-icon {
  background: rgba(212,184,125,0.12) !important;
  color: #e8d2a0 !important;
}
.modal.danger .modal-icon {
  background: rgba(180,60,60,0.12) !important;
  color: #e06a6a !important;
}
.modal-btn-cancel {
  border-color: rgba(212,184,125,0.25) !important;
  color: #9a9588 !important;
}
.modal-btn-confirm:not(.danger) {
  background: linear-gradient(180deg, #e8d2a0, #c4a66c) !important;
  color: #0a0c16 !important;
}

/* Command palette : affiner */
.cmdk {
  background: linear-gradient(180deg, rgba(20,25,42,0.98), rgba(12,16,28,0.98)) !important;
  border-color: rgba(212,184,125,0.25) !important;
}
.cmdk-input { color: #f0e8d6 !important; }
.cmdk-group { color: #d4b87d !important; }
.cmdk-item.active, .cmdk-item:hover {
  background: rgba(212,184,125,0.08) !important;
  color: #f0e8d6 !important;
}
.cmdk-item-icon { color: #e8d2a0 !important; }
.cmdk-kbd {
  background: rgba(212,184,125,0.1) !important;
  border-color: rgba(212,184,125,0.2) !important;
  color: #d4b87d !important;
}

/* Toast : raffiner */
.toast {
  background: rgba(20,25,42,0.96) !important;
  border-color: rgba(212,184,125,0.22) !important;
  border-left-color: #d4b87d !important;
  color: #f0e8d6 !important;
}
.toast-icon { color: #d4b87d !important; }

/* Breathing room global : plus de padding sur les sections */
.pourquoi-section { padding: 6rem 1.5rem !important; }
main { padding: 1rem 0; }

/* Reduce excessive radius — more refined */
.card, .pourquoi-card, .alliance-card, .actu-card { border-radius: 10px !important; }
.hero-frame { border-radius: 14px !important; }

/* ── ADMIN sidebar : champagne accents ───────────────────── */
.admin-sidebar {
  background: linear-gradient(180deg, #0a0c16 0%, #060810 100%) !important;
  border-right-color: rgba(212,184,125,0.1) !important;
}
.admin-sidebar a:hover, .admin-sidebar .asidenav-link:hover {
  color: #e8d2a0 !important;
  background: rgba(212,184,125,0.06) !important;
}
.admin-sidebar a.active, .admin-sidebar .asidenav-link.active {
  background: linear-gradient(135deg, rgba(212,184,125,0.15), rgba(212,184,125,0.04)) !important;
  color: #f0e8d6 !important;
  box-shadow: inset 2px 0 0 #d4b87d !important;
}


/* ═══════════════════════════════════════════════════════════
 * V3 — CADRE HERO PREMIUM + POLISH LUXE PARTOUT
 * ═══════════════════════════════════════════════════════════ */

.hero { padding-top: 5rem !important; padding-bottom: 3rem !important; }

/* ── CADRE HERO : glass premium avec ornements dorés ──────── */
.hero-frame {
  position: relative;
  width: 100%; max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 3rem 3rem;
  /* Fond opaque au lieu de backdrop-filter blur(26px) : élimine le recompositing
     GPU permanent derrière le cadre — énorme gain de fluidité mobile. */
  background: linear-gradient(180deg, rgba(11,14,26,0.96) 0%, rgba(8,10,18,0.98) 100%);
  border: 1px solid rgba(200,160,74,0.28);
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.06);
  isolation: isolate;
}
.hero-frame::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(200,160,74,0.1), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(72,120,190,0.1), transparent 60%);
  pointer-events: none; z-index: -1;
}

/* Ornements dorés aux 4 coins */
.hero-frame-corner {
  position: absolute; width: 38px; height: 38px;
  pointer-events: none; z-index: 2;
}
.hero-frame-corner::before, .hero-frame-corner::after {
  content: ''; position: absolute;
  background: var(--deco-gold);
  box-shadow: 0 0 8px rgba(200,160,74,0.5);
}
.hero-frame-corner::before { width: 28px; height: 2px; }
.hero-frame-corner::after  { width: 2px;  height: 28px; }
.hero-frame-corner.tl { top: 0; left: 0; }
.hero-frame-corner.tl::before, .hero-frame-corner.tl::after { top: 6px; left: 6px; }
.hero-frame-corner.tr { top: 0; right: 0; }
.hero-frame-corner.tr::before, .hero-frame-corner.tr::after { top: 6px; right: 6px; }
.hero-frame-corner.bl { bottom: 0; left: 0; }
.hero-frame-corner.bl::before, .hero-frame-corner.bl::after { bottom: 6px; left: 6px; }
.hero-frame-corner.br { bottom: 0; right: 0; }
.hero-frame-corner.br::before, .hero-frame-corner.br::after { bottom: 6px; right: 6px; }

.hero-frame .hero-tag { display: none !important; }
.hero-frame .hero-title {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
  font-size: clamp(2.8rem, 6.5vw, 5rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 0.3rem !important;
  max-width: 100%;
  text-transform: none !important;
  text-shadow: none !important;
}
/* t1 & t2 : même gradient doré dégradé — unifié selon demande user.
   Le gradient est appliqué sur chaque .reveal-inner (élément qui porte le texte)
   pour garantir l'effet. Même stops que .t2 pour que les deux lignes matchent. */
.hero-frame .hero-title .t1,
.hero-frame .hero-title .t2 {
  display: block !important;
}
.hero-frame .hero-title .t1 .reveal-inner,
.hero-frame .hero-title .t2 .reveal-inner {
  background: linear-gradient(135deg, #f5e2b0 0%, #e8d2a0 30%, #d4b87d 65%, #b8934a 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
.hero-frame .hero-title .t1 { font-weight: 400 !important; }
.hero-frame .hero-title .t2 { font-weight: 600 !important; font-style: italic !important; }
.hero-frame .hero-stars {
  letter-spacing: 0.55rem !important;
  margin: 0.6rem 0 1.5rem !important;
}
.hero-frame .hero-sub {
  color: var(--text-muted);
  margin-bottom: 2rem !important;
}
.hero-frame .hero-ctas { justify-content: center; margin-bottom: 0.4rem; }
.hero-frame .btn-discord {
  padding: 1rem 2.4rem !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.22rem !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%) !important;
  box-shadow:
    0 8px 24px rgba(88,101,242,0.4),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.2) !important;
}
.hero-frame .btn-discord:hover {
  box-shadow:
    0 14px 38px rgba(88,101,242,0.55),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.25) !important;
  transform: translateY(-2px) !important;
}

/* Stats restent dehors, marge plus ample */
.hero-stats, #hero-stats-area { margin-top: 3rem !important; }

/* ═══ POLISH LUXE PARTOUT (pas que la home) ═══════════════ */

/* Page headers (stats, règlement, alliances, actus, migration) */
.page-header { margin-bottom: 2.5rem; position: relative; }
.page-label {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.32rem;
  text-transform: uppercase;
  color: var(--deco-gold-light);
  padding: 0.35rem 0.95rem;
  border: 1px solid rgba(200,160,74,0.3);
  border-radius: 100px;
  background: linear-gradient(180deg, rgba(200,160,74,0.06), rgba(200,160,74,0.01));
  margin-bottom: 0.8rem;
}
.page-title {
  position: relative;
  font-family: 'Cinzel', serif !important;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem) !important;
  color: var(--text) !important;
  padding-bottom: 1rem !important;
  margin-bottom: 2rem !important;
  letter-spacing: 0.02em;
}
.page-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 80px; height: 2px;
  background: linear-gradient(90deg, var(--deco-gold), transparent);
  border-radius: 2px;
}

/* Cartes : embossed, shadow pro, hover gold glow */
.card, .pourquoi-card, .alliance-card, .actu-card, .stats-card {
  box-shadow:
    0 16px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04) !important;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s, box-shadow 0.3s !important;
}
.card:hover, .pourquoi-card:hover, .alliance-card:hover, .actu-card:hover {
  border-color: rgba(200,160,74,0.3) !important;
  box-shadow:
    0 28px 62px rgba(0,0,0,0.5),
    0 0 0 1px rgba(200,160,74,0.14),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

/* Title des cartes — flourish or subtil */
.card-title, .alliance-card-title, .actu-card-title {
  position: relative;
  font-family: 'Cinzel', serif !important;
  color: var(--gold-light) !important;
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05rem;
}
.card-title::after, .alliance-card-title::after, .actu-card-title::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 44px; height: 1px;
  background: linear-gradient(90deg, var(--deco-gold), transparent);
}

/* Tables : premium polish supplémentaire */
table {
  box-shadow: 0 18px 50px rgba(0,0,0,0.4);
}
table thead th:first-child { border-top-left-radius: 12px; }
table thead th:last-child  { border-top-right-radius: 12px; }
table tbody tr:last-child td:first-child { border-bottom-left-radius: 12px; }
table tbody tr:last-child td:last-child  { border-bottom-right-radius: 12px; }

/* Stats sub-tabs plus pro */
.stats-subtabs {
  background: linear-gradient(180deg, rgba(19,28,48,0.7), rgba(13,18,40,0.8)) !important;
  border: 1px solid var(--border) !important;
  padding: 5px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.stats-subtab {
  padding: 0.7rem 1.3rem !important;
  font-weight: 600 !important;
}
.stats-subtab.active {
  background: linear-gradient(135deg, rgba(72,120,190,0.35), rgba(72,120,190,0.12)) !important;
  box-shadow:
    0 4px 16px rgba(72,120,190,0.2),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
  color: var(--gold-light) !important;
}

/* Forms : premium fields */
input[type="text"], input[type="number"], input[type="url"],
input[type="email"], input[type="password"], input[type="search"],
textarea, select, .form-input {
  background: rgba(8,10,18,0.6) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 0.7rem 1rem !important;
  color: var(--text) !important;
  font-family: 'Crimson Pro', Georgia, serif !important;
  font-size: 0.98rem !important;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s !important;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.2);
}
input:focus, textarea:focus, select:focus, .form-input:focus {
  border-color: rgba(200,160,74,0.5) !important;
  background: rgba(8,10,18,0.8) !important;
  box-shadow:
    0 0 0 3px rgba(200,160,74,0.1),
    inset 0 1px 0 rgba(0,0,0,0.3) !important;
  outline: none !important;
}

/* Form labels : Cinzel small caps */
label {
  font-family: 'Cinzel', serif !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.22rem !important;
  text-transform: uppercase !important;
  color: var(--deco-gold-light) !important;
  margin-bottom: 0.4rem !important;
  display: inline-block;
}

/* Boutons génériques : polish premium */
button:not(.modal-btn-cancel):not(.modal-btn-confirm):not(.mobile-burger):not(.shortcuts-hint-close):not(.btn-discord):not(.admin-sidebar button):not(.preview-badge):not(.cmdk-item):not(.toast):not(.pagination-btn) {
  background: linear-gradient(180deg, rgba(72,120,190,0.2), rgba(72,120,190,0.08)) !important;
  border: 1px solid var(--border-bright) !important;
  color: var(--text) !important;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
button:not(.modal-btn-cancel):not(.modal-btn-confirm):not(.mobile-burger):not(.shortcuts-hint-close):not(.btn-discord):not(.admin-sidebar button):not(.preview-badge):not(.cmdk-item):not(.toast):not(.pagination-btn):hover {
  border-color: rgba(200,160,74,0.4) !important;
  background: linear-gradient(180deg, rgba(72,120,190,0.3), rgba(72,120,190,0.12)) !important;
  transform: translateY(-1px);
  box-shadow:
    0 8px 20px rgba(72,120,190,0.2),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Btn primary gold (CTA finaux) */
.btn-primary-cta, .btn-cta-gold, button.btn-gold, .admin-content button.btn-gold {
  background: linear-gradient(180deg, var(--deco-gold-light) 0%, var(--deco-gold) 100%) !important;
  border: 1px solid var(--deco-gold) !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  box-shadow:
    0 8px 22px rgba(200,160,74,0.35),
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -1px 0 rgba(0,0,0,0.15) !important;
}

/* Header : plus raffiné */
header {
  box-shadow: 0 1px 0 rgba(200,160,74,0.1), 0 8px 24px rgba(0,0,0,0.3);
}
header .logo, header [class*="logo"] {
  filter: drop-shadow(0 0 12px rgba(200,160,74,0.2));
}

/* Nav links premium */
header nav a, header nav .nav-link {
  font-family: 'Cinzel', serif !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.22rem !important;
  text-transform: uppercase !important;
  padding: 0.7rem 0.9rem !important;
  position: relative;
  transition: color 0.25s;
}
header nav a::after, header nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--deco-gold), transparent);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(-50%);
}
header nav a:hover::after, header nav .nav-link:hover::after,
header nav a.active::after, header nav .nav-link.active::after {
  width: 80%;
}

/* Admin sidebar : premium */
.admin-sidebar {
  background: linear-gradient(180deg, #06091a 0%, #030510 100%) !important;
  box-shadow: inset -1px 0 0 rgba(200,160,74,0.08);
}

/* Admin content : plus d'espace, plus raffiné */
.admin-content {
  background: linear-gradient(180deg, rgba(8,10,18,0.5), rgba(13,18,40,0.3));
}

/* Footer premium */
footer {
  background: linear-gradient(180deg, transparent, rgba(6,9,22,0.6)) !important;
  padding: 3rem 1.5rem 2rem !important;
  border-top: 1px solid rgba(200,160,74,0.15) !important;
  position: relative;
}
footer::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 160px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--deco-gold), transparent);
}

/* Accent universel : dot pulsante dans les sections label */
.page-label::before, .section-label::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--deco-gold);
  box-shadow: 0 0 6px var(--deco-gold);
  margin-right: 0.55rem;
  vertical-align: middle;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Hero badge doré tag amélioré */
.hero-tag {
  box-shadow: 0 4px 14px rgba(200,160,74,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Alliance card : ornements dorés */
.alliance-card {
  background: linear-gradient(180deg, rgba(19,28,48,0.85), rgba(13,18,40,0.95)) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  padding: 1.5rem !important;
  overflow: hidden;
}
.alliance-card-header {
  display: flex; align-items: center; gap: 0.8rem;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.alliance-tag {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 10px;
  background: linear-gradient(135deg, rgba(72,120,190,0.3), rgba(72,120,190,0.1));
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  font-family: 'Cinzel', serif; font-weight: 700;
  color: var(--gold-light);
  font-size: 0.82rem;
  letter-spacing: 0.08rem;
}

/* R4 box (dans alliances) : luxe */
.r4-box, [class*="r4-"] {
  background: linear-gradient(180deg, rgba(19,28,48,0.7), rgba(13,18,40,0.85)) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  padding: 0.9rem !important;
  transition: all 0.25s;
}
.r4-box:hover, [class*="r4-"]:hover {
  border-color: rgba(200,160,74,0.3) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

/* Migration form premium */
#page-migration .card {
  padding: 2.5rem !important;
}
#page-migration input, #page-migration textarea, #page-migration select {
  margin-bottom: 0.2rem;
}
#page-migration .form-group {
  margin-bottom: 1.2rem;
}

/* Selection custom more sumptuous */
::selection {
  background: rgba(200,160,74,0.35);
  color: #fff;
  text-shadow: 0 0 10px rgba(200,160,74,0.6);
}

/* Titres section (ex: "À propos du serveur", "Actualités") — flourish */
h2, .card-title, .section-h2 {
  font-family: 'Cinzel', serif;
  color: var(--gold-light);
}

/* body::after pattern héraldique retiré — repaint fixed inset: 0 coûteux */

/* Raffinements mobile 640px : complète le breakpoint 820px ci-dessus */
@media (max-width: 640px) {
  .hero-frame-corner { width: 28px; height: 28px; }
  .hero-frame-corner::before { width: 20px !important; }
  .hero-frame-corner::after { height: 20px !important; }
  .hero-frame .hero-title { font-size: clamp(1.7rem, 6.8vw, 2.4rem) !important; }
  .page-header { margin-bottom: 1.6rem; }
  .actu-reader-backdrop { padding: 1rem 0.5rem; align-items: flex-start; }
  .actu-reader { border-radius: 10px; }
  .shortcuts-hint { display: none; }
}


