/* ===========================
   OPTCG — Premium Stylesheet v2
   =========================== */

/* font-display:swap — texte visible pendant chargement async des polices */
/* Note: font-display:swap géré directement par Google Fonts via le CSS chargé en preload */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  font-size: 16px
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-color);
  color: var(--parchment);
  overflow-x: hidden;
  cursor: none
}

img {
  max-width: 100%;
  display: block
}

a {
  text-decoration: none;
  color: inherit
}

ul {
  list-style: none
}

button {
  cursor: none;
  border: none;
  background: none;
  font-family: inherit
}

:root {
  --red: #D32F2F;
  --red-glow: #ff4444;
  --blue: #3A5F8F;
  --gold: #EBC352;
  --gold-glow: #FFD700;
  --brown: #6D4C41;
  --parchment: #E8D3A7;
  --parchment-dark: #C4A471;
  --steel: #9E9E9E;
  --bg-color: #0d1527;
  --dark: #0d1527;
  --dark2: #131d36;
  --dark3: #182645;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(235, 195, 82, 0.2);
  --border-hover: rgba(235, 195, 82, 0.4);
  --shadow-gold: 0 0 30px rgba(235, 195, 82, 0.25);
  --shadow-red: 0 0 30px rgba(211, 47, 47, 0.3);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CURSOR */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .1s, width .2s, height .2s, background .2s;
  mix-blend-mode: difference
}

.cursor-trail {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(235, 195, 82, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform .12s ease, width .3s, height .3s, opacity .3s
}

/* Désactivation curseur custom sur appareils tactiles */
@media (hover: none), (pointer: coarse) {
  body,
  button,
  a { cursor: auto !important; }
  .cursor,
  .cursor-trail { display: none !important; }
}

/* PARTICLES */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  will-change: transform;
  contain: strict;
}

/* GRADIENT TEXT */
.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, #ff6b35 50%, var(--gold-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(255, 107, 53, 0.4);
  filter: drop-shadow(0 0 20px rgba(235, 195, 82, 0.4));
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 1100px;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 12px 0 16px;
  background: rgba(10, 12, 20, 0.25);
  backdrop-filter: blur(24px) saturate(180%) brightness(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.1);
  border: 1px solid rgba(235, 195, 82, 0.25);
  border-radius: 100px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, top 0.4s ease
}

.navbar.scrolled {
  background: rgba(10, 12, 20, 0.55);
  border-color: rgba(235, 195, 82, 0.35);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05)
}

.nav-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Pirata One', cursive;
  font-size: 1.6rem;
  letter-spacing: 2px;
  flex-shrink: 0
}

.nav-logo-img {
  width: 64px;
  height: 64px;
  border-radius: 0;
  filter: drop-shadow(0 0 10px rgba(235, 195, 82, 0.45));
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), filter var(--transition)
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.08) rotate(-4deg);
  filter: drop-shadow(0 0 18px rgba(235, 195, 82, 0.7))
}

.logo-text {
  background: linear-gradient(135deg, var(--gold), var(--parchment));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem
}

.nav-link {
  padding: .5rem 1rem;
  color: rgba(232, 211, 167, 0.85);
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: 0.02em;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  position: relative
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 50%;
  right: 50%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
  transition: left 0.35s cubic-bezier(0.4,0,0.2,1), right 0.35s cubic-bezier(0.4,0,0.2,1)
}

.nav-link:hover {
  color: var(--gold)
}

.nav-link:hover::after,
.nav-link.active-nav::after {
  left: 8%;
  right: 8%
}

.nav-link.active-nav {
  color: var(--gold)
}

/* ===== NAV LINK BIENTÔT ===== */
.nav-link-soon {
  pointer-events: none;
  opacity: 0.45
}

.nav-link-soon::after {
  display: none !important
}

.drawer-link-soon {
  pointer-events: none;
  opacity: 0.45
}

.soon-badge {
  display: inline-flex;
  align-items: center;
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  background: rgba(211, 47, 47, 0.15);
  color: rgba(220, 80, 80, 0.9);
  border: 1px solid rgba(211, 47, 47, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 5px;
  vertical-align: middle;
  position: relative;
  top: -1px
}

.nav-cta {
  background: linear-gradient(135deg, #5865F2, #7289DA);
  color: #fff;
  padding: .45rem 1.2rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4)
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(88, 101, 242, 0.6)
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(235, 195, 82, 0.2);
  background: rgba(235, 195, 82, 0.06);
  color: var(--gold);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  flex-shrink: 0
}

.hamburger::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(235, 195, 82, 0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease
}

.hamburger:hover {
  background: rgba(235, 195, 82, 0.12);
  border-color: rgba(235, 195, 82, 0.45);
  transform: scale(1.05)
}

.hamburger:hover::before {
  opacity: 1
}

.hamburger:active {
  transform: scale(0.95)
}

.hamburger-icon {
  width: 22px;
  height: 22px;
  overflow: visible
}

.hb-line {
  transform-origin: center;
  transition:
    transform 0.45s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.3s ease
}

.hamburger.open .hb-line-1 {
  transform: translateY(6px) rotate(45deg)
}

.hamburger.open .hb-line-2 {
  opacity: 0;
  transform: scaleX(0)
}

.hamburger.open .hb-line-3 {
  transform: translateY(-6px) rotate(-45deg)
}

/* ===== MOBILE OVERLAY ===== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(5, 7, 15, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible
}

/* ===== MOBILE DRAWER — dropdown sous le header ===== */
.mobile-drawer {
  position: fixed;
  top: calc(16px + 64px + 8px); /* navbar top + navbar height + gap */
  left: 50%;
  transform: translateX(-50%) scaleY(0.85) translateY(-12px);
  transform-origin: top center;
  width: calc(100% - 48px);
  max-width: 1100px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg,
    rgba(13, 15, 28, 0.97) 0%,
    rgba(10, 12, 22, 0.98) 60%,
    rgba(8, 9, 18, 0.99) 100%);
  border: 1px solid rgba(235, 195, 82, 0.18);
  border-radius: 24px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition:
    opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.38s cubic-bezier(0.34, 1.4, 0.64, 1),
    visibility 0.38s ease;
  will-change: transform, opacity
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scaleY(1) translateY(0)
}

/* Drawer decorative glow */
.drawer-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(235, 195, 82, 0.07) 0%, transparent 70%);
  pointer-events: none;
  animation: drawerGlowPulse 4s ease-in-out infinite
}

@keyframes drawerGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1) }
  50% { opacity: 1; transform: scale(1.2) }
}

/* Drawer Nav */
.drawer-nav {
  padding: 1rem 1rem 0.5rem;
  position: relative;
  z-index: 1
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem
}

.drawer-item {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: calc(var(--i) * 0.055s + 0.08s)
}

.mobile-drawer.open .drawer-item {
  opacity: 1;
  transform: translateY(0)
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  color: rgba(232, 211, 167, 0.82);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.18s ease;
  position: relative;
  overflow: hidden
}

.drawer-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(235, 195, 82, 0.07) 0%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.22s ease
}

.drawer-link:hover,
.drawer-link.active-drawer {
  color: var(--gold);
  background: rgba(235, 195, 82, 0.06);
  border-color: rgba(235, 195, 82, 0.16);
  transform: translateX(4px)
}

.drawer-link:hover::before,
.drawer-link.active-drawer::before {
  opacity: 1
}

.drawer-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(235, 195, 82, 0.08);
  border: 1px solid rgba(235, 195, 82, 0.14);
  color: var(--gold);
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: background 0.22s ease, border-color 0.22s ease
}

.drawer-link:hover .drawer-link-icon,
.drawer-link.active-drawer .drawer-link-icon {
  background: rgba(235, 195, 82, 0.16);
  border-color: rgba(235, 195, 82, 0.32)
}

.drawer-link-text {
  flex: 1
}

.drawer-link-arrow {
  font-size: 0.62rem;
  color: rgba(235, 195, 82, 0.28);
  transition: color 0.22s ease, transform 0.22s ease
}

.drawer-link:hover .drawer-link-arrow,
.drawer-link.active-drawer .drawer-link-arrow {
  color: rgba(235, 195, 82, 0.65);
  transform: translateX(3px)
}

/* Drawer Footer */
.drawer-footer {
  padding: 0.75rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(235, 195, 82, 0.08)
}

.drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.8rem 1.5rem;
  border-radius: 100px;
  background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  box-shadow:
    0 6px 24px rgba(88, 101, 242, 0.45),
    0 2px 8px rgba(88, 101, 242, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease 0.35s,
    transform 0.35s cubic-bezier(0.34, 1.5, 0.64, 1) 0.35s,
    box-shadow 0.25s ease
}

