/************************************************************* 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%;
    height: 85vh;
    overflow-y: scroll;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 998; /* Modal au-dessus du mask */
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease; /* Animation pour l'apparition */
}

.modal-content-stage {
    text-align: start;
}

.modal-content-stage hr, .modal-content-course hr {
    border-color: rgba(0, 0, 0, .1);
}

.modal-infos-groups-club h2 {
    text-align: center;
    color: var(--red-dark);
    font-size: 3em;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-infos-groups-club h3 {
    color: var(--red-dark);
    margin-top: 0;
}

.modal-content-stage__section-sub-title, .modal-content-course__section-sub-title {
    text-align: center;
    font-size: 1.2em;
    color: var(--e-global-color-text);
}

.modal-content-stage__section-title, .modal-content-course__section-title {
    color: var(--red-dark);
    font-size: 1.2em;
}

.modal-content-stage__stage-time,
.modal-content-stage__stage-price {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    column-gap: 1rem;
    color: var(--e-global-color-text);
    font-weight: 600;
}

.modal-content-stage__stage-time strong,
.modal-content-stage__stage-price strong {
    font-size: 1.1em;
    font-weight: 800;
    color: rgba(36, 51, 61, .3);
}

.modal-content-stage__description, .modal-content-course__description {
    color: var(--e-global-color-text);
}

.modal-content-stage__stage-days {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    column-gap: 5%;
    row-gap: 1rem;
}

.stage-days__day {
    width: 30%;
    padding: 1rem 2rem;
}

.day-available {
    width: 30%;
}

.stage-days__day p {
    margin-top: 0;
    font-size: 1.1em;
    font-weight: 800;
    color: rgba(36, 51, 61, .7);
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    padding-bottom: 1rem;
}

.stage-days__day div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.stage-days__day label {
    color: rgba(36, 51, 61, 1);
}

.stage-days__day span {
    color: rgba(36, 51, 61, .8);
    font-size: .8em;
    margin-right: 10px;
}

.courses-groups__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 4%;
    row-gap: 2rem;
    margin: 2rem 0;
}

.courses-groups .list-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 8px;
    align-items: center;
    row-gap: 1rem;
    min-width: 22%;
    max-width: 22%;
}

.list-card .list-card__title {
    font-size: 1.1em;
    font-weight: 800;
    color: rgba(36, 51, 61, .7);
    text-align: center;
}

.list-card .list-card__price {
    color: var(--red-dark);
    font-weight: 600;
}

.list-card .list-card__place {
    color: rgba(36, 51, 61, .8);
    font-size: .8em;
    margin-bottom: 1rem;
}
.list-card .list-card__hours {
    display: block;
    line-height: 1;
    font-size: .9em;
    color: rgba(36, 51, 61, 1);
}

@media (max-width: 992px) {
    .stage-days__day {
        width: 47%;
    }

    .modal-infos-groups-club h2 {
        font-size: 2em;
    }

    .modal-content-stage__section-title, .modal-content-course__section-title {
        font-size: 14px !important;
    }

    .modal-infos-groups-club p, .modal-infos-groups-club li, .modal-infos-groups-club span {
        font-size: 12px;
    }

    .courses-groups .list-card {
        min-width: 100%;
        max-width: 100%;
    }

}

@media (max-width: 767px) {
    .stage-days__day {
        width: 100%;
    }
    .list-card .list-card__hours, .list-card .list-card__place, .list-card .list-card__price {
        font-size: 14px;
    }
    .list-card .list-card__title {
        font-size: 16px;
    }

}

.modal-content-stage .modal-footer {
    margin-top: 3rem;
}

/* 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: 995; /* 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 */

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


/* MODAL CONFIRMATION */
/* Overlay de la modal */
.modal-confirm .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6); /* Fond gris foncé semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Contenu central de la modal */
.modal-confirm .modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 75%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    z-index: 1000;
}

/* Zone boutons dans la modal */
.modal-confirm .modal-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Boutons standards */
.modal-confirm .modal-buttons button {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    background-color: #800020; /* red-dark de ton projet */
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease-in-out;
}

.modal-confirm .modal-buttons button:hover {
    background-color: #a32030; /* Variante hover */
}

/* Input de fichier */
.modal-confirm .modal-content input[type="file"] {
    margin-top: 1rem;
    display: block;
    width: 100%;
}

.modal-buttons button:disabled {
    cursor: not-allowed !important;
    background-color: rgba(0, 0, 0, .5) !important;
    opacity: .5 !important;
}

.popup-seances {
    text-align: start;
}

.popup-seances p {
    text-align: center;
}

.popup-seances ul {
    list-style: none;
}

.popup-seances ul li:first-child {
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Modal CGV */
#cgv-scroll {
    text-align: start;
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
}

#cgv-scroll h1 {
    font-size: 30px;
    text-align: center;
    font-weight: 800;
    color: var(--grey-blue);
    line-height: 1;
}

#cgv-scroll h2 {
    font-size: 25px;
    font-weight: 600;
    color: var(--grey-blue);
}

#cgv-scroll h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--grey-blue);
}

#cgv-scroll p {
    color: var(--grey-blue);
}

#cgv-scroll #scroll-message {
    margin-top: 1rem;
}

@media (max-width: 767px) {
    #cgv-scroll p, #cgv-scroll li, #scroll-message {
        font-size: 12px;
    }
    #cgv-scroll h2 {
        font-size: 18px;
    }
    #cgv-scroll h3 {
        font-size: 16px;
    }
}
