/* Structure globale : body en flex */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* Fond fixe en arrière-plan avec blur */
.fond-image-chanson {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.fond-image-chanson::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(12px);
  transform: scale(1.05);
}

/* Wrapper principal */
.chanson-wrap {
  flex: 1;
  padding: 2rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

/* Grille principale : 3 colonnes égales */
.chanson-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* trois colonnes égales */
  gap: 2rem;
  align-items: stretch; /* toutes les colonnes prennent la hauteur de la plus grande */
}

/* Colonnes */
.col {
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}

.col-title {
  font-size: 1.6rem; /* légèrement plus grand */
  margin-bottom: 1rem;
  text-align: center;
}

/* Colonne centrale */
.col-center {
  text-align: center;
}

.titre-chanson {
  font-size: 2.2rem; /* légèrement plus grand */
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.image-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* ou center si tu veux centrer verticalement */
  flex: 0; /* ne pas forcer l’étirement vertical */
}

.img-carree {
  display: block;
  width: 100%;
  height: auto; /* ratio respecté */
  margin: 0 25px 25px;
}



/* Pupitre rows (MP3 et PDF) */
.pupitre-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  text-align: center;
}

.pupitre-label {
  margin-bottom: 0.8rem;
}

.titre-pupitre {
  font-size: 1.1rem; /* légèrement plus grand */
  font-weight: 600;
}

/* Actions (MP3 et PDF) */
.pupitre-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
}

/* Boutons choristes raffinés */
.bouton-choriste {
  display: inline-block;
  padding: 0.8rem 1.6rem; /* plus larges et plus hauts */
  border-radius: 8px;
  font-size: 1.05rem; /* légèrement plus grand */
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: #333;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.15),
              0 4px 8px rgba(0,0,0,0.25);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

/* Variantes colorées */
.bouton-ecouter {
  background: linear-gradient(135deg, #1db954, #14833b);
}

.bouton-visionner {
  background: linear-gradient(135deg, #007bff, #0056b3);
}

.bouton-telecharger {
  background: linear-gradient(135deg, #ff9800, #e67e00);
}

/* Hover élégant */
.bouton-choriste:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.2),
              0 6px 12px rgba(0,0,0,0.35);
  filter: brightness(1.05);
}

/* Footer */
footer {
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  /* Fond non flou */
  .fond-image-chanson::before {
    filter: none;
    transform: none; /* retire le léger zoom lié au blur */
  }

  /* Masquer la colonne centrale (image + son titre) */
  .col-center {
    display: none;
  }

  /* Grille en 2 colonnes pour MP3 + Partition */
  .chanson-grid {
    grid-template-columns: 1fr 1fr; /* deux colonnes */
    gap: 1.5rem; /* un peu moins d’espace */
    align-items: start; /* évite le stretch vertical */
  }

  /* Petits ajustements visuels */
  .col {
    padding: 1rem;
  }

  .titre-chanson {
    font-size: 1.8rem;
  }

  .img-carree {
    margin: 0; /* inutile puisque la colonne image est cachée */
  }
}
@media (max-width: 768px) {
  /* Fond simplifié : pas de blur */
  .fond-image-chanson::before {
    filter: none;
    transform: none;
  }

  /* Grille en une seule colonne */
  .chanson-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Masquer la colonne centrale (image) */
  .col-center {
    display: none;
  }

  /* Colonnes pupitre et partition empilées */
  .col {
    padding: 0.8rem;
    margin-bottom: 1rem;
  }

  /* Boutons empilés au lieu d’être côte à côte */
  .pupitre-actions {
    flex-direction: column;   /* empile verticalement */
    gap: 0.8rem;              /* espace entre les boutons */
    width: 100%;
  }

  .bouton-choriste {
    width: 100%;              /* chaque bouton prend toute la largeur */
    text-align: center;
    padding: 0.8rem 1.2rem;   /* confort tactile */
    font-size: 1rem;
  }
}
