/**
 * Hero Devis & budget — fond blanc, bâtiment transparent
 * Labels / lignes / feuillet animés (HTML) sur le visuel.
 */
html:has(.wpcursor-hero-devis) {
	overflow-x: clip;
}

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

body.page:has(.wpcursor-hero-devis) .entry-header,
body.page:has(.wpcursor-hero-devis) .ast-archive-description {
	display: none !important;
}

.wpcursor-component.wpcursor-hero-devis {
	--sr-navy: #022b60;
	--sr-navy-deep: #011833;
	--sr-orange: #fbaf3f;
	--sr-orange-hover: #e09a2e;
	--sr-white: #ffffff;
	--sr-muted: #5b6b82;
	--sr-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sr-pad: max(1rem, env(safe-area-inset-left), env(safe-area-inset-right));
	--sr-content: 84rem;
	--sr-gutter: max(var(--sr-pad), calc((100vw - min(100vw, var(--sr-content))) / 2 + var(--sr-pad)));
	--sr-ease: cubic-bezier(0.22, 1, 0.36, 1);
	background: #ffffff;
	box-sizing: border-box;
	color: var(--sr-navy);
	font-family: var(--sr-font);
	isolation: isolate;
	overflow: clip;
	padding: 0;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-hero-devis *,
.wpcursor-component.wpcursor-hero-devis *::before,
.wpcursor-component.wpcursor-hero-devis *::after {
	box-sizing: border-box;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__sr-only {
	border: 0;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__shell {
	align-items: center;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
	margin: 0 auto;
	max-width: 100%;
	min-height: 0;
	padding: 2.25rem var(--sr-gutter) 2.5rem;
	position: relative;
	width: 100%;
	z-index: 1;
}

/* ---------- Copy ---------- */
.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 34rem;
	position: relative;
	z-index: 3;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__eyebrow {
	align-items: center;
	color: var(--sr-orange) !important;
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 700;
	gap: 0.7rem;
	letter-spacing: 0.1em;
	line-height: 1.35;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__eyebrow-mark {
	background: var(--sr-orange);
	display: inline-block;
	flex: 0 0 auto;
	height: 0.72rem;
	transform: skewX(-18deg);
	width: 0.85rem;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__title {
	color: var(--sr-navy) !important;
	font-size: clamp(1.85rem, 4.2vw, 2.95rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.12;
	margin: 0 0 1.1rem;
	max-width: 16ch;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__text {
	color: var(--sr-muted);
	font-size: clamp(0.98rem, 1.4vw, 1.08rem);
	font-weight: 400;
	line-height: 1.55;
	margin: 0 0 1.6rem;
	max-width: 34rem;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.45rem;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__btn {
	align-items: center;
	background: var(--sr-orange);
	border-radius: 0.55rem;
	color: var(--sr-white) !important;
	display: inline-flex;
	font-size: 0.95rem;
	font-weight: 700;
	gap: 0.45rem;
	justify-content: center;
	line-height: 1.25;
	min-height: 48px;
	padding: 0.85rem 1.35rem;
	text-decoration: none !important;
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, gap 0.2s ease;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__btn:hover,
.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__btn:focus-visible {
	background: var(--sr-orange-hover);
	box-shadow: 0 12px 28px rgba(2, 43, 96, 0.18);
	color: var(--sr-white) !important;
	gap: 0.65rem;
	outline: none;
	transform: translateY(-2px);
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__btn:focus-visible {
	outline: 2px solid var(--sr-navy);
	outline-offset: 3px;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__link {
	align-items: center;
	border-bottom: 1.5px solid var(--sr-navy);
	color: var(--sr-navy) !important;
	display: inline-flex;
	font-size: 0.95rem;
	font-weight: 600;
	gap: 0.35rem;
	line-height: 1.3;
	min-height: 44px;
	text-decoration: none !important;
	transition: color 0.2s ease, gap 0.2s ease, border-color 0.2s ease;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__link:hover,
.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__link:focus-visible {
	border-bottom-color: var(--sr-orange);
	color: var(--sr-orange) !important;
	gap: 0.55rem;
	outline: none;
}

/* ---------- Visual (bâtiment transparent + overlays) ---------- */
.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__visual {
	background: transparent;
	border-radius: 0;
	justify-self: stretch;
	margin: 0;
	max-width: none;
	overflow: hidden;
	padding: 0.5rem 0 1rem;
	position: relative;
	width: 100%;
	z-index: 2;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__stage {
	aspect-ratio: 4 / 3;
	isolation: isolate;
	margin: 0 auto;
	max-width: 40rem;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__img {
	display: block;
	height: 100%;
	object-fit: contain;
	object-position: center;
	opacity: 0;
	transform: scale(1.04) translate3d(12px, 0, 0);
	width: 100%;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__leaders {
	height: 100%;
	inset: 0;
	overflow: visible;
	pointer-events: none;
	position: absolute;
	width: 100%;
	z-index: 2;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__leader {
	filter: drop-shadow(0 0 3px rgba(251, 175, 63, 0.45));
	opacity: 0.95;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__pin {
	background: var(--sr-orange);
	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(251, 175, 63, 0.25), 0 0 12px rgba(251, 175, 63, 0.5);
	height: 0.65rem;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transform: translate(-50%, -50%) scale(0.5);
	width: 0.65rem;
	z-index: 3;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__markers {
	inset: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	pointer-events: none;
	position: absolute;
	z-index: 4;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__marker {
	align-items: center;
	color: var(--sr-navy);
	display: inline-flex;
	font-size: 0.68rem;
	font-weight: 700;
	gap: 0.4rem;
	letter-spacing: 0.1em;
	opacity: 0;
	position: absolute;
	text-shadow: none;
	text-transform: uppercase;
	transform: translateY(8px);
	white-space: nowrap;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__marker-icon {
	align-items: center;
	color: var(--sr-orange);
	display: inline-flex;
	flex: 0 0 auto;
}

/* Feuillet devis — toujours dans le stage, jamais coupé */
.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__sheet {
	background: linear-gradient(160deg, #ffffff 0%, #f3f7fb 100%);
	border: 1px solid rgba(2, 43, 96, 0.12);
	border-radius: 0.55rem;
	box-shadow:
		0 14px 32px rgba(2, 43, 96, 0.12),
		0 0 0 1px rgba(2, 43, 96, 0.04),
		0 0 20px rgba(251, 175, 63, 0.14);
	bottom: 4%;
	opacity: 0;
	padding: 0.95rem 1.05rem 1.05rem;
	position: absolute;
	right: 2%;
	transform: translate3d(10px, 14px, 0) scale(0.94);
	width: min(11.75rem, 42%);
	z-index: 5;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__sheet-title {
	color: var(--sr-navy);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.25;
	margin: 0 0 0.2rem;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__sheet-note {
	color: var(--sr-muted);
	font-size: 0.76rem;
	font-style: italic;
	line-height: 1.35;
	margin: 0 0 0.75rem;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__sheet-lines {
	display: flex;
	flex-direction: column;
	gap: 0.38rem;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__sheet-lines span {
	background: rgba(91, 107, 130, 0.22);
	border-radius: 2px;
	display: block;
	height: 3px;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__sheet-lines span:nth-child(1) { width: 92%; }
.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__sheet-lines span:nth-child(2) { width: 78%; }
.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__sheet-lines span:nth-child(3) { width: 64%; }

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__chips {
	align-items: center;
	display: none;
	flex-wrap: wrap;
	gap: 0.45rem;
	justify-content: center;
	list-style: none;
	margin: 0.85rem 0 0;
	padding: 0;
}

.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__chips li {
	background: rgba(2, 43, 96, 0.04);
	border: 1px solid rgba(2, 43, 96, 0.14);
	border-radius: 999px;
	color: var(--sr-navy);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	padding: 0.35rem 0.7rem;
	text-transform: uppercase;
}

/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
	.wpcursor-component.wpcursor-hero-devis.is-animatable [data-sr-devis-reveal] {
		opacity: 0;
		transform: translateY(14px);
		transition: opacity 0.55s var(--sr-ease), transform 0.55s var(--sr-ease);
	}

	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-ready [data-sr-devis-reveal] {
		opacity: 1;
		transform: none;
	}

	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-ready [data-sr-devis-reveal]:nth-child(1) { transition-delay: 0.04s; }
	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-ready [data-sr-devis-reveal]:nth-child(2) { transition-delay: 0.12s; }
	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-ready [data-sr-devis-reveal]:nth-child(3) { transition-delay: 0.2s; }
	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-ready [data-sr-devis-reveal]:nth-child(4) { transition-delay: 0.28s; }

	.wpcursor-component.wpcursor-hero-devis.is-animatable .wpcursor-hero-devis__img {
		transition: opacity 0.85s var(--sr-ease), transform 1.05s var(--sr-ease);
	}

	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-ready .wpcursor-hero-devis__img {
		opacity: 1;
		transform: none;
	}

	.wpcursor-component.wpcursor-hero-devis.is-animatable .wpcursor-hero-devis__leader {
		transition: stroke-dashoffset 0.55s var(--sr-ease);
	}

	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-drawn .wpcursor-hero-devis__leader {
		stroke-dashoffset: 0;
	}

	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-drawn .wpcursor-hero-devis__leader[data-sr-devis-leader="surface"] { transition-delay: 0.05s; }
	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-drawn .wpcursor-hero-devis__leader[data-sr-devis-leader="support"] { transition-delay: 0.16s; }
	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-drawn .wpcursor-hero-devis__leader[data-sr-devis-leader="acces"] { transition-delay: 0.28s; }
	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-drawn .wpcursor-hero-devis__leader[data-sr-devis-leader="systeme"] { transition-delay: 0.4s; }
	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-drawn .wpcursor-hero-devis__leader[data-sr-devis-leader="sheet"] { transition-delay: 0.55s; }

	.wpcursor-component.wpcursor-hero-devis.is-animatable .wpcursor-hero-devis__pin {
		transition: opacity 0.35s ease, transform 0.4s var(--sr-ease);
	}

	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-markers .wpcursor-hero-devis__pin {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}

	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-markers .wpcursor-hero-devis__pin--surface { transition-delay: 0.05s; }
	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-markers .wpcursor-hero-devis__pin--support { transition-delay: 0.16s; }
	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-markers .wpcursor-hero-devis__pin--acces { transition-delay: 0.28s; }
	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-markers .wpcursor-hero-devis__pin--systeme { transition-delay: 0.4s; }

	.wpcursor-component.wpcursor-hero-devis.is-animatable .wpcursor-hero-devis__marker {
		transition: opacity 0.45s var(--sr-ease), transform 0.5s var(--sr-ease);
	}

	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-markers .wpcursor-hero-devis__marker {
		opacity: 1;
		transform: none;
	}

	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-markers .wpcursor-hero-devis__marker--surface { transition-delay: 0.12s; }
	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-markers .wpcursor-hero-devis__marker--support { transition-delay: 0.24s; }
	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-markers .wpcursor-hero-devis__marker--acces { transition-delay: 0.36s; }
	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-markers .wpcursor-hero-devis__marker--systeme { transition-delay: 0.48s; }

	.wpcursor-component.wpcursor-hero-devis.is-animatable .wpcursor-hero-devis__sheet {
		transition: opacity 0.55s var(--sr-ease), transform 0.65s var(--sr-ease);
	}

	.wpcursor-component.wpcursor-hero-devis.is-animatable.is-sheet .wpcursor-hero-devis__sheet {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
	.wpcursor-component.wpcursor-hero-devis {
		background: #ffffff;
	}

	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__shell {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
		gap: 1.5rem 2.25rem;
		min-height: clamp(30rem, 72vh, 42rem);
		padding-top: 2.75rem;
		padding-bottom: 2.75rem;
	}

	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__visual {
		align-self: stretch;
		background: transparent;
		display: flex;
		flex-direction: column;
		justify-content: center;
		margin: 0;
		min-height: 100%;
		overflow: hidden;
		padding: 0.5rem 0 0.5rem 0.25rem;
		width: 100%;
	}

	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__stage {
		aspect-ratio: 5 / 4;
		max-width: none;
		overflow: hidden;
		padding-bottom: 0.5rem;
		padding-right: 0.25rem;
	}

	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__sheet {
		bottom: 6%;
		right: 3%;
		width: min(12.5rem, 38%);
	}

	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__chips {
		display: none;
	}
}

/* ---------- Mid screens : feuillet plus compact, toujours visible ---------- */
@media (min-width: 960px) and (max-width: 1180px) {
	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__sheet {
		bottom: 3%;
		padding: 0.8rem 0.9rem 0.9rem;
		right: 1%;
		width: min(10.75rem, 40%);
	}

	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__sheet-title {
		font-size: 0.64rem;
	}

	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__marker {
		font-size: 0.62rem;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 959px) {
	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__copy {
		max-width: none;
	}

	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__title {
		max-width: 18ch;
	}

	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__visual {
		background: transparent;
		margin-bottom: 0;
	}

	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__stage {
		aspect-ratio: 4 / 3.2;
		max-width: 28rem;
	}

	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__markers,
	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__leaders,
	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__pin {
		display: none;
	}

	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__sheet {
		bottom: 6%;
		opacity: 1;
		right: 4%;
		transform: none;
		width: min(10.5rem, 44%);
	}

	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__img {
		opacity: 1;
		transform: none;
	}

	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__chips {
		display: flex;
	}
}

@media (max-width: 540px) {
	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__btn {
		width: 100%;
	}

	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__sheet {
		padding: 0.75rem 0.8rem 0.85rem;
		width: min(9.75rem, 48%);
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-hero-devis [data-sr-devis-reveal],
	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__img,
	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__marker,
	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__pin,
	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__sheet {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__pin {
		transform: translate(-50%, -50%) !important;
	}

	.wpcursor-component.wpcursor-hero-devis .wpcursor-hero-devis__leader {
		stroke-dashoffset: 0 !important;
		transition: none !important;
	}
}
