/*
 * Questions fréquentes — Kahel · Field guide.
 */

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

.kahel-home-faq-section .kahel-home-faq {
	display: grid;
	grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
	gap: var(--wp--custom--home--faq-gap);
	align-items: start;
}

.kahel-home-faq-section .kahel-home-faq-title {
	max-width: var(--wp--custom--home--faq-title-max);
	margin: 0;
}

.kahel-home-faq-section .kahel-home-faq-title + p {
	margin-top: 1.5rem;
}

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

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

.kahel-home-faq-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-home-faq-section .kahel-home-faq-item summary::-webkit-details-marker {
	display: none;
}

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

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

/* Le « + » de Kahel, en deux traits : le vertical pivote et le « + » devient « − ». */
.kahel-home-faq-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-home-faq-section .kahel-home-faq-icone::before,
.kahel-home-faq-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-home-faq-section .kahel-home-faq-icone::after {
	transform: rotate(90deg);
}

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

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

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

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

@media (max-width: 900px) {
	.kahel-home-faq-section .kahel-home-faq {
		grid-template-columns: 1fr;
	}
}
