/*
 * hero/cartes — photo en plein cadre, fiches flottantes, crete en bord bas.
 * Engagement 5 : aucun hexadecimal, valeurs de repli comprises.
 *
 * Le voile n'a aucun fond par defaut, comme sur `plein` : la famille
 * `background` l'ecrit, et un degrade pose ici ne pourrait pas etre retire
 * depuis le panneau.
 */
.ivy-hero--cartes {
	position: relative;
	display: grid;
	align-items: center;
	min-height: var( --ivy-hero-min-height, 100vh );
	overflow: hidden;
	isolation: isolate;
	background: var( --ivy-deep, rgb( 27 30 28 ) );
	color: var( --ivy-on-deep, rgb( 255 255 255 ) );
}
.ivy-hero--cartes .ivy-hero__media,
.ivy-hero--cartes .ivy-hero__overlay { position: absolute; inset: 0; z-index: -2; }
.ivy-hero--cartes .ivy-hero__overlay { z-index: -1; }
.ivy-hero--cartes .ivy-hero__image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var( --ivy-hero-focus, 50% 50% ); }

.ivy-hero--cartes .ivy-hero__inner {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax( 0, 1.05fr ) minmax( 0, .95fr );
	gap: 40px;
	align-items: center;
	/* La boite de 1280 px et sa gouttiere, comme les sections qui suivent. */
	width: min( 100%, calc( 1280px + 2 * clamp( 20px, 5vw, 64px ) ) );
	margin-inline: auto;
	padding: 140px clamp( 20px, 5vw, 64px ) clamp( 120px, 14vh, 170px );
}
.ivy-hero--cartes .ivy-hero__eyebrow {
	margin: 0 0 22px;
	color: var( --ivy-eyebrow-color, var( --ivy-accent-on-deep, rgb( 218 221 207 ) ) );
	font-size: var( --ivy-font-label );
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.ivy-hero--cartes .ivy-hero__title { margin: 0; color: var( --ivy-title-color, var( --ivy-on-deep, rgb( 255 255 255 ) ) ); font-size: var( --ivy-font-display ); line-height: 1.08; }
.ivy-hero--cartes .ivy-hero__text { margin-top: 20px; color: var( --ivy-text-color, var( --ivy-on-deep-muted, rgb( 238 239 233 ) ) ); font-size: calc( var( --ivy-font-body ) * 1.125 ); line-height: 1.55; }
.ivy-hero--cartes .ivy-hero__text > * { margin: 0; }
.ivy-hero--cartes .ivy-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
:where( .ivy-hero--cartes ) .ivy-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: var( --ivy-radius-action, 999px );
	background: var( --ivy-accent-on-deep, rgb( 218 221 207 ) );
	color: var( --ivy-cta-color, var( --ivy-deep, rgb( 27 30 28 ) ) );
	font-weight: 600;
	text-decoration: none;
	transition: transform 180ms cubic-bezier( .23, 1, .32, 1 );
}
:where( .ivy-hero--cartes ) .ivy-hero__cta--secondary { border-color: color-mix( in srgb, var( --ivy-on-deep, rgb( 255 255 255 ) ) 50%, transparent ); background: transparent; color: var( --ivy-cta_secondary-color, var( --ivy-on-deep, rgb( 255 255 255 ) ) ); }
:where( .ivy-hero--cartes ) .ivy-hero__cta:hover { transform: translateY( -2px ); }
:where( .ivy-hero--cartes ) .ivy-hero__cta:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Les fiches : trois positions fixes, un leger flottement decale. */
.ivy-hero--cartes .ivy-hero__cards { position: relative; height: 500px; margin: 0; padding: 0; list-style: none; }
.ivy-hero--cartes .ivy-hero__card { position: absolute; width: 232px; animation: ivy-hero-cartes-flot 7s ease-in-out infinite; }
.ivy-hero--cartes .ivy-hero__card[data-card='0'] { top: 0; right: 44%; rotate: -5deg; }
.ivy-hero--cartes .ivy-hero__card[data-card='1'] { top: 7%; right: 0; rotate: 4deg; z-index: 2; animation-delay: -2.2s; }
.ivy-hero--cartes .ivy-hero__card[data-card='2'] { top: 60%; right: 25%; rotate: -2deg; z-index: 3; animation-delay: -4.4s; }
@keyframes ivy-hero-cartes-flot { 0%, 100% { transform: translateY( 0 ); } 50% { transform: translateY( -10px ); } }
.ivy-hero--cartes .ivy-hero__card-link {
	display: block;
	padding: 8px 8px 14px;
	border-radius: var( --ivy-radius-surface, 18px );
	background: color-mix( in srgb, var( --ivy-surface, rgb( 255 255 255 ) ) 96%, transparent );
	box-shadow: 0 40px 80px -30px color-mix( in srgb, var( --ivy-veil, rgb( 17 17 17 ) ) 70%, transparent );
	color: var( --ivy-ink, rgb( 17 17 17 ) );
	text-decoration: none;
	transition: transform 300ms cubic-bezier( .23, 1, .32, 1 );
}
.ivy-hero--cartes a.ivy-hero__card-link:hover { transform: scale( 1.03 ); }
.ivy-hero--cartes a.ivy-hero__card-link:focus-visible { outline: 2px solid var( --ivy-accent-on-deep, rgb( 218 221 207 ) ); outline-offset: 4px; }
.ivy-hero--cartes .ivy-hero__card-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var( --ivy-radius-surface, 12px ); }
.ivy-hero--cartes .ivy-hero__card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ivy-hero--cartes .ivy-hero__card-body { display: grid; gap: 1px; padding: 12px 8px 0; }
.ivy-hero--cartes .ivy-hero__card-label { color: var( --ivy-card_label-color, var( --ivy-accent, rgb( 17 17 17 ) ) ); font-size: calc( var( --ivy-font-label ) * .85 ); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ivy-hero--cartes .ivy-hero__card-title { color: var( --ivy-card_title-color, var( --ivy-ink, rgb( 17 17 17 ) ) ); font-family: var( --e-global-typography-primary-font-family, inherit ); font-size: var( --ivy-font-h6 ); }
.ivy-hero--cartes .ivy-hero__card-text { color: var( --ivy-card_text-color, var( --ivy-muted, rgb( 82 82 82 ) ) ); font-size: var( --ivy-font-label ); font-variant-numeric: tabular-nums; }

.ivy-hero--cartes .ivy-hero__credit {
	position: absolute;
	bottom: clamp( 70px, 9vw, 128px );
	left: clamp( 16px, 4vw, 48px );
	z-index: 1;
	margin: 0;
	color: var( --ivy-credit-color, color-mix( in srgb, var( --ivy-on-deep, rgb( 255 255 255 ) ) 70%, transparent ) );
	font-size: calc( var( --ivy-font-label ) * .85 );
	letter-spacing: .08em;
}

/* La crete : le fond prend la couleur de la section suivante, le filet se dessine une fois. */
.ivy-hero--cartes .ivy-hero__ridge-wrap { position: absolute; right: 0; bottom: -1px; left: 0; z-index: 2; height: clamp( 56px, 8vw, 120px ); pointer-events: none; }
.ivy-hero--cartes .ivy-hero__ridge-svg { display: block; width: 100%; height: 100%; }
.ivy-hero--cartes .ivy-hero__ridge { fill: var( --ivy-ridge-color, var( --ivy-surface, rgb( 255 255 255 ) ) ); }
.ivy-hero--cartes .ivy-hero__ridge-line {
	fill: none;
	stroke: var( --ivy-ridge_line-color, var( --ivy-accent-on-deep, rgb( 218 221 207 ) ) );
	stroke-width: 1.5;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	vector-effect: non-scaling-stroke;
	animation: ivy-hero-cartes-crete 1400ms cubic-bezier( .23, 1, .32, 1 ) 150ms forwards;
}
@keyframes ivy-hero-cartes-crete { to { stroke-dashoffset: 0; } }

@media ( max-width: 900px ) {
	.ivy-hero--cartes .ivy-hero__inner { grid-template-columns: minmax( 0, 1fr ); }
	.ivy-hero--cartes .ivy-hero__cards { display: none; }
	.ivy-hero--cartes .ivy-hero__credit { right: 16px; left: auto; bottom: clamp( 56px, 8vw, 110px ); font-size: calc( var( --ivy-font-label ) * .77 ); }
}
@media ( prefers-reduced-motion: reduce ) {
	.ivy-hero--cartes .ivy-hero__card { animation: none; }
	.ivy-hero--cartes .ivy-hero__ridge-line { animation: none; stroke-dashoffset: 0; }
	:where( .ivy-hero--cartes ) .ivy-hero__cta,
	.ivy-hero--cartes .ivy-hero__card-link { transition: none; }
}

.ivy-hero--cartes.ivy-hero--focus-top { --ivy-hero-focus: 50% 0%; }
.ivy-hero--cartes.ivy-hero--focus-bottom { --ivy-hero-focus: 50% 100%; }
.ivy-hero--cartes.ivy-hero--focus-left { --ivy-hero-focus: 0% 50%; }
.ivy-hero--cartes.ivy-hero--focus-right { --ivy-hero-focus: 100% 50%; }
.ivy-hero--cartes.ivy-hero--focus-top-left { --ivy-hero-focus: 0% 0%; }
.ivy-hero--cartes.ivy-hero--focus-top-right { --ivy-hero-focus: 100% 0%; }
.ivy-hero--cartes.ivy-hero--focus-bottom-left { --ivy-hero-focus: 0% 100%; }
.ivy-hero--cartes.ivy-hero--focus-bottom-right { --ivy-hero-focus: 100% 100%; }
