/* ============================================================
   STYLE — Site Jeyzuk Streaming
   Palette : noir #0a0a0a, violet #7b2d8e / #9b30ff, rose #ff2d7b
   ============================================================ */

/* --- Reset & base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0a;
  color: #e8e8e8;
  overflow-x: hidden;
}

h2 {
  font-family: 'Creepster', cursive;
  font-size: 2.4rem;
  color: #9b30ff;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

a {
  color: #ff2d7b;
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.75;
}

.hidden {
  display: none !important;
}

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#splash.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Hachette — grande, vitesse constante, coin haut-droit de la lame se plante */
.hatchet {
  position: absolute;
  top: 50%;
  left: -300px;
  transform: translateY(-50%) scaleX(-1);
  opacity: 0;
  z-index: 20;
  animation: hatchet-fly 1.2s 0.3s linear forwards;
}

@keyframes hatchet-fly {
  0% {
    left: -300px;
    opacity: 1;
    transform: translateY(-50%) scaleX(-1) rotate(0deg);
  }
  /* Vitesse constante — rotation et déplacement linéaires */
  100% {
    left: calc(100% - 165px);
    opacity: 1;
    transform: translateY(-50%) scaleX(-1) rotate(1815deg);
  }
}

/* Tremblement à l'impact */
.hatchet.planted {
  animation: hatchet-fly 1.2s 0.3s linear forwards,
             hatchet-vibrate 0.06s 1.5s linear 6;
}

@keyframes hatchet-vibrate {
  0%   { margin-top: 0; margin-left: 0; }
  25%  { margin-top: -4px; margin-left: 3px; }
  50%  { margin-top: 3px; margin-left: -2px; }
  75%  { margin-top: -2px; margin-left: 1px; }
  100% { margin-top: 0; margin-left: 0; }
}


/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1a1a1a;
}

.nav-brand {
  font-family: 'Creepster', cursive;
  font-size: 1.5rem;
  color: #9b30ff;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #999;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #ff2d7b;
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #e8e8e8;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */
/* --- Bannière pleine largeur --- */
#banner-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
}

#banner-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #0a0a0a);
}

#banner-img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 350px;
}

#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
}

#hero-pseudo {
  font-family: 'Creepster', cursive;
  font-size: 4rem;
  color: #9b30ff;
  letter-spacing: 4px;
  margin-bottom: 1rem;
}

#hero-citation {
  font-size: 1.15rem;
  color: #ccc;
  max-width: 600px;
  margin-bottom: 2rem;
  font-style: italic;
}

#hero-socials {
  display: flex;
  gap: 1.5rem;
}

#hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
  max-width: 700px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid #7b2d8e;
  border-radius: 4px;
  color: #e8e8e8;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.social-link:hover {
  background: #7b2d8e;
  opacity: 1;
  transform: scale(1.05);
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ============================================================
   STREAM TWITCH + TCHAT
   ============================================================ */
.content-section--wide {
  max-width: 1400px;
}

.stream-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  height: 520px;
}

.stream-player iframe,
.stream-chat iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.stream-offline {
  text-align: center;
  color: #666;
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.9rem;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.content-section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Ligne décorative entre les sections */
.content-section + .content-section {
  border-top: 1px solid #1a1a1a;
}

/* --- Grille vidéos / clips / podcasts --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #111;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.02);
}

.card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

.card-title {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #ccc;
}

/* --- Liste musiques --- */
.list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.music-link {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 1px solid #ff2d7b;
  border-radius: 4px;
  color: #ff2d7b;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.music-link:hover {
  background: #ff2d7b;
  color: #0a0a0a;
  opacity: 1;
}

/* --- Tags jeux --- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tag {
  padding: 0.5rem 1.2rem;
  background: #161616;
  border: 1px solid #7b2d8e;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #e8e8e8;
}

/* --- Partenaires --- */
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s;
}

.partner:hover {
  transform: scale(1.05);
  opacity: 1;
}

.partner img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  background: #161616;
  padding: 10px;
}

.partner span {
  color: #ccc;
  font-size: 0.9rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid #1a1a1a;
  color: #666;
  font-size: 0.85rem;
}

#footer-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  /* Nav mobile */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    padding: 1rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid #1a1a1a;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  /* Stream empilé */
  .stream-container {
    grid-template-columns: 1fr;
    height: auto;
  }

  .stream-player iframe {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .stream-chat iframe {
    height: 400px;
  }
}

@media (max-width: 600px) {
  .glitch {
    font-size: 3rem;
  }

  #hero-pseudo {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

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

  #hero-socials {
    flex-direction: column;
    align-items: center;
  }
}
