.btnmenu {
    position: fixed;
    left: 0;
    top: 20px;
    cursor: pointer;
    background-color: #15384c;
    width: 90px;
    height: 60px;
    z-index: 60;
}

.btnmenu__title {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: rotate(-90deg);
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    margin: -7px 0px 0px -30px;
    width: 60px;
    color: #fcefb1;
    text-transform: uppercase;
    text-align: center;
    transition: left .3s;
}

.btnmenu__bar {
    position: absolute;
    left: 33px;
    width: 47px;
    height: 8px;
    transition: top .3s, transform .3s;
    z-index: 1;
    transform-origin: 50% 50%;
}

.btnmenu__bar--1 {
    background-color: #fcefb1;
    top: 11px;
}

.btnmenu__bar--2 {
    background-color: #c4e0f2;
    top: 26px;
    z-index: 0;
}

.btnmenu__bar--3 {
    background-color: #fcefb1;
    top: 41px;
}

#mainmenu__bg {
    position: fixed;
    left: 0;
    top: 0px;
    width: 100%;
    height: 100%;
    background: rgba(196, 224, 242, .6);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.mainmenu__container {
    position: fixed;
    left: 0;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: #15384c;
    z-index: 55;
    -webkit-clip-path: polygon(0% -30%, 0% -30%, 33% -30%, 33% -30%, 33% 0%, 66% 0%, 66% 0%, 66% -50%, 100% -50%, 100% -50%);
    clip-path: polygon(0% -30%, 0% -30%, 33% -30%, 33% -30%, 33% 0%, 66% 0%, 66% 0%, 66% -50%, 100% -50%, 100% -50%);
    transform: translateZ(0);
    will-change: transform;
    
    transition: clip-path .7s, -webkit-clip-path .7s;
}

.mainmenu__logo {
    position: absolute;
    top: 30px;
    right: 40px;
}

.mainmenu__logo svg {
    height: 40px;
    width: auto;
}

.mainmenu__logo svg path {
    fill: #fcefb1;
}

.mainmenu__key {
    position: absolute;
    right: 12px;
    bottom: 0;
    width: 102px;
    height: 101px;
    background: url(../img/menukey.png) right bottom no-repeat;
}

.mainmenu__scroller {
    position: absolute;
    left: 0;
    top: 100px;
    bottom: 0px;
    overflow-y: auto;
    padding: 20px 0;
    color: #fcefb1;
    width: 100%;
    overscroll-behavior: contain;
}

.mainmenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mainmenu a {
    display: block;
    color: #fcefb1;
    -webkit-text-stroke: 5px #15384c;
    font-size: 3.6rem;
    line-height: 4rem;
    paint-order: stroke fill;
    padding: 10px 40px;
    transition: color .2s;
    transform: translateZ(0);
}

.mainmenu .current_page_item a, .nottouchdevice .mainmenu a:hover {
    color: #c4e0f2;
}

/* MENU OUVERT */

.menuopened #mainmenu__bg {
    opacity: 1;
    visibility: visible;
}
.menuopened .btnmenu__title {
    left: -60px;
}
.menuopened .btnmenu__bar--1, .menuopened .btnmenu__bar--3 {
    top: 26px;
    transform: rotate(-45deg);
}
.menuopened .btnmenu__bar--2 {
    transform: rotate(45deg);
}

.menuopened .mainmenu__container {
    -webkit-clip-path: polygon(0% 0%, 0% 100%, 33% 100%, 33% 0%, 33% 100%, 66% 100%, 66% 0%, 66% 100%, 100% 100%, 100% 0%);
    clip-path: polygon(0% 0%, 0% 100%, 33% 100%, 33% 0%, 33% 100%, 66% 100%, 66% 0%, 66% 100%, 100% 100%, 100% 0%);
}

body.menuopened {
    overflow: hidden;
}

/* CSS SAFARI HACK*/

@supports (-webkit-hyphens: none) {
    .mainmenu__container {
        -webkit-clip-path: none;
        clip-path: none;
        top: -100%;
        will-change: top;
        transition: top .4s;
    }

    .menuopened .mainmenu__container {
        -webkit-clip-path: none;
        clip-path: none;
        top: 0px;
    }
}

@media screen and (min-width:640px) {
    .mainmenu__container {
        max-width: 400px;
    }
}