/* ---------- Header ----------- */
header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: unset;
  z-index: 3;
  background-color: unset;
}

.node--type-home-page header {
    height: 102px;
    background-image: linear-gradient(to top, transparent, rgba(0, 0, 0, 0.5) 87%);
}

.user-logged-in header {
  top: 39px;
}

header.show-background {
  background-color: #15252c !important;
  background-image: unset;
  height: 102px;
}

.path-newsroom header.show-background {
    background-color: unset !important;
}

header.nav-up {
  top: -141px;
}

.user-logged-in header.nav-up {
  top: -102px;
}

#main-wrapper {
  padding-top: 102px;
}

header .navbar-brand {
    color: transparent;
}

header #navbar-main {
  display: none;
}


div.white:not(.preserve-color) svg, div.white:not(.preserve-color) svg path {
  fill: white !important;
  cursor: pointer;
}

div.black:not(.preserve-color) svg, div.black:not(.preserve-color) svg path {
  fill: black !important;
  cursor: pointer;
}

header .field--name-field-header {
  margin-bottom: 0;
}

header #navbar-top {
  background-color: transparent !important;
  padding: 0;
}

.region-top-header, .rte-header {
  width: 100%;
  margin: 0;
}

.rte-header {
  margin: 0px 100px;
  display: block;
  position: relative;
}

.rte-header .left-icon, .rte-header .right-icon {
  z-index: 20;
  position: absolute;
  height: 102px;
  display: flex;
  align-items: center;
}

.rte-header .left-icon {
  left: 0;
}


.rte-header .right-icon {
  right: 0;
  display: flex;
  align-items: center;
  float: right;
  justify-content: space-between;
}
.search-icon.hidden, .search-icon.hidden svg, .search-icon.hidden svg path {
  opacity: 0;
  cursor: auto !important;
  pointer-events: none !important;
}

.rte-header .search-icon {
  margin-right: 40px;
}

.rte-header .right-icon div {
  cursor: pointer;
  position: static;
  position: initial;
}


/* Required to work on IE */
.header-menu2 .menu-item a {
  top: 50%;
  position: absolute;
  transform: translateY(-50%);
}

/* Required to work on IE */
.header-menu2 .menu-item > div {
  left: 0px;
  position: absolute;
}



.rte-header.hide {
  display: none;
}

.rte-logo, .search-icon, .profil-icon, .burger-icon {
  display: inline-block;
}

.search-icon.hidden, .search-icon.hidden svg, .search-icon.hidden svg path {
  opacity: 0;
  cursor: auto !important;
}

.rte-logo img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  min-height: 1px;
}

/* Language */
/*Hide icon to configure bloc language*/
.language .contextual {
  display: none;
}

.language a, .language a:hover {
  color: black;
  font-size: 13px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  color: #10181d;
  text-decoration: none;
}

.language span {
  padding-bottom: 14px;
}

.language span.is-active {
  display: none;
}

body.fr .links span.fr,
body.en .links span.en {
        display: none;
}


@media only screen and (max-width: 1200px) {
  .rte-header {
    margin: 0px 65px;
  }
}


@media only screen and (max-width: 767px) {
  #main-wrapper {
    padding-top: 0;
  }

  .rte-header {
    margin: 0px 15px;
  }


  .user-logged-in header {
    top: 0;
  }

  header.nav-up {
    top: -141px;
  }


  .user-logged-in header.nav-up {
    top: -150px !important;
  }

  .rte-header .left-icon, .rte-header .right-icon {
    height: 90px;
  }
  
  .user-logged-in .rte-header {
      margin-top: 30px;
  }


  .rte-logo svg {
    transform: scale(0.8);
  }
}
