/* hero/voile-radial — photo plein ecran, voile radial localise sous le titre, action pilule claire.
 * Engagement 5 : aucun hexadecimal, valeurs de repli comprises. */

.ivy-hero--voile-radial {
	--ivy-heading-motion: none;
	position: relative;
	isolation: isolate;
	min-block-size: var( --ivy-hero-min-height, 100vh );
	display: grid;
	align-items: center;
	overflow: hidden;
	color: var( --ivy-on-deep, rgb( 246 241 232 ) );
}

.ivy-hero--voile-radial .ivy-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.ivy-hero--voile-radial .ivy-hero__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient( ellipse 50% 27% at 50% 54%, rgb( 14 47 56 / 0.74 ) 0%, rgb( 14 47 56 / 0.66 ) 55%, rgb( 14 47 56 / 0 ) 100% ),
		linear-gradient( 180deg, rgb( 14 47 56 / 0.38 ) 0%, rgb( 14 47 56 / 0.24 ) 40%, rgb( 14 47 56 / 0 ) 62%, rgb( 14 47 56 / 0.18 ) 100% );
}

.ivy-hero--voile-radial .ivy-hero__image {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: 50% 35%;
	filter: brightness( 1.06 ) saturate( 1.08 );
}

.ivy-hero--voile-radial .ivy-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.ivy-hero--voile-radial .ivy-hero__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 );
	padding-block-start: var( --ivy-navbar-h, 72px );
	display: grid;
	grid-template-columns: minmax( 0, 860px );
	justify-content: center;
	justify-items: center;
	text-align: center;
	gap: 20px;
}

.ivy-hero--voile-radial .ivy-hero__eyebrow {
	margin: 0;
	color: var( --ivy-eyebrow-color, inherit );
	font-size: calc( var( --ivy-font-body ) * 0.7647 );
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ivy-hero--voile-radial .ivy-hero__title {
	margin: 0;
	color: var( --ivy-title-color, inherit );
	font-size: var( --ivy-font-display );
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -0.01em;
}

.ivy-hero--voile-radial .ivy-hero__text {
	box-sizing: border-box;
	margin: 0 0 8px;
	padding-inline: clamp( 0px, 6vw, 96px );
	color: var( --ivy-text-color, inherit );
	font-size: var( --ivy-font-lead );
	line-height: 1.45;
}

.ivy-hero--voile-radial .ivy-hero__text p {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.ivy-hero--voile-radial .ivy-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-block-size: 48px;
	padding: 0 20px 0 24px;
	border: 0;
	border-radius: var( --ivy-radius-action, 999px );
	background: var( --ivy-on-deep, rgb( 246 241 232 ) );
	color: var( --ivy-cta-color, var( --ivy-deep, rgb( 14 47 56 ) ) );
	font-size: calc( var( --ivy-font-body ) * 0.9412 );
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background-color calc( 250ms * var( --ivy-motion, 1 ) ) var( --ivy-ease, cubic-bezier( 0.16, 1, 0.3, 1 ) ),
		color calc( 250ms * var( --ivy-motion, 1 ) ) var( --ivy-ease, cubic-bezier( 0.16, 1, 0.3, 1 ) );
}

.ivy-hero--voile-radial .ivy-hero__cta .ivy-button__icon {
	inline-size: 1.125rem;
	block-size: 1.125rem;
	margin: 0;
	border-radius: 0;
	background: none;
	transition: transform calc( 250ms * var( --ivy-motion, 1 ) ) var( --ivy-ease, cubic-bezier( 0.16, 1, 0.3, 1 ) );
}

@media ( hover: hover ) {
	.ivy-hero--voile-radial .ivy-hero__cta:hover {
		background: var( --ivy-card, rgb( 255 255 255 ) );
	}

	.ivy-hero--voile-radial .ivy-hero__cta:hover .ivy-button__icon {
		rotate: 0deg;
		transform: translate( 2px, -2px );
	}
}

@media ( max-width: 599px ) {
	.ivy-hero--voile-radial .ivy-hero__media::after {
		background: linear-gradient( 180deg, rgb( 14 47 56 / 0.3 ) 0%, rgb( 14 47 56 / 0.5 ) 26%, rgb( 14 47 56 / 0.68 ) 40%, rgb( 14 47 56 / 0.68 ) 68%, rgb( 14 47 56 / 0.3 ) 84%, rgb( 14 47 56 / 0.2 ) 100% );
	}

	.ivy-hero--voile-radial .ivy-hero__image {
		object-position: 52% 30%;
	}

	.ivy-hero--voile-radial .ivy-hero__inner {
		gap: 16px;
	}

	.ivy-hero--voile-radial .ivy-hero__cta {
		inline-size: 100%;
	}
}

@keyframes ivy-voile-settle {
	from {
		transform: scale( 1.055 );
	}
	to {
		transform: scale( 1 );
	}
}

@media ( prefers-reduced-motion: no-preference ) {
	.ivy-hero--voile-radial .ivy-hero__image {
		animation: ivy-voile-settle calc( 1400ms * var( --ivy-motion, 1 ) ) var( --ivy-ease, cubic-bezier( 0.16, 1, 0.3, 1 ) ) both;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.ivy-hero--voile-radial .ivy-hero__cta,
	.ivy-hero--voile-radial .ivy-hero__cta .ivy-button__icon {
		transition: none;
	}
}
