/* ===================================================
   KURO ARCANA — CSS COMPLET REFONTE "FIRST BLOOD"
   🔥 PALETTE : NOIR PROFOND + ROUGE SANG DOMINANT
   =================================================== */

/* === IMPORT POLICES === */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Raleway:wght@300;400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* === VARIABLES COULEURS "FIRST BLOOD" === */
:root {
  /* Noir profond (base) */
  --noir-extreme: #0a0505;
  --noir-fonce: #1a0a0a;
  --noir-teinte-rouge: #2a0a0a;

  /* Rouge sang (DOMINANT) */
  --rouge-sang: #8B0000;
  --rouge-crimson: #DC143C;
  --rouge-vif: #FF1744;
  --rouge-lumineux: #FF3860;

  /* Violet profond */
  --violet-profond: #4B0082;
  --violet-orchidee: #9932CC;
  --violet-royal: #6B0080;

  /* Or doré */
  --or-dore: #FFD700;
  --or-lumineux: #FFC700;
  --or-pale: #DAA520;

  /* Glow effects */
  --glow-rouge: rgba(255, 23, 68, 0.6);
  --glow-or: rgba(255, 215, 0, 0.5);
  --glow-violet: rgba(153, 50, 204, 0.4);

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.6s ease-in-out;
}

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

html, body {
  width: 100%;
  height: 100%;
  background: var(--noir-extreme);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  position: relative;
}

/* ===================================================
   FOND DYNAMIQUE - FIRST BLOOD
   =================================================== */

#home-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(139, 0, 0, 0.25) 0%, transparent 50%),
    linear-gradient(135deg, #0a0505 0%, #2a0a0a 50%, #1a0505 100%);
}

/* Animation pulse du fond (brume rouge) */
@keyframes bloodPulse {
  0%, 100% { 
    background: 
      radial-gradient(ellipse at 50% 30%, rgba(139, 0, 0, 0.15) 0%, transparent 50%),
      linear-gradient(135deg, #0a0505 0%, #2a0a0a 50%, #1a0505 100%);
  }
  50% { 
    background: 
      radial-gradient(ellipse at 50% 30%, rgba(220, 20, 60, 0.35) 0%, transparent 50%),
      linear-gradient(135deg, #0a0505 0%, #2a0a0a 50%, #1a0505 100%);
  }
}

#home-background {
  animation: bloodPulse 6s ease-in-out infinite;
}

/* Vignette coins (assombrir les bords) */
.vignette-coins {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.7) 100%);
  z-index: -1;
  pointer-events: none;
}

/* Canvas particules */
#canvas-particules {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===================================================
   LAYOUT PRINCIPAL
   =================================================== */

body {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Header */
.header-principal {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 2px solid var(--or-dore);
  background: linear-gradient(to bottom, rgba(26, 10, 10, 0.9), transparent);
  backdrop-filter: blur(10px);
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
  color: var(--or-dore);
  text-shadow: 0 0 15px var(--glow-or);
}

.kanji-logo {
  font-size: 2rem;
  color: var(--rouge-crimson);
  text-shadow: 0 0 10px var(--rouge-crimson);
}

.titre-logo {
  color: var(--or-dore);
  text-shadow: 0 0 20px var(--glow-or);
}

/* Affichage pièces */
.affichage-pieces {
  border: 2px solid var(--or-dore);
  padding: 10px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(107, 0, 128, 0.2));
  color: var(--or-lumineux);
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 0 15px var(--glow-or);
}

/* Menu navigation */
.menu-navigation {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  background: rgba(26, 10, 10, 0.6);
  backdrop-filter: blur(5px);
  overflow-x: auto;
}

.bouton-menu {
  padding: 10px 20px;
  border: 2px solid var(--violet-profond);
  border-radius: 8px;
  background: rgba(75, 0, 130, 0.1);
  color: var(--or-dore);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bouton-menu:hover {
  border-color: var(--rouge-vif);
  background: rgba(220, 20, 60, 0.2);
  box-shadow: 0 0 15px var(--glow-rouge);
  transform: translateY(-3px);
}

.bouton-menu.active {
  border-color: var(--rouge-vif);
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.4), rgba(107, 0, 128, 0.3));
  box-shadow: 0 0 20px var(--glow-rouge), inset 0 0 10px rgba(255, 23, 68, 0.2);
  color: var(--or-lumineux);
}

