.header {
    position: relative;
    width: 100%;
    z-index: 20;
    background-color: #FFFFFF;
}

.container-header-top {
    background-image: url("/sites/default/themes/rnm_theme/assets/images/background-header-public.png");
    background-position: 0 0;
    background-repeat: no-repeat;
    width: 100%;
    position: relative;
    transition: all 0.3s cubic-bezier(1, 0, 0, 1);
}

body.expert-mode .container-header-top {
    background-image: url("/sites/default/themes/rnm_theme/assets/images/background-header-expert.png");
    background-position: 0 0;
    background-repeat: no-repeat;
    width: 100%;
    position: relative;
    transition: all 0.3s cubic-bezier(1, 0, 0, 1);

}

.region-header > .contentMenu > nav.contextual-region {
    position: static;
}

.language-switcher-language-url > ul > li.is-active {
    display: none;
}

.language-switcher-language-url > ul > li > a > img {
    width: 24px;
}

.language-switcher-language-url > ul > li > a {
    padding: 24px 19px;
}

.language-switcher-language-url > ul {
    align-content: center;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
    justify-content: center;
    line-height: 0;
    width: 100%;
}

@media only screen and (max-width: 569px) {
    .sous-menu {
        display: none;
    }
}

@media only screen and (max-width: 1100px) {
    .container-header-bottom {
        height: 60px;
    }
}

.container-header-bottom .mobile-device {
    height: 60px;
}

@media only screen and (max-width: 769px) {
    .container-header-bottom {
        height: 50px;
    }
}

.container-header-bottom {
    background-color: #FFFFFF;
    height: 50px;
    position: relative;
    text-align: right;
}

@media only screen and (max-width: 1100px) {
    .container-header-bottom {
        height: 60px;
    }
}

.container-header-bottom .mobile-device {
    height: 60px;
}

@media only screen and (max-width: 769px) {
    .container-header-bottom {
        height: 50px;
    }
}

@media only screen and (max-width: 569px) {
    .container-switch-mode {
        padding: 0 10px;
        right: 65px;
    }
}

.container-switch-mode {
    position: relative;
    padding: 0 20px;
    margin-left: 30px;
}

.container-switch-mode:before, .container-switch-mode:after {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    height: 20px;
    width: 1px;
    background-color: #cbcbcb;
}


.container-switch-mode:before .mobile-device, .container-switch-mode:after .mobile-device {
    top: 21px;
}

.container-switch-mode:after {
    left: auto;
    right: 0;
}

li.menu-item.menu-item--expanded::marker {
    display: none;
}

#block-languageswitcher {
    width: 50px;
    flex-wrap: wrap;
    display: flex;
}

#block-languageswitcher > ul > li > a > img {
    width: 25px;
}

#block-languageswitcher > ul {
    align-content: center;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
    justify-content: center;
    line-height: 0;
    width: 100%;
}


@media only screen and (max-width: 1100px) {
    .container-switch-mode .public,
    .container-switch-mode .expert {
        margin: 16px 0 20px;
    }
}

.container-switch-mode .public .mobile-device,
.container-switch-mode .expert .mobile-device {
    margin: 16px 0 20px;
}

@media only screen and (max-width: 769px) {
    .container-switch-mode .public,
    .container-switch-mode .expert {
        margin: 10px 0 20px;

    }
}

@media only screen and (min-width: 569px) {
    .container-switch-mode .public,
    .container-switch-mode .expert {
        margin: 10px 0 20px;
    }
}

@media only screen and (max-width: 569px) {
    .container-switch-mode:before, .container-switch-mode:after {
        content: none;
    }

    .container-switch-mode .public,
    .container-switch-mode .expert {
        margin: 10px 0 20px;
        right: -50px;
    }
}

.container-switch-mode .expert {
    background-color: #966eaa;
}

.container-switch-mode .public.active,
.container-switch-mode .expert.active {
    display: none;
}

.container-switch-mode .switcher {
    position: relative;
    width: 35px;
    height: 10px;
    display: inline-block;
    line-height: 2rem;
}

