/* cards/temps-forts — 4 photos verticales egales, voile bas et carrousel mobile.
 * Engagement 5 : aucun hexadecimal, valeurs de repli comprises. */

.ivy-cards--temps-forts {
	padding-block: clamp( 80px, 9vw, 136px );
	color: var( --ivy-ink, rgb( 14 47 56 ) );
}

.ivy-cards--temps-forts .ivy-cards__inner {
	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: calc( 1376px + 2 * clamp( 20px, 2.4vw, 32px ) );
	margin-inline: auto;
	padding-inline: clamp( 20px, 2.4vw, 32px );
}

.ivy-cards--temps-forts .ivy-cards__title {
	--ivy-heading-motion: none;
	margin: 0;
	color: var( --ivy-title-color, inherit );
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.ivy-cards--temps-forts .ivy-cards__text {
	margin: 16px 0 clamp( 40px, 4.5vw, 64px );
	color: var( --ivy-text-color, var( --ivy-muted, rgb( 86 101 106 ) ) );
	font-size: var( --ivy-font-lead );
	line-height: 1.45;
}

.ivy-cards--temps-forts .ivy-cards__text p {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.ivy-cards--temps-forts .ivy-cards__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 16px;
}

.ivy-cards--temps-forts .ivy-cards__list:focus-visible {
	outline-offset: 8px;
}

.ivy-cards--temps-forts .ivy-cards__card {
	position: relative;
	isolation: isolate;
	margin: 0;
	border-radius: calc( var( --ivy-radius-surface, 20px ) * 0.8 );
	overflow: hidden;
	aspect-ratio: 3 / 4.4;
	color: var( --ivy-on-deep, rgb( 246 241 232 ) );
}

.ivy-cards--temps-forts .ivy-cards__photo {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.ivy-cards--temps-forts .ivy-cards__card::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient( to top, rgb( 14 47 56 / 0.9 ) 0%, rgb( 14 47 56 / 0.72 ) 34%, rgb( 14 47 56 / 0 ) 62% );
}

.ivy-cards--temps-forts .ivy-cards__body {
	position: absolute;
	inset: auto 0 0;
	display: grid;
	gap: 8px;
	padding: clamp( 16px, 1.6vw, 24px );
}

.ivy-cards--temps-forts .ivy-cards__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-block-end: 4px;
}

.ivy-cards--temps-forts .ivy-cards__num {
	color: var( --ivy-item_number-color, var( --ivy-mirabelle, rgb( 226 179 60 ) ) );
	font-size: calc( var( --ivy-font-body ) * 0.8824 );
	font-weight: 500;
	line-height: 1.55;
}

.ivy-cards--temps-forts .ivy-cards__pill {
	display: inline-flex;
	padding: 3px 11px;
	border: 1px solid rgb( 246 241 232 / 0.4 );
	border-radius: var( --ivy-radius-action, 999px );
	color: var( --ivy-item_label-color, inherit );
	font-size: calc( var( --ivy-font-body ) * 0.7647 );
	line-height: 1.55;
}

.ivy-cards--temps-forts .ivy-cards__item-title {
	margin: 0;
	color: var( --ivy-item_title-color, inherit );
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.ivy-cards--temps-forts .ivy-cards__item-text {
	margin: 0;
	color: var( --ivy-item_text-color, var( --ivy-on-deep, rgb( 246 241 232 ) ) );
	font-size: calc( var( --ivy-font-body ) * 0.8824 );
	line-height: 1.45;
}

@media ( hover: hover ) and ( prefers-reduced-motion: no-preference ) {
	.ivy-cards--temps-forts .ivy-cards__photo {
		transition: transform calc( 650ms * var( --ivy-motion, 1 ) ) var( --ivy-ease, cubic-bezier( 0.16, 1, 0.3, 1 ) );
	}

	.ivy-cards--temps-forts .ivy-cards__body {
		transition: transform calc( 350ms * var( --ivy-motion, 1 ) ) var( --ivy-ease, cubic-bezier( 0.16, 1, 0.3, 1 ) );
	}

	.ivy-cards--temps-forts .ivy-cards__card:hover .ivy-cards__photo {
		transform: scale( 1.05 );
	}

	.ivy-cards--temps-forts .ivy-cards__card:hover .ivy-cards__body {
		transform: translateY( -3px );
	}
}

@media ( max-width: 899px ) {
	.ivy-cards--temps-forts .ivy-cards__list {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 72%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: clamp( 20px, 2.4vw, 32px );
		margin-inline: calc( -1 * clamp( 20px, 2.4vw, 32px ) );
		padding-inline: clamp( 20px, 2.4vw, 32px );
		padding-block-end: 8px;
		scrollbar-width: none;
	}

	.ivy-cards--temps-forts .ivy-cards__list::-webkit-scrollbar {
		display: none;
	}

	.ivy-cards--temps-forts .ivy-cards__card {
		scroll-snap-align: start;
	}
}