.mobile-drawer.open .drawer-cta {
  opacity: 1;
  transform: translateY(0)
}

.drawer-cta:hover {
  box-shadow:
    0 10px 36px rgba(88, 101, 242, 0.6),
    0 4px 12px rgba(88, 101, 242, 0.4)
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 2rem 80px
}

.hero-bg-map {
  position: absolute;
  inset: 0;
  background-color: #0d1022;
  background-image: radial-gradient(ellipse at 20% 80%, rgba(58, 95, 143, 0.2) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(211, 47, 47, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(235, 195, 82, 0.05) 0%, transparent 70%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(235,195,82,0.04)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='rgba(235,195,82,0.04)' stroke-width='1'/%3E%3Cline x1='10' y1='50' x2='90' y2='50' stroke='rgba(235,195,82,0.03)' stroke-width='1'/%3E%3Cline x1='50' y1='10' x2='50' y2='90' stroke='rgba(235,195,82,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: cover, cover, cover, 100px 100px;
  z-index: 1
}

.hero-bg-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(235, 195, 82, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(235, 195, 82, 0.04) 1px, transparent 1px);
  background-size: 60px 60px
}

.hero-bg-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10, 12, 20, 0.7) 100%)
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, transparent 60%, rgba(10, 12, 20, 0.9) 100%)
}

/* Floating Cards */
.floating-cards {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none
}

.float-card {
  position: absolute;
  width: 85px;
  height: 120px;
  background: linear-gradient(135deg, rgba(15, 18, 32, 0.92), rgba(30, 35, 60, 0.97));
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px)
}

.card-inner {
  text-align: center
}

.card-icon-fa {
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 8px rgba(235, 195, 82, 0.4))
}

.card-label {
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .7
}

.fc1 {
  top: 15%;
  left: 7%;
  --rot: -3deg;
  animation: floatCard 6s ease-in-out infinite
}

.fc2 {
  top: 60%;
  left: 4%;
  --rot: -5deg;
  animation: floatCard 8s ease-in-out infinite 1s
}

.fc3 {
  top: 20%;
  right: 7%;
  --rot: 4deg;
  animation: floatCard 7s ease-in-out infinite .5s
}

.fc4 {
  top: 65%;
  right: 5%;
  --rot: 2deg;
  animation: floatCard 9s ease-in-out infinite 2s
}

.fc5 {
  top: 40%;
  right: 12%;
  --rot: -2deg;
  animation: floatCard 7.5s ease-in-out infinite 1.5s
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0) rotate(var(--rot, 0deg))
  }

  50% {
    transform: translateY(-20px) rotate(var(--rot, 0deg))
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  will-change: transform
}

.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem
}

.hero-logo-img {
  width: 200px;
  height: 200px;
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(235, 195, 82, 0.3), 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  animation: logoPulse 4s ease-in-out infinite
}

.hero-logo-wrap:hover .hero-logo-img {
  transform: scale(1.05) rotate(-2deg)
}

.hero-logo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(235, 195, 82, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: logoPulse 4s ease-in-out infinite
}

@keyframes logoPulse {

  0%,
  100% {
    opacity: .6;
    transform: scale(1)
  }

  50% {
    opacity: 1;
    transform: scale(1.05)
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.3);
  color: #7289DA;
  padding: .4rem 1rem;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  text-transform: uppercase
}

.hero-title {
  font-family: 'Pirata One', cursive;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: 2px
}

.title-line {
  display: block;
  color: var(--parchment);
  text-shadow: 0 0 60px rgba(235, 195, 82, 0.1)
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(232, 211, 167, 0.75);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 2.5rem
}

.hero-subtitle strong {
  color: var(--gold);
  font-weight: 700
}

/* Stats */
.hero-stats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px)
}

.stat-item {
  text-align: center
}

.stat-num {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(235, 195, 82, 0.4)
}

.stat-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(232, 211, 167, 0.5)
}

.stat-divider {
  font-size: .9rem;
  color: var(--gold);
  opacity: .4
}

/* Hero Buttons */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #5865F2, #7289DA);
  color: #fff;
  padding: .9rem 2rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 30px rgba(88, 101, 242, 0.4)
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(88, 101, 242, 0.6)
}

.btn-primary.small {
  padding: .65rem 1.3rem;
  font-size: .9rem
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  border-radius: inherit;
  pointer-events: none
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--parchment);
  padding: .9rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition)
}

.btn-secondary:hover {
  background: rgba(235, 195, 82, 0.1);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px)
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(235, 195, 82, 0.4);
  border-radius: 12px;
  position: relative
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 4px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--gold)
}

.scroll-text {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(232, 211, 167, 0.3)
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1
  }

  50% {
    transform: translateX(-50%) translateY(12px);
    opacity: .3
  }
}

/* ===== TICKER ===== */
.ticker-wrap {
  position: relative;
  z-index: 5;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.9), rgba(160, 20, 20, 0.95));
  border-top: 1px solid rgba(255, 100, 100, 0.3);
  border-bottom: 1px solid rgba(255, 100, 100, 0.3);
  overflow: hidden;
  padding: .8rem 0;
  box-shadow: 0 0 40px rgba(211, 47, 47, 0.3)
}

.ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: tickerMove 30s linear infinite;
  width: max-content
}

.ticker-track span {
  font-family: 'Cinzel', serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.ticker-track span i {
  font-size: .7rem;
  opacity: .7
}

@keyframes tickerMove {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

/* ===== SECTIONS SHARED ===== */
.section-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem
}

.section-header {
  text-align: center;
  margin-bottom: 4rem
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(235, 195, 82, 0.3);
  padding: .35rem 1rem;
  border-radius: 30px;
  margin-bottom: 1rem;
  background: rgba(235, 195, 82, 0.05)
}

.section-tag i {
  font-size: .7rem
}

.section-title {
  font-family: 'Pirata One', cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.1;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.6);
}

.section-desc {
  color: rgba(232, 211, 167, 0.65);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

.reveal:nth-child(2) {
  transition-delay: .1s
}

.reveal:nth-child(3) {
  transition-delay: .2s
}

/* ===== COMMUNITY ===== */
.communaute {
  padding: 8rem 2rem;
  position: relative;
  z-index: 2
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem
}

.community-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition)
}

.community-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold)
}

.community-card.featured {
  border-color: rgba(235, 195, 82, 0.3);
  background: linear-gradient(135deg, rgba(235, 195, 82, 0.05), rgba(15, 18, 32, 0.8))
}

.community-card.featured:hover {
  box-shadow: 0 20px 60px rgba(235, 195, 82, 0.2)
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition)
}

.community-card:hover .card-glow,
.community-card.featured .card-glow {
  opacity: 1
}

.featured-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(235, 195, 82, 0.15);
  border: 1px solid rgba(235, 195, 82, 0.3);
  color: var(--gold);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: .3rem .7rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px
}

.featured-badge i {
  font-size: .6rem
}

.card-icon-wrap {
  width: 64px;
  height: 64px;
  background: rgba(235, 195, 82, 0.08);
  border: 1px solid rgba(235, 195, 82, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform var(--transition), background var(--transition)
}

.community-card:hover .card-icon-wrap {
  transform: scale(1.1) rotate(5deg);
  background: rgba(235, 195, 82, 0.12)
}

.community-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: .75rem
}

.community-card p {
  color: rgba(232, 211, 167, 0.65);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(232, 211, 167, 0.7);
  font-size: .85rem;
  margin-bottom: .5rem
}

.card-features .fa-check-circle {
  color: var(--gold);
  font-size: .8rem
}

/* ===== FEATURES ===== */
.features {
  padding: 8rem 2rem;
  position: relative;
  z-index: 2;
}

.features-parallax-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  /* clip-path crée un contexte de découpe GPU qui confine l'image fixed à la section */
  clip-path: inset(0);
}

.features-parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.features-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 21, 39, 0.96) 0%, rgba(13, 21, 39, 0.38) 42%, rgba(13, 21, 39, 0.94) 100%),
    linear-gradient(110deg, rgba(211, 47, 47, 0.18) 0%, transparent 40%, rgba(58, 95, 143, 0.18) 100%);
  z-index: -1;
  pointer-events: none
}

.home-articles-grid {
  margin-top: 2.2rem;
}

.home-articles-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem
}

.feature-item:hover {
  background: rgba(235, 195, 82, 0.05);
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: -4px 0 20px rgba(235, 195, 82, 0.1)
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.2), rgba(235, 195, 82, 0.1));
  border: 1px solid rgba(211, 47, 47, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.3rem;
  transition: transform var(--transition)
}