.container-switch-mode .switcher:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 35px;
    height: 10px;
    border-radius: 5px;
    background-color: #FFFFFF;
    box-shadow: inset 0 0 11px 0 rgba(0, 0, 0, 0.4);
}

.container-switch-mode .switcher:after {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    width: 18px;
    height: 18px;
    background-color: #1cc1c5;
    border-radius: 50%;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
}

.container-switch-mode .switcher.expert-mode:after {
    left: auto;
    right: 0;
    background-color: #966eaa;
}

.container-change-lang {
    position: absolute;
    right: 20px;
    top: 0;
    z-index: 100;
}

@media only screen and (max-width: 769px) {
    .container-change-lang {
        right: 0;
    }
}

.container-change-lang ul {
    margin: 0;
}

.container-change-lang li {
    display: block;
    position: relative;
    z-index: 30;
}

.container-change-lang a {
    padding: 19px;
    display: none;
    background-color: #FFFFFF;
}

@media only screen and (max-width: 1100px) {
    .container-change-lang a {
        padding: 24px 19px;
    }
}

.container-change-lang a .mobile-device {
    padding: 24px 19px;
}

@media only screen and (max-width: 769px) {
    .container-change-lang a {
        padding: 19px;
    }
}

.container-change-lang a.active {
    display: block;
}

.container-change-lang img {
    width: 24px;
    height: auto;
    display: block;
}

#block-rnm-theme-main-menu > ul {

    margin: 0 auto;
    display: flex;
    flex-direction: column;
    width: max-content;
    column-gap: 40px;
}

#block-rnm-theme-main-menu > ul > li > a {
    text-decoration: none;
    color: #666666;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    display: block;
    font-size: 1.3rem;
    line-height: 2rem;
    background-color: #FFFFFF;
}

#block-rnm-theme-main-menu > ul > li.menu-item.menu-item--expanded > ul {

    width: max-content;
    text-align: left;
    text-transform: uppercase;
    font-size: 1.3rem;
    line-height: 2rem;
    background-color: #FFFFFF;
}

#block-rnm-theme-main-menu > ul > li.menu-item.menu-item--expanded.menu-item--active-trail > ul > li.menu-item.menu-item--active-trail > a {
    color: #FFFFFF;
}

#block-rnm-theme-main-menu > ul > li.menu-item.menu-item--expanded.menu-item--active-trail > ul > li.menu-item.menu-item--active-trail {
    background-color: #966eaa;
}


#block-rnm-theme-main-menu > ul > li.menu-item.menu-item--expanded > ul > li.menu-item {
    color: #FFFFFF;
    padding: 15px 30px;
}

#block-rnm-theme-main-menu > ul > li > ul > li {
    text-decoration: none;
    width: 100%;
    color: #666666;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    display: block;
    font-size: 1.3rem;
    line-height: 2rem;
    padding: 15px 10px;
    background-color: #FFFFFF;
}

#block-rnm-theme-main-menu > ul > li,
#block-rnm-theme-main-menu > ul > li.menu-item.menu-item--expanded.menu-item--active-trail {

    text-decoration: none;
    color: #666666;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    display: block;
    font-size: 1.3rem;
    line-height: 2rem;
    padding: 15px 10px;
    background-color: #FFFFFF;

}

ul.menu ul.menu {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

ul.menu > li > ul.menu {
    list-style-type: none;
    display: none;
    opacity: 0;
}

ul.menu > li > ul.menu.open {
    display: flex;
    opacity: 1;
    transform: translate3d(0, 0, 0) !important;
    transition: all 0.3s cubic-bezier(1, 0, 0, 1) 1s;
}

.contentMenu {
    justify-content: center;
    align-items: center;
    display: flex;
}

#header > div.region.region-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    height: 50px;
    align-items: center;
}

#header > div.region.region-header > nav {
    display: flex;
}

#header > div.region.region-header > .contentMenu > nav > ul.displayed {
    display: flex;
    transition: width 2s;
    top: 130px;
}


