/**
 * @file
 *
 * EDSbase : Feuille de style dédiée à la région Header.
 *
 */

#page-header {
  /*position: fixed;*/
  position: static;
  top: 0px;
  width: 100%;
  background-color: #fff;
  -webkit-box-shadow: 0 15px 25px -5px rgba(100,100,100,.2);
  box-shadow: 0 15px 25px -5px rgba(100,100,100,.2);
  z-index: 1120;
}
#page-header ul.menu a {
  text-decoration: none;
}

/*** MENU SITES ***/

#page-header #menu-sites ul.menu {
  float: right;
  border: 2px solid #232425;
}
#page-header #menu-sites ul.menu li {
  float: left;
}
#page-header #menu-sites ul.menu li a {
  display: block;
  position: relative;
  padding: 15px 20px;
  line-height: 1;
  border-right: solid 1px #666;
  background-color: #232425;
  font-family: 'soleil-semibold';
  color: #ffffff;
}
#page-header #menu-sites ul.menu li.last a {
  border-right: none;
}
#page-header #menu-sites ul.menu li a:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 10px;
  background-color: transparent;
}
#page-header #menu-sites ul.menu li a:hover,
body:not(.node.edit):not(.node.add) #page-header #menu-sites ul.menu li.active-trail a {
  background-color: #ffffff;
  color: #232425;
}
#page-header #menu-sites ul.menu li.active-trail a:hover {
  /*cursor: default;*/
}
#page-header #menu-sites ul.menu li.active-trail a:after {
  background-repeat: no-repeat;
  background-position: center top;
  background-image: url('../images/header/fleche-sites.svg');
}
#page-header #menu-sites ul.menu li.menu-item--leschampslibres a {
  padding-left: 50px;
  background-repeat: no-repeat;
  background-position: 20px center;
  background-image: url('../images/header/lcl-blanc.svg');
}
#page-header #menu-sites ul.menu li.menu-item--leschampslibres a:hover {
  background-image: url('../images/header/lcl-noir.svg');
}

/*** LOGOS ***/

#logos {
  position: relative;
  float: left;
  margin-top: 12px;
}
a#logo {
  position: absolute;
}
#page-header.mini-header a#logo {
  top: 3px;
}
a#logo img {
  display: block;
  transition: all .5s ease-in-out;
}
a#logo img.logo-grand {
  height: 170px;
  width: 118px;
  -webkit-box-shadow: 5px 5px 12px 1px rgba(0,0,0,.15);
  box-shadow: 5px 5px 12px 1px rgba(0,0,0,.15);
}
#page-header.mini-header a#logo img.logo-grand {
  height: 0;
  width: 0;
  visibility: hidden;
  opacity: 0;
}
a#logo img.logo-petit {
  height: 0;
  width: 0;
  visibility: hidden;
  opacity: 0;
}
#page-header.mini-header a#logo img.logo-petit {
  visibility: visible;
  opacity: 1;
  height: 75px;
  width: 75px;
}

/*** MENU PRINCIPAL ***/

#page-header #menu-principal {
  float: left;
  padding-top: 55px;
}
#page-header #menu-principal ul.menu li.level-0 {
  position: relative;
  float: left;
  margin-right: 25px;
}
#page-header #menu-principal ul.menu li.level-0.last {
  margin-right: 0px;
}
#menu-principal ul.menu li.level-0 > a {
  display: block;
  font-family: 'soleil-semibold';
  font-size: 1.15em;
}
#page-header #menu-principal ul.menu li.level-0 > a:after {
  content: '';
  display: block;
  padding-top: 23px;
  border-bottom: solid 4px #232425;
  transform: scaleX(0);
  transition: transform 250ms ease-in-out;
  transform-origin:100% 50%
}
#page-header #menu-principal ul.menu li.level-0:hover > a:after,
#page-header #menu-principal ul.menu li.level-0.active-trail > a:after {
  transform: scaleX(1);
  transform-origin:50% 50%;
}
#page-header #menu-principal ul.menu.level-1 {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  padding: 7px 20px 12px 20px;
  background-color: #ffffff;
  border-radius: 0 0 10px 10px;
  -webkit-box-shadow: 0 0 15px 0 rgba(0,0,0,.2);
  box-shadow: 0 0 15px 0 rgba(0,0,0,.2);
  z-index: 1001;
}
#page-header #menu-principal ul.menu.level-1 li {
  padding: 8px 0;
}
#page-header #menu-principal ul.menu.level-1 li a {
  line-height: 1;
  white-space: nowrap;
  font-family: 'soleil-semibold';
}
#page-header #menu-principal ul.menu.level-1 li a:hover,
#page-header #menu-principal ul.menu.level-1 li.active-trail a {
  border-bottom: 1px solid #232425;
}

