body {
    background-image: url('../images/bckgrd_cadastre.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100%;
    background-position: center center;
    font-size: 1rem;
}
/* JCE background */
body.mceContentBody {
    background-image: none;
    background-color: var(--dark, #4c4c4c);
    color: var(--light, #f8f9fa);
}
.mceContentBody a {
    color: inherit;
}

/* bootstrap4 template - Base */
.content,
.content .main-content  {
    min-height: 500px;
}

.large-icon {
    font-size: 13em !important;
}
.contact .contact-address {
    padding: 0 1.5rem;
}
.navbar .mod-languages {
    padding-bottom: 0.425rem;
    padding-top: 0.425rem;
}
.lang-inline {
    list-style: outside none none;
    margin: 0;
}
.lang-inline > li {
    display: inline;
    margin-left: 8px;
}
.login {
    margin: 0 auto;
    max-width: 330px;
    padding-top: 1em;
}
.tags.inline {
    padding-left: 0;
}
.tags.inline li {
    display: inline;
}
.item-image {
    margin-bottom: 20px;
}

.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
}

.autocomplete-suggestion {
  display: block;
  width: 100%;
  padding: 0.25rem 1.5rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.autocomplete-suggestion:hover, .autocomplete-suggestion:focus {
  color: #16181b;
  text-decoration: none;
  background-color: #f8f9fa;
}

.autocomplete-suggestion.active, .autocomplete-suggestion:active {
  color: #fff;
  text-decoration: none;
  background-color: #007bff;
}

/* --------------------------------------------------------------------------
 * Bootstrap 4 template - Extension and styling by YAP
 * -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
 * Header styling, including Bootstrap Navbar and logo
 * -------------------------------------------------------------------------- */
/* bloc 1 : main container for header with logo and navbar */
#header {
  height: 60px;
  padding-left: 0px;
}
/* bloc 2: main title line */
.map-header-title {
  height: 80px;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  /* centering using flex */
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* bloc 3: main container for article content (modules position-3, component, modules position-2) */
main#content {
    margin-top: 0em;
}

main#content div.page-header {
    text-align: center;
}
main#content h1.page-header,
main#content h2.page-header,
main#content h3.page-header,
main#content h4.page-header,
main#content .page-header h1,
main#content .page-header h2,
main#content .page-header h3,
main#content .page-header h4 {
text-align: center;
    display: -webkit-inline-flex;
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid red;
}
/* List bullet */
main#content div[itemprop="articleBody"] :not(.sigFreeContainer) li,
main#content div.mapgeo-portfolio-description li {
    padding-left: 0.5em;
}
main#content div[itemprop="articleBody"] :not(.sigFreeContainer) li::marker,
main#content div[itemprop="articleBody"] :not(.sigFreeContainer) li::-webkit-marker,
main#content div.mapgeo-portfolio-description li::marker,
main#content div.mapgeo-portfolio-description li::-webkit-marker {
    /* '\2f'   = fa-slash-forward
       '\2b'   = fa-plus
       '\f00c' = fa-check
       '\f560' = fa-check-double     */
    content: '\f560';
    font-family: "Font Awesome 6 Free";
    color: var(--primary, #ff0f38);
    font-size: 1em;
}

/* Logo */
.navbar-brand {
    -webkit-mask: url('../images/logo_bg.svg') no-repeat 0px 0px;
    mask: url('../images/logo_bg.svg') no-repeat 0px 0px;
    text-align: left;
    margin-left: 0px;
    margin-right: 15px;
    padding-left: 0px;
    padding-top: 0px;
    min-width: 300px;
    min-height: 110px;
    z-index: 2;
}

