@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Cinzel:wght@400;600;700&family=IM+Fell+English:ital@0;1&display=swap');

/* =========================================================
   WARHEIM — Viking Blood Design System
   ========================================================= */
:root {
  /* Core Valheim Survival Palette */
  --blood:       #8B0000;
  --blood2:      #5A0505;
  --crimson:     #C0000A;
  --iron:        #0D0F10;
  --iron-light:  #1E2326;
  --wood:        #130D08;
  --wood-light:  #221508;
  --stone:       #080909;
  --void:        #020303;
  --ash:         #D4BDB6;
  --ash-dim:     #8A6E62;
  --rune-glow:   #EFA140;
  --rune:        #7A0808;
  --ember:       #CC4400;
  --nav-height:  92px;
}

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

html {
  scroll-behavior: smooth;
  cursor: none;
}

/* Force cursor none sur tous les éléments interactifs */
a, button, input, select, textarea, label,
.filter-btn, .accordion-header, .gallery-item,
.hamburger, .card, .mod-card, .btn, .btn-ghost,
[onclick], [role="button"] {
  cursor: none !important;
}

body {
  background-color: var(--stone);
  color: var(--ash);
  font-family: 'Cinzel', serif;
  overflow-x: hidden;
  position: relative;
  line-height: 1.75;
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =========================================================
   VIGNETTE SOMBRE AUX COINS — sans grain
   ========================================================= */
/* body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(2, 0, 0, 0.72) 100%);
  pointer-events: none;
  z-index: 9997;
} */

/* =========================================================
   SCROLLBAR
   ========================================================= */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--blood), var(--crimson));
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover { background: var(--crimson); }

/* =========================================================
   CUSTOM CURSOR — Hache viking SVG
   ========================================================= */
#custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 38px;
  height: 38px;
  pointer-events: none;
  /* translate3d active l'accélération matérielle (GPU) pour plus de fluidité */
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) translate(-4px, -4px);
  z-index: 9999;
  filter: drop-shadow(0 0 4px rgba(139,0,0,0.5));
  will-change: transform;
}
#custom-cursor svg {
  width: 38px;
  height: 38px;
  display: block;
}
#custom-cursor.hovering {
  filter: drop-shadow(0 0 10px rgba(200, 50, 0, 0.9));
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) translate(-4px, -4px) scale(1.15) rotate(-12deg);
}
#custom-cursor.clicking {
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) translate(-4px, -4px) scale(0.82) rotate(-32deg);
  filter: drop-shadow(0 0 18px rgba(200, 50, 0, 1));
  transition: filter 0.06s;
}

/* =========================================================
   HIGH QUALITY BLOOD SPLASH
   ========================================================= */
.blood-splash {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 0; height: 0;
}
.blood-splash .drop {
  position: absolute;
  background: radial-gradient(circle at 35% 35%, #ff4d4d, var(--crimson) 40%, var(--blood) 80%, #2b0000 100%);
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(139, 0, 0, 0.8), inset 0 0 4px rgba(255,255,255,0.4);
  transform-origin: center;
  animation: splashOut 0.6s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}
@keyframes splashOut {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0.1); opacity: 0; }
}


/* =========================================================
   LOGO IMAGES
   ========================================================= */
.logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(139, 0, 0, 0.8));
  transition: filter 0.3s ease, transform 0.3s ease;
  margin-top: 10px
}
.logo-img:hover {
  filter: drop-shadow(0 0 16px rgba(192, 57, 43, 1));
  transform: scale(1.05);
}

