/* ============================= MODAL ============================= */
.cvs-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
}

.cvs-modal-content {
    width: 90%;
    position: fixed;
    bottom: 0;
    border-radius: 20px 20px 0 0;
}

.cvs-close-modal:hover,
.cvs-close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#cvs-open-modal-btn {
    display: flex;
    align-items: center;
    background-color: transparent;
    color: #5a5a5a;
    border: 2px solid #5a5a5a;
    border-radius: 25px;
    cursor: pointer;
    padding: 10px 25px;
    gap: 10px;
    line-height: inherit;
}

.cvs-arrow-modal {
    width: 10px;
}

.cvs-modal-wrapper {
    background-color: #fff;
    padding: 20px;
    -webkit-border-radius: 20px 20px 0 0;
    -moz-border-radius: 20px 20px 0 0;
    border-radius: 20px 20px 0 0;
}

.cvs-continent-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px 0;
}

.cvs-modal-wrapper h2 {
    font-size: 30px !important;
    margin-top: 20px;
    text-align: left !important;
}

.cvs-country-link {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 15px;
    color: #272E36 !important;
    font-size: 18px;
    line-height: 22px;
    text-decoration: none !important;
    border-radius: 5px;
    width: 100%;
    min-height: 64px;
    padding-left: 20px;
    font-family: "Effra-Bd";
}

a.cvs-country-link:visited {
    color: black !important;
}

.cvs-country-link:hover {
    background: #e0e0e0;
}

.cvs-close-img {
    position: absolute;
    left: 48%;
    top: -4%;
    width: 48px;
    height: 48px !important;
}

.cvs-group:not(:last-child) {
    border-right: 1px solid #ccc;
}

.cvs-group:nth-child(4n+1) {
    clear: both;
}

.col-lang-footer.wpb_column.vc_column_container.vc_col-sm-6{
    height: 70px;
}

/* ============================= MODAL RESPONSIVE ============================= */
@media (max-width: 1150px) {

    .cvs-modal-content {
        overflow-y: auto; /* Permet le défilement sur l'axe Y */
        max-height: 55vh; /* Hauteur maximale pour permettre le défilement */
    }

    .cvs-continent-group {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }

    .cvs-close-img {
        left: 48%;
        top: 43%;
        position: fixed;
    }

    .cvs-group {
        border-right: 1px solid #ccc;
    }
}

@media (max-width: 1024px) {
    .cvs-modal-content {
        width: 80%;

    }

    .cvs-continent-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cvs-modal-content {
        width: 95%;
    }

    .cvs-continent-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .cvs-close-img {
        left: 47%;
    }
}

@media (max-width: 480px) {
    .cvs-modal-content {
        left: 0;
        width: 100%;
        bottom: 0;
        transform: none;
    }

    .cvs-continent-group {
        grid-template-columns: 1fr;
    }

    .cvs-country-link {
        font-size: 16px;
        padding-left: 10px;
        width: auto;
    }

    .cvs-close-img {
        left: 43%;
    }

    .cvs-group {
        border-right: none !important;
    }

    .cvs-group .cvs-country-link {
        border-bottom: 1px solid #ccc;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
    }
}
