/**
 * @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{
  position: relative;
  z-index: 10;
}

/**
 * Branding block
 */
.main__header-inner{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding:0.5rem 0;
  position: relative;
  z-index: 11;
}
.bloc__title-vabre{
  font-size: 2.5em;
  text-transform: uppercase;
  color: white;
  display: inline-block;
  position: relative;
  margin-bottom:1rem;
}
.main__header-logo{
  text-align: center;
}
.bloc__title-vabre p{
  margin: 0;
  line-height: 1.25em;
  color: white;
  font-weight: 700;
  position: relative;
  display: block;
}
/* .bloc__title-vabre p:after {
  position: absolute;
  content: '';
  border-bottom: 4px solid #F0E5D6;
  width: 100%;
  bottom: 0px;
  left: 0px;
} */
.site-logo img{
  width: 89px;
  height: 76px;
}
@media all and (min-width: 1000px) {
  .bloc__title-vabre{
    position: fixed;
    bottom: 145px;
    left: 95px;
    font-size: 5.25em;
    margin-bottom: 0rem;
  }
  .main__header-inner{
    padding:0;
  }
  /* .bloc__title-vabre p:after {
    border-bottom: 8px solid #F0E5D6;
  } */
  .site-logo img{
    width: 178px;
    height: 152px;
  }
}
@media all and (min-width: 1250px) {
  .bloc__title-vabre{
    bottom: 145px;
  }
}
@media all and (min-width: 1500px) {
  .bloc__title-vabre{
    bottom: 145px;
  }
}

/**
 * Main menu
 */

 .menu--main .menu{
  background-color: #FFF;
  margin:0;
  padding:0;
  text-align: center;
  transition: all ease .5s;
}
 .main__header{
  background: url('../images/background-header.png') ;
  background-size: cover;
  background-repeat: no-repeat;
  top: 0;
  background-color: #fff;
  width: 100%;
  z-index:100;
  box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.1);
  transition:all 0.25s;
  -webkit-transition:all 0.25s;
  -moz-transition:all 0.25s;
  -ms-transition:all 0.25s;
  -o-transition:all 0.25s;
}
.main__header ul{
  margin:0;
  padding:0;
}
.main__header-menu{
  display: flex;
  left: -100%;
  width: 100%;
  position: absolute;
  background-color: #fff;
  z-index: 10;
  top:100%;
  overflow-y: hidden;
  transition: all 0.25s;
  -webkit-transition: all 0.25s;
  -moz-transition: all 0.25s;
  -ms-transition: all 0.25s;
  -o-transition: all 0.25s;
}
.main__header-menu.is-active{
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  left:0;
}
.main__header-menu .region-primary-menu {
  height: 100%;
}
.user-logged-in .main__header.is-scrolled{
  top:0;
}
.main__header .menu--level-0{
  padding:1rem 0;
}
.main__header .menu--level-0 > li{
  padding:0.25rem 0;
}
.main__header .menu--level-0 > li > .menu__link{
  color:#222222;
  font-weight: 500;
  padding:0.25rem 0.5rem;
  display: inline-block;
  width: 100%;
}
.main__header .menu--level-1 > li > .menu__link{
  color:#fff;
  padding:0.5rem 1.5rem;
  display: inline-block;
  width: 100%;
  font-size: 1rem;
}
.main__header .menu--level-1 > li > .menu__link:hover{
  font-weight: 600;
}
.main__header .menu--level-1 {
  background-color: #3384CE;
  position: relative;
  max-height: 0;
  overflow: hidden;
  transition: max-height .15s ease-out;
  -webkit-transition: max-height .15s ease-out;
  -moz-transition: max-height .15s ease-out;
  -ms-transition: max-height .15s ease-out;
  -o-transition: max-height .15s ease-out;
}
.region-primary-menu{
  width: 100%;
}
@media all and (min-width: 1000px) {
  .main__header-wrapper{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    transform: translateY(4.5rem);
    -webkit-transform: translateY(4.5rem);
    -moz-transform: translateY(4.5rem);
    -ms-transform: translateY(4.5rem);
    -o-transform: translateY(4.5rem);
}
  .main__header-menu{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: static;
    background-color: transparent;
    overflow: visible;
    order: 2;
    width: inherit;
  }
  .main__header-menu .region-primary-menu{
    overflow: visible;
    height: auto;
  }
  .main__header-menu .menu--level-0{
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    padding:0;
    position: relative;
  }
  .main__header-menu .menu--level-0:before{
    content: '';
    width: 999rem;
    position: absolute;
    left: calc(100% - 999rem);
    height: 100%;
    background-color: #fff;
    box-shadow: 0px 3px 6px 0px rgb(0,0,0,0.2);
  }
  .main__header .menu--level-0 > li{
    padding:0 0.5rem;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .main__header .menu--level-0 > li > .menu__link{
    text-align: center;
    padding:1rem 0.3rem;
    position: relative;
  }

  .main__header .menu--level-1{
    position: absolute;
    left:0;
    top:100%;
    width: 320px;
    padding:0rem 1rem;
    display: none;
    z-index: 999
  }
  .main__header .menu__item--expanded:hover .menu--level-1{
    display: block;
    max-height: inherit;
  }
  .main__header .menu__item--expanded{
    cursor: default;
  }
  .main__header .menu--level-1 > li > .menu__link{
    padding:0.5rem 1rem;
    border-bottom: 1px solid #fff;
  }
  .main__header .menu--level-1 > li:last-child > .menu__link{
    border-bottom: 0px;
  }
  .main__header{
    padding-top:340px;
    margin-bottom:4.5rem;
  }
}

@media all and (min-width: 1250px) {
  .main__header .menu--level-0 > li > .menu__link{
    font-size: 0.85rem;
    padding:1rem 0.75rem;
  }
}
@media all and (min-width: 1500px) {
  .main__header .menu--level-0 > li > .menu__link{
    font-size: 1rem;
    padding:1rem 0.75rem;
  }
}











/**
 * Mobile menu button
 */
.menu-toggle{
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  background-color:#333333;
}
.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:50%;
  top:50%;
  transform: translateY(-50%) translateX(-50%);
  -webkit-transform: translateY(-50%) translateX(-50%);
  -moz-transform: translateY(-50%) translateX(-50%);
  -ms-transform: translateY(-50%) translateX(-50%);
  -o-transform: translateY(-50%) translateX(-50%);
}
.menu-toggle span {
  position: absolute;
  left: 1px;
  display: block;
  width: 20px;
  height: 2px;
  background-color:white;
  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: 1000px) {
  .menu-toggle{
    display: none;
  }
}
