
/*FORMATTED TEXT*/

.formatted p,
.formatted li {
  font-size: 18px;
}

.formatted h2, 
.formatted h3, 
.formatted h4, 
.formatted h5, 
.formatted h6 {
  font-weight: bold;
}

.formatted h2 {
  font-size: 42px;
}

.formatted h3 {
  font-size: 30px;
  margin: 5rem 0 2rem;
}

.formatted h4 {
  font-size: 22px;
  margin: 5rem 0 2rem;
}

.formatted h5 {
  font-size: 19px;
  margin: 5rem 0 2rem;
}

.formatted h6 {
  font-size: 17px;
  margin: 5rem 0 2rem;
}

.formatted li {
  padding: .8rem 0;
}

.formatted a {
  color: var(--main-color);
  text-decoration: underline;
}


/*TITLES*/

.title-xl {
  font-size: 55px;
  font-weight: bold;
  font-style: normal;
  font-stretch: normal;
  color: var(--lighter-black);
}

.title-xl:before {
  font-family: 'urbalyon';
  content: "\e905";
  position: relative;
  font-size: 25px;
  color: var(--main-color);
  margin-right: 1em;
  top: -5px;
  display: inline-block;
  -webkit-transform: rotate(30deg);
  -ms-transform: rotate(30deg);
  transform: rotate(30deg);
}

.formatted .title-lg,
.title-lg {
  font-weight: bold;
  font-style: normal;
  font-stretch: normal;
  /*line-height: 1.9;*/
  /*margin: 0;*/
  margin-top: 10px;
  letter-spacing: -0.7px;
  color: var(--lighter-black);
  font-size: 36px;
  position: relative;
}

.title-lg:before {
  font-family: 'urbalyon';
  content: "\e905";
  position: relative;
  font-size: 16px;
  color: var(--main-color);
  margin-right: 1.5em;
  top: -5px;
  display: inline-block;
  -webkit-transform: rotate(30deg);
  -ms-transform: rotate(30deg);
  transform: rotate(30deg);
}

.title-md {
  font-weight: bold;
  font-style: normal;
  font-stretch: normal;
  /* line-height: 1.9; */
  /*margin: 0;*/
  margin-top: 10px;
  letter-spacing: -0.7px;
  color: var(--lighter-black);
  font-size: 25px;
  position: relative;
}

.title-md:before {
  font-family: 'urbalyon';
  content: "\e905";
  position: relative;
  font-size: 10px;
  display: inline-block;
  color: var(--main-color);
  margin-right: 1.4em;
  top: -5px;
  -webkit-transform: rotate(30deg);
  -ms-transform: rotate(30deg);
  transform: rotate(30deg);
}


/*LINKS*/

.action-link {
  color: var(--main-color);
  font-size: 15px;
  text-decoration: none;
}

.action-link:hover,
.action-link:active,
.action-link:focus {
  color: var(--lighter-grey);
  text-decoration: none;
  -webkit-transition: all ease .5s;
  -moz-transition: all ease .5s;
  -ms-transition: all ease .5s;
  -o-transition: all ease .5s;
  transition: all ease .5s;
}

.action-link-default {
  color: var(--lighter-grey);
  font-size: 15px;
  text-decoration: none;
  /*min-width: 200px;*/
}

.action-link-default.dark {
  color: #555;
}

.action-link-default:hover,
.action-link-default:active,
.action-link-default:focus {
  color: var(--main-color);
  text-decoration: none;
  -webkit-transition: all ease .5s;
  -moz-transition: all ease .5s;
  -ms-transition: all ease .5s;
  -o-transition: all ease .5s;
  transition: all ease .5s;
}

.action-text-small {
  font-size: 12px;
}

/*ACCORDION*/

/******************* Accordion Demo - 9 *****************/
#accordion .panel{
  border-radius:0;
  margin:0;
  border: none;
  box-shadow: none;
}
#accordion .panel-heading{
  padding:0;
}
#accordion .panel-title{
  position: relative;
}
#accordion .panel-title a{
  color: var(--lighter-black);
  background: #ffffff;
  display: block;
  font-size: 18px;
  line-height: 21px;
  font-weight:700;
  padding: 18px 10px 18px 3px;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
}
#accordion .panel-title a.collapsed{
  color: var(--lighter-black);
  font-weight: 700;
}
#accordion .panel-title a:before,
#accordion .panel-title a.collapsed:before{
  content: "\f068";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top:0;
  right:0;
  padding:14px 10px;
  color: var(--main-color);
}
#accordion .panel-title a.collapsed:before{
  content: "\f067";
}
#accordion .panel-body{
  line-height: 26px;
  padding-left: 0;
  font-size: 17px;
}

