/* Styles pour le popup d'image */
.image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 100%;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    cursor: pointer;
}

.popup-content {
    position: relative;
    z-index: 2001;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-popup.active .popup-content {
    transform: scale(1);
}

.popup-content img {
    max-width: 100%;
    max-height: 90vh;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0);
    border-radius: 4px;
    object-fit: contain;
}

.close-popup {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-popup:hover {
    color: #5271FF;
    transform: rotate(90deg);
}

/* Indication du curseur sur les images pour montrer qu'elles sont cliquables */
.project-detail-img {
    cursor: pointer;
}

.project-detail-img img {
    transition: transform 0.3s ease;
}

.project-detail-img:hover img {
    transform: scale(1.03);
}