/**
 * FAQ Grand Est — fond #eef3f8 · navy #022b60 · orange #fbaf3f
 * H2 centré · accordéon pleine largeur · +/− · barre orange sur réponse ouverte.
 */
html:has(.wpcursor-faq-ge) {
	overflow-x: clip;
}

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

.wpcursor-component.wpcursor-faq-ge {
	--sr-navy: #022b60;
	--sr-orange: #fbaf3f;
	--sr-bg: #eef3f8;
	--sr-answer-bg: rgba(2, 43, 96, 0.035);
	--sr-muted: #3d4f6a;
	--sr-line: #c5d4e4;
	--sr-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sr-pad: max(1.5rem, env(safe-area-inset-left), env(safe-area-inset-right));
	--sr-content: 58rem;
	--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: var(--sr-bg);
	box-sizing: border-box;
	color: var(--sr-navy);
	font-family: var(--sr-font);
	isolation: isolate;
	overflow-x: clip;
	padding: clamp(3.75rem, 8vw, 6.25rem) 0;
	scroll-margin-top: 5.5rem;
	width: 100%;
}

.wpcursor-component.wpcursor-faq-ge *,
.wpcursor-component.wpcursor-faq-ge *::before,
.wpcursor-component.wpcursor-faq-ge *::after {
	box-sizing: border-box;
}

/* ---------- Intro centrée ---------- */
.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 auto clamp(2.25rem, 4.5vw, 3.25rem);
	max-width: min(52rem, calc(100% - 2 * var(--sr-pad)));
	padding: 0 var(--sr-pad);
	text-align: center;
	width: 100%;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__eyebrow {
	color: var(--sr-orange) !important;
	font-family: var(--sr-font);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.35;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__title {
	color: var(--sr-navy) !important;
	font-family: var(--sr-font);
	font-size: clamp(1.55rem, 3vw, 2.2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0;
	max-width: none;
	width: 100%;
}

/* ---------- Accordéon ---------- */
.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__list {
	border-top: 1px solid var(--sr-line);
	margin: 0 auto;
	max-width: min(var(--sr-content), calc(100% - 2 * var(--sr-pad)));
	width: 100%;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__item {
	border-bottom: 1px solid var(--sr-line);
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__item.is-open {
	border-bottom-color: rgba(2, 43, 96, 0.35);
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__question {
	align-items: flex-start;
	appearance: none;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: grid;
	font: inherit;
	gap: 0.85rem 1.25rem;
	grid-template-columns: minmax(0, 1fr) auto;
	margin: 0;
	min-height: 4.25rem;
	padding: 1.3rem 0.15rem;
	text-align: left;
	width: 100%;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__question:focus {
	outline: none;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__question:focus-visible {
	outline: 2px solid var(--sr-orange);
	outline-offset: 3px;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__question-text {
	color: var(--sr-navy) !important;
	display: inline;
	font-family: var(--sr-font);
	font-size: clamp(0.98rem, 1.35vw, 1.12rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.4;
	padding-top: 0.1rem;
	position: relative;
	width: fit-content;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__question-text::after {
	background: var(--sr-orange);
	bottom: -0.1em;
	content: "";
	height: 1.5px;
	left: 0;
	position: absolute;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.32s var(--sr-ease);
	width: 100%;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__icon {
	color: var(--sr-orange);
	display: block;
	flex: 0 0 auto;
	height: 1.35rem;
	margin-top: 0.2rem;
	position: relative;
	width: 1.35rem;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__icon::before,
.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__icon::after {
	background: currentColor;
	border-radius: 1px;
	content: "";
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__icon::before {
	height: 2px;
	width: 13px;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__icon::after {
	height: 13px;
	transition: transform 0.25s var(--sr-ease), opacity 0.2s ease;
	width: 2px;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__item.is-open .wpcursor-faq-ge__icon::after {
	opacity: 0;
	transform: translate(-50%, -50%) scaleY(0);
}

/* ---------- Réponses ---------- */
.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__answer {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition: grid-template-rows 0.34s var(--sr-ease), opacity 0.28s ease;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__item.is-open .wpcursor-faq-ge__answer {
	grid-template-rows: 1fr;
	opacity: 1;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__answer-inner {
	min-height: 0;
	overflow: hidden;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__answer-body {
	background: var(--sr-answer-bg);
	border-left: 3px solid var(--sr-orange);
	margin: 0 0 1.2rem;
	max-width: 46rem;
	padding: 0.95rem 1.15rem 1rem 1.1rem;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__answer-text {
	color: var(--sr-muted) !important;
	font-family: var(--sr-font);
	font-size: clamp(0.94rem, 1.15vw, 1.02rem);
	font-weight: 400;
	line-height: 1.65;
	margin: 0;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__answer-text a {
	color: var(--sr-navy) !important;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__answer-text a:hover,
.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__answer-text a:focus-visible {
	color: var(--sr-orange) !important;
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__answer-text a:focus-visible {
	outline: 2px solid var(--sr-orange);
	outline-offset: 2px;
}

/* ---------- Hover / focus question ---------- */
@media (hover: hover) and (pointer: fine) {
	.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__question:hover .wpcursor-faq-ge__question-text::after,
	.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__question:focus-visible .wpcursor-faq-ge__question-text::after {
		transform: scaleX(1);
	}
}

.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__question:focus-visible .wpcursor-faq-ge__question-text::after {
	transform: scaleX(1);
}

/* ---------- Mobile ---------- */
@media (max-width: 799px) {
	.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__question {
		gap: 0.75rem 1rem;
		min-height: 4.5rem;
		padding: 1.2rem 0.05rem;
	}

	.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__question-text {
		font-size: 1.02rem;
		line-height: 1.45;
		padding-right: 0.15rem;
	}

	.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__answer-body {
		margin-right: 0;
		padding: 0.9rem 1rem 0.95rem 0.95rem;
	}

	.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__title {
		max-width: none;
	}
}

/* ---------- Animations ---------- */
@keyframes sr-faq-ge-fade {
	from {
		opacity: 0;
		transform: translate3d(0, 12px, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.wpcursor-component.wpcursor-faq-ge:not(.is-inview) .wpcursor-faq-ge__eyebrow,
	.wpcursor-component.wpcursor-faq-ge:not(.is-inview) .wpcursor-faq-ge__title {
		opacity: 0;
		transform: translate3d(0, 10px, 0);
	}

	.wpcursor-component.wpcursor-faq-ge.is-inview .wpcursor-faq-ge__eyebrow,
	.wpcursor-component.wpcursor-faq-ge.is-inview .wpcursor-faq-ge__title {
		animation: sr-faq-ge-fade 0.8s var(--sr-ease) both;
	}

	.wpcursor-component.wpcursor-faq-ge.is-inview .wpcursor-faq-ge__title {
		animation-delay: 0.08s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__eyebrow,
	.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__title {
		opacity: 1;
		transform: none;
		animation: none !important;
	}

	.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__answer {
		transition: none;
	}

	.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__icon::after,
	.wpcursor-component.wpcursor-faq-ge .wpcursor-faq-ge__question-text::after {
		transition: none;
	}
}
