/**
 * Hero Cool Roof Particuliers — maison immersive · Poppins · crème/navy/orange
 */
html:has(.wpcursor-hero-part) {
	overflow-x: clip;
}

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

/* Le spacer blanc se voyait à travers le header transparent */
body:has(.wpcursor-hero-part) .wpcursor-header-sr-spacer {
	display: none !important;
}

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

/* Hero clair : header transparent, logo et menu navy (le logo clair disparaissait) */
html:has(.wpcursor-hero-part) .wpcursor-component.wpcursor-header-sr:not(.is-scrolled):not(:hover):not(:focus-within):not(.is-nav-open):not(:has(.wpcursor-header-sr__item.is-open)) {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

html:has(.wpcursor-hero-part) .wpcursor-component.wpcursor-header-sr:not(.is-scrolled):not(:hover):not(:focus-within):not(.is-nav-open):not(:has(.wpcursor-header-sr__item.is-open)) .wpcursor-header-sr__logo-img--light {
	opacity: 0;
}

html:has(.wpcursor-hero-part) .wpcursor-component.wpcursor-header-sr:not(.is-scrolled):not(:hover):not(:focus-within):not(.is-nav-open):not(:has(.wpcursor-header-sr__item.is-open)) .wpcursor-header-sr__logo-img--dark {
	opacity: 1;
}

html:has(.wpcursor-hero-part) .wpcursor-component.wpcursor-header-sr:not(.is-scrolled):not(:hover):not(:focus-within):not(.is-nav-open):not(:has(.wpcursor-header-sr__item.is-open)) .wpcursor-header-sr__link,
html:has(.wpcursor-hero-part) .wpcursor-component.wpcursor-header-sr:not(.is-scrolled):not(:hover):not(:focus-within):not(.is-nav-open):not(:has(.wpcursor-header-sr__item.is-open)) .wpcursor-header-sr__trigger,
html:has(.wpcursor-hero-part) .wpcursor-component.wpcursor-header-sr:not(.is-scrolled):not(:hover):not(:focus-within):not(.is-nav-open):not(:has(.wpcursor-header-sr__item.is-open)) .wpcursor-header-sr__chevron-btn,
html:has(.wpcursor-hero-part) .wpcursor-component.wpcursor-header-sr:not(.is-scrolled):not(:hover):not(:focus-within):not(.is-nav-open):not(:has(.wpcursor-header-sr__item.is-open)) .wpcursor-header-sr__burger {
	color: #022b60 !important;
}

.wpcursor-component.wpcursor-hero-part {
	--sr-navy: #022b60;
	--sr-navy-deep: #011833;
	--sr-orange: #fbaf3f;
	--sr-orange-deep: #e89a28;
	--sr-orange-hover: #e09a2e;
	--sr-cream: #fff8f0;
	--sr-white: #ffffff;
	--sr-muted: rgba(2, 43, 96, 0.72);
	--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);
	--sr-admin-h: 0px;
	--sr-header-h: 4.5rem;
	--sr-hero-progress: 0;
	--sr-parallax: 0px;
	background: var(--sr-cream);
	box-sizing: border-box;
	color: var(--sr-navy);
	font-family: var(--sr-font);
	isolation: isolate;
	overflow: clip;
	padding: 0;
	position: relative;
	width: 100%;
}

