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

/**
 * Global header rules
 */

 .main__header {
  position: relative;
  background-image: url("../images/background-header.png");
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  box-shadow: 0 0 1rem rgba(0,0,0,.1);
}
.user-logged-in .main__header {
  top: 50px;
}
.main__header.is-active {
  overflow: scroll;
  height: 100%;
}
.main__header-brand{
  position: relative;
}
.main__header-menu{
  display: none;
}
.main__header-menu.is-active{
  display: block;
  min-height: 100%;
}
@media all and (min-width: 1000px) {
  .main__header {
    position: relative;
    top: initial;
    left: initial;
    right: initial;
    z-index: initial;
    box-shadow: none;
  }
  .user-logged-in .main__header {
    top: initial;
  }
  .main-header__wrapper {
    display: flex;
    margin: 0 auto;
    width: 100%;
    /* height: 160px; */
    width: 1500px;
    justify-content: start;
  }

  .main__header--content {
    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;
    justify-content: center;
  }
  .main__header-menu{
    display: block;
  }
}
/**
 * Branding block
 */
.main__header .site-logo {
  max-width: 220px;
  margin: 0 auto;
  display: block;
  width: 50%;
}
.main__header .block-system-branding-block {
  padding: 10px 0;
}
.main__header .block-system-branding-block img {
  display: block;
  margin: auto;
}
@media all and (min-width: 1000px) {
  .main__header .site-logo {
    max-width: initial;
    margin: 0;
    width: initial;
  }
  .region-header {
    position: relative;
    width: 200px;
  }
  .main__header .block-system-branding-block {
    position: absolute;
    left: 0;
    z-index: 99;
    padding: 10px 0;
  }
  .main__header .block-system-branding-block img {
    max-width: 200px;
    width: 100%;
  }
}
@media all and (min-width: 1200px) {
  .region-header {
    width: 240px;
  }
  .main__header .block-system-branding-block img {
    max-width: 240px;
  }
}

/**
 * Main menu
 */

.region-primary-menu{
  position: absolute;
  left: 0;
  right: 0;
  /* top: 140px; */
}


ul.menu {
  margin: 0;
}
.main__header-menu.is-active .menu--level-0 {
  padding: 1rem 0;
  border-bottom: rgba(0, 140, 159, 0.2) 1px solid;
}

.main__header .menu--level-0 {
  background-image: url("../images/background-header.png");
  background-repeat: repeat;
}
@media all and (min-width: 1000px) {
  .main__header .menu--level-0 {
    background-image: none;

  }
}



.main__header .menu .menu__item a,
.main__header .menu .menu__item a.is-active{
  color: #fff;
  text-decoration: none;
}
.main__header .menu--level-1{
  max-height: 0;
  transition: 0.2s;
  overflow: hidden;
  background-color: #008C9F;
}
.main__header .menu--level-1 .menu__item a,
.main__header .menu--level-1 .menu__item span {
  color: #fff;
}
.main__header .menu .menu__item .menu__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 0;
  font-weight: 500;
}
.menu__item--expanded.is-active .menu--level-1 {
  padding: 1rem 0;
}

