/* ----------- GENERAL HEADER ----------- */
.mobile {
    display: none;
}
header {
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    height: 5svh;
    width: 96svw;
    margin-block: 1svh;
    padding-inline: 2svw;
    display: flex;
    justify-content: space-between;
    align-items: center;

    a.logo{
        height: 5svh;
        img {
            height: 100%;
        }
    }

    div.menu_burger {
        z-index: 1001;
        position: relative;
        height: 5svh;
        width: 4svh;
    }

    div.menu_burger label {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: flex-end; /* <- aligne les span à droite */
        height: 100%;
        width: 100%;
        cursor: pointer;
    }

    div.menu_burger label span {
        background-color: white;
        height: 4px;
        border-radius: 2px;
        display: block;
        transition: all 150ms;
    }

    span.first_tab {
        width: 100%;
    }

    span.second_tab {
        width: 66%;
    }

    span.third_tab {
        width: 33%;
    }

    div.menu_burger input {
        display: none;
    }

    /* ----------- MENU ----------- */
    menu{
        transition: all 150ms;
    }
}

/* ----------- MENU BURGER BASE ----------- */


/* ----------- MOBILE VIEWPORT ----------- */
@media screen and (max-width: 768px) {
    .mobile {
        display: block;
    }
    header{
        width: 80svw !important;
        padding-inline: 10svw;
        menu{
            position: fixed;
            left: 0;
            width: 100svw;
            flex-direction: column;
            gap: 8px;
            backdrop-filter: blur(30px);
            border-radius: 0 0 16px 16px;
            li {
                text-align: center;
                margin: 1rem 0;
            }
        }
    }
    header:has(input:not(:checked)) menu {
        top: -100%;
    }

    header:has(input:checked) {
        .mobile {
            span {
                transform-origin: 0 0;
                width: 3svh;
            }

            span.first_tab {
                transform: rotate(45deg);
            }

            span.second_tab {
                transform: rotate(-45deg);
            }

            span.third_tab {
                opacity: 0;
                display: none;
            }
        }

        menu {
            top: 0;
        }
    }
}
