/* Fond dégradé assorti au logo */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 30% 20%, #90a4d4 0%, #5b4b9a 55%, #3a2e6e 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Notes de musique flottantes en arrière-plan */
.bg-notes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-notes span {
  position: absolute;
  bottom: -10%;
  color: rgba(255, 255, 255, 0.12);
  font-size: 48px;
  animation: floatUp 14s linear infinite;
}

.bg-notes span:nth-child(1) { left: 8%;  animation-delay: 0s;   font-size: 40px; }
.bg-notes span:nth-child(2) { left: 25%; animation-delay: 3s;   font-size: 64px; }
.bg-notes span:nth-child(3) { left: 55%; animation-delay: 6s;   font-size: 36px; }
.bg-notes span:nth-child(4) { left: 75%; animation-delay: 1.5s; font-size: 56px; }
.bg-notes span:nth-child(5) { left: 90%; animation-delay: 8s;   font-size: 44px; }

@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-120vh) rotate(25deg); opacity: 0; }
}

/* Carte centrale */
#indexContainer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 88%;
  max-width: 420px;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  animation: floatLogo 3.5s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Titre */
#indexContainer h1 {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  margin: 0;
  text-align: center;
}

.tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin: 8px 0 32px 0;
  text-align: center;
}

/* Conteneur des boutons */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* Boutons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 16px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  color: white;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn .icon {
  font-size: 22px;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

/* Bouton Host (orange) */
.btn.host {
  background: linear-gradient(135deg, #ff9800, #f57c00);
}

/* Bouton Joueur (rouge) */
.btn.player {
  background: linear-gradient(135deg, #ff5f4d, #e74c3c);
}

.tv-link {
  display: inline-block;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
  transition: color 0.15s ease;
}

.tv-link:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 500px) {
  #indexContainer {
    padding: 32px 22px;
  }
  #indexContainer h1 {
    font-size: 32px;
  }
  .logo {
    width: 76px;
    height: 76px;
  }
  .btn {
    font-size: 16px;
    padding: 15px 14px;
  }
}
