/* ==========================================================================
   Asarine – Hero Slider
   ========================================================================== */

.ahs-slider {
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.ahs-slider *,
.ahs-slider *::before,
.ahs-slider *::after {
	box-sizing: border-box;
}

/* Empilement des slides : la slide ACTIVE est en flux normal (position
   relative) -> elle donne sa hauteur au bloc et sert de cadre de référence
   à son image. Les slides INACTIVES sont hors flux (position absolute) ->
   elles n'occupent aucune place, donc aucun vide sous le hero. */
.ahs-track {
	position: relative;
	width: 100%;
}

.ahs-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease;
	/* Image posée en fond « cover » : elle remplit TOUJOURS toute la boîte de
	   la slide, sans dépendre d'une hauteur résolue comme le faisait l'ancien
	   <img> object-fit. C'est le mécanisme exact du hero d'origine -> plus
	   jamais de trou blanc sous le hero, quelle que soit la taille d'écran. */
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

/* La slide ACTIVE repasse en flux normal : sa min-height donne sa hauteur au
   bloc. Les slides inactives restent hors flux (aucun espace réservé). */
.ahs-slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

/* Voile de lisibilité ----------------------------------------------------- */
.ahs-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: rgba(0, 0, 0, .35);
}

/* Contenu ----------------------------------------------------------------- */
.ahs-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	max-width: 640px;
	width: 100%;
}

/* Tailles fluides par défaut (clamp) : responsive out-of-the-box.
   Si tu définis une typo dans Style > Textes, ta valeur prend le dessus. */
.ahs-suptitle {
	margin: 0 0 .75em;
	font-size: clamp(.75rem, 1.8vw, 1rem);
	text-transform: uppercase;
	letter-spacing: .12em;
}

.ahs-title {
	margin: 0 0 .4em;
	font-size: clamp(1.9rem, 6vw, 4rem);
	line-height: 1.05;
	overflow-wrap: break-word;
}

.ahs-subtitle {
	margin: 0 0 1.5em;
	font-size: clamp(1rem, 2.4vw, 1.25rem);
	line-height: 1.5;
}

.ahs-btn {
	display: inline-block;
	text-decoration: none;
	background-color: #5b3b3b;
	color: #fff;
	transition: background-color .25s ease, color .25s ease;
}

/* Flèches ----------------------------------------------------------------- */
.ahs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .25);
	color: #fff;
	cursor: pointer;
	transition: background .25s ease;
}

.ahs-arrow:hover { background: rgba(255, 255, 255, .45); }
.ahs-arrow--prev { left: 20px; }
.ahs-arrow--next { right: 20px; }

/* Points ------------------------------------------------------------------ */
.ahs-dots {
	position: absolute;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	gap: 10px;
}

.ahs-dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
	transition: background .25s ease, transform .25s ease;
}

.ahs-dot.is-active {
	background: #fff;
	transform: scale(1.25);
}

/* Accessibilité : respecte prefers-reduced-motion ------------------------- */
@media (prefers-reduced-motion: reduce) {
	.ahs-slide { transition: none; }
}

@media (max-width: 767px) {
	.ahs-arrow { width: 38px; height: 38px; }
	.ahs-arrow--prev { left: 10px; }
	.ahs-arrow--next { right: 10px; }
}
