/* Shared FAQ — profession & pathologie */

.novia-faq-section {
	--novia-faq-primary: #702c39;
	--novia-faq-primary-soft: rgba(112, 44, 57, 0.08);
	--novia-faq-heading: #170f49;
	--novia-faq-muted: #6f6c8f;
	--novia-faq-border: #e6e6e6;
	--novia-faq-border-hover: #d4c4c8;
	--novia-faq-bg: #fff;
	--novia-faq-active-bg: #f5f0f1;
	padding-block: clamp(48px, 8vw, 100px);
	background: var(--novia-faq-bg);
	font-family: Montserrat, sans-serif;
}

.novia-faq-section__inner {
	width: min(100%, 75rem);
	margin: 0 auto;
	padding-inline: clamp(16px, 3vw, 24px);
	box-sizing: border-box;
}

.novia-faq-section__header {
	max-width: 48rem;
	margin: 0 auto clamp(32px, 5vw, 48px);
	text-align: center;
}

.novia-faq-section__title {
	margin: 0 0 16px;
	color: var(--novia-faq-heading);
	font-size: clamp(24px, 2.8vw, 32px);
	font-weight: 500;
	line-height: 1.3;
}

.novia-faq-section__subtitle {
	margin: 0;
	color: var(--novia-faq-muted);
	font-size: clamp(16px, 1.6vw, 18px);
	font-weight: 400;
	line-height: 1.5;
}

.novia-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.novia-faq__item {
	border: 1px solid var(--novia-faq-border);
	border-radius: 14px;
	background: var(--novia-faq-bg);
	overflow: hidden;
	transition:
		background 0.22s ease,
		border-color 0.22s ease,
		box-shadow 0.22s ease;
}

.novia-faq__item:hover:not(.is-open) {
	border-color: var(--novia-faq-border-hover);
	background: var(--novia-faq-active-bg);
	box-shadow: 0 4px 16px rgba(112, 44, 57, 0.06);
}

.novia-faq__item:hover:not(.is-open) .novia-faq__question {
	color: var(--novia-faq-primary);
}

.novia-faq__item:hover:not(.is-open) .novia-faq__chevron {
	border-color: var(--novia-faq-border-hover);
	background: #fff;
}

.novia-faq__item:hover:not(.is-open) .novia-faq__chevron::before {
	border-color: var(--novia-faq-primary);
}

.novia-faq__item.is-open {
	border-color: rgba(112, 44, 57, 0.22);
	background: var(--novia-faq-active-bg);
	box-shadow: 0 8px 24px rgba(112, 44, 57, 0.08);
}

.novia-faq__trigger {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: clamp(12px, 2vw, 18px);
	width: 100%;
	padding: clamp(18px, 2.5vw, 24px) clamp(16px, 2.5vw, 24px);
	border: 0;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	color: inherit;
	transition: padding 0.22s ease;
}

.novia-faq__trigger:hover,
.novia-faq__trigger:focus,
.novia-faq__trigger:focus-visible,
.novia-faq__trigger:active {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	outline: none;
	color: inherit;
}

.novia-faq__item.is-open .novia-faq__trigger,
.novia-faq__item.is-open .novia-faq__trigger:hover,
.novia-faq__item.is-open .novia-faq__trigger:focus,
.novia-faq__item.is-open .novia-faq__trigger:active {
	background: transparent !important;
	background-color: transparent !important;
}

.novia-faq__item.is-open .novia-faq__trigger {
	padding-bottom: 12px;
	align-items: flex-start;
}

.novia-faq__number {
	color: var(--novia-faq-muted);
	font-size: clamp(14px, 1.5vw, 16px);
	font-weight: 600;
	letter-spacing: 0.04em;
	transition: color 0.22s ease;
}

.novia-faq__item.is-open .novia-faq__number {
	color: var(--novia-faq-primary);
}

.novia-faq__question {
	color: var(--novia-faq-heading);
	font-size: clamp(16px, 2vw, 20px);
	font-weight: 500;
	line-height: 1.4;
	min-width: 0;
	transition: color 0.22s ease;
}

.novia-faq__item.is-open .novia-faq__question {
	color: var(--novia-faq-primary);
}

.novia-faq__chevron {
	position: relative;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border: 1px solid var(--novia-faq-border);
	border-radius: 50%;
	background: #fff;
	box-sizing: border-box;
	transition:
		background 0.22s ease,
		border-color 0.22s ease,
		transform 0.22s ease;
}

.novia-faq__chevron::before {
	content: "";
	position: absolute;
	top: 46%;
	left: 50%;
	width: 7px;
	height: 7px;
	border-right: 2px solid var(--novia-faq-muted);
	border-bottom: 2px solid var(--novia-faq-muted);
	transform: translate(-50%, -50%) rotate(45deg);
	transition: transform 0.22s ease, border-color 0.22s ease;
}

.novia-faq__item.is-open .novia-faq__chevron {
	border-color: var(--novia-faq-primary);
	background: var(--novia-faq-primary);
}

.novia-faq__item.is-open .novia-faq__chevron::before {
	border-color: #fff;
	top: 54%;
	transform: translate(-50%, -50%) rotate(-135deg);
}

.novia-faq__panel {
	padding: 0 clamp(16px, 2.5vw, 24px) clamp(20px, 3vw, 28px) clamp(42px, 7vw, 70px);
}

.novia-faq__answer {
	color: var(--novia-faq-muted);
	font-size: clamp(14px, 1.4vw, 15px);
	line-height: 1.7;
}

.novia-faq__answer p {
	margin: 0 0 12px;
}

.novia-faq__answer p:last-child {
	margin-bottom: 0;
}

@media screen and (max-width: 767px) {
	.novia-faq__trigger {
		gap: 10px;
		padding: 16px 14px;
	}

	.novia-faq__panel {
		padding: 0 14px 20px 14px;
	}

	.novia-faq__chevron {
		flex-basis: 32px;
		width: 32px;
		height: 32px;
	}
}