.feature-item:hover .feature-icon-box {
  transform: scale(1.1) rotate(5deg)
}

.feature-text h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: .5rem
}

.feature-text p {
  color: rgba(232, 211, 167, 0.6);
  font-size: .88rem;
  line-height: 1.65
}

/* ===== TOURNOIS ===== */
.tournois {
  padding: 8rem 2rem;
  position: relative;
  z-index: 2
}

.tournois-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem
}

.tournament-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column
}

.tournament-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border-color: var(--border-hover)
}

.tournament-card.featured-tc {
  border-color: rgba(235, 195, 82, 0.35);
  background: linear-gradient(135deg, rgba(235, 195, 82, 0.06), rgba(15, 18, 32, 0.9));
  box-shadow: 0 0 40px rgba(235, 195, 82, 0.1)
}

.tc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02)
}

.tc-badge {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(58, 95, 143, 0.2);
  color: #7bb5ff;
  border: 1px solid rgba(58, 95, 143, 0.3);
  padding: .25rem .7rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px
}

.tc-badge i {
  font-size: .65rem
}

.tc-badge.gold {
  background: rgba(235, 195, 82, 0.15);
  color: var(--gold);
  border-color: rgba(235, 195, 82, 0.3)
}

.tc-badge.purple {
  background: rgba(156, 89, 255, 0.15);
  color: #c084fc;
  border-color: rgba(156, 89, 255, 0.3)
}

.tc-status {
  font-size: .75rem;
  color: rgba(232, 211, 167, 0.5);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px
}

.tc-status.active {
  color: #4ade80
}

.tc-body {
  padding: 1.5rem;
  flex: 1
}

.tc-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: .6rem
}

.tc-body p {
  color: rgba(232, 211, 167, 0.6);
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: 1.2rem
}

.tc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem
}

.tc-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: rgba(232, 211, 167, 0.5);
  font-weight: 500
}

.tc-meta .fas {
  color: var(--gold);
  font-size: .75rem
}

.tc-btn {
  display: block;
  margin: 0 1.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #5865F2, #7289DA);
  color: #fff;
  padding: .7rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3)
}

.tc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5)
}

.tc-btn.gold {
  background: linear-gradient(135deg, var(--gold), #c4950a);
  color: #0a0c14;
  box-shadow: 0 4px 15px rgba(235, 195, 82, 0.3)
}

.tc-btn.gold:hover {
  box-shadow: 0 8px 25px rgba(235, 195, 82, 0.5)
}

.tc-btn.purple {
  background: linear-gradient(135deg, #9c59ff, #7c3aed);
  box-shadow: 0 4px 15px rgba(156, 89, 255, 0.3)
}

.tc-btn.purple:hover {
  box-shadow: 0 8px 25px rgba(156, 89, 255, 0.5)
}

/* ===== DISCORD PREVIEW ===== */
.discord-preview {
  padding: 8rem 2rem;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, rgba(13, 16, 34, 0.6), rgba(10, 12, 20, 0.9))
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
  padding: 0 50px
}

.carousel-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  gap: 1.5rem
}

.discord-highlight-card {
  min-width: calc((100% - 3rem) / 3);
  max-width: calc((100% - 3rem) / 3);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem
}

.discord-highlight-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
  background: rgba(235, 195, 82, 0.04)
}

.dh-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(114, 137, 218, 0.1));
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7289DA;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  transition: transform var(--transition)
}

.discord-highlight-card:hover .dh-icon {
  transform: scale(1.1) rotate(5deg)
}

.discord-highlight-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: .6rem
}

.discord-highlight-card p {
  color: rgba(232, 211, 167, 0.6);
  font-size: .88rem;
  line-height: 1.7
}

.discord-cta-center {
  text-align: center
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(235, 195, 82, 0.2);
  border: 1px solid rgba(235, 195, 82, 0.3);
  transition: all var(--transition);
  padding: 0;
  cursor: pointer
}

.carousel-dot.active {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(235, 195, 82, 0.4);
  transform: scale(1.2)
}

.carousel-dot:hover {
  background: rgba(235, 195, 82, 0.5)
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 18, 32, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(235, 195, 82, 0.25);
  color: var(--parchment);
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0
}

.carousel-arrow:hover {
  background: rgba(235, 195, 82, 0.15);
  border-color: rgba(235, 195, 82, 0.5);
  color: var(--gold);
  box-shadow: 0 0 15px rgba(235, 195, 82, 0.2);
  transform: translateY(-50%) scale(1.1)
}

.carousel-arrow-left {
  left: 0
}

.carousel-arrow-right {
  right: 0
}

.preview-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center
}

.preview-text .section-title {
  text-align: left;
  margin-bottom: 1rem
}

.preview-text p {
  color: rgba(232, 211, 167, 0.65);
  line-height: 1.7;
  margin-bottom: 2rem
}

.discord-channels {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 2rem
}

.discord-channels li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(232, 211, 167, 0.6);
  font-size: .9rem;
  font-weight: 500;
  padding: .4rem .8rem;
  border-radius: 6px;
  transition: all var(--transition)
}

.discord-channels li:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--parchment)
}

.ch-hash {
  color: rgba(232, 211, 167, 0.3);
  font-size: 1.1rem;
  font-weight: 700
}

.discord-mockup {
  display: flex;
  background: #1e2124;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 420px;
  max-width: 520px
}

.dm-sidebar {
  width: 220px;
  min-width: 220px;
  background: #2f3136;
  display: flex;
  flex-direction: column;
  overflow: hidden
}

.dm-server-icon {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 .8rem;
  background: #202225;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  font-family: 'Pirata One', cursive;
  color: var(--gold);
  gap: 6px
}

.dm-server-icon img {
  flex-shrink: 0
}

.dm-channels {
  flex: 1;
  overflow-y: auto;
  padding: .5rem 0;
  scrollbar-width: none
}

.dm-channels::-webkit-scrollbar {
  display: none
}

.dm-category {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #72767d;
  padding: .8rem .75rem .3rem;
  display: flex;
  align-items: center;
  gap: 5px
}

.dm-category i {
  font-size: .55rem
}

.dm-channel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: .35rem .75rem;
  font-size: .8rem;
  font-weight: 500;
  color: #72767d;
  border-radius: 4px;
  margin: 1px .4rem;
  cursor: default;
  transition: background .15s
}

.dm-channel span {
  color: #4f545c;
  font-size: .95rem
}

.dm-channel.active {
  background: rgba(255, 255, 255, 0.08);
  color: #dcddde
}

.dm-channel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #dcddde
}

.dm-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #36393f
}

.dm-header {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  font-size: .9rem;
  font-weight: 700;
  color: #dcddde
}

.dm-messages {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto
}

.dm-msg {
  display: flex;
  gap: 10px
}

.dm-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: #fff
}

.dm-bubble {
  flex: 1
}

.dm-user {
  font-size: .82rem;
  font-weight: 700;
  color: #7289DA;
  margin-right: 8px
}

.dm-time {
  font-size: .7rem;
  color: #72767d
}

.dm-bubble p {
  font-size: .85rem;
  color: #dcddde;
  margin-top: 2px;
  line-height: 1.4
}

/* ===== FAQ ===== */
.faq {
  padding: 8rem 2rem;
  position: relative;
  background: var(--bg-color);
  z-index: 2;
  overflow: hidden;
}

.faq-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(235, 195, 82, 0.04) 0%, transparent 60%);
  pointer-events: none
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition)
}

.faq-item:hover {
  border-color: var(--border-hover)
}

.faq-item.open {
  border-color: rgba(235, 195, 82, 0.3);
  box-shadow: 0 0 20px rgba(235, 195, 82, 0.08)
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  text-align: left;
  color: var(--parchment);
  font-size: .95rem;
  font-weight: 600;
  transition: color var(--transition)
}

.faq-question:hover {
  color: var(--gold)
}

.faq-question .fa-chevron-down {
  min-width: 16px;
  color: var(--gold);
  transition: transform var(--transition)
}

.faq-item.open .fa-chevron-down {
  transform: rotate(180deg)
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height .24s cubic-bezier(.4, 0, .2, 1);
  will-change: height
}

.faq-answer p {
  padding: 0 1.5rem 1.3rem;
  color: rgba(232, 211, 167, 0.65);
  font-size: .9rem;
  line-height: 1.75
}

.faq-answer a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px
}

.faq-answer strong {
  color: var(--gold)
}

