/**
 * Facteurs du devis — navy #022b60 · orange #fbaf3f · blanc
 * Illustration 3D + lignes éditoriales (barre entre numéros et texte).
 */

html:has(.wpcursor-facteurs-devis) {
	overflow-x: clip;
}

body:has(.wpcursor-facteurs-devis) {
	overflow-x: clip !important;
	overflow-y: visible !important;
}

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

.wpcursor-component.wpcursor-facteurs-devis {
	--sr-navy: #022b60;
	--sr-navy-deep: #011833;
	--sr-orange: #fbaf3f;
	--sr-white: #ffffff;
	--sr-muted: rgba(255, 255, 255, 0.72);
	--sr-line: rgba(255, 255, 255, 0.2);
	--sr-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sr-pad: max(1.25rem, 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: var(--wp-admin--admin-bar--height, 0px);
	--sr-header-h: 4.5rem;
	--sr-num-w: 2.75rem;
	background:
		radial-gradient(ellipse 40% 36% at 18% 70%, rgba(251, 175, 63, 0.1) 0%, rgba(251, 175, 63, 0) 70%),
		linear-gradient(165deg, var(--sr-navy-deep) 0%, var(--sr-navy) 55%, #011a3a 100%);
	box-sizing: border-box;
	color: var(--sr-white);
	font-family: var(--sr-font);
	scroll-margin-top: 5.5rem;
	width: 100%;
}

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

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-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-facteurs-devis .wpcursor-facteurs-devis__inner {
	margin: 0 auto;
	max-width: 100%;
	padding: clamp(3rem, 6.5vw, 5rem) var(--sr-gutter) clamp(3rem, 6vw, 4.75rem);
	width: 100%;
}

/* ---------- Header ---------- */
.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__header {
	max-width: 42rem;
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

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

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__eyebrow-mark {
	background: var(--sr-orange);
	display: inline-block;
	flex: 0 0 auto;
	height: 2px;
	width: 1.35rem;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__title {
	color: var(--sr-white) !important;
	font-size: clamp(1.7rem, 3.5vw, 2.55rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0 0 0.95rem;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__intro {
	color: var(--sr-muted) !important;
	font-size: clamp(0.98rem, 1.3vw, 1.08rem);
	line-height: 1.55;
	margin: 0;
	max-width: 38rem;
}

/* ---------- Body ---------- */
.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__body {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3rem);
	grid-template-columns: 1fr;
	position: relative;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__connector {
	display: none;
	height: 100%;
	inset: 0;
	overflow: visible;
	pointer-events: none;
	position: absolute;
	width: 100%;
	z-index: 3;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__connector-path {
	filter: drop-shadow(0 0 4px rgba(251, 175, 63, 0.45));
	opacity: 0;
	transition: opacity 0.35s ease;
}

.wpcursor-component.wpcursor-facteurs-devis.is-linked .wpcursor-facteurs-devis__connector-path {
	opacity: 1;
}

/* ---------- Visual ---------- */
.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__visual {
	margin: 0;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__stage {
	aspect-ratio: 4 / 3;
	background: transparent;
	isolation: isolate;
	margin: 0 auto;
	max-width: 36rem;
	overflow: visible;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__img {
	background: transparent;
	display: block;
	filter: drop-shadow(0 18px 32px rgba(0, 8, 24, 0.28));
	height: 100%;
	object-fit: contain;
	object-position: center;
	width: 100%;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__zone {
	border-radius: 0.35rem;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity 0.35s ease;
	z-index: 1;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__zone.is-active {
	opacity: 1;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__zone--surface {
	background: radial-gradient(ellipse at center, rgba(251, 175, 63, 0.28) 0%, rgba(251, 175, 63, 0) 70%);
	height: 28%;
	left: 48%;
	top: 14%;
	width: 34%;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__zone--support {
	background: radial-gradient(ellipse at center, rgba(251, 175, 63, 0.26) 0%, rgba(251, 175, 63, 0) 70%);
	height: 26%;
	left: 24%;
	top: 30%;
	width: 32%;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__zone--acces {
	background: radial-gradient(ellipse at center, rgba(251, 175, 63, 0.28) 0%, rgba(251, 175, 63, 0) 72%);
	height: 36%;
	left: 70%;
	top: 42%;
	width: 18%;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__zone--systeme {
	background: radial-gradient(ellipse at center, rgba(251, 175, 63, 0.26) 0%, rgba(251, 175, 63, 0) 70%);
	height: 22%;
	left: 34%;
	top: 12%;
	width: 28%;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__hotspot {
	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.22), 0 0 14px rgba(251, 175, 63, 0.55);
	height: 0.7rem;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transform: translate(-50%, -50%) scale(0.55);
	transition: opacity 0.35s ease, transform 0.4s var(--sr-ease);
	width: 0.7rem;
	z-index: 2;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__hotspot.is-active {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__figcap {
	margin: 0;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__conclusion {
	align-items: flex-start;
	color: rgba(255, 255, 255, 0.82);
	display: flex;
	font-size: 0.92rem;
	font-style: italic;
	gap: 0.85rem;
	line-height: 1.45;
	margin: 1.25rem 0 0;
	max-width: 28rem;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__conclusion-rule {
	background: var(--sr-orange);
	display: inline-block;
	flex: 0 0 auto;
	height: 2px;
	margin-top: 0.65rem;
	width: 2.25rem;
}

/* ---------- Factors : numéro | barre | texte (jamais de ligne sur les numéros) ---------- */
.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factors {
	min-width: 0;
	position: relative;
	z-index: 2;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__index {
	display: flex;
	flex-direction: column;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 2;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor {
	border-top: 1px solid var(--sr-line);
	cursor: pointer;
	display: grid;
	gap: 0 1rem;
	grid-template-columns: var(--sr-num-w) 2px minmax(0, 1fr);
	margin: 0;
	padding: 1.15rem 0.15rem 1.15rem 0;
	position: relative;
	z-index: 2;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor:last-child {
	border-bottom: 1px solid var(--sr-line);
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor-btn {
	align-items: flex-start;
	appearance: none;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	justify-content: flex-start;
	margin: 0;
	min-height: 44px;
	min-width: 0;
	padding: 0.1rem 0;
	position: relative;
	text-align: left;
	width: 100%;
	z-index: 3;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor-btn:focus-visible {
	outline: 2px solid var(--sr-orange);
	outline-offset: 3px;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor-num {
	color: rgba(255, 255, 255, 0.78);
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	font-weight: 300;
	letter-spacing: 0.04em;
	line-height: 1.15;
	padding-top: 0.1rem;
	position: relative;
	transition: color 0.35s ease;
	z-index: 3;
}

/* Barre verticale ENTRE numéro et texte — seule piste orange */
.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor-rule {
	align-self: stretch;
	background: rgba(255, 255, 255, 0.28);
	display: block;
	margin: 0.2rem 0;
	min-height: 2.5rem;
	position: relative;
	transition: background-color 0.35s ease, box-shadow 0.35s ease;
	width: 2px;
	z-index: 2;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor-body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 0;
	padding-top: 0.15rem;
	position: relative;
	z-index: 2;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor-title {
	color: rgba(255, 255, 255, 0.92) !important;
	display: block;
	font-size: clamp(0.92rem, 1.35vw, 1.05rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
	transition: color 0.35s ease;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor-text {
	color: rgba(255, 255, 255, 0.7) !important;
	display: block;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.5;
	max-width: 30rem;
	transition: color 0.35s ease;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor.is-active .wpcursor-facteurs-devis__factor-num {
	color: var(--sr-white);
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor.is-active .wpcursor-facteurs-devis__factor-rule {
	background: var(--sr-orange);
	box-shadow: 0 0 10px rgba(251, 175, 63, 0.45);
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor.is-active .wpcursor-facteurs-devis__factor-title {
	color: var(--sr-orange) !important;
}

.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor.is-active .wpcursor-facteurs-devis__factor-text {
	color: rgba(255, 255, 255, 0.9) !important;
}

/* ---------- Desktop ---------- */
@media (min-width: 992px) {
	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__body {
		align-items: start;
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: 2.5rem 3rem;
	}

	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__connector {
		display: block;
	}

	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor {
		gap: 0 1.15rem;
		grid-template-columns: var(--sr-num-w) 2px minmax(0, 1fr);
	}
}

@media (min-width: 992px) and (min-height: 620px) {
	.wpcursor-component.wpcursor-facteurs-devis.is-sticky .wpcursor-facteurs-devis__visual {
		position: sticky;
		top: calc(var(--sr-admin-h) + var(--sr-header-h) + 1.25rem);
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
	.wpcursor-component.wpcursor-facteurs-devis {
		--sr-num-w: 2.35rem;
	}

	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__visual {
		order: -1;
		position: relative !important;
		top: auto !important;
	}

	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__stage {
		max-width: 28rem;
	}

	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__conclusion {
		margin-left: auto;
		margin-right: auto;
		max-width: 28rem;
	}

	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor {
		gap: 0 0.85rem;
	}
}

@media (max-width: 540px) {
	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor-num {
		font-size: 1.25rem;
	}

	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor-title {
		letter-spacing: 0.06em;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__zone,
	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__hotspot,
	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor-num,
	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor-rule,
	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor-title,
	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__factor-text,
	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__connector-path {
		transition: none !important;
	}

	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__visual {
		position: relative !important;
		top: auto !important;
	}

	.wpcursor-component.wpcursor-facteurs-devis .wpcursor-facteurs-devis__connector {
		display: none !important;
	}
}