.hero-logo {
  width: clamp(200px, 38vw, 480px);
  height: auto;
  object-fit: contain;
  margin-bottom: 24px;
  filter:
    drop-shadow(0 0 25px rgba(139, 0, 0, 1))
    drop-shadow(0 0 60px rgba(139, 0, 0, 0.5));
  animation: logoPulse 5s ease-in-out infinite alternate;
}
@keyframes logoPulse {
  from { filter: drop-shadow(0 0 18px rgba(139, 0, 0, 0.9)) drop-shadow(0 0 45px rgba(139, 0, 0, 0.3)); }
  to   { filter: drop-shadow(0 0 32px rgba(192, 57, 43, 1)) drop-shadow(0 0 80px rgba(139, 0, 0, 0.7)); }
}

.footer-logo-img {
  height: 65px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(139, 0, 0, 0.9));
  transition: filter 0.3s;
}
.footer-logo-img:hover {
  filter: drop-shadow(0 0 22px rgba(192, 57, 43, 1));
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #e8d5d5;
  letter-spacing: 0.03em;
}

.cinzel-dec { font-family: 'Cinzel Decorative', serif; }
.italic     { font-family: 'IM Fell English', serif; font-style: italic; }

.text-gradient {
  background: linear-gradient(135deg, #f0d0d0 0%, var(--crimson) 45%, var(--blood) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes flicker {
  0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(192, 57, 43, 0.6), 0 0 30px rgba(139, 0, 0, 0.3);
  }
  20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
    opacity: 0.35;
    text-shadow: none;
  }
}
.flicker { animation: flicker 5s infinite alternate; }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.25s; }
.reveal-delay-3 { transition-delay: 0.4s; }

/* =========================================================
   NAVIGATION
   ========================================================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  background: rgba(6, 4, 4, 0.88);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(139,0,0,0.7);
  box-shadow: 0 2px 30px rgba(139, 0, 0, 0.25), 0 1px 0 rgba(192,57,43,0.15);
}


.logo {
  font-size: 1.8rem;
  color: #e8d5d5;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  color: var(--ash);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  text-shadow: 0 0 12px rgba(192, 57, 43, 0.6);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
  box-shadow: 0 0 8px var(--blood);
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--ash);
  transition: transform 0.3s, opacity 0.3s;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  /* display: inline-block; */
  padding: 13px 32px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #eed5d5;
  background: var(--blood);
  border: 2px solid var(--iron-light);
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 4px 6px rgba(0,0,0,0.4);
  overflow: hidden;
}
.btn::before {
  content: none;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--crimson);
  border-color: #c0392b;
  box-shadow: 0 6px 24px rgba(139,0,0,0.55), inset 0 0 12px rgba(139,0,0,0.4);
  text-shadow: 0 0 8px rgba(255,180,180,0.4);
}

.btn-ghost {
  background: transparent;
  border: 1px dashed var(--ash-dim);
  color: var(--ash);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(139, 0, 0, 0.1);
  border: 1px solid var(--crimson);
  color: #eed5d5;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.2);
}

/* =========================================================
   PREMIUM BLOOD DRIPS
   ========================================================= */
.blood-drip {
  position: fixed;
  top: -60px;
  background: radial-gradient(ellipse at bottom, var(--crimson) 0%, var(--blood) 60%, #300 100%);
  border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%;
  box-shadow: inset 0 -3px 5px rgba(0,0,0,0.5), 0 8px 15px rgba(139, 0, 0, 0.8);
  pointer-events: none;
  z-index: 9998;
  animation: dripFall var(--drip-time) cubic-bezier(0.4, 0, 1, 1) forwards;
}
.blood-drip::after {
  content: '';
  position: absolute;
  top: -150%; 
  left: 20%;
  width: 60%; 
  height: 150%;
  background: linear-gradient(to top, var(--blood), transparent);
  border-radius: 50%;
  opacity: 0.8;
}
@keyframes dripFall {
  0%   { transform: translateY(0) scaleY(1); opacity: 0; }
  5%   { opacity: 1; transform: translateY(5vh) scaleY(1.1); }
  90%  { opacity: 1; transform: translateY(95vh) scaleY(1.4); }
  100% { transform: translateY(110vh) scaleY(2); opacity: 0; }
}



/* =========================================================
   PAGE TRANSITION OVERLAY
   ========================================================= */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--void);
  z-index: 99999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}