/* ===== CTA ===== */
.cta-section {
  padding: 10rem 2rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--bg-color) 0%, var(--bg-color) 16%, rgba(19, 29, 54, 0.96) 36%, rgba(24, 38, 69, 0.94) 66%, rgba(13, 21, 39, 0.98) 100%),
    linear-gradient(135deg, transparent 0%, rgba(235, 195, 82, 0.13) 32%, transparent 70%),
    linear-gradient(315deg, transparent 0%, rgba(88, 101, 242, 0.16) 34%, transparent 72%),
    var(--dark2)
}

.cta-bg-anim {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.cta-wave {
  position: absolute;
  border-radius: 50%;
  opacity: .1;
  border: 1px solid var(--gold);
  animation: waveExpand 6s ease-out infinite
}

.w1 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0s
}

.w2 {
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 2s
}

.w3 {
  width: 1000px;
  height: 1000px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s
}

@keyframes waveExpand {
  0% {
    transform: translate(-50%, -50%) scale(.5);
    opacity: .1
  }

  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0
  }
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2
}

.cta-logo {
  border-radius: 0;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 24px rgba(235, 195, 82, 0.35));
  animation: logoPulse 4s ease-in-out infinite
}

.footer-logo-img {
  border-radius: 0;
  filter: drop-shadow(0 0 8px rgba(235, 195, 82, 0.35));
  transition: filter var(--transition), transform var(--transition)
}

.footer-logo-img:hover {
  filter: drop-shadow(0 0 14px rgba(235, 195, 82, 0.55));
  transform: scale(1.05)
}

.cta-content h2 {
  font-family: 'Pirata One', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--parchment);
  margin-bottom: 1rem
}

.cta-content p {
  color: rgba(232, 211, 167, 0.76);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2.5rem
}

.cta-buttons {
  margin-bottom: 1.5rem
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #5865F2, #7289DA);
  color: #fff;
  padding: 1.1rem 2.5rem;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 8px 40px rgba(88, 101, 242, 0.4);
  letter-spacing: .5px
}

.btn-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 60px rgba(88, 101, 242, 0.6)
}

.btn-hero .fa-discord {
  font-size: 1.3rem
}

.cta-sub {
  font-size: .82rem;
  color: rgba(232, 211, 167, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-color);
  border-top: 1px solid rgba(235, 195, 82, 0.3);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  padding: 5rem 2rem 2rem
}

.footer-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(235, 195, 82, 0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(235, 195, 82, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 0.65fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Pirata One', cursive;
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 1rem
}

.footer-brand p {
  color: rgba(232, 211, 167, 0.45);
  font-size: .875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 280px
}

.footer-social {
  display: flex;
  gap: .75rem
}

.social-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(232, 211, 167, 0.5);
  font-size: 1rem;
  transition: all var(--transition)
}

.social-btn.discord-btn:hover {
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.4);
  color: #7289DA;
  transform: translateY(-2px)
}

.footer-links h3 {
  font-family: 'Cinzel', serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--parchment);
  margin-bottom: 1.2rem
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: .6rem
}

.footer-links li a {
  color: rgba(232, 211, 167, 0.45);
  font-size: .875rem;
  transition: color var(--transition)
}

.footer-links li a:hover {
  color: var(--gold)
}

.footer-discord-cta {
  justify-self: end;
  width: min(100%, 360px);
  text-align: left;
}

.footer-discord-cta h3 {
  font-family: 'Cinzel', serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--parchment);
  margin-bottom: .75rem
}

.footer-cta-row {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-discord-cta p {
  color: rgba(232, 211, 167, 0.45);
  font-size: .875rem;
  margin-bottom: 0;
  white-space: nowrap
}

.footer-discord-cta .btn-primary {
  flex-shrink: 0;
  white-space: nowrap
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem
}

.footer-bottom p {
  color: rgba(232, 211, 167, 0.25);
  font-size: .75rem;
  line-height: 1.6
}

.footer-bottom a {
  color: rgba(232, 211, 167, 0.35);
  transition: color var(--transition)
}

.footer-bottom a:hover {
  color: var(--gold)
}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) {
  .discord-highlight-card {
    min-width: calc((100% - 1.5rem) / 2);
    max-width: calc((100% - 1.5rem) / 2)
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem
  }

  .footer-discord-cta {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left
  }

  .preview-layout {
    grid-template-columns: 1fr;
    gap: 3rem
  }

  .discord-mockup {
    max-width: 100%;
    height: 360px
  }

  .preview-text .section-title {
    text-align: center
  }

  .preview-text .section-tag {
    display: inline-flex;
    text-align: center;
    margin-bottom: 1rem
  }

  .preview-text {
    text-align: left
  }

  .preview-text .btn-primary {
    margin-top: 1rem
  }
}

@media(max-width:768px) {
  .discord-preview > .section-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .carousel-wrapper {
    padding: 0;
  }

  .discord-highlight-card {
    min-width: 100%;
    max-width: 100%;
    padding: 1.35rem
  }

  .carousel-arrow {
    display: none
  }

  .nav-links {
    display: none
  }

  .hamburger {
    display: flex
  }

  .float-card {
    display: none
  }

  .hero {
    padding: 90px 1rem 60px
  }

  .hero-logo-img {
    width: 140px;
    height: 140px
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem
  }

  .stat-divider {
    transform: rotate(90deg)
  }

  .community-grid {
    grid-template-columns: 1fr
  }

  .features-list {
    grid-template-columns: 1fr
  }

  .tournois-showcase {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .footer-cta-row {
    align-items: flex-start;
    flex-direction: column
  }

  .footer-discord-cta p {
    white-space: normal
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start
  }

  .dm-sidebar {
    width: 160px;
    min-width: 160px
  }

  .dm-category {
    font-size: .58rem
  }

  .dm-channel {
    font-size: .75rem
  }

  .communaute,
  .features,
  .tournois,
  .discord-preview,
  .faq,
  .cta-section {
    padding: 5rem 1rem
  }

  .cursor,
  .cursor-trail {
    display: none !important
  }
}

@media(max-width:480px) {
  .hero-title {
    font-size: 2.2rem
  }

  .btn-hero {
    padding: .9rem 1.5rem;
    font-size: .95rem
  }

  .hero-actions {
    flex-direction: column;
    align-items: center
  }

  .hero-stats {
    width: 100%;
    justify-content: space-around;
    flex-direction: row
  }

  .stat-divider {
    display: none
  }

  .hero-logo-img {
    width: 120px;
    height: 120px
  }
}

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EBC352 0%, #D4A017 100%);
  color: #0a0c14;
  font-size: 1.1rem;
  box-shadow: 0 4px 24px rgba(235, 195, 82, 0.45), 0 1px 6px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition:
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top:hover {
  background: linear-gradient(135deg, #f5d06a 0%, #EBC352 100%);
  box-shadow: 0 8px 36px rgba(235, 195, 82, 0.65), 0 2px 10px rgba(0,0,0,0.4);
  transform: translateY(-4px) scale(1.08);
}

.scroll-top:active {
  transform: translateY(-1px) scale(0.97);
  box-shadow: 0 4px 16px rgba(235, 195, 82, 0.5);
}

/* Pulsing ring decoration */
.scroll-top-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(235, 195, 82, 0.4);
  animation: scroll-top-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scroll-top-pulse {
  0%   { opacity: 0.7; transform: scale(1); }
  60%  { opacity: 0;   transform: scale(1.45); }
  100% { opacity: 0;   transform: scale(1.45); }
}

/* Pause animation on hover for cleanliness */
.scroll-top:hover .scroll-top-ring {
  animation-play-state: paused;
  opacity: 0;
}

@media (max-width: 480px) {
  .scroll-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }
}

/* ============================================================
   CALENDRIER DES SORTIES (PREMIUM)
   ============================================================ */
.premium-select {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--parchment);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EBC352' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1em;
  padding-right: 3rem;
  min-width: 200px;
}

.premium-select:hover, .premium-select:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 15px rgba(235, 195, 82, 0.1);
}

.premium-select option {
  background: var(--dark);
  color: var(--parchment);
}

.calendar-grid { 
  display: flex; 
  flex-direction: column;
  gap: 1.5rem; 
  margin-top: 1.5rem; 
}

.release-card { 
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 1.5rem; 
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.release-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
  opacity: 0.2;
  transition: opacity var(--transition), box-shadow var(--transition);
}

.release-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 0 20px rgba(235, 195, 82, 0.03);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.release-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 10px var(--gold);
}

.release-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 1.5rem;
}

.release-info {
  flex: 1;
  min-width: 0;
}

.release-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: #fff;
  margin-top: 0.5rem;
  letter-spacing: 0.5px;
}