/* Pages */
.page-principale {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.page-principale.active {
  display: flex;
}

/* Contenu scrollable */
.contenu-page,
.contenu-accueil {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
}

/* Scrollbar custom */
.contenu-page::-webkit-scrollbar,
.contenu-accueil::-webkit-scrollbar {
  width: 10px;
}

.contenu-page::-webkit-scrollbar-track,
.contenu-accueil::-webkit-scrollbar-track {
  background: rgba(26, 10, 10, 0.5);
}

.contenu-page::-webkit-scrollbar-thumb,
.contenu-accueil::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--rouge-crimson), var(--or-dore));
  border-radius: 5px;
}

.contenu-page::-webkit-scrollbar-thumb:hover,
.contenu-accueil::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--rouge-vif), var(--or-lumineux));
  box-shadow: 0 0 10px var(--glow-rouge);
}

/* ===================================================
   PAGE D'ACCUEIL SPÉCIALE
   =================================================== */

#page-accueil {
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(139, 0, 0, 0.2) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10, 5, 5, 0.8) 0%, rgba(42, 10, 10, 0.6) 100%);
}

.contenu-accueil {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

/* === SECTION HERO === */
.hero-accueil {
  text-align: center;
  margin-top: 20px;
  animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.titre-hero {
  font-family: 'Cinzel', serif;
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 20px;

  /* LUEUR ROUGE SANG / OR */
  color: var(--or-dore);
  text-shadow: 
    0 0 10px var(--or-dore),
    0 0 20px var(--rouge-crimson),
    0 0 40px var(--rouge-crimson),
    0 0 60px var(--rouge-sang),
    2px 2px 0px rgba(0, 0, 0, 0.5);

  animation: titleGlowPulse 3.5s ease-in-out infinite;
}

@keyframes titleGlowPulse {
  0%, 100% {
    text-shadow: 
      0 0 10px var(--or-dore),
      0 0 20px var(--rouge-crimson),
      0 0 40px var(--rouge-crimson),
      0 0 60px var(--rouge-sang),
      2px 2px 0px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.25em;
  }
  50% {
    text-shadow: 
      0 0 15px var(--or-dore),
      0 0 30px var(--rouge-vif),
      0 0 50px var(--rouge-vif),
      0 0 80px var(--rouge-crimson),
      2px 2px 0px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.3em;
  }
}

.sous-titre-hero {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #D0D0D0;
  text-shadow: 0 0 15px rgba(220, 20, 60, 0.3);
  animation: fadeInUp 1.2s ease-out;
}

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

/* === CARTES DE STATS === */
.stats-rapides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1200px;
  animation: fadeInUp 1.4s ease-out;
}

.stat-card {
  border: 2px solid;
  border-image: linear-gradient(135deg, var(--rouge-vif), var(--or-dore), var(--rouge-sang)) 1;
  
  background: linear-gradient(135deg, rgba(42, 10, 10, 0.6), rgba(107, 0, 128, 0.15)),
              linear-gradient(to right, rgba(220, 20, 60, 0.1), transparent);
  
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  justify-content: center;
  
  box-shadow: 
    inset 0 0 20px rgba(220, 20, 60, 0.15),
    0 0 20px rgba(255, 23, 68, 0.25),
    0 0 40px rgba(139, 0, 0, 0.15);
  
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Pseudo-élément pour effet lumineux au survol */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 23, 68, 0.2), transparent);
  transition: left 0.5s ease;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  border-image: linear-gradient(135deg, var(--rouge-vif), var(--or-lumineux), var(--rouge-vif)) 1;
  transform: translateY(-8px) scale(1.02);
  
  box-shadow: 
    inset 0 0 30px rgba(220, 20, 60, 0.3),
    0 0 30px rgba(255, 23, 68, 0.5),
    0 0 60px rgba(255, 23, 68, 0.3);
  
  background: linear-gradient(135deg, rgba(42, 10, 10, 0.8), rgba(139, 0, 0, 0.25)),
              linear-gradient(to right, rgba(220, 20, 60, 0.2), transparent);
}

