/**
 * @file
 * The header components.
 *
 * It includes styles for the header itself and their
 * component as the logotype or the main menu.
 */

/**
 * Global header rules
 */

 .header__brand{
  position: relative;
}
@media all and (max-width: 1176px){
  .header__menus{
  /* display: none;*/
    position: absolute;
    z-index: 2;
    width: 100%;
    transform: translate(-110%);
    transition: all ease .33s;
  }
  .header__menus.is-active{
  /* display: block; */
    transform: none;
  }
}

.header__menus .menu__item--level-0.menu__item--expanded {
  position: relative;
}
.menu__item--level-0.menu__item--expanded {
  position: relative;
}
.menu__item--level-0.menu__item--expanded::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 4px;
  width: 16px;
  height: 13px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("../images/arrow-right.svg");
}

.header__menus .menu__item--level-0.menu__item--expanded.is-active .menu--level-1{
  /* padding: 1rem; */
  margin-left: 0;
  height: fit-content;
  margin: 20px 0;
}
.header__menus .menu__item--level-0.menu__item--expanded.is-active:after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 4px;
  width: 16px;
  height: 11px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("../images/arrow-down.svg");
}

@media all and (min-width: 1176px){
  .header__menus .menu__item--level-0.menu__item--expanded.is-active:after {
    display: none;
  }
}

.header .menu--level-1{
  height: 0;
  transition: 0.2s;
  overflow: hidden;
}

.menu__link{
  text-decoration: none;
}
.menu--main{
  background-color: var(--main-menu);
}
.menu--main .menu__link{
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
}


.menu--main .menu__item--level-0 > .menu__link{
  /* text-transform: uppercase; */
  display: block;
  transition: 0.3s;
}
.menu--main .menu__item--level-0:hover .menu--level-1{
  display: block;
  /* box-shadow: 0px 3px 6px  rgba(0, 0, 0, .16); */
}

.menu--main .menu__item--level-1 > .menu__link{
  font-weight:600;
  padding: 10px 0;
  position: relative;
  padding-left: 20px;
}

.menu--main .menu__item--level-1 {
  position: relative;
}
.menu--main .menu__item--level-1::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 13px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("../images/arrow-right.svg");
}
.menu--main button.menu__link{
  background: none;
  border: none;
  color: white;
  text-transform: uppercase;
}
.menu--main .menu__item--level-0 > .menu__link:hover{
  background-color: #fff;
  color: #000;
}

.header .block-system-branding-block img {
  display: block;
  /* margin: auto; */
  max-height: 83px;
  width: 169px;
  height: 50px;
  margin-top: 29px;
  margin-bottom: 20px;
  margin-left: 30px;
}

/**
*  Mobile
*/

.menu--main .menu--level-0{
  padding-left: 41px !important;
  padding-bottom: 5px !important;
  margin: -1px 0;
  padding-top: 20px;
  background-color: white;
}
.menu--main .menu--level-0>li:first-child>a {
  display: none;
}

.region-header{
  text-align: center;
  width: fit-content;
}


.menu--main li.menu__item--level-0 {
  margin: 21px 0;
}


  @media(max-width: 1176px){

  .menu__link--img{
    background-image: url("../images/logo_menu.png");
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    text-indent: -9999px;
    height: 106px;
    width: 106px;
  }
}

/**
*  Desktop
*/

@media all and (min-width: 1200px) {
  .header__wrapper {
    display: flex;
    gap: 0;
    margin: 0 auto;
    margin-top: 50px;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #E8E8E8;
  }
  .header__menus{
    display: block;
  }
}

