/*
 * gallery/fiches — fiches d'hebergement en grille. Engagement 5 : aucun
 * hexadecimal. Le nombre de colonnes vient de l'option `cards_per_row`.
 */
.ivy-gallery--fiches { padding: clamp( 80px, 9vw, 120px ) clamp( 20px, 5vw, 64px ); }
.ivy-gallery--fiches .ivy-gallery__inner { max-width: 1280px; margin-inline: auto; }

.ivy-gallery--fiches .ivy-gallery__header { display: grid; grid-template-columns: minmax( 0, 1.1fr ) minmax( 0, .9fr ); gap: 24px 64px; align-items: end; margin-bottom: clamp( 28px, 4vw, 40px ); }
/* L'en-tete en deux colonnes : le texte descend sur la ligne de base du titre (le socle l'etire, `ivy-core.css`). */
.ivy-root.ivy-gallery--fiches .ivy-gallery__header > .ivy-gallery__text { align-self: end; }

.ivy-gallery--fiches .ivy-gallery__heading { display: grid; gap: 18px; }
.ivy-gallery--fiches .ivy-gallery__eyebrow { margin: 0; color: var( --ivy-eyebrow-color, var( --ivy-accent, rgb( 17 17 17 ) ) ); font-size: var( --ivy-font-label ); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.ivy-gallery--fiches .ivy-gallery__title { margin: 0; color: var( --ivy-title-color, var( --ivy-ink, rgb( 17 17 17 ) ) ); line-height: 1.12; }
.ivy-gallery--fiches .ivy-gallery__text { color: var( --ivy-text-color, var( --ivy-muted, rgb( 82 82 82 ) ) ); }
.ivy-gallery--fiches .ivy-gallery__text > * { margin: 0; }

.ivy-gallery--fiches .ivy-gallery__list { display: grid; grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ivy-gallery--fiches[data-cols='3'] .ivy-gallery__list { grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); }
.ivy-gallery--fiches[data-cols='4'] .ivy-gallery__list { grid-template-columns: repeat( 4, minmax( 0, 1fr ) ); }
.ivy-gallery--fiches .ivy-gallery__link { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.ivy-gallery--fiches a.ivy-gallery__link:focus-visible { outline: 2px solid var( --ivy-accent, rgb( 17 17 17 ) ); outline-offset: 4px; border-radius: var( --ivy-radius-action, 4px ); }
.ivy-gallery--fiches .ivy-gallery__photo { display: block; aspect-ratio: 4 / 3; margin-bottom: 10px; overflow: hidden; border-radius: var( --ivy-radius-surface, 16px ); }
.ivy-gallery--fiches .ivy-gallery__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier( .23, 1, .32, 1 ); }
.ivy-gallery--fiches a.ivy-gallery__link:hover .ivy-gallery__photo img { transform: scale( 1.04 ); }
.ivy-gallery--fiches .ivy-gallery__label { color: var( --ivy-item_label-color, var( --ivy-accent, rgb( 17 17 17 ) ) ); font-size: var( --ivy-font-label ); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ivy-gallery--fiches .ivy-gallery__name { margin: 0; color: var( --ivy-item_title-color, var( --ivy-ink, rgb( 17 17 17 ) ) ); font-family: var( --e-global-typography-primary-font-family, inherit ); font-size: var( --ivy-font-h5 ); font-weight: 400; line-height: 1.25; }
.ivy-gallery--fiches .ivy-gallery__meta { color: var( --ivy-item_text-color, var( --ivy-muted, rgb( 82 82 82 ) ) ); font-size: calc( var( --ivy-font-body ) * .9375 ); font-variant-numeric: tabular-nums; }

.ivy-gallery--fiches .ivy-gallery__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.ivy-gallery--fiches .ivy-gallery__note { margin: 0; color: var( --ivy-note-color, var( --ivy-muted, rgb( 82 82 82 ) ) ); }
:where( .ivy-gallery--fiches ) .ivy-gallery__cta { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var( --ivy-radius-action, 999px ); background: var( --ivy-deep, rgb( 17 17 17 ) ); color: var( --ivy-cta-color, var( --ivy-on-deep, rgb( 255 255 255 ) ) ); font-weight: 600; text-decoration: none; }
:where( .ivy-gallery--fiches ) .ivy-gallery__cta--secondary { min-height: 44px; padding: 0; border-radius: 0; background: transparent; color: var( --ivy-cta_secondary-color, var( --ivy-ink, rgb( 17 17 17 ) ) ); text-decoration: underline; text-underline-offset: 4px; }

@media ( max-width: 860px ) {
	.ivy-gallery--fiches .ivy-gallery__header { grid-template-columns: minmax( 0, 1fr ); }
	.ivy-gallery--fiches .ivy-gallery__list,
	.ivy-gallery--fiches[data-cols='3'] .ivy-gallery__list,
	.ivy-gallery--fiches[data-cols='4'] .ivy-gallery__list { grid-template-columns: minmax( 0, 1fr ); }
}
@media ( prefers-reduced-motion: reduce ) {
	.ivy-gallery--fiches .ivy-gallery__photo img { transition: none; }
}
