/**
 * @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 {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: center;
}


/**
 * Branding block
 */
 .site-logo img {
    height: 106px;
    width: 184px;
}


/**
 * Main menu
 */


/**
 * Site Main Nav
 */

/**
 * Main menu
 */
 
 .region-header {
	width: 184px;
    position: absolute;
	left: 1rem;
	top: 0;
 }
 
 .site-heading__menu {
	width: 100%;
    padding-left: 184px;
 }
 
.region-header,
.region-primary-menu {
	padding: 1rem 0;
}

#block-enviroforesterie-branding { 
	margin-bottom: 1rem;
}
.region.region-primary-menu { 
	margin: 1.5rem 0 0;
	color: #1f1f1f;
	font-size: 1rem;
	font-weight: bold;
 }
 
.region.region-primary-menu ul.menu--level-0 {  
 	display: inline-block;
}	
 
 .region.region-primary-menu a { 
	color: #1f1f1f;
	padding: .7rem .6rem;
	display: block;
 }
 
  .menu__item--level-0 span,
  .menu__item--level-1 span {
  transition: all 0.25s ease-in-out;
  -webkit-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  padding: .7rem .6rem;
  display: block;
  }
 
 .menu__item--level-0 a:active, 
 .menu__item--level-0 span:active,
 .menu__item--level-0 a:hover,
 .menu__item--level-0 span:hover,
.menu__item--level-0.menu__item--active-trail span { 
	color: #6a9f0f;
 }
 .menu__item--level-1 a:active, 
 .menu__item--level-1 span:active,
 .menu__item--level-1 a:hover,
 .menu__item--level-1 span:hover { 
	color: #fff;
 }
 
header .menu__item--level-0 {
    float: left;
    border-right: solid 1px #ccc;
}
 .menu__item--level-0:last-child {
    padding-right: 0;
    border-right: 0;
}

.menu__item--level-0 {
	position: relative;
	cursor: pointer;
}

.site-heading__menu .submenu-active{
  display: block;
}
.menu--level-1{
  margin:0;
  background-color:#6a9f0f;
  display: none;
}
.site-heading__menu .menu__item--level-1{
  text-align: left;
  min-width: 250px;
}
.site-heading__menu .menu__item--level-1 a{
  color:#ffffff;
  display: block;
  font-size:1rem;
  text-transform: none;
  font-weight: normal;
  padding:0.8em 1.4rem;
  border-bottom:1px solid #94bd4e;
}
.site-heading__menu .menu__item--level-1 a:hover {
background: #eb901b;
}	

.site-heading__menu .menu__item--level-1:last-child a{
  border:none;
}
.site-heading__menu .menu__item--level-1.menu__item--active-trail > a{
  background:#eb901b;
  color: white;
}

ul.menu a.is-active {color: #6a9f0f;}

.region-image-header {
  position: relative;
}

#block-enviroforesterie-page-title {
position: absolute;
top: 11rem;
left: 50%;
transform: translateX(-50%);
padding: 2.6rem;
color: white;
background: rgba(0, 0, 0, 0.4);
font-weight: 800;
line-height: 1.2;
max-width: 1000px;
min-width: 540px;
}

.path-frontpage h1, h1.page-title {
text-transform: none;
margin: 0;	
}	

.path-frontpage #block-enviroforesterie-page-title {
padding: 3rem 4.8rem	
}	

.views-field-field-image-header img {width: 100%;}

.field--name-field-paragraphe-img-unique-100 {text-align: center;}
.field--name-field-paragraphe-img-unique-100 img {margin: 0 auto;}


@media screen and (min-width: 700px){
  .site-heading__menu .region-primary-menu{
    /* display: block; */
    max-height:inherit;
    overflow-y:visible;
  }
   .site-heading__menu .submenu-active{
    display: none;
  }
	.menu--level-1 {
		display: none;
		position: absolute;
		left: 0;
		top:100%;
		z-index: 5;
		background-color:#6a9f0f;
	}
	.menu__item--level-0:hover .menu--level-1 {
		display: block;
	}
}

@media screen and (max-width: 700px) {
	header {
	  display: block;
	}
	.region-header {
	  margin: 0 auto;
	  width: 100%;
	  padding-bottom: 0;
	}
	.site-logo img {
	  margin: 0 auto;
	  display: block;
	}
	.site-heading__menu {
	  text-align: center;
	}
	.site-heading__menu .region-primary-menu{
	  display: none;
	}
	.region.region-primary-menu {
	  margin-top: 0;
	}
	.menu__item--level-0 {
	  display: block;
	  padding: .7rem .85rem;
	  border-right: none;
	  height: auto;
	}
	.site-heading__menu .region-primary-menu.is-active{
	  display: block;
	}
	ul.menu,
	ul.menu .menu--level-1 {
	  margin-left: 0;
	}
	.menu__item.menu__item--level-1:hover {
      background-color: #94bd4e;
	}
	.site-heading__menu .menu__item--level-1 a{
	  font-size:1rem;
	  padding:0.7em 1.4rem;
	}
}


/**
 * Site Main Nav RESPONSIVE
 */
.menu-toggle{
  line-height:0;
  margin:1em;
  display: inline-block;
}
.menu-toggle__button{
  height:25px;
  width:40px;
    padding: 0;
    line-height:0;
    text-indent: -999em;
    background-color: transparent;
    border: none;
    text-align: center;
    position: relative;
}
@media screen and (min-width: 700px) {
  .menu-toggle{
    display: none;
  } 
}
/*
=== Button bar & animation ===
*/
.menu-toggle__bar{
  position: absolute;
  width:40px;
  height:4px;
  background-color:#6a9f0f;
  display: block;
  -webkit-transition: all ease .25s;
  -o-transition: all ease .25s;
  transition: all ease .25s;
}
.menu-toggle__bar:first-child {
  top: 0%;
}
.menu-toggle__bar:nth-child(2) { 
top: 50%;
transform: translateY(-50%);
}
.menu-toggle__bar:last-child {
  bottom: 0;
}
.is-active .menu-toggle__bar {
  opacity: 0; /* The central bar is not visible if button is active */
}
.is-active .menu-toggle__bar:first-child,
.is-active .menu-toggle__bar:last-child {
  /* If the button is active, the burger icon is turning into a cross icon */
  top: 45%;
  opacity: 1;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}
.is-active .menu-toggle__bar:last-child {
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

