/*
 * Questions fréquentes en trois thèmes (maquette index.html, section « Questions fréquentes »).
 * Chaque thème a sa couleur : --pale (fond), --base (pastille), --encre-theme (surtitre).
 */

.fz {
	margin-top: var(--space-2xl);
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.fz-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	align-items: start;
}

.fz-col {
	background: var(--pale);
	border-radius: var(--radius-l);
	padding: 18px 14px 14px;
	min-width: 0;
}

.fz-col--1 { --pale: var(--orange-pale); --base: var(--orange); --encre-theme: var(--orange-encre); }
.fz-col--2 { --pale: var(--citron-pale); --base: var(--citron); --encre-theme: var(--citron-encre); }
.fz-col--3 { --pale: var(--pistache-pale); --base: var(--pistache); --encre-theme: var(--pistache-encre); }

.fz-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 4px 6px 8px;
}

.fz-ico {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--base);
	color: var(--encre);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.fz-tx {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.fz-tx .kick {
	font-size: 10.5px;
	color: var(--encre-theme);
}

.fz-name {
	margin: 0;
	font-size: 21px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.fz-item {
	background: var(--papier);
	border-radius: var(--radius-m);
	margin-top: 8px;
	box-shadow: 0 1px 0 var(--trait-fin);
}

.fz-h {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
}

.fz-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	min-height: 64px;
	padding: 14px 14px 14px 18px;
	border: none;
	background: transparent;
	color: var(--encre);
	font: inherit;
	text-align: left;
	cursor: pointer;
	border-radius: var(--radius-m);
}

.fz-q-t {
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.fz-q:hover .fz-q-t {
	color: var(--rose);
}

.fz-q:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.fz-chev {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--pale);
	color: var(--encre);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s, color 0.3s;
}

.fz-q[aria-expanded="true"] .fz-chev {
	transform: rotate(180deg);
	background: var(--encre);
	color: var(--sur-encre);
}

/*
 * Réponse : dépliée par grille, pour une animation de hauteur sans calcul. Sans JavaScript,
 * tout reste ouvert ; faq.js ajoute .fz-actif puis replie les questions fermées.
 */
.fz-a {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fz-actif .fz-item:not(.open) .fz-a {
	grid-template-rows: 0fr;
}

.fz-a-in {
	overflow: hidden;
	min-height: 0;
	padding: 0 18px;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--encre-2);
}

.fz-item .fz-a-in {
	padding-bottom: 18px;
}

.fz-actif .fz-item:not(.open) .fz-a-in {
	padding-bottom: 0;
}

.fz-a-in > :first-child {
	margin-top: 0;
}

.fz-a-in p {
	margin: 10px 0 0;
}

.fz-a-in ol {
	margin: 10px 0 0;
	padding-left: 18px;
}

.fz-a-in ol li {
	margin-top: 6px;
}

/* Les listes à puces des réponses sont dans composants.css (encadré papier, points roses). */

/* Bandeau d'aide sous les questions */
.fz-help {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	padding: 16px 22px;
	border-radius: 18px;
	background: var(--papier-2);
}

.fz-help .num {
	font-family: var(--font-accent);
	font-size: 26px;
	line-height: 1.1;
	color: var(--encre);
	text-decoration: none;
}

.fz-help-h {
	font-size: 14px;
	color: var(--encre-2);
}

.fz-help .mfaj-btn {
	margin-left: auto;
}

@media (max-width: 1000px) {
	.fz-cols {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	.fz-help .mfaj-btn {
		margin-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fz-a,
	.fz-chev {
		transition: none;
	}
}