/*OTHER PUBLICATIONS*/

#other-publication .thumbex .thumbnail-box {
  height: 205px;
}

#other-publication .thumbex .thumbnail-box img {
  height: 140%;
}

#other-publication {
  margin-top: 10em;
  position: relative;
}

#other-publication:before {
  content: '';
  position: absolute;
  top: -55px;
  left: 0;
  width: 91%;
  height: 6px;
  background-color: var(--main-color);
}

#other-publication .head .dash {
  margin-top: .7em;
}

#other-publication .head .dash img {
  width: 80%;
}

#other-publication .head .title {
  font-size: 35px;
}

#page-header .head {
  margin-bottom: 2em;
}

.sub-title {
  font-weight: 700;
}

/* max height and width 
 * set to respect content layout */
.thumbnail-image {
  max-width: 90%;
  max-height: 480px;
}

.widget-title {
  margin-top: 2.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 40%;
  font-size: 16px;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--darker-grey-full);
}

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

.event-date {
  font-size: 40px;
  font-weight: bold;
  line-height: 1.35;
}

.event-date-sub {
  font-size: 25px;
  color: var(--grey-alt);
}

.event-content,
.prod-content,
.article-content {
  margin-top: 1.5em;
  font-size: 18px;
  color: var(--lighter-black);
}

.body-content img {
  max-width: 100%;
}

.event-footer {
  margin-top: 3em;
}

.event-footer__item {
  padding: 20px 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-footer__item:not(:first-child) {
  border-top: 1px solid var(--darker-grey-full);
}

.event-footer__item .info-text {
  max-width: 70%;
}

#page-header .head .dash {
  margin-top: .7em;
  margin-right: 1.5em;
  float: left;
}

#page-header .head .title {
  font-size: 50px;
  font-weight: bold;
  font-style: normal;
  font-stretch: normal;
  color: var(--lighter-black);
  margin: 0;
}


.page-head {
  margin: 40px 0;
}

.page-head .dash {
  float: left;
  margin-top: 1.1em;
  margin-right: 1.5em;
}

.page-head .title {
  margin: 0 0 0 8px;
  font-size: 50px;
  font-weight: bold;
  font-style: normal;
  font-stretch: normal;
  color: var(--lighter-black);
}

.important-text {
  font-weight: bold;
  line-height: 1.2;
}

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

/* modal scoop it */
.infobox-row-content .row {
  display: flex;
  align-items: center;
}

.infobox {
  margin-top: 10px;
  display: flex;
}

.infobox-img-wrapper {
  min-width: 60px; /* hack for flex */
  width: 60px;
  height: 60px;
  margin-right: 15px;
  border-radius: 40px;
  overflow: hidden;
}

.infobox-img {
  object-fit: cover;
  min-height: 100%;
  max-width: 100%;
}


.infobox .main-label {
  font-size: 19px;
  color: var(--lighter-black);
  font-weight: 600;
}

.infobox .sub-label,
.infobox .action-link {
    font-size: 15px;
}

.infobox .label-grey {
    font-size: 14px;
    color: var(--lighter-grey);
}


/* modal connexion */
.action-content {
  margin-top: 2em;
}

.action-content .action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  border-bottom: 1px solid var(--darker-grey-full);
  padding-bottom: 1.5em;
  margin-bottom: 1.5em;
}

.action-content .action-item > * {
  max-width: 50%;
}

.action-content .action-item a {
  color: var(--lighter-black);
}

#memberLoginBtn {
  display: block;
  text-align: center;
  text-decoration: none;
  color: white !important;
}
/*HERE GOES MEDIA QUERIES*/