.navbar-brand a {
    margin: 0;
    padding: 10px 0 0 0;
    color: var(--gray-100, #f8f9fa);
}

.navbar-brand img.image-adaptive {
    max-width: 265px !important;
    max-height: 80px !important;
}

.scrolled .navbar-brand {
    -webkit-mask: unset;
    mask: unset;
    background: transparent !important;
    width: 300px;
}
.scrolled .navbar-brand img.image-adaptive {
    display: inline;
    xmax-height: 60px !important;
}
.navbar-brand { transition: all 0.5s ease; }

@media (max-width: 991.98px){
  body {
    background: var(--dark, #4c4c4c);
    mask: none;
  }
  .map-header {
    min-height: 70px;
    height: 100%;
    padding-top: 5px;
    padding-left: 0px;
    padding-right: 0px;
  }
  .navbar-brand {
    background: transparent;
    min-height: 60px;
    min-width: 60px;
    padding-bottom: 0px;
  }
  .navbar-brand img.image-adaptive {
    display: inline;
    max-height: 60px !important;
  }
  .navbar-toggler-outer {
    min-height: 60px;
    display: -ms-flexbox !important;
    display: flex !important;
  }
  .navbar-toggler {
  }
}

/* ----  Menus  ----- */
.navbar {
  align-items: top;
}
.navbar ul.nav-child {
  margin: 0px;
  padding: 0px;
}
.navbar-nav {
    background: var(--dark, #4c4c4c);
    padding-top: 8px;
}
.navbar-nav .nav-link {
  padding-top: 15px;
}
.navbar-nav .nav-item,
.navbar-nav .nav-item.active,
.navbar-nav .nav-item:active,
.navbar-nav .nav-item:hover,
.navbar-nav .dropdown-item,
.navbar-nav .dropdown-item.active,
.navbar-nav .dropdown-item:active,
.navbar-nav .dropdown-item:hover  {
  background: inherit;
}

.navbar-nav .nav-item  > .nav-link,
.navbar-nav .nav-child .dropdown-item {
  text-transform: uppercase;
  display: inline-block;
  position: relative;
  border: 0;
}

/* expand sublevel to the right / left */
.navbar-nav .nav-child .dropdown-menu {
  top: 0px;
  left: 100%;
}

/* expand sublevel on hover */
.navbar-nav .dropdown:hover>.dropdown-menu {
  display: block;
}
.dropdown>.dropdown-toggle:active {
  /*Without this, clicking will make it sticky*/
  /* pointer-events: none; */
}

/* Set dropdown indicator symbole based on FontAwsome */
.navbar-nav .dropdown-toggle>.fa.dropdown-indicator::before {
  content: "\f078"; /* FontAwesome Chevron-down */
  font-family: "Font Awesome 6 Free";
  margin-left: 0.5em;
  font-weight: bold;
  font-size: 120%;
}
.navbar-nav .parent.show>.dropdown-toggle>.fa.dropdown-indicator::before {
  content: "\f054";  /* FontAwesome Chevron-right */
  font-family: "Font Awesome 6 Free";
  margin-left: 0.5em;
  font-weight: bold;
  font-size: 120%;
}

.navbar-nav .nav-item > .nav-link:after,
.navbar-nav .dropdown-menu.nav-child .dropdown-item:after {
   content: " ";
   background: var(--primary, #ff0f38);
   position: absolute;
   left: 0px;
   right: 0px;
   top: 0px;
   bottom: auto;
   width: 100%;
   height: 5px;
   border: 0;
   padding: 0;
   margin: 0;
   transform: scaleX(0);
   transition: transform 0.5s;
}

.navbar-nav .dropdown-menu.nav-child .dropdown-item:after {
   right: auto;
   bottom: 0px;
   width: 8px;
   height: 100%;
   transform: scaleY(0);
}

.navbar-nav .nav-item.active > .nav-link:after,
.navbar-nav .nav-item > .nav-link:hover:after  {
  transform: scaleX(1);
}

.navbar-nav .dropdown-menu.nav-child .active >.dropdown-item:after,
.navbar-nav .dropdown-menu.nav-child .dropdown-item.active:after,
.navbar-nav .dropdown-menu.nav-child .dropdown-item:hover:after  {
  transform: scaleY(1);
}

@media (max-width: 991.98px){
  div.navbar-collapse {
      max-height: 90vh;
      overflow: auto;
  }
  .navbar-nav .nav-link {
    padding-top: 0px;
    padding-left: 15px;
  }
  .navbar-nav .nav-child .dropdown-item {
    padding-left: 23px;
  }
  .navbar-nav .nav-child .nav-child .dropdown-item {
    padding-left: 31px;
  }
/* expand all sub levels */
  .navbar-nav .dropdown>.dropdown-menu {
    display: block;
  }

  /* left red bar indicator */
  .navbar-nav .nav-item > .nav-link:after,
  .navbar-nav .dropdown-menu.nav-child .dropdown-item:after  {
     content: " ";
     background: var(--primary, #ff0f38);
     position: absolute;
     bottom: 0px;
     left: 0px;
     top: 0px;
     width: 8px;
     height: 100%;
     border: 0;
     padding: 0;
     margin: 0;
     transform: scaleY(0);
     transition: transform 0.5s;
  }
  .navbar-nav .dropdown-menu.nav-child .dropdown-item:after {
      left: 8px;
  }
  .navbar-nav .dropdown-menu.nav-child .nav-child .dropdown-item:after {
      left: 16px;
  }

  .navbar-nav .nav-item.active > .nav-link:after,
  .navbar-nav .nav-item > .nav-link:hover:after  {
    transform: scaleY(1);
  }
}

/* --------------------------------------------------------------------------
 * Frontpage Slideshow
 * -------------------------------------------------------------------------- */
.carousel-caption {
  top: 10px;
  left: 10px;
  bottom: auto;
  right: auto;
  text-align: left;
}
.carousel-caption h1,
.carousel-caption h2,
.carousel-caption h3,
.carousel-caption h4 {
  text-transform: uppercase;
}

.carousel-caption h1 .text-muted,
.carousel-caption h2 .text-muted,
.carousel-caption h3 .text-muted,
.carousel-caption h4 .text-muted {
  text-transform: none;
}
.carousel-caption h1 .text-muted::before,
.carousel-caption h2 .text-muted::before,
.carousel-caption h3 .text-muted::before,
.carousel-caption h4 .text-muted::before {
      content: "\A";
      white-space: pre;
}

/* --------------------------------------------------------------------------
 * card-person (contacts) slideup
 * -------------------------------------------------------------------------- */
.card-person .card {
  overflow: hidden;
  width: 350px;
  height: 354px;
}
.card-person img {
  width: 100%;
  height: auto;
  opacity: 1;
  transition: all 1.5s ease;
}
.card-person .card-img-overlay {
    position: absolute;
    height: 100%;
    top: calc(100% - 60px);
    transition: all 1s ease;
    background: #ff0f38cc;
}
.card-person .card-header {
    height: 60px;
    font-weight: bold;
    font-size: 1.2em;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0px;
}
.card-person .card-body {
    margin-bottom: auto;
    background: none;
    padding-top: 0px;
    border-top: 2px solid white;
}

.card-person .con_position {
    margin: 0px;
    margin-bottom: 0.75em;
    padding: 0px;
    text-align: center;
}
.card-person .card-footer{
    width: 100%;
    margin-top: auto;
    background: none;
    border: 0px;
    padding: 0.75em 1.25em;
}
.card-person .card-footer table {
    margin-bottom: 0px;
}
.card-person .card-footer .table th,
.card-person .card-footer .table td {
    border-top: 0px;
    padding: 0.1rem;
    vertical-align: middle;
}

.card-person .card-footer .table th {
    width: 2.5rem;
    font-size: 150%;
    text-align: center;
}

/* Hover */
.card-person:hover .card-img-overlay {
  top: 0px;
}
.card-person:hover .card-img{
  transform: scale(1.2);
}
.card-person:hover .card-header{
  background: none !important;
}

/* --------------------------------------------------------------------------
 * mapgeo-card-prestation (liste et lien des sous-prestations)
 * -------------------------------------------------------------------------- */
.mapgeo-card-compact .card {
  overflow: hidden;
  position: relative;
  border-radius: 0 0.5em 0.5em 0.5em;
}
.mapgeo-card-compact .card-img {
  border-radius: 0;
}
.mapgeo-card-compact a {
}
.mapgeo-card-compact img {
  width: 100%;
  opacity: 1;
  transition: all 1.5s ease;
}
.mapgeo-card-compact .card-img-overlay {
}
.mapgeo-card-compact .card-title {
  justify-content: center;
  align-items: center;
  border: 0px;
  position: absolute;
  bottom: 0px;
  width: 100%;
}
.mapgeo-card-compact .card-title::after {
  content: '';
  position: absolute;
  top: -0.5em;
  left: calc(50% - 0.5em);
  margin: 0;
  padding: 0;
  border-bottom: 0.5em solid var(--primary, #ff0f38);
  border-right: 0.55em solid transparent;
  border-left: 0.55em solid transparent;
}

/* Hover */
.mapgeo-card-compact .card:hover .card-img {
  transform: scale(1.3);
}

/* --------------------------------------------------------------------------
 * mapgeo-card-slideup (with javascript)
 * -------------------------------------------------------------------------- */
.mapgeo-card-slideup {
  transition: all 1s ease;
}
.mapgeo-card-slideup .card {
  overflow: hidden;
  border-radius: 0 0.5em 0.5em 0.5em;
}
.mapgeo-card-slideup .card-img {
  border-radius: 0;
}
.mapgeo-card-slideup h1,
.mapgeo-card-slideup h2,
.mapgeo-card-slideup h3,
.mapgeo-card-slideup h4 {
  text-transform: uppercase;
}
.mapgeo-card-slideup img{
  transition: all 1s ease;
}
.mapgeo-card-slideup .card-img-overlay {
  transform: translate(0px, 500px);  /* position initial hors vue */
  transition: all 0.7s ease;
}
.mapgeo-card-slideup .card-body::after {
  content: '';
  position: absolute;
  top: -1em;
  left: calc(50% - 1em);
  margin: 0;
  padding: 0;
  border-bottom: 1em solid var(--primary, #ff0f38);
  border-right: 1.1em solid transparent;
  border-left: 1.1em solid transparent;
}
.mapgeo-card-slideup .card-text,
.mapgeo-card-slideup .card-footer {
  background: rgba(0,0,0,0.4);
}
.mapgeo-card-slideup .card:hover {
  cursor: pointer;
}
.mapgeo-card-slideup .card:hover img {
  opacity: 0.2;
  transform: scale(1.5);
}

/* --------------------------------------------------------------------------
 * Articles layout
 * -------------------------------------------------------------------------- */

main#content div[itemprop="articleBody"] {
  margin-top: 1em;
}

main#content .introContainer {
  position: relative;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 5em;
  margin-bottom: 1em;
  padding: 1em 3.5em 0.5em;
  font-size: 1.25rem;
  font-weight: 300;
  font-style: italic;
  text-align: justify;
}
main#content .introContainer * {
  display: initial;
  z-index: 5;
}
main#content .introContainer::after {
  content: '';
  display: block;
  position: absolute;
  top: 0px;
  border-left: 0.25rem solid var(--primary, #ff0000);
  width: 100%;
  height: 0%;
  -webkit-animation: blIn 1s ease forwards;
  animation: blIn 1s ease forwards;
  -webkit-animation-delay: 1s;
  animation-delay: 0.5s;
}
@keyframes blIn {
  from {height: 0%}
  to {height: 100%}
}
main#content .introContainer > .blockquote-intro::before {
  content: '\f100';
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-size: 3em;
  display: block;
  position: absolute;
  top: -0.3em;
  left: 0.25em;
  color: var(--light, #999);
  opacity: 0.3;
  z-index: 0;
}
main#content .introContainer > .blockquote-intro::after {
  content: '\f101';
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-size: 3em;
  display: block;
  position: absolute;
  bottom: -0.3em;
  right: 0.25em;
  color: var(--light, #999);
  opacity: 0.3;
  z-index: 0;
}

/* --------------------------------------------------------------------------
 * Category layout
 * -------------------------------------------------------------------------- */
main#content .category-desc img.category-img {
  padding-top: 0px;
  padding-bottom: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
}

main#content .category-desc div.category-txt {
  margin-top: 1em;
}


/* --------------------------------------------------------------------------
 * Title formatting for template module style "withTags"
 * -------------------------------------------------------------------------- */
[class~='module'] h1,
[class~='module'] h2,
[class~='module'] h3,
[class~='module'] h4,
[class~='module'] h5,
[class~='module'] h6 {
  margin-bottom: 0.5em;
}

[class~='module'] h1 > span,
[class~='module'] h2 > span,
[class~='module'] h3 > span,
[class~='module'] h4 > span,
[class~='module'] h5 > span,
[class~='module'] h6 > span {
  border-bottom: 1px solid var(--primary, #ff0f38);
}


/* --------------------------------------------------------------------------
 * Newsflash module
 * -------------------------------------------------------------------------- */
.newsflash {
  position: relative;
}

.newsflash .newsflash-img {
  border: 0px solid #999;
  background-image: linear-gradient(var(--light, #999), var(--dark, #4c4c4c));
  margin: 0 0 1rem;
  text-align: center;
  min-height: 12em;
}

.newsflash .newsflash-img .figure{
  margin: 0 !important;
  width: 100%;
  overflow: hidden;
}
.newsflash .newsflash-img .figure img {
  width: 100%;
  -webkit-filter: grayscale(0%);
  -moz-filter: grayscale(0%);
  filter: grayscale(0%);
  transition: all 1s ease;
}
.newsflash .newsflash-item:hover .newsflash-img .figure img {
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  filter: grayscale(0%);
  transform: scale(1.2);
  transform-origin: 50% 50%;
}
.newsflash .newsflash-item .newsflash-txt {
  transition: all 1s ease;
}
.newsflash .newsflash-item:hover .newsflash-txt {
  transform: translateY(-1em);
}
.newsflash .newsflash-firstitem:hover .newsflash-txt {
  transform: translateY(-2em);
}

.newsflash .newsflash-txt {
  position: relative;
  top: -6em;
  margin: 0 1em 0 1.5em;
  padding: 0.5em 1em 0.5em;
  min-height: 6em;
  background-image: linear-gradient(var(--grey-100, #f8f9fa), var(--grey-300, #dee2e6));
  color: var(--gray-900, #212529);
  border-radius: 0.5em;
  border-top-left-radius: 0px;
  border-top-right-radius: 0.5em;
  border-top: 2px solid var(--primary, #ff0f38);
  box-shadow: 8px 8px 2px 2px var(--primary, #ff0f38);
}
.newsflash .newsflash-firstitem .newsflash-txt {
  top: -9em;
  margin: 0 1em 0 3em;
  padding: 1em 2em 1em;
  min-height: 12em;
  border-width: 4px;
  box-shadow: 10px 10px 2px 2px var(--primary, #ff0f38);
}
.newsflash .newsflash-txt::after {
  content: '';
  position: absolute;
  top: -1em;
  left: 1em;
  margin: 0;
  padding: 0;
  border-bottom: 1em solid var(--primary, #ff0f38);
  border-right: 1.1em solid transparent;
  border-left: 1.1em solid transparent;
}
.newsflash .newsflash-firstitem .newsflash-txt::after {
  top: -2em;
  left: 1em;
  border-bottom: 2em solid var(--primary, #ff0f38);
  border-left: 2.2em solid transparent;
  border-right: 2.2em solid transparent;
}

.newsflash .newsflash-nextitems .newsflash-title h2 > *,
.newsflash .newsflash-nextitems .newsflash-title h2 > *,
.newsflash .newsflash-nextitems .newsflash-title h3 > *,
.newsflash .newsflash-nextitems .newsflash-title h4 > *,
.newsflash .newsflash-nextitems .newsflash-title h5 > *,
.newsflash .newsflash-nextitems .newsflash-title h6 > * {
  font-size: 75%;
}
.newsflash .newsflash-title a {
  color: inherit;
  transition: color 0.5s ease;
}
.newsflash .newsflash-title a:hover {
  color: var(--light, #999);
}

.newsflash .newsflash-btn {
  text-align: center;
}
.newsflash2 .newsflash-btn .btn {
  xcolor: var(--gray-900, #212529);
  color: var(--white, #fff);
  border-color: var(--primary, #ff0f38);
  background-color: var(--primary, #ff0f38);
  /* btn-sm */
  padding: .25rem .5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: .2rem;
}
.newsflash2 .newsflash-btn .btn:hover {
  color: var(--white, #fff);
  border-color: var(--white, #fff);
}
