/* Popup d'image générique */
.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.image-popup-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background-color: transparent;
}

.image-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background-color: #000;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    transition: all 0.3s ease;
}

.image-popup-close:hover {
    background-color: #333;
    transform: scale(1.1);
}

.image-popup-close:active {
    transform: scale(0.95);
}

.image-popup-link {
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-popup-link:hover {
    transform: scale(1.02);
}

.image-popup-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .image-popup-container {
        max-width: 95%;
    }

    .image-popup-close {
        top: -10px;
        right: -10px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .image-popup-image {
        max-height: 85vh;
    }
}

