/* ==========================================================
   Bloc FAQ — accordéon élégant (s'adapte aux styles Classique et Chaleureux)
   ========================================================== */

.gs-faq {
	--faq-accent: var(--green-700, #1d6232);
	--faq-accent-soft: var(--green-50, #f1f5f0);
	--faq-line: var(--line, #e3e8e2);
	--faq-ink: var(--ink, #14181a);
	--faq-soft: var(--ink-soft, #555d60);
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}
.gs-faq-wrap { margin-top: 64px; }
.entry-content:empty + .gs-faq-wrap { margin-top: 0; }
.entry-content:has(> .alignfull:last-child) + .gs-faq-wrap { margin-top: calc(var(--section-pad, 56px) + 56px); }
.gs-style-chaleureux .gs-faq { --faq-accent: #c9772e; --faq-accent-soft: #efe6d6; }

.gs-faq__head { text-align: center; margin-bottom: 2rem; }
.gs-faq__title { font-size: clamp(1.6rem, 4.5vw, 2.1rem); font-weight: 800; margin: 0 0 .35em; }
.gs-faq__intro { color: var(--faq-soft); font-size: 1.08rem; max-width: 56ch; margin: 0 auto; }

.gs-faq__list { display: grid; gap: 12px; }

.gs-faq__item {
	background: #fff;
	border: 1px solid var(--faq-line);
	border-radius: 14px;
	transition: border-color .2s, box-shadow .2s;
}
.gs-faq__item:hover { border-color: color-mix(in srgb, var(--faq-accent) 35%, var(--faq-line)); }
.gs-faq__item[open] {
	border-color: color-mix(in srgb, var(--faq-accent) 45%, var(--faq-line));
	box-shadow: 0 10px 30px rgba(20, 30, 20, .07);
}

.gs-faq__question {
	display: flex; align-items: center; justify-content: space-between; gap: 18px;
	padding: 20px 22px;
	font-weight: 600; font-size: 1.06rem; line-height: 1.4; color: var(--faq-ink);
	cursor: pointer; list-style: none;
	border-radius: 14px;
}
.gs-faq__question::-webkit-details-marker { display: none; }
.gs-faq__question::marker { content: ""; }
.gs-faq__question:focus-visible { outline: 3px solid color-mix(in srgb, var(--faq-accent) 60%, transparent); outline-offset: 2px; }

/* Icône + / − dans une pastille */
.gs-faq__icon {
	position: relative; flex-shrink: 0;
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--faq-accent-soft);
	transition: background-color .25s, transform .3s;
}
.gs-faq__icon::before,
.gs-faq__icon::after {
	content: ""; position: absolute; left: 50%; top: 50%;
	width: 13px; height: 2px; border-radius: 2px;
	background: var(--faq-accent);
	transform: translate(-50%, -50%);
	transition: transform .3s, background-color .25s;
}
.gs-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.gs-faq__item[open] .gs-faq__icon { background: var(--faq-accent); transform: rotate(180deg); }
.gs-faq__item[open] .gs-faq__icon::before,
.gs-faq__item[open] .gs-faq__icon::after { background: #fff; }
.gs-faq__item[open] .gs-faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.gs-faq__answer {
	padding: 0 22px 22px;
	color: var(--faq-soft); font-size: 1rem; line-height: 1.65;
	animation: gs-faq-in .3s ease;
}
.gs-faq__answer > :first-child { margin-top: 0; }
.gs-faq__answer > :last-child { margin-bottom: 0; }
.gs-faq__answer a { color: var(--faq-accent); }
.gs-faq__answer ul, .gs-faq__answer ol { padding-left: 1.2em; }

@keyframes gs-faq-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

/* Ouverture fluide dans les navigateurs récents */
@supports (interpolate-size: allow-keywords) {
	.gs-faq { interpolate-size: allow-keywords; }
	.gs-faq__item::details-content {
		height: 0; overflow: clip;
		transition: height .3s ease, content-visibility .3s allow-discrete;
	}
	.gs-faq__item[open]::details-content { height: auto; }
}

@media (min-width: 1024px) {
	.gs-faq__question { padding: 22px 28px; font-size: 1.1rem; }
	.gs-faq__answer { padding: 0 28px 26px; }
}

@media (prefers-reduced-motion: reduce) {
	.gs-faq__answer { animation: none; }
	.gs-faq__item::details-content { transition: none; }
}
