.logo-marguerite {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
}

/* Grille des membres */
.members-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    row-gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.member-card {
    flex: 0 0 calc(20% - 8px); /* 5 colonnes en desktop */
}

/* Force un retour à la ligne dans la grille de l'orchestre,
   sans changer la taille des cartes */
.row-break {
    flex-basis: 100%;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Style pour le conteneur de l'image */
.photo-container {
    position: relative;
    width: 100%; /* Ajuste selon tes besoins */
    height: auto; /* Ajuste selon la hauteur de tes images */
    overflow: hidden;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* .photo-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f7ebd7aa; 
    color: #001c5e;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(120%); 
    transition: transform 0.5s ease;
    padding: 10px;
    text-align: center;
}

.photo-container:hover .overlay {
     transform: translateY(0); 
    transform: tran(120%)
}
*/

.photo-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(120%); 
    transition: transform 0.5s ease;
    padding: 10px;
    text-align: center;
}

.photo-container .overlay p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    color: #001c5e;
    font-family: 'Police_sous_banniere', serif;
}


/* Carte d'un membre */
.member-card {
    position: relative;
    text-align: center;
    background-color: transparent;
    padding: 10px;
}

.member-card img {
    width: 100%;
    height: auto;
}

.member-card h3 {
    font-size: 27px;
    font-family: 'Police_titres', serif;
    color: #001c5e;
    margin-top: 10px;
    text-align: left;
}

.member-card p {
    font-size: 15px;
    font-family: 'Police_banniere', serif;
    color: #C7004F;
    margin-top: 5px;
    text-align: left;
}

.photo-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f7ebd7aa; /* Couleur unie (blanc) */
    color: #001c5e;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(100%); /* Masqué en dessous de l'image */
    transition: transform 0.5s ease;
    padding: 10px;
    text-align: center;
}

.photo-container:hover .overlay {
    /* A CHANGER QUAND LES DESCRIPTIONS SONT ECRITES */
    transform: translateY(0);  /* Monte pour couvrir l'image */
}

.la-troupe {
    height: 80px;
    background-color: transparent;
}

.la-troupe h2{
    font-size: 37px;
    font-family: 'Police_titres', serif;
    color: #C7004F;
    text-align: center;
    justify-content: center;
    text-transform: uppercase;

}

.espace-debut {
    height: 70px;
}

.espace-fin {
    height: 70px;
}

/* Responsive pour les petits écrans */
@media (max-width: 1024px) {
    .member-card {
        flex-basis: calc(33.333% - 8px);
    }
}

@media (max-width: 768px) {

    .photo-container .overlay p{
        font-size: 9px;
    }

    .member-card {
        flex-basis: calc(50% - 8px);
    }
}