/* ============================================
   808TWIZZ — Design system
   Direction artistique : Noir & Violet
   ============================================ */

:root {
  --black: #060309;
  --black-soft: #0d0813;
  --black-card: #120a1a;
  --violet: #8b2eff;
  --violet-deep: #5a14b8;
  --violet-glow: #b366ff;
  --violet-pale: #d4b5ff;
  --white: #f5f0ff;
  --grey: #6b6478;
  --grey-light: #9b94ab;
  --border: rgba(139, 46, 255, 0.18);
  --border-bright: rgba(139, 46, 255, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1.5;
  position: relative;
  min-height: 100vh;
}

/* Effet grain / bruit subtil */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Halos violets en arrière-plan */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: var(--violet-deep);
  top: -200px;
  right: -150px;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: var(--violet);
  top: 60%;
  left: -200px;
  opacity: 0.3;
}

.glow-3 {
  width: 700px;
  height: 700px;
  background: var(--violet-deep);
  bottom: -300px;
  right: -100px;
  opacity: 0.25;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(6, 3, 9, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  color: var(--white);
}

.nav-logo span {
  color: var(--violet-glow);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--grey-light);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--violet-glow);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--violet);
  transition: width 0.3s ease;
}

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

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 3rem 3rem;
  z-index: 2;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(20rem, 50vw, 45rem);
  color: var(--violet-deep);
  opacity: 0.07;
  letter-spacing: -0.05em;
  pointer-events: none;
  z-index: -1;
  line-height: 0.8;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 3;
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--violet-glow);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s ease forwards;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 16vw, 14rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
  opacity: 0;
  animation: titleReveal 1s ease forwards;
}

.title-line:nth-child(1) {
  animation-delay: 0.3s;
}

.title-line:nth-child(2) {
  animation-delay: 0.5s;
}

.title-accent {
  background: linear-gradient(135deg, var(--violet-glow) 0%, var(--violet) 50%, var(--violet-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  filter: drop-shadow(0 0 30px rgba(139, 46, 255, 0.5));
}

.hero-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--grey-light);
  margin: 2rem 0 3rem;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s ease forwards;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s ease forwards;
}

.btn-primary, .btn-ghost {
  font-family: 'JetBrains Mono', monospace;
  text-decoration: none;
  padding: 1.1rem 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-primary {
  background: var(--violet);
  color: var(--white);
  border: 1px solid var(--violet);
  box-shadow: 0 0 30px rgba(139, 46, 255, 0.4);
}

.btn-primary:hover {
  background: var(--violet-glow);
  border-color: var(--violet-glow);
  box-shadow: 0 0 50px rgba(179, 102, 255, 0.7);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-bright);
}

.btn-ghost:hover {
  border-color: var(--violet-glow);
  background: rgba(139, 46, 255, 0.1);
  transform: translateY(-2px);
}

/* Coins décoratifs */
.hero-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 1px solid var(--violet);
}

.top-left {
  top: 100px;
  left: 30px;
  border-right: none;
  border-bottom: none;
}

.top-right {
  top: 100px;
  right: 30px;
  border-left: none;
  border-bottom: none;
}

.bottom-left {
  bottom: 30px;
  left: 30px;
  border-right: none;
  border-top: none;
}

.bottom-right {
  bottom: 30px;
  right: 30px;
  border-left: none;
  border-top: none;
}

/* ============================================
   SECTIONS communes
   ============================================ */

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--violet-glow);
  margin-bottom: 3rem;
  text-transform: uppercase;
}

.violet {
  color: var(--violet-glow);
  font-weight: 700;
}

/* ============================================
   HISTOIRE
   ============================================ */

.story {
  padding: 8rem 3rem;
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 5rem;
  align-items: start;
}

.story-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
}

.story-paragraphs p {
  font-size: 1.05rem;
  color: var(--grey-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.story-paragraphs strong {
  color: var(--white);
  font-weight: 700;
}

.story-paragraphs .quote {
  font-family: 'Syne', sans-serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--violet-pale);
  border-left: 2px solid var(--violet);
  padding-left: 1.5rem;
  margin-top: 2.5rem;
  line-height: 1.5;
}

.story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  position: sticky;
  top: 120px;
}

.stat {
  background: var(--black-card);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: background 0.3s ease;
}

.stat:hover {
  background: rgba(139, 46, 255, 0.08);
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  color: var(--violet-glow);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--grey-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.5;
}

/* ============================================
   PRODUCTIONS / LECTEUR
   ============================================ */

.productions {
  padding: 8rem 3rem;
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.prod-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.9;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.prod-intro {
  font-family: 'JetBrains Mono', monospace;
  color: var(--grey-light);
  font-size: 0.9rem;
  margin-bottom: 4rem;
  letter-spacing: 0.05em;
}

.tracks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.track {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.8rem 2rem;
  background: var(--black-card);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  /* Anti-sélection texte */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.track::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--violet);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
}

.track:hover {
  background: rgba(139, 46, 255, 0.05);
  border-color: var(--border-bright);
  transform: translateX(4px);
}