/*** MENU SECONDAIRE ***/

#menu-secondaire {
  float: left;
  margin-left: 50px;
}
#menu-secondaire ul.menu li.level-0 {
  float: left;
}
#menu-secondaire ul.menu li.level-0.menu-item--r {
  padding-right: 15px;
  border-right: 1px solid #232425;
}
#menu-secondaire ul.menu li.level-0.last {
  margin-left: 15px;
}
#menu-secondaire ul.menu li a {
  text-decoration: none;
}
#menu-secondaire ul.menu li.level-0 > a {
  display: block;
}
#menu-secondaire ul.menu li.level-0.menu-item--r > a {
  width: 24px;
  height: 24px;
  font-size: 0px;
  color: transparent;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 24px 24px;
  background-image: url('../images/header/rechercher.svg');
}
#menu-secondaire ul.menu.level-1 {
  display: none;
  position: absolute;
  overflow: hidden;
  padding: 7px 20px 12px 20px;
  background-color: #ffffff;
  border-radius: 0 0 10px 10px;
  -webkit-box-shadow: 0 0 15px 0 rgba(0,0,0,.2);
  box-shadow: 0 0 15px 0 rgba(0,0,0,.2);
  z-index: 1001;
}
#menu-secondaire ul.menu.level-1 li {
  padding: 8px 0;
}
#menu-secondaire ul.menu.level-1 li a {
  line-height: 1;
  white-space: nowrap;
  font-family: 'soleil-semibold';
}
#menu-secondaire ul.menu.level-1 li a:hover {
  border-bottom: 1px solid #232425;
}

/*** MENU RWD ***/

#menu-rwd {
  display: none;
  position: fixed;
  overflow-y: auto;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1110;
  background-color: #fff;
}

