.navbar {
  margin: 0;
}

.mobile-menu {
  display: none;
}

.nav > li {
  position: static;
}

.top-navbar {
  margin-bottom: 0;
  background-color: #fafafa;
}

.top-navbar .social-menu {
  margin-left: 25px;
}

.social-menu .urb-icon {
  font-size: 12px;
}

.social-menu .fas {
  font-size: 10px;
}

.navbar-right .urb-icon {
  color: var(--main-color);
}

.top-navbar .navbar-collapse {
  display: flex !important;
  justify-content: flex-end;
}

.top-navbar .navbar-right > li > a {
  padding-left: 30px;
  padding-right: 30px;
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:focus,
.navbar-default .navbar-nav>.active>a:hover {
  background-color: transparent;
}

.navbar-default .navbar-collapse,
.navbar-default{
  border-color: #f8f8f8;
}

#navbar-top-menu {
  padding-right: 0;
  background-color: #fafafa;
}

.bottom-navbar {
  padding: 20px 0;
  background-color: #ffffff;
  z-index: 10;
}

.footer-links .navbar-nav li a,
.bottom-navbar.navbar-default .navbar-nav > li > a {
  position: relative;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--lighter-black);
  /*padding: 25px 20px;*/
  padding: 25px 16px; /* since d9*/
}

.footer-links .navbar-nav li .active a:focus,
.footer-links .navbar-nav li .active a:focus,
.footer-links .navbar-nav li a:focus {
  background: transparent;
}

.footer-links .navbar-nav li .active a,
.footer-links .navbar-nav li .active a:hover,
.footer-links .navbar-nav li a:hover,
.bottom-navbar.navbar-default .navbar-nav .active > a,
.bottom-navbar.navbar-default .navbar-nav .active > a:hover,
.bottom-navbar.navbar-default .navbar-nav > li:hover > a,
.navbar-default .navbar-nav a:focus,
.navbar-default .navbar-nav a:hover,
.navbar-default .navbar-nav>.active>a{
  color: var(--main-color) !important;
  background-color: transparent;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -ms-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

/*
.footer-links .navbar-nav li a:hover::before,
.bottom-navbar.navbar-default .navbar-nav > li:hover > a::before,
.navbar-default .navbar-nav a.hover-icon:focus::before,
.navbar-default .navbar-nav a.hover-icon:hover::before
*/

.footer-links .navbar-nav li .active a::before,
.footer-links .navbar-nav li .active a:hover::before,
.bottom-navbar.navbar-default .navbar-nav > .active > a::before,
.bottom-navbar.navbar-default .navbar-nav > .active > a:hover::before,
.navbar-default .navbar-nav>.active>a::before,
.navbar-default .navbar-nav>.active>a:focus::before,
.navbar-default .navbar-nav>.active>a:hover::before {
  font-family: 'urbalyon';
  content: "\e905";
  font-size: 12px;
  color: var(--main-color);
  position: absolute;
  left: 0;
  top: 15px;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -ms-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  transition: all 0.4s ease;
  -webkit-transform: rotate(30deg);
  -ms-transform: rotate(30deg);
  transform: rotate(30deg);
}

.footer-links .navbar-nav li .active a::before,
.footer-links .navbar-nav li .active a:hover::before,
.footer-links .navbar-nav li a:hover::before,
.bottom-navbar.navbar-default .navbar-nav > .active > a::before,
.bottom-navbar.navbar-default .navbar-nav > .active > a:hover::before,
.bottom-navbar.navbar-default .navbar-nav > li:hover > a::before {
  top: 25px;
}

.bottom-navbar .container-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  max-width: 90%;
}

.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  padding: 40px 0 75px 0;
  display: none;
  min-height: 100%;
  background-color: var(--white-two);
  -webkit-box-shadow: 0px 13px 22px -11px rgba(0,0,0,0.28);
  -moz-box-shadow: 0px 13px 22px -11px rgba(0,0,0,0.28);
  box-shadow: 0px 13px 22px -11px rgba(0,0,0,0.28);
  z-index: 10;
}

#navbar-menu > ul > li:hover .mega-menu {
  display: block;
}

.mega-menu ul {
  list-style:none;
  margin: 0;
  padding: 0;
}

.mega-menu .sub-menu > li {
  border-bottom: 1px solid var(--fade-main-color);
}

.mega-menu .sub-menu > li > a {
  display: block;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--lighter-black);
  padding: 10px 0;
}

.mega-menu .inner-menu > li > a {
  display: block;
  font-size: 1em;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 0;
}

.mega-menu .inner-menu > li > a:first-child {
  padding-top: 0;
}

.mega-menu {
  font-size: 1.1em;
}

.menu-title {
  font-size: 1.3em;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 15px;
}

.sub-menu-title {
  font-weight: 600;
}

