/* ==========================================================
   FAQ page – Enfants du Soleil
   Change the variables below to match your brand.
   ========================================================== */

.eds-faq {
	--faq-accent: #f39200;        /* sun orange */
	--faq-accent-soft: #fff4e5;
	--faq-text: #1f2a37;
	--faq-muted: #5b6675;
	--faq-border: #e6e8ec;
	--faq-bg: #ffffff;
	--faq-radius: 12px;
	/* Set automatically by faq.js from your header height (fallbacks below). */
	--faq-header-space: 130px;    /* space reserved at the top for the fixed header */
	--faq-sticky-offset: 130px;   /* offset used when jumping to a question */

	color: var(--faq-text);
	padding: calc(var(--faq-header-space) + 40px) 20px 80px;
}

.eds-faq__container {
	max-width: 880px;
	margin: 0 auto;
}

/* ---------- Header ---------- */
.eds-faq__header {
	text-align: center;
	margin-bottom: 32px;
}

.eds-faq__title {
	margin: 0 0 12px;
}
/* ==========================================================
   FAQ page – Enfants du Soleil
   Change the variables below to match your brand.
   ========================================================== */

.eds-faq {
	--faq-accent: #f39200;        /* sun orange */
	--faq-accent-soft: #fff4e5;
	--faq-text: #1f2a37;
	--faq-muted: #5b6675;
	--faq-border: #e6e8ec;
	--faq-bg: #ffffff;
	--faq-radius: 12px;
	/* Space the header overlaps at the top of the page.
	   Measured automatically by faq.js; this value is only used if JS fails. */
	--faq-header-space: 220px;
	/* Height of the sticky menu once you scroll (desktop).
	   Anchor links stop at least this far from the top of the screen. */
	--faq-sticky-offset: 140px;

	color: var(--faq-text);
	padding: calc(var(--faq-header-space) + 40px) 20px 80px;
}

.eds-faq__container {
	max-width: 880px;
	margin: 0 auto;
}

/* ---------- Header ---------- */
.eds-faq__header {
	text-align: center;
	margin-bottom: 32px;
}

.eds-faq__title {
	margin: 0 0 12px;
}

.eds-faq__intro {
	color: var(--faq-muted);
	max-width: 680px;
	margin: 0 auto;
}

/* ---------- Category navigation ---------- */
.eds-faq__nav-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.eds-faq__nav-link {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--faq-border);
	border-radius: 999px;
	font-size: 0.9rem;
	color: var(--faq-text);
	text-decoration: none;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.eds-faq__nav-link:hover,
.eds-faq__nav-link:focus-visible {
	background: var(--faq-accent-soft);
	border-color: var(--faq-accent);
	color: var(--faq-text);
}

/* ---------- Expand / collapse all ---------- */
.eds-faq__tools {
	display: flex;
	justify-content: flex-end;
	gap: 16px;
	margin-bottom: 8px;
}

.eds-faq__tool {
	background: none;
	border: 0;
	padding: 4px 0;
	font: inherit;
	font-size: 0.875rem;
	color: var(--faq-muted);
	text-decoration: underline;
	cursor: pointer;
}

.eds-faq__tool:hover {
	color: var(--faq-accent);
}

/* ---------- Sections ---------- */
/* "main.eds-faq section…" is more specific than the theme's global
   section/h2 styles (padding, margins, huge font size). */
main.eds-faq section.eds-faq__section {
	margin: 48px 0 0;
	padding: 0;
	min-height: 0;
	scroll-margin-top: calc(var(--faq-sticky-offset) + 16px);
}

main.eds-faq section.eds-faq__section:first-of-type {
	margin-top: 24px;
}

main.eds-faq .eds-faq__section-title {
	margin: 0 0 20px;
	padding: 0 0 8px;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.25;
	border-bottom: 3px solid var(--faq-accent);
	display: inline-block;
}

/* ---------- Accordion items ---------- */
.eds-faq__item {
	background: var(--faq-bg);
	border: 1px solid var(--faq-border);
	border-radius: var(--faq-radius);
	margin-bottom: 12px;
	scroll-margin-top: calc(var(--faq-sticky-offset) + 16px);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.eds-faq__item[open] {
	border-color: var(--faq-accent);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.eds-faq__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	cursor: pointer;
	list-style: none;
}

.eds-faq__summary::-webkit-details-marker {
	display: none;
}

.eds-faq__summary:focus-visible {
	outline: 2px solid var(--faq-accent);
	outline-offset: 2px;
	border-radius: var(--faq-radius);
}

.eds-faq__question {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.4;
	font-weight: 600;
}

/* plus / minus icon */
.eds-faq__icon {
	position: relative;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--faq-accent-soft);
}

.eds-faq__icon::before,
.eds-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 2px;
	background: var(--faq-accent);
	transform: translate(-50%, -50%);
	transition: transform 0.2s;
}

.eds-faq__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.eds-faq__item[open] .eds-faq__icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

/* ---------- Answer ---------- */
.eds-faq__answer {
	padding: 0 20px 20px;
	color: var(--faq-muted);
	line-height: 1.65;
}

