/**
 * Section Hero — page d'accueil
 * Port du hero Lovable (src/routes/index.tsx) vers WordPress.
 */

.home-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 68vh;
	overflow: hidden;
}

.home-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-hero__gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.3));
}

.home-hero__character {
	position: absolute;
	bottom: 0;
	right: 1rem;
	z-index: 10;
	height: 48%;
	width: auto;
	pointer-events: none;
}

@media (min-width: 640px) {
	.home-hero__character {
		right: 2rem;
		height: 62%;
	}
}

.home-hero__content {
	position: relative;
	z-index: 10;
	display: flex;
	justify-content: center;
	padding-block: 5rem 4rem;
	text-align: center;
}

.home-hero__inner {
	max-width: 42rem;
}

.home-hero__inner [data-hero-item] {
	opacity: 0;
	animation: home-hero-fade-in 0.7s ease-out forwards;
}

.home-hero__inner [data-hero-item]:nth-child(1) { animation-delay: 0.1s; }
.home-hero__inner [data-hero-item]:nth-child(2) { animation-delay: 0.25s; }
.home-hero__inner [data-hero-item]:nth-child(3) { animation-delay: 0.4s; }
.home-hero__inner [data-hero-item]:nth-child(4) { animation-delay: 0.55s; }

@keyframes home-hero-fade-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-hero__inner [data-hero-item] {
		animation: none;
		opacity: 1;
	}
}

.home-hero__script {
	margin-bottom: 0.75rem;
	font-size: 1.5rem;
	color: color-mix(in oklch, var(--cream) 90%, transparent);
}

.home-hero__title {
	font-family: var(--font-display);
	font-size: 2.25rem;
	line-height: 1.05;
	color: var(--cream);
}

.home-hero__subtitle {
	margin-top: 1.25rem;
	font-size: 1rem;
	line-height: 1.6;
	color: color-mix(in oklch, var(--cream) 85%, transparent);
}

.home-hero__actions {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

@media (min-width: 640px) {
	.home-hero__script {
		font-size: 1.875rem;
	}

	.home-hero__title {
		font-size: 3.75rem;
	}

	.home-hero__subtitle {
		font-size: 1.125rem;
	}

	.home-hero__content {
		padding-block: 5rem 6rem;
	}
}

@media (min-width: 768px) {
	.home-hero__title {
		font-size: 4.5rem;
	}
}