body.admin-bar .wpcursor-component.wpcursor-hero-part {
	--sr-admin-h: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .wpcursor-component.wpcursor-hero-part {
		--sr-admin-h: 46px;
	}
}

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

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__pin {
	height: auto;
	position: relative;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__scene {
	height: auto;
	isolation: isolate;
	min-height: min(28rem, 62vh);
	overflow: hidden;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__media {
	inset: 0;
	margin: 0;
	overflow: hidden;
	position: absolute;
	z-index: 0;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__bg {
	display: block;
	filter: saturate(0.85) brightness(1.04) blur(8px);
	height: 118%;
	left: 0;
	max-width: none;
	object-fit: cover;
	object-position: center 32%;
	opacity: 0;
	position: absolute;
	top: -6%;
	transform: translate3d(0, calc(var(--sr-parallax) + var(--sr-hero-progress) * -28px), 0) scale(1.16);
	transition:
		opacity 1.1s var(--sr-ease),
		filter 1.25s var(--sr-ease),
		transform 1.35s var(--sr-ease);
	width: 100%;
	will-change: transform, opacity, filter;
}

.wpcursor-component.wpcursor-hero-part.is-inview .wpcursor-hero-part__bg {
	filter: saturate(0.95) brightness(1.02) blur(0);
	opacity: 1;
	transform: translate3d(0, calc(var(--sr-parallax) + var(--sr-hero-progress) * -28px), 0) scale(calc(1.06 - var(--sr-hero-progress) * 0.03));
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__shade {
	background:
		linear-gradient(105deg, rgba(255, 248, 240, 0.94) 0%, rgba(255, 248, 240, 0.78) 34%, rgba(255, 248, 240, 0.28) 62%, rgba(255, 248, 240, 0.42) 100%),
		linear-gradient(180deg, rgba(255, 248, 240, 0.45) 0%, transparent 32%, rgba(2, 43, 96, 0.18) 100%);
	inset: 0;
	opacity: calc(1 - var(--sr-hero-progress) * 0.42);
	position: absolute;
	z-index: 1;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__glow {
	background: radial-gradient(circle, rgba(251, 175, 63, 0.32) 0%, transparent 68%);
	height: min(26rem, 52vw);
	left: 6%;
	opacity: calc(0.45 + var(--sr-hero-progress) * 0.4);
	pointer-events: none;
	position: absolute;
	top: 14%;
	width: min(26rem, 52vw);
	z-index: 2;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__shell {
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: center;
	padding: calc(var(--sr-header-h) + 1.1rem) var(--sr-gutter) 2.25rem;
	position: relative;
	z-index: 3;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__copy {
	max-width: 38rem;
	opacity: calc(1 - var(--sr-hero-progress) * 0.82);
	transform: translate3d(0, calc(var(--sr-hero-progress) * -28px), 0);
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__breadcrumb,
.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__eyebrow,
.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__text,
.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__actions,
.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__benefits {
	opacity: 0;
	transform: translateY(1rem);
	transition: opacity 0.55s var(--sr-ease), transform 0.55s var(--sr-ease);
}

.wpcursor-component.wpcursor-hero-part.is-inview .wpcursor-hero-part__breadcrumb {
	opacity: 1;
	transform: none;
	transition-delay: 0.05s;
}

.wpcursor-component.wpcursor-hero-part.is-inview .wpcursor-hero-part__eyebrow {
	opacity: 1;
	transform: none;
	transition-delay: 0.12s;
}

.wpcursor-component.wpcursor-hero-part.is-inview .wpcursor-hero-part__text {
	opacity: 1;
	transform: none;
	transition-delay: 0.42s;
}

.wpcursor-component.wpcursor-hero-part.is-inview .wpcursor-hero-part__actions {
	opacity: 1;
	transform: none;
	transition-delay: 0.5s;
}

.wpcursor-component.wpcursor-hero-part.is-inview .wpcursor-hero-part__benefits {
	opacity: 1;
	transform: none;
	transition-delay: 0.58s;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__breadcrumb ol {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	list-style: none;
	margin: 0 0 1.15rem;
	padding: 0;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__breadcrumb li {
	color: var(--sr-muted);
	font-size: 0.84rem;
	line-height: 1.4;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__breadcrumb li:not(:last-child)::after {
	content: "/";
	margin-left: 0.3rem;
	opacity: 0.65;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__breadcrumb a {
	color: var(--sr-muted) !important;
	text-decoration: none !important;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__breadcrumb a:hover,
.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__breadcrumb a:focus-visible {
	color: var(--sr-orange-deep) !important;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__breadcrumb li[aria-current="page"] {
	color: var(--sr-navy);
	font-weight: 600;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__eyebrow {
	align-items: center;
	color: var(--sr-orange-deep) !important;
	display: inline-flex;
	font-size: 0.76rem;
	font-weight: 700;
	gap: 0.65rem;
	letter-spacing: 0.12em;
	line-height: 1.3;
	margin: 0 0 0.85rem;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__eyebrow-line {
	background: var(--sr-orange);
	border-radius: 999px;
	display: inline-block;
	height: 2px;
	width: 1.65rem;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__title {
	color: var(--sr-navy) !important;
	font-family: var(--sr-font);
	font-size: clamp(1.75rem, 4.2vw, 2.85rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.12;
	margin: 0 0 0.95rem;
	max-width: 16ch;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__title-word {
	display: inline-block;
	opacity: 0;
	transform: translateY(1.35rem);
	transition: opacity 0.55s var(--sr-ease), transform 0.65s var(--sr-ease);
	transition-delay: calc(0.28s + var(--i) * 0.055s);
}

.wpcursor-component.wpcursor-hero-part.is-inview .wpcursor-hero-part__title-word {
	opacity: 1;
	transform: none;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__text {
	color: var(--sr-muted);
	font-size: 1.02rem;
	line-height: 1.55;
	margin: 0 0 1.4rem;
	max-width: 34rem;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.95rem 1.35rem;
	margin-bottom: 1.4rem;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__btn {
	align-items: center;
	background: var(--sr-orange);
	border-radius: 0.55rem;
	box-shadow: 0 10px 24px rgba(251, 175, 63, 0.32);
	color: var(--sr-white) !important;
	display: inline-flex;
	font-size: 0.95rem;
	font-weight: 700;
	gap: 0.45rem;
	line-height: 1.25;
	min-height: 44px;
	padding: 0.85rem 1.2rem;
	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-part .wpcursor-hero-part__btn:hover,
.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__btn:focus-visible {
	background: var(--sr-orange-hover);
	box-shadow: 0 12px 28px rgba(224, 154, 46, 0.4);
	color: var(--sr-white) !important;
	gap: 0.65rem;
	outline: none;
	transform: translateY(-2px);
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__link {
	align-items: center;
	border-bottom: 1.5px solid var(--sr-orange);
	color: var(--sr-navy) !important;
	display: inline-flex;
	font-size: 0.95rem;
	font-weight: 700;
	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-part .wpcursor-hero-part__link:hover,
.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__link:focus-visible {
	border-bottom-color: var(--sr-orange-deep);
	color: var(--sr-orange-deep) !important;
	gap: 0.55rem;
	outline: none;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__benefits {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__benefit {
	align-items: center;
	backdrop-filter: blur(8px);
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(2, 43, 96, 0.1);
	border-radius: 0.55rem;
	color: var(--sr-navy);
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 600;
	gap: 0.45rem;
	line-height: 1.3;
	padding: 0.55rem 0.75rem;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__benefit-icon {
	color: var(--sr-orange-deep);
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 0;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__benefit-label {
	min-width: 0;
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__cue {
	bottom: 1.35rem;
	display: block;
	height: 2.5rem;
	left: var(--sr-gutter);
	opacity: 0;
	position: absolute;
	transition: opacity 0.45s var(--sr-ease) 0.85s;
	width: 1.4rem;
	z-index: 4;
}

.wpcursor-component.wpcursor-hero-part.is-inview .wpcursor-hero-part__cue {
	opacity: calc(0.9 - var(--sr-hero-progress) * 1.2);
}

.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__cue-line {
	animation: srHeroPartCue 1.6s ease-in-out infinite;
	background: linear-gradient(180deg, rgba(251, 175, 63, 0) 0%, var(--sr-orange) 100%);
	border-radius: 999px;
	display: block;
	height: 100%;
	margin: 0 auto;
	width: 2px;
}

@keyframes srHeroPartCue {
	0%,
	100% {
		opacity: 0.35;
		transform: scaleY(0.75);
		transform-origin: top;
	}
	50% {
		opacity: 1;
		transform: scaleY(1);
		transform-origin: top;
	}
}

@media (max-width: 899px) {
	.wpcursor-component.wpcursor-hero-part {
		--sr-header-h: 4rem;
	}

	.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__scene {
		min-height: min(32rem, 70vh);
	}

	.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__title {
		max-width: none;
	}

	.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__actions {
		align-items: flex-start;
		flex-direction: column;
		width: 100%;
	}

	.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__btn {
		justify-content: center;
		width: 100%;
	}

	.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__shade {
		background:
			linear-gradient(180deg, rgba(255, 248, 240, 0.88) 0%, rgba(255, 248, 240, 0.55) 42%, rgba(255, 248, 240, 0.35) 100%),
			linear-gradient(105deg, rgba(255, 248, 240, 0.7) 0%, transparent 70%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__scene {
		min-height: min(28rem, 62vh);
	}

	.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__breadcrumb,
	.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__eyebrow,
	.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__text,
	.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__actions,
	.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__benefits,
	.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__title-word,
	.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__cue,
	.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__bg {
		filter: none;
		opacity: 1;
		transform: none;
		transition: none;
	}

	.wpcursor-component.wpcursor-hero-part .wpcursor-hero-part__cue-line {
		animation: none;
	}
}
