/* cta/preestimation — titre centre et carte de pre-estimation GET a recapitulatif.
 * Engagement 5 : aucun hexadecimal, valeurs de repli comprises. */

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

.ivy-cta--preestimation .ivy-cta__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-cta--preestimation .ivy-cta__title {
	--ivy-heading-motion: none;
	margin: 0;
	color: var( --ivy-title-color, inherit );
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-align: center;
}

.ivy-cta--preestimation .ivy-cta__text {
	margin: 16px auto 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;
	text-align: center;
}

.ivy-cta--preestimation .ivy-cta__text p {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.ivy-cta--preestimation .ivy-cta__card {
	display: grid;
	grid-template-columns: minmax( 0, 1.4fr ) minmax( 0, 1fr );
	max-inline-size: 980px;
	margin-inline: auto;
	border-radius: calc( var( --ivy-radius-surface, 20px ) * 1.4 );
	background: var( --ivy-card, rgb( 255 255 255 ) );
	overflow: hidden;
}

.ivy-cta--preestimation .ivy-cta__fields {
	display: grid;
	gap: 24px;
	padding: clamp( 24px, 3vw, 40px );
}

.ivy-cta--preestimation .ivy-cta__fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-inline-size: 0;
}

.ivy-cta--preestimation .ivy-cta__fieldset legend,
.ivy-cta--preestimation .ivy-cta__field label {
	display: block;
	margin: 0 0 10px;
	padding: 0;
	font-size: calc( var( --ivy-font-body ) * 0.8235 );
	font-weight: 500;
	line-height: 1.55;
}

.ivy-cta--preestimation .ivy-cta__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ivy-cta--preestimation .ivy-cta__pills label {
	position: relative;
	margin: 0;
}

.ivy-cta--preestimation .ivy-cta__pills input {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
}

.ivy-cta--preestimation .ivy-cta__pills span {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	padding: 0 18px;
	border: 1px solid var( --ivy-line, rgb( 14 47 56 / 0.12 ) );
	border-radius: var( --ivy-radius-action, 999px );
	font-size: var( --ivy-font-body );
	line-height: 1.55;
	cursor: pointer;
	transition:
		background-color calc( 200ms * var( --ivy-motion, 1 ) ) var( --ivy-ease, cubic-bezier( 0.16, 1, 0.3, 1 ) ),
		color calc( 200ms * var( --ivy-motion, 1 ) ) var( --ivy-ease, cubic-bezier( 0.16, 1, 0.3, 1 ) ),
		border-color calc( 200ms * var( --ivy-motion, 1 ) ) var( --ivy-ease, cubic-bezier( 0.16, 1, 0.3, 1 ) );
}

.ivy-cta--preestimation .ivy-cta__pills input:checked + span {
	background: var( --ivy-accent, rgb( 16 74 92 ) );
	color: var( --ivy-on-accent, rgb( 246 241 232 ) );
	border-color: transparent;
}

.ivy-cta--preestimation .ivy-cta__pills input:focus-visible + span {
	outline: 2px solid var( --ivy-accent, rgb( 16 74 92 ) );
	outline-offset: 2px;
}

.ivy-cta--preestimation .ivy-cta__field {
	display: grid;
}

.ivy-cta--preestimation .ivy-cta__field input {
	box-sizing: border-box;
	min-block-size: 48px;
	padding: 0 16px;
	border: 1px solid var( --ivy-line, rgb( 14 47 56 / 0.12 ) );
	border-radius: calc( var( --ivy-radius-surface, 20px ) * 0.4 );
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: var( --ivy-font-body );
}

.ivy-cta--preestimation .ivy-cta__recap {
	display: grid;
	align-content: start;
	gap: 16px;
	padding: clamp( 24px, 3vw, 40px );
	background: var( --ivy-surface, rgb( 246 241 232 ) );
}

.ivy-cta--preestimation .ivy-cta__recap-head {
	margin: 0;
	color: var( --ivy-muted, rgb( 86 101 106 ) );
	font-size: calc( var( --ivy-font-body ) * 0.7647 );
	line-height: 1.55;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ivy-cta--preestimation .ivy-cta__dl {
	margin: 0;
}

.ivy-cta--preestimation .ivy-cta__dl div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-block: 10px;
	border-block-end: 1px solid var( --ivy-line, rgb( 14 47 56 / 0.12 ) );
}

.ivy-cta--preestimation .ivy-cta__dl dt {
	color: var( --ivy-muted, rgb( 86 101 106 ) );
	font-size: var( --ivy-font-body );
	line-height: 1.55;
}

.ivy-cta--preestimation .ivy-cta__dl dd {
	margin: 0;
	font-size: var( --ivy-font-body );
	font-weight: 500;
	line-height: 1.55;
	text-align: end;
}

.ivy-cta--preestimation .ivy-cta__note {
	margin: 0;
	color: var( --ivy-muted, rgb( 86 101 106 ) );
	font-size: calc( var( --ivy-font-body ) * 0.8235 );
	line-height: 1.55;
}

.ivy-cta--preestimation .ivy-cta__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: inherit;
	font-size: calc( var( --ivy-font-body ) * 0.9412 );
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.01em;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color calc( 250ms * var( --ivy-motion, 1 ) ) var( --ivy-ease, cubic-bezier( 0.16, 1, 0.3, 1 ) );
}

.ivy-cta--preestimation .ivy-cta__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-cta--preestimation .ivy-cta__pills input:not( :checked ) + span:hover {
		border-color: var( --ivy-accent, rgb( 16 74 92 ) );
	}

	.ivy-cta--preestimation .ivy-cta__cta:hover {
		background: var( --ivy-deep, rgb( 14 47 56 ) );
	}

	.ivy-cta--preestimation .ivy-cta__cta:hover .ivy-button__icon {
		rotate: 0deg;
		transform: translate( 2px, -2px );
	}
}

@media ( max-width: 759px ) {
	.ivy-cta--preestimation .ivy-cta__card {
		grid-template-columns: minmax( 0, 1fr );
	}
}