.stat-icone {
  font-size: 3rem;
  filter: drop-shadow(0 0 8px var(--or-dore)) drop-shadow(0 0 15px var(--rouge-crimson));
  transition: all var(--transition-smooth);
  animation: iconPulse 2.5s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px var(--or-dore)) drop-shadow(0 0 15px var(--rouge-crimson));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 12px var(--or-dore)) drop-shadow(0 0 25px var(--rouge-vif));
    transform: scale(1.08);
  }
}

.stat-card:hover .stat-icone {
  animation: iconBounce 0.6s ease-in-out;
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15) rotate(5deg); }
  75% { transform: scale(1.15) rotate(-5deg); }
}

.stat-valeur {
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--or-dore);
  text-shadow: 
    0 0 10px var(--or-dore),
    0 0 20px var(--rouge-crimson);
  line-height: 1;
}

.stat-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #A8A8A8;
  text-shadow: 0 0 8px rgba(220, 20, 60, 0.2);
}

/* === SECTION ACTIONS === */
.actions-principales {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  animation: fadeInUp 1.6s ease-out;
}

.bouton-action {
  padding: 20px 30px;
  border: 2px solid var(--rouge-crimson);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(75, 0, 130, 0.15));
  color: var(--or-lumineux);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  
  display: flex;
  align-items: center;
  gap: 15px;
  
  box-shadow: 0 0 15px rgba(255, 23, 68, 0.3);
  transition: all var(--transition-smooth);
}

.bouton-action:hover {
  border-color: var(--or-lumineux);
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.4), rgba(107, 0, 128, 0.25));
  box-shadow: 
    0 0 20px rgba(255, 23, 68, 0.6),
    0 0 40px rgba(255, 215, 0, 0.3);
  transform: translateY(-5px);
}

.bouton-action:active {
  transform: translateY(-2px);
}

.icone-action {
  font-size: 1.8rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* === BADGE SAISONNIER === */
.badge-saison {
  position: fixed;
  top: 100px;
  right: 30px;
  z-index: 20;
  
  border: 2px solid var(--rouge-vif);
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.6), rgba(42, 10, 10, 0.9));
  padding: 12px 25px;
  border-radius: 20px;
  
  color: var(--or-dore);
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.5);
  cursor: pointer;
  transition: all var(--transition-smooth);
  
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-saison:hover {
  border-color: var(--or-lumineux);
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.7), rgba(75, 0, 130, 0.3));
  box-shadow: 
    0 0 30px rgba(255, 23, 68, 0.8),
    0 0 60px rgba(255, 215, 0, 0.3);
  transform: scale(1.1);
}

/* === MODAL SAISON === */
.modal-saison {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-saison.active {
  display: flex;
}

.modal-saison-contenu {
  background: linear-gradient(135deg, rgba(26, 10, 10, 0.95), rgba(42, 10, 10, 0.9));
  border: 2px solid var(--rouge-crimson);
  border-radius: 15px;
  padding: 40px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  
  box-shadow: 
    0 0 40px var(--glow-rouge),
    inset 0 0 30px rgba(220, 20, 60, 0.2);
  
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.btn-fermer-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border: none;
  background: rgba(220, 20, 60, 0.3);
  color: var(--or-dore);
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.btn-fermer-modal:hover {
  background: var(--rouge-crimson);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--rouge-crimson);
  padding-bottom: 20px;
}

.modal-titre {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--or-dore);
  text-shadow: 0 0 15px var(--glow-or);
  margin-bottom: 10px;
}

.modal-sous-titre {
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  color: #B8B8B8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.modal-section {
  border-left: 3px solid var(--rouge-crimson);
  padding-left: 20px;
}