.track:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.track.playing {
  background: rgba(139, 46, 255, 0.08);
  border-color: var(--violet);
  box-shadow: 0 0 40px rgba(139, 46, 255, 0.2);
}

.track.playing::before {
  transform: scaleY(1);
}

.track-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--grey);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.track.playing .track-num {
  color: var(--violet-glow);
}

.track-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.track-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--grey-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Waveform animée */
.track-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  cursor: pointer;
}

.wave-bar {
  flex: 1;
  background: var(--grey);
  border-radius: 1px;
  transition: background 0.3s ease, height 0.2s ease;
  height: 30%;
}

.wave-bar:nth-child(3n) { height: 60%; }
.wave-bar:nth-child(4n) { height: 80%; }
.wave-bar:nth-child(5n) { height: 45%; }
.wave-bar:nth-child(7n) { height: 95%; }
.wave-bar:nth-child(2n) { height: 50%; }
.wave-bar:nth-child(11n) { height: 70%; }

.track:hover .wave-bar {
  background: var(--violet-deep);
}

.track.playing .wave-bar {
  background: var(--violet);
  animation: waveBeat 1s ease-in-out infinite;
}

.track.playing .wave-bar:nth-child(2n) { animation-delay: 0.1s; }
.track.playing .wave-bar:nth-child(3n) { animation-delay: 0.2s; }
.track.playing .wave-bar:nth-child(4n) { animation-delay: 0.3s; }
.track.playing .wave-bar:nth-child(5n) { animation-delay: 0.15s; }
.track.playing .wave-bar:nth-child(7n) { animation-delay: 0.25s; }

@keyframes waveBeat {
  0%, 100% {
    transform: scaleY(1);
    background: var(--violet);
  }
  50% {
    transform: scaleY(1.5);
    background: var(--violet-glow);
  }
}

.track-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--violet);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(139, 46, 255, 0.4);
}

.play-btn:hover {
  background: var(--violet-glow);
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(179, 102, 255, 0.6);
}

.play-btn svg {
  width: 22px;
  height: 22px;
}

.icon-pause {
  display: none;
}

.track.playing .icon-play {
  display: none;
}

.track.playing .icon-pause {
  display: block;
}

.track.playing .play-btn {
  background: var(--violet-glow);
  animation: pulseGlow 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(139, 46, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(139, 46, 255, 0);
  }
}

.track-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--grey-light);
  min-width: 50px;
  text-align: right;
  letter-spacing: 0.05em;
}

.prod-notice {
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--grey-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px dashed var(--border);
  background: rgba(139, 46, 255, 0.03);
}

.lock-icon {
  display: inline-block;
  margin-right: 0.5rem;
  filter: hue-rotate(260deg);
}

/* ============================================
   MANIFESTO
   ============================================ */

.manifesto {
  padding: 10rem 3rem;
  position: relative;
  z-index: 2;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(139, 46, 255, 0.04), transparent);
}

.manifesto-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.manifesto-quote {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12rem;
  color: var(--violet);
  line-height: 0.5;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.manifesto-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.manifesto-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--grey-light);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  padding: 8rem 3rem;
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.9;
  margin-bottom: 4rem;
  letter-spacing: -0.02em;
}

.contact-links {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.contact-link {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  padding: 2rem 2.5rem;
  background: var(--black-card);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: rgba(139, 46, 255, 0.08);
  padding-left: 3rem;
}

.contact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--violet-glow);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.contact-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 3rem;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.footer-mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 12vw, 10rem);
  letter-spacing: 0.1em;
  background: linear-gradient(180deg, var(--violet-glow) 0%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 0.85;
  margin-bottom: 1rem;
}

.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--grey);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(60px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

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

@media (max-width: 900px) {
  .nav {
    padding: 1.2rem 1.5rem;
  }
  .nav-links {
    gap: 1.2rem;
  }
  .nav-links a {
    font-size: 0.7rem;
  }
  .hero, .story, .productions, .contact, .manifesto {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .hero-corner {
    width: 30px;
    height: 30px;
  }
  .top-left, .top-right {
    top: 80px;
  }
  .top-left, .bottom-left { left: 15px; }
  .top-right, .bottom-right { right: 15px; }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .story-stats {
    position: static;
  }
  .track {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
    padding: 1.2rem;
  }
  .track-controls {
    grid-column: 1 / -1;
    justify-content: space-between;
    margin-top: 0.5rem;
  }
  .track-num {
    font-size: 1.8rem;
  }
  .track-title {
    font-size: 1.3rem;
  }
  .contact-link {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem;
  }
  .contact-link:hover {
    padding-left: 2rem;
  }
  .manifesto-quote {
    font-size: 6rem;
  }
}

/* ============================================
   PROTECTION CONTRE TÉLÉCHARGEMENT
   ============================================ */

audio {
  display: none !important;
}

/* Désactiver la sélection de texte sur les éléments sensibles */
.track, .track *, .play-btn {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

/* Désactiver le zoom mobile sur les contrôles audio */
input[type="range"] {
  -webkit-appearance: none;
}