.mega-menu.flex .container{
  height: 400px;
  display: flex;
  flex-flow: column wrap;
  align-items: center;
}

.mega-menu.flex .sub-menu {
  /*max-width: 280px;
  min-width: 240px;*/
  width: 320px;
  margin: 0 10px;
}

.no-click-menu {
  cursor: default;
}

/* specific hover colors for menu links */
.navbar-default .navbar-nav a[href*='observatoire-cohesion-sociale-et-territoriale']:hover {
  color: rgb(44,168,162) !important;
}

.navbar-default .navbar-nav a[href*='observatoire-des-deplacements']:hover,
.navbar-default .navbar-nav a[href*='observatoire-des-mobilites']:hover {
  color: rgb(203,120,177) !important;
}

.navbar-default .navbar-nav a[href*='observatoire-developpement-durable']:hover,
.navbar-default .navbar-nav a[href*='observatoire-metropolitain-des-transitions-et-de-la-resilience']:hover {
  color: rgb(115,174,203) !important;
}

.navbar-default .navbar-nav a[href*='opale-economie-emploi-insertion']:hover {
  color: rgb(111,105,177) !important;
}

.navbar-default .navbar-nav a[href*='observatoire-espaces-naturels-et-agricoles']:hover,
.navbar-default .navbar-nav a[href*='OPEANA']:hover {
  color: rgb(100,185,111) !important;
}

.navbar-default .navbar-nav a[href*='observatoire-habitat']:hover {
  color: rgb(244,104,044) !important;
}

.navbar-default .navbar-nav a[href*='observatoire-habitat']:hover {
  color: rgb(244,104,044) !important;
}

.navbar-default .navbar-nav a[href*='sport']:hover {
  color: rgb(247,173,090) !important;
}

/* Default: Hide the menu items */
.menu-item a[data-drupal-link-system-path="webform/contact"],
.menu-item a[data-target="#newsletterModal"] {
  display: none;
}

/* Portrait orientation */
@media screen and (max-width: 768px) and (orientation: portrait) {
  .menu-item a[data-drupal-link-system-path="webform/contact"],
  .menu-item a[data-target="#newsletterModal"] {
    display: inline-block;
  }
}

/* Landscape orientation */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .menu-item a[data-drupal-link-system-path="webform/contact"],
  .menu-item a[data-target="#newsletterModal"] {
    display: inline-block;
  }
}
/*HERE GOES MEDIA QUERIES*/

/* was 768 initially - changed on 20200731 */
@media only screen and (max-width: 1200px) {

  footer {
    padding: 2em 0;
  }

  footer::before {
    display: none;
  }

  .footer-logo {
    padding-bottom: 1em;
    border-bottom: 2px solid var(--darker-grey);
  }

  .footer-links .hidden-xs-up {
    margin-top: 1.5em;
  }

  .footer-links .hidden-xs-up span,
  .footer-text .hidden-xs-up span,
  .footer-rs .hidden-xs-up span {
    color: var(--main-color);
    font-size: 18px;
    font-weight: 600;
  }

  .footer-text div.hidden-xs-up {
    margin-bottom: 1em;
  }

  .footer-text .hidden-xs-up span {
    font-size: 18px;
    font-weight: 600;
  }

  .footer-top {
    align-items: normal;
    flex-direction: column;
    padding-bottom: 1.2em;
    margin-bottom: 2em;
  }

  .footer-bot {
    flex-direction: column-reverse;
    align-items: normal;
  }

  .footer-links .navbar-nav {
    padding-left: 12px;
  }

  .footer-text {
    display: flex;
    flex-direction: column;
  }

  .footer-copyright {
    font-size: 15px;
    color: #ffffff;
    padding: 0 21px;
  }

  .footer-phone {
    margin-left: 0;
    margin-top: 1em;
    padding-left: 21px;
  }

  .footer-mail {
    margin-top: 1em;
    padding-left: 21px;
  }

  .footer-phone a,
  .footer-mail a {
    font-size: 15px;
  }

  .footer-rs {
    border-bottom: 2px solid var(--darker-grey);
    margin-bottom: 2em;
  }

  .footer-rs .social-menu {
    display: flex;
    padding-left: 21px;
  }
}
footer {
  background-color: var(--dawn-black);
  border-top: 5px solid var(--main-color);
  padding: 3em 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  position: absolute;
  right: 35%;
  content: '';
  width: 0;
  height: 0;
  border-left: 48px solid transparent;
  border-right: 45px solid transparent;
  border-bottom: 83px solid #000000;
  opacity: .2;
  transform: scale(12);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--darker-grey);
  padding-bottom: 2em;
  margin-bottom: 2em;
}

.footer-links .navbar-nav li a {
  color: #ffffff;
  font-weight: normal;
  font-size: 15px;
}

