/*
Theme Name:  Midnight Guild
Theme URI:   https://github.com/midnight-guild
Description: Thème sombre et cinématique pour guilde WoW Mythique. Hero plein écran, particules, parallaxe, sections Progression / Recrutement / Actualités. Données gérées depuis l'admin WordPress (CPT + Customizer).
Version:     1.0.0
Author:      Midnight
Author URI:  #
Text Domain: midnight
License:     GPL-2.0-or-later
*/

/* ============================================================
   FONT
   ============================================================
   Copiez LifeCraft_Font.ttf dans midnight-guild/assets/fonts/
   ============================================================ */
@font-face {
  font-family: 'Lifecraft';
  src: url('assets/fonts/LifeCraft_Font.ttf') format('truetype');
  font-display: block;
}

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --void-deep:    #050507;
  --void-1:       #0c0814;
  --void-2:       #160d28;
  --purple-1:     #4C1D95;
  --purple-2:     #6B21A8;
  --purple-glow:  #8b5cf6;
  --gold-1:       #C9A84C;
  --gold-2:       #FFD700;
  --gold-pale:    #f6e7b3;
  --rune:         #b89cff;
  --ink:          #e6dcc7;
  --ink-dim:      #8a7e6a;
  --ink-faint:    #4a4555;

  /* Tweakable via Customizer → midnight_inline_vars() */
  --tw-particle-density: 1;
  --tw-bg-intensity:     1;
  --tw-grain:            0.06;
  --tw-pulse:            1;
  --tw-heading-font:     'Lifecraft', serif;
  --tw-body-font:        'Inter', sans-serif;
  --tw-heading-scale:    1;
  --tw-letter-spacing:   0.04em;
  --tw-heading-glow:     1;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--void-deep);
  color: var(--ink);
  font-family: var(--tw-body-font);
  font-weight: 300;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 1200px 800px at 50% -10%,
      rgba(107, 33, 168, calc(0.35 * var(--tw-bg-intensity))), transparent 60%),
    radial-gradient(ellipse 800px 600px at 90% 30%,
      rgba(76, 29, 149, calc(0.25 * var(--tw-bg-intensity))), transparent 70%),
    radial-gradient(ellipse 900px 700px at 5% 60%,
      rgba(139, 92, 246, calc(0.15 * var(--tw-bg-intensity))), transparent 70%),
    var(--void-deep);
}

/* Grain overlay + Vignette — home uniquement */
body.home::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2; /* sous la nav, juste au-dessus de la vignette */
  opacity: var(--tw-grain);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
}

body.home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1; /* sous la nav (z-index: 60) et tout le contenu */
  background: radial-gradient(ellipse at center, transparent 40%, rgba(5,5,7,0.75) 100%);
}

h1, h2, h3, h4, .lifecraft, .heading {
  font-family: var(--tw-heading-font);
  font-weight: 400;
  letter-spacing: var(--tw-letter-spacing);
  line-height: 1.05;
}

a { text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }

/* WordPress admin-bar offset */
.admin-bar .top-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .top-nav { top: 46px; } }

/* ============================================================
   PARTICLES
   ============================================================ */
.particles-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}
.particle.gold {
  background: radial-gradient(circle, var(--gold-2) 0%, rgba(255,215,0,0.4) 40%, transparent 70%);
  box-shadow: 0 0 8px var(--gold-2), 0 0 14px rgba(255,215,0,0.5);
}
.particle.purple {
  background: radial-gradient(circle, var(--purple-glow) 0%, rgba(139,92,246,0.4) 40%, transparent 70%);
  box-shadow: 0 0 10px var(--purple-glow), 0 0 18px rgba(139,92,246,0.5);
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0); opacity: 0; }
  10%  { opacity: var(--p-op, 0.8); }
  90%  { opacity: var(--p-op, 0.8); }
  100% { transform: translate3d(var(--p-dx, 0), var(--p-dy, -100vh), 0); opacity: 0; }
}

/* ============================================================
   HERO CREST
   ============================================================ */
