/**
 * Hero Cool Roof Professionnel — toiture immersive · Poppins · navy/orange
 */
/* overflow-x seul (pas sur html) : évite de casser position:sticky sur toute la page */
body:has(.wpcursor-hero-pro) {
	overflow-x: clip !important;
	overflow-y: visible !important;
}

/* Sans ça, le header transparent laisse voir le spacer blanc — pas la photo */
body:has(.wpcursor-hero-pro) .wpcursor-header-sr-spacer {
	display: none !important;
}

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

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

html.sr-header-over-hero .wpcursor-component.wpcursor-header-sr: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.sr-header-over-hero .wpcursor-component.wpcursor-header-sr:hover,
html.sr-header-over-hero .wpcursor-component.wpcursor-header-sr:focus-within,
html.sr-header-over-hero .wpcursor-component.wpcursor-header-sr.is-nav-open,
html.sr-header-over-hero .wpcursor-component.wpcursor-header-sr:has(.wpcursor-header-sr__item.is-open) {
	background-color: var(--sr-navy, #022b60);
}

.wpcursor-component.wpcursor-hero-pro {
	--sr-navy: #022b60;
	--sr-navy-deep: #011833;
	--sr-orange: #fbaf3f;
	--sr-orange-hover: #e09a2e;
	--sr-white: #ffffff;
	--sr-muted: rgba(255, 255, 255, 0.92);
	--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-bar-h: 4.5rem;
	--sr-admin-h: 0px;
	--sr-hero-h: min(100svh - var(--sr-admin-h), 46rem);
	--sr-hero-progress: 0;
	--sr-parallax: 0px;
	background: var(--sr-navy-deep);
	box-sizing: border-box;
	color: var(--sr-white);
	font-family: var(--sr-font);
	isolation: isolate;
	margin-top: 0;
	overflow: visible;
	padding: 0;
	position: relative;
	width: 100%;
	z-index: 1;
}

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

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

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

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__pin {
	height: var(--sr-hero-h);
	position: relative;
}

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__scene {
	height: 100%;
	isolation: isolate;
	min-height: 0;
	overflow: hidden;
	position: relative;
	width: 100%;
}

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

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__bg {
	display: block;
	height: 118%;
	left: 0;
	max-width: none;
	object-fit: cover;
	object-position: center 42%;
	position: absolute;
	top: -6%;
	transform: translate3d(0, calc(var(--sr-parallax) + var(--sr-hero-progress) * -28px), 0) scale(1.08);
	width: 100%;
	will-change: transform;
}

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__shade {
	background:
		linear-gradient(
			90deg,
			rgba(1, 24, 51, 0.9) 0%,
			rgba(1, 24, 51, 0.78) 42%,
			rgba(1, 24, 51, 0.5) 68%,
			rgba(1, 24, 51, 0.42) 100%
		),
		linear-gradient(180deg, rgba(1, 24, 51, 0.45) 0%, rgba(1, 24, 51, 0.18) 40%, rgba(1, 24, 51, 0.5) 100%);
	inset: 0;
	left: 0;
	opacity: 1;
	position: absolute;
	right: 0;
	width: 100%;
	z-index: 1;
}

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__glow {
	background: radial-gradient(circle, rgba(251, 175, 63, 0.28) 0%, transparent 68%);
	height: min(28rem, 55vw);
	left: 8%;
	opacity: calc(0.55 + var(--sr-hero-progress) * 0.35);
	pointer-events: none;
	position: absolute;
	top: 18%;
	width: min(28rem, 55vw);
	z-index: 2;
}

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__trace {
	bottom: 8%;
	color: var(--sr-orange);
	height: auto;
	opacity: 0.9;
	pointer-events: none;
	position: absolute;
	right: max(2%, calc((100vw - min(100vw, 84rem)) / 2));
	width: min(42rem, 52vw);
	z-index: 2;
}

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__trace-path,
.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__trace-roof {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 1.15s var(--sr-ease);
}

.wpcursor-component.wpcursor-hero-pro.is-drawn .wpcursor-hero-pro__trace-path {
	stroke-dashoffset: 0;
	transition-delay: 0.15s;
}

.wpcursor-component.wpcursor-hero-pro.is-drawn .wpcursor-hero-pro__trace-roof {
	stroke-dashoffset: 0;
	transition-delay: 0.85s;
}

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__shell {
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: center;
	min-height: 0;
	padding: calc(var(--sr-bar-h) + 0.85rem) var(--sr-gutter) 2.5rem;
	position: relative;
	z-index: 3;
}

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__copy {
	max-width: 38rem;
	opacity: 1;
	position: relative;
	transform: translate3d(0, calc(var(--sr-hero-progress) * -12px), 0);
}

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__breadcrumb,
.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__eyebrow,
.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__text,
.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__actions,
.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__tags,
.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__badge {
	opacity: 0;
	transform: translateY(1rem);
	transition: opacity 0.55s var(--sr-ease), transform 0.55s var(--sr-ease);
}

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

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

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

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

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

.wpcursor-component.wpcursor-hero-pro.is-inview .wpcursor-hero-pro__badge {
	opacity: 1;
	transform: none;
	transition-delay: 0.7s;
}

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__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-pro .wpcursor-hero-pro__breadcrumb li {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.84rem;
	line-height: 1.4;
}

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

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__breadcrumb a {
	color: rgba(255, 255, 255, 0.78) !important;
	text-decoration: none !important;
}

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

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

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__eyebrow {
	align-items: center;
	color: var(--sr-orange) !important;
	display: inline-flex;
	font-size: 0.78rem;
	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-pro .wpcursor-hero-pro__eyebrow-line {
	background: var(--sr-orange);
	border-radius: 999px;
	display: inline-block;
	height: 2px;
	width: 1.65rem;
}

.entry-content .wpcursor-component.wpcursor-hero-pro h1.wpcursor-hero-pro__title,
.entry-content .wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__title,
.entry-content .wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__title-word,
.wpcursor-component.wpcursor-hero-pro h1.wpcursor-hero-pro__title,
.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__title,
.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__title-word {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__title {
	font-family: var(--sr-font);
	font-size: clamp(1.85rem, 4.6vw, 3.1rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.12;
	margin: 0 0 0.95rem;
	max-width: 14ch;
	text-shadow: 0 2px 24px rgba(1, 24, 51, 0.65), 0 1px 2px rgba(1, 24, 51, 0.45);
}

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__title-word {
	display: inline-block;
	opacity: 0;
	transform: translateY(1.1rem);
	transition: opacity 0.5s var(--sr-ease), transform 0.55s var(--sr-ease);
	transition-delay: calc(0.18s + var(--i) * 0.055s);
}

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

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__text {
	color: var(--sr-muted);
	font-size: 1.02rem;
	line-height: 1.55;
	margin: 0 0 1.4rem;
	max-width: 34rem;
	text-shadow: 0 1px 14px rgba(1, 24, 51, 0.55);
}

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

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__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;
	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-pro .wpcursor-hero-pro__btn:hover,
.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__btn:focus-visible {
	background: var(--sr-orange-hover);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
	color: var(--sr-white) !important;
	gap: 0.65rem;
	outline: none;
	transform: translateY(-2px);
}

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__link {
	align-items: center;
	border-bottom: 1.5px solid var(--sr-orange);
	color: var(--sr-white) !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-pro .wpcursor-hero-pro__link:hover,
.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__link:focus-visible {
	border-bottom-color: var(--sr-orange-hover);
	color: var(--sr-orange) !important;
	gap: 0.55rem;
	outline: none;
}

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

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__tag {
	align-items: center;
	backdrop-filter: blur(6px);
	background: rgba(1, 26, 61, 0.42);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 0.55rem;
	color: var(--sr-white);
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 600;
	gap: 0.45rem;
	line-height: 1.3;
	padding: 0.55rem 0.75rem;
	transition: border-color 0.25s ease, transform 0.25s var(--sr-ease), background 0.25s ease;
}

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__tag:hover {
	background: rgba(251, 175, 63, 0.14);
	border-color: rgba(251, 175, 63, 0.5);
	transform: translateY(-2px);
}

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

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__badge {
	align-items: center;
	background: var(--sr-white);
	border-radius: 999px;
	box-shadow: 0 10px 28px rgba(2, 43, 96, 0.18);
	color: var(--sr-navy);
	display: inline-flex;
	font-size: 0.8rem;
	font-weight: 700;
	gap: 0.45rem;
	line-height: 1.3;
	margin-top: 1.5rem;
	max-width: max-content;
	padding: 0.55rem 0.85rem 0.55rem 0.65rem;
}

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__badge-icon {
	align-items: center;
	background: rgba(251, 175, 63, 0.18);
	border-radius: 999px;
	color: var(--sr-orange);
	display: inline-flex;
	flex: 0 0 auto;
	height: 1.7rem;
	justify-content: center;
	width: 1.7rem;
}

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__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-pro.is-inview .wpcursor-hero-pro__cue {
	opacity: calc(0.9 - var(--sr-hero-progress) * 1.2);
}

.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__cue-line {
	animation: srHeroProCue 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 srHeroProCue {
	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-pro {
		--sr-hero-h: min(100svh - var(--sr-admin-h), 40rem);
	}

	.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__shell {
		padding: calc(var(--sr-bar-h) + 0.65rem) var(--sr-gutter) 2rem;
	}

	.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__trace {
		bottom: auto;
		opacity: 0.35;
		right: -8%;
		top: 12%;
		width: min(22rem, 70vw);
	}

	.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__title {
		max-width: none;
	}

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

	.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__btn {
		justify-content: center;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__scene {
		position: relative;
		top: auto;
	}

	.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__breadcrumb,
	.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__eyebrow,
	.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__text,
	.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__actions,
	.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__tags,
	.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__badge,
	.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__title-word,
	.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__cue,
	.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__trace-path,
	.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__trace-roof {
		opacity: 1;
		stroke-dashoffset: 0;
		transform: none;
		transition: none;
	}

	.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__bg {
		transform: none;
	}

	.wpcursor-component.wpcursor-hero-pro .wpcursor-hero-pro__cue-line {
		animation: none;
	}
}