.release-date-block {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.release-date {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.badge { 
  display: inline-block; 
  padding: 0.35rem 0.75rem; 
  border-radius: 6px; 
  font-size: 0.75rem; 
  font-weight: 700; 
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid transparent;
}

.badge-region {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(232, 211, 167, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

.release-code {
  color: var(--gold);
}

.badge-official { 
  background: rgba(46, 125, 50, 0.15); 
  color: #81c784; 
  border-color: rgba(46, 125, 50, 0.3);
}

.badge-distributor { 
  background: rgba(21, 101, 192, 0.15); 
  color: #64b5f6; 
  border-color: rgba(21, 101, 192, 0.3);
}

.badge-community { 
  background: rgba(230, 81, 0, 0.15); 
  color: #ffb74d; 
  border-color: rgba(230, 81, 0, 0.3);
}

.source-info { 
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem; 
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.source-text {
  color: rgba(232, 211, 167, 0.5);
}

.source-text strong {
  color: rgba(232, 211, 167, 0.8);
}

.source-valid {
  color: #81c784;
  display: flex;
  align-items: center;
  gap: 6px;
}

.source-alert {
  color: #ffb74d;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .release-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .release-date-block {
    align-items: flex-start;
    text-align: left;
    margin-top: 0;
  }
  .premium-select {
    width: 100%;
  }
}

/* ===== CALENDAR PROMO ===== */
.calendar-promo {
  position: relative;
  padding: 9rem 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}

/* Gradient de fond animé */
/* Container parallax — même technique que .features-parallax-container */
.calendar-promo-parallax-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  clip-path: inset(0);
}

.calendar-promo-parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

/* Overlay dégradé par-dessus l'image (remplace .calendar-promo-bg) */
.calendar-promo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 21, 39, 0.96) 0%, rgba(13, 21, 39, 0.38) 42%, rgba(13, 21, 39, 0.94) 100%),
    linear-gradient(110deg, rgba(211, 47, 47, 0.18) 0%, transparent 40%, rgba(58, 95, 143, 0.18) 100%);
  z-index: -1;
  pointer-events: none;
}



/* Séparateurs haut et bas pour fondre dans le reste */
.calendar-promo::before,
.calendar-promo::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  z-index: 1;
  pointer-events: none;
  display: none;
}
.calendar-promo::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-color), transparent);
}
.calendar-promo::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-color), transparent);
}

/* Icônes décoratives en arrière-plan */
.calendar-promo-bg::before {
  content: '⚓ 🏴‍☠️ ⚔️ 🌊 ⚓';
  position: absolute;
  font-size: 5rem;
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  letter-spacing: 3rem;
  pointer-events: none;
}

.calendar-promo-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

/* Ligne décorative sous le titre */
.calendar-promo-content .section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  margin: 1.2rem auto 0;
  background: linear-gradient(135deg, var(--gold) 0%, #ff6b35 50%, var(--gold-glow) 100%);
  border-radius: 2px;
}

.calendar-promo-actions {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .calendar-promo {
    padding: 6rem 1rem;
  }
}

/* ============================================================
   CALENDRIER PAGE — Layout & Composants
   ============================================================ */
.calendar-main {
  padding-top: 140px;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  padding-bottom: 4rem
}

/* Override section-container pour la page calendrier (max-width réduit) */
.cal-container {
  max-width: 1000px;
  padding: 2rem 1rem
}

.filters-section {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center
}

.calendar-disclaimer {
  background: rgba(235, 195, 82, 0.05);
  border: 1px solid rgba(235, 195, 82, 0.2);
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  color: rgba(232, 211, 167, 0.9);
  font-size: 0.95rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.5;
  backdrop-filter: blur(5px)
}

.cal-last-update {
  color: var(--gold);
  font-size: 0.85rem;
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600
}

.cal-desc-primary {
  max-width: 700px;
  margin: 0 auto
}

.cal-desc-secondary {
  max-width: 800px;
  margin: 1rem auto 0;
  font-size: 0.95rem;
  color: rgba(232, 211, 167, 0.7);
  line-height: 1.6
}

.cal-faq-header {
  margin-top: 6rem
}

/* Fond fixe calendrier */
.calendar-bg-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    linear-gradient(180deg, var(--bg-color) 0%, rgba(13, 21, 39, 0.1) 40%, var(--bg-color) 100%),
    url('img/calendrier-sorties-cartes-one-piece-tcg.webp') center / cover no-repeat;
  z-index: -2;
  pointer-events: none;
  will-change: transform
}

/* Pied de carte calendrier */
.card-footer-info {
  padding: 15px 20px;
  margin-top: 1.2rem;
  background: linear-gradient(135deg, rgba(235, 195, 82, 0.02) 0%, rgba(235, 195, 82, 0.08) 100%);
  border-top: 1px solid rgba(235, 195, 82, 0.2);
  box-shadow: inset 0 20px 20px -20px rgba(235, 195, 82, 0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(232, 211, 167, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 8px
}

.card-footer-info .info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.3px
}

.card-footer-info .info-row i {
  color: var(--gold);
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
  filter: drop-shadow(0 0 6px rgba(235, 195, 82, 0.5))
}

.card-footer-info .info-row strong {
  color: var(--gold);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(235, 195, 82, 0.3)
}

/* Overrides release-card spécifiques à la page calendrier */
.calendar-main .release-card {
  border-color: rgba(235, 195, 82, 0.15)
}

.calendar-main .release-card::before {
  width: auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6
}

.calendar-main .release-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(235, 195, 82, 0.4);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 20px rgba(235, 195, 82, 0.2)
}

.cal-disclaimer-icon {
  color: var(--gold);
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0
}

.cal-disclaimer-title {
  color: var(--gold);
  font-weight: 600
}

.cal-empty-state {
  text-align: center;
  color: var(--parchment);
  font-size: 1.2rem;
  padding: 3rem 0
}

/* ============================================================
   WIKI PAGE — Guides, règles et articles
   ============================================================ */
.wiki-main {
  padding-top: 132px;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  padding-bottom: 5rem;
}

.wiki-container {
  max-width: 1180px;
  padding: 2rem 1rem;
}

.wiki-bg-fixed {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(13, 21, 39, 0.96) 0%, rgba(13, 21, 39, 0.38) 42%, rgba(13, 21, 39, 0.94) 100%),
    linear-gradient(110deg, rgba(211, 47, 47, 0.18) 0%, transparent 40%, rgba(58, 95, 143, 0.18) 100%),
    url('img/fond-wiki-one-piece-card-game-guides-regles.webp') center / cover no-repeat;
  z-index: -2;
  pointer-events: none;
  will-change: transform;
}

.wiki-header {
  margin-bottom: 3rem;
}

.wiki-desc-primary {
  max-width: 760px;
}

.wiki-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(10, 12, 20, 0.42) 100%),
    linear-gradient(90deg, transparent 0%, rgba(10, 12, 20, 0.26) 100%);
  pointer-events: none;
}

.wiki-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wiki-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: max-content;
  color: var(--parchment);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(235, 195, 82, 0.035)),
    rgba(10, 12, 20, 0.42);
  border: 1px solid rgba(235, 195, 82, 0.28);
  border-radius: 8px;
  padding: 0.72rem 1rem;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.wiki-load-more i {
  color: var(--gold);
  font-size: 0.78rem;
  transition: transform var(--transition), color var(--transition);
}

.wiki-load-more:hover {
  color: var(--gold);
  background:
    linear-gradient(135deg, rgba(235, 195, 82, 0.09), rgba(255, 255, 255, 0.045)),
    rgba(10, 12, 20, 0.58);
  border-color: rgba(235, 195, 82, 0.5);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 36px rgba(0, 0, 0, 0.34), 0 0 18px rgba(235, 195, 82, 0.12);
}

.wiki-load-more:hover i {
  transform: rotate(90deg);
}

