/* homevideo.css v1.1 - Vidéo pleine largeur sous la navigation */

#homevideo-wrapper {
    width: 100%;
    margin: 0 0 20px 0;
    padding: 0;
}

/* Ratio 340/1800 = 18.889% — même technique que la v1 */
#homevideo-screen {
    position: relative;
    width: 100%;
    padding-top: 18.889%;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
}

/* Vidéo positionnée en absolu dans le ratio */
#homevideo-screen video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: 20px;
    /* transition douce au changement */
    opacity: 0;
    transition: opacity 0.4s ease;
}

#homevideo-screen video.hv-visible {
    opacity: 1;
}

/* Overlay lien cliquable */
#homevideo-screen .hv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 2;
    border-radius: 20px;
    background: transparent;
    text-decoration: none;
}

/* Overlay sans lien (pointer-events désactivés) */
#homevideo-screen .hv-overlay-nolink {
    pointer-events: none;
    cursor: default;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    #homevideo-screen {
        padding-top: 25%;
        border-radius: 12px;
    }
    #homevideo-screen video,
    #homevideo-screen .hv-overlay {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    #homevideo-screen {
        padding-top: 32%;
        border-radius: 8px;
    }
    #homevideo-screen video,
    #homevideo-screen .hv-overlay {
        border-radius: 8px;
    }
}
