/* Styles des shortcodes Adventury */

/* Modale événement */
.adv-evt-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.adv-evt-overlay.is-open{
  opacity: 1;
  visibility: visible;
}
.adv-evt-modal{
  background: #E4E0FF;
  border-radius: 20px;
  padding: 2rem 2rem 2rem 2rem;
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px);
  transition: transform .25s;
}
.adv-evt-overlay.is-open .adv-evt-modal{
  transform: translateY(0);
}
.adv-evt-modal__close{
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #3B3180;
  padding: 0 !important;
  background-color: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adv-evt-modal__close:hover{
  background: none;
  opacity: .8;
}
.adv-evt-modal__title{
  font-weight: 700;
  color: #3B3180;
  margin: 0;
  padding-right: 2rem;
  font-size: 1.25rem;
  text-align: left;
}
.adv-evt-modal__ville{
  font-size: 22px;
  font-weight: 700;
  color: #3B3180;
  margin: 20px 0 0;
  text-align: left;
}
.adv-evt-modal__lieu{
  font-size: 18px;
  font-weight: 500;
  color: #3B3180;
  margin: 0 0 10px;
  text-align: left;
}
.adv-evt-modal__date{
  font-size: 19px;
  font-weight: 500;
  color: #3B3180;
  margin: 0;
  text-align: left;
}
.adv-evt-modal__content{
  margin-top: 20px;
  color: #3B3180;
  font-weight: 300;
  text-align: left;
}
.adv-evt-modal__content p{
  margin: 0 0 .75em;
}
.adv-evt-modal__content p:last-child{
  margin-bottom: 0;
}
.adv-evt-modal__url{
  display: inline-block;
  margin-top: 20px;
  color: #A098D4;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.adv-evt-modal__url:hover{
  color: #A098D4;
  opacity: .75;
}
body.adv-evt-modal-open{
  overflow: hidden;
}

/* Grille cards événements */
.adv-evenements-block .adv-cards-grid{
  display: grid;
  gap: 40px;
}
.adv-evenements-block .adv-cards-grid--3{
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Card événement */
.adv-card--event{
  background: #F7F6FF;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}
.adv-card--event .adv-card__body{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  gap: 0;
  height: 100%;
}
.adv-card--event .adv-card__push{
  flex: 1;
  min-height: 20px;
}
.adv-card--event .adv-card__more-btn{
  margin-top: 0;
  padding: 16px 18px !important;
}
.adv-card--event .adv-card__title{
  font-weight: 700;
  color: #3B3180;
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
}
.adv-card--event .adv-card__location{
  font-size: 22px;
  font-weight: 700;
  color: #3B3180;
  margin: 20px 0 0;
}
.adv-card--event .adv-card__date{
  font-size: 19px;
  font-weight: 500;
  color: #3B3180;
  margin: 0;
}
.adv-card--event .adv-card__excerpt{
  margin: 20px 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  line-height: 1.5;
  font-size: 0.95rem;
}
.adv-card--event .adv-card__excerpt.is-expanded{
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

/* Carte départements [adv_map_departements] */
.adv-map-departements-block .bg-orange{
  background-color: #3B3180;
  color: #fff;
  padding: 1rem 0;
}
.adv-map-departements-block .bdl{
  margin: 0;
  font-size: 1.5rem;
}
.adv-departement-bandeau{
  min-height: 120px;
  background-size: cover;
  background-position: center;
}
.adv-departement-map,
.adv-region-map{
  width: 100%;
}
.adv-departement-map{
  min-height: 600px;
  padding-bottom: 100px;
}
.adv-region-map{
  min-height: 500px;
  padding-bottom: 10px;
}
@media (max-width: 767px) {
  .adv-departement-map,
  .adv-region-map{
    min-height: initial !important;
  }
}

/* Légende jsVectorMap (séries) — carte départements */
.adv-map-departements-block .jvm-series-container.jvm-series-v{
  right: 0;
  top: auto;
  bottom: 1rem;
}
.adv-map-departements-block .jvm-legend-tick-text{
  color: #3B3180;
  font-weight: 500;
  line-height: 1.3;
}

/* Panneau de détail sous la carte */
.adv-departement-detail-panel{
  display: none;
}
.adv-departement-detail-panel.is-visible{
  display: block;
}
.adv-departement-detail{
  padding: 20px;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 5;
}
.adv-departement-detail-fond{
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.adv-dep-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 20px;
}
.adv-dep-close{
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 !important;
  background-color: transparent !important;
  color: #3B3180;
}
.adv-dep-titre{
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: #3B3180;
}
.adv-dep-coordonnees-label{
  font-weight: 800;
  font-size: 16px;
  color: #A098D4;
  margin-bottom: 20px;
}
.adv-dep-org{
  margin-bottom: 0.25rem;
}
.adv-dep-org p{
  margin: 0;
  color: #3B3180;
  font-weight: 300;
}
.adv-dep-org-nom{
  font-weight: 600;
}
.adv-dep-org a{
  color: #A098D4;
  font-weight: 500;
  text-decoration: none;
}
.adv-dep-org a:hover{
  text-decoration: underline;
}
.adv-dep-empty{
  color: #3B3180;
  margin: 0;
}
.adv-dep-contact-link{
  padding: 12px 18px 12px 18px;
  background-color: #3B3180;
  border-radius: 99px;
  color: white;
  font-weight: 800;
  font-family: "League Spartan";
  margin-top: 20px;
  display: block;
  width: max-content;
  line-height: 1;
}
.adv-dep-contact-link:hover{
  color: white !important;
}


/* anciens sélecteurs conservés pour compatibilité */
.adv-departement-detail h3{
  margin-top: 0;
}
.adv-departement-organismes{
  list-style: none;
  padding-left: 0;
}
.adv-departement-link{
  display: inline-block;
  margin-top: 0.5rem;
  color: #e74453;
}

/* Carte régions [adv_map_regions] */
.adv-region-detail-panel{
  display: none;
}
.adv-region-detail-panel.is-visible{
  display: block;
}
.adv-region-detail{
  padding: 20px;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 5;
}
.adv-region-detail-fond{
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.adv-reg-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 20px;
}
.adv-reg-close{
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 !important;
  background-color: transparent !important;
  color: #3B3180;
}
.adv-reg-titre{
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: #3B3180;
}
.adv-reg-coordonnees-label{
  font-weight: 800;
  font-size: 16px;
  color: #A098D4;
  margin-bottom: 20px;
}
.adv-reg-org{
  margin-bottom: 0.25rem;
}
.adv-reg-org p{
  margin: 0;
  color: #3B3180;
  font-weight: 300;
}
.adv-reg-org-nom{
  font-weight: 600;
}
.adv-reg-org a{
  color: #A098D4;
  font-weight: 500;
  text-decoration: none;
}
.adv-reg-org a:hover{
  text-decoration: underline;
}
.adv-reg-empty{
  color: #3B3180;
  margin: 0;
}
.adv-reg-label{
  font-weight: 600;
  color: #3B3180;
}

/* Tableau communes [adv_table_communes] */
.dt-empty{
  display: none;
}
.adv-col-fleurs{
  white-space: nowrap;
  min-width: 127px;
  vertical-align: middle;
}
.adv-col-fleurs-inner{
  display: flex;
  align-items: center;
  gap: 8px;
}
.adv-fleur-icon{
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 22px;
}
/* Centrage des shortcodes commune (département, fleurs, habitants) */
.adv-commune-shortcode-center{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}
.adv-commune-fleurs{
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.adv-commune-fleurs .adv-fleur-icon{
  width: auto;
  height: auto;
}
.adv-no-flower{
  color: #bbb;
}
.adv-commune-link{
  color: #A098D4;
  font-weight: 800;
  text-decoration: none;
}
.adv-commune-link:hover{
  text-decoration: underline;
  color: #3B3180;
}
.adv-col-desc .adv-desc-text{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.88rem;
  color: #444;
  line-height: 1.45;
}
.adv-col-num{
  text-align: right;
  white-space: nowrap;
  color: #3B3180;
  font-weight: 500;
}

@media (max-width: 767px) {
  div.dt-container .dt-paging .dt-paging-button.previous {
        display: inline !important;
    }
 
    div.dt-container .dt-paging .dt-paging-button.next {
        display: inline !important;
    }
 
    div.dt-container .dt-paging .dt-paging-button,
    div.dt-container .dt-paging span .ellipsis {
        display: none !important;
    }
}
/* Palmarès [adv_palmares] */
.adv-palmares-block{
  max-width: 1038px;
  margin: 0 auto;
  padding: 1.5rem 0;
  position: relative;
}
.adv-palmares-title{
  margin-bottom: 2rem;
  font-size: 1.75rem;
  text-align: center;
}
.adv-palmares-section{
  margin-bottom: 3rem;
}
/* Calque décoratif pleine largeur viewport (les SVG en left:0 / right:0 se calent sur l’écran, pas sur les 1200px du bloc) */
.adv-palmares-decor-layer{
  position: absolute;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin-left: -50vw;
  top: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
/* Ancré en bas du bloc palmarès (illustration de fin) */
.adv-palmares-decor-layer--end{
  top: auto;
  bottom: 0;
}
.adv-palmares-end-decor{
  pointer-events: none;
}
.adv-palmares-end-illus-left{
  position: absolute;
  left: 0;
  bottom: 1400px;
  max-width: 100%;
  height: auto;
  pointer-events: none;
}
.adv-palmares-section--fleur-or{
  position: relative;
}
.adv-palmares-section--fleur-or > *:not(.adv-palmares-decor-layer){
  position: relative;
  z-index: 1;
}
.adv-palmares-section--nouvelles-4{
  position: relative;
}
.adv-palmares-section--prix-nationaux{
  position: relative;
}
.adv-palmares-section--renouvellement-4{
  position: relative;
  z-index: 1;
}
.adv-palmares-section__title{
  font-weight: 700 !important;
  font-size: 30px !important;
  line-height: 1 !important;
}
.adv-palmares-empty{
  margin: 0;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 6px;
  color: #666;
  font-style: italic;
}
.adv-palmares-block .adv-cards-grid{
  display: grid;
  gap: 1.25rem;
}
.adv-palmares-block .adv-cards-grid--3{
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
/* Grilles paginées du palmarès : 3 × 3 cartes par « page » visuelle sur grand écran */
.adv-palmares-block .adv-palmares-paginated__grid.adv-cards-grid--3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px){
  .adv-palmares-block .adv-palmares-paginated__grid.adv-cards-grid--3{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px){
  .adv-palmares-block .adv-cards-grid--3{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .adv-palmares-block .adv-palmares-paginated__grid.adv-cards-grid--3{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.adv-palmares-pagination.adv-map-pagination:empty,
.adv-evenements-pagination.adv-map-pagination:empty{
  display: none;
}

.adv-palmares-card{
  display: block;
  text-decoration: none;
  color: inherit;
}
.adv-palmares-card__title{
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -1px;
  color: #A098D4 !important;
}

.adv-palmares-card__img{
  border-radius: 10px !important;
  height: 222px !important;
  object-fit: cover;
  width: 100%;
}

.adv-palmares-section__image{
  display: block;
  position: relative;
  margin: auto;
  margin-bottom: 20px;
}

.adv-palmares-subsection--prix-dist{
    margin-top: 72px;
}

.adv-palmares-subsection__image{
  display: block;
  margin: 0 auto 12px;
  max-width: 100%;
  height: auto;
}

.adv-palmares-subsection__title{
  font-weight: 700 !important;
  font-size: 30px !important;
  line-height: 1 !important;
}

.adv-palmares-separator svg{
  display: block;
  text-align: center;
  margin-top: 72px;
  margin-bottom: 72px;
  margin-left: auto;
  margin-right: auto;
}




/* Galerie [adv_galerie_photos] + lightbox Elementor 
   Forcer l'affichage des flèches de navigation de la lightbox Elementor */
.elementor-lightbox .elementor-swiper-button,
.elementor-lightbox .elementor-swiper-button-prev,
.elementor-lightbox .elementor-swiper-button-next {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 99 !important;
}

/* Wrapper full-width avec scroll horizontal */
.adv-gallery-wrap {
  width: 99vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: #A098D4 transparent;
}

.adv-gallery-wrap.is-dragging {
  cursor: grabbing;
}

.adv-gallery-wrap::-webkit-scrollbar {
  height: 5px;
}
.adv-gallery-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.adv-gallery-wrap::-webkit-scrollbar-thumb {
  background: #A098D4;
  border-radius: 3px;
}

/* Grille : 2 rangées fixes, colonnes qui s'étendent vers la droite */
.adv-gallery {
  display: grid;
  grid-template-rows: repeat(2, 200px);
  grid-auto-columns: 200px;
  grid-auto-flow: column dense;
  gap: 5px;
  width: max-content;
  padding: 0 5px 5px;
}

.adv-gallery__item {
  display: block;
  overflow: hidden;
}

.adv-gallery__item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.adv-gallery__item:hover img {
  transform: scale(1.04);
}

.adv-gallery__item.horizontal { grid-column: span 2; }
.adv-gallery__item.vertical   { grid-row: span 2; }
.adv-gallery__item.big        { grid-column: span 2; grid-row: span 2; }

/* Fiche commune [adv_commune_fiche] */
/* Nav fixe latérale */
.adv-fiche-nav {
  position: fixed;
  left: calc(50% + 540px);
  top: 30%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.adv-fiche-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 71px;
  height: 64px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.adv-fiche-nav__item:hover {
  transform: scale(1.1);
  opacity: 1;
}

.adv-fiche-nav__blob {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.adv-fiche-nav__icon {
  position: relative;
  flex-shrink: 0;
}

.adv-commune-fiche {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.adv-fiche-section {
  padding-block: 2rem;
}

.adv-fiche-section__titre {
  margin-block-end: 1rem;
}

/* Séparateur SVG */
.adv-fiche-sep {
  display: flex;
  justify-content: center;
  margin-block: 72px;
}

@media (max-width: 767px) {
  .adv-fiche-sep {
    margin-block: 36px;
  }
}

.adv-fiche-sep svg {
  width: auto;
  height: 12px;
}

/* Section Contact : 2 colonnes 50/50 */
.adv-fiche-contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.adv-fiche-contact-cols__sous-titre {
  margin-block-end: 20px;
  font-weight: 800;
  font-size: 18px;
  color: #A098D4 !important;
  line-height: 0.5;
}

@media (max-width: 640px) {
  .adv-fiche-contact-cols {
    grid-template-columns: 1fr;
  }
}


.adv-commune-bandeau-image{
  width: 100vw !important;
  height: 400px !important;
  object-fit: cover;
  object-position: center center;
}

/* Bloc contact commune [adv_commune_contact_bloc] */
.adv-contact-bloc__adresse,
.adv-contact-bloc__ligne,
.adv-organismes-contact__rs {
  margin-block-end: 0;
}

.adv-contact-bloc a,
.adv-organismes-contact a {
  font-weight: 500;
  color: #A098D4;
}

/* Slider HP communes [adv_slider_commune_hp_*] */
.adv-slider-hp--image {
  width: 100%;
  height: 100%;
}

.adv-slider-hp__viewport {
  position: relative;
  height: 100%;
  aspect-ratio: 1920 / 832;
  overflow: hidden;
  background: #E4E0FF;
  width: 100%;
}

.adv-slider-hp__panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.adv-slider-hp__panel.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.adv-slider-hp__img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  max-height: 100%;
  object-position: center center !important;
}

.adv-slider-hp__img--empty {
  background: linear-gradient(135deg, #E4E0FF 0%, #d8d2f5 100%);
}

.adv-slider-hp__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1rem;
  text-align: center;
  color: #555;
  font-size: 0.95rem;
}

.adv-slider-hp__text-wrap {
  position: relative;
  height: 7.2lh;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adv-slider-hp__text-panel {
  display: none;
}

.adv-slider-hp__text-panel.is-active {
  display: block;
}

.adv-slider-hp__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adv-slider-hp__text h1,
.adv-slider-hp__text h2,
.adv-slider-hp__text h3,
.adv-slider-hp__text h4{
  display: none !important;
}

.adv-slider-hp__text p {
  margin: 0 0 0.5em;
}

.adv-slider-hp__text p:last-child {
  margin-bottom: 0;
}

.adv-slider-hp__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.adv-slider-hp__dot {
  width: 10px !important;
  height: 10px !important;
  padding: 0 !important;
  border: none;
  border-radius: 50%;
  background: #fff !important;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.adv-slider-hp__dot:hover {
  background: #E30613 !important;
}

.adv-slider-hp__dot.is-active {
  background: #E30613 !important;
}

.adv-slider-hp__nom-panel {
  display: none;
}

.adv-slider-hp__nom-panel.is-active {
  display: block;
}

.adv-slider-hp__nom-link {
  color: #fff !important;
  text-decoration: none;
}

.adv-slider-hp__nom-link:hover {
  text-decoration: none;
}