/* ==========================================================================
   ACO – FAQ Fit 4 AI (widget Elementor)
   Toutes les règles sont préfixées .aco-faq pour ne pas toucher au reste du site.
   ========================================================================== */

.aco-faq {
	--aco-faq-bg: #F5F6F7;
	--aco-faq-accent: #3CB6C6;
	--aco-faq-primary: #2F8F9C;
	--aco-faq-text: #2F343A;
	--aco-faq-muted: #4A4E51;
	--aco-faq-border: #EEF0F2;
	--aco-faq-border-strong: #E4E7EA;
	--aco-faq-pill-border: #E5E7EB;
	--aco-faq-pill-text: #374151;
	--aco-faq-cta-bg: #3CB6C6;
	--aco-faq-cta-btn: #111827;
	--aco-faq-sticky-top: 92px;
	--aco-faq-c1: #4FB8C6;
	--aco-faq-c2: #4A8FE0;
	--aco-faq-c3: #76B6E8;
	--aco-faq-c4: #233D9E;

	background: var(--aco-faq-bg);
	color: var(--aco-faq-text);
	font-family: "Montserrat", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.aco-faq *,
.aco-faq *::before,
.aco-faq *::after {
	box-sizing: border-box;
}

.aco-faq__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 88px clamp(20px, 4vw, 48px);
}

/* ---------- En-tête ---------- */

.aco-faq__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px 48px;
	margin-bottom: 36px;
}

.aco-faq__heading {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.aco-faq__eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--aco-faq-primary);
}

.aco-faq__eyebrow-line {
	display: inline-block;
	width: 28px;
	height: 2px;
	border-radius: 2px;
	background: var(--aco-faq-accent);
}

.aco-faq .aco-faq__title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-weight: 800;
	font-size: clamp(32px, 3.6vw, 48px);
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--aco-faq-text);
	text-transform: none;
}

.aco-faq__accent {
	color: var(--aco-faq-accent);
}

/* ---------- Filtres (pastilles) ---------- */

.aco-faq__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.aco-faq .aco-faq__filter {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 0 20px;
	border: 1px solid var(--aco-faq-pill-border);
	border-radius: 4px;
	background: #FFFFFF;
	color: var(--aco-faq-pill-text);
	box-shadow: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: background-color .2s, color .2s, border-color .2s;
}

.aco-faq .aco-faq__filter:hover {
	background: #FFFFFF;
	border-color: var(--aco-faq-primary);
	color: var(--aco-faq-primary);
}

.aco-faq .aco-faq__filter.is-active,
.aco-faq .aco-faq__filter.is-active:hover {
	background: var(--aco-faq-primary);
	border-color: var(--aco-faq-primary);
	color: #FFFFFF;
}

/* ---------- Corps : liste + carte ---------- */

.aco-faq__body {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 40px;
	align-items: flex-start;
}

.aco-faq__list {
	flex: 999 1 620px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.aco-faq--no-cta .aco-faq__list {
	flex-basis: 100%;
}

/* ---------- Question (carte) ---------- */

.aco-faq__item {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background: #FFFFFF;
	border: 1px solid var(--aco-faq-border);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	transition: box-shadow .25s, border-color .25s;
}

.aco-faq__item[hidden] {
	display: none;
}

.aco-faq__bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: transparent;
	transition: background-color .25s;
}

.aco-faq__item.is-open {
	border-color: var(--aco-faq-border-strong);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.aco-faq__item.is-open .aco-faq__bar {
	background: var(--aco-faq-color);
}

.aco-faq .aco-faq__q {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
}

.aco-faq .aco-faq__toggle,
.aco-faq .aco-faq__toggle:hover,
.aco-faq .aco-faq__toggle:focus {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 44px;
	margin: 0;
	padding: 22px 26px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--aco-faq-text);
	cursor: pointer;
	font-family: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;
}

.aco-faq .aco-faq__toggle:focus-visible {
	outline: 2px solid var(--aco-faq-primary);
	outline-offset: -2px;
}

.aco-faq__num {
	flex: none;
	width: 30px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
	color: var(--aco-faq-color);
	transition: font-size .25s, width .25s;
}

.aco-faq__item.is-open .aco-faq__num {
	width: 64px;
	font-size: 44px;
}

