/*
 * cards/affiches — affiches photo, texte sur degrade, rangees equilibrees
 * sur six pistes. Engagement 5 : le degrade lit le voile du kit.
 */
.ivy-cards--affiches { padding: clamp( 80px, 9vw, 120px ) clamp( 20px, 5vw, 64px ); }
.ivy-cards--affiches .ivy-cards__inner { max-width: 1280px; margin-inline: auto; }
.ivy-cards--affiches .ivy-cards__head { display: grid; grid-template-columns: minmax( 0, 1.1fr ) minmax( 0, .9fr ); gap: 24px 64px; align-items: end; margin-bottom: clamp( 28px, 4vw, 40px ); }
.ivy-cards--affiches .ivy-cards__head-group { display: grid; gap: 18px; }
.ivy-cards--affiches .ivy-cards__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-cards--affiches .ivy-cards__title { margin: 0; color: var( --ivy-title-color, var( --ivy-ink, rgb( 17 17 17 ) ) ); line-height: 1.12; }
.ivy-cards--affiches .ivy-cards__intro { color: var( --ivy-text-color, var( --ivy-muted, rgb( 82 82 82 ) ) ); }
.ivy-cards--affiches .ivy-cards__intro > * { margin: 0; }
.ivy-cards--affiches .ivy-cards__aside { display: grid; justify-items: start; gap: 14px; }
.ivy-cards--affiches .ivy-cards__cta { display: inline-flex; align-items: center; min-height: 44px; color: var( --ivy-cta-color, var( --ivy-ink, rgb( 17 17 17 ) ) ); font-weight: 600; text-decoration: none; }
.ivy-cards--affiches .ivy-cards__cta:hover { text-decoration: underline; text-underline-offset: 4px; }

.ivy-cards--affiches .ivy-cards__affiches { display: grid; grid-template-columns: repeat( 6, minmax( 0, 1fr ) ); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ivy-cards--affiches .ivy-cards__affiche { position: relative; display: grid; grid-column: span 2; align-items: end; min-height: 340px; overflow: hidden; isolation: isolate; border-radius: var( --ivy-radius-surface, 20px ); }
/* Deux ou quatre cartes : deux par rangee. Cinq : deux grandes, puis trois. */
.ivy-cards--affiches .ivy-cards__affiches:is( [data-count='1'], [data-count='2'], [data-count='4'] ) .ivy-cards__affiche,
.ivy-cards--affiches .ivy-cards__affiches[data-count='5'] .ivy-cards__affiche:nth-child( -n + 2 ) { grid-column: span 3; min-height: 420px; }
.ivy-cards--affiches .ivy-cards__affiches[data-count='1'] .ivy-cards__affiche { grid-column: 1 / -1; }
.ivy-cards--affiches .ivy-cards__affiche-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier( .22, 1, .36, 1 ); }
.ivy-cards--affiches .ivy-cards__affiche:is( :hover, :focus-within ) .ivy-cards__affiche-image { transform: scale( 1.04 ); }
.ivy-cards--affiches .ivy-cards__veil { position: absolute; inset: 0; z-index: -1; }
/* Le degrade de lecture appartient a l'affiche ; le voile (partie `overlay`) s'y ajoute par instance. */
.ivy-cards--affiches .ivy-cards__affiche::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient( 180deg, transparent 35%, color-mix( in srgb, var( --ivy-veil, rgb( 17 17 17 ) ) 90%, transparent ) ); pointer-events: none; }
.ivy-cards--affiches .ivy-cards__affiche-body { display: grid; gap: 4px; padding: 24px; }
.ivy-cards--affiches .ivy-cards__label { color: var( --ivy-number-color, var( --ivy-accent-on-deep, rgb( 202 194 181 ) ) ); font-size: calc( var( --ivy-font-label ) * .92 ); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ivy-cards--affiches .ivy-cards__affiche-title { margin: 0; color: var( --ivy-item_title-color, var( --ivy-on-deep, rgb( 255 255 255 ) ) ); line-height: 1.15; }
.ivy-cards--affiches .ivy-cards__affiche-link { color: inherit; text-decoration: none; }
.ivy-cards--affiches .ivy-cards__affiche-link::after { content: ""; position: absolute; inset: 0; }
.ivy-cards--affiches .ivy-cards__affiche-link:focus-visible { outline: none; }
.ivy-cards--affiches .ivy-cards__affiche:has( .ivy-cards__affiche-link:focus-visible ) { outline: 3px solid var( --ivy-accent, rgb( 17 17 17 ) ); outline-offset: 3px; }
.ivy-cards--affiches .ivy-cards__affiche-text { margin: 0; color: var( --ivy-item_text-color, var( --ivy-on-deep-muted, rgb( 205 205 201 ) ) ); }
.ivy-cards--affiches .ivy-cards__credit { position: absolute; top: 10px; right: 12px; left: 12px; color: var( --ivy-credit-color, color-mix( in srgb, var( --ivy-on-deep, rgb( 255 255 255 ) ) 75%, transparent ) ); font-size: calc( var( --ivy-font-label ) * .77 ); text-align: right; }

@media ( max-width: 860px ) {
	.ivy-cards--affiches .ivy-cards__head { grid-template-columns: minmax( 0, 1fr ); }
	.ivy-cards--affiches .ivy-cards__affiches { grid-template-columns: minmax( 0, 1fr ); }
	.ivy-root.ivy-cards--affiches .ivy-cards__affiches > .ivy-cards__affiche { grid-column: auto; min-height: 300px; }
}
@media ( prefers-reduced-motion: reduce ) {
	.ivy-cards--affiches .ivy-cards__affiche-image { transition: none; }
}