.hero-crest {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1.4s ease 0.4s forwards;
}
.hero-crest::before {
  content: "";
  position: absolute;
  inset: -60% -20%;
  background: radial-gradient(ellipse at center,
    rgba(139,92,246,0.45) 0%, rgba(107,33,168,0.2) 30%, transparent 60%);
  filter: blur(60px);
  z-index: -1;
  animation: haloPulse calc(6s / var(--tw-pulse, 1)) ease-in-out infinite;
  pointer-events: none;
}
.crest-rune {
  font-family: var(--tw-heading-font);
  font-size: clamp(18px, 2.5vw, 32px);
  color: #f0c84a;
  line-height: 1;
  user-select: none;
}
.crest-name {
  font-family: var(--tw-heading-font);
  font-size: clamp(80px, 12vw, 180px);
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fff 0%, var(--ink) 50%, var(--gold-pale) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 40px rgba(139,92,246,calc(0.7 * var(--tw-heading-glow))))
    drop-shadow(0 0 80px rgba(107,33,168,calc(0.4 * var(--tw-heading-glow))));
  line-height: 0.9;
}
@keyframes haloPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.7; }
  50%       { transform: scale(1.1);  opacity: 1;   }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -10% -5%;
  /* URL overridden by midnight_inline_vars() */
  background-image: url('assets/images/hero-bg.avif');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.55) saturate(1.15) contrast(1.05);
  z-index: -2;
  will-change: transform;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center 60%, transparent 0%, rgba(5,5,7,0.65) 70%, var(--void-deep) 100%),
    linear-gradient(180deg, rgba(76,29,149,0.25) 0%, transparent 30%, transparent 70%, rgba(5,5,7,0.9) 100%);
}

/* ── Nav ── */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  /* Transparent sur la home (hero visible), solide sur les pages internes */
  background: transparent;
  transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s;
}
/* Toutes les pages — nav transparente au départ, opaque au scroll */
.top-nav {
  background: linear-gradient(180deg, rgba(5,5,7,0.45), transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.top-nav.scrolled {
  background: rgba(7,4,15,.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  padding: 14px 48px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.nav-brand {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 38px;
  list-style: none;
}
.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
  padding: 8px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: var(--gold-2);
  transition: width 0.3s, left 0.3s;
}
.nav-links a:hover { color: var(--gold-pale); text-shadow: 0 0 12px var(--gold-2); }
.nav-links a:hover::after { width: 100%; left: 0; }

/* WordPress generated menu */
.nav-links > .menu-item > a { color: var(--ink-dim); font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 500; transition: color 0.3s; }
.nav-links > .menu-item > a:hover { color: var(--gold-pale); }

/* ── Hero content ── */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-tag {
  font-size: 11px;
  letter-spacing: 0.6em;
  color: var(--gold-1);
  text-transform: uppercase;
  margin-top: -48px;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 1.2s ease 1s forwards;
}
.hero-tag .sep { color: var(--ink-faint); margin: 0 14px; }

.hero-slogan {
  font-family: var(--tw-heading-font);
  font-size: calc(clamp(40px, 6vw, 78px) * var(--tw-heading-scale));
  color: var(--ink);
  text-shadow:
    0 0 calc(30px * var(--tw-heading-glow)) rgba(139,92,246,calc(0.6 * var(--tw-heading-glow))),
    0 4px 0 rgba(0,0,0,0.5);
  margin-bottom: 14px;
  opacity: 0;
  animation: fadeUp 1.4s ease 1.3s forwards;
  max-width: 900px;
}
.hero-slogan .accent { color: var(--gold-2); }

.hero-sub {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-dim);
  margin-bottom: 38px;
  opacity: 0;
  animation: fadeUp 1.4s ease 1.6s forwards;
}
.hero-cta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1.4s ease 1.9s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Quickbar ── */
.hero-quickbar {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(12,8,20,0.75), rgba(5,5,7,0.9));
  border: 1px solid rgba(201,168,76,0.25);
  backdrop-filter: blur(12px);
  padding: 18px 36px;
  opacity: 0;
  animation: fadeUp 1.4s ease 2.2s forwards;
  z-index: 5;
  max-width: 92vw;
  white-space: nowrap;
}
.hero-quickbar::before,
.hero-quickbar::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1));
}
.hero-quickbar::before { right: 100%; }
.hero-quickbar::after  { left: 100%; background: linear-gradient(90deg, var(--gold-1), transparent); }

.qb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 26px;
  position: relative;
}
.qb-item + .qb-item::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201,168,76,0.4), transparent);
}
.qb-num {
  font-family: var(--tw-heading-font);
  font-size: 32px;
  color: var(--gold-pale);
  text-shadow: 0 0 18px rgba(201,168,76,0.5);
  line-height: 1;
}
.qb-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 8px;
}
.qb-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  margin-right: 6px;
  animation: livePulse calc(2s / var(--tw-pulse,1)) ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}
