/* WB – 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 WB';
	src: url('../fonts/dancing-script-wb-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Dancing Script WB';
	src: url('../fonts/dancing-script-wb-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.wb-f {
	--wb-pad-x: 0px;
	--wb-f-cols: 1;
	--wb-f-accent: #35852c;
	--wb-f-accent2: #256b1c;
	--wb-f-soft: #e4f3e2;
	--wb-f-title: #072032;
	--wb-f-text: #5c6972;
	--wb-f-border: #e6ebef;

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

.wb-f--sauge { background: #eef6ec; border-radius: 26px; padding-top: 54px; padding-bottom: 54px; }
.wb-f--sauge:not([style*="--wb-pad-x"]) { --wb-pad-x: 34px; }
.wb-f--nuit {
	background: linear-gradient(160deg, #072032, #0a2f4a);
	border-radius: 26px;
	padding-top: 54px;
	padding-bottom: 54px;
	color: #b8c4cd;
}
.wb-f--nuit:not([style*="--wb-pad-x"]) { --wb-pad-x: 34px; }

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

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

.wb-f__item { min-width: 0; }
.wb-f .wb-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(--wb-f-title);
	transition: color .22s ease;
}
.wb-f .wb-f__question::-webkit-details-marker { display: none; }
.wb-f .wb-f__question::marker { content: ''; }
.wb-f__q-text { min-width: 0; }
.wb-f__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: var(--wb-f-soft);
	color: var(--wb-f-accent2);
	flex: 0 0 auto;
	transition: transform .3s ease, background .22s ease, color .22s ease;
}
.wb-f__chevron svg { width: 13px; height: 13px; }
.wb-f__item[open] > .wb-f__question .wb-f__chevron {
	transform: rotate(180deg);
	background: linear-gradient(135deg, var(--wb-f-accent), var(--wb-f-accent2));
	color: #ffffff;
}
.wb-f__item[open] > .wb-f__question { color: var(--wb-f-accent2); }
.wb-f--nuit .wb-f__item[open] > .wb-f__question { color: #a5e88f; }
.wb-f .wb-f__question:focus-visible { outline: 2px solid var(--wb-f-title); outline-offset: 2px; border-radius: 12px; }
.wb-f--nuit .wb-f__question:focus-visible { outline-color: #ffffff; }

.wb-f__answer { overflow: hidden; }
.wb-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é). */
.wb-f--js .wb-f__answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .38s ease;
}
.wb-f--js .wb-f__item[open] > .wb-f__answer { grid-template-rows: 1fr; }
.wb-f--js .wb-f__answer-inner { overflow: hidden; }

/* ---------- Designs ---------- */
/* Cartes séparées (défaut). */
.wb-f--cartes .wb-f__item, .wb-f--sauge .wb-f__item {
	background: #ffffff;
	border: 1px solid var(--wb-f-border);
	border-radius: 16px;
	box-shadow: 0 3px 14px rgba(7, 32, 50, .05);
	transition: border-color .25s ease, box-shadow .25s ease;
}
.wb-f--cartes .wb-f__item:hover, .wb-f--sauge .wb-f__item:hover { border-color: #b9d3b4; }
.wb-f--cartes .wb-f__item[open], .wb-f--sauge .wb-f__item[open] {
	border-color: #9fc79a;
	box-shadow: 0 10px 26px rgba(7, 32, 50, .1);
}
/* Liseré latéral. */
.wb-f--lisere .wb-f__item {
	background: #f8faf9;
	border-left: 4px solid var(--wb-f-border);
	border-radius: 0 14px 14px 0;
	transition: border-color .25s ease, background .25s ease;
}
.wb-f--lisere .wb-f__item[open] { border-left-color: #ffa800; background: #ffffff; box-shadow: 0 8px 22px rgba(7, 32, 50, .08); }
/* Nuit. */
.wb-f--nuit .wb-f__item {
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 16px;
	transition: border-color .25s ease;
}
.wb-f--nuit .wb-f__item[open] { border-color: rgba(165, 232, 143, .5); }
.wb-f--nuit .wb-f__question { color: #ffffff; }
.wb-f--nuit .wb-f__answer-inner { color: #b8c4cd; }
.wb-f--nuit .wb-f__chevron { background: rgba(74, 171, 61, .16); color: #a5e88f; }
/* Lignes minimales. */
.wb-f--lignes .wb-f__item { border-bottom: 1px solid rgba(7, 32, 50, .12); }
.wb-f--lignes .wb-f__question { padding-left: 0; padding-right: 0; }
.wb-f--lignes .wb-f__answer-inner { padding-left: 0; padding-right: 0; }

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