.aco-faq__question {
	flex: 1;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
}

/* Bouton rond + / − */
.aco-faq__icon {
	position: relative;
	flex: none;
	width: 38px;
	height: 38px;
	border: 1.5px solid var(--aco-faq-text);
	border-radius: 999px;
	background: transparent;
	transition: background-color .25s, border-color .25s;
}

.aco-faq__icon::before,
.aco-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 1.5px;
	margin: -0.75px 0 0 -7px;
	background: var(--aco-faq-text);
	transition: transform .25s, background-color .25s;
}

.aco-faq__icon::after {
	transform: rotate(90deg);
}

.aco-faq__item.is-open .aco-faq__icon {
	background: var(--aco-faq-primary);
	border-color: var(--aco-faq-primary);
}

.aco-faq__item.is-open .aco-faq__icon::before,
.aco-faq__item.is-open .aco-faq__icon::after {
	background: #FFFFFF;
}

.aco-faq__item.is-open .aco-faq__icon::after {
	transform: rotate(0deg);
}

.aco-faq__toggle:hover .aco-faq__icon {
	border-color: var(--aco-faq-primary);
}

/* Réponse */
.aco-faq__answer-inner {
	padding: 0 84px 26px 26px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--aco-faq-muted);
}

.aco-faq__answer-inner > *:first-child { margin-top: 0; }
.aco-faq__answer-inner > *:last-child { margin-bottom: 0; }

.aco-faq__answer-inner a {
	color: var(--aco-faq-primary);
}

/* ---------- Carte rendez-vous ---------- */

.aco-faq__cta {
	flex: 1 1 320px;
	min-width: 0;
	position: sticky;
	top: var(--aco-faq-sticky-top);
	overflow: hidden;
	border-radius: 4px;
	padding: 30px 28px;
	background: var(--aco-faq-cta-bg);
	color: #FFFFFF;
	box-shadow: 0 24px 48px -24px rgba(4, 34, 43, 0.45);
}

.aco-faq__cta-circle {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.aco-faq__cta-circle--1 {
	width: 130px;
	height: 130px;
	top: -55px;
	right: -30px;
	background: rgba(255, 255, 255, 0.14);
}

.aco-faq__cta-circle--2 {
	width: 90px;
	height: 90px;
	top: 20px;
	right: -55px;
	background: rgba(255, 255, 255, 0.10);
}

.aco-faq__cta-inner {
	position: relative;
}

.aco-faq .aco-faq__cta-kicker {
	margin: 0 0 10px;
	font-style: italic;
	font-size: 15px;
	font-weight: 500;
	color: #FFFFFF;
}

.aco-faq .aco-faq__cta-title {
	margin: 0 0 10px;
	font-weight: 800;
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: #FFFFFF;
}

.aco-faq .aco-faq__cta-text {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.6;
	color: #FFFFFF;
}

.aco-faq a.aco-faq__cta-btn,
.aco-faq a.aco-faq__cta-btn:hover,
.aco-faq a.aco-faq__cta-btn:focus,
.aco-faq a.aco-faq__cta-btn:visited {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	border-radius: 4px;
	background: var(--aco-faq-cta-btn);
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
}

.aco-faq a.aco-faq__cta-btn:hover .aco-faq__cta-arrow {
	transform: translateX(3px);
}

.aco-faq a.aco-faq__cta-btn:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}

.aco-faq__cta-arrow {
	display: inline-flex;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	align-items: center;
	justify-content: center;
	font-size: 14px;
	transition: transform .2s;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.aco-faq__cta {
		position: relative;
		top: auto;
	}
}

@media (max-width: 640px) {
	.aco-faq__inner {
		padding-top: 64px;
		padding-bottom: 64px;
	}
	.aco-faq .aco-faq__toggle,
	.aco-faq .aco-faq__toggle:hover,
	.aco-faq .aco-faq__toggle:focus {
		gap: 14px;
		padding: 18px;
	}
	.aco-faq__item.is-open .aco-faq__num {
		width: 44px;
		font-size: 30px;
	}
	.aco-faq__question {
		font-size: 16px;
	}
	.aco-faq__answer-inner {
		padding: 0 18px 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aco-faq *,
	.aco-faq *::before,
	.aco-faq *::after {
		transition: none !important;
	}
}
