/* ================= VARIABLES & RESET ================= */
:root {
  --bg: #0a0a0f;
  --bg-light: #14141f;
  --accent: #d4277c;
  --accent-dark: #8a0303;
  --neutral: #2a2a3a;
  --text: #e6e6ef;
  --text-muted: #9a9ab0;
  --font-title: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow: 0 0 12px var(--accent);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
img, .char-img, .series-card, .product-cover { background-size: cover; background-position: center; }

/* ================= CUSTOM CURSOR ================= */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
  z-index: 9999;
}
body:hover .cursor { width: 20px; height: 20px; }

/* ================= HEADER & NAV ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: lowercase; /* Force l'affichage en minuscules */
}

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

.nav-links a:hover, .btn:hover {
  color: var(--accent);
  text-shadow: var(--glow);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  transition: var(--transition);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
  color: var(--text);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { border-color: var(--text-muted); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); }

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 2rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--bg-light) 0%, var(--bg) 70%);
  z-index: -2;
}
.glitch-text {
  font-family: var(--font-title);
  font-size: clamp(3rem, 8vw, 6rem);
  position: relative;
  color: #fff;
  text-shadow: 0 0 20px rgba(212, 39, 124, 0.6);
}
.tagline {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin: 1rem 0;
  color: var(--text-muted);
}
.subtagline {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  font-size: 2rem;
  color: var(--accent);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ================= SECTIONS ================= */
.section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  color: #fff;
}
.accent { color: var(--accent); }
.lead {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ================= LORE GRID ================= */
.lore-grid, .char-grid, .series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.lore-card, .char-card, .series-card {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--neutral);
  transition: var(--transition);
}
.lore-card:hover, .char-card:hover, .series-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow);
  border-color: var(--accent);
}
.char-phobia {
  color: var(--accent);
  font-weight: 600;
  margin: 0.5rem 0;
}
.series-num {
  display: block;
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}
.series-more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: transparent;
  border: 2px dashed var(--neutral);
}

/* ================= CHAPTER PREVIEW ================= */
.chapter-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.chapter-img {
  aspect-ratio: 2/3;
  border-radius: 8px;
  background-color: var(--neutral);
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid var(--neutral);
  background: var(--bg-light);
  color: #fff;
  border-radius: 4px;
}

/* ================= PRODUCT CARD ================= */
.product-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--neutral);
}
.product-cover {
  aspect-ratio: 3/4;
  border-radius: 8px;
  background-color: var(--neutral);
}
.bonuses {
  margin: 1rem 0;
  color: var(--text-muted);
}
.bonuses li::before { content: "✓ "; color: var(--accent); }
.countdown {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--bg-light);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--neutral);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--neutral);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.social-icons { display: flex; gap: 1rem; margin-top: 0.5rem; }
.social-icons a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--neutral);
  border-radius: 50%;
  font-weight: 600;
  transition: var(--transition);
}
.social-icons a:hover { background: var(--accent); border-color: var(--accent); }

/* ================= ANIMATIONS ================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--bg);
    flex-direction: column;
    padding: 2rem;
    transition: var(--transition);
    gap: 1.5rem;
  }
  .nav-links.open { right: 0; }
  .chapter-preview, .product-card { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  body { cursor: auto; }
  .cursor { display: none; }
}