@media(min-width: 1200px){

  .menu--main .menu__item--level-0 > .menu__link {
    position: relative;
    padding: 0.5rem 0;
  }
  .menu--main .menu__item--level-0 > .menu__link:after {
    position: absolute;
    content: "";
    bottom: 2px;
    left: 0;
    width: 0;
    border-bottom: solid 2px #000;
    transition: 0.1s;
  }
  .menu--main .menu__item--level-0:not(:first-child) > .menu__link:hover::after {
    width: 100%;
  }

  .menu--secondary-menu .menu__item--level-0 > .menu__link {
    position: relative;
    padding: 0.5rem 0;
  }
  .menu--secondary-menu .menu__item--level-0 > .menu__link:after {
    position: absolute;
    content: "";
    bottom: 2px;
    left: 0;
    width: 0;
    border-bottom: solid 2px #000;
    transition: 0.1s;
  }
  .menu--secondary-menu .menu__item--level-0 > .menu__link:hover::after {
    width: 100%;
  }


  .menu--main .menu--level-0>li:first-child>a {
    display: inherit;
    position: relative;
    font-size: 0;
    padding: .8rem;
    background: no-repeat url("../images/home.svg");
    margin-top: 1.55rem;
  }

  .header .block-system-branding-block {
    position: relative;
    z-index: 99;
    padding: 0;
  }
  .header .block-system-branding-block img {
    /* position: absolute; */
    /* max-width: 500px; */
    width: 100%;
    display: block;
    /* max-height: inherit; */
  }
  .header{
    position: relative;
  }
  .region-header{
    text-align: inherit;
  }
  .menu--main{
    z-index: 10;
  }
  .header__menus .menu__item--level-0.menu__item--expanded {
    position: static;
  }
  .menu__item--level-0.menu__item--expanded::after {
    content: none;
  }

  .menu--main .menu__item--level-1::before {
    content: none;
  }

  .header .menu--level-1{
    height: inherit;
    transition: 0.2s;
    overflow: inherit;
  }

  .menu--main .menu__link{
    font-size: 0.875rem;
  }
  .menu--level-1 .menu__link{
    font-size: 0.875rem;
    font-weight:400;
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px 1.6rem 10px 1.6rem;
  }
  /* .menu--main .menu__item--level-0 > .menu__link{
    padding: 0 1.375rem;
  } */
  .menu--main .menu--level-0{
    display: flex;
    padding-left: 85px !important;
    justify-content: center;
    margin: 0;
    padding-top: 0;
    flex-direction: row;
  }
  .menu--main .menu__item--level-0{
    transition: 0.3s;
  }

  .site-logo a {
    display: block;
  }

  .site-logo > img{
    margin-top: 19px;
    margin-bottom: 10px;
    padding-left: 17%;
  }
  .menu__link--img{
    background-image: url("../images/logo_menu.png");
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    text-indent: -9999px;
    height: 106px;
    width: 106px;
  }
  .menu--main .menu__item--level-0:hover .menu--level-1{
    position: absolute;
    background-color: var(--main-menu);
    margin: 0;
    z-index: 99;
    background-color: #fff;
  }
  .menu--main .menu--level-1{
    display: none;
  }

  .region-primary-menu .menu__item--level-0 > .menu__link{
    /* padding-top: 1rem;
    padding-bottom: 1rem; */
    margin: 1rem;
    cursor: pointer;
  }
  .region-primary-menu .menu__item--level-1 .menu__link{
    /* padding-top: 1rem;
    padding-bottom: 1rem; */
    padding: 1rem;
    cursor: pointer;
  }


  .menu__item--level-1{
    transition: 0.3s;
  }
  .menu__link--img{
    padding-left: 6rem;
    padding-right: 6rem;
  }

  .menu--main .menu__item--level-1:hover{
    background-color: var(--primary-light-color);
  }

  .menu--main li.menu__item--level-0 {
    margin: 0px;
  }

}




/**
 * Secondary menu
 */

 /* Mobile */
 .region-secondary-menu{
   position: relative;
   background-color: #fff;
   border-top: 1px #D0D0D0 solid;
   border-bottom: 1px #D0D0D0 solid;
 }
.menu--secondary-menu{
  background-color: #fff;
}
.menu--secondary-menu .menu__link{
  color: #000000;
}
.menu--secondary-menu .menu--level-0 {
  display: flex;
  flex-direction: column;
  padding-left: 30px;

}
.menu--secondary-menu li.menu__item--level-0 {
  margin: 0.5rem 0;
}
.menu--secondary-menu .menu__link{
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 500;
}

 /* Desktop */
@media(min-width: 1200px){

  .region-secondary-menu{
    border-top: inherit;
    border-bottom: inherit;
  }
  .menu--secondary-menu{
    background-color: transparent;
    border: none;
    position: absolute;
    top: -135px;
    transform: translateY(-50%);
    right: 27.8rem;
  }
  .menu--secondary-menu .menu--level-0{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    position: absolute;
    align-items: center;
    min-width: 450px;
    margin: 0;
    /* top: -40px; */
    padding-left: 0;
  }
  .menu--secondary-menu li.menu__item--level-0 {
    margin: 0;
    padding: 0 20px;
  }
}

