/* hero/secondaire-encoches — heros secondaire fendu 4fr/6fr a encoches demi-rondes.
 * Engagement 5 : aucun hexadecimal, valeurs de repli comprises. */

.ivy-hero--secondaire-encoches {
	box-sizing: border-box;
	padding-block-start: calc( 72px + 16px );
	color: var( --ivy-ink, rgb( 14 47 56 ) );
}

.ivy-hero--secondaire-encoches .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 );
	display: grid;
	grid-template-columns: minmax( 0, 4fr ) minmax( 0, 6fr );
	gap: clamp( 24px, 3vw, 48px );
	block-size: var( --ivy-hero-min-height, 100vh );
}

.ivy-hero--secondaire-encoches .ivy-hero__copy {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-block: clamp( 24px, 3vw, 40px ) clamp( 8px, 1.5vw, 24px );
	min-inline-size: 0;
}

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

.ivy-hero--secondaire-encoches .ivy-hero__bottom {
	display: grid;
	gap: 16px;
	justify-items: start;
}

.ivy-hero--secondaire-encoches .ivy-hero__title {
	margin: 0;
	color: var( --ivy-title-color, inherit );
	font-weight: 400;
	line-height: 1.06;
	letter-spacing: -0.01em;
}

.ivy-hero--secondaire-encoches .ivy-hero__title .ivy-hl {
	display: inline;
}

.ivy-hero--secondaire-encoches .ivy-hero__text {
	margin: 0;
	color: var( --ivy-text-color, var( --ivy-muted, rgb( 86 101 106 ) ) );
	line-height: 1.45;
}

.ivy-hero--secondaire-encoches .ivy-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-block-start: 8px;
}

.ivy-hero--secondaire-encoches .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-accent, rgb( 16 74 92 ) );
	color: var( --ivy-cta-color, var( --ivy-on-accent, rgb( 246 241 232 ) ) );
	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 ) );
}

.ivy-hero--secondaire-encoches .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 ) );
}

.ivy-hero--secondaire-encoches .ivy-hero__cta--secondary {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	color: var( --ivy-cta_secondary-color, inherit );
	font-size: var( --ivy-font-body );
	font-weight: 400;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.ivy-hero--secondaire-encoches .ivy-hero__media {
	position: relative;
	border-radius: calc( var( --ivy-radius-surface, 20px ) * 1.4 );
	overflow: hidden;
	min-inline-size: 0;
}

.ivy-hero--secondaire-encoches .ivy-hero__image {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: var( --ivy-hero-pos, 50% 50% );
}

.ivy-hero--secondaire-encoches .ivy-hero__notch {
	position: absolute;
	inset-block-start: 50%;
	inline-size: clamp( 88px, 9vw, 140px );
	aspect-ratio: 1;
	border-radius: 50%;
	background: var( --ivy-surface, rgb( 246 241 232 ) );
}

.ivy-hero--secondaire-encoches .ivy-hero__notch--left {
	inset-inline-start: 0;
	translate: -50% -50%;
}

.ivy-hero--secondaire-encoches .ivy-hero__notch--right {
	inset-inline-end: 0;
	translate: 50% -50%;
}

@media ( hover: hover ) {
	.ivy-hero--secondaire-encoches .ivy-hero__cta:hover {
		background: var( --ivy-deep, rgb( 14 47 56 ) );
	}

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

	.ivy-hero--secondaire-encoches .ivy-hero__cta--secondary:hover {
		text-decoration-thickness: 2px;
	}
}

@media ( max-width: 899px ) {
	.ivy-hero--secondaire-encoches {
		min-block-size: 0 !important;
	}

	.ivy-hero--secondaire-encoches .ivy-hero__inner {
		grid-template-columns: minmax( 0, 1fr );
		block-size: auto;
	}

	.ivy-hero--secondaire-encoches .ivy-hero__copy {
		order: 2;
		gap: 24px;
		padding-block: 8px 0;
	}

	.ivy-hero--secondaire-encoches .ivy-hero__media {
		order: 1;
		aspect-ratio: 4 / 3;
	}

	.ivy-hero--secondaire-encoches .ivy-hero__notch {
		inline-size: 72px;
	}
}

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