/*
 * FAQ (une colonne) — les questions de « Questions fréquentes » (faq.css),
 * sur une colonne de lecture centrée, sans texte à côté.
 *
 * Chaque bloc ne charge que sa propre feuille : les règles des questions sont
 * donc reprises ici, portées par la section de ce bloc.
 */

/* Moins d'air en haut et en bas que les autres sections : la FAQ suit souvent un autre bloc. */
.kahel-faq-liste-section {
	padding-top: var(--wp--custom--home--faq-padding-y);
	padding-bottom: var(--wp--custom--home--faq-padding-y);
}

/* Plus large que la colonne de texte (720 px), plus étroite que la grille : une ligne se lit d'un regard. */
.kahel-faq-liste-section.is-layout-constrained > .kahel-faq-liste {
	max-width: 860px;
	margin-inline: auto;
}

/* « Large » : toute la largeur de la grille ; les réponses gardent des lignes courtes. */
.kahel-faq-liste-section.is-large.is-layout-constrained > .kahel-faq-liste {
	max-width: var(--wp--style--global--wide-size);
}

.kahel-faq-liste-section.is-large .kahel-home-faq-reponse > * {
	max-width: 76ch;
}

.kahel-faq-liste-section .kahel-faq-liste-titre {
	margin: 0;
}

.kahel-faq-liste-section .kahel-faq-liste-intro {
	margin-bottom: clamp(28px, 4vw, 48px);
}

.kahel-faq-liste-section .kahel-faq-liste-questions {
	border-top: 1px solid var(--wp--preset--color--line);
}

.kahel-faq-liste-section .kahel-home-faq-item {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.kahel-faq-liste-section .kahel-home-faq-item summary {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 26px 0;
	cursor: pointer;
	list-style: none;
	font-size: clamp(1.08rem, 1.7vw, 1.35rem);
	font-weight: 850;
	letter-spacing: -0.03em;
	transition: color var(--wp--custom--motion--duration-fast) var(--wp--custom--motion--ease);
}

.kahel-faq-liste-section .kahel-home-faq-item summary::-webkit-details-marker {
	display: none;
}

.kahel-faq-liste-section .kahel-home-faq-item summary:hover {
	color: var(--wp--preset--color--orange-deep);
}

.kahel-faq-liste-section .kahel-home-faq-item summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--orange);
	outline-offset: 4px;
}

/* Le « + » en deux traits : le vertical pivote et le « + » devient « − ». */
.kahel-faq-liste-section .kahel-home-faq-icone {
	position: relative;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-right: 4px;
	color: var(--wp--preset--color--orange);
	transition: transform 450ms var(--wp--custom--motion--ease);
}

.kahel-faq-liste-section .kahel-home-faq-icone::before,
.kahel-faq-liste-section .kahel-home-faq-icone::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2.5px;
	margin-top: -1.25px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 450ms var(--wp--custom--motion--ease);
}

.kahel-faq-liste-section .kahel-home-faq-icone::after {
	transform: rotate(90deg);
}

.kahel-faq-liste-section .kahel-home-faq-item[open] .kahel-home-faq-icone {
	transform: rotate(180deg);
}

.kahel-faq-liste-section .kahel-home-faq-item[open] .kahel-home-faq-icone::after {
	transform: rotate(0deg);
}

.kahel-faq-liste-section .kahel-home-faq-reponse {
	overflow: hidden;
}

.kahel-faq-liste-section .kahel-home-faq-reponse p {
	max-width: 68ch;
	margin: -6px 0 28px;
}
