/* AFS Carrousel - styles du widget Elementor
   Tout est scope sur .afs-carousel : aucun impact sur le reste du site. */

.afs-carousel {
	--afs-max-width: 1140px;
	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: #EAF1F2;
}

.afs-carousel__viewport {
	position: relative;
	overflow: hidden;
}

.afs-carousel__track {
	display: flex;
	transition-property: transform;
	transition-timing-function: ease;
	will-change: transform;
}

.afs-carousel--equal .afs-carousel__track {
	align-items: stretch;
}

.afs-carousel__slide {
	flex: 0 0 100%;
	max-width: 100%;
	box-sizing: border-box;
	display: flex;
	background-color: transparent;
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	line-height: 1.65;
}

.afs-carousel__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--afs-max-width, 1140px);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	padding: 64px 90px;
}

.afs-carousel__title {
	font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	color: #12232E;
	margin: 0 0 14px;
}

.afs-carousel__subtitle {
	font-size: 15px;
	color: #667079;
	max-width: 640px;
	margin: 0 auto 14px;
}

.afs-carousel__body {
	font-size: 14px;
	color: #2B2E33;
	max-width: 760px;
	margin: 0 auto;
}

.afs-carousel__body > *:last-child {
	margin-bottom: 0;
}

.afs-carousel__body p {
	max-width: 640px;
	margin: 0 auto 14px;
}

/* Listes du champ Texte : reprise des puces de la maquette */
.afs-carousel__body ul {
	list-style: none;
	margin: 0 auto 4px;
	padding: 0;
}

.afs-carousel__body ul > li {
	position: relative;
	padding-left: 16px;
	text-align: left;
}

.afs-carousel__body ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #0F9DA5;
}

.afs-carousel--list-inline .afs-carousel__body ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 22px;
}

.afs-carousel--list-stack .afs-carousel__body ul {
	max-width: 640px;
}

.afs-carousel--list-stack .afs-carousel__body ul > li {
	margin-bottom: 8px;
}

.afs-carousel__body ol {
	max-width: 640px;
	margin: 0 auto 14px;
	padding-left: 20px;
	text-align: left;
}

/* Bouton */
.afs-carousel__button {
	display: inline-block;
	align-self: center;
	margin-top: 26px;
	padding: 12px 24px;
	border-radius: 8px;
	border: 2px solid transparent;
	background-color: #0F9DA5;
	color: #fff;
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(15, 157, 165, .35);
	transition: transform .15s ease, background-color .15s ease;
}

.afs-carousel__button:hover,
.afs-carousel__button:focus {
	transform: translateY(-2px);
	color: #fff;
	text-decoration: none;
}

/* Fleches */
.afs-carousel__nav {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: var(--afs-max-width, 1140px);
	pointer-events: none;
	z-index: 2;
}

.afs-carousel__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid #E2E7E8;
	background-color: #fff;
	color: #12232E;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(18, 35, 46, .08);
	transition: box-shadow .2s ease;
	z-index: 2;
}

.afs-carousel__arrow:hover {
	box-shadow: 0 6px 18px rgba(18, 35, 46, .16);
}

.afs-carousel__arrow--prev {
	left: 20px;
}

.afs-carousel__arrow--next {
	right: 20px;
}

/* Points */
.afs-carousel__dots {
	max-width: var(--afs-max-width, 1140px);
	margin: 0 auto;
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 24px 0;
}

.afs-carousel__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: #DCE3E4;
	cursor: pointer;
	transition: background-color .2s ease;
}

.afs-carousel__dot.is-active {
	background-color: #0F9DA5;
}

/* Accessibilite */
.afs-carousel__arrow:focus-visible,
.afs-carousel__dot:focus-visible,
.afs-carousel__button:focus-visible {
	outline: 2px solid #0F9DA5;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.afs-carousel__track {
		transition-duration: 1ms !important;
	}
	.afs-carousel__button {
		transition: none;
	}
}

@media (max-width: 640px) {
	.afs-carousel__arrow--prev {
		left: 8px;
	}
	.afs-carousel__arrow--next {
		right: 8px;
	}
	.afs-carousel--list-inline .afs-carousel__body ul {
		gap: 8px 16px;
	}
}