.modal-section h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  color: var(--or-lumineux);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modal-section p {
  color: #D0D0D0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.univers-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.univers-item {
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all var(--transition-fast);
}

.univers-item:hover {
  background: rgba(220, 20, 60, 0.2);
  border-color: var(--or-dore);
}

.univers-emoji {
  font-size: 2rem;
  filter: drop-shadow(0 0 5px var(--rouge-crimson));
}

.univers-nom {
  font-weight: 600;
  color: var(--or-dore);
  flex: 1;
}

.univers-desc {
  font-size: 0.85rem;
  color: #A8A8A8;
}

.rarete-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.rarete-item {
  background: rgba(75, 0, 130, 0.2);
  border: 1px solid;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.rarete-item.commune {
  border-color: #808080;
  color: #B0B0B0;
}

.rarete-item.rare {
  border-color: var(--violet-orchidee);
  color: var(--violet-orchidee);
}

.rarete-item.epique {
  border-color: var(--rouge-crimson);
  color: var(--rouge-crimson);
  background: rgba(220, 20, 60, 0.15);
}

.rarete-item.mythique {
  border-color: var(--or-dore);
  color: var(--or-dore);
  background: rgba(255, 215, 0, 0.1);
}

.btn-fermer-modal-bas {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border: 2px solid var(--rouge-crimson);
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.3), rgba(75, 0, 130, 0.2));
  color: var(--or-dore);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.btn-fermer-modal-bas:hover {
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.5), rgba(75, 0, 130, 0.3));
  box-shadow: 0 0 15px var(--glow-rouge);
}

/* ===================================================
   PAGES DEMARRAGE & AUTRES
   =================================================== */

/* Page Demarrage */
.demarrage-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  
  background: linear-gradient(180deg, rgba(10, 5, 5, 0.9) 0%, rgba(42, 10, 10, 0.7) 100%);
}

.demarrage-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1.5rem;
}

.kanji-demarrage {
  font-size: 4rem;
  color: var(--rouge-crimson);
  text-shadow: 0 0 20px var(--rouge-crimson);
}

.titre-demarrage {
  font-family: 'Cinzel', serif;
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--or-dore);
  text-shadow: 
    0 0 20px var(--or-dore),
    0 0 40px var(--rouge-crimson);
}

.demarrage-sous-titre {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  color: #C8C8C8;
  letter-spacing: 0.1em;
}

.bouton-demarrage {
  padding: 18px 50px;
  border: 3px solid var(--or-dore);
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.3), rgba(75, 0, 130, 0.2));
  color: var(--or-dore);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 10px;
  
  box-shadow: 0 0 20px var(--glow-or);
  transition: all var(--transition-smooth);
}

.bouton-demarrage:hover {
  border-color: var(--rouge-vif);
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.5), rgba(75, 0, 130, 0.3));
  box-shadow: 
    0 0 30px var(--glow-rouge),
    0 0 60px var(--glow-or);
  transform: scale(1.08);
}

.bouton-demarrage:active {
  transform: scale(0.98);
}

.demarrage-credit {
  margin-top: 40px;
  color: #666;
  font-size: 0.85rem;
}

/* ===================================================
   PAGES GÉNÉRALISTES
   =================================================== */

.titre-page {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--or-dore);
  text-shadow: 0 0 15px var(--glow-or);
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Boutique */
#page-boutique .contenu-page {
  padding: 40px;
}

.grille-shop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  width: 100%;
}

.shop-card-3d {
  border: 2px solid var(--or-dore);
  background: linear-gradient(135deg, rgba(42, 10, 10, 0.7), rgba(107, 0, 128, 0.2));
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 25px var(--glow-or);
  transition: all var(--transition-smooth);
}

.shop-card-3d:hover {
  transform: translateY(-10px);
  box-shadow: 
    0 0 35px var(--glow-or),
    0 0 60px var(--glow-rouge);
}

