.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #f9f9f7;
    color: #2e2e2e;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 900px;
    height: 60%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    border-radius: 0;
}

.modal-body {
    flex: 1;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.modal-image {
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) sepia(25%) brightness(0.95);
}

.modal-text {
    flex: 1;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: justify;
}

.modal-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;

}

.modal-text p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

.close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    color: #ffffff;
    cursor: pointer;
    z-index: 10;
}

.close:hover {
    color: #000;
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        height: 100%;
        flex-direction: column;
    }

    .modal-image {
        flex: none;
        height: 30vh;
        overflow: hidden;
    }

    .modal-body {
        flex-direction: column;
        height: 100%; /* permet de répartir sur toute la modal */
        overflow: hidden;
    }

    .modal-image {
        height: 30%;
        flex-shrink: 0;
        overflow: hidden;
    }

    .modal-text {
        height: 70%; /* le reste */
        overflow-y: auto;
    }
}