@media all and (min-width: 1000px) {
  .region-primary-menu {
    color: #757474;
    position: inherit;
    top: inherit;
  }
  ul.menu.menu--level-0 {
    margin-left: 4rem;
  }
  .main__header-menu.is-active .menu--level-0 {
    padding: inherit;
    border-bottom: none;
  }
  .main__header .menu .menu__item a,
  .main__header .menu .menu__item a.is-active{
    color: #fff;
  }
  .main__header .menu .menu__item .menu__link {
    padding: 0 0.75rem;
    font-size: 0.9rem;
    text-align: left;
    position: relative;
  }
  .main__header .menu .menu__item::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 55px;
    left: 40px;
    right: 100%;
    transition: 0.2s;
    height: 2px;
    background-color: #FFE401;
  }
  .main__header .menu .menu__item:hover::after {
    right: 40px;
  }
  .main__header .menu--level-0 {
    background-color: transparent;
  }
  .main__header .menu--level-0 {
    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;
    justify-content: center;
    align-items: center;
  }
  .main__header .menu--level-0 .menu__item {
    position: relative;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .main__header .menu__item--level-0 {
    max-width: 140px;
  }
  .main__header .menu--level-1{
    height: initial;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    display: none;
    overflow: initial;
    z-index: 1;
  }
  .main__header .menu .menu--level-1 .menu__item {
    height: initial;
    padding: 0.5rem;
  }
  .menu__item--expanded .menu--level-1 {
    max-height: initial;
    position: absolute;
    overflow: initial;
    top: 90px;
    left: -85px;
    right: -85px;
    z-index: 1;
    display: none;
    background-color: #003C44;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    -o-flex-direction: column;
    flex-direction: column;
    justify-content: initial;
    align-items: initial;
    padding: 0.5rem 0;
  }
  .menu__item--expanded:hover .menu--level-1 {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
  }
  /* .main__header .menu.menu--level-0 .menu__item:first-child::after ,
  .main__header .menu.menu--level-0 .menu__item:last-child::after ,
  .main__header .menu.menu--level-1 .menu__item::after {
    content: none;
  } */
  .main__header .menu__item--level-1:hover {
    background-color: #008C9F;
  }
  .main__header .menu.menu--level-1 .menu__item .menu__link {
    justify-content: start;
    text-align: left;
    padding: 0 0.5rem;
  }
  .menu__item--expanded .menu--level-1 a.menu__link,
  .menu__item--expanded .menu--level-1 span.menu__link,
  .main__header .menu--level-1 .menu__item a.is-active{
    color: #fff;
    text-align: left;
    margin: 0;
  }
}
@media all and (min-width: 1250px) {
  .main__header .menu__item--level-0 {
    max-width: initial;
  }
  .main__header .menu .menu__item .menu__link {
    font-size: 1rem;
  }
}
@media all and (min-width: 1350px) {
  .main__header .menu .menu__item .menu__link {
    padding: 0 2.5rem;
  }
}


/**
 * Mobile menu button
 */
.menu-toggle{
  position: absolute;
  left: 1rem;
  top: 50%;
  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:#fff;
  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;
}
.menu-toggle span:nth-child(2) {
  top: 7px;
}
.menu-toggle span:nth-child(3) {
  top: 13px;
}
.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;
  }
}

/**
 * Block telephone number
 */

 .bloc__phone-number{
  background-color: #FFE401;
  position: relative;
  color: #303030;
  text-align: center;

  /* display: block; */
  border-radius: 0;
  margin-left: 0px;
}
.bloc__phone-number span{
  background-color: #FFE401;
  text-align: center;
  padding: 0.2rem 1.2rem 0.2rem 3.3rem;
  display: block;
  border-radius: 0;
}

@media all and (min-width: 1000px) {
  .bloc__phone-number{
    border-radius: 50px;
  }
  .bloc__phone-number span{
    border-radius: 50%;
  }
}

.bloc__phone-number span::before{
  content:url(../images/icons/icon-phone.svg);
  position: relative;
  display: block;
}

@media all and (min-width: 950px) {
  .bloc__phone-number span::before{
    content:url(../images/icons/icon-phone.svg);
    position: absolute;
    left: 10px;
    top: 8px;
  }
}

.bloc__phone-number a{
  color: #303030;
  text-decoration: none;
}

.bloc__phone-number p{
  margin:0;
}

@media screen and (min-width:1000px) {
  .bloc__phone-number{
    position: absolute;
    transform:translateY(-50%);
    right: 30px;
    top: 69px;
  }
}

@media screen and (min-width:1450px) {
  .bloc__phone-number{
    right: 220px;
    top: 69px;
  }
}

/* @media screen and (min-width:1650px) {
  .bloc__phone-number{
    right: 140px;
    top: 69px;
  }
} */