@media only screen and (max-width: 1100px) {
    #header > div.region.region-header > .contentMenu > nav > ul {
        display: none;
    }

    #header > div.region.region-header > .contentMenu > nav > ul.displayed {
        top: 155px;
        left: 0;
    }

    #header > div.region.region-header > nav {
        margin-left: 15px;
    }

    #header > div.region.region-header {
        justify-content: space-between;
    }
}

@media only screen and (max-width: 769px) {
    #header > div.region.region-header > .contentMenu > nav > ul.displayed {
        top: 130px;
    }
}

@media only screen and (max-width: 568px) {
    #header > div.region.region-header > .contentMenu > nav > ul.displayed {
        top: 116px;
    }
}

#header > div.region.region-header #block-rnmmapswitchmode > .container-switch-mode > button {
    margin: 0;
}

.menu-container {
    display: none;
    position: relative;
    width: 50px;
    height: 50px;
}

ul.menu .mobile-device {
    display: none;
    opacity: 0;
    transform: translate3d(-30%, 0, 0);
    transition: all 0.3s cubic-bezier(1, 0, 0, 1) 1s;
}

ul.menu .mobile-device {
    position: absolute;
    top: 50px;
    padding: 10px 0 20px;
    background-color: #FFFFFF;
}

ul.menu.active .mobile-device {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

ul.menu:after {
    content: none;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.24);
}

@media only screen and (max-width: 1100px) {
    ul.menu:after {
        content: "";
    }
}

#block-rnm-theme-main-menu > ul > li > ul {
    position: absolute;
    top: 50px;
    left: -20px;
    transform: translate3d(0, -10%, 0);
    transition: all 0.3s cubic-bezier(1, 0, 0, 1) 1s;
}

ul.menu:after .mobile-device {
    content: "";
}

ul.menu > li {
    float: left;
    position: relative;
}

@media only screen and (max-width: 1100px) {
    ul.menu > li {
        margin: 0;
        float: none;
        text-align: left;
    }

    ul.menu > li:first-child ul.sous-menu {
        margin: 0;
    }
}

ul.menu > li .mobile-device {
    margin: 0;
    float: none;
    text-align: left;
}

ul.menu > li .mobile-device:first-child ul.sous-menu {
    margin: 0;
}

ul.menu > li a {
    text-decoration: none;
    color: #666666;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    display: block;
    font-size: 1.3rem;
    line-height: 2rem;
    background-color: #FFFFFF;
}

ul.displayed > li > ul.menu > li > a {
    font-weight: 500;
    font-size: 1.3rem;
}

@media only screen and (max-width: 1100px) {
    ul.menu > li a {
        padding: 15px 25px;
        font-size: 1.5rem;
    }

    #block-rnm-theme-main-menu > ul.menu > li a {
        padding: 0 0 5px;
    }
}

ul.menu > li a .mobile-device {
    padding: 15px 25px;
    font-size: 1.5rem;
}

@media only screen and (max-width: 569px) {
    ul.menu > li a {
        padding: 8px 15px;
    }
}

@media screen and (max-width: 1100px) {
    ul.menu > li:before {
        display: none;
    }
}

ul.menu > li:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #966eaa;
    left: 0;
    top: -4px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(1, 0, 0, 1);
}

ul.menu > li.menu-item.menu-item--expanded.menu-item--active-trail:before {
    opacity: 1;
}


@media only screen and (max-width: 1100px) {
    ul.menu > li a:before {
        content: none;
    }
}

ul.menu > li a:before .mobile-device {
    content: none;
}

ul.menu > li a:hover, ul.menu > li a.active {
    color: #966eaa;
}

ul.menu > li a.active:before {
    opacity: 1;
}

ul.sous-menu {
    display: none;
    transform: translate3d(0, -10%, 0);
    z-index: 20;
    position: absolute;
    top: 50px;
    left: 9px;
    margin: 0 -70px 10px;
    opacity: 0;
    min-width: 290px;
    transition: all 0.3s cubic-bezier(1, 0, 0, 1);
}

