/*
 * gallery/defile — fiches d'hebergement sur une piste horizontale. Engagement
 * 5 : aucun hexadecimal. La piste deborde la boite de 1280 px jusqu'aux bords
 * de l'ecran (`calc( 50% - 50vw )`) et rend la meme valeur en marge interne :
 * la premiere fiche reste alignee sur le titre.
 */
.ivy-gallery--defile { padding: clamp( 80px, 9vw, 120px ) clamp( 20px, 5vw, 64px ); overflow-x: clip; }
.ivy-gallery--defile .ivy-gallery__inner { max-width: 1280px; margin-inline: auto; }

.ivy-gallery--defile .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--defile .ivy-gallery__header > .ivy-gallery__text { align-self: end; }

.ivy-gallery--defile .ivy-gallery__heading { display: grid; gap: 18px; }
.ivy-gallery--defile .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--defile .ivy-gallery__title { margin: 0; color: var( --ivy-title-color, var( --ivy-ink, rgb( 17 17 17 ) ) ); line-height: 1.12; }
.ivy-gallery--defile .ivy-gallery__text { color: var( --ivy-text-color, var( --ivy-muted, rgb( 82 82 82 ) ) ); }
.ivy-gallery--defile .ivy-gallery__text > * { margin: 0; }

.ivy-gallery--defile .ivy-gallery__list { display: flex; gap: 20px; margin: 0 calc( 50% - 50vw ); padding: 0 calc( 50vw - 50% ) 12px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-padding-inline: max( clamp( 20px, 5vw, 64px ), calc( ( 100vw - 1280px ) / 2 ) ); scroll-snap-type: x mandatory; scrollbar-width: thin; list-style: none; }
.ivy-gallery--defile .ivy-gallery__list:focus-visible { outline: 2px solid var( --ivy-accent, rgb( 17 17 17 ) ); outline-offset: -2px; }
.ivy-gallery--defile .ivy-gallery__item { flex: 0 0 clamp( 260px, 30vw, 360px ); scroll-snap-align: start; }
.ivy-gallery--defile .ivy-gallery__link { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.ivy-gallery--defile 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--defile .ivy-gallery__photo { display: block; aspect-ratio: 4 / 3; margin-bottom: 12px; overflow: hidden; border-radius: var( --ivy-radius-surface, 16px ); }
.ivy-gallery--defile .ivy-gallery__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier( .23, 1, .32, 1 ); }
.ivy-gallery--defile a.ivy-gallery__link:hover .ivy-gallery__photo img { transform: scale( 1.04 ); }
.ivy-gallery--defile .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--defile .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--defile .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--defile .ivy-gallery__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.ivy-gallery--defile .ivy-gallery__note { margin: 0; color: var( --ivy-note-color, var( --ivy-muted, rgb( 82 82 82 ) ) ); }
:where( .ivy-gallery--defile ) .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--defile ) .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--defile .ivy-gallery__header { grid-template-columns: minmax( 0, 1fr ); }
}
@media ( prefers-reduced-motion: reduce ) {
	.ivy-gallery--defile .ivy-gallery__photo img { transition: none; }
}
