/* Section "faq" (sections/faq.php, prefix fq-). Loaded in the <head> by hec_enqueue_section_styles(), or inline by hec_section_style() (functions.php). */
.fq-root { /* ivory with soft mustard halos and the faint crescent (canvas, 2026-11-26) */
	--fq-wm: clamp(20rem, 34vw, 30rem);
	position: relative;
	isolation: isolate;
	overflow: clip;
	padding-block: clamp(4.5rem, 2.6rem + 7.6vw, 8rem);
	background: var(--c-ivoire-100);
	color: var(--c-cacao-900);
	font-family: var(--f-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	interpolate-size: allow-keywords; /* lets the answers open and close smoothly where supported */
}
.fq-root .fq-halo--a { top: -9rem; right: -12rem; width: min(40rem, 140vw); }
.fq-root .fq-halo--b { bottom: -14rem; left: -12rem; width: min(36rem, 130vw); opacity: 0.8; }
.fq-root::before { /* the logo's crescent, faint, on the left */
	content: "";
	position: absolute;
	bottom: var(--space-7);
	left: calc(var(--fq-wm) * -0.18);
	z-index: -1;
	width: var(--fq-wm);
	aspect-ratio: 732 / 788;
	background: var(--c-brun-500);
	-webkit-mask: url("../../img/watermark-arc-mask.svg") center / contain no-repeat;
	mask: url("../../img/watermark-arc-mask.svg") center / contain no-repeat;
	opacity: 0.07;
	pointer-events: none;
}
.fq-inner {
	position: relative;
	display: grid;
	gap: var(--space-7);
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--space-gutter);
}

/* Title and call button */
.fq-root .fq-title { /* the canvas title style (same size as every h2, below the hero h1) */
	max-width: 13em;
	margin: 0;
	color: var(--c-cacao-900);
	font-family: var(--f-serif);
	font-size: var(--fs-title);
	font-weight: var(--fw-title);
	font-variation-settings: "opsz" 144, "SOFT" 100;
	line-height: 1.05;
	letter-spacing: var(--ls-title);
	text-wrap: balance;
}
.fq-title-em {
	color: var(--c-brun-500);
	font-style: italic;
	font-weight: 400;
}
.fq-root .fq-btn { /* the shared .hec-btn, accent variant (reserved for "Appeler le cabinet") */
	margin-top: var(--space-6);
}

/* Accordion */
.fq-item {
	border-radius: var(--radius-md);
	transition: background-color 0.3s, box-shadow 0.3s;
}
.fq-item::before { /* hairline between questions, hidden around the open one */
	content: "";
	display: block;
	height: 1px;
	margin-inline: var(--space-4);
	background: var(--c-brun-400);
	opacity: 0.4;
}
.fq-item[open] {
	background: var(--c-ivoire-50);
	box-shadow: var(--shadow-sm);
}
.fq-item:first-child::before,
.fq-item[open]::before,
.fq-item[open] + .fq-item::before {
	opacity: 0;
}
.fq-q {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: var(--space-4);
	padding: var(--space-4);
	border-radius: var(--radius-md);
	list-style: none;
	cursor: pointer;
}
.fq-q::-webkit-details-marker {
	display: none;
}
.fq-num {
	color: var(--c-brun-500);
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: 0.02em;
}
.fq-root .fq-q-title { /* design-system h4 style, the one meant for FAQ questions */
	margin: 0;
	color: var(--c-cacao-900);
	font-family: var(--f-sans);
	font-size: var(--fs-h4);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.005em;
}
.fq-sign { /* plus when closed, mustard minus when open */
	position: relative;
	width: 2.5rem;
	height: 2.5rem;
	border: 1.5px solid var(--c-brun-400);
	border-radius: 50%;
	transition: background-color 0.3s, border-color 0.3s;
}
.fq-sign::before,
.fq-sign::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.8125rem;
	height: 1.5px;
	margin: -0.75px 0 0 -0.40625rem;
	background: currentColor;
	transition: transform 0.3s;
}
.fq-sign::after {
	transform: rotate(90deg);
}
.fq-q:hover .fq-sign {
	border-color: var(--c-ambre-500);
}
.fq-item[open] .fq-sign {
	border-color: var(--c-ambre-500);
	background: var(--c-ambre-500);
	color: var(--c-on-accent);
}
.fq-item[open] .fq-sign::after {
	transform: rotate(0deg);
}
.fq-item::details-content { /* smooth height where the browser supports it; instant elsewhere */
	block-size: 0;
	overflow: clip;
	transition: block-size 0.35s, content-visibility 0.35s allow-discrete;
}
.fq-item[open]::details-content {
	block-size: auto;
}
.fq-a { /* the site's paragraph style */
	max-width: 44em;
	margin: 0;
	padding: 0 var(--space-4) var(--space-5);
	color: var(--c-cacao-700);
}
.fq-root .fq-link {
	border-radius: var(--radius-sm);
	color: var(--c-cacao-900);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--c-ambre-500);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.25em;
	white-space: nowrap;
}
.fq-root .fq-link:hover {
	color: var(--c-brun-500);
}
.fq-root .fq-link:focus-visible,
.fq-q:focus-visible {
	outline: 2px solid var(--c-focus);
	outline-offset: 2px;
}

@media (min-width: 1024px) {
	.fq-inner {
		grid-template-columns: 1fr 1fr; /* same grid as every two-column section (client, 2026-10-08): columns line up from section to section */
		align-items: start;
		gap: var(--space-8);
	}
	.fq-side { /* stays in view while the questions scroll */
		position: sticky;
		top: calc(var(--header-h) + var(--space-5));
	}
	.fq-q { padding: var(--space-5); }
	.fq-a { padding: 0 var(--space-5) var(--space-5) calc(var(--space-5) + 2.25rem); }
}

@media (prefers-reduced-motion: reduce) {
	.fq-item,
	.fq-item::details-content,
	.fq-sign,
	.fq-sign::before,
	.fq-sign::after {
		transition: none;
	}
}
