/**
 * Nova FAQ Widget Styles
 */

.nova-faq-widget {
	width: 100%;
}

.nova-faq-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
}

.nova-faq-filter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 10px 16px;
	border: 1px solid #e7e7e7;
	border-radius: 8px;
	background: #fff;
	color: #373737;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nova-faq-filter:hover,
.nova-faq-filter:focus-visible {
	border-color: #00a1b9;
	color: #00a1b9;
	outline: none;
}

.nova-faq-filter.is-active {
	background: #00a1b9;
	border-color: #00a1b9;
	color: #fff;
}

.nova-faq-item.is-filtered-out {
	display: none !important;
}

.nova-faq-title {
	margin: 0 0 30px 0;
	font-weight: 600;
	line-height: 1.4;
}
.nova-faq-answer p:last-child {
    margin-bottom: 0;
}
.nova-faq-container {
	width: 100%;
}
span.nova-faq-icon img,
.nova-faq-icon__img {
	width: 8px;
	height: 8px;
	display: block;
	object-fit: contain;
	object-position: center center;
}

/* Image : glyph 8×8 ; cercle via CSS (bordure / hover). */
.nova-faq-icon--image {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	padding: 0;
	overflow: visible;
	border: 1.5px solid #e0d4ef;
	border-radius: 50%;
	background-color: transparent;
	transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.nova-faq-item:hover .nova-faq-icon--image {
	border-color: currentColor;
}

.nova-faq-item.active .nova-faq-icon--image {
	border-color: currentColor;
	background-color: #f6f0fb;
}

.nova-faq-icon__img.is-hidden {
	display: none !important;
}

.nova-faq-icon--image .nova-faq-icon__img--open:not(.is-hidden) {
	display: block;
}

.nova-faq-item {
	width: 100%;
	margin-bottom: 15px;
	transition: all 0.3s ease;
	cursor: pointer;
}

.nova-faq-question {
	display: flex;
	align-items: center;
	gap: 15px;
	cursor: pointer;
	user-select: none;
	transition: all 0.3s ease;
	position: relative;
	width: 100%;
}

.nova-faq-question.icon-left {
	flex-direction: row;
}

.nova-faq-question.icon-left .nova-faq-icon {
	order: -1;
}

.nova-faq-question.icon-right {
	flex-direction: row;
}

.nova-faq-question.icon-right .nova-faq-icon {
	order: 1;
}

.nova-faq-question-text {
	flex: 1;
	font-weight: 500;
	line-height: 1.5;
}

.nova-faq-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
	line-height: 1;
	box-sizing: border-box;
}

.nova-faq-icon svg {
	display: block;
	width: 8px;
	height: 8px;
	transition: all 0.3s ease;
}

/* Plus/Minus : cercle CSS, + → × (rotation 45°) ; glyph 8×8. */
.nova-faq-icon--plus-minus {
	--nova-faq-icon-size: 24px;
	--nova-faq-icon-stroke: 2px;
	--nova-faq-icon-mark: 8px;
	width: var(--nova-faq-icon-size);
	height: var(--nova-faq-icon-size);
	padding: 0;
	color: #9b3de8;
	background-color: transparent;
	border: 1.5px solid #e0d4ef;
	border-radius: 50%;
}

.nova-faq-icon--plus-minus .nova-faq-icon__mark {
	position: relative;
	display: block;
	width: min(8px, 50%);
	height: min(8px, 50%);
	flex-shrink: 0;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nova-faq-icon--plus-minus .nova-faq-icon__mark::before,
.nova-faq-icon--plus-minus .nova-faq-icon__mark::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	background: currentColor;
	border-radius: 1px;
	transform: translate(-50%, -50%);
}

.nova-faq-icon--plus-minus .nova-faq-icon__mark::before {
	width: 100%;
	height: var(--nova-faq-icon-stroke);
}

.nova-faq-icon--plus-minus .nova-faq-icon__mark::after {
	width: var(--nova-faq-icon-stroke);
	height: 100%;
}

.nova-faq-item.active .nova-faq-icon--plus-minus,
.nova-faq-icon--plus-minus.icon-open {
	border-color: currentColor;
	background-color: #f6f0fb;
}

.nova-faq-item.active .nova-faq-icon--plus-minus .nova-faq-icon__mark,
.nova-faq-icon--plus-minus.icon-open .nova-faq-icon__mark {
	transform: rotate(45deg);
}

/* Styles pour l'état actif - Icône */
.nova-faq-item.active .nova-faq-icon {
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.nova-faq-answer-wrapper {
	overflow: hidden;
}

.nova-faq-item.active .nova-faq-answer {
	opacity: 1;
}

/* Slide : max-height en px (scrollHeight) + fade contenu — comme .faq-answer. */
.nova-faq-widget[data-animation-type="slide"] .nova-faq-answer-wrapper {
	max-height: 0;
	overflow: hidden;
	width: 100%;
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nova-faq-widget[data-animation-type="slide"] .nova-faq-answer {
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.nova-faq-widget[data-animation-type="slide"] .nova-faq-item.active .nova-faq-answer {
	opacity: 1;
	transform: translateY(0);
}

/* Fade */
.nova-faq-widget[data-animation-type="fade"] .nova-faq-answer-wrapper {
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.nova-faq-widget[data-animation-type="fade"] .nova-faq-item.active .nova-faq-answer-wrapper {
	opacity: 1;
	transform: translateY(0);
}

/* None */
.nova-faq-widget[data-animation-type="none"] .nova-faq-answer-wrapper {
	display: none;
}

.nova-faq-widget[data-animation-type="none"] .nova-faq-item.active .nova-faq-answer-wrapper {
	display: block;
}

/* Styles pour l'état actif - Question */
.nova-faq-item.active .nova-faq-question {
	transition: all 0.3s ease;
}

.nova-faq-item.active .nova-faq-question-text {
	transition: color 0.3s ease, font-weight 0.3s ease;
}

/* Hover Effects */
.nova-faq-question:hover {
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.nova-faq-item.active .nova-faq-question:hover {
	opacity: 1;
}

/* Focus States */
.nova-faq-question:focus {
	outline: 2px solid #4A90E2;
	outline-offset: 2px;
}

.nova-faq-question:focus:not(:focus-visible) {
	outline: none;
}


/* Accessibility - Styles pour aria-expanded */
.nova-faq-question[aria-expanded="true"] {
	/* Styles pour l'état ouvert - gérés par .active */
}

.nova-faq-question[aria-expanded="false"] {
	/* Styles pour l'état fermé - gérés par défaut */
}

/* Transitions spécifiques pour l'état actif */
.nova-faq-item.active {
	transition: all 0.3s ease;
}

/* Animation de l'icône lors du toggle */
.nova-faq-icon {
	transform-origin: center;
}

.nova-faq-item.active .nova-faq-icon {
	transform-origin: center;
}

/* Smooth transitions pour tous les éléments lors du changement d'état */
.nova-faq-item * {
	transition-timing-function: ease;
}

/* État actif - Amélioration de la visibilité */
.nova-faq-item.active .nova-faq-question {
	position: relative;
}

.nova-faq-item.active .nova-faq-question::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* Print Styles */
@media print {
	.nova-faq-item {
		break-inside: avoid;
	}
	
	.nova-faq-answer-wrapper {
		display: block !important;
		height: auto !important;
		max-height: none !important;
		opacity: 1 !important;
	}

	.nova-faq-answer {
		opacity: 1 !important;
		transform: none !important;
	}
	
	.nova-faq-icon {
		display: none;
	}
}