.footer-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-text {
  z-index: 10;
}

.footer-copyright {
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: normal;
  color: var(--lighter-grey);
}

.footer-phone {
  margin-left: 6em;
}

.footer-phone a,
.footer-mail a {
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: -0.3px;
  color: #ffffff;
  text-decoration: none;
  position: relative;
}

.footer-phone a:before {
  font-family: 'urbalyon';
  content: "\e905";
  font-size: 8px;
  color: var(--main-color);
  position: absolute;
  left: -23px;
  top: 5px;
}

.footer-phone a:hover {
  color: var(--main-color);
}

.footer-rs .navbar-nav li a {
  color: #ffffff;
}

.footer-rs .navbar-nav li a:hover,
.footer-rs .navbar-nav li a:focus {
  color: var(--main-color);
  background-color: transparent;
}
/*HERE GOES MEDIA QUERIES*/

@media only screen and (max-width: 768px) {
  .carousel-inner>.item>img, .carousel-inner>.item>a>img {
    height: 100%;
  }

  .mobile.carousel-sliders {
    text-align: right;
    margin-top: 1em;
    margin-right: 1em;
  }

  .mobile.carousel-sliders a .urb {
    color: #888;
    border: 1px solid #888;
    border-radius: 50%;
    font-size: 13px;
    padding: 7px 11px;
  }

  .mobile .currentSlide,
  .mobile .totalSlides {
    color: #888;
    font-size: 14px;
    font-weight: 600;
  }

  .mobile .currentSlide {
    color: var(--main-color);
  }

  .transition-timer-carousel-progress-bar {
    top: 0;
    position: relative;
  }

  .bar-bg {
    position: relative;
    height: 6px;
    top: -7px;
    margin: 0;
    width: 100%;
    background-color: var(--pastel-white);
  }

  .item{
    height: 370px !important;
  }

  .carousel-caption {
    right: 0;
    padding: 1em;
  }

  .carousel-caption .carousel-title .dash {
    margin-right: 1em;
  }

  .carousel-caption .carousel-info {
    margin-bottom: 1em;
  }

  .carousel-caption .carousel-title {
    margin-bottom: 1.2em;
  }

  .carousel-caption .carousel-title .title {
    font-size: 30px;
    padding-right: 5%;
  }

  .carousel-caption .carousel-description {
    font-size: 13px;
  }

  .carousel-caption .carousel-info {
    margin-bottom: 1em;
  }

  .carousel-caption .carousel-foot {
    margin-top: 1em;
    margin-bottom: 1em;
  }

  .carousel-description {
    display: none;
  }

  .row-front-divers {
    display: flex;
  }

  .col-front-mediatheque {
    order: 3;
  }

  /* by @res */
  .carousel-caption .carousel-foot .read-more {
    font-size: 80%!important;
  }
  .carousel-sliders {
    transform: scale(.75);
  }
}

.item {
  background: #333;
  text-align: center;
  /* initial height according to design */
  /* height: 600px !important; */
  /*height: 540px !important;*/
  height: 100%;
}

.carousel-inner {
  height: 540px;
}

.carousel-inner>.item>img, .carousel-inner>.item>a>img {
  width: 100%;
}

.carousel-inner>.item>img, .carousel-inner>.item>a>img {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  height: 101%;
  width: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  backface-visibility: hidden;
}

.carousel-inner>.item>.carousel-img-full {
  height: auto;
  min-height: 101%;
  min-width: 100%;
}

.item-v2 .carousel-img-full {
  height: auto;
  min-height: 101%;
  width: 100%;
}

.transition-timer-carousel-progress-bar {
  height: 7px;
  background-color: var(--main-color);
  width: 0;
  margin: 0;
  top: -7px;
  border: none;
  z-index: 9;
  position: relative;
}

.carousel-caption {
  padding: 5em 2em 5em 10em;
  position: absolute;
  left: 0;
  right: 50%;
  bottom: 0;
  text-align: left;
  background: rgba(56,61,66,0.87);
}


.item-v2 .carousel-caption {
  width: 40%;
  height: 100%;
}

.item-v2 .carousel-img {
  width: 60%;
  height: 100%;
  position: absolute;
  right: 0px;
}

.carousel-caption .carousel-info {
  margin-bottom: 1.5em;
}

.carousel-caption .carousel-info .time {
  margin-left: 10px;
  opacity: .65;
}

.carousel-caption .carousel-title {
  margin-bottom: 1.1em;
}

.carousel-caption .title-xl {
  font-size: 57px;
  color: #ffffff;
  /* initial value according to design */
  /* padding-right: 35%;*/ 
  padding-right: 5%; 
}

.text-small {
  font-size: 10px;
}