.scroll-hint {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--ink-faint);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1.4s ease 2.6s forwards;
  z-index: 5;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  padding: 16px 36px;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold-pale);
  font-family: var(--tw-heading-font);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2,0.8,0.2,1);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0), rgba(201,168,76,0.3), rgba(201,168,76,0));
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn:hover::before { transform: translateX(100%); }
.btn:hover {
  border-color: var(--gold-2);
  box-shadow: 0 0 30px rgba(201,168,76,0.4), inset 0 0 20px rgba(201,168,76,0.15);
  color: var(--gold-2);
  text-shadow: 0 0 10px var(--gold-2);
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-1), var(--purple-2));
  border-color: var(--purple-glow);
  color: white;
  box-shadow: 0 0 25px rgba(107,33,168,0.5), inset 0 0 15px rgba(139,92,246,0.2);
}
.btn-primary:hover {
  border-color: var(--gold-2);
  box-shadow: 0 0 40px rgba(139,92,246,0.7), 0 0 60px rgba(201,168,76,0.3), inset 0 0 25px rgba(139,92,246,0.4);
  text-shadow: 0 0 14px white;
  color: white;
}
.btn .arrow { display: inline-block; transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn .corner {
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--gold-2);
  opacity: 0;
  transition: opacity 0.4s;
}
.btn:hover .corner { opacity: 1; }
.btn .c-tl { top: -1px;    left: -1px;  border-right: none; border-bottom: none; }
.btn .c-tr { top: -1px;    right: -1px; border-left:  none; border-bottom: none; }
.btn .c-bl { bottom: -1px; left: -1px;  border-right: none; border-top:    none; }
.btn .c-br { bottom: -1px; right: -1px; border-left:  none; border-top:    none; }

/* ============================================================
   SECTIONS
   ============================================================ */
section.panel {
  position: relative;
  padding: 140px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-head { text-align: center; margin-bottom: 80px; }
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1));
}
.section-eyebrow::after { background: linear-gradient(90deg, var(--gold-1), transparent); }

.section-title {
  font-family: var(--tw-heading-font);
  font-size: calc(clamp(36px, 5vw, 64px) * var(--tw-heading-scale));
  color: var(--ink);
  text-shadow: 0 0 calc(25px * var(--tw-heading-glow)) rgba(139,92,246,calc(0.4 * var(--tw-heading-glow)));
  margin-bottom: 12px;
}
.section-sub {
  font-size: 14px;
  color: var(--ink-dim);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}
.rune-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 22px 0;
  font-family: var(--tw-heading-font);
  color: var(--rune);
  font-size: 14px;
  letter-spacing: 0.5em;
  opacity: 0.5;
}
.rune-divider::before,
.rune-divider::after {
  content: "";
  flex: 1;
  max-width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,156,255,0.5), transparent);
}

/* ============================================================
   PROGRESSION
   ============================================================ */
.tier-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(76,29,149,0.4), rgba(12,8,20,0.6));
  border: 1px solid rgba(201,168,76,0.3);
  padding: 28px 36px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
  overflow: hidden;
}
.tier-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at left, rgba(139,92,246,0.3), transparent 60%);
  pointer-events: none;
}
.tier-name {
  position: relative;
  font-family: var(--tw-heading-font);
  font-size: 28px;
  color: var(--gold-pale);
  text-shadow: 0 0 20px rgba(201,168,76,0.4);
}
.tier-name small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--gold-1);
  margin-bottom: 6px;
  font-family: var(--tw-body-font);
  font-weight: 500;
  text-transform: uppercase;
}
.tier-bar {
  height: 12px;
  background: rgba(5,5,7,0.8);
  border: 1px solid rgba(201,168,76,0.3);
  position: relative;
  overflow: hidden;
}
.tier-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-1), var(--purple-glow), var(--gold-2));
  box-shadow: 0 0 18px var(--purple-glow), inset 0 0 8px rgba(255,255,255,0.3);
  animation: barShimmer 3s linear infinite;
  background-size: 200% 100%;
}
@keyframes barShimmer {
  0%   { background-position: 0%   0; }
  100% { background-position: 200% 0; }
}
.tier-bar-fill::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8));
  filter: blur(4px);
}
.tier-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  margin-top: 10px;
  text-transform: uppercase;
}
.tier-meta strong { color: var(--gold-pale); font-weight: 500; }
.tier-mode-pills { display: flex; gap: 8px; }
.mode-pill {
  padding: 8px 14px;
  border: 1px solid rgba(201,168,76,0.25);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: rgba(5,5,7,0.5);
}
.mode-pill.active {
  background: linear-gradient(135deg, rgba(107,33,168,0.4), rgba(76,29,149,0.6));
  border-color: var(--gold-2);
  color: var(--gold-pale);
  box-shadow: 0 0 14px rgba(139,92,246,0.5);
}

