/**
 * Shortcode [kc_category_faq] — FAQ de catégorie en accordéons.
 */

.kc-faq {
	--kc-faq-border: #D9D5CB;
	--kc-faq-title: #33352F;
	--kc-faq-icon: #2E5E4E;
	--kc-faq-text: #4a4c44;

	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 20px 0;
}

.kc-faq-item {
	background: #fff;
	border: 1px solid var(--kc-faq-border);
	border-radius: 10px;
	overflow: hidden;
}

.kc-faq-item__header {
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 18px 22px;
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: var(--kc-faq-title);
}

.kc-faq-item__question {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.kc-faq-item__icon {
	position: relative;
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	transition: transform 0.25s ease;
}

.kc-faq-item__icon::before,
.kc-faq-item__icon::after {
	content: "";
	position: absolute;
	background: var(--kc-faq-icon);
}

.kc-faq-item__icon::before {
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	transform: translateY(-50%);
}

.kc-faq-item__icon::after {
	left: 50%;
	top: 0;
	width: 2px;
	height: 100%;
	transform: translateX(-50%);
}

.kc-faq-item.is-open .kc-faq-item__icon {
	transform: rotate(45deg);
}

.kc-faq-item__header:focus-visible {
	outline: 2px solid var(--kc-faq-icon);
	outline-offset: -2px;
}

.kc-faq-item__panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.kc-faq-item__answer {
	padding: 0 22px 18px;
	color: var(--kc-faq-text);
	font-size: 15px;
	line-height: 1.6;
}

@media (max-width: 600px) {
	.kc-faq-item__header {
		padding: 14px 18px;
	}

	.kc-faq-item__question {
		font-size: 15px;
	}

	.kc-faq-item__answer {
		padding: 0 18px 14px;
	}
}