#page-transition.loaded {
  opacity: 0;
}
#page-transition.exiting {
  opacity: 1;
  pointer-events: all;
}

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 52px;
  background: var(--blood);
  border: 1px solid var(--crimson);
  color: #e8d5d5;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9900;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s, box-shadow 0.3s;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  pointer-events: none;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
#back-to-top:hover {
  background: var(--crimson);
  box-shadow: 0 0 24px rgba(139, 0, 0, 0.7);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

#embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(139, 0, 0, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(14, 20, 16, 0.6) 0%, transparent 70%),
    radial-gradient(ellipse 120% 40% at 50% 105%, rgba(80, 0, 0, 0.6) 0%, transparent 50%),
    var(--stone);
  z-index: 0;
}

.hero-bg::after {
  content: none;
}

/* Ground glow at the bottom of hero */
.hero-bg::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, rgba(100,5,5,0.35) 0%, transparent 100%);
  z-index: 1;
}

.rune-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 38vw;
  color: var(--blood);
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
  font-family: sans-serif;
  filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.eyebrow {
  font-family: 'Cinzel', serif;
  letter-spacing: 5px;
  font-size: 1rem;
  color: var(--ash);
  text-transform: uppercase;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(139,0,0,0.3);
  display: inline-block;
  padding-bottom: 8px;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 10rem);
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 0 2px 40px rgba(139, 0, 0, 0.5);
}

.tagline {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--ash);
  margin-bottom: 30px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.divider {
  font-size: 2rem;
  color: var(--blood);
  margin-bottom: 40px;
  text-shadow: 0 0 15px var(--blood);
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--blood);
  font-size: 1.8rem;
  animation: bounce 2.5s infinite;
  text-shadow: 0 0 12px var(--blood);
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-12px) translateX(-50%); }
  60% { transform: translateY(-6px) translateX(-50%); }
}

/* =========================================================
   SECTIONS GLOBAL
   ========================================================= */
section {
  padding: 110px 5%;
  position: relative;
}

section + section::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blood), transparent);
  opacity: 0.4;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-label {
  color: var(--ash-dim);
  font-size: 0.9rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
  color: #e8d5d5;
}

.section-rune {
  color: var(--rune);
  font-size: 1.8rem;
  text-shadow: 0 0 16px rgba(107, 0, 0, 0.6);
}

/* =========================================================
   SECTION BACKGROUNDS — Atmosphères profondes et solides
   ========================================================= */
#systeme {
  background: linear-gradient(to bottom, #080909 0%, #0C0806 100%);
}

#rejoindre {
  background: linear-gradient(to bottom, #0C0806 0%, #0F0B0A 100%);
}

#communaute {
  background: linear-gradient(180deg, #0F0B0A 0%, #0A0505 60%, #080303 100%);
}

/* =========================================================
   SYSTEM CARDS GRID
   ========================================================= */
.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--wood);
  border: 2px solid var(--iron-light);
  padding: 44px 32px;
  text-align: center;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 8px 28px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.03);
}

.card::before {
  content: none;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--rune-glow);
  transition: width 0.4s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--blood);
  box-shadow: 0 18px 40px rgba(0,0,0,0.9), 0 0 28px rgba(139, 0, 0, 0.25);
}
.card:hover::after { width: 100%; }

/* Card Icon — emoji replaced by SVG */
.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 12px rgba(139,0,0,0.4));
}
.card-icon svg {
  width: 54px;
  height: 54px;
  stroke: rgba(188,170,164,0.6);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.35s, filter 0.35s, transform 0.35s;
  filter: drop-shadow(0 0 8px rgba(139,0,0,0.3));
}
.card:hover .card-icon svg {
  stroke: #eed5d5;
  filter: drop-shadow(0 0 18px rgba(192,57,43,0.8));
  transform: scale(1.08);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: #EED5D5;
  letter-spacing: 1px;
}
.card p {
  font-size: 1.05rem;
  color: var(--ash);
  line-height: 1.8;
}