@media only screen and (max-width: 768px) {
  .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,
  .footer-links .navbar-nav li a:focus::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 a:hover::before,
  .bottom-navbar.navbar-default .navbar-nav a:focus::before {
    top: 10px;
  }

  .bottom-navbar.navbar-default .navbar-nav .active a::before {
    top: 21px;
    left: 3px;
  }


  .bottom-navbar .container-wrapper {
    flex-direction: column;
    align-items: normal;
  }

  .top-navbar .navbar-header {
    display: none;
  }

  .top-navbar .navbar-collapse {
    flex-direction: column;
  }

  .top-navbar .navbar-right {
    display: flex;
    flex-wrap: wrap;
  }

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

  .top-navbar .social-menu {
    margin-left: -12px;
    display: flex;
  }

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

  .top-navbar {
    display: none;
  }

  .logo {
    text-align: center;
  }

  .navbar-toggle,
  .user-menu {
    margin-right: 0;
    border: none;
    background-color: transparent;
  }

  .bottom-navbar {
    padding: 3px 0 12px 0;
    border: none;
  }

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

  .searchbar-container .searchbar {
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    border-radius: 4px;
    border-width: 0;
    padding: 11px 10px 11px 30px;
    background-color: var(--pastel-white);
  }

  .searchbar-container .searchbar::placeholder {
    color: var(--lighter-grey);
  }

  .searchbar-container .searchbar:focus {
    outline: none;
  }

  /*MEGA MENU*/

  .bottom-navbar .navbar-header,
  #navbar-mobile-menu .navbar-header{
    padding: 15px 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-menu-close:before {
    content: '';
    position: absolute;
    width: 30px;
    height: 1px;
    left: 0;
    transform: rotate(-45deg);
    border: solid 1px #000000;
  }

  .mobile-menu-close:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 1px;
    left: 0;
    transform: rotate(-315deg);
    border: solid 1px #000000;
  }

  .mobile-menu-toggle, .mobile-menu-close {
    position: absolute;
    left: 20px;
    top: 9px;
  }

  .mobile-menu-close {
    width: 30px;
    top: 12px;
  }

  .user-menu {
    font-size: 23px;
    position: absolute;
    right: 20px;
  }

  #navbar-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 100;
  }

  .bottom-navbar .container {
    padding-right: 0;
    padding-left: 0;
  }

  .bottom-navbar .searchbar-container {
    padding: 0 15px;
  }

  #navbar-menu .menu-item {
    background-color: var(--white-two);
    position: relative;
  }

  #navbar-menu .navbar-nav > li > a {
    color: var(--lighter-black);
    font-size: 1.5em;
    font-weight: bold;
    padding: 20px 20px;
  }

  #navbar-mobile-menu .searchbar {
    background-color: var(--darker-grey);
    color: white;
  }

  .mobile-wrapper {
    padding: 0 15px 0 15px;
    border-bottom: 1px solid var(--darker-grey);
  }

  .carret {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    width: 100px;
    height: 61px;
  }

  .sub-menu .carret {
    height: 55px;
    font-size: 8px;
  }

  .carret .urb-icon {
    color: var(--lighter-black);
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    transform: rotate(-90deg);
    -webkit-transition: all ease .3s;
    -moz-transition: all ease .3s;
    -ms-transition: all ease .3s;
    -o-transition: all ease .3s;
    transition: all ease .3s;
  }

  .carret.open-up .urb-icon {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  .mega-menu {
    position: relative;
    padding: 0;
    display: none !important;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
  }

  .mega-menu.mobile-show {
    display: block !important;
  }

  .mega-menu .container {
    height: auto !important;
    flex-flow: column;
  }

  .mega-menu.flex .sub-menu {
    width: 100% !important;
    margin: 0;
  }

  .sub-menu {
    position: relative;
  }

  .menu-title,
  .mega-menu .sub-menu > li > a {
    margin-bottom: 0;
    width: 100%;
    padding: 15px 20px;
    font-weight: 600;
    /*background-color: var(--night-grey);*/
  }

  .menu-title,
  .mega-menu .sub-menu > li {
    background-color: var(--night-grey);
  }

  .mega-menu .sub-menu > li > a {
    font-size: 1em;
    max-width: 80%;
  }

  .inner-menu {
    display: none;
    padding: 0 20px !important;
    background-color: var(--dawn-grey);
    -webkit-transition: all ease-in-out .5s;
    -moz-transition: all ease-in-out .5s;
    -ms-transition: all ease-in-out .5s;
    -o-transition: all ease-in-out .5s;
    transition: all ease-in-out .5s;
  }

  .inner-menu.mobile-show {
    display: block;
  }

  #mmenu-13 .inner-menu {
    display: block;
  }

  #mmenu-13 .carret {
    display: none;
  }

  .mega-menu .inner-menu > li > a {
    padding: 10px 0;
    font-weight: normal;
    color: var(--lighter-black);
  }

  .mega-menu .inner-menu > li:not(:last-child) {
    border-bottom: 1px solid var(--dawn-grey-darker);
  }

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

}

/* menu for mobile */
.menu-item.menu-item--mobile-only {
  display: none;
}

/* we can keep on rule without orientation: landscape / portrait if same value */
@media only screen and (max-device-width: 768px) {
  .menu-item.menu-item--mobile-only {
    display: block;
  }   
}
.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;
  }
}