/* Hero Slider – widget Elementor anemie_hero_slider */

.ahs {
	--ahs-accent: #dc3645;
	--ahs-overlay: #010724;
	--ahs-nav: #fff;
	--ahs-delay: 6500ms;
	--ahs-speed: 1000ms;
	--ahs-ease: cubic-bezier(.22, .61, .36, 1);
	position: relative;
	overflow: hidden;
	background: var(--ahs-overlay);
	isolation: isolate;
}

.ahs__swiper {
	width: 100%;
}

/* ---------- Slide ---------- */

.ahs__slide {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 760px;
	overflow: hidden;
	/* Indispensable en mode fondu : les slides sont empilees. */
	background: var(--ahs-overlay);
}

.ahs__media,
.ahs__overlay {
	position: absolute;
	inset: 0;
}

.ahs__media {
	z-index: 0;
}

/* .ahs en prefixe : doit battre « .elementor img { height: auto } ». */
.ahs .ahs__img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	display: block;
}

.ahs--kenburns .ahs__img {
	transform: scale(1.12);
	transition: transform calc(var(--ahs-delay) + var(--ahs-speed) * 2) linear;
	will-change: transform;
}

.ahs--kenburns .swiper-slide-active .ahs__img {
	transform: scale(1);
}

.ahs__overlay {
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(90deg,
			var(--ahs-overlay) 0%,
			color-mix(in srgb, var(--ahs-overlay) 75%, transparent) 38%,
			color-mix(in srgb, var(--ahs-overlay) 20%, transparent) 75%,
			transparent 100%),
		linear-gradient(0deg,
			color-mix(in srgb, var(--ahs-overlay) 85%, transparent) 0%,
			transparent 35%);
	opacity: .9;
}

.ahs__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 150px 24px 140px;
	box-sizing: border-box;
}

.ahs__content {
	max-width: 720px;
	--ahs-actions-justify: flex-start;
}

/* ---------- Textes ---------- */

.ahs__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .18em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ahs__eyebrow::before {
	content: "";
	width: 36px;
	height: 2px;
	background: var(--ahs-accent);
	flex: none;
}

.ahs__title {
	margin: 0 0 22px;
	color: #fff;
	font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
	text-wrap: balance;
}

.ahs__title span {
	color: var(--ahs-accent);
}

.ahs__text {
	margin: 0 0 34px;
	max-width: 36em;
	color: rgba(255, 255, 255, .82);
	font-size: clamp(1rem, .9rem + .35vw, 1.1875rem);
	line-height: 1.65;
	margin-inline: var(--ahs-text-mx, 0);
}

/* ---------- Boutons ---------- */

.ahs__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: var(--ahs-actions-justify);
}

.ahs__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 28px;
	border: 1.5px solid transparent;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ahs-ease), box-shadow .25s;
}

.ahs__btn:hover,
.ahs__btn:focus-visible {
	transform: translateY(-2px);
	text-decoration: none;
}

.ahs__btn svg {
	width: 18px;
	height: 18px;
	transition: transform .25s var(--ahs-ease);
}

.ahs__btn:hover svg {
	transform: translateX(4px);
}

.ahs__btn--primary {
	background: var(--ahs-accent);
	border-color: var(--ahs-accent);
	color: #fff;
	box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--ahs-accent) 70%, transparent);
}

.ahs__btn--primary:hover,
.ahs__btn--primary:focus-visible {
	color: #fff;
	filter: brightness(1.08);
	box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--ahs-accent) 85%, transparent);
}

.ahs__btn--ghost {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .55);
	color: #fff;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.ahs__btn--ghost:hover,
.ahs__btn--ghost:focus-visible {
	background: #fff;
	border-color: #fff;
	color: var(--ahs-overlay);
}

.ahs a:focus-visible,
.ahs button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* ---------- Animation d'entree du texte ----------
   Appliquee seulement une fois le JS pret (.is-ready) : sans JS, le texte
   reste visible. */

.ahs.is-ready .ahs__content > * {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .5s ease, transform .5s var(--ahs-ease);
}

.ahs.is-ready .swiper-slide-active .ahs__content > * {
	opacity: 1;
	transform: none;
	transition: opacity .9s ease, transform .9s var(--ahs-ease);
}

.ahs.is-ready .swiper-slide-active .ahs__content > :nth-child(1) { transition-delay: calc(var(--ahs-speed) * .35); }
.ahs.is-ready .swiper-slide-active .ahs__content > :nth-child(2) { transition-delay: calc(var(--ahs-speed) * .35 + 120ms); }
.ahs.is-ready .swiper-slide-active .ahs__content > :nth-child(3) { transition-delay: calc(var(--ahs-speed) * .35 + 240ms); }
.ahs.is-ready .swiper-slide-active .ahs__content > :nth-child(4) { transition-delay: calc(var(--ahs-speed) * .35 + 360ms); }

/* ---------- Indicateurs ---------- */

.ahs__bar {
	position: absolute;
	z-index: 5;
	left: 0;
	right: 0;
	bottom: 36px;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

.ahs__bullets {
	display: flex;
	gap: 8px;
	pointer-events: auto;
}

.ahs__bullet {
	position: relative;
	width: 36px;
	height: 22px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	transition: width .4s var(--ahs-ease);
}

/* L'indicateur actif s'allonge legerement pour se distinguer. */
.ahs__bullet.is-active {
	width: 56px;
}

.ahs__bullet::before,
.ahs__bullet-fill {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 3px;
	margin-top: -1.5px;
	border-radius: 3px;
}

.ahs__bullet::before {
	background: color-mix(in srgb, var(--ahs-nav) 35%, transparent);
	transition: background-color .2s;
}

.ahs__bullet:hover::before {
	background: color-mix(in srgb, var(--ahs-nav) 60%, transparent);
}

.ahs__bullet-fill {
	background: var(--ahs-nav);
	transform: scaleX(var(--p, 0));
	transform-origin: left center;
}

.ahs:not(.has-autoplay) .ahs__bullet.is-active .ahs__bullet-fill {
	--p: 1;
}

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

@media (max-width: 767px) {
	.ahs__slide {
		min-height: 720px;
		align-items: flex-end;
	}

	.ahs__inner {
		padding: 120px 20px 110px;
	}

	.ahs__overlay {
		background:
			linear-gradient(0deg,
				color-mix(in srgb, var(--ahs-overlay) 95%, transparent) 0%,
				color-mix(in srgb, var(--ahs-overlay) 60%, transparent) 55%,
				color-mix(in srgb, var(--ahs-overlay) 15%, transparent) 100%);
	}

	.ahs__eyebrow {
		font-size: 11px;
		margin-bottom: 14px;
	}

	.ahs__eyebrow::before {
		width: 24px;
	}

	.ahs__text {
		margin-bottom: 26px;
	}

	.ahs__btn {
		padding: 13px 20px;
		font-size: 14px;
	}

	.ahs__bar {
		bottom: 28px;
	}

	.ahs__bullet {
		width: 28px;
	}

	.ahs__bullet.is-active {
		width: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ahs--kenburns .ahs__img,
	.ahs.is-ready .ahs__content > *,
	.ahs__btn,
	.ahs__bullet {
		transition: none !important;
		transform: none !important;
	}

	.ahs.is-ready .ahs__content > * {
		opacity: 1;
	}
}
