﻿
/* MENU DESIGN */

.menu-wrapper .widget-title {
    display:none;
}

.menu-socials , .menu-languages {
    height:100%;
}

.menu-wrapper .menu-socials a:before{
    font-size:1.8rem;
    padding:0.5rem;
}

.homeLink {
    width:100%;
}

.webtitleBlock {
    font-size:2.5rem;
    margin:0 0.5rem;
    font-weight: 500;
    line-height: 55px;
}

#menu .menu-socials a {
    display:inline-flex;
    margin:0 0.5rem;
    min-width: 40px !important;
    font-size:1.5rem;
}
#menu .menu-languages a {
    display:inline-flex;
    margin:0 0.5rem;
    min-width: 40px !important;
    font-size:1.5rem;
}

#menu .languageBlock  {
    margin-left:1.2rem;
}


.menu-navigation-container {
    width:100%;
}

#footer-sidebar2 .widget_text p {
    font-size:1rem;
}

.icon-menu::before {
    content:'\e9bf';
    float:right;
    font-size:2rem;
    font-weight: 300;
}

.menu-link.active .icon-menu::before {
    content:'\e9c0';
    float:right;
    font-size:2rem;
    font-weight: 300;
}

.ico-caret-down::before {
    float:right;
    font-size:1.5rem;
    font-weight: 900;
}

#menu {
    height:100%;
    -webkit-font-smoothing: antialiased;
font-smoothing: subpixel-antialiased;
}


.sub-menu {
    min-width:250px;
    z-index: 999;
}

.socialBlock , .languageBlock , .webtitleDescription , .webtitleBlock {
    text-align: center;
    display: flex;
    justify-content: center;
    text-decoration: none;
    height: inherit;
}


.menu-line {
    display:flex;
    min-height: 55px;
}

#menu ul {
    margin: 0;
    padding: 0;
}
#primary-menu{
    width:100%;
    height:100%;
    font-size: 1.15rem;
}
#primary-menu a{
    font-size:1.35rem;
}

#menu li {
    margin: 0;
    text-align: center;
    justify-content: center;
    align-items: stretch;
    height:100%;
}

.menu-wrapper {
    width: 100%;
    z-index: 999;
}


.menu-wrapper .menu {
    text-align:left;
    margin: 0;
    padding-left: 0;
    list-style: none;
    width: 100%;
}

.menu-wrapper .menu > li {
    position: relative;
    display: inline-block;
}

.menu-link {
    line-height:60px;
}

.menu-wrapper a.menu-link {
    display: none;
}

.menu-wrapper a, .menu-wrapper a:visited,.menu-wrapper a:active,.menu-wrapper a:focus  {
  display: inline-flex; /* contexte sur le parent */
  flex-direction: column; /* direction d'affichage verticale */
  justify-content: center; /* alignement vertical */
  text-decoration: none;
  height:100%;
  min-height: 55px;
}

.menu-wrapper a:hover {
    transition: all 0.5s;
}

.menu-wrapper .menu > .current-menu-item > a,
.menu-wrapper .menu > .current-menu-ancestor > a {
    position: relative;
    z-index: 12;
}

.menu-wrapper ul a {
    text-align: center;
    padding:0 1.5rem;
}

.menu-wrapper .menu-item-has-children:after {
    content: "\ea3e";
    width: 20px;
    position: absolute;
    right: 5px;
    opacity: 0.8;
    background: none;
    z-index: 15;
    pointer-events: none;
    font-family: 'icomoon';
    position: absolute; /* postulat de départ */
    top: 50%;  /* à 50%/50% du parent référent */
    transform: translateY(-50%); /* décalage de 50% de sa propre taille */
}


.menu-wrapper .menu-item-has-children {
    border-bottom: 1px solid transparent;
}

.menu-wrapper .menu-item-has-children:hover {
    background: none;
}

.menu-wrapper .menu-item-has-children a {
    width: 100%;
    padding-right: 30px;
}

.menu-wrapper .sub-menu {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    position: absolute;
    left: 0;
    width: 100%;
    max-height: 0em;
    overflow: hidden;
    list-style: none outside none;
    text-align: left;
    text-transform: none;
    z-index: 99;
}

.menu-wrapper .sub-menu li {
    display: block;
}


.menu-wrapper .sub-menu a {
    font-weight: 400;
    font-size: 1.15rem !important;
    padding: 0.5rem;
    white-space: initial;
    line-height: 1.2rem;
    margin: 0;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    padding: 0.7rem 0 0.7rem 1.5rem;
    text-align: left;
}