@media only screen and (max-width: 1100px) {
    ul.sous-menu {
        display: block;
        position: relative;
        transform: translate3d(0, 0, 0);
        opacity: 1;
        margin: 0;
        top: 0;
        left: 0;
    }
}

ul.sous-menu .mobile-device {
    display: block;
    position: relative;
    transform: translate3d(0, 0, 0);
    opacity: 1;
    margin: 0;
    top: 0;
    left: 0;
}


#block-rnm-theme-main-menu > ul > li > ul:after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.24);
}

@media only screen and (max-width: 1100px) {
    ul.sous-menu:after {
        content: none;
    }
}

ul.sous-menu:after .mobile-device {
    content: none;
}

ul.sous-menu.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

ul.sous-menu li a {
    text-align: left;
    text-transform: uppercase;
    font-size: 1.3rem;
    padding: 15px 30px;
    line-height: 2rem;
    background-color: #FFFFFF;
}

@media only screen and (max-width: 569px) {
    ul.sous-menu li a {
        padding: 8px 20px;
    }
}

ul.sous-menu li a:hover {
    color: #966eaa;
}

ul.sous-menu li a.active {
    color: #FFFFFF;
    background-color: #966eaa;
}

#block-rnm-theme-main-menu > ul > li.menu-item.menu-item--expanded.menu-item--active-trail > ul > li > a {
    padding: 4px 20px;
}

@media only screen and (min-width: 1100px) {
    #block-rnm-theme-main-menu > ul {
        justify-content: center;
    }
}

@media screen and (min-width: 1101px) {
    #block-rnm-theme-main-menu > ul {
        flex-direction: row;
        justify-content: center;
    }

}

#header > div.region.region-header > div.menu-container.container-header-bottom > button {
    background-color: transparent;
}


