/* -------------------------------- image d'en-tête --------- */
/* positionnement image : image au-dessus */
body.position_one .site-header {
  padding-bottom: 0;
}
body.position_one #masthead .header-bar {
  position: absolute;
  right: 0;
}
body.position_one #ae-custom-header .header-image-wrap {
  position: relative;
}
body.position_one #ae-custom-header .header-image-wrap:before {
  background: -moz-linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0.3) 100%);
  background: -webkit-linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0.3) 100%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0.3) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00000000", endColorstr="#4d000000", GradientType=0);
  content: "";
  display: block;
  height: calc(100% - 10px);
  left: 0;
  position: absolute;
  right: 0;
  z-index: 2;
}
body.position_one #ae-custom-header .header-image-wrap img {
  width: 100%;
  min-height: 200px;
}
body.position_one #masthead .ae-site-branding-container {
  z-index: 888;
  position: absolute;
  top: -170px;
  width: calc(100% - 120px - 1rem);
}
body.position_one #theme_unil_logo {
  filter: grayscale(100%) brightness(100);
  position: absolute;
  top: -165px;
  z-index: 999;
}
body.position_one #masthead .ae-site-branding .site-title a,
body.position_one #masthead .ae-site-branding .site-description {
  color: #fff;
  font-size: 180%;
  display: block;
}
body.position_one #masthead .ae-site-branding .site-description:before {
  content: "";
  margin: 0;
}
body.position_one #masthead #ae-social-navigation a {
  color: #fff;
}
body.position_one #masthead #ae-site-navigation {
  border-bottom: 1px solid rgba(0, 0, 0, .3);
}

@media only screen and (max-width: 768px) {
  body.position_one #ae-custom-header {
    display: block;
    margin-left: -1rem;
    width: calc(100% + 1rem);
  }
  body.position_one #masthead .ae-site-branding .site-description {
    font-size: 1rem;
  }
  body.position_one #masthead .ae-site-branding-container {
    width: calc(100% - 2rem);
  }
}
@media only screen and (max-width: 468px) {
  body.position_one #masthead .ae-site-branding .site-description {
    display: none;
  }
}

body.position_one #ae-menuinterne .form-group select {
  background-color: transparent;
  color: #0073aa;
}


/* positionnement image : image au-milieu */
body.position_two #masthead {
  padding-bottom: 0;
}

body.position_two .ae-site-branding-container {
  padding-bottom: 8px;
}
body.position_two #ae-custom-header .header-image-wrap img {
  width: 100%;
}

body:not(.home).position_two #ae-custom-header .header-image-wrap {
  max-height: 20vh;
}

body.position_two #masthead #ae-site-navigation .main-menu>li:first-child {
  padding-left: 0;
}

@media only screen and (max-width: 768px) {
  body.position_two #ae-custom-header {
    display: block;
    margin-left: -1rem;
    width: calc(100% + 1rem);
  }
}



/* positionnement image : image au-dessous */
body.position_three #masthead {
  padding-bottom: 0;
}
/*body.position_three #masthead #ae-site-navigation {
  margin-top: -10px;
}*/
body.position_three #masthead #ae-site-navigation .main-menu>li:first-child {
  padding-left: 0;
}
body.position_three #ae-custom-header {
  display: block;
}
body.position_three #ae-custom-header .header-image-wrap img {
  width: 100%;
}
@media only screen and (min-width: 768px) {
  body.position_three #ae-custom-header {
    margin-left: 120px;
    margin-right: calc(10% + 60px);
  }
}






/* positionnement image : pas d'image du site */
body.position_none #masthead .site-featured-image:before {
  background: -moz-linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0.3) 100%);
  background: -webkit-linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0.3) 100%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0.3) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00000000", endColorstr="#4d000000", GradientType=0);
  bottom: 0;
  content: "";
  display: block;
  height: 100%;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 2;
}
body.position_none #masthead #ae-site-navigation {
  /*margin-top: -10px;*/
}
body.position_none #masthead #site-navigation {
  background-color: #444;
}
@media only screen and (max-width: 768px) {
  body.position_none #masthead #ae-site-navigation .main-menu li a {
    padding: 0 15px;
  }
}
body.position_none #masthead #site-navigation li a {
  color: #fff;
  font-weight: normal;
}
body.position_none #masthead #site-navigation li:hover a {
  color: #0073aa;
}
body.position_none #masthead #site-navigation li.current-menu-item {
  background-color: rgba(255, 255, 255, .3);
}

body:not(.home).position_none .site-featured-image .post-thumbnail img.wp-post-image {
  display: block;
  position: fixed !important;
  height: calc(500px + 2rem);
  min-height: 0;
}
body:not(.home).position_none .site-featured-image .post-thumbnail img:not(.wp-post-image) {
  display: none;
}

body:not(.home).position_none #masthead.featured-image {
  height: 500px;
  min-height: 0;
  padding-bottom: 3rem;
}

body:not(.home).position_none #page>.site-header>.site-branding-container,
body:not(.home).position_none #page>.site-content,
body:not(.home).position_none #page>.site-footer {
  background-color: white;
  position: relative;
  z-index: 999;
}
body:not(.home).position_none #page>.site-header>.site-branding-container {
  z-index: 1000;
}
body:not(.home).position_none .site-header.featured-image {
  margin-bottom: 0;
}

body:not(.home).position_none .site-header.featured-image .site-featured-image .entry-header {
  margin-top: 0;
  margin-bottom: 3%;
}
body:not(.home).position_none .site-header.featured-image .site-featured-image .entry-title {
  font-size: 6vw !important;
}





/* positionnement image : aucune image */
body.position_hidden #main>article:first-child .entry-header {
  margin-top: 1rem;
}
body.position_hidden #masthead #site-navigation {
  background-color: #444;
}
@media only screen and (max-width: 768px) {
  body.position_hidden #masthead #ae-site-navigation .main-menu li a {
    padding: 0 15px;
  }
}
body.position_hidden #masthead #site-navigation li a {
  color: #fff;
  font-weight: normal;
}
body.position_hidden #masthead #site-navigation li:hover a {
  color: #0073aa;
}
body.position_hidden #masthead #site-navigation li.current-menu-item {
  background-color: rgba(255, 255, 255, .3);
}

body.singular.position_hidden #masthead,
body.error404.position_hidden #masthead {
  padding-bottom: 0;
}



/* ----------- image d'en-tête dans les articles single --------- */
body:not(.home) #masthead.site-header.featured-image {
  text-shadow: none;
}
body:not(.home) #masthead.site-header.featured-image:after {
  display: none;
}
body:not(.home):not(.position_none) .site-featured-image:after {
  display: none;
}
body:not(.home):not(.position_none) .site-featured-image .post-thumbnail {
  display: none;
}
body:not(.home):not(.position_none) .featured-image .site-branding-container:after {
  display: none;
}


/* affichage du titre de l'article */
body.single:not(.position_none) #masthead .entry-meta {
  color: #111;
}


/* ----------- image d'en-tête dans les pages singular --------- */
body.singular:not(.position_none) h1 {
  color: #034f74 !important;
}
body.singular:not(.position_none) .site-header.featured-image {
  min-height: 0;
}
body.singular:not(.position_none) .site-header.featured-image .entry-header {
  margin-top: 0px;
}