/* Fond assombri */
#popupOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

/* Activation */
#popupOverlay.show {
    opacity: 1;
    visibility: visible;
}

/* Boite image */
.popupBox {
    position: relative;
    transform: scale(0.7);
    transition: transform 0.4s ease;
}

#popupOverlay.show .popupBox {
    transform: scale(1);
}

/* Image */
.popupBox img {
    max-width: 85vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,.6);
}

/* Bouton X */
.closeBtn {
    position: absolute;
    top: -15px;
    right: -15px;

    width: 35px;
    height: 35px;
    border-radius: 50%;

    background: white;
    color: #333;
    font-size: 24px;
    line-height: 32px;
    text-align: center;

    cursor: pointer;
    font-family: Arial;
    box-shadow: 0 4px 15px rgba(0,0,0,.4);
}

.closeBtn:hover {
    background: #e33;
    color: white;
}