/* Boss grid */
.boss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.boss-card {
  position: relative;
  background: linear-gradient(180deg, rgba(22,13,40,0.7), rgba(12,8,20,0.85));
  border: 1px solid rgba(76,29,149,0.4);
  padding: 22px 24px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), border-color 0.4s, box-shadow 0.4s;
  cursor: pointer;
}
.boss-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, var(--card-glow, rgba(139,92,246,0.2)), transparent 60%);
  pointer-events: none;
  opacity: 0.6;
}
.boss-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.6);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 30px rgba(139,92,246,0.3);
}
.boss-card.killed  { --card-glow: rgba(201,168,76,0.25); }
.boss-card.killed:hover { box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 30px rgba(201,168,76,0.4); }
.boss-card.killed::after {
  content: "";
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  background: radial-gradient(circle, rgba(201,168,76,0.4), transparent 60%);
  border-radius: 50%;
}
.boss-num {
  font-family: var(--tw-heading-font);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--ink-faint);
}
.boss-name {
  font-family: var(--tw-heading-font);
  font-size: 22px;
  color: var(--ink);
  margin: 6px 0 14px;
  line-height: 1.1;
}
.boss-card.killed   .boss-name { color: var(--gold-pale); text-shadow: 0 0 14px rgba(201,168,76,0.4); }
.boss-card.progress .boss-name { color: var(--purple-glow); }
.boss-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(76,29,149,0.3);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.boss-status { display: flex; align-items: center; gap: 8px; color: var(--ink-dim); }
.boss-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-faint); }
.boss-status.killed   .dot { background: var(--gold-2); box-shadow: 0 0 10px var(--gold-2); }
.boss-status.killed         { color: var(--gold-pale); }
.boss-status.progress .dot  {
  background: var(--purple-glow);
  box-shadow: 0 0 10px var(--purple-glow);
  animation: progressPulse calc(1.2s / var(--tw-pulse,1)) ease-in-out infinite;
}
.boss-status.progress { color: var(--purple-glow); }
@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.boss-date { color: var(--ink-dim); }
.boss-pct { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: rgba(76,29,149,0.3); }
.boss-pct-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-glow), var(--gold-2));
  box-shadow: 0 0 10px var(--purple-glow);
}
.boss-empty {
  text-align: center;
  color: var(--ink-dim);
  padding: 40px 0;
  font-size: 14px;
}

/* ============================================================
   RECRUTEMENT
   ============================================================ */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.role-col h3 {
  font-family: var(--tw-heading-font);
  font-size: 22px;
  color: var(--gold-pale);
  margin-bottom: 6px;
  text-shadow: 0 0 14px rgba(201,168,76,0.3);
}
.role-col .role-sub {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.class-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(74,69,85,0.3);
  transition: padding 0.3s, background 0.3s;
  position: relative;
}
.class-row::before {
  content: "";
  position: absolute;
  left: -16px; top: 50%;
  width: 8px; height: 1px;
  background: var(--gold-1);
  opacity: 0;
  transition: opacity 0.3s, left 0.3s;
}
.class-row:hover::before { opacity: 1; left: -8px; }
.class-row:hover { padding-left: 14px; background: rgba(76,29,149,0.08); }
.class-name { font-family: var(--tw-heading-font); font-size: 15px; letter-spacing: 0.06em; }
.class-spec { font-size: 10px; color: var(--ink-faint); letter-spacing: 0.2em; text-transform: uppercase; margin-left: 8px; }
.status-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.status-badge.open    { color: #6ee7b7; background: rgba(16,185,129,0.08); box-shadow: 0 0 12px rgba(16,185,129,0.25); }
.status-badge.limited { color: var(--gold-2); background: rgba(255,215,0,0.08); box-shadow: 0 0 12px rgba(255,215,0,0.25); }
.status-badge.closed  { color: #6b7280; background: rgba(107,114,128,0.06); }
.status-badge.high    {
  color: var(--purple-glow);
  background: rgba(139,92,246,0.1);
  box-shadow: 0 0 14px rgba(139,92,246,0.4);
  animation: highPulse calc(2s / var(--tw-pulse,1)) ease-in-out infinite;
}
@keyframes highPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(139,92,246,0.4); }
  50%       { box-shadow: 0 0 22px rgba(139,92,246,0.8); }
}
.values-strip {
  margin: 60px 0 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.value-cell {
  padding: 24px;
  text-align: center;
  border-right: 1px solid rgba(201,168,76,0.12);
}
.value-cell:last-child { border-right: none; }
.value-cell .num { font-family: var(--tw-heading-font); font-size: 28px; color: var(--gold-pale); }
.value-cell .lbl { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-dim); margin-top: 8px; }
.apply-cta { text-align: center; margin-top: 40px; }
.apply-cta p { font-size: 14px; color: var(--ink-dim); line-height: 1.7; max-width: 540px; margin: 0 auto 24px; }

