/* Animation de fond */
.background-animation {
  position: absolute; /* Pour le placer derrière les autres éléments */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Cela le met derrière tout le reste */
  pointer-events: none; /* Pour que l'animation de fond ne gêne pas les interactions */
}

/* Conteneur des boutons */
.activity-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  position: relative; /* Pour que les boutons restent au-dessus de l'animation */
  z-index: 1; /* Les boutons seront au-dessus de l'animation */
}

/* === Boutons === */
.activity-buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;      /* plus large */
  border-radius: 15px;     /* plus arrondi */
  border: none;
  cursor: pointer;
  background: rgba(0, 255, 255, 0.1);
  color: #fff;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

/* Hover : léger grossissement et halo */
.activity-buttons button:hover {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 20px var(--neon-color), 0 0 40px var(--neon-color);
}

/* === Images dans les boutons === */
.activity-buttons button img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  transition: transform 0.2s, filter 0.3s;
}

/* Zoom de l'image au hover */
.activity-buttons button:hover img {
  transform: scale(1.4);
}

/* === Bouton actif === */
.activity-buttons button.active {
  transform: scale(1.08);
  background: rgba(0, 255, 255, 0.35);
  box-shadow: 0 0 20px var(--neon-color), 0 0 40px var(--neon-color);
}

/* Glow image active dans le bouton */
.activity-buttons button.active img {
  filter: drop-shadow(0 0 10px var(--neon-color)) drop-shadow(0 0 20px var(--neon-color));
  transform: scale(1.2);
  transition: filter 0.3s, transform 0.3s;
}

/* === Couleurs par activité === */
button[data-action="bras"]   { --neon-color: #00ffff; }
button[data-action="torse"]  { --neon-color: #ff00ff; }
button[data-action="jambes"] { --neon-color: #ff8800; }
button[data-action="agility"] { --neon-color: #00ff88; }

/* === Feedback texte === */
#activity-feedback {
  text-align: center;
  margin-top: 10px;
  color: #fff;
  font-size: 1.1rem;
  text-shadow: 0 0 5px cyan;
}

/* Images dans le feedback avec glow */
#activity-feedback img {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  filter: drop-shadow(0 0 5px cyan) drop-shadow(0 0 10px cyan);
  transition: filter 0.3s, transform 0.3s;
}

/* Glow appliqué via JS */
#activity-feedback img.glow {
  filter: drop-shadow(0 0 10px var(--neon-color)) drop-shadow(0 0 20px var(--neon-color));
  transform: scale(1.2);
}

/* === Responsive mobile === */
@media (max-width: 600px) {
  .activity-buttons button {
    flex: 1 1 40%;
    font-size: 1rem;
    padding: 12px 10px;
  }

  .activity-buttons button img {
    width: 40px;
    height: 40px;
  }

  #activity-feedback img {
    width: 24px;
    height: 24px;
  }
}

/* Feedback texte */
#activity-feedback {
  text-align: center;
  margin-top: 30px;
  color: #fff;
  font-size: 1.1rem;
  text-shadow: 0 0 5px cyan;
  position: relative;
}

/* Images dans le feedback */
#activity-feedback img {
  width: 32px;  
  height: 32px;
  vertical-align: middle;
  filter: drop-shadow(0 0 5px cyan) drop-shadow(0 0 10px cyan);
  transition: filter 0.3s, transform 0.3s;
  position: relative;
}

/* Glow fixe sur l'image active */
#activity-feedback img.glow {
  transform: scale(1.4);
  animation: bounce 1.0s infinite alternate;
}

/* Effet de "puces" autour de l'image */
#activity-feedback img.glow::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: cyan;
  border-radius: 50%;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  animation: bubble 0.8s infinite;
  opacity: 0.8;
}

/* Animation rebond de l'image */
@keyframes bounce {
  0% { transform: scale(1.4) translateY(0); }
  50% { transform: scale(1.5) translateY(-5px); }
  100% { transform: scale(1.4) translateY(0); }
}

/* Animation des puces */
@keyframes bubble {
  0% { transform: translateX(-50%) translateY(0) scale(0.5); opacity: 0.8; }
  50% { transform: translateX(-50%) translateY(-8px) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-16px) scale(0.5); opacity: 0; }
}


