.offres-groupe-ts {display: flex; flex-direction: column; gap: 6rem; position: relative;}

/* === COLONNE FILTRES === */
.offres-groupe-filtres {background-color: var(--couleur-background-dark); width: 100%;}
.offres-groupe-filtres #offres-groupe-count-bar {margin-bottom: 1rem;}
.offres-groupe-filtres #offres-groupe-count-num {display: block; font-size: 5rem; text-align: center; color: var(--couleur-cta); font-family: var(--fontSecondaire);}
.offres-groupe-filtres #offres-groupe-count-label {display: block; font-size: 1.3rem; font-weight: 300; text-align: center;}
.offres-groupe-filtres .filtres-titre {font-size: 1.6rem; display: block; font-weight: 600; margin: 0 auto; text-align: center; cursor: pointer; user-select: none; border: none; padding: 2rem; background-color: var(--couleur-background-light); position: relative; width: 100%;}
.offres-groupe-filtres .filtres-titre::after {content: ' ▾'; padding-left: .6rem;}
.offres-groupe-filtres .filtres-titre::before {content: ''; position: absolute; top: auto; bottom: -1.8rem; left: calc(50% - 2rem); width: 0; height: 0; border-style: solid; border-width: 0 2rem 2rem 2rem; border-color: transparent transparent var(--couleur-background-light) transparent; transform: rotate(180deg);}

/* === PANNEAU FILTRES === */
.liste-filtres-groupe {display: none; flex-direction: column; gap: 1.2rem; background-color: var(--couleur-background-light); border-radius: 0 0 var(--border-radius) var(--border-radius); position: relative; padding: 2rem;}
.liste-filtres-groupe .liste-filtre {margin-bottom: 2rem;}
.liste-filtres-groupe .liste-filtre input, .liste-filtres-groupe .liste-filtre select {width: 100%;}
.liste-filtres-groupe .liste-filtre input:focus-visible, .liste-filtres-groupe .liste-filtre select:focus-visible {outline-color: var(--couleur-cta); outline-style: solid;}
.liste-filtres-groupe .liste-filtre label {font-size: 1.4rem; font-weight: 600;}
.liste-filtres-groupe .liste-filtre label + input, .liste-filtres-groupe .liste-filtre label + select {margin-top: .8rem;}

/* === CHECKBOXES TYPE SALLE === */
.bloc-offres-groupe .liste-checkbox-groupe {flex-direction: column; gap: .4rem; padding: .5rem 0; margin-top: .6rem;}
.bloc-offres-groupe .checkbox-filtre {display: flex; align-items: center; gap: .5rem;}

.carte-offres-filtres .liste-filtre-labels .liste-checkbox-labels {display: none; padding: .5rem 0; z-index: 2; width: 100%;}
.carte-offres-filtres .liste-filtre-labels .liste-checkbox-labels.is-open {display: flex;}
.carte-offres-filtres .liste-filtre-labels .checkbox-label {display: flex; align-items: center; margin-bottom: .3rem;}

