/* Overlay plein écran, toujours en flex, masqué via opacity/visibility */
.tri-image-popup {
    position: fixed;
    inset: 0;
    display: flex;                 /* <- reste en flex même caché */
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.7);
    z-index: 2147483647;           /* au-dessus de tout (admin bar, header Divi, etc.) */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.tri-image-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Contenu */
.tri-popup-content {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 700px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 25px rgba(0,0,0,.3);
    transform: scale(.96);
    transition: transform .2s ease;
}
.tri-image-popup.is-open .tri-popup-content { transform: scale(1); }

/* Bouton X */
.tri-close-pop {
    position: absolute; top: 10px; right: 15px;
    font-size: 28px; font-weight: 700; color:#333; text-decoration:none;
}
.tri-close-pop:hover { color: red; }