.menu-wrapper li:hover .sub-menu {
    max-height: 100vh;
    transition: max-height 0.5s;
/*    overflow-y: auto;*/
}


/* Responsive Menu */

@media screen and (max-width: 1023px) {
    
   
    .socialBlock , .languageBlock,.language-chooser-item a  {
        text-transform: uppercase;
        font-size:1.2rem;
        min-height: 45px;
    }
    
    .menu-line {
    height:auto;
    width:100%;
}
    
.menu-wrapper a, .menu-wrapper a:visited,.menu-wrapper a:active,.menu-wrapper a:focus  {
    height:auto;
}
    
#menu li {
    height: auto;
}
    
    
    .menu-wrapper .sub-menu li,
    .menu-wrapper .sub-menu li a {
        line-height: 3rem;
    }
    .js .menu-wrapper nav[role=navigation] {
        overflow: hidden;
        max-height: 0em;
    }
    .menu-item-has-children:after {
        display: none;
    }
    .js .menu-wrapper nav[role=navigation].active {
        max-height: 100%;
        transition: max-height 0.5s ease-out;
    }
    .menu-wrapper {
        /* unhide the 2nd level */
        /* styling the toggle menu */
        /* arrow to indicate that we have subnav*/
    }
    .menu-wrapper a.menu-link {
        display: block;
        width: auto;
        padding-right: 15px;
        padding-left: 10px;
        margin: 0;
        height: 100%;
    }
        .menu-wrapper a.menu-link .ico-caret-down:before {
        content: "\03a7";
    }
    .menu-wrapper a.menu-link.active .ico-caret-down:before {
        content: "\03a7";
    }
    .menu-wrapper .menu .menu {
        padding-bottom: 5px;
    }
    .menu-wrapper .menu li {
        display: block;
    }
    .menu-wrapper .menu > li {
        padding: 0px;
    }
    .menu-wrapper .menu a {
        margin: 0px;
        width: 100%;
    }
    .menu-wrapper .menu .rightalign {
        float: none;
    }
    .menu-wrapper li + li a:before {
        content: "";
    }
    .menu-wrapper li:hover .sub-menu {
        max-height: 0em;
        transition: none;
    }
    .menu-wrapper .sub-menu {
        background: none;
        margin-left: 0px;
        margin-top: 1px;
        display: block;
        width: 100%;
    }
    .menu-wrapper .sub-menu li,
    .menu-wrapper .sub-menu li a {
        margin: 0;
        display: block;
        width: 100%;
    }
    .menu-wrapper .sub-menu a {
        padding-top: 1em;
        padding-bottom: 1em;
        padding-left: 0.8em;
    }
    .menu-wrapper .sub-menu a:hover {
        padding-top: 1em;
        padding-bottom: 1em;
        padding-left: 0.8em;
    }
    .menu-wrapper .sub-menu li:last-child {
        padding: 0;
    }
    .menu-wrapper .menu .menu-item-has-children {
        position: relative;
        display: block;
    }
    .menu-wrapper li .sub-menu.active {
        max-height: 30em;
        overflow: visible;
        position: relative;
        z-index: 9;
        transition: max-height 0.5s ease-out;
    }
    .menu-wrapper .toggle-link {
        z-index: 999;
        height: 50px;
        width: 50px;
        display: block;
        position: absolute;
        right: 0px;
        z-index: 200;
        cursor: pointer;
        speak: none;
        font-style: normal;
        line-height: 1;
        text-align: center;
        -webkit-font-smoothing: antialiased;
    }
    .menu-wrapper .toggle-link:hover {
        transition: all 0.2s;
    } 
    


    .menu-wrapper .menu .menu-item-has-children > .toggle-link:before {
        line-height: 50px;
        position: absolute;
        font-size: 1.5rem;
        width: 100%;
        height: 100%;
        right: 0;
    }
    .menu-wrapper .menu .menu-item-has-children > .toggle-link.active:before {
        content: '\ea0f';
    }
}

    .menu-navigation-container span:before {
        display:none;
    }


   .qtranxs_widget ul li {
                text-transform: uppercase;
       font-weight: bold;
    }
@media screen and (max-width: 1023px) {
    
    
    .qtranxs_widget ul li {
        display:block !important;
    }

    .menu-navigation-container span:before {
        display:block ;
    }
    
    .menu-block-left , .menu-block-right{
        width:100%;
    }
    
    
    }

@media screen and (max-width: 768px) {

#footer-sidebar2 .widget_text {
    width:100%;

}
    
    
    }
