:root {
  --based-color: rgba(254,0,0,255);
  --yellow-color: rgba(252,185,6,255);
}
#repertoire {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(120deg, #e53935 0%, var(--yellow-color) 100%);
    font-family: 'Quicksand', Arial, sans-serif;
    color: var(--yellow-color);
    overflow-x: hidden;
}
#repertoire-header h1 {
  padding: 10px 28px;
  padding-bottom: 40px;
  font-size: 2.2rem;
  color: var(--yellow-color);
  text-shadow: 0 4px 32px #e53935cc, 0 2px 0 #000000;
  letter-spacing: 4px;
  margin: 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

#titre-repertoire {
    padding: 10px 28px;
    text-align: center;
    position: relative;
    color: var(--yellow-color);
    z-index: 2;
}
.titre-encadre {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 18px 0;
}

.titre-encadre img.titre-decoration-gauche,
.titre-encadre img.titre-decoration-droite {
  width: 48px;
  height: 48px;
  margin-bottom: 40px;
  margin-left: 12px;
  margin-right: 12px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px #e5393530);
}

#fanfarons-header h1 {
  padding: 10px 0px;
  padding-bottom: 40px;
  font-size: 2.2rem;
  color: var(--yellow-color);
  text-shadow: 0 4px 32px #e53935cc, 0 2px 0 #000000;
  letter-spacing: 4px;
  margin: 0;
  text-align: center;
  position: relative;
  z-index: 2;
}
.repertory-section h2 {
  padding: 28px 28px;
  margin-bottom: 36px;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 6px;
  font-size: 2.5rem;
  color: var(--yellow-color);
  text-shadow: 0 4px 32px #e53935cc, 0 1px 0 var(--yellow-color);
  background: none;
  padding: 10px 28px;
  border-radius: 18px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.repertory-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 par ligne sur PC */
  gap: 32px; /* Espace entre les cases augmenté */
  justify-items: center;
  margin-top: 0;
  background: #fff8e1;
  border-radius: 40px;
  box-shadow: 0 8px 32px #e5393530;
  padding: 48px 36px 56px 36px; /* Padding général augmenté */
  border: 3px solid #000000;
  margin-bottom: 12px;
  margin-left: 12px;
  margin-right: 12px;
}

.music-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 16px #e5393530;
  padding: 28px 18px 24px 18px; /* Padding augmenté */
  min-width: 0;
  max-width: 400px; /* Taille des cases agrandie */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 2px solid #ffe082;
  position: relative;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
  overflow: hidden;
  margin:12px;
}

.music-card:hover {
  box-shadow: 0 8px 32px 0 #e53935cc;
  border-color: #e53935;
  transform: translateY(-6px) scale(1.03);
}

.music-titre {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.08em;
  color: #e53935;
  margin-bottom: 6px;
  letter-spacing: 2px;
  text-align: left;
  width: 100%;
}

.music-artiste {
  font-size: 0.98em;
  color: #ffb300;
  font-style: italic;
  margin-bottom: 12px;
  text-align: left;
  width: 100%;
  letter-spacing: 1px;
}

.music-note {
  font-size: 2em;
  color: #e53935;
  position: absolute;
  bottom: 8px;
  right: 12px;
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}

/* Responsive */
@media (max-width: 900px) {
  .repertory-cards { grid-template-columns: repeat(2, 1fr); }
  #repertoire-header h1 {
        font-size: 1.8rem;
        padding: 10px 20px;
    }

    .titre-encadre img.titre-decoration-gauche,
    .titre-encadre img.titre-decoration-droite {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
        object-fit: contain;
        filter: drop-shadow(0 2px 8px #e5393530);
        }
    

}
@media (max-width: 600px) {
  .repertory-section h2 { font-size: 1.3rem; }
  .repertory-cards { grid-template-columns: 1fr; padding: 12px 2px; }
  .music-card { padding: 12px 6px; max-width: 100%; width: 95%}
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: translateY(0);}
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.8);}
  to { opacity: 1; transform: scale(1);}
}
@keyframes cardAppear {
  from { opacity: 0; transform: translateY(40px) scale(0.97);}
  to { opacity: 1; transform: translateY(0) scale(1);}
}

/* Animation sur toutes les cartes, sections, blocs */
.music-card, .repertory-section, .repertory-cards,.titre-encadre {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  animation: cardAppear 1s forwards;
}

.music-card, .repertory-section, .repertory-cards,.titre-encadre {
  animation-delay: calc(var(--i, 0) * 0.08s);
}