@media(min-width: 1428px){
  .menu--secondary-menu{
    top: -122px;
    transform: translateY(-50%);
  }
}


/**
 * Language Menu
 */


 .block-language {
  background-color: #fff;
  display: flex;
  /* justify-content: center; */
  align-items: center;
  /* border-bottom: #E5E5E5 solid 1px; */
  z-index: 1;
  padding-left: 10px;
}
.language-menu {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  align-items: center;
}
.language-menu ul {
  margin: 0;
  padding: 1rem 2rem 0rem 2rem;
  list-style: none;
  display: flex;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  position: relative;
  justify-content: center;
}
.language-menu li {
  padding: 0.5rem 0.3rem;
}
.language-menu li.is-active {
  background-color: #E0E6EE;
}
.language-menu a{
  visibility: hidden;
  position: relative;
  display: block;
  width: 100%;
  text-decoration: none;
}
.language-menu .fr a::after,
.language-menu .en a::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  display: block;
  visibility: visible;
  content: "";
  height: 20px;
  width: 20px;
  background-image: url("../images/france.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.language-menu .en a::after  {
  background-image: url("../images/uk.svg");
}

@media all and (min-width: 1200px) {
  .block-language {
    background-color: transparent;
    border: none;
    position: absolute;
    top: -122px;
    transform: translateY(-50%);
    right: 28rem;
  }
  .language-menu ul {
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    -o-flex-direction: column;
    flex-direction: column;
    position: relative;
    height: 80px;
    padding: 0;
  }
  .language-menu li {
    padding: 0;
  }
  .language-menu li.is-active {
    background-color: inherit;
  }
  .language-menu .is-active {
    order: 1;
    display: block;
  }
  .language-menu li:not(.is-active) {
    order: 2;
    position: absolute;
    top: 50px;
    padding: 0.5rem 0;
    left: 0;
    right: 0;
    display: none;
    background-color: #E0E6EE;
    z-index: 50;
  }
  .language-menu li:not(.is-active):nth-child(3) {
    top: 120px;
  }
  .language-menu ul:hover li:not(.is-active) {
    display: block;
  }
  .language-menu::after {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    background-image: url('../images/more--black.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
  }
}
@media(min-width: 1428px){
  .block-language {
    top: -109px;
  }
}
/* @media all and (min-width: 1050px) {
  .block-language {
    right: 1rem;
  }
}
@media all and (min-width: 1150px) {
  .block-language {
    right: 1.5rem;
  }
}
@media all and (min-width: 1250px) {
  .block-language {
    right: 2.5rem;
  }
}
@media all and (min-width: 1600px) {
  .block-language {
    right: 24.5rem;
  }
} */



/**
 * Mobile menu button
 */
 .menu-toggle{
  position: absolute;
  right: 1rem;
  top: 50%;
  right : 30px;
  width: 22px;
  height: 16px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
}
.menu-toggle__button{
  border: none;
  width: 22px;
  height: 16px;
  padding: 0;
  text-indent: 100px;
  background-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  z-index:1;
  position: absolute;
  left:0;
  top:0;
}
.menu-toggle span {
  position: absolute;
  left: 1px;
  display: block;
  width: 20px;
  height: 2px;
  background-color:#000;
  transition: all ease .25s;
  -webkit-transition: all ease .25s;
  -moz-transition: all ease .25s;
  -ms-transition: all ease .25s;
  -o-transition: all ease .25s;
  border-radius: 0px;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  -ms-border-radius: 0px;
  -o-border-radius: 0px;
}
.menu-toggle span:nth-child(1) {
  top: 1px;
  /*width:16px;*/
}
.menu-toggle span:nth-child(2) {
  top: 7px;
}
.menu-toggle span:nth-child(3) {
  top: 13px;
  /*width:16px;*/
}
.menu-toggle:hover span:nth-child(1),
.menu-toggle.is-active span:nth-child(1),
.menu-toggle:hover span:nth-child(3),
.menu-toggle.is-active span:nth-child(3){
  width: 20px;
}
.menu-toggle.is-active span:nth-child(1) {
  top: 7px;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
  width: 0;
  left: 22px;
}
.menu-toggle.is-active span:nth-child(3) {
  top: 7px;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
}
@media all and (min-width: 1176px) {
  .menu-toggle{
    display: none;
  }
}