.booster-3d-container {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(75, 0, 130, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

#canvas-booster-3d {
  width: 100%;
  height: 100%;
}

.booster-3d-info {
  padding: 20px;
  text-align: center;
}

.card-titre {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--or-dore);
  margin-bottom: 10px;
}

.card-desc {
  color: #B8B8B8;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.btn-acheter {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--rouge-crimson);
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.3), rgba(107, 0, 128, 0.2));
  color: var(--or-lumineux);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.btn-acheter:hover {
  border-color: var(--or-lumineux);
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.5), rgba(107, 0, 128, 0.3));
  box-shadow: 0 0 15px var(--glow-rouge);
}

/* Collection */
.collection-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 10px 15px;
  border: 2px solid var(--violet-orchidee);
  background: rgba(75, 0, 130, 0.1);
  color: var(--or-dore);
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--rouge-crimson);
  background: rgba(220, 20, 60, 0.2);
  box-shadow: 0 0 10px var(--glow-rouge);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.carte-item {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.3), rgba(220, 20, 60, 0.2));
  border: 1px solid var(--violet-orchidee);
  border-radius: 8px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  
  transition: all var(--transition-fast);
  position: relative;
}

.carte-item:hover {
  border-color: var(--or-dore);
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.3), rgba(75, 0, 130, 0.3));
  box-shadow: 0 0 15px var(--glow-or);
  transform: scale(1.05);
}

.carte-item.possedee {
  border-color: var(--or-dore);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(220, 20, 60, 0.15));
}

.carte-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 10, 10, 0.95);
  border: 1px solid var(--or-dore);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 10;
  box-shadow: 0 0 10px var(--glow-or);
}

.carte-item:hover .carte-tooltip {
  opacity: 1;
}

/* Profil */
.profil-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.profil-card {
  border: 2px solid var(--rouge-crimson);
  background: linear-gradient(135deg, rgba(42, 10, 10, 0.6), rgba(107, 0, 128, 0.15));
  padding: 20px;
  border-radius: 10px;
  font-size: 1.1rem;
  color: #D0D0D0;
  box-shadow: 0 0 15px rgba(255, 23, 68, 0.2);
  transition: all var(--transition-fast);
}

.profil-card:hover {
  border-color: var(--or-dore);
  background: linear-gradient(135deg, rgba(42, 10, 10, 0.8), rgba(107, 0, 128, 0.25));
  box-shadow: 0 0 20px var(--glow-or);
}

