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

html, body {
  height: 100%;
  font-family: 'forma-djr-deck', sans-serif;
  letter-spacing: -0.06em;
  color: white;
  overflow: hidden;        /* empêche le scroll */
  user-select: none;       /* empêche sélection texte/images */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: none;            /* desktop par défaut */
}
/* Curseur normal uniquement sur signup desktop */
body.signup-page {
  cursor: auto;
}

/* ---------------- Video Background ---------------- */
#bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* ---------------- Curseur SOUND desktop ---------------- */
.cursor-sound {
  position: fixed;
  width: 100px;
  height: 100px;
  pointer-events: none;
  z-index: 200;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-sound img {
  width: 100%;
  height: 100%;
  filter: none;
  transition: filter 0.3s, transform 0.2s;
}
.cursor-sound.muted img {
  filter: invert(29%) sepia(100%) saturate(6477%) hue-rotate(353deg) brightness(96%) contrast(104%);
}

/* ---------------- Index Container & Buttons ---------------- */
.index-container {
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: clamp(300px, 50%, 1200px);
  z-index: 10;
  gap: 32rem; /* Desktop gap */
}

.index-container .btn {
  white-space: nowrap;
  font-family: 'forma-djr-deck';
  font-weight: 900;
  font-size: 2.5rem;
  color: #e6e7e8;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s, transform 0.2s;
}

.index-container .btn:hover {
  color: #E52228;
  transform: scale(1.1);
}

/* ---------------- Responsive Mobile ---------------- */
@media screen and (max-width: 768px) {
  html, body { cursor: auto; }
  .cursor-sound { display: none; }

  .index-container {
    flex-direction: column;
    align-items: center;
    gap: 3rem; /* espace entre SOUND et les autres boutons */
    bottom: 5%;
  }

  #mobile-sound-btn {
    margin-bottom: 2rem; /* décale SOUND du groupe de boutons */
    display: inline-block;
  }

  /* Rapproche LISTEN et SIGN UP */
  .mobile-btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* réduit l’espace entre LISTEN et SIGN UP */
    align-items: center;
  }

  .index-container .btn {
    font-size: 2rem;
  }
}
/* ---------------- Bouton Play Mobile ---------------- */

#mobile-play-btn {
  position: fixed;
  top: 500%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 300;
  display: none; /* caché par défaut */
  animation: fadeIn 0.8s ease forwards;
}
#mobile-play-btn img {
  width: 80px;
  height: 80px;
  cursor: pointer;
  transition: transform 0.2s;
}
#mobile-play-btn img:hover {
  transform: scale(1.1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ---------------- Signup Page ---------------- */
.signup-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.signup-background img {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.signup-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  margin-top: 10%;
}
.signup-content form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.signup-content input[type=email] {
  font-family: 'forma-djr-deck';
  padding: 1rem;
  font-size: 1.4rem;
  border: 2px solid #e6e7e8;
  border-radius: 5px;
  background: transparent;
  color: white;
  letter-spacing: -0.06em;
  outline: none;
  width: 350px;
  max-width: 80%;
  transition: border-color 0.3s;
}
.signup-content input[type=email]::placeholder {
  color: #e6e7e8;
}
.signup-content input[type=email]:focus {
  border-color: #e6e7e8;
}
.signup-content button {
  font-family: 'forma-djr-deck';
  font-weight: 900;
  font-size: 3.5rem;
  padding: 1rem 3rem;
  cursor: pointer;
  color: #e6e7e8;
  background: none;
  border: none;
  transition: color 0.3s, transform 0.2s;
}
.signup-content button:hover {
  color: #E52228;
  transform: scale(1.05);
}


/* ---------------- Footer Logos ---------------- */
.signup-footer {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.signup-footer .platforms {
  display: flex;
  gap: 1.5rem;
}
.signup-footer .platforms a img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: transform 0.2s, filter 0.2s;
}
.signup-footer .platforms a:hover img {
  transform: scale(1.2);
}
.signup-footer .group-logo img {
  width: 200px;
  filter: brightness(0) invert(1);
  cursor: pointer;
  transition: filter 0.3s;
}
.signup-footer .group-logo img:hover {
  filter: brightness(1) saturate(100%) invert(16%) sepia(94%) saturate(5931%) hue-rotate(353deg) brightness(93%) contrast(101%);
}

/* ---------------- Responsive Mobile ---------------- */
@media screen and (max-width: 768px) {
  html, body { cursor: auto; }
  .cursor-sound { display: none; }

  .index-container {
    flex-direction: column;
    gap: 1rem;
    bottom: 5%;
  }
  .index-container .btn { font-size: 2rem; }

  #mobile-play-btn { display: block; }

  .signup-content {
    margin-top: 20%;
    gap: 1.5rem;
  }
  .signup-content input[type=email] {
    width: 250px;
    font-size: 1.2rem;
    padding: 0.8rem;
  }
  .signup-content button {
    font-size: 2.5rem;
    padding: 0.8rem 2rem;
  }
  .signup-footer .group-logo img { width: 150px; }
  .signup-footer .platforms img { width: 25px; height: 25px; }
}
/* ---------------- Mobile fixes ---------------- */
@media (max-width: 768px) {
  #sound-cursor {
    display: none !important; /* curseur desktop jamais visible sur mobile */
  }
  html, body {
    cursor: auto; /* réactive curseur standard sur mobile */
  }
  
  /* fallback image */
body > img.fallback {
  width: 100px;
  height: 100px;
  object-fit: contain;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 500;
  pointer-events: none;
}
}