/**
 * Hero d’accueil – carrousel & animations
 */

.benarroche-home-hero {
	position: relative;
	min-height: clamp(520px, 72vh, 760px);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: var(--benarroche-white, #fff);
	margin-top: 0;
}

.benarroche-home-hero__slides {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: var(--benarroche-primary-dark);
}

.benarroche-home-hero__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: scale(1.06);
	transition: opacity 1.2s ease, transform 8s ease;
	will-change: opacity, transform;
}

.benarroche-home-hero__slide.is-active {
	opacity: 1;
	transform: scale(1);
}

.benarroche-home-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		115deg,
		color-mix(in srgb, var(--benarroche-primary-dark) 93%, transparent) 0%,
		color-mix(in srgb, var(--benarroche-primary) 80%, transparent) 45%,
		color-mix(in srgb, var(--benarroche-primary-hover) 62%, transparent) 100%
	);
	pointer-events: none;
}

.benarroche-home-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--benarroche-container, 1200px);
	margin: 0 auto;
	padding: calc(var(--benarroche-header-offset, 100px) + 2rem) var(--benarroche-gap, 1.5rem) 3rem;
}

.benarroche-home-hero__content {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
	color: #fff;
}

.benarroche-home-hero h1,
.benarroche-home-hero__title {
	margin: 0 0 0.65rem;
	font-family: var(--benarroche-font-sans) !important;
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #fff !important;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.benarroche-home-hero__subtitle {
	margin: 0 0 1rem;
	font-family: var(--benarroche-font-sans) !important;
	font-size: clamp(1.15rem, 2.5vw, 1.65rem);
	font-weight: 600;
	line-height: 1.35;
	color: #fff !important;
}

.benarroche-home-hero__lines {
	margin-bottom: 1.75rem;
}

.benarroche-home-hero__lines p {
	margin: 0.25rem 0;
	font-size: clamp(1rem, 1.8vw, 1.125rem);
	line-height: 1.5;
	color: #fff !important;
}

.benarroche-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	justify-content: center;
	align-items: center;
}

.benarroche-home-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	padding: 0.95rem 1.5rem;
	font-family: var(--benarroche-font-sans) !important;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: var(--benarroche-radius, 6px);
	border: 1px solid transparent;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.benarroche-home-hero__btn--primary {
	background: var(--benarroche-primary);
	color: var(--benarroche-white, #fff) !important;
	border-color: rgba(255, 255, 255, 0.35);
	box-shadow: 0 8px 28px color-mix(in srgb, var(--benarroche-primary-hover) 35%, transparent);
}

.benarroche-home-hero__btn--primary:hover {
	transform: translateY(-2px);
	background: var(--benarroche-primary-hover);
	color: var(--benarroche-white, #fff) !important;
	box-shadow: 0 12px 32px color-mix(in srgb, var(--benarroche-primary-hover) 45%, transparent);
}

.benarroche-home-hero__btn--secondary {
	background: rgba(255, 255, 255, 0.08);
	color: var(--benarroche-white, #fff) !important;
	border-color: rgba(255, 255, 255, 0.65);
	backdrop-filter: blur(4px);
}

.benarroche-home-hero__btn--secondary:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.16);
	color: var(--benarroche-white, #fff) !important;
}

.benarroche-home-hero__dots {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: 1.35rem;
	transform: translateX(-50%);
	display: flex;
	gap: 0.5rem;
}

.benarroche-home-hero__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}

.benarroche-home-hero__dot.is-active {
	background: var(--benarroche-white, #fff);
	transform: scale(1.15);
}

/* Animations d’apparition */
@keyframes benarroche-home-hero-rise {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.benarroche-home-hero__anim {
	animation: benarroche-home-hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.benarroche-home-hero__title.benarroche-home-hero__anim {
	animation-delay: 0.15s;
}

.benarroche-home-hero__subtitle.benarroche-home-hero__anim {
	animation-delay: 0.3s;
}

.benarroche-home-hero__lines.benarroche-home-hero__anim {
	animation-delay: 0.45s;
}

.benarroche-home-hero__actions.benarroche-home-hero__anim {
	animation-delay: 0.6s;
}

@media (max-width: 640px) {
	.benarroche-home-hero {
		min-height: clamp(480px, 85vh, 640px);
	}

	.benarroche-home-hero__btn {
		min-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.benarroche-home-hero__slide {
		transition: opacity 0.4s ease;
		transform: none !important;
	}

	.benarroche-home-hero__anim {
		animation: none;
		opacity: 1;
		transform: none;
	}
}
