/* ===== BOUTON SON ===== */
.sound-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9000;
  background: #0032FF;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0, 50, 255, 0.3);
  border-radius: 4px;
}

.sound-btn:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 50, 255, 0.4);
}

.sound-btn.is-off {
  background: #fff;
  color: #0032FF;
  border: 2px solid #0032FF;
  box-shadow: none;
}

.sound-btn.is-off:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

.sound-icon {
  display: flex;
  align-items: center;
  width: 20px;
  height: 20px;
}

/* Animation pulsation quand le son joue */
.sound-btn:not(.is-off) .sound-icon.sound-on {
  animation: soundPulse 2s ease-in-out infinite;
}

@keyframes soundPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Apparition du bouton */
.sound-btn {
  animation: soundAppear 0.5s ease forwards;
  animation-delay: 1s;
  opacity: 0;
}

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

/* ===== MESSAGE HINT ===== */
.sound-hint {
  position: fixed;
  bottom: 90px;
  right: 32px;
  z-index: 9000;
  background: #0032FF;
  color: #fff;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
  animation: soundAppear 0.5s ease forwards;
  animation-delay: 1.5s;
  opacity: 0;
  box-shadow: 0 4px 20px rgba(0, 50, 255, 0.3);
  pointer-events: none;
}

.sound-hint::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 32px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #0032FF;
}

@media (max-width: 768px) {
  .sound-btn {
    bottom: 24px;
    right: 24px;
    padding: 10px 16px;
    font-size: 0.8rem;
  }
  
  .sound-icon {
    width: 16px;
    height: 16px;
  }

  .sound-hint {
    bottom: 80px;
    right: 24px;
    font-size: 0.8rem;
    padding: 10px 12px;
  }
  
  .sound-hint::after {
    right: 24px;
  }
}