.eds-faq__answer > *:first-child {
	margin-top: 0;
}

.eds-faq__answer > *:last-child {
	margin-bottom: 0;
}

.eds-faq__answer ul,
.eds-faq__answer ol {
	padding-left: 1.25em;
	margin: 0.75em 0;
}

.eds-faq__answer li {
	margin-bottom: 0.35em;
}

.eds-faq__answer a {
	color: var(--faq-accent);
}

/* Sticky menu height on tablets / phones – adjust if needed */
@media (max-width: 1024px) {
	.eds-faq {
		--faq-sticky-offset: 90px;
	}
}

@media (max-width: 600px) {
	.eds-faq {
		padding: calc(var(--faq-header-space) + 24px) 16px 56px;
	}
	.eds-faq__summary {
		padding: 16px;
	}
	.eds-faq__answer {
		padding: 0 16px 16px;
	}
	.eds-faq__question {
		font-size: 1rem;
	}
	main.eds-faq section.eds-faq__section {
		margin-top: 36px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eds-faq * {
		transition: none !important;
	}
}
.eds-faq__intro {
	color: var(--faq-muted);
	max-width: 680px;
	margin: 0 auto;
}

/* ---------- Category navigation ---------- */
.eds-faq__nav-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.eds-faq__nav-link {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--faq-border);
	border-radius: 999px;
	font-size: 0.9rem;
	color: var(--faq-text);
	text-decoration: none;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.eds-faq__nav-link:hover,
.eds-faq__nav-link:focus-visible {
	background: var(--faq-accent-soft);
	border-color: var(--faq-accent);
	color: var(--faq-text);
}

/* ---------- Expand / collapse all ---------- */
.eds-faq__tools {
	display: flex;
	justify-content: flex-end;
	gap: 16px;
	margin-bottom: 8px;
}

.eds-faq__tool {
	background: none;
	border: 0;
	padding: 4px 0;
	font: inherit;
	font-size: 0.875rem;
	color: var(--faq-muted);
	text-decoration: underline;
	cursor: pointer;
}

.eds-faq__tool:hover {
	color: var(--faq-accent);
}

/* ---------- Sections ---------- */
.eds-faq__section {
/* 	margin-top: 40px; */
	scroll-margin-top: calc(var(--faq-sticky-offset) + 16px);
}

.eds-faq__section-title {
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 3px solid var(--faq-accent);
	display: inline-block;
}

/* ---------- Accordion items ---------- */
.eds-faq__item {
	background: var(--faq-bg);
	border: 1px solid var(--faq-border);
	border-radius: var(--faq-radius);
	margin-bottom: 12px;
	scroll-margin-top: calc(var(--faq-sticky-offset) + 16px);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.eds-faq__item[open] {
	border-color: var(--faq-accent);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.eds-faq__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	cursor: pointer;
	list-style: none;
}

.eds-faq__summary::-webkit-details-marker {
	display: none;
}

.eds-faq__summary:focus-visible {
	outline: 2px solid var(--faq-accent);
	outline-offset: 2px;
	border-radius: var(--faq-radius);
}

.eds-faq__question {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.4;
	font-weight: 600;
}

/* plus / minus icon */
.eds-faq__icon {
	position: relative;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--faq-accent-soft);
}

.eds-faq__icon::before,
.eds-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 2px;
	background: var(--faq-accent);
	transform: translate(-50%, -50%);
	transition: transform 0.2s;
}

.eds-faq__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.eds-faq__item[open] .eds-faq__icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

/* ---------- Answer ---------- */
.eds-faq__answer {
	padding: 0 20px 20px;
	color: var(--faq-muted);
	line-height: 1.65;
}

.eds-faq__answer > *:first-child {
	margin-top: 0;
}

.eds-faq__answer > *:last-child {
	margin-bottom: 0;
}

.eds-faq__answer ul,
.eds-faq__answer ol {
	padding-left: 1.25em;
	margin: 0.75em 0;
}

.eds-faq__answer li {
	margin-bottom: 0.35em;
}

.eds-faq__answer a {
	color: var(--faq-accent);
}

@media (max-width: 600px) {
	.eds-faq {
		padding: calc(var(--faq-header-space) + 24px) 16px 56px;
	}
	.eds-faq__summary {
		padding: 16px;
	}
	.eds-faq__answer {
		padding: 0 16px 16px;
	}
	.eds-faq__question {
		font-size: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eds-faq * {
		transition: none !important;
	}
}
main.eds-faq section.eds-faq__section {
	margin: 48px 0 0;
	padding: 0;
	min-height: 0;
	scroll-margin-top: calc(var(--faq-sticky-offset) + 16px);
}

main.eds-faq section.eds-faq__section:first-of-type {
	margin-top: 24px;
}

main.eds-faq .eds-faq__section-title {
	margin: 0 0 20px;
	padding: 0 0 8px;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.25;
	border-bottom: 3px solid var(--faq-accent);
	display: inline-block;
}