/* ============================================================
   ACTUALITÉS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 22px;
}
.news-card {
  position: relative;
  background: linear-gradient(180deg, rgba(22,13,40,0.5), rgba(12,8,20,0.8));
  border: 1px solid rgba(201,168,76,0.15);
  overflow: hidden;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 25px rgba(139,92,246,0.2);
}
.news-img {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a0f33, #0a0815);
  overflow: hidden;
}
.news-card.featured .news-img { aspect-ratio: 16/8; }
.news-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--news-bg, linear-gradient(135deg,rgba(76,29,149,0.6),rgba(12,8,20,0.9)));
  background-size: cover;
  background-position: center;
  filter: brightness(0.7) saturate(1.1);
  transition: transform 0.6s;
}
.news-card:hover .news-img::before { transform: scale(1.05); }
.news-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,5,7,0.95) 100%);
}
.news-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 5px 10px;
  background: rgba(76,29,149,0.85);
  border: 1px solid var(--purple-glow);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: white;
}
.news-tag.gold { background: rgba(201,168,76,0.85); border-color: var(--gold-2); color: var(--void-deep); }
.news-body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 10px; letter-spacing: 0.3em; color: var(--gold-1); text-transform: uppercase; margin-bottom: 10px; }
.news-title { font-family: var(--tw-heading-font); font-size: 22px; color: var(--ink); line-height: 1.15; margin-bottom: 10px; }
.news-card.featured .news-title { font-size: 30px; }
.news-card:hover .news-title { color: var(--gold-pale); }
.news-excerpt { font-size: 13px; color: var(--ink-dim); line-height: 1.65; flex: 1; }
.news-readmore { margin-top: 16px; font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold-1); display: flex; align-items: center; gap: 8px; }
.news-readmore .arrow { transition: transform 0.3s; }
.news-card:hover .news-readmore .arrow { transform: translateX(5px); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.2,0.8,0.2,1), transform 1s cubic-bezier(0.2,0.8,0.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2,0.8,0.2,1), transform 0.8s cubic-bezier(0.2,0.8,0.2,1);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.65s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.75s; }
.reveal-stagger.in > *:nth-child(9) { transition-delay: 0.85s; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  margin-top: 80px;
  padding: 60px 48px 30px;
  border-top: 1px solid rgba(201,168,76,0.15);
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(76,29,149,0.15));
}
.foot-runes { font-family: var(--tw-heading-font); color: var(--rune); font-size: 18px; letter-spacing: 0.6em; opacity: 0.4; margin-bottom: 26px; }
.foot-brand { font-family: var(--tw-heading-font); font-size: 28px; color: var(--gold-pale); text-shadow: 0 0 16px rgba(201,168,76,0.4); margin-bottom: 10px; }
.foot-note  { font-size: 11px; letter-spacing: 0.3em; color: var(--ink-faint); text-transform: uppercase; }

/* ============================================================
   INTRO OVERLAY
   ============================================================ */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: var(--void-deep);
  z-index: 200;
  pointer-events: none;
  animation: introFade 1.6s ease 0.6s forwards;
}
@keyframes introFade { to { opacity: 0; visibility: hidden; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .top-nav { padding: 16px 24px; }
  .nav-links { display: none; }
  section.panel { padding: 100px 24px; }
  .role-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .values-strip { grid-template-columns: repeat(2, 1fr); }
  .tier-banner { grid-template-columns: 1fr; gap: 18px; }
  .hero-quickbar { padding: 12px 14px; }
  .qb-item { padding: 0 14px; }
  .hero-cta-row { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .hero-quickbar { flex-wrap: wrap; justify-content: center; }
  .qb-item::before { display: none; }
  .boss-grid { grid-template-columns: 1fr; }
}
