/* Wrapper pour gérer le centrage */
.video-wrapper {
    display: flex;
    justify-content: center;
    /* centre horizontalement */
    margin: 0;
}

/* Conteneur image */
.video-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin: 0 auto;
}

.video-container img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Pop-up (modal) */
.video-modal {
    display: none;
    /* caché par défaut */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16/9;
    background: #000;
}

/* Iframe vidéo */
.video-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Bouton fermer */
.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}