/* ==========================================================================
   Exposants : listes, vignettes, fiches et recherche
   (remplace Dynamic.ooo, Search & Filter Pro et le CSS personnalisé d'Elementor Pro)
   Valeurs reprises de l'affichage d'origine (nov. 2026)
   ========================================================================== */

/* ---------- Grille (3 colonnes, 2 sur tablette, 1 sur mobile) ---------- */
.iw-expo-grid {display: flex; flex-wrap: wrap; margin-left: -15px; margin-right: -15px;}
.iw-expo-item {box-sizing: border-box; width: 33.3333%; padding: 0 15px 35px;}
.iw-expo-item--hidden {display: none;}
@media (max-width: 1024px) { .iw-expo-item {width: 50%;} }
@media (max-width: 767px) { .iw-expo-item {width: 100%;} }

/* ---------- Barre de filtres ---------- */
.iw-expo-filters {margin-bottom: 20px; font-family: Lato, sans-serif; font-size: 16px; line-height: 1.8;}
.iw-expo-filters a {font-weight: 600; color: #211D45; text-transform: uppercase; text-decoration: none;}
.iw-expo-filters .filter-active a, .iw-expo-filters a:hover {color: #009FE3;}
.iw-expo-filters .filters-separator {color: #211D45;}

/* ---------- Vignette : voile gris au survol (ancien effet Dynamic.ooo) ---------- */
.iw-expo-item .iwbg--featured {transition: box-shadow 300ms ease;}
.iw-expo-item .iwbg--featured:hover {box-shadow: inset 0 0 0 2000px rgba(122, 122, 122, .45);}

/* ---------- Termes (secteurs d'activité) ---------- */
.iw-terms ul {margin: 0; padding: 0; list-style: none;}
.iw-terms li {display: inline;}
.iw-terms--vignette {text-align: center; font-family: Lato, sans-serif; font-size: 15px; line-height: 1.8; color: #009FE3; text-transform: uppercase;}
.iw-terms--fiche {font-family: Oswald, sans-serif; font-size: 18px; font-weight: 500; line-height: 2.3; letter-spacing: .8px; color: #fff; text-transform: uppercase;}

/* ---------- Fiche ---------- */
.image-principale {height: 400px;}
.image-principale img, .iw-featured {display: block; width: 100%; height: 100%; object-fit: contain;}
.iw-acf-line {font-family: Lato, sans-serif; font-size: 16px; line-height: 1.8; color: #000;}

/* Galerie justifiée avec visionneuse Elementor (ancien widget « ACF Gallery » de Dynamic.ooo) */
.iw-gallery {display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 0;}
.iw-gallery__item {position: relative; display: block; height: var(--iw-row, 150px); overflow: hidden;}
.iw-gallery__item img {display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease;}
.iw-gallery__item:hover img {transform: scale(1.05);}
.iw-gallery__filler {flex-grow: 10;}

/* ---------- Recherche (ancien formulaire Search & Filter) ---------- */
.iw-expo-search ul {margin: 0; padding: 0; list-style: none; text-align: center;}
.iw-expo-search > ul > li {display: inline-block; text-align: center; vertical-align: middle; padding: 0 20px; margin-bottom: 10px;}
.iw-expo-search .sf-field-search input {min-width: 260px;}
.iw-expo-search .screen-reader-text {position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;}
.iw-expo-empty {text-align: center;}
@media (max-width: 767px) {
	.iw-expo-search > ul > li {display: block; padding: 0;}
	.iw-expo-search .sf-field-search input, .iw-expo-search select {width: 100%; min-width: 0;}
}

/* Fil d'Ariane Yoast (remplace les widgets fil d'Ariane de Dynamic.ooo et d'Elementor Pro) */
.iw-breadcrumb {font-family: Lato, sans-serif; font-size: 16px; line-height: 1.8; color: #000;}
.iw-breadcrumb a {color: #000;}

/* ---------- Galeries d'images (ancien widget « Galerie » d'Elementor Pro) ---------- */
.iw-images {display: grid; gap: var(--iw-gap, 10px); grid-template-columns: repeat(var(--iw-cols, 4), minmax(0, 1fr));}
.iw-images--justified {display: flex; flex-wrap: wrap;}
.iw-images__item {position: relative; display: block; overflow: hidden;}
.iw-images--grid .iw-images__item {padding-bottom: var(--iw-ratio, 66.67%);}
.iw-images--grid .iw-images__item img {position: absolute; inset: 0;}
.iw-images--justified .iw-images__item {height: var(--iw-row, 200px);}
.iw-images__item img {display: block; width: 100%; height: 100%; object-fit: cover;}
.iw-images__overlay {position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity 300ms ease;}
.iw-images__item:hover .iw-images__overlay {opacity: 1;}
.iw-images__filler {flex-grow: 10;}
@media (max-width: 1024px) { .iw-images--grid {grid-template-columns: repeat(min(var(--iw-cols, 4), 2), minmax(0, 1fr));} }
@media (max-width: 767px) { .iw-images--grid {grid-template-columns: repeat(1, minmax(0, 1fr));} .iw-images--justified .iw-images__item {height: calc(var(--iw-row, 200px) * .6);} }

/* Séparateur des secteurs d'activité */
.iw-terms .dce-separator {margin: 0 .2em;}

/* Chargement de la suite */
.iw-expo-more {text-align: center; margin: 10px 0 30px;}
.iw-expo-more__btn {display: inline-block; padding: 10px 20px; font-family: Lato, sans-serif; font-size: 13px; color: #fff; background: #211D45; border-radius: 2px; text-decoration: none;}
.iw-expo-more__btn:hover {color: #fff; background: #009FE3;}