/* =========================================================
   ACCESS GRID
   ========================================================= */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1000px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   JOIN BOX
   ========================================================= */
.join-box {
  background: var(--wood);
  border: 2px solid var(--blood);
  padding: 64px 44px;
  text-align: center;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 50px rgba(0, 0, 0, 0.9),
    0 10px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.join-box::before {
  content: none;
}
.join-box:hover {
  transform: translateY(-6px);
  border-color: var(--crimson);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.9), 0 20px 50px rgba(139, 0, 0, 0.4);
}

.steps {
  text-align: left;
  margin: 44px auto;
  max-width: 500px;
  list-style: none;
  counter-reset: join-step;
}
.steps li {
  position: relative;
  padding-left: 56px;
  margin-bottom: 28px;
  font-size: 1.05rem;
  color: var(--ash);
}
.steps li::before {
  counter-increment: join-step;
  content: counter(join-step);
  position: absolute;
  left: 0;
  top: -4px;
  width: 36px;
  height: 36px;
  background: var(--blood);
  color: #f0d8d8;
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
}

.join-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.link-secondary {
  color: var(--ash-dim);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: color 0.3s;
}
.link-secondary:hover { color: var(--crimson); }

/* =========================================================
   DISCORD SECTION — Rethemé sang/fer (sans bleu Discord)
   ========================================================= */
.discord-card {
  background: var(--wood);
  border: 2px solid var(--blood);
  border-radius: 4px;
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.9), 0 12px 40px rgba(139, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}
.discord-card::before {
  content: none;
}
.discord-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
  opacity: 0.8;
}
.discord-card:hover {
  transform: translateY(-6px);
  border-color: var(--crimson);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.9), 0 20px 50px rgba(139, 0, 0, 0.4);
}
.discord-card svg {
  width: 56px;
  height: 56px;
  fill: var(--ash);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  transition: fill 0.3s, filter 0.3s;
  filter: drop-shadow(0 0 8px rgba(188,170,164,0.2));
}
.discord-card:hover svg {
  fill: #e8d5d5;
  filter: drop-shadow(0 0 14px rgba(188,170,164,0.5));
}
.discord-card h3 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #e8d5d5;
  position: relative;
  z-index: 2;
}
.discord-card p {
  color: var(--ash-dim);
  margin-bottom: 28px;
  font-size: 1rem;
  position: relative;
  z-index: 2;
}
.btn-discord {
  background: var(--blood);
  color: #eed5d5;
  border: 2px solid var(--crimson);
  padding: 12px 28px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: bold;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}
.btn-discord:hover {
  background: var(--crimson);
  border-color: #c0392b;
  box-shadow: 0 6px 24px rgba(139,0,0,0.55), inset 0 0 12px rgba(139,0,0,0.4);
  text-shadow: 0 0 8px rgba(255,180,180,0.4);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: rgba(6,4,4,0.98);
  border-top: 2px solid var(--blood);
  box-shadow: 0 -10px 50px rgba(139, 0, 0, 0.2);
  padding: 70px 5% 35px;
  text-align: center;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
  opacity: 0.5;
}

.footer-quote {
  color: var(--ash-dim);
  margin-bottom: 32px;
  font-size: 1.1rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--ash-dim);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--crimson); }
.copyright {
  color: var(--ash-dim);
  font-size: 0.8rem;
  border-top: 1px solid rgba(90,24,24,0.3);
  padding-top: 22px;
  letter-spacing: 1px;
}

/* =========================================================
   MODS PAGE
   ========================================================= */