/*--------- <= 1180px ---------*/

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

  /*** MENU SITES ***/

  #menu-sites.mini-header {
    display: block !important;
  }

  /*** LOGO ***/

  #logo-menu-edsp {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  #logos {
    margin-top: 3px;
  }
  a#logo img.logo-grand {
    width: 65px;
    height: 93px;
  }
  #page-header.mini-header a#logo img.logo-petit {
    width: 42px;
    height: 42px;
  }
  #page-header.mini-header a#logo {
    top: 0;
  }

  /*** NAVMOB ***/

  #navmob {
    position: relative;
    float: right;
    margin-top: 11px;
    margin-bottom: 11px;
    width: 28px;
    height: 24px;
  }
  #navmob:hover {
    cursor: pointer;
  }
  #navmob .bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #222938;
    -webkit-transition: all 0.3s ease-in 0s;
    -moz-transition: all 0.3s ease-in 0s;
    -o-transition: all 0.3s ease-in 0s;
    transition: all 0.3s ease-in 0s;
  }
  #navmob .bar-1 {
    top: 0;
  }
  #navmob .bar-2 {
    top: 42%;
  }
  #navmob .bar-3 {
    bottom: 0;
  }
  #navmob.on .bar-1 {
    top: 50%;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  #navmob.on .bar-2 {
    display: none;
  }
  #navmob.on .bar-3 {
    top: 50%;
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  /*** MENU RWD ***/

  #menu-rwd {
    padding-top: 20px;
  }
  #menu-rwd > div > nav {
    float: none;
  }

  /* Menu secondaire */

  #menu-rwd #menu-secondaire {
    margin-left: 0;
    padding-top: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
  }
  #menu-rwd #menu-secondaire > div {
    margin: 0 auto;
    width: 40%;
  }
  #menu-rwd #menu-secondaire > div > ul.menu {
    float: right;
  }
  #menu-rwd #menu-secondaire ul.menu li.level-0.expanded {
    position: relative;
  }

  /* Menu principal */

  #menu-rwd #menu-principal {
    clear: both;
  }
  #menu-rwd #menu-principal li.level-0 {
    float: none;
    border-bottom: 2px solid #f0f0f0;
  }
  #menu-rwd #menu-principal li.level-0:hover,
  #menu-rwd #menu-principal li.level-0.active-trail {
    background-color: #f0f0f0;
  }
  #menu-rwd #menu-principal li.level-0.expanded.on {
    border-bottom: none;
  }
  #menu-rwd #menu-principal li a {
    display: block;
    margin: 0 auto;
    padding-bottom: 0;
    width: 40%;
    line-height: 1;
    text-decoration: none;
  }
  #menu-rwd #menu-principal li.level-0 > a {
    padding: 15px 0;
  }
  #menu-rwd #menu-principal li.level-0.expanded > a {
    background-position: right center;
    background-size: 20px 20px;
    background-repeat: no-repeat;
  }
  #menu-rwd #menu-principal li.level-0.expanded.off > a {
    background-image: url('../images/header/fleche-menu-bas-noir.svg');
  }
  #menu-rwd #menu-principal li.level-0.expanded.on > a {
    background-image: url('../images/header/fleche-menu-haut-noir.svg');
  }
  #menu-rwd #menu-principal ul.level-1 {
    display: none;
    position: static;
    background-color: #f0f0f0;
  }
  #menu-rwd #menu-principal li.level-1 {
    padding: 12px 0px;
    border-bottom: 2px solid #fff;
  }
  #menu-rwd #menu-principal li.level-1.last {
    border-bottom: none;
  }
  #menu-rwd #menu-principal li.level-1 a {
    padding-left: 2%;
    line-height: 1;
    font-family: 'soleil-semibold';
  }
  #menu-rwd #menu-principal li.level-1:hover,
  #menu-rwd #menu-principal li.level-1.active-trail {
    background-color: #222938;
  }
  #menu-rwd #menu-principal li.level-1:hover a,
  #menu-rwd #menu-principal li.level-1.active-trail a {
    color: #fff;
  }

  /* Menu sites */

  #menu-rwd #menu-sites {
    padding: 0px;
  }
  #menu-rwd #menu-sites li {
    padding: 15px 0px;
    background-color: #232425;
    border-bottom: 2px solid #ffffff;
  }
  #menu-rwd #menu-sites li:hover,
  body:not(.node.edit):not(.node.add) #menu-rwd #menu-sites li.active-trail {
    background-color: #42464a;
  }
  #menu-rwd #menu-sites li a {
    display: block;
    margin: 0 auto;
    padding-left: 120px;
    width: 40%;
    line-height: 60px;
    background-repeat: no-repeat;
    text-decoration: none;
    font-family: 'soleil-semibold';
    font-size: 1.15em;
    color: #ffffff;
  }
  #menu-rwd #menu-sites li.menu-item--rennes a {
    background-position: left center;
    background-image: url('../images/footer/menus/rennes.svg');
  }
  #menu-rwd #menu-sites li.menu-item--morlaix a {
    background-position: 5px center;
    background-image: url('../images/footer/menus/morlaix.svg');
  }
  #menu-rwd #menu-sites li.menu-item--chez-vous a {
    background-position: 10px center;
    background-image: url('../images/footer/menus/chez-vous.svg');
  }
  #menu-rwd #menu-sites li.menu-item--leschampslibres a {
    background-position: 30px center;
    background-image: url('../images/header/lcl-blanc.svg');
  }

}

/*--------- <= 800px ---------*/

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

  #menu-rwd #menu-principal li a,
  #menu-rwd #menu-sites li a {
    width: 50%;
  }

}

/*--------- <= 620px ---------*/

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

  #menu-rwd #menu-principal li a,
  #menu-rwd #menu-sites li a {
    width: 60%;
  }

}

/*--------- <= 480px ---------*/

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

  #menu-rwd #menu-principal li a,
  #menu-rwd #menu-sites li a {
    width: 70%;
  }

}

/*--------- <= 420px ---------*/

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

  #menu-rwd #menu-principal li a,
  #menu-rwd #menu-sites li a {
    width: 90%;
  }

}

