/**
 * Accordéon FAQ du thème (shortcode [l4_faq]).
 * Même langage visuel que les FAQ « l4-faq » déjà présentes dans les articles.
 */

/* Tailles fixes (px) : le shortcode est souvent rendu dans un contexte
   Elementor qui impose sa propre base de police — on n'hérite de rien. */
/* width:100% : même précaution que pour la FAQ inline des pages SEO (voir
   style.css). Dans un conteneur Elementor en « Align items : start », le widget
   qui porte le shortcode est un flex item en shrink-to-fit, et l'accordéon se
   réduit à la largeur du plus long libellé tant qu'il est fermé. */
.l4-faq-bloc {
	margin: 32px 0;
	width: 100%;
	box-sizing: border-box;
	font-size: 16px;
	line-height: 1.6;
}
/* Bloc séparé : sans support de :has(), toute la liste serait ignorée. */
.elementor-widget:has(.l4-faq-bloc) { width: 100%; }

.l4-faq-bloc-titre {
	font-weight: 700;
	font-size: 22px;
	line-height: 1.3;
	color: #183546;
	margin: 0 0 14px;
}

.l4-faq-q {
	border: 1px solid #d1e8f2;
	border-radius: 6px;
	margin-bottom: 7px;
	overflow: hidden;
	background: #fff;
}

.l4-faq-q summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	cursor: pointer;
	font-weight: 600;
	font-size: 16px;
	color: #224A62;
	line-height: 1.45;
	list-style: none;
	user-select: none;
}
.l4-faq-q summary::-webkit-details-marker { display: none; }
.l4-faq-q summary:hover { background: #ECF9FF; }

.l4-faq-plus {
	flex-shrink: 0;
	width: 23px;
	height: 23px;
	border-radius: 50%;
	background: #30698C;
	position: relative;
	transition: transform .25s;
}
.l4-faq-plus::before,
.l4-faq-plus::after {
	content: "";
	position: absolute;
	background: #fff;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.l4-faq-plus::before { width: 11px; height: 2px; }
.l4-faq-plus::after {
	width: 2px;
	height: 11px;
	transition: transform .25s;
}
/* Question ouverte : la barre verticale du « + » s'efface, il reste un « − » */
.l4-faq-q[open] > summary .l4-faq-plus::after { transform: translate(-50%, -50%) scaleY(0); }

.l4-faq-a {
	padding: 6px 18px 16px;
	font-size: 16px;
	color: #333;
	line-height: 1.65;
	border-top: 1px solid #ECF9FF;
}
.l4-faq-a p,
.l4-faq-a li { font-size: 16px; line-height: 1.65; }
.l4-faq-a p:first-child { margin-top: 10px; }
.l4-faq-a p:last-child { margin-bottom: 0; }

/* Écrans étroits : on garde une taille confortable */
@media (max-width: 480px) {
	.l4-faq-q summary { font-size: 15px; padding: 13px 15px; }
	.l4-faq-a,
	.l4-faq-a p,
	.l4-faq-a li { font-size: 15px; }
	.l4-faq-bloc-titre { font-size: 20px; }
}