.mods-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.filter-btn {
  background: rgba(22,16,15,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--rune);
  color: var(--ash);
  padding: 7px 20px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s;
  border-radius: 0;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0% 100%);
}
.filter-btn.active,
.filter-btn:hover {
  background: rgba(139, 0, 0, 0.85);
  color: #f0d8d8;
  border-color: var(--blood);
  box-shadow: 0 0 18px rgba(139,0,0,0.35);
}

.mods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.mod-card {
  background: var(--wood);
  border: 2px solid var(--iron);
  border-left: 4px solid var(--rune-glow);
  padding: 20px 18px;
  border-radius: 2px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 4px 10px rgba(0,0,0,0.5);
}
.mod-card::before {
  content: none;
}
.mod-card > * {
  position: relative;
  z-index: 1;
}
.mod-card:hover {
  background: var(--wood-light);
  border-left-color: var(--crimson);
  transform: translateX(4px);
  box-shadow: -4px 0 24px rgba(139, 0, 0, 0.35), inset 0 0 30px rgba(0,0,0,0.9);
}

.mod-card.hidden { display: none; }

.mod-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.mod-title {
  font-size: 1.05rem;
  color: #EED5D5;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.mod-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 0;
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
  align-self: flex-start;
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0% 100%);
}
.badge-gameplay   { background: rgba(0,70,35,0.75);   color: #c2f0da; border: 1px solid rgba(26,92,56,0.8); }
.badge-graphismes { background: rgba(80,10,10,0.75);   color: #f0c2c2; border: 1px solid rgba(92,26,26,0.8); }
.badge-equipement { background: rgba(70,50,0,0.75);    color: #f0dbb2; border: 1px solid rgba(92,75,26,0.8); }
.badge-qol        { background: rgba(0,40,80,0.75);    color: #b2d4f0; border: 1px solid rgba(26,60,92,0.8); }
.badge-monde      { background: rgba(50,0,70,0.75);    color: #d4b2f0; border: 1px solid rgba(75,26,92,0.8); }
.badge-build      { background: rgba(50,35,10,0.75);   color: #f0dca0; border: 1px solid rgba(100,75,20,0.8); }

.mod-desc {
  color: var(--ash);
  font-size: 0.95rem;
  flex-grow: 1;
  line-height: 1.7;
}

.mod-card.placeholder {
  border: 1px dashed var(--rune);
  border-left: 3px dashed var(--rune);
  background: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.mod-card.placeholder .mod-title { color: var(--ash-dim); }

/* =========================================================
   RULES PAGE
   ========================================================= */
.parchment-container {
  max-width: 820px;
  margin: 0 auto;
}

.rule-group-title {
  font-size: 2rem;
  margin-bottom: 28px;
  padding-bottom: 12px;
  position: relative;
  color: #e0c5c5;
}
.rule-group-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--blood);
  box-shadow: 60px 0 0 var(--blood);
}

.rule-item {
  background: var(--wood);
  border: 2px solid var(--iron);
  border-left: 4px solid var(--blood);
  padding: 30px 32px;
  margin-bottom: 22px;
  border-radius: 2px;
  position: relative;
  transition: border-left-color 0.3s, background 0.3s, transform 0.3s;
  overflow: hidden;
  box-shadow: inset 0 0 25px rgba(0,0,0,0.8), 0 6px 15px rgba(0,0,0,0.5);
}
.rule-item::before {
  content: none;
}
.rule-head{
  display: flex;
}
.rule-item > * { position: relative; z-index: 1; }
.rule-item::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 100%;
  background: rgba(139,0,0,0.08);
  transition: width 0.4s;
  z-index: 0;
}
.rule-item:hover {
  border-left-color: var(--crimson);
  background: var(--wood-light);
  transform: translateX(4px);
}
.rule-item:hover::after { width: 100%; }

.rule-num {
  font-size: 1.5rem;
  color: var(--crimson);
  font-family: 'Cinzel Decorative', serif;
  margin-bottom: 12px;
  display: block;
  text-shadow: 0 0 14px rgba(139,0,0,0.5);
}
.rule-item h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  margin-top: 4px;
  margin-left: 3px;
  color: #EED5D5;
}
.rule-item p {
  color: var(--ash);
  line-height: 1.8;
}

/* =========================================================
   GALLERY PAGE
   ========================================================= */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  border: 1px solid rgba(107,32,32,0.35);
  border-radius: 1px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: border-color 0.35s, box-shadow 0.35s;
  cursor: crosshair;
  position: relative;
  overflow: hidden;
}
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,0,0,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 1;
}
.gallery-item:hover {
  border-color: var(--blood);
  box-shadow: 0 0 35px rgba(139,0,0,0.35), inset 0 0 30px rgba(0,0,0,0.5);
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

/* Gallery SVG scene icons */
.gallery-icon {
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
  transition: transform 0.35s;
}
.gallery-icon svg {
  width: 52px;
  height: 52px;
  stroke: rgba(188,170,164,0.45);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.35s, filter 0.35s, transform 0.35s;
  filter: drop-shadow(0 0 6px rgba(139,0,0,0.25));
}
.gallery-item.large .gallery-icon svg {
  width: 72px;
  height: 72px;
}
.gallery-item:hover .gallery-icon svg {
  stroke: rgba(238,213,213,0.85);
  filter: drop-shadow(0 0 16px rgba(192,57,43,0.65));
  transform: scale(1.1);
}

.gallery-text {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: rgba(188,170,164,0.7);
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  background: rgba(3,5,5,0.7);
  padding: 4px 14px;
  border: 1px solid rgba(139,0,0,0.25);
  backdrop-filter: blur(4px);
  transition: color 0.3s, border-color 0.3s;
}
.gallery-item:hover .gallery-text {
  color: rgba(238,213,213,0.9);
  border-color: rgba(139,0,0,0.5);
}

/* CSS Scene Backgrounds for Gallery items */
.scene-ragnarok {
  background:
    radial-gradient(ellipse 100% 50% at 30% 10%, rgba(160,20,0,0.6) 0%, transparent 55%),
    radial-gradient(ellipse 80% 40% at 70% 80%, rgba(60,0,0,0.8) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(200,80,0,0.2) 0%, transparent 50%),
    linear-gradient(160deg, #0d0202 0%, #150404 40%, #080101 100%);
}
.scene-fjords {
  background:
    radial-gradient(ellipse 50% 35% at 70% 15%, rgba(180,210,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 80% 30% at 50% 100%, rgba(5,10,30,0.9) 0%, transparent 70%),
    linear-gradient(to bottom, #050a18 0%, #080e22 50%, #040608 100%);
}
.scene-arena {
  background:
    radial-gradient(ellipse 90% 35% at 50% 100%, rgba(120,0,0,0.75) 0%, transparent 60%),
    radial-gradient(ellipse 30% 20% at 20% 70%, rgba(80,20,0,0.3) 0%, transparent 50%),
    radial-gradient(ellipse 30% 20% at 80% 70%, rgba(80,20,0,0.3) 0%, transparent 50%),
    linear-gradient(to bottom, #080101 0%, #0f0303 100%);
}
.scene-forge {
  background:
    radial-gradient(ellipse 55% 45% at 50% 95%, rgba(200,90,0,0.65) 0%, rgba(100,30,0,0.4) 40%, transparent 70%),
    radial-gradient(ellipse 30% 20% at 50% 80%, rgba(255,120,0,0.25) 0%, transparent 50%),
    linear-gradient(to bottom, #070302 0%, #0e0503 100%);
}
.scene-citadelle {
  background:
    radial-gradient(ellipse 30% 40% at 75% 15%, rgba(140,150,190,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 20% at 50% 100%, rgba(30,15,5,0.9) 0%, transparent 70%),
    linear-gradient(to bottom, #030508 0%, #060609 100%);
}
.scene-orage {
  background:
    radial-gradient(ellipse 70% 50% at 40% 25%, rgba(90,0,140,0.35) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 70% 60%, rgba(60,0,100,0.2) 0%, transparent 55%),
    linear-gradient(to bottom, #060210 0%, #090414 100%);
}
.scene-cendres {
  background:
    radial-gradient(ellipse 80% 40% at 50% 60%, rgba(50,42,38,0.45) 0%, transparent 70%),
    radial-gradient(ellipse 40% 20% at 30% 80%, rgba(60,50,40,0.3) 0%, transparent 50%),
    linear-gradient(to bottom, #090808 0%, #0e0d0b 100%);
}
.scene-polaire {
  background:
    radial-gradient(ellipse 80% 30% at 50% 40%, rgba(0,90,65,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 45% 20% at 25% 50%, rgba(0,110,80,0.14) 0%, transparent 50%),
    radial-gradient(ellipse 35% 15% at 75% 45%, rgba(0,80,120,0.12) 0%, transparent 50%),
    linear-gradient(to bottom, #020912 0%, #040b14 100%);
}

/* =========================================================
   FAQ PAGE
   ========================================================= */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.accordion {
  background: rgba(18,12,10,0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(107,32,32,0.3);
  border-left: 4px solid var(--blood);
  margin-bottom: 10px;
  border-radius: 1px;
  overflow: hidden;
  transition: border-left-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.accordion.expanded {
  border-left-color: var(--crimson);
  background: rgba(26,16,14,0.92);
  box-shadow: 0 4px 25px rgba(139,0,0,0.18);
}

.accordion-header {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ash);
  letter-spacing: 0.5px;
  transition: color 0.3s;
}
.accordion-header:hover { color: #fff; }

.accordion-icon {
  color: var(--blood);
  transition: transform 0.3s, color 0.3s;
  font-size: 1.3rem;
}
.accordion.expanded .accordion-icon {
  transform: rotate(45deg);
  color: var(--crimson);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  padding: 0 24px;
}
.accordion.expanded .accordion-content { padding-bottom: 22px; }
.accordion-content p {
  color: var(--ash);
  border-top: 1px solid rgba(139,0,0,0.2);
  padding-top: 16px;
  line-height: 1.9;
  font-family: 'IM Fell English', serif;
  font-size: 1.1rem;
}

/* =========================================================
   PAGE HEADERS (inner pages)
   ========================================================= */
.page-header {
  padding-top: calc(var(--nav-height) + 70px);
  padding-bottom: 50px;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(139,0,0,0.12) 0%, transparent 70%),
    rgba(14, 10, 9, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--blood);
  box-shadow: 0 6px 50px rgba(139, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -50deg,
    transparent,
    transparent 70px,
    rgba(139,0,0,0.018) 70px,
    rgba(139,0,0,0.018) 72px
  );
  pointer-events: none;
}

/* =========================================================
   MEDIA QUERIES
   ========================================================= */
@media (max-width: 900px) {
  .system-grid  { grid-template-columns: repeat(2, 1fr); }
  .mods-grid    { grid-template-columns: repeat(2, 1fr); }
  .masonry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: 260px;
    height: calc(100vh - var(--nav-height));
    background: rgba(6,4,4,0.97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding-top: 50px;
    transition: right 0.4s ease;
    border-left: 2px solid var(--blood);
  }
  .nav-links.active { right: 0; }
  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .system-grid, .mods-grid, .masonry-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: auto; grid-row: auto; }
  .hero-title { font-size: 3rem; }
  .join-box { padding: 40px 20px; }
  .rule-item { padding: 22px 20px; }
  #back-to-top { bottom: 20px; right: 20px; }
}

/* FIX: cursor media query — syntaxe correcte (hors nesting) */
@media (pointer: coarse) {
  #custom-cursor { display: none; }
  html { cursor: auto; }
}
