/* Fond fixe en arrière-plan */
.chorale-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1; /* derrière le contenu */
}

/* Contenu superposé */
.chorale-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem 2rem; /* haut = 0, côtés/bas = 2rem */
  color: #fff;
  text-align: center;
}

/* Nom de la chorale */
.chorale-nom h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Galerie des chansons */
.chorale-gallery {
  width: 100%;
  max-width: 1200px;
}

/* Grille responsive */
.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* Chaque chanson */
.song-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Image de chanson */
.song-image {
  position: relative;
  width: 100%;
  padding-top: 100%; /* carré */
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.song-image:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

/* Titre de chanson superposé */
.song-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-weight: 600;
  text-align: center;
  font-size: 1rem;
}

/* Placeholder si pas d'image */
.song-placeholder {
  position: relative;
  width: 100%;
  padding-top: 100%; /* carré */
  background: rgba(255,255,255,0.2);
  border: 2px dashed #fff;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.song-placeholder .song-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .chorale-nom h1 {
    font-size: 2rem;
  }

  .songs-grid {
    gap: 1rem;
  }

  .song-title {
    font-size: 0.9rem;
    padding: 0.6rem;
  }
}