.bloc-offres-groupe .checkbox-filtre input[type="checkbox"] {margin-right: 0.5em; width: auto; flex-shrink: 0; padding: 1rem; border-color: #fff;}
.bloc-offres-groupe .checkbox-filtre input[type="checkbox"]:checked {background-color: var(--couleur-principale); border-color: var(--couleur-principale);}
.bloc-offres-groupe .checkbox-filtre label {display: flex; align-items: center; gap: 0.5em; width: auto; margin: 0; font-size: 1.3rem; cursor: pointer; color: var(--couleur-texte-light); font-weight: 400;}


/* === BOUTONS TOGGLE MOBILE === */
.offres-groupe-ts .mobile-alternate {width: 100%; display: flex;}
.offres-groupe-ts .mobile-alternate button {border: none; background-color: var(--couleur-cta); color: #fff; border-radius: 0; text-transform: uppercase; padding: 1.5rem; width: 50%; font-size: 1.6rem; font-weight: 600; opacity: .7; cursor: pointer;}
.offres-groupe-ts .mobile-alternate button.active {opacity: 1;}

/* === CARTE (mobile : cachée par défaut) === */
.offres-groupe-ts .map-container {width: 100%; left: 0; top: 5rem; position: absolute; transform: translateX(-110vw); transition: transform 300ms ease; z-index: 10; overflow: hidden;}
.offres-groupe-ts .map-container.active {height: calc(100vh - 10rem); transform: translateX(0);}
.offres-groupe-filtres.map-active {display: none;}
.offres-groupe-liste.map-active {display: none;}
.offres-groupe-ts .map-expand-btn {display: none;}

/* === COLONNE LISTE === */
.offres-groupe-liste {display: flex; flex-direction: column; width: 100%;}
.offres-groupe-liste .liste-offres {flex: 1; padding: 2rem 0;}
.offres-groupe-liste .liste-offres #offres-groupe-loader {gap: 2rem; flex-wrap: wrap;}

/* === CARDS === */
.offres-groupe-ts .bloc-offre {overflow: hidden; flex-direction: column; transition: all 300ms ease-in-out; width: 100%;}
.offres-groupe-ts .bloc-offre a {text-decoration: none; flex-direction: column; height: 100%; background-color: #fff; position: relative;}
.offres-groupe-ts .bloc-offre .offre-thumb {background-size: cover; background-position: center; height: 20rem; width: 100%; background-color: var(--couleur-background-light); background-repeat: no-repeat; border-radius: var(--border-radius); overflow: hidden;}
.offres-groupe-ts .offre-contenu {padding: 1rem; flex-direction: column; flex-grow: 1;}
.offres-groupe-ts .bloc-offre .commune-cat {font-weight: 400; color: var(--couleur-texte-light); font-size: 1.4rem; width: 100%; margin-top: 0; margin-bottom: .4rem; text-align: center; line-height: normal;}
.offres-groupe-ts .bloc-offre .commune-cat i {margin-right: .3rem; font-size: 1.3rem;}
.offres-groupe-ts .bloc-offre .offre-titre {font-size: 1.6rem; margin: 0 0 0.5rem; font-weight: 700; text-align: center;}
.offres-groupe-ts .bloc-offre .titre-picto {row-gap: .5rem; column-gap: 1rem; align-items: baseline; flex-wrap: wrap;}

/* === BADGES TYPE SALLE === */
.offres-groupe-ts .groupe-types {gap: .4rem; margin-top: .6rem; justify-content: center;}
.offres-groupe-ts .groupe-type-badge {color: var(--couleur-principale); font-size: 1.2rem; font-weight: 500; text-align: center; }

/* === INFINITE SCROLL === */
#offres-groupe-more-loader {position: relative; margin: 10px 0; left: 50%; transform: translateX(-50%); width: 80px;}
#offres-groupe-end-msg {width: 100%; text-align: center; font-size: 1.3rem; font-weight: 600; opacity: .4; padding: 2rem 0 1rem; margin: 0;}
#loader-groupe {position: relative; margin: 20px 0; left: 50%; transform: translateX(-50%); width: 120px;}

/* === MARKERS CARTE === */
.map-marker-wrap {display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));}
.map-marker-body {width: 36px; height: 36px; border-radius: 50%; background: var(--mc, var(--couleur-cta)); display: flex; align-items: center; justify-content: center;}
.map-marker-body i {color: #fff; font-size: 14px;}

/* === POPUP CARTE === */
.leaflet-container {z-index: 0;}
#map-groupe .leaflet-popup .leaflet-popup-content {aspect-ratio: 1/1; width: 20rem; position: relative; border: none;}
#map-groupe .leaflet-popup.popup-has-image .leaflet-popup-content::after {content: ''; width: 100%; height: 100%; position: absolute; top: 0; left: 0; background-color: rgba(0, 0, 0, 0.5);}
#map-groupe .leaflet-popup.popup-no-image .leaflet-popup-content::after {content: ''; width: 100%; height: 100%; position: absolute; top: 0; left: 0; background-color: rgba(0, 0, 0, 0.35);}
#map-groupe .leaflet-popup .popup-content {height: 100%; padding: 2rem 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; background-size: cover; background-repeat: no-repeat;}
#map-groupe .leaflet-popup .popup-content .popup-link {display: inline-flex; align-items: center; align-self: flex-start; margin-top: .8rem; font-size: 1.15rem; font-weight: 700; color: var(--couleur-principale); background-color: rgba(255,255,255,0.92); text-decoration: none; padding: .35rem 1rem; border-radius: 10rem; z-index: 1; position: relative;}
#map-groupe .leaflet-popup .leaflet-popup-content-wrapper {border-radius: var(--border-radius); overflow: hidden; padding: 0;}
#map-groupe .leaflet-popup .leaflet-popup-content-wrapper .leaflet-popup-content {margin: 0;}
#map-groupe .leaflet-popup .popup-content h4, #map-groupe .leaflet-popup .popup-content h3 {color: #fff; margin: 0; font-family: 'Lato', sans-serif; z-index: 1;}
#map-groupe .leaflet-popup .popup-content h4 {font-size: 1.1rem; font-weight: 700; background-color: var(--couleur-principale); color: #fff; width: fit-content; max-width: 55%; padding: .1rem .6rem; margin-bottom: .4rem; border-radius: .4rem; word-break: break-word; overflow-wrap: break-word;}
#map-groupe .leaflet-popup .popup-content h3 {font-size: 1.55rem; font-weight: 700; line-height: normal;}
#map-groupe .leaflet-popup a.leaflet-popup-close-button {color: #fff !important; z-index: 2; right: 1rem; top: 1rem;}
#map-groupe .leaflet-popup.popup-has-image .leaflet-popup-content-wrapper {background-color: rgba(0, 0, 0, 0.5);}
#map-groupe .leaflet-popup.popup-has-image .leaflet-popup-tip {background-color: rgba(0, 0, 0, 0.5);}
#map-groupe .leaflet-popup.popup-no-image .leaflet-popup-content-wrapper {background-color: var(--couleur-principale);}
#map-groupe .leaflet-popup.popup-no-image .leaflet-popup-tip {background-color: color-mix(in srgb, var(--couleur-principale) 65%, black);}

/* === HOVER === */
@media (hover: hover) {
    .offres-groupe-ts .bloc-offre:hover {transform: translateY(-0.3rem);}
    .offres-groupe-ts .map-expand-btn:hover {color: var(--couleur-cta);}
}

/* === TABLETTE === */
@media (min-width: 768px) {
    .offres-groupe-ts .bloc-offre {width: calc(50% - 1rem);}
}

/* === DESKTOP 3 COLONNES === */
@media (min-width: 1025px) {
    .offres-groupe-ts {display: grid; grid-template-columns: 28rem 1fr 35%; align-items: start; width: auto;}
    .offres-groupe-filtres {position: sticky; top: 0; height: 100vh; overflow-y: auto;}
    .offres-groupe-liste {flex: 1; min-width: 0;}
    .offres-groupe-ts .map-wrapper {position: sticky; top: 0; height: 100vh; width: 100%;}
    .offres-groupe-ts .map-container {display: block; position: relative; top: 0; height: 100%; width: 100%; transform: none;}
    .offres-groupe-ts .map-expand-btn {display: flex; position: absolute; top: 50%; left: -0.6rem; transform: translateY(-50%); z-index: 1000; width: 6rem; height: 10rem; border: none; background: #fff; clip-path: path('M 6 18 Q 6 10 12 16 L 42 45 Q 47 51 41 57 L 12 85 Q 6 90 6 82 Z'); cursor: pointer; align-items: center; justify-content: flex-start; padding-left: 1rem; color: var(--couleur-principale); font-size: 3.4rem; font-weight: 400; line-height: 1; transition: color 200ms ease;}
    .offres-groupe-ts.map-expanded .offres-groupe-filtres {display: none;}
    .offres-groupe-ts.map-expanded .offres-groupe-liste {display: none;}
    .offres-groupe-ts.map-expanded .map-wrapper {grid-column: 1 / -1;}
    .offres-groupe-liste.map-active .liste-offres {display: block;}
    .offres-groupe-ts .mobile-alternate {display: none;}
    .offres-groupe-ts .offre-contenu {padding: 1.5rem 2rem;}
    .offres-groupe-filtres .filtres-titre {cursor: auto;}
    .liste-filtres-groupe {display: flex; border-radius: var(--border-radius);}
    .offres-groupe-filtres .filtres-titre {margin: 0 0 2rem; background-color: transparent; padding: 0; cursor: auto;}
    .offres-groupe-liste .liste-offres {padding: 0;}
    .offres-groupe-filtres .filtres-titre::before, .offres-groupe-filtres .filtres-titre::after {display: none;}
    .liste-filtres-groupe::before {content: ''; position: absolute; top: 0; left: calc(50% - 2rem); width: 0; height: 0; border-style: solid; border-width: 0 2rem 2rem 2rem; border-color: transparent transparent #fff transparent; transform: rotate(180deg);}
    .liste-filtres-groupe .liste-filtre {margin-bottom: 0;}
    .offres-groupe-ts .bloc-offre {width: 100%;}
}

@media (min-width: 1400px) {
    .offres-groupe-ts {grid-template-columns: 30rem 1fr 35%;}
    .offres-groupe-ts .bloc-offre {width: calc(50% - 1rem);}
    .liste-filtres-groupe {padding: 5rem 2rem;}
}

@media (min-width: 1700px) {
    .offres-groupe-ts {grid-template-columns: 30rem 1fr 35%;}
}

@media (min-width: 2000px) {
    .offres-groupe-ts .bloc-offre {width: calc(33% - 1.2rem);}

}