/**
 * Styles pour la popup vidéo
 */
 .tfto-video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.tfto-video-popup-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tfto-video-popup-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    background-color: #000;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.tfto-video-popup-overlay.active .tfto-video-popup-container {
    transform: scale(1);
}

.tfto-video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.tfto-video-responsive iframe,
.tfto-video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.tfto-close-popup {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    z-index: 10;
    transition: transform 0.2s ease;
}

.tfto-close-popup:hover {
    transform: scale(1.1);
}

/* Styles responsive */
@media (max-width: 767px) {
    .tfto-video-popup-container {
        width: 95%;
    }
    
    .tfto-close-popup {
        top: -35px;
        right: 0;
    }
}

/* Indique visuellement les liens popup */
a[data-video-popup="true"]::after {
    content: "\1F3AC"; /* Emoji caméra 🎬 */
    display: inline-block;
    margin-left: 5px;
    font-size: 0.9em;
}