body {
    margin: 0;
    background: #000;
    font-family: Arial, sans-serif;
}

a {
    cursor: pointer;
}

.menu-horizontal {
    position: absolute;
    top: 0px;
    height: 50px;
    left: 0;
    width: 100%;
    transform: none;
    align-items: center;
    z-index: 10;
    box-sizing: border-box;
    display: flex;
    padding: 0 20px;
    &>ul {
        width: 100%;
        justify-content: space-between;
    }
    &>ul>li {
        flex: 1;
        text-align: center;
    }
}

.menu-horizontal>ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-horizontal>ul>li>a {
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.menu-horizontal>ul>li>a:hover {
    opacity: 1;
}

.split {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    /* diagonale par défaut */
    --base-top: 80%;
    --base-bottom: 20%;
    --shift: 0%;
}

.category_container {
    position: absolute;
    inset: 0;
    transition: all 0.5s ease;
    cursor: pointer;
    opacity: 0.5;
}

.category_container:hover {
    opacity: 1;
}


/* panneau gauche / haut */

#stockFootage_container {
    z-index: 1;
    clip-path: polygon( 0 0, calc(var(--base-top) + var(--shift)) 0, calc(var(--base-bottom) + var(--shift)) 100%, 0 100%);
}


/* panneau droit / bas */

#customFootage_container {
    z-index: 0;
    clip-path: polygon( 100% 0, calc(var(--base-top) + var(--shift)) 0, calc(var(--base-bottom) + var(--shift)) 100%, 100% 100%);
}


/* hover stock : la diagonale part vers la droite */

.split:has(#stockFootage_container.inactive:hover) {
    --shift: 5% !important;
}


/* hover custom : la diagonale part vers la gauche */

.split:has(#customFootage_container.inactive:hover) {
    --shift: -5% !important;
}

.category_container-title {
    position: absolute;
    text-align: center;
}

.category_container-title>h1 {
    position: relative;
    color: white;
    text-align: center;
    margin: 0;
    text-transform: uppercase;
}

.category_container-title>p {
    position: relative;
    color: white;
    text-align: center;
    margin: 0;
    text-transform: uppercase;
}

#stockFootage_container>.category_container-title {
    top: 30%;
    left: 20%;
}

#customFootage_container>.category_container-title {
    bottom: 30%;
    right: 20%;
}

iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 100/56.25 = 1.778 (16:9 aspect ratio) */
    min-height: 100vh;
    min-width: 177.78vh;
    /* 16/9 = 1.778 */
    transform: translate(-50%, -50%);
}