.wiki-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.35fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 2rem 0 1rem;
  padding: 1rem;
  border: 1px solid rgba(235, 195, 82, 0.18);
  border-radius: 8px;
  background: rgba(10, 12, 20, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wiki-search {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 50px;
  padding: 0 1rem;
  border: 1px solid rgba(235, 195, 82, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.wiki-search:focus-within {
  border-color: rgba(235, 195, 82, 0.48);
  box-shadow: 0 0 0 3px rgba(235, 195, 82, 0.08);
}

.wiki-search input {
  width: 100%;
  min-width: 0;
  color: var(--parchment);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.wiki-search input::placeholder {
  color: rgba(232, 211, 167, 0.48);
}

.wiki-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.wiki-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.48rem 0.78rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(232, 211, 167, 0.82);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
  font-size: 0.82rem;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.wiki-filter-chip:hover,
.wiki-filter-chip.is-active {
  transform: translateY(-1px);
  color: #fff;
}

.wiki-filter-chip.tag-regles.is-active,
.wiki-tag.tag-regles {
  background: rgba(211, 47, 47, 0.16);
  border-color: rgba(211, 47, 47, 0.42);
  color: #ff9a9a;
}

.wiki-filter-chip.tag-guide.is-active,
.wiki-tag.tag-guide {
  background: rgba(235, 195, 82, 0.16);
  border-color: rgba(235, 195, 82, 0.42);
  color: var(--gold-glow);
}

.wiki-filter-chip.tag-deck.is-active,
.wiki-tag.tag-deck {
  background: rgba(58, 95, 143, 0.22);
  border-color: rgba(100, 181, 246, 0.42);
  color: #9ed4ff;
}

.wiki-filter-chip.tag-actualite.is-active,
.wiki-tag.tag-actualite {
  background: rgba(46, 125, 50, 0.2);
  border-color: rgba(129, 199, 132, 0.42);
  color: #a8e6aa;
}

.wiki-filter-chip.tag-communaute.is-active,
.wiki-tag.tag-communaute {
  background: rgba(255, 112, 67, 0.18);
  border-color: rgba(255, 183, 77, 0.42);
  color: #ffcb8a;
}

.wiki-sort {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(232, 211, 167, 0.72);
  font-weight: 800;
}

.wiki-sort .premium-select {
  min-width: 190px;
  min-height: 50px;
  border-radius: 8px;
}

.wiki-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.3rem 0 1.1rem;
  color: rgba(232, 211, 167, 0.72);
}

#wiki-result-count {
  color: var(--gold);
  font-weight: 900;
}

.wiki-results-note {
  font-size: 0.9rem;
}

.wiki-articles-grid,
.wiki-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.wiki-article-card {
  min-width: 0;
  border: 1px solid rgba(235, 195, 82, 0.17);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.wiki-article-card.visible {
  transition-delay: 0s !important;
}

.wiki-article-card:hover {
  transform: translateY(-7px) scale(1.015);
  border-color: rgba(235, 195, 82, 0.4);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.46), 0 0 24px rgba(235, 195, 82, 0.13);
}

.wiki-articles-grid .wiki-article-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(10, 12, 20, 0.58)),
    rgba(10, 12, 20, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 34px rgba(0, 0, 0, 0.24);
}

.wiki-articles-grid .wiki-article-card:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(10, 12, 20, 0.64)),
    rgba(10, 12, 20, 0.5);
}

.wiki-card-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.wiki-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(10, 12, 20, 0.5);
}

.wiki-articles-grid .wiki-card-media {
  aspect-ratio: 40 / 21;
  border-bottom: 1px solid rgba(235, 195, 82, 0.12);
}

.wiki-articles-grid .wiki-card-media::after {
  background:
    linear-gradient(180deg, rgba(10, 12, 20, 0.04) 0%, rgba(10, 12, 20, 0.18) 45%, rgba(10, 12, 20, 0.58) 100%),
    linear-gradient(90deg, rgba(10, 12, 20, 0.18) 0%, transparent 48%, rgba(10, 12, 20, 0.22) 100%);
}

.wiki-card-media img {
  transition: transform 0.55s ease;
}

.wiki-article-card:hover .wiki-card-media img {
  transform: scale(1.05);
}

.wiki-articles-grid .wiki-article-card:hover .wiki-card-media img {
  transform: none;
}

.wiki-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.wiki-articles-grid .wiki-card-body {
  min-height: 218px;
  padding: 1.1rem 1.05rem 1rem;
}

.wiki-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: rgba(232, 211, 167, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
}

.wiki-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.28rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 900;
}

.wiki-card-overlay-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 1;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.wiki-card-body h2,
.wiki-card-body h3 {
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  line-height: 1.32;
  margin: 0.78rem 0 0.55rem;
}

.wiki-articles-grid .wiki-card-body h2 {
  display: -webkit-box;
  min-height: 2.9em;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wiki-card-body h3 {
  font-size: 1.05rem;
}

.wiki-card-body p {
  color: rgba(232, 211, 167, 0.68);
  line-height: 1.58;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wiki-articles-grid .wiki-card-body p {
  min-height: 4.75em;
  margin: 0.75rem 0 0;
  -webkit-line-clamp: 3;
}

.wiki-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  color: rgba(232, 211, 167, 0.72);
  font-size: 0.84rem;
  font-weight: 800;
}

.wiki-articles-grid .wiki-card-footer {
  align-items: flex-end;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(235, 195, 82, 0.11);
  color: rgba(232, 211, 167, 0.6);
  font-size: 0.78rem;
  line-height: 1.35;
}

.wiki-card-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.wiki-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(235, 195, 82, 0.22);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(235, 195, 82, 0.08);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.wiki-article-card:hover .wiki-card-arrow {
  transform: translateX(3px);
  border-color: rgba(235, 195, 82, 0.48);
  background: rgba(235, 195, 82, 0.15);
  color: #fff;
}

.wiki-card-footer > i:last-child {
  color: var(--gold);
}

.wiki-article-card[hidden],
.wiki-empty-state[hidden],
.wiki-skeleton-grid[hidden],
.wiki-load-more[hidden] {
  display: none !important;
}

.wiki-skeleton-grid {
  margin-top: 1.2rem;
}

.wiki-skeleton-card {
  min-height: 330px;
  border-radius: 8px;
  border: 1px solid rgba(235, 195, 82, 0.12);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.035) 0%, rgba(235, 195, 82, 0.11) 45%, rgba(255, 255, 255, 0.035) 80%),
    rgba(10, 12, 20, 0.58);
  background-size: 220% 100%;
  animation: wikiSkeleton 1.2s ease-in-out infinite;
}

@keyframes wikiSkeleton {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.wiki-empty-state {
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid rgba(235, 195, 82, 0.18);
  border-radius: 8px;
  text-align: center;
  color: rgba(232, 211, 167, 0.78);
  background: rgba(10, 12, 20, 0.58);
  backdrop-filter: blur(16px);
}

.wiki-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.wiki-load-more:disabled {
  opacity: 0.64;
  pointer-events: none;
}

/* ============================================================
   WIKI ARTICLE PAGE
   ============================================================ */
.article-main {
  padding-top: 132px;
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding-bottom: 5rem;
}

.article-shell {
  max-width: 1180px;
  padding: 2rem 1rem;
}

.article-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(232, 211, 167, 0.78);
  border: 1px solid rgba(235, 195, 82, 0.2);
  border-radius: 8px;
  padding: 0.62rem 0.8rem;
  background: rgba(10, 12, 20, 0.42);
  backdrop-filter: blur(12px);
  transition: color var(--transition), border-color var(--transition), transform var(--transition), background var(--transition);
}

.article-back-link i {
  color: var(--gold);
}

.article-back-link:hover {
  color: var(--gold);
  border-color: rgba(235, 195, 82, 0.44);
  background: rgba(235, 195, 82, 0.07);
  transform: translateX(-2px);
}

.article-adjacent-nav {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-left: auto;
}

.article-adjacent-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(232, 211, 167, 0.76);
  border: 1px solid rgba(235, 195, 82, 0.2);
  border-radius: 8px;
  padding: 0.62rem 0.8rem;
  background: rgba(10, 12, 20, 0.42);
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
  transition: color var(--transition), border-color var(--transition), transform var(--transition), background var(--transition);
}

.article-adjacent-link i {
  color: var(--gold);
  font-size: 0.78rem;
}

.article-adjacent-link:hover {
  color: var(--gold);
  border-color: rgba(235, 195, 82, 0.44);
  background: rgba(235, 195, 82, 0.07);
  transform: translateY(-2px);
}

.article-hero {
  margin-top: 2rem;
  border: 1px solid rgba(235, 195, 82, 0.22);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(13, 21, 39, 0.84)),
    rgba(10, 12, 20, 0.5);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.article-hero-meta {
  padding: 1.35rem 1.6rem 0;
}

.article-hero h1 {
  max-width: 920px;
  padding: 1rem 1.6rem 0;
  color: #fff;
  font-family: 'Pirata One', cursive;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.02em;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.55);
}

.article-lead {
  max-width: 860px;
  padding: 1rem 1.6rem 0;
  color: rgba(232, 211, 167, 0.82);
  font-size: 1.08rem;
  line-height: 1.75;
}

.article-lead strong {
  color: var(--gold);
}

.article-keypoints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1.35rem 1.6rem 1.5rem;
}

.article-keypoints span {
  min-height: 72px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(235, 195, 82, 0.18);
  border-radius: 8px;
  padding: 0.85rem;
  color: rgba(232, 211, 167, 0.84);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  line-height: 1.45;
}

