/************************************************************* MODAL */

/* Cacher la modal par défaut */
.modal-infos-groups-club.hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

/* Cacher la modal par défaut */
.modal-infos-groups-club.hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

/* Modal active (visible) */
.modal-infos-groups-club {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrer horizontalement et verticalement */
    width: 80%;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001; /* Modal au-dessus du mask */
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease; /* Animation pour l'apparition */
}

.modal-infos-groups-club h2 {
    text-align: center;
    color: #015C51;
    font-size: 3em;
    margin-top: 0;
}

.modal-infos-groups-club h3 {
    color: #015C51;
    margin-top: 0;
}

/* Fond sombre derrière la modal (mask) */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond noir semi-transparent */
    z-index: 1000; /* Doit être derrière la modal */
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease; /* Transition douce pour la disparition */
}

/* Lorsque la modal est cachée, le mask est aussi caché */
.modal-mask.hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.courses-groups, .trial-session {
    margin: 2rem 0;
}

/* Liste cours modal */
.list-courses-groups {
    padding-right: 40px;
}
.list-courses-groups li {
    margin-bottom: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .13);
    padding: 1rem;
    border-radius: 10px;
    list-style: none;
    transition: box-shadow 0.3s ease-in-out;
}

.list-courses-groups li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: black;
}

/* Modal Footer */
.modal-footer {
    text-align: center;
    padding: 1rem 0;
}
