.header{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: var(--header-bar-height);
    background: var(--wp--preset--color--theme-blanc);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding-top: 20px;
}
    .header_top{
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        height: 50px;
        padding: 0 30px;
    }
        .header_top-left{
            flex-shrink: 0;
        }
            .header_logo{
            }
                .header_logo img{
                    display: block;
                }
        .header_top-right{
            flex-grow: 1;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-end;
            gap: 30px;
        }
            .header_buttons{
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                gap: 10px 20px;
            }
                .header_button{
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: center;
                    gap: 10px;
                    color: var(--wp--preset--color--theme-noir);
                    cursor: pointer;
                }
                    .header_button-icon{
                        font-size: 24px;
                    }
                    .header_button-label{
                        font-size: 12px;
                        text-transform: uppercase;
                        transition: color .2s ease-in-out;
                    }
                    .header_button:hover .header_button-label,
                    .header_button.active .header_button-label{
                        color: var(--wp--preset--color--theme-gris-1);
                    }
            .header_burger{
                display: none;
                width: 36px;
                height: 26px;
                position: relative;
            }
                .header_burger span {
                    width: 100%;
                    height: 4px;
                    background: var(--wp--preset--color--theme-noir);
                    position: absolute;
                    left: 0;
                    transition: all .2s ease-in-out;
                }
                .header_burger span:nth-child(1) {
                    top: 0;
                }
                .header_burger span:nth-child(2) {
                    top: 50%;
                    transform: translateY(-50%);
                }
                .header_burger span:nth-child(3) {
                    bottom: 0;
                }
    .header_bottom{
        flex-shrink: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 50px;
        padding: 0 30px;
    }
        .header_menu{
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 10px 36px;
        }
            .header_menu-item{
                color: var(--wp--preset--color--theme-noir);
                font-size: 16px;
                letter-spacing: 1px;
                margin-right: -1px;
                text-transform: uppercase;
                transition: color .2s ease-in-out;
            }
            .header_menu-item:hover,
            .header_menu-item.active{
                color: var(--wp--preset--color--theme-gris-1);
            }


@media (min-width: 1025px) {

    .header,
    .header_button,
    .header_logo{
        transition: all .3s ease-in-out
    }

    body.home.top .header{
        height: 170px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
        box-shadow: none;
    }
    body.home.top .header_logo{
        opacity: 0;
    }
    body.home.top .header_button{
        color: var(--wp--preset--color--theme-blanc);
    }
    body.home.top .header_button:hover .header_button-label,
    body.home.top .header_button.active .header_button-label{
        color: var(--wp--preset--color--theme-blanc);
    }
    body.home.top .header_menu-item{
        color: var(--wp--preset--color--theme-blanc);
    }

}

@media (max-width: 1024px) {

    .header{
        padding-top: 0;
    }
    .header_button:not(.open-search){
        display: none;
    }
    .header_burger {
        display: block;
    }
    .header_top{
        flex-grow: 1;
    }
    .header_bottom{
        display: none;
    }

}

@media (max-width: 768px) {

    .header_button-label{
        display: none;
    }

}

@media (max-width: 480px) {

    .header_logo img {
        max-width: 170px;
        height: auto;
    }

}


/* ------------------------------------------------------------------------- */

.popupSearch{
    width: 100%;
    height: calc(100% - var(--header-offset-top));
    position: fixed;
    bottom: 100%;
    left: 0;
    z-index: 20;
    transition: bottom .3s ease-in-out;
}
body.search-opened .popupSearch{
    bottom: 0;
}
    .popupSearch_scrollpane{
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-height: 100%;
        padding: 60px var(--wp--style--root--padding-right) 60px var(--wp--style--root--padding-left);
        overflow: auto;
        position: relative;
        z-index: 2;
    }
        .popupSearch_overlay{
            width: 100%;
            height: calc(100% - var(--header-offset-top));
            background: rgba(0, 0, 0, 0.2);
            opacity: 0;
            position: fixed;
            left: 0;
            bottom: 100%;
            z-index: 1;
            transition: opacity .3s ease-in-out;
        }
        body.search-opened .popupSearch_overlay{
            bottom: 0;
            opacity: 1;
        }
        .popupSearch_caption{
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            width: 100%;
            max-width: 400px;
            padding: 50px 30px 30px 30px;
            background: var(--wp--preset--color--theme-blanc);
            position: relative;
            z-index: 2;
        }
            .popupSearch_close{
                color: var(--wp--preset--color--theme-gris);
                font-size: 14px;
                position: absolute;
                top: 20px;
                right: 20px;
                cursor: pointer;
            }
            .popupSearch_title{
                margin: 0;
                text-align: center;
            }
            .popupSearch_form{
                display: flex;
                flex-direction: row;
                align-items: center;
                width: 100%;
                padding-bottom: 10px;
                border-bottom: 1px solid var(--wp--preset--color--theme-noir);
                margin-bottom: 10px;
            }
                .popupSearch_input{
                    flex-grow: 1;
                    border: 0;
                    font-family: inherit;
                    font-size: 16px;
                }
                .popupSearch_submit{
                    flex-shrink: 0;
                    padding: 0;
                    border: 0;
                    background: none;
                    cursor: pointer;
                }
                    .popupSearch_submit-icon{
                        color: var(--wp--preset--color--theme-noir);
                        font-size: 20px;
                    }

@media (max-width: 1024px) {

    .popupSearch_scrollpane{
        padding-top: 30px;
        padding-bottom: 30px;
    }

}


/* --------------------------------------------------------------------------------------------- */

.menu{
    height: var(--menu-height);
    width: 100%;
    margin-top: var(--menu-offset-top);
    position: fixed;
    right: 0;
    bottom: 100%;
    z-index: 10;
    opacity: 0;
    transition: opacity .3s ease-in-out;
}
body.menu-opened .menu{
    bottom: 0;
    opacity: 1;
}
    .menu_overlay{
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        position: absolute;
        left: 0;
        top: 0;
        z-index: 1;
    }
    .menu_panel{
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 360px;
        height: 100%;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
        background: var(--wp--preset--color--theme-blanc);
        position: absolute;
        top: 0;
        right: -400px;
        z-index: 2;
        transition: right .3s ease-in-out;
    }
    body.menu-opened .menu_panel{
        right: 0;
    }
        .menu_panel-close{
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            height: 26px;
            width: 36px;
            color: var(--wp--preset--color--theme-noir);
            font-size: 24px;
            position: absolute;
            top: 27px;
            right: 30px;
            cursor: pointer;
        }
        .menu_panel-scrollpane{
            width: 100%;
            height: 100%;
            overflow: auto;
        }
            .menu_panel-content{
                display: flex;
                flex-direction: column;
                width: 100%;
                margin-top: var(--header-bar-height);
            }
                .menu_links{
                    display: flex;
                    flex-direction: column;
                    gap: 15px;
                    padding: 0 30px 30px 30px;
                }
                    .menu_link{
                        width: 100%;
                        color: var(--wp--preset--color--theme-noir);
                        font-size: 16px;
                        letter-spacing: 1px;
                        margin-right: -1px;
                        text-transform: uppercase;
                        text-align: left;
                        transition: all .2s ease-in-out;
                    }
                    .menu_link.active{
                        color: var(--wp--preset--color--theme-gris-1);
                    }

@media (min-width: 1441px) {

    .menu{
        display: none !important;
    }

}