.article-cover {
  position: relative;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-top: 1px solid rgba(235, 195, 82, 0.18);
}

.article-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 12, 20, 0.26));
  pointer-events: none;
}

.article-cover picture {
  display: block;
  width: 100%;
  height: 100%;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

.article-sidebar {
  position: sticky;
  top: 116px;
}

.article-toc {
  border: 1px solid rgba(235, 195, 82, 0.18);
  border-radius: 8px;
  background: rgba(10, 12, 20, 0.62);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.article-toc summary {
  padding: 1rem;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(235, 195, 82, 0.14);
}

.article-toc nav {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 210px);
  overflow: auto;
  padding: 0.45rem;
}

.article-toc a {
  position: relative;
  padding: 0.58rem 0.7rem;
  border-radius: 6px;
  color: rgba(232, 211, 167, 0.72);
  font-size: 0.9rem;
  line-height: 1.35;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.article-toc a:hover {
  color: var(--gold);
  background: rgba(235, 195, 82, 0.08);
}

@media (min-width: 981px) {
  .article-toc a::before {
    content: '';
    position: absolute;
    top: 0.62rem;
    bottom: 0.62rem;
    left: 0;
    width: 2px;
    border-radius: 999px;
    background: var(--gold);
    opacity: 0;
    transform: scaleY(0.45);
    transition: opacity var(--transition), transform var(--transition);
  }

  .article-toc a.is-active,
  .article-toc a[aria-current="true"] {
    color: #fff;
    background: linear-gradient(90deg, rgba(235, 195, 82, 0.16), rgba(235, 195, 82, 0.04));
    box-shadow: inset 0 0 0 1px rgba(235, 195, 82, 0.18), 0 8px 24px rgba(0, 0, 0, 0.16);
  }

  .article-toc a.is-active::before,
  .article-toc a[aria-current="true"]::before {
    opacity: 1;
    transform: scaleY(1);
  }
}

.article-content {
  min-width: 0;
  border: 1px solid rgba(235, 195, 82, 0.16);
  border-radius: 8px;
  padding: clamp(1.1rem, 2.5vw, 2.2rem);
  background: rgba(10, 12, 20, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.article-content section {
  scroll-margin-top: 110px;
}

.article-content section + section {
  margin-top: 3rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(235, 195, 82, 0.12);
}

.article-content h2 {
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.22;
  margin-bottom: 1rem;
}

.article-content h3 {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 1.5rem 0 0.55rem;
}

.article-content p,
.article-content li {
  color: rgba(232, 211, 167, 0.78);
  line-height: 1.78;
}

.article-content p + p {
  margin-top: 0.9rem;
}

.article-content p a,
.article-content li a,
.article-content td a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(235, 195, 82, 0.55);
  text-underline-offset: 0.22em;
  transition: color var(--transition), text-decoration-color var(--transition), background var(--transition);
}

.article-content p a:hover,
.article-content li a:hover,
.article-content td a:hover {
  color: var(--gold-glow);
  text-decoration-color: var(--gold-glow);
  background: rgba(235, 195, 82, 0.08);
}

.article-content strong {
  color: rgba(255, 224, 141, 0.96);
}

.article-content code {
  color: var(--gold);
  background: rgba(235, 195, 82, 0.08);
  border: 1px solid rgba(235, 195, 82, 0.18);
  border-radius: 6px;
  padding: 0.08rem 0.32rem;
}

.legal-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color var(--transition);
}

.legal-content a:hover {
  color: var(--gold-glow);
}

.protected-email {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.protected-email-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(235, 195, 82, 0.32);
  border-radius: 8px;
  padding: 0.38rem 0.68rem;
  background: rgba(235, 195, 82, 0.08);
  color: var(--gold);
  font-weight: 800;
  line-height: 1.2;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}

.protected-email-button:hover {
  color: #fff;
  border-color: rgba(235, 195, 82, 0.5);
  background: rgba(235, 195, 82, 0.14);
  transform: translateY(-1px);
}

.protected-email-link {
  outline: none;
}

.protected-email-fallback {
  margin-left: 0.45rem;
  color: rgba(232, 211, 167, 0.74);
}

.article-callout,
.article-example {
  margin: 1.35rem 0;
  border: 1px solid rgba(235, 195, 82, 0.2);
  border-radius: 8px;
  padding: 1rem;
  color: rgba(232, 211, 167, 0.86);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.article-callout.is-gold {
  background: rgba(235, 195, 82, 0.08);
  border-color: rgba(235, 195, 82, 0.28);
}

.article-callout.is-warning {
  background: rgba(211, 47, 47, 0.08);
  border-color: rgba(211, 47, 47, 0.26);
}

.article-annotated-card {
  width: 100%;
  margin: 1.35rem 0;
  border: 1px solid rgba(235, 195, 82, 0.18);
  border-radius: 8px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.article-annotated-card picture {
  display: block;
  width: 100%;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: rgba(5, 7, 12, 0.72);
}

.article-annotated-card img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
}

.article-annotated-card figcaption {
  padding: 0.8rem 1rem;
  color: rgba(232, 211, 167, 0.76);
  font-size: 0.9rem;
  line-height: 1.5;
  border-top: 1px solid rgba(235, 195, 82, 0.12);
  background: rgba(10, 12, 20, 0.42);
}

.article-playmat-figure {
  width: 100%;
  margin: 1.35rem 0;
  border: 1px solid rgba(235, 195, 82, 0.18);
  border-radius: 8px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.article-playmat-figure picture {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: rgba(5, 7, 12, 0.72);
}

.article-playmat-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
}

.article-playmat-figure figcaption {
  padding: 0.8rem 1rem;
  color: rgba(232, 211, 167, 0.76);
  font-size: 0.9rem;
  line-height: 1.5;
  border-top: 1px solid rgba(235, 195, 82, 0.12);
  background: rgba(10, 12, 20, 0.42);
}

@media (max-width: 720px) {
  .article-annotated-card {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .article-annotated-card picture,
  .article-annotated-card figcaption {
    min-width: 720px;
  }

  .article-playmat-figure {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .article-playmat-figure picture,
  .article-playmat-figure figcaption {
    min-width: 720px;
  }

}

.article-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.15rem 0;
  border: 1px solid rgba(235, 195, 82, 0.14);
  border-radius: 8px;
}

.article-wide-tools {
  display: none;
}

.article-wide-frame {
  width: 100%;
  margin: 1.15rem 0;
}

.article-wide-frame.is-annotated-card-frame {
  margin: 1.35rem 0;
}

.article-wide-frame > .article-table-wrap,
.article-wide-frame > .article-annotated-card,
.article-wide-frame > .article-playmat-figure {
  margin: 0;
}

.article-content table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(235, 195, 82, 0.1);
}

.article-content th {
  color: var(--gold);
  background: rgba(235, 195, 82, 0.07);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-content td {
  color: rgba(232, 211, 167, 0.78);
}

.article-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.article-card-grid > div {
  border: 1px solid rgba(235, 195, 82, 0.16);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.035);
}

.article-steps,
.article-checklist {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.article-bullet-list {
  display: grid;
  gap: 0.45rem;
  list-style: disc;
  margin: 1rem 0 0;
  padding-left: 1.35rem;
}

.article-bullet-list li {
  display: list-item;
  padding-left: 0.15rem;
}

.article-phase-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.3rem 0;
}

.article-phase-flow span {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(235, 195, 82, 0.22);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(235, 195, 82, 0.06);
  font-weight: 900;
}

.article-faq .faq-list {
  max-width: none;
  margin: 1.1rem 0 0;
}

.article-content .article-faq .faq-question {
  color: var(--parchment);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.article-content .article-faq .faq-question:hover {
  color: var(--gold);
}

.article-content .article-faq .faq-answer p {
  padding: 0 1.5rem 1.3rem;
  color: rgba(232, 211, 167, 0.65);
  font-size: 0.9rem;
  line-height: 1.75;
}

@media (max-width: 720px) {
  .article-wide-tools {
    align-items: center;
    gap: 0.55rem;
    margin: 1rem 0 0.55rem;
  }

  .article-wide-tools.has-scroll-hint {
    display: flex;
  }

  .article-wide-tools.has-scroll-hint + .article-wide-frame {
    margin-top: 0;
  }

  .article-wide-frame {
    position: relative;
  }

  .article-scroll-hint {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(235, 195, 82, 0.22);
    border-radius: 8px;
    color: rgba(232, 211, 167, 0.82);
    background: rgba(10, 12, 20, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.24);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.2;
  }

  .article-scroll-hint {
    flex: 1 1 170px;
    min-width: 0;
    padding: 0.48rem 0.65rem;
    pointer-events: none;
  }

  .article-scroll-hint-icon {
    color: var(--gold);
    font-size: 0.95rem;
    line-height: 1;
  }

  .article-scroll-hint-arrow {
    color: var(--gold);
    font-size: 1rem;
    line-height: 1;
    animation: articleScrollHintArrow 1.35s ease-in-out infinite;
  }

  .article-wide-tools.has-user-scrolled .article-scroll-hint-arrow {
    animation: none;
    opacity: 0.58;
  }

  .article-wide-frame.is-wide-scrollable::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 42px;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(90deg, rgba(10, 12, 20, 0), rgba(10, 12, 20, 0.86));
    opacity: 1;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .article-wide-frame.is-scrolled-end::after {
    opacity: 0;
  }

  @keyframes articleScrollHintArrow {
    0%,
    100% {
      transform: translateX(0);
      opacity: 0.55;
    }

    50% {
      transform: translateX(4px);
      opacity: 1;
    }
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .article-scroll-hint-arrow {
    animation: none;
  }
}

.article-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-related-head h2 {
  margin-bottom: 0;
}

.article-carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.article-carousel-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(235, 195, 82, 0.22);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.045);
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition), opacity var(--transition);
}

.article-carousel-btn:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(235, 195, 82, 0.45);
  background: rgba(235, 195, 82, 0.11);
  transform: translateY(-2px);
}

.article-carousel-btn:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.article-carousel {
  position: relative;
  margin-inline: -0.08rem;
  overflow: hidden;
}

.article-carousel-track {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y;
  margin-top: -0.45rem;
  padding: 0.6rem 0.08rem 1rem;
  scroll-padding-inline: 0.08rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(235, 195, 82, 0.28) rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.article-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.article-carousel-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.article-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(235, 195, 82, 0.28);
  border-radius: 999px;
}

.article-carousel-dots {
  margin-top: 0.9rem;
}

.article-carousel-card {
  display: flex;
  flex: 0 0 calc((100% - 2rem) / 3);
  min-width: 260px;
  scroll-snap-align: start;
}

.article-carousel-card .wiki-card-link {
  width: 100%;
  height: 100%;
}

.article-carousel-card:hover {
  transform: none;
}

.article-trust {
  border: 1px solid rgba(235, 195, 82, 0.16);
  border-radius: 8px;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  background:
    linear-gradient(135deg, rgba(235, 195, 82, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.025);
}

.article-trust > p {
  max-width: 820px;
}

.article-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.35rem 0;
}

.article-trust-card {
  border: 1px solid rgba(235, 195, 82, 0.14);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(10, 12, 20, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.article-trust-card h3 {
  margin-top: 0;
}

.article-trust-card p {
  font-size: 0.92rem;
  line-height: 1.65;
}

.article-sources ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.article-source-list {
  display: grid;
  gap: 0.55rem;
}

.article-sources a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(235, 195, 82, 0.35);
  text-underline-offset: 3px;
}

.article-disclaimer {
  margin-top: 1rem;
  color: rgba(232, 211, 167, 0.58) !important;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .wiki-controls {
    grid-template-columns: 1fr;
  }

  .article-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-adjacent-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .wiki-sort {
    justify-content: space-between;
  }

  .wiki-sort .premium-select {
    flex: 1;
  }

  .wiki-articles-grid,
  .wiki-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .article-toc nav {
    max-height: none;
  }

  .article-keypoints {
    grid-template-columns: 1fr;
  }

  .article-trust-grid {
    grid-template-columns: 1fr;
  }

  .article-carousel-card {
    flex-basis: min(360px, 74vw);
  }
}

@media (max-width: 640px) {
  .wiki-main {
    padding-top: 112px;
  }

  .article-main {
    padding-top: 112px;
  }

  .article-topbar {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
  }

  .article-back-link {
    min-height: 42px;
    padding: 0.55rem 0.72rem;
    font-size: 0;
    flex: 1 1 auto;
    min-width: 0;
  }

  .article-back-link::after {
    content: 'Guides & Actus';
    font-size: 0.84rem;
    font-weight: 800;
  }

  .article-back-link i {
    display: none;
  }

  .article-back-link::before {
    content: '←';
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
  }

  .article-adjacent-nav {
    width: auto;
    flex: 0 0 auto;
    gap: 0.45rem;
    margin-left: auto;
  }

  .article-adjacent-link {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    justify-content: center;
    padding: 0;
  }

  .article-adjacent-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .article-adjacent-link i {
    font-size: 0.84rem;
  }

  .wiki-container {
    padding-inline: 0.9rem;
  }

  .article-shell {
    padding-inline: 0.9rem;
  }

  .article-hero h1,
  .article-lead,
  .article-keypoints,
  .article-hero-meta {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .article-card-grid,
  .article-phase-flow,
  .article-trust-grid {
    grid-template-columns: 1fr;
  }

  .article-related-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-carousel-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .article-carousel-card {
    flex-basis: 84vw;
    min-width: 240px;
  }

  .wiki-load-more {
    width: 100%;
    max-width: 320px;
  }

  .wiki-controls {
    padding: 0.8rem;
  }

  .wiki-filter-group {
    gap: 0.45rem;
  }

  .wiki-filter-chip {
    flex: 1 1 calc(50% - 0.45rem);
    justify-content: center;
  }

  .wiki-results-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .wiki-results-note {
    font-size: 0.82rem;
  }

  .wiki-articles-grid,
  .wiki-skeleton-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {
  .features,
  .calendar-promo {
    overflow: hidden;
  }

  .features {
    padding-left: 0;
    padding-right: 0;
  }

  .features > .section-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .features-parallax-container,
  .calendar-promo-parallax-container {
    clip-path: none;
    overflow: hidden;
  }

  .features-parallax-bg,
  .calendar-promo-parallax-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
  }

  .features-parallax-bg {
    object-position: 88% center;
  }

  .features-parallax-container {
    clip-path: inset(0);
    overflow: hidden;
  }

  .features-parallax-bg {
    display: none;
  }

  .features-parallax-container::before {
    content: '';
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100svh;
    background: url('img/fond-wiki-one-piece-card-game-guides-regles.webp') 88% top / cover no-repeat;
    transform: scale(1.08);
    transform-origin: 88% center;
  }

  .calendar-promo-parallax-bg {
    object-position: 82% center;
  }

  .features-bg-pattern,
  .calendar-promo-overlay {
    background:
      linear-gradient(180deg, rgba(13, 21, 39, 0.78) 0%, rgba(13, 21, 39, 0.44) 46%, rgba(13, 21, 39, 0.82) 100%),
      linear-gradient(110deg, rgba(211, 47, 47, 0.12) 0%, transparent 42%, rgba(58, 95, 143, 0.14) 100%);
  }

  .calendar-bg-fixed {
    height: 100svh;
    background:
      linear-gradient(180deg, rgba(13, 21, 39, 0.82) 0%, rgba(13, 21, 39, 0.46) 42%, rgba(13, 21, 39, 0.88) 100%),
      url('img/calendrier-sorties-cartes-one-piece-tcg.webp') 82% top / cover no-repeat;
  }

  .wiki-bg-fixed {
    height: 100svh;
    background:
      linear-gradient(180deg, rgba(13, 21, 39, 0.78) 0%, rgba(13, 21, 39, 0.44) 46%, rgba(13, 21, 39, 0.84) 100%),
      linear-gradient(110deg, rgba(211, 47, 47, 0.12) 0%, transparent 42%, rgba(58, 95, 143, 0.14) 100%),
      url('img/fond-wiki-one-piece-card-game-guides-regles.webp') 88% top / cover no-repeat;
  }
}

@media (max-width: 640px) {
  .features > .section-container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}

@media (max-width: 768px) {
  .home-articles-grid[data-home-articles-carousel] {
    display: flex;
    grid-template-columns: none;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    padding: 0.15rem 0 0.45rem;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .home-articles-grid[data-home-articles-carousel]::-webkit-scrollbar {
    display: none;
  }

  .home-articles-grid[data-home-articles-carousel] .wiki-article-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
  }

  .home-articles-dots {
    margin-top: 1rem;
  }
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .discord-preview {
    padding-left: 0;
    padding-right: 0;
  }

  .discord-preview > .section-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .discord-preview .discord-carousel-wrapper {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    overflow: hidden;
  }

  .discord-preview .discord-carousel-track {
    gap: 0;
  }

  .discord-preview .discord-highlight-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    padding: 1.35rem;
  }

  .discord-preview .discord-carousel-arrow,
  .discord-preview [data-discord-carousel-control] {
    display: none !important;
    pointer-events: none;
  }
}