.profil-card strong {
  color: var(--or-dore);
  font-weight: 700;
}

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 1024px) {
  .titre-hero {
    font-size: 3rem;
  }

  .stats-rapides {
    grid-template-columns: repeat(2, 1fr);
  }

  .actions-principales {
    grid-template-columns: 1fr;
  }

  .badge-saison {
    top: 70px;
    right: 20px;
    font-size: 0.85rem;
    padding: 8px 15px;
  }

  .modal-saison-contenu {
    max-width: 500px;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .header-principal {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
  }

  .menu-navigation {
    padding: 10px;
    gap: 5px;
  }

  .bouton-menu {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .titre-hero {
    font-size: 2.5rem;
    letter-spacing: 0.15em;
  }

  .sous-titre-hero {
    font-size: 1rem;
  }

  .stats-rapides {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-icone {
    font-size: 2.5rem;
  }

  .stat-valeur {
    font-size: 2.2rem;
  }

  .bouton-action {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  .icone-action {
    font-size: 1.4rem;
  }

  .badge-saison {
    top: 60px;
    right: 15px;
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .contenu-accueil {
    padding: 20px;
  }

  .affichage-pieces {
    font-size: 0.95rem;
  }

  .grille-shop {
    grid-template-columns: 1fr;
  }

  .collection-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
  }

  .modal-saison-contenu {
    max-width: 90vw;
    padding: 20px;
    max-height: 90vh;
  }

  .modal-titre {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .titre-hero {
    font-size: 2rem;
  }

  .sous-titre-hero {
    font-size: 0.9rem;
  }

  .stats-rapides {
    gap: 12px;
  }

  .stat-card {
    padding: 15px;
    gap: 10px;
  }

  .stat-icone {
    font-size: 2rem;
  }

  .stat-valeur {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .bouton-action {
    padding: 12px 15px;
    font-size: 0.85rem;
    flex-direction: column;
  }

  .icone-action {
    font-size: 1.2rem;
  }

  .badge-saison {
    top: 50px;
    right: 10px;
    font-size: 0.7rem;
    padding: 5px 10px;
  }

  .menu-navigation {
    padding: 8px;
    gap: 3px;
  }

  .bouton-menu {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .header-principal {
    padding: 10px 15px;
  }

  .logo-header {
    font-size: 1.4rem;
    gap: 8px;
  }

  .kanji-logo {
    font-size: 1.5rem;
  }

  .collection-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }

  .titre-page {
    font-size: 1.6rem;
  }

  .modal-saison-contenu {
    max-width: 95vw;
    padding: 15px;
  }

  .modal-titre {
    font-size: 1.5rem;
  }

  .modal-section h2 {
    font-size: 1rem;
  }

  .modal-section p {
    font-size: 0.85rem;
  }
}

/* ===================================================
   🔧 MENU DEBUG - MODAL CENTRÉ
   =================================================== */

#menu-debug {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
  animation: fadeInDebug 0.3s ease-in-out;
}

@keyframes fadeInDebug {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.debug-container {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid #00ff00;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.1);
  padding: 0;
}

.debug-header {
  background: linear-gradient(90deg, #00ff00, #00aa00);
  color: #000;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #00ff00;
  border-radius: 13px 13px 0 0;
}

.debug-header h2 {
  margin: 0;
  font-size: 1.5em;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.debug-fermer {
  background: rgba(255, 0, 0, 0.8);
  border: none;
  color: white;
  font-size: 1.5em;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: bold;
}

.debug-fermer:hover {
  background: rgba(255, 0, 0, 1);
  transform: scale(1.1);
}

.debug-contenu {
  padding: 20px;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
}

.debug-section {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(0, 255, 0, 0.05);
  border-left: 4px solid #00ff00;
  border-radius: 5px;
}

.debug-section h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #00ff00;
  font-size: 1.1em;
  border-bottom: 1px solid #00aa00;
  padding-bottom: 8px;
}

.debug-section input {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #00ff00;
  color: #00ff00;
  border-radius: 5px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.debug-section input::placeholder {
  color: #00aa00;
  opacity: 0.6;
}

.debug-section input:focus {
  outline: none;
  border-color: #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  background: rgba(0, 255, 0, 0.1);
}

.debug-section button {
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #00aa00, #00ff00);
  border: 1px solid #00ff00;
  color: #000;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.debug-section button:hover {
  background: linear-gradient(90deg, #00ff00, #00ff00);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 0, 0.4);
}

.debug-section button:active {
  transform: translateY(0);
}

.debug-danger {
  background: linear-gradient(90deg, #ff4444, #ff0000) !important;
  color: white !important;
  border-color: #ff0000 !important;
}

.debug-danger:hover {
  background: linear-gradient(90deg, #ff0000, #ff0000) !important;
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4) !important;
}

.debug-info {
  background: rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: 5px;
  font-size: 0.85em;
  line-height: 1.6;
  color: #00ff00;
}

.debug-info strong {
  color: #00ff00;
  font-weight: bold;
}

/* Scroll bar du debug */
.debug-container::-webkit-scrollbar {
  width: 8px;
}

.debug-container::-webkit-scrollbar-track {
  background: rgba(0, 255, 0, 0.1);
  border-radius: 10px;
}

.debug-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ff00, #00aa00);
  border-radius: 10px;
}

.debug-container::-webkit-scrollbar-thumb:hover {
  background: #00ff00;
}

/* Responsive */
@media (max-width: 768px) {
  .debug-container {
    width: 95%;
    max-height: 90vh;
  }
  
  .debug-section {
    padding: 12px;
  }
  
  .debug-header h2 {
    font-size: 1.2em;
  }
}