@import url('https://fonts.googleapis.com/css2?family=Titillium+Web&display=swap');

header {
    width: 100%;
}

.menu-active {
    height: 100vh;
    overflow: hidden;
    position: fixed;
    width: 100vw;
}

.menu {
    display: block;
    width: 100%;
    min-height: 50px;
    max-height: auto;
    margin: 0 0 30px 0;
    text-align: center;
}

.menu p {
    font-family: 'Titillium Web';
    font-weight: 400;
}

.menu-discover {
    background-color: rgba(29, 29, 29, 1);
    border-radius: 0;
    width: auto;
}

.menu-icon {
    width: 30px;
    height: 30px;
}

.menu-icon .menu-icon-label,
.menu-icon .menu-icon-label::before,
.menu-icon .menu-icon-label::after {
    background: white;
    content: '';
    display: block;
    height: 2px;
    position: absolute;
    transition: background ease .2s, top ease .2s .2s, transform ease .2s;
    width: 20px;
}

.menu-icon:hover .menu-icon-label,
.menu-icon:hover .menu-icon-label::before,
.menu-icon:hover .menu-icon-label::after {
    background: white;
}

.menu-icon .menu-icon-label {
    top: 20px;
}

.menu-icon .menu-icon-label::before {
    top: -6px;
}

.menu-icon .menu-icon-label::after {
    top: 6px;
}

#toggle-menu:checked+.menu-icon .menu-icon-label {
    background: transparent;
}

#toggle-menu:checked+.menu-icon .menu-icon-label::before {
    transform: rotate(45deg);
}

#toggle-menu:checked+.menu-icon .menu-icon-label::after {
    transform: rotate(-45deg);
}

#toggle-menu:checked+.menu-icon .menu-icon-label::before,
#toggle-menu:checked+.menu-icon .menu-icon-label::after {
    top: 0;
    transition: top ease .3s, transform ease .3s .3s;
}

@media only screen and (max-width : 1230px) {
    header {
        max-height: 50px;
        position: fixed;
        top: 0;
        z-index: 4;
    }

    .menu-discover {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 3;
        transition: bottom 1s;
    }

    .menu-link,
    .menu-sub-link {
        background-color: #101014;
        display: flex;
        align-items: center;
        margin: 10px;
        border-radius: 15px;
    }

    .menu-sub-link {
        min-height: 40px;
        max-height: 500px;
        display: block;
    }

    .menu-link {
        height: 40px;
    }

    .menu-sub-links {
        width: 100%;
    }

    .menu-link p,
    .menu-sublink-p {
        text-align: left;
        display: flex;
        margin: auto 10px;
        width: 100%;
    }

    .menu-sub-links p {
        margin: 10px;
        border-radius: 15px;
        text-align: center;
        display: flex;
        padding: 0 0 0 20px;
    }

    .menu-sub-link-a {
        display: flex;
        align-items: center;
        width: 100%;
        height: 40px;
    }

    .menu-sub-link-a p {
        padding: 0 10px;
    }

    .menu-links {
        height: 0;
        transition: height .5s ease-in-out;
        overflow: hidden;
        display: block;
    }

    .menu-open {
        display: flex;
        align-items: center;
        justify-content: right;
        padding: 10px;
    }

    .menu-open-mobile {
        display: block;
        border: none;
        background: transparent;
    }

    .menu-sub-link:focus-within .menu-sub-links {
        display: block;
        max-height: 1500px;
        padding: 5px 0;
    }

    #toggle-menu {
        display: none;
    }

    .menu-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .menu-icon .menu-icon-label {
        top: auto;
    }

    .menu-discover:has(#toggle-menu:checked) .menu-links {
        height: 90vh;
        overflow: auto;
    }

    .menu-discover:has(#toggle-menu:checked) {
        bottom: 0;
        position: fixed;
    }
}


@media only screen and (min-width: 1200px) {
    header {
        position: fixed;
        z-index: 100000;
        top: 0;
    }

    .menu-open {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }
}

/* ORDINATEUR */

.menu-open p {
    margin: 0 0 0 20px;
    font-size: 20px;
}

.menu-open img {
    width: 30px;
    display: flex;
    margin: 0 10px 0 auto;
}

.menu-links {
    justify-content: center;
    align-items: center;
    width: auto;
}

.menu-sub-link {
    position: relative;
}

.menu-sub-link p,
.menu-link {
    cursor: pointer;
}

.menu-links p {
    text-wrap: nowrap;
}

.menu-links p:hover {
    color: #c4c4c4;
}

#menu-is-actived,
.menuPageIsEnabled {
    color: #c4c4c4;
}

.menu-sub-links {
    margin: 0 auto;
    display: none;
}

.menu-link img {
    width: 40px;
}

@media only screen and (min-width : 1230px) {
    .menu {
        display: block;
        width: 100%;
        margin: 0;
        /* margin: 0 0 30px 0; */
    }

    .menu-discover {
        background-color: #1d1d1d;
        border-radius: 0;
        width: auto;
    }

    #toggle-menu {
        display: none;
    }

    .menu-open {
        display: none;
    }

    .menu-links {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        overflow-y: unset;
    }

    .menu-sub-link {
        position: relative;
    }

    .menu-sub-link p,
    .menu-link {
        cursor: pointer;
    }

    .menu-links p:hover {
        color: #c4c4c4;
    }

    #menu-is-actived,
    .menuPageIsEnabled {
        color: #c4c4c4;
    }

    .menu-sub-links {
        position: absolute;
        z-index: 1000;
        display: none;
        border-radius: 10px;
        top: 100%;
        width: auto;
        background-color: #1d1d1d;
        box-shadow: 0 0 0 2px #141414;
    }

    .menu-sub-link:hover .menu-sub-links {
        display: block;
        max-height: 50vh;
    }

    .menu-sub-links p {
        display: flex;
        text-align: left;
        margin: 10px 5px;
        min-height: 20px;
        min-width: 150px;
    }

    .menu-link,
    .menu-sub-link {
        margin: 0 10px;
    }

    .menu-link img {
        width: 40px;
    }
}