body { font-family: Arial, sans-serif; text-align: center; margin: 20px; }
#buttons { 
    display: flex; 
    flex-wrap: wrap; gap: 10px; 
    justify-content: 
    center; 
    margin-top: 20px; 
    padding: 2rem;
}

.button-sound {
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  max-width: 120px;
  max-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s, outline 0.2s;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(60,60,100,0.18), 0 2px 8px rgba(0,0,0,0.10);
  background: #fff;
  position: relative;
  outline: none;
  overflow: hidden;
}
.button-sound:focus {
  outline: 2.5px solid #4f8cff;
  outline-offset: 2px;
}
.button-sound:hover {
  box-shadow: 0 16px 48px rgba(60,60,100,0.28), 0 4px 16px rgba(0,0,0,0.13);
  transform: translateY(-4px) scale(1.05);
  background: #f5f8ff;
  filter: brightness(1.04) drop-shadow(0 0 8px #4f8cff22);
}
.button-sound.vibrate {
  animation: vibrate 0.18s linear 1;
}
@keyframes vibrate {
  0% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}
.button-sound p {
  font-size: 1.2rem;
  font-weight: 500;
  color: #222;
  word-break: break-word;
  margin: 0.3rem 0 0 0;
  text-align: center;
  text-shadow: 0 2px 8px #fff, 0 1px 2px #0002;
  background: rgba(255,255,255,0.7);
  border-radius: 0.7rem;
  padding: 0.1rem 0.5rem;
  max-width: 90%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.button-sound img { 
  max-width: 100px; 
  max-height: 100px; 
  border-radius: 50%;
}
.button-sound.playing {
  /* Ne change rien au style visuel principal */
  /* Si tu veux un effet discret, tu peux ajouter par exemple un contour léger : */
  outline: 2px solid #4f8cff33;
  outline-offset: 2px;
  /* Pas de changement de background, box-shadow ou border-radius */
}

.button-sound button {
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
  background: transparent;
  color: #444;
  border: none;
  font-size: 1.1rem;
  margin-top: 0.3rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.button-sound button:hover {
  background: #eee;
  color: #d32f2f;
}

.sound-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: #222;
  margin: 0.5rem 0 0 0;
  text-align: center;
  text-shadow: 0 2px 8px #fff, 0 1px 2px #0002;
  background: rgba(255,255,255,0.7);
  border-radius: 0.7rem;
  padding: 0.1rem 0.7rem;
  max-width: 110px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-sizing: border-box;
}


/* Modal CSS */
.modal {
  display: none;
  position: fixed; z-index: 10;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}
.modal-content {
  background: white;
  margin: 10% auto;
  padding: 20px;
  width: 600px;
  border-radius: 8px;
  position: relative;
}
    
.close {
  position: absolute;
  right: 20px; top: 10px;
  font-size: 30px;
  cursor: pointer;
  color: white;
  background-color: rgb(0, 0, 0);
  padding: 0 8px;
  border-radius: 50%;
}
button{
    padding: 1rem 10rem;
    border-radius: 1rem;
    color: rgb(255, 255, 255);
    background-color: black;
    font-weight: 300;
    font-size: 1.2rem;

}
/* Modernisation du formulaire dans le modal */
.modal-content form {
  display: flex;
  flex-direction: column;
  background: #f7f8fa;
  border-radius: 1.2rem;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 6px 32px rgba(0,0,0,0.10), 0 1.5px 4px rgba(0,0,0,0.08);
}
.modal-content form label {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 0.3rem;
  font-weight: 500;
  text-align: left;
}
.modal-content form input[type="text"],
.modal-content form input[type="file"] {
  border: 1.5px solid #d1d5db;
  border-radius: 0.7rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: #fff;
  transition: border 0.2s;
  margin-bottom: 0rem;
}
.modal-content form input[type="text"]:focus,
.modal-content form input[type="file"]:focus {
  border: 1.5px solid #000000;
  outline: none;
  background: #f0f6ff;
}
.modal-content form button[type="submit"] {
  padding: 0.9rem 0;
  border-radius: 0.8rem;
  color: #fff;
  background: linear-gradient(90deg, #666768 0%, #000000 100%);
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  box-shadow: 0 2px 8px rgba(79,140,255,0.10);
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s, box-shadow 0.2s;
}
.modal-content form button[type="submit"]:hover {
  background: linear-gradient(90deg, #000000 0%, #4f8cff 100%);
  box-shadow: 0 4px 16px rgba(79,140,255,0.15);
}