@media only screen and (max-width: 1100px) {
    #block-rnm-theme-main-menu > ul.menu {
        position: absolute;
    }

    #block-rnm-theme-main-menu > ul > li {
        padding: 5px 0 !important;
    }

    .menu-container {
        display: flex;
    }

    #block-rnm-theme-main-menu > ul > li > ul {
        position: relative;
        top: 0;
        left: 0;
        transform: translate3d(0, 0, 0);
    }

    ul.menu > li > ul.menu {
        opacity: 1;
    }

    #block-rnm-theme-main-menu > ul > li > span {
        font-size: 15px;
    }

    #block-rnm-theme-main-menu > ul > li.menu-item.menu-item--expanded > span {
        padding: 0 20px;
    }

    #block-rnm-theme-main-menu > ul > li.menu-item > a {
        font-size: 15px;
        padding-left: 20px;
    }


    #block-rnm-theme-main-menu > ul > li.menu-item.menu-item--expanded > ul > li.menu-item {
        padding: 0 40px;
    }

    #block-rnm-theme-main-menu > ul > li.menu-item.menu-item--expanded.menu-item--active-trail > {
        padding: 0;
        margin: 4px 0;
    }


    #block-rnm-theme-main-menu > ul > li.menu-item.menu-item--expanded.menu-item--active-trail > ul > li.menu-item.menu-item--active-trail {
        color: white;
    }

    #block-rnm-theme-main-menu > ul > li.menu-item.menu-item--expanded.menu-item--active-trail > ul > li.menu-item.menu-item--active-trail > ul > li > a {
        background-color: #966eaa;
    }

    #block-rnm-theme-main-menu > ul > li.menu-item.menu-item--expanded.menu-item--active-trail > ul > li > ul > li {
        padding-top: 5px;
    }

    #block-rnm-theme-main-menu > ul > li > ul {
        padding-top: 5px;
        margin-left: 0;
    }

    ul.menu > li > ul.menu {
        display: flex;
    }

    ul.menu > li > ul.menu:after {
        display: none;
    }

    ul.sous-menu li a.active {

        background: #ffffff;
        background: -moz-linear-gradient(top, #ffffff 0%, #ffffff 25%, #966eaa 25%, #966eaa 75%, #ffffff 75%, #ffffff 75%, #ffffff 100%);
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(25%, #ffffff), color-stop(25%, #966eaa), color-stop(75%, #966eaa), color-stop(75%, #ffffff), color-stop(75%, #ffffff), color-stop(100%, #ffffff));
        background: -webkit-linear-gradient(top, #ffffff 0%, #ffffff 25%, #966eaa 25%, #966eaa 75%, #ffffff 75%, #ffffff 75%, #ffffff 100%);

        background: -o-linear-gradient(top, #ffffff 0%, #ffffff 25%, #966eaa 25%, #966eaa 75%, #ffffff 75%, #ffffff 75%, #ffffff 100%);

        background: -ms-linear-gradient(top, #ffffff 0%, #ffffff 25%, #966eaa 25%, #966eaa 75%, #ffffff 75%, #ffffff 75%, #ffffff 100%);
        background: linear-gradient(to bottom, #ffffff 0%, #ffffff 25%, #966eaa 25%, #966eaa 75%, #ffffff 75%, #ffffff 75%, #ffffff 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ffffff', GradientType=0);
    }
}

ul.sous-menu li a.active .mobile-device {
    background: #ffffff;
    background: -moz-linear-gradient(top, #ffffff 0%, #ffffff 25%, #966eaa 25%, #966eaa 75%, #ffffff 75%, #ffffff 75%, #ffffff 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(25%, #ffffff), color-stop(25%, #966eaa), color-stop(75%, #966eaa), color-stop(75%, #ffffff), color-stop(75%, #ffffff), color-stop(100%, #ffffff));
    background: -webkit-linear-gradient(top, #ffffff 0%, #ffffff 25%, #966eaa 25%, #966eaa 75%, #ffffff 75%, #ffffff 75%, #ffffff 100%);
    background: -o-linear-gradient(top, #ffffff 0%, #ffffff 25%, #966eaa 25%, #966eaa 75%, #ffffff 75%, #ffffff 75%, #ffffff 100%);
    background: -ms-linear-gradient(top, #ffffff 0%, #ffffff 25%, #966eaa 25%, #966eaa 75%, #ffffff 75%, #ffffff 75%, #ffffff 100%);
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 25%, #966eaa 25%, #966eaa 75%, #ffffff 75%, #ffffff 75%, #ffffff 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ffffff', GradientType=0);
}

/** LOGOS **/
body.expert-mode .container-header-top,
.container-header-top {
    background-size: 100% 100px;
    height: 100px;
}

.header .logo {
    float: left;
    text-decoration: none;
    padding: 10px 20px 0;
}

.header .logo img.logo-desktop {
    display: none;
}

.header .logo img.logo-mobile {
    display: block;
}

@media only screen and (min-width: 569px) {
    .header .logo img.logo-desktop {
        display: block;
        width: 435px;
    }

    .header .logo img.logo-mobile {
        display: none;
    }
}


.external-links {
    float: right;
}

.external-links img {
    width: 306px;
    margin-top: -15px;
    margin-right: 10px;
    display: block;
}

@media screen and (max-width: 1100px) {
    .header .logo img.logo-desktop {
        width: 365px;
    }

    body.expert-mode .container-header-top,
    .container-header-top {
        background-size: 100% 94px;
        height: 94px;
    }

    .external-links img {
        width: 265px;
        margin-top: -8px;
        margin-right: 10px;
    }
}

@media screen and (max-width: 769px) {
    .header .logo img.logo-desktop {
        width: 290px;
    }

    body.expert-mode .container-header-top,
    .container-header-top {
        background-size: 100% 86px;
        height: 86px;
    }

    .external-links img {
        width: 235px;
        margin-top: -8px;
        margin-right: 10px;
    }
}

@media screen and (max-width: 569px) {
    .header .logo {
        padding: 10px 10px 0;
    }

    .header .logo img {
        width: 165px;
    }

    body.expert-mode .container-header-top,
    .container-header-top {
        background-size: 100% 80px;
        height: 80px;
    }

    .external-links img {
        width: 220px;
        margin: 0
    }
}

.container-header-top .mobile-device {
    background-size: 100% 100%;
    height: 100px;
}
