/**
 * Montant CEE — fond blanc, formule au centre, zones H1/H2/H3.
 * Orange #fbaf3f réservé au trait. Les chiffres restent navy pour le contraste.
 */
html:has(.wpcursor-montant-aides) {
	overflow-x: clip;
}

.entry-content > .wpcursor-component.wpcursor-montant-aides,
.entry-content[data-ast-blocks-layout] > .wpcursor-component.wpcursor-montant-aides,
.wpcursor-component.wpcursor-montant-aides.alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.wpcursor-component.wpcursor-montant-aides {
	--sr-navy: #022b60;
	--sr-ink: #24344f;
	--sr-orange: #fbaf3f;
	--sr-muted: #4d5e76;
	--sr-line: rgba(2, 43, 96, 0.14);
	--sr-bg: #ffffff;
	--sr-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sr-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--sr-pad: max(1rem, env(safe-area-inset-left), env(safe-area-inset-right));
	--sr-content: 78rem;
	background: var(--sr-bg);
	box-sizing: border-box;
	color: var(--sr-navy);
	font-family: var(--sr-font);
	isolation: isolate;
	overflow: hidden;
	padding: clamp(3.25rem, 6vw, 5rem) 0;
	width: 100%;
}

.wpcursor-component.wpcursor-montant-aides *,
.wpcursor-component.wpcursor-montant-aides *::before,
.wpcursor-component.wpcursor-montant-aides *::after {
	box-sizing: border-box;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__inner {
	margin: 0 auto;
	max-width: var(--sr-content);
	padding: 0 var(--sr-pad);
	width: 100%;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__header {
	margin: 0 auto 2.75rem;
	max-width: 46rem;
	text-align: center;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__accent {
	background: var(--sr-orange);
	border-radius: 999px;
	display: block;
	height: 2px;
	margin: 0 auto 1rem;
	width: 2.4rem;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__title {
	color: var(--sr-navy) !important;
	font-size: clamp(1.55rem, 3.2vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.18;
	margin: 0 0 0.8rem;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__text {
	color: var(--sr-ink);
	font-size: 1.02rem;
	line-height: 1.6;
	margin: 0 auto;
	max-width: 40rem;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__formula {
	margin: 0 auto 2.5rem;
	max-width: 68rem;
	text-align: center;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__calc-title {
	color: var(--sr-navy) !important;
	font-size: 1.08rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.35;
	margin: 0 0 1.25rem;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__eq {
	align-items: end;
	column-gap: clamp(0.75rem, 1.6vw, 1.35rem);
	display: grid;
	grid-template-columns: auto auto auto auto auto;
	justify-content: center;
	position: relative;
	row-gap: 0.7rem;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__term,
.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__sign {
	grid-row: 1;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__term {
	color: var(--sr-navy);
	font-size: clamp(1.2rem, 2.15vw, 1.7rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__sign {
	color: var(--sr-navy);
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	font-weight: 500;
	line-height: 1;
	padding-bottom: 0.12rem;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__rail {
	background: var(--sr-orange);
	grid-column: 1 / -1;
	grid-row: 2;
	height: 1px;
	transform: scaleX(0);
	transform-origin: left center;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__result-name {
	color: var(--sr-ink);
	font-size: 0.95rem;
	font-weight: 500;
	grid-column: 5;
	grid-row: 3;
	justify-self: start;
	line-height: 1.4;
	margin: 0;
	max-width: 13.5rem;
	text-align: left;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-montant-aides.is-pending .wpcursor-montant-aides__term,
.wpcursor-component.wpcursor-montant-aides.is-pending .wpcursor-montant-aides__sign,
.wpcursor-component.wpcursor-montant-aides.is-pending .wpcursor-montant-aides__result-name {
	opacity: 0;
	transform: translateY(0.4rem);
}

.wpcursor-component.wpcursor-montant-aides.is-pending .wpcursor-montant-aides__rail,
.wpcursor-component.wpcursor-montant-aides.is-inview .wpcursor-montant-aides__rail {
	transition: transform 1.15s var(--sr-ease);
}

.wpcursor-component.wpcursor-montant-aides.is-inview .wpcursor-montant-aides__rail {
	transform: scaleX(1);
}

.wpcursor-component.wpcursor-montant-aides.is-pending .wpcursor-montant-aides__term,
.wpcursor-component.wpcursor-montant-aides.is-pending .wpcursor-montant-aides__sign,
.wpcursor-component.wpcursor-montant-aides.is-inview .wpcursor-montant-aides__term,
.wpcursor-component.wpcursor-montant-aides.is-inview .wpcursor-montant-aides__sign {
	transition: opacity 0.45s var(--sr-ease), transform 0.45s var(--sr-ease);
	transition-delay: calc(0.08s + var(--i) * 0.42s);
}

.wpcursor-component.wpcursor-montant-aides.is-pending .wpcursor-montant-aides__result-name,
.wpcursor-component.wpcursor-montant-aides.is-inview .wpcursor-montant-aides__result-name {
	transition: opacity 0.45s var(--sr-ease), transform 0.45s var(--sr-ease);
	transition-delay: 1.05s;
}

.wpcursor-component.wpcursor-montant-aides.is-inview .wpcursor-montant-aides__term,
.wpcursor-component.wpcursor-montant-aides.is-inview .wpcursor-montant-aides__sign,
.wpcursor-component.wpcursor-montant-aides.is-inview .wpcursor-montant-aides__result-name {
	opacity: 1;
	transform: none;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__euro,
.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__zones {
	margin-left: auto;
	margin-right: auto;
	max-width: 40rem;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__euro {
	margin-bottom: 2.75rem;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__euro-title,
.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__zones-title {
	color: var(--sr-navy) !important;
	font-size: 1.08rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.35;
	margin: 0 0 0.55rem;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__euro-text,
.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__zones-note {
	color: var(--sr-ink);
	font-size: 0.98rem;
	line-height: 1.6;
	margin: 0;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__choices {
	display: grid;
	margin: 1.15rem 0 0.9rem;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__zone {
	align-items: baseline;
	appearance: none;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: var(--sr-navy);
	cursor: pointer;
	display: grid;
	font: inherit;
	gap: 0.75rem 1rem;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 0.95rem 0 0.85rem;
	box-shadow: inset 0 -1px 0 var(--sr-line) !important;
	position: relative;
	text-align: left;
	width: 100%;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__zone:focus {
	outline: none;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__zone:focus-visible {
	outline: 2px solid var(--sr-navy);
	outline-offset: 3px;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__zone-label {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__zone-rate {
	color: var(--sr-muted);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__zone-rate strong {
	color: var(--sr-navy);
	font-size: 1.2rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: 0;
	margin-right: 0.28rem;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__zone-line {
	background: var(--sr-orange);
	bottom: 0;
	height: 1px;
	left: 0;
	position: absolute;
	right: 0;
	transform: scaleX(0);
	transform-origin: left center;
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__zone.is-selected .wpcursor-montant-aides__zone-line {
	transform: scaleX(1);
	transition: transform 0.35s var(--sr-ease);
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__zone.is-selected .wpcursor-montant-aides__zone-rate strong {
	box-shadow: inset 0 -0.14em 0 var(--sr-orange);
}

.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__source {
	color: var(--sr-muted);
	font-size: 0.86rem;
	font-style: italic;
	line-height: 1.45;
	margin: 1.5rem auto 0;
	max-width: 40rem;
}

@media (max-width: 799px) {
	.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__header,
	.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__formula {
		text-align: left;
	}

	.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__accent {
		margin-left: 0;
	}

	.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__eq {
		align-items: flex-start;
		display: flex;
		flex-direction: column;
		gap: 0.8rem;
		padding-left: 1.15rem;
	}

	.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__term,
	.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__sign,
	.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__result-name {
		grid-column: auto;
		grid-row: auto;
	}

	.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__sign {
		padding-bottom: 0;
	}

	.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__rail {
		bottom: auto;
		height: calc(100% - 0.4rem);
		left: 0;
		margin: 0;
		position: absolute;
		right: auto;
		top: 0.2rem;
		transform: scaleY(0);
		transform-origin: top center;
		width: 1px;
	}

	.wpcursor-component.wpcursor-montant-aides.is-inview .wpcursor-montant-aides__rail {
		transform: scaleY(1);
	}

	.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__result-name {
		max-width: 18rem;
	}
}

@media (max-width: 480px) {
	.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__inner {
		padding-right: max(5.5rem, env(safe-area-inset-right));
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__rail,
	.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__term,
	.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__sign,
	.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__result-name,
	.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__zone-line {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.wpcursor-component.wpcursor-montant-aides .wpcursor-montant-aides__zone:not(.is-selected) .wpcursor-montant-aides__zone-line {
		transform: scaleX(0);
	}
}
