/* JS – FAQ — v1.0.0
 * Accordéon <details> natif (fonctionne sans JS). Animation douce par grille
 * (grid-template-rows 0fr→1fr) pilotée par le JS via .is-anim ; sans JS,
 * ouverture/fermeture instantanée native. Architecture anti-débordement,
 * défauts responsive portés par le plugin, AA sur les 5 designs.
 */

@font-face {
	font-family: 'Dancing Script JS';
	src: url('../fonts/dancing-script-js-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Dancing Script JS';
	src: url('../fonts/dancing-script-js-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.js-f {
	--js-pad-x: 0px;
	--js-f-cols: 1;
	--js-f-accent: #4a7326;
	--js-f-accent2: #3e6d2c;
	--js-f-soft: #eaf2df;
	--js-f-title: #000101;
	--js-f-text: #5b6a56;
	--js-f-border: #e4ebdd;

	position: relative;
	max-width: 100%;
	overflow-x: clip;
	padding-left: var(--js-pad-x);
	padding-right: var(--js-pad-x);
	font-family: 'Noto Sans', sans-serif;
	color: var(--js-f-text);
}
.js-f :where(h1, h2, h3, h4, h5, h6, p) { margin: 0; padding: 0; letter-spacing: normal; text-transform: none; }
.js-f :where(*) { min-width: 0; }
.js-f :where(p, span, div) { overflow-wrap: anywhere; }

.js-f--sauge { background: #f1f5ec; border-radius: 26px; padding-top: 54px; padding-bottom: 54px; }
.js-f--sauge:not([style*="--js-pad-x"]) { --js-pad-x: 34px; }
.js-f--nuit {
	background: linear-gradient(160deg, #000101, #0d1a0b);
	border-radius: 26px;
	padding-top: 54px;
	padding-bottom: 54px;
	color: #c3cbbd;
}
.js-f--nuit:not([style*="--js-pad-x"]) { --js-pad-x: 34px; }

/* ---------- En-tête signature ---------- */
.js-f__header { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.js-f .js-f__surtitle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: 'Dancing Script JS', cursive;
	font-weight: 700;
	font-size: 26px;
	line-height: 1.2;
	color: var(--js-f-accent);
	margin-bottom: 10px;
}
.js-f--nuit .js-f__surtitle { color: #9fd36d; }
.js-f__decor { display: inline-flex; color: #9fd36d; flex: 0 0 auto; }
.js-f__decor .js-f__branch { width: 40px; height: 22px; }
.js-f__decor i, .js-f__decor svg { font-size: 22px; width: 22px; height: 22px; line-height: 1; }
.js-f__decor svg { fill: currentColor; }
.js-f__decor--img img { display: block; height: 30px; width: auto; max-width: 90px; object-fit: contain; }
.js-f .js-f__title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 40px;
	line-height: 1.18;
	color: var(--js-f-title);
	margin-bottom: 14px;
}
.js-f--nuit .js-f__title { color: #ffffff; }
.js-f__accent {
	background: linear-gradient(180deg, var(--js-f-accent), var(--js-f-accent2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.js-f--nuit .js-f__accent { background: linear-gradient(180deg, #c6ea9e, #9fd36d); -webkit-background-clip: text; background-clip: text; }
.js-f .js-f__intro { font-size: 16px; line-height: 1.75; }
@media (max-width: 1024px) { .js-f .js-f__title { font-size: 33px; } }
@media (max-width: 767px)  { .js-f .js-f__title { font-size: 27px; } .js-f .js-f__surtitle { font-size: 23px; } }

/* ---------- Accordéon ---------- */
.js-f__list {
	display: grid;
	grid-template-columns: repeat(var(--js-f-cols), minmax(0, 1fr));
	gap: 14px 22px;
	align-items: start;
	max-width: 880px;
	margin: 0 auto;
}
.js-f__list:has(> :nth-child(1):last-child) { max-width: 880px; }
@media (max-width: 1024px) { .js-f { --js-f-cols: 1; } }

.js-f__item { min-width: 0; }
.js-f .js-f__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	cursor: pointer;
	list-style: none;
	padding: 17px 20px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
	color: var(--js-f-title);
	transition: color .22s ease;
}
.js-f .js-f__question::-webkit-details-marker { display: none; }
.js-f .js-f__question::marker { content: ''; }
.js-f__q-text { min-width: 0; }
.js-f__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: var(--js-f-soft);
	color: var(--js-f-accent2);
	flex: 0 0 auto;
	transition: transform .3s ease, background .22s ease, color .22s ease;
}
.js-f__chevron svg { width: 13px; height: 13px; }
.js-f__item[open] > .js-f__question .js-f__chevron {
	transform: rotate(180deg);
	background: linear-gradient(135deg, var(--js-f-accent), var(--js-f-accent2));
	color: #ffffff;
}
.js-f__item[open] > .js-f__question { color: var(--js-f-accent2); }
.js-f--nuit .js-f__item[open] > .js-f__question { color: #c6ea9e; }
.js-f .js-f__question:focus-visible { outline: 2px solid var(--js-f-title); outline-offset: 2px; border-radius: 12px; }
.js-f--nuit .js-f__question:focus-visible { outline-color: #ffffff; }

.js-f__answer { overflow: hidden; }
.js-f__answer-inner {
	padding: 0 20px 18px;
	font-size: 14.5px;
	line-height: 1.75;
	min-height: 0;
}
/* Animation douce (activée par le JS uniquement — sans JS, natif instantané). */
.js-f--js .js-f__answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .38s ease;
}
.js-f--js .js-f__item[open] > .js-f__answer { grid-template-rows: 1fr; }
.js-f--js .js-f__answer-inner { overflow: hidden; }

/* ---------- Designs ---------- */
/* Cartes séparées (défaut). */
.js-f--cartes .js-f__item, .js-f--sauge .js-f__item {
	background: #ffffff;
	border: 1px solid var(--js-f-border);
	border-radius: 16px;
	box-shadow: 0 3px 14px rgba(0,1,1, .05);
	transition: border-color .25s ease, box-shadow .25s ease;
}
.js-f--cartes .js-f__item:hover, .js-f--sauge .js-f__item:hover { border-color: #b9d3b4; }
.js-f--cartes .js-f__item[open], .js-f--sauge .js-f__item[open] {
	border-color: #a7c894;
	box-shadow: 0 10px 26px rgba(0,1,1, .1);
}
/* Liseré latéral. */
.js-f--lisere .js-f__item {
	background: #f8faf9;
	border-left: 4px solid var(--js-f-border);
	border-radius: 0 14px 14px 0;
	transition: border-color .25s ease, background .25s ease;
}
.js-f--lisere .js-f__item[open] { border-left-color: #9fd36d; background: #ffffff; box-shadow: 0 8px 22px rgba(0,1,1, .08); }
/* Nuit. */
.js-f--nuit .js-f__item {
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 16px;
	transition: border-color .25s ease;
}
.js-f--nuit .js-f__item[open] { border-color: rgba(198,234,158, .5); }
.js-f--nuit .js-f__question { color: #ffffff; }
.js-f--nuit .js-f__answer-inner { color: #c3cbbd; }
.js-f--nuit .js-f__chevron { background: rgba(123,176,66, .16); color: #c6ea9e; }
/* Lignes minimales. */
.js-f--lignes .js-f__item { border-bottom: 1px solid rgba(0,1,1, .12); }
.js-f--lignes .js-f__question { padding-left: 0; padding-right: 0; }
.js-f--lignes .js-f__answer-inner { padding-left: 0; padding-right: 0; }

@media (prefers-reduced-motion: reduce) {
	.js-f *, .js-f *::before, .js-f *::after { transition: none !important; animation: none !important; }
}
