/**
 * Video Popup Styles - Minimal
 * Personnalisez ces styles selon vos besoins
 */

/* Wrapper caché - Ne prend aucun espace dans la page */
.video-popup-hidden-wrapper {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Classe helper pour réduire l'espace d'une section Divi */
.video-popup-section-hidden {
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Overlay */
.video-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    overflow-y: auto;
    padding: 20px;
    pointer-events: auto;
}

.video-popup-overlay.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Container */
.video-popup-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    padding: 40px 20px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Bouton de fermeture */
.video-popup-close {
    position: absolute;
    top: 0;
    right: 10px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    color: #B49B5D;
    transition: color 0.3s ease;
    z-index: 10;
}

.video-popup-close:hover {
    color: #000;
}

.video-popup-close span {
    display: block;
}

/* Contenu */
.video-popup-content {
    width: 100%;
}

/* Wrapper iframe pour ratio 16:9 */
.video-popup-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Gérer le wrapper FitVids ajouté automatiquement par Divi */
.video-popup-iframe-wrapper .fluid-width-video-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
}

.video-popup-iframe-wrapper iframe,
.video-popup-iframe-wrapper .fluid-width-video-wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* CTA */
.video-popup-cta {
    text-align: center;
    padding-top: 20px;
}

.video-popup-button {
    position: relative;
    display: inline-block;
    font-family: 'IBM Plex Sans',Helvetica,Arial,Lucida,sans-serif;
    padding: 14px 30px;
    background-color: #B49B5D;
    border: 1px solid #B49B5D;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.video-popup-button:hover {
    background-color: #ffffff;
    color: #B49B5D;
}

/*.video-popup-button::before {*/
/*    content: "";*/
/*    width: 30px;*/
/*    background: #ffffff;*/
/*    position: absolute;*/
/*    top: 40px;*/
/*    left: 30px;*/
/*    height: 5px;*/
/*}*/

/*.video-popup-button:hover::before {*/
/*    background: #B49B5D;*/
/*}*/

/* Responsive */
@media (max-width: 768px) {
    .video-popup-container {
        max-width: 95%;
        padding: 30px 15px 15px;
    }

    .video-popup-close {
        width: 35px;
        height: 35px;
        font-size: 28px;
    }

    .video-popup-button {
        padding: 10px 25px;
        font-size: 14px;
    }
}
