/* ============================================
   SLASHERZ - Feuille de style globale
   Thème horrifique rouge sang et noir
   ============================================ */

/* Variables CSS */
:root {
  --blood-red: #8B0000;
  --dark-red: #450000;
  --black: #0a0a0a;
  --gray: #1a1a1a;
  --text: #e0e0e0;
  --gold: #d4af37;
  --silver: #c0c0c0;
  --bronze: #cd7f32;

  /* Dimensions colors */
  --desert: #f4a460;
  --nature: #228b22;
  --urbain: #808080;
  --enfer: #ff4500;
  --espace: #191970;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Border radius */
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 15px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
  --transition-slow: 0.6s ease;
}

/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', serif;
  background: radial-gradient(circle at top, var(--dark-red) 0%, var(--black) 50%);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Polices explicites pour TOUS les éléments textuels */
p, span, div, li, ul, ol, dl, dt, dd, blockquote, code, pre, em, i, strong, b, small, mark, del, ins, sub, sup {
  font-family: 'Lora', serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
}

button, .btn, input[type="button"], input[type="submit"] {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
}

label {
  font-family: 'Lora', serif;
}

input, textarea, select {
  font-family: 'Lora', serif;
}

a {
  font-family: inherit;
}

/* Effet de vignette */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 10;
}

/* Navigation globale */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--blood-red);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--blood-red);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(139, 0, 0, 0.8);
  transition: var(--transition-normal);
  letter-spacing: 0.05em;
}

.nav-logo:hover {
  text-shadow: 0 0 20px rgba(139, 0, 0, 1);
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--blood-red);
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: var(--blood-red);
}

.nav-links a:hover::after {
  width: 80%;
}

.nav-links a.active {
  color: var(--blood-red);
  background: rgba(139, 0, 0, 0.1);
}

/* Menu hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--blood-red);
  margin: 5px 0;
  transition: var(--transition-normal);
}

/* Ajustement pour le contenu sous le menu fixe */
body {
  padding-top: 80px;
}

/* Footer global */
.main-footer {
  position: relative;
  z-index: 10;
  background: rgba(10, 10, 10, 0.95);
  border-top: 2px solid var(--blood-red);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.footer-section h3 {
  font-family: 'Merriweather', serif;
  color: var(--blood-red);
  margin-bottom: var(--spacing-sm);
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-section a:hover {
  color: var(--blood-red);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(139, 0, 0, 0.3);
  color: #6b7280;
  font-size: 0.9rem;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  font-family: 'Open Sans', sans-serif;
}

.btn-primary {
  background: var(--blood-red);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.btn-primary:hover {
  background: #a00000;
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--blood-red);
  border: 2px solid var(--blood-red);
}

.btn-secondary:hover {
  background: var(--blood-red);
  color: white;
}

/* Badges de rareté */
.rarity-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rarity-commune {
  background: #666;
  color: #fff;
}

.rarity-rare {
  background: var(--bronze);
  color: #fff;
}

.rarity-super_rare {
  background: var(--silver);
  color: #000;
}

.rarity-mythique {
  background: var(--gold);
  color: #000;
  animation: glow 2s infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 4px 10px rgba(212, 175, 55, 0.5); }
  50% { box-shadow: 0 4px 20px rgba(212, 175, 55, 1); }
}

/* Formulaires */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid rgba(139, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Lora', serif;
  transition: var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--blood-red);
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.3);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

select.form-control {
  cursor: pointer;
}

/* Grille de cartes réutilisable */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
  perspective: 1000px;
}

/* Sections */
.section {
  padding: var(--spacing-xl) 0;
  position: relative;
  z-index: 10;
}

.section-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--blood-red);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  text-align: center;
  color: var(--text);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 4px solid rgba(139, 0, 0, 0.2);
  border-top-color: var(--blood-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-links {
    gap: var(--spacing-sm);
  }

  .nav-links a {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    padding: var(--spacing-md);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-sm);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Utilitaires */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.hidden {
  display: none;
}