.text-medium {
  font-size: 13px;
  position: relative;
  right: 3px;
  -webkit-transition: all ease .4s;
  -moz-transition: all ease .4s;
  -ms-transition: all ease .4s;
  -o-transition: all ease .4s;
  transition: all ease .4s;
}

.box-list li:hover .text-medium {
  right: -5px;
}

.carousel-caption .carousel-title .dash {
  float: left;
  margin-top: 1.1em;
  margin-right: 1.5em;
}

.carousel-caption .carousel-title .dash img {
  width: 80%;
}

.carousel-caption .carousel-title .title {
  font-size: 57px;
  font-weight: bold;
  font-style: normal;
  font-stretch: normal;
  line-height: 1.04;
  margin: 0;
  padding-right: 50%;
}

.carousel-caption .carousel-description {
  font-size: 19px;
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  padding-right: 35%;
}

.carousel-caption .carousel-foot {
  margin-top: 3em;
}

.carousel-caption .carousel-foot .read-more {
  font-size: 16px;
  color: var(--main-color);
  text-decoration: none;
}

.carousel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.currentSlide,
.totalSlides {
  color: #ffffff;
  padding: 5px;
  font-size: 15px;
  font-weight: 600;
}

.currentSlide {
  color: var(--main-color);
}

a.carousel-controller {
  color: #ffffff;
  text-decoration: none;
}

.carousel-controller .urb-icon {
  display: inline-block;
  border: 1px solid #ffffff;
  border-radius: 50%;
  opacity: .5;
  padding: 15px 18px;
  font-size: 12px;
  -webkit-transform: scale(.8);
  -moz-transform: scale(.8);
  -ms-transform: scale(.8);
  -o-transform: scale(.8);
  transform: scale(.8);
}

.carousel-controller.left {
  display: inline-block;
  -webkit-transform: rotate(-180deg);
  -moz-transform: rotate(-180deg);
  -ms-transform: rotate(-180deg);
  -o-transform: rotate(-180deg);
  transform: rotate(-180deg);
}

/* Animation delays */
.carousel-caption .carousel-info {
  animation-delay: .25s;
}
.carousel-caption .carousel-title {
  animation-delay: .4s;
}
.carousel-caption .carousel-description {
  animation-delay: .6s;
}
.carousel-caption .carousel-foot {
  animation-delay: .9s;
}

.playButton {
  display: none;
}

#divers .section-header {
  display: flex;
  align-items: center;
}

#divers .section-header .dash {
  margin-right: 1em;
}

#divers .section-header .header-title {
  font-weight: bold;
  font-style: normal;
  font-stretch: normal;
  line-height: 1.9;
  letter-spacing: -0.7px;
  margin: 0;
  color: var(--lighter-black);
  font-size: 25px;
}

#divers .section-content {
  margin-top: 3em;
}

#divers .section-content .media-box {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

#divers .section-content .media-box::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  left: -100%;
  z-index: -1;
  background-color: #383e42;
  opacity: .9;
}

#divers .section-content .media-box::after {
  content: '';
  background-image: url("../img/mask.png");
  background-position: center;
  background-size: cover;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  left: -100%;
  z-index: -2;
  background-color: #383e42;
  opacity: .6;
}

#divers .section-content .box-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#divers .section-content .box-list li {
  padding: 0 0 0 14px;
  border-bottom: 1px solid var(--main-color);
}

#divers .section-content .box-list li:hover {
  background-color: var(--main-color);
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -ms-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

#divers .section-content .box-list a {
  padding: 14px 0;
  font-size: 20px;
  color: #ffffff;
  font-weight: 600;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  text-decoration: none;
}

#divers .section-content .box-list .icon-video {
  font-size: 15px;
}

#divers .section-content .event:not(:last-child) {
  border-bottom: 1px solid var(--pastel-white);
}

#divers .section-content .event {
  padding-bottom: 1.5em;
  margin-bottom: 1.5em;
}

#divers .section-content .event .title .text {
  font-weight: bold;
  font-style: normal;
  font-stretch: normal;
  line-height: 1.43;
  letter-spacing: normal;
  color: var(--lighter-black);
}

/*
#divers .section-content .event .place{
  font-weight: 600;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  color: var(--main-color);
}

#divers .section-content .event .place {
  color: var(--lighter-black);
  font-size: 13px;
  margin-top: 1em;
} 
*/

#divers .section-content .event .date,
#divers .section-content .event .place {
  font-weight: 600;
  color: var(--fade-black);
  font-size: 15px;
}
#divers .section-content .event .place {
  margin-top: 0.3em;
}

#divers .section-content .event .half-img {
  width: 2%;
  margin-right: 0.4em;
}

#divers .section-content .event .download {
  margin-top: 0.3em;
}

#divers .section-content .event a.download-link {
  color: var(--main-color);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}