/**
 * @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;
  }
}
@media all and (min-width: 1177px) {
  .header__menus{
    display: block;
  }
}
.menu__link{
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
}
.menu--main{
  background-color: var(--primary);
}
.menu--main .menu__link{
  color: var(--white);
  font-weight: 600;
}
.menu--account{
  background-color: var(--white);
}
.menu--account .menu__link{
  color: var(--secondary);
}
.menu--main .menu__item--level-0 > .menu__link{
  display: block;
  transition: 0.3s;
}
.menu--main .menu__item--level-0 > span.menu__link{
  cursor: default;
}
.menu--main .menu__item--level-0 a.menu__link.is-active{
  color: var(--white);
  text-decoration: underline;
}
.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:hover{
  background-color: var(--secondary);
}
.menu--main button.menu__link{
  background: none;
  border: none;
  color: var(--white);
  text-transform: uppercase;
}
.menu--main .menu__item--level-0 > .menu__link:hover{
  background-color: var(--secondary);
}

/**
*  Mobile
*/

.region-header{
  text-align: center;
}
.site-logo {
  display: block;
  padding: 0.5rem 0;
  height: 85px;
  width: fit-content;
}
  .site-logo img{
    width: 250px;
    margin-top: 15px;
    margin-bottom: 8px;
  }


@media(max-width: 1176px){
  .menu--main .menu__link,
  .menu--main button{
    font-size: 20px;
    /* font-weight: 400; */
    padding: 0;
  }
  .menu--main li.menu__item--level-0 {
    padding-bottom: 15px;
  }
  .menu__item--level-1 > .menu__link{
    font-size: 1rem;
    font-weight:300;
  }
  .menu--main .menu--level-0{
    padding-left: 41px !important;
    padding-bottom: 5px !important;
    margin: 0px;
    padding-top: 20px;
  }
  #block-peyregoux-branding{
    text-align: center;
  }
  .menu--account{
    box-shadow: 0px 3px 6px  rgba(0, 0, 0, .16);
  }
  .menu--account .menu--level-0 {
    /* display: flex; */
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin: 0;
  }
  .menu--account .menu__item--level-0:nth-child(2) {
    border-left: 1px solid #D5D5D5;
    border-right: 1px solid #D5D5D5;
    flex-basis: 100%;
    text-align: center;
  }
  .menu--account .menu__item--level-0:first-child{
    flex-basis: 100%;
    text-align: center;
  }
  .menu--account .menu__link{
    font-size: 16px;
    font-weight: 700;
  }
  .menu--account .menu > li:first-child > a{
    display: inline-block;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2.5rem;
}


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

  .menu--account .menu__item--level-0{
    padding-bottom: 0.2em;
  }
}

@media(max-width:352px){
  .menu--account .menu__item--level-0:nth-child(2) > .menu__link {
    padding-left: 9em;
  }
}

/**
*  Desktop
*/

@media(min-width: 1177px){
  .header{
    position: relative;
  }
  .region-header{
    text-align: inherit;
  }
  .menu--main{
    z-index: 10;
  }
  .menu--account{
    position: absolute;
    top: 5px;
    padding-left: 65%;
  }
  .menu--main .menu__link{
    font-size: 1.125rem;
    font-family: 'Poppins';
  }
  .menu--level-1 .menu__link{
    font-size: 18px;
    font-weight:400;
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px 1.6rem 10px 1.6rem;
  }

  .menu--main .menu--level-0{
    display: flex;
    justify-content: center;
    margin: 0;
    flex-direction: row;
  }
  .menu--main .menu__item--level-0{
    transition: 0.3s;
  }
  .menu--main{
    box-shadow: 0px 3px 6px  rgba(0, 0, 0, .16);
  }
  .menu--account .menu--level-0{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    position: absolute;
    align-items: center;
    border-left: 1px solid #D5D5D5;
    border-right: 1px solid #D5D5D5;
    /* width: 394px; */
    margin: 0;
  }
  .site-logo {
    display: block;
    padding: 1.5rem 0;
    height: 111px;
    width: fit-content;
  }
  .site-logo img{
    width: inherit;
    margin-top: inherit;
    margin-bottom: inherit;
  }
  .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--account .menu__item--level-0:first-child{
    text-align: center;
  }
  .menu--account .menu__link{
    font-weight: 700 !important;
    font-size: 16px !important;
  }
  .menu--account .menu__item--level-0:nth-child(2){
    border-left: 1px solid #D5D5D5;
    flex-basis: 100%;
    text-align: center;
  }
  .menu--account .menu__item--level-0:first-child{
    flex-basis: 100%;
    text-align: center;
  }
  .menu--main .menu__item--level-0:hover .menu--level-1{
    position: absolute;
    background-color: var(--primary);
    margin: 0;
    z-index: 99;
  }
  .menu--main .menu--level-1{
    display: none;

  }
  .menu--account .menu > li:first-child > a{
    display: block;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.8em 3em;
  }
  .menu--account .menu > li{
    transition: 0.3s;
  }
  .menu--account .menu > li a:hover{
    color: white;
  }
  .menu--account .menu > li:hover{
    background-color: var(--secondary);
  }
  .region-primary-menu .menu__item--level-0 .menu__link{
    /* padding-top: 1rem;
    padding-bottom: 1rem; */
    padding: 1rem 1.375rem;
  }
  .menu__item--level-1{
    transition: 0.3s;
  }
  .menu__link--img{
    padding-left: 6rem;
    padding-right: 6rem;
  }
}




/**
 * Mobile menu button
 */
 .menu-toggle{
  position: absolute;
  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;
  }
}


.menu--account .menu__item--level-0:nth-child(2){
  border-left: 1px solid #D5D5D5;
  border-right: 1px solid #D5D5D5;
  flex-basis: 100%;
  text-align: center;
}

.menu__link--img-pnrhl {
  background-image: url(../images/logo_menu_pnrhl.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  text-indent: -9999px;
  height: 100px;
  width: 100%;
}

@media (max-width: 1176px) {
    .menu--account .menu__item--level-0:nth-child(2) {
      border-top: 1px solid #D5D5D5;
      border-bottom: 1px solid #D5D5D5;
      border-left: unset;
      border-right: unset;
      padding: 1rem 0;
    }
    .menu--account .menu__item--level-0:nth-child(3) {
      padding: 1.5rem 0;
    }
}