/* Style simple pour une modal d'affichage d'images */
.simple-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    /* Pour prendre en compte la barre latérale de navigation */
    padding-left: 17rem; /* Ajustement pour la barre latérale */
}

.simple-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.simple-modal-content {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    margin-left: -8.5rem; /* Compenser partiellement la barre latérale pour centrer l'image */
}

.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1010;
}

.close-button:hover {
    color: #bd5d38;
}

/* Animation pour l'affichage */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.simple-modal.show {
    animation: fadeIn 0.3s;
}

/* Ajustements responsive pour gérer la barre latérale */
@media (max-width: 992px) {
    .simple-modal {
        padding-left: 0;
    }
    
    .simple-modal-content {
        margin-left: 0;
        max-width: 90%;
    }
}
