.modal {
    display: none;
    position: fixed;
    z-index: 50000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

body.modal-open {
    overflow: hidden;
}

@media only screen and (max-width: 767px) {
    .modal-content {
        width: 98% !important;
    }
}
/* Style du contenu du modal */
.modal-content {
    background-color: #fefefe;
    margin: 30px auto;
    padding: 20px;
    border: 1px none #888;
    width: 40%;
    border-radius: 8px;

    overflow-y: auto;
    position: relative;
}

/* Style du bouton de fermeture */
.close-md {
    color: #aaaaaa;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin: -2px 10px ;
}

/* Style du bouton de fermeture au survol */
.close-md:hover, .close-md:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}