/* ---------- GLOBAL ----------- */
#liste-resultat{ min-height: 400px; }
.hidden{ display: none !important; }

html, body { width: 100%; height: 100%; margin: 0; }
body { display: flex; flex-direction: column; }

.bg-dark-transparent { background-color: rgba(0, 0, 0, 0.4); }
.bg-slight { background-color: #fbfbfb; }

.border-dt { border-color: rgba(0, 0, 0, 0.2) !important; }
.border-lt { border-color: rgba(255, 255, 255, 0.4) !important; }
.border-md-right { border-right: 1px solid #dee2e6; }

.rounded { border-radius: 0.5rem!important; }
.rounded-top { border-top-left-radius: .5rem!important; border-top-right-radius: .5rem!important; }
.rounded-top-right { border-top-right-radius: .5rem!important; }
.rounded-bottom { border-bottom-left-radius: .5rem!important; border-bottom-right-radius: .5rem!important; }
.rounded-bottom-left { border-bottom-left-radius: .5rem!important; }
.rounded-left { border-bottom-left-radius: .5rem!important; border-top-left-radius: .5rem!important; }
.rounded-50 { border-radius: 50px !important; }

.overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.overlay-img { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; width: 100%; height: 100%; transition-duration: 0.5s; }
.overlay-img:hover { background: rgba(255, 255, 255, 0.2); }

.gutters { margin: 1.5rem -.75rem 0 -.75rem; }
.gutters>.col, .gutters>[class*=col-] { padding-right: .75rem; padding-left: .75rem; margin-bottom: 1.5rem; }

.mt-m3 { margin-top: -3rem; }
.mt-m5 { margin-top: -5rem; }
.mt-m6 { margin-top: -6rem; }
.z-5 { z-index: 5; }
.z-10 { z-index: 10; }

.pl-7 { padding-left: 4rem!important; }

.h-250 { height: 250px; }
.h-350 { height: 350px; }

.card-img-fit {
    position: absolute;
    height: 100%!important; width: 100%;
    left: 0; right: 0; top: 0; bottom: 0;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.overflow-hidden { overflow: hidden; }

.loader-archive { width: 100%; z-index: 999; }

.dropdown-toggle { white-space: normal!important; }

table.wp-block-table td { border: 1px solid #dee2e6; padding: .6rem; }


/* ---------- TYPO ----------- */

h1, h2, h3, h4, h5, h6 { font-family: 'Source Sans Pro', sans-serif; }
#informations h2, h2.card-title, .h3, h3 { font-size: 1.5rem; }
h1.zone-title, h2.zone-title { font-size: 2rem; padding-left: 20px; margin-bottom: 2rem; }
.content-editor h2 { font-size: 1.6rem; margin-top: 2rem; margin-bottom: 1rem; }
.content-editor h3 { font-size: 1.3rem; margin-top: 1rem; margin-bottom: 0.5rem; }
a { transition-duration: 0.5s; }
a.title-link { color: #212529; }
a.title-link:hover { text-decoration: none; }

.display-5 { font-size: 3rem; font-weight: 400; line-height: 1; }

a.text-light:focus, a.text-light:hover { color: #ffffff!important; }
a.text-inherit { color: inherit; }

.content-editor ul { overflow: hidden; }

/* ---------- HEADER ----------- */

header { width: 100%; z-index: 100; }
#sub-header { position: relative; }

.navbar li.nav-item:hover { background-color: rgba(0, 0, 0, 0.1); }
.navbar ul.navbar-nav > li > a.nav-link { font-size: 0.85rem; font-weight: bold; text-transform: uppercase; }
.navbar ul.navbar-nav > li > a.nav-link { text-align: center; }
.navbar-toggler { color: #fff; border-color: #fff; }
.navbar-toggler-icon { color: #fff; }

.container-logo { -ms-flex: 0 0 280px; flex: 0 0 280px; } 
.definition-rrma { font-weight: bold; }

#header .dropdown-menu { min-width: 200px; max-width: 290px; width: max-content; }
.dropdown-item { padding: .5rem 1.5rem .5rem 1.3rem; white-space: normal; }

#nav-desktop .dropdown-submenu { position: relative; }
#nav-desktop .dropdown-submenu > a { padding: .5rem 1.5rem .5rem 1.3rem!important; white-space: normal; color: inherit!important; }
#nav-desktop .dropdown-submenu > a:after { content: "\f127"; position: absolute; right: 6px; top: 17px; border: none; font: normal normal normal 8px/1 'Elusive-Icons'; }
#nav-desktop .dropdown-submenu > .dropdown-menu { top: 4px; margin-top: 0px; margin-left: 0px; }

#nav-mobile .dropdown-submenu { position: relative; }
#nav-mobile .dropdown-submenu > a { padding: .5rem 3rem!important; }
#nav-mobile .dropdown-submenu > a:after { content: "\f125"; border: none; font: normal normal normal 7px/1 'Elusive-Icons'; margin-left: .5rem; }
#nav-mobile .dropdown-submenu ul li a { padding: .5rem 3rem .5rem 4rem!important; font-size: 80%; }

#nav-mobile a.nav-link { text-align: left; color: rgba(0, 0, 0, 0.4); font-size: 0.9rem; font-weight: bold; text-transform: uppercase; }
#nav-mobile a.nav-link:hover { background: rgba(0, 0, 0, 0.05); } 

#form-search, #nav-mobile { position: relative; }
#input-search:active, #input-search:focus { border-color: transparent; box-shadow: none; -webkit-box-shadow: none; }
.btn-close-dark, .btn-close-light { position: absolute; right: 0; top: 0; }

/* ---------- CAROUSEL ----------- */

.carousel-indicators li { height: 5px; } 

.carousel-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    padding-top: 1em;
    padding-bottom: 2em;
    color: #fff;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3); 
}

.carousel-caption a { color: #fff; text-decoration: none; }

.carousel-fullpage { position: relative; min-height: 100vh; }
.carousel-fullpage .carousel-inner, 
.carousel-fullpage .carousel-item,
.carousel-fullpage .carousel-item img { position: absolute; min-height: 100%; width: 100%; }
.carousel-fullpage .carousel-inner img { display:block; object-fit: cover; object-position: center center; }

/* ---------- PILLS and BUTTONS ----------- */

.nav-pills .nav-link { background-color: transparent; color: #ccc; }
.nav-pills .nav-link:hover { color: #bbb; }
.nav-pills .nav-link.active, .nav-pills .show>.nav-link { color: #fff; }

/* DEBUT TABS */
.nav-tabs { border-bottom: 3px solid; }
.nav-tabs .nav-link {
    font-size: 1.1rem;
    color: #c3c3c3;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    border: none;
}
/* .nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active { color: #fff; background-color: #bec629; } */
/* FIN TABS */

#nav-maps .nav-pills .nav-link { background-color: #efefef!important; color: #a5a5a5!important; border-bottom: 1px solid #a5a5a5; }
#nav-maps .nav-pills .nav-link:hover { background-color: #fbfbfb!important; color: #746e6e!important; }
#nav-maps .nav-pills .nav-link.active { background-color: #ffffff!important; color: #212529!important; border: 1px solid #a5a5a5; border-top: 0; border-bottom: 1px solid #f8f9fa; }
#nav-maps .nav-pills .nav-link.active:hover { background-color: #ffffff!important; color: #212529!important; }

.btn-xs { padding: .2rem .4rem; font-size: .7rem; line-height: 1.2; border-radius: .2rem; }

.btn-white { color: #495057; background-color: #fff; border: 1px solid #ced4da; }
.btn-white:hover { color: #383e43; background-color: #fff; border: 1px solid #bbc2c8; }

.btn-transparent { font-weight: bold; color: rgba(255, 255, 255, 0.9); background-color: rgba(255, 255, 255, 0); border: none; }
.btn-transparent:hover { color: rgba(255, 255, 255, 1); background-color: rgba(255, 255, 255, 0.2); border: none; }

.btn-light-transparent { color: rgba(255, 255, 255, 0.8); background-color: rgba(255, 255, 255, 0.2); border: none; }
.btn-light-transparent:hover { color: rgba(255, 255, 255, 1); background-color: rgba(255, 255, 255, 0.4); border: none; }

.btn-dark-transparent { color: rgba(255, 255, 255, 0.8); background-color: rgba(0, 0, 0, 0.2); border: none; }
.btn-dark-transparent:hover { color: rgba(255, 255, 255, 1); background-color: rgba(0, 0, 0, 0.4); border: none; }

.btn-close-dark, .btn-close-light { background: transparent; color: rgba(0, 0, 0, 0.4); border: none; font-size: 1.3rem; line-height: 1.8; }
.btn-close-dark { color: rgba(0, 0, 0, 0.4); } .btn-close-dark:hover { color: rgba(0, 0, 0, 0.4); }
.btn-close-light { color: rgba(255, 255, 255, 0.6); } .btn-close-light:hover { color: rgba(255, 255, 255, 0.8); }

.btn-facebook { color: #fff !important; background-color: #3b5998; border-color: none; }
.btn-twitter { color: #fff !important; background-color: #55acee; border-color: none; }
.btn-linkedin { color: #fff !important; background-color: #007bb6; border-color: none; }
.btn-youtube { color: #fff !important; background-color: #cd201f; border-color: none; }
.btn-instagram { color: #fff !important; background-color: #e4405f; border-color: none; }
.btn-envelope { color: #fff !important; background-color: #444; border-color: none; }

.badge-lg { font-size: 85%; }
.badge-dark-transparent { color: rgba(255, 255, 255, 1); background-color: rgba(0, 0, 0, 0.25); }
.badge-dark-transparent:hover { color: rgba(255, 255, 255, 1); background-color: rgba(0, 0, 0, 0.4); text-decoration: none; }

.badge-secondary a { color: #fff; }

/* ---------- CONTENT ----------- */

.picto-odd { width: 50px; height: 50px; }

#list-pagination { width: auto !important; }

#container-chiffres { background-image: url(../img/background-map.png); background-position: center center; background-size: cover; }

.label-adherent, .label-projet { 
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 1);
}
.label-adherent { top: 0; right: 0; }
.label-projet { bottom: 1px; left: 0; }

#cpt-adherent .display-4 { font-size: 2.5rem; }

.card-event .card-img-fit {
  position: absolute;
  height: 100%; width: 100%;
  right: 0; top: 0; bottom: 0;
  display:block;
  object-fit: cover; object-position: center center;
}

.card-img-top { height: auto !important; }

.localize {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  padding: 0.1rem 0.3rem;
  font-size: 1.3rem;
  line-height: auto;
  text-align: center;
  border-bottom-left-radius: .5rem;
  border-top-right-radius: .5rem;
  right: 0;
  top: 0;
  z-index: 11;
}
.localize:hover { color: #fff; }

.container-tooltip [disabled] { pointer-events: none; }

.custom-file-label::after { content: "Parcourir"; }

/* ---------- MAP ----------- */

.container-liste-map { position: relative; flex-grow: 1; }

.loader-map { position: absolute; height: 100%; width: 100%; left: 0; right: 0; top: 0; bottom: 0; z-index: 999; }

.content-liste-map {
    position: absolute;
    width: 50%;
    overflow-y: scroll;
    height: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    margin-right: auto;
    margin-left: auto;    
}
.liste-card { flex: 1 0 auto; }

.content-map { position: absolute; height: 100%; width: 50%; right: 0; top: 0; bottom: 0; }
.card-infowindow { max-width: 240px; }
/* .card-infowindow h2 { font-size: 16px; } */
h2.infowindow-title { font-size: 1.3rem; }
.gm-style .gm-style-iw { font-size: 14px !important; font-weight: 400 !important; }

#map-fiche-projet, #map-fiche-ecm { width: 100%; min-height: 300px; height: 300px; }


/* ---------- FOOTER ----------- */

#informations .list-group-item {
    position: relative;
    display: block;
    padding: .25rem 0;
    margin-bottom: -1px;
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

#informations a, footer a { text-decoration: none; }
#informations a:hover, footer a:hover { text-decoration: none; }

#social a { color: rgba(255, 255, 255, 0.6); }

.back-to-top {
  position: fixed;
  display: none;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 44px;
  height: 44px;
  text-align: center;
  font-size: 1.5rem;
  border-radius: 50%;
  right: 15px;
  bottom: 15px;
  transition: background 0.5s;
  z-index: 11;
}

#footer-liste { flex: 0 0 auto; width: 100%; margin-right: auto; margin-left: auto; }

.cookie-notice-container { padding: 40px 20px; }
#cookie-notice { font-size: 15px; }
#cn-notice-text { line-height: 1.8rem; display: block; padding-bottom: 20px !important; }
#cn-notice-text a { text-decoration: underline; color: #ffffff; }

/* ---------- AJOUT DAMIEN ----------- */

input.invalid, textarea.invalid, select.invalid { border-color: #f5c6cb; background-color: #f8d7da; }
.active_taxonomy { font-weight: bold; }
.pass-strength-result { padding: .375rem .75rem !important; width: 100% !important; }
.strong{ font-weight: bold;  }
.wpuf-category-checklist li{ list-style: none; }

/* ---------- MEDIA QUERIES ----------- */

@media (min-width: 1200px) {
  .navbar-nav { display: block; -ms-flex-direction: unset; flex-direction: unset; }
  .navbar-nav > li { display: inline-block; }
}

@media (max-width: 1199px) {
  #big-buttons .lead { font-size: 1.1rem; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .content-liste-map { width: 55%; }
  .content-map { width: 45%; }
}

@media (min-width: 992px) {
  .carousel-control-next-icon, .carousel-control-prev-icon { width: 40px; height: 40px; }
  .rounded-lg-top { border-top-left-radius: .5rem!important; border-top-right-radius: .5rem!important; }
  #carousel-home h2 { font-size: 3.5rem!important; }
}

@media (max-width: 991px) {
  html { font-size: 14px; }
  .navbar-buttons, .navbar-buttons .dropdown, .navbar-buttons .btn { height: 100% !important; }
  .navbar-buttons .btn .fa-2x { font-size: 2.2em; }
  .display-5 { font-size: 2rem; }
  .carousel-caption a h2.display-4 { font-size: 2rem; }
  .content-liste-map { width: 100%; overflow-y: visible; }
  .content-map { width: 100%; }
  .back-to-top i { padding-top: 5px; }
  .content-map { position: relative; height: 760px; width: 100%; right: 0; top: 0; bottom: 0; }
  #carousel-home h2 { font-size: 2.5rem!important; }
}

@media (max-width: 768px) {
  .border-md-right { border: 0; }
  #big-buttons .lead { font-size: 0.9rem; }
  #carousel-home h2 { font-size: 1.3rem!important; }
}

@media (max-width: 577px) {
  .card-event .card-img-fit {
    position: relative;
    height: auto; width: 100%;
  }
}

@media (max-width: 500px) {
  .navbar-buttons .btn { padding-top: 1em !important; font-size: 1em; }
  .navbar-buttons .btn span, .navbar-buttons .dropdown-toggle::after { display: none; }
}

/* =WordPress Core
-------------------------------------------------------------- */
.wp-block-cover, .wp-block-cover-image, .wp-block-image img, .wp-block-media-text__media img { height: auto; }
.alignnone { margin: 5px 20px 20px 0; max-width: 100%; height: auto; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto 5px auto; max-width: 100%; height: auto; }
.alignright { float:right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.alignright { float: right; margin: 5px 0 20px 20px; }
a img.alignnone { margin: 5px 20px 20px 0; }
a img.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { background: #fff; border: 1px solid #f0f0f0; max-width: 96%; padding: 5px; text-align: left; }
.wp-caption.alignnone { margin: 5px 20px 15px 0; }
.wp-caption.alignleft { margin: 5px 20px 15px 0; }
.wp-caption.alignright { margin: 5px 0 20px 20px; }
.wp-caption img { border: 0 none; height: auto; margin: 0; width: 100%; padding: 0; }
.wp-caption p.wp-caption-text { font-size: 12px; line-height: 20px; margin: 0; padding: 5px 0 0 0; width: 100%; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; white-space: nowrap; height: 0; width: 1px; overflow: hidden; }
.screen-reader-text:focus { background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); clip: auto !important; color: #21759b; display: block; font-size: 14px; font-size: 0.875rem; font-weight: bold; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }

