/**
 * Styles front du bloc FAQ (shortcode [pxn_faq]) - style C "liste epuree" (03/10/2026) :
 * questions separees par des filets, texte entier (plus de nowrap), fleche rose #e0006a qui pivote a l'ouverture.
 * Variables :root issues des reglages (voir library/enqueue.php) encore lues : couleur et ::before du titre,
 * taille du texte des questions. Fond des questions et caracteres +/- ne sont plus utilises par ce style.
 */

.pxn_faq {
	width: 100%;
	display: block;
	box-sizing: border-box;
	margin: 24px 0;
	padding: 0;
	border-bottom: 1px solid #eceef1;
	background: none;
}

.pxn_faq .question {
	position: relative;
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 18px 36px 18px 0;
	border: 0;
	border-top: 1px solid #eceef1;
	border-radius: 0;
	outline: none;
	background: none;
	color: #111111;
	font-family: Poppins, sans-serif;
	font-size: var(--pxn-faq-q-fs, 16px);
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
	white-space: normal;
	cursor: pointer;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
	transition: color .2s;
}

.pxn_faq .question:hover,
.pxn_faq .question.active {
	background: none;
	color: #e0006a;
}

.pxn_faq .question:focus-visible {
	outline: 2px solid #e0006a;
	outline-offset: 2px;
}

/* Fleche (chevron) rose a droite, pivote quand la question est ouverte */
.pxn_faq .question:after {
	content: "";
	position: absolute;
	top: 50%;
	right: 4px;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	background: #e0006a;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
	transition: transform .2s;
}

.pxn_faq .question.active:after {
	transform: rotate(180deg);
}

.pxn_faq h3.question {
	margin: 0;
	font-size: var(--pxn-faq-q-fs, 16px);
}

.pxn_faq .answer {
	display: none;
	overflow: hidden;
	padding: 0 36px 18px 0;
	color: #444444;
	font-size: 15px;
	line-height: 1.7;
}

.pxn_faq .answer p:first-child {
	margin-top: 0;
}

.pxn_faq .answer p:last-child {
	margin-bottom: 0;
}

/* Titre du bloc : couleur et pseudo-element ::before pilotes par les reglages */
.pxn_faq .pxn_faq_title::before {
	content: var(--pxn-faq-hdr-bf, "");
	font-weight: bold;
	color: var(--pxn-faq-hdr-color, #111111);
}

.pxn_faq_title,
.pxn_faq_title h2,
.pxn_faq_title h3 {
	display: block;
	margin: 0;
	padding: 0 0 12px;
	color: var(--pxn-faq-hdr-color, #111111);
	font-family: Poppins, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

.pxn_faq_title h2,
.pxn_faq_title h3 {
	padding: 0;
}

@media (max-width: 600px) {
	.pxn_faq .question {
		padding: 16px 32px 16px 0;
		font-size: var(--pxn-faq-q-fs, 15px);
	}
	.pxn_faq .answer {
		padding-right: 0;
	}
	.pxn_faq_title,
	.pxn_faq_title h2,
	.pxn_faq_title h3 {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pxn_faq .question,
	.pxn_faq .question:after {
		transition: none;
	}
}
