/* ==========================================================================
   HERO - Page d'accueil + pages interieures
   ========================================================================== */

/* --- Hero Home (plein ecran) --- */

.fg-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	background-color: var(--fg-chocolate-dark);
	color: var(--fg-white);
	overflow: hidden;
}

.fg-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.fg-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.4;
}

.fg-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(44, 24, 16, 0.85) 0%,
		rgba(44, 24, 16, 0.5) 60%,
		rgba(44, 24, 16, 0.3) 100%
	);
	z-index: 1;
}

.fg-hero__inner {
	position: relative;
	z-index: 2;
	max-width: var(--fg-wide-width);
	margin-inline: auto;
	padding-inline: var(--fg-space-sm);
	padding-block: var(--fg-space-2xl) var(--fg-space-xl);
	width: 100%;
}

@media (min-width: 768px) {
	.fg-hero__inner {
		padding-inline: var(--fg-space-md);
	}
}

.fg-hero__label {
	font-family: var(--fg-font-body);
	font-size: var(--fg-text-sm);
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--fg-gold);
	margin-bottom: var(--fg-space-sm);
}

.fg-hero__title {
	font-family: var(--fg-font-heading);
	font-size: var(--fg-text-hero);
	font-weight: 500;
	line-height: 1.1;
	color: var(--fg-white);
	max-width: 12ch;
	margin-bottom: var(--fg-space-sm);
}

.fg-hero__subtitle {
	font-size: var(--fg-text-lg);
	font-weight: 400;
	color: rgba(253, 251, 247, 0.8);
	max-width: 40ch;
	line-height: 1.6;
	margin-bottom: var(--fg-space-md);
}

.fg-hero__cta {
	margin-top: var(--fg-space-md);
}

/* Decorative element */
.fg-hero__deco {
	position: absolute;
	bottom: var(--fg-space-md);
	right: var(--fg-space-md);
	z-index: 2;
	width: 120px;
	height: 120px;
	border: 1px solid rgba(200, 169, 110, 0.3);
	border-radius: 50%;
	display: none;
}

@media (min-width: 1024px) {
	.fg-hero__deco {
		display: block;
		width: 200px;
		height: 200px;
	}
}

/* Scroll indicator */
.fg-hero__scroll {
	position: absolute;
	bottom: var(--fg-space-md);
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5em;
	color: rgba(253, 251, 247, 0.5);
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.fg-hero__scroll-line {
	width: 1px;
	height: 40px;
	background: linear-gradient(to bottom, var(--fg-gold), transparent);
	animation: fg-scroll-pulse 2s ease-in-out infinite;
}

@keyframes fg-scroll-pulse {
	0%, 100% { opacity: 1; transform: scaleY(1); }
	50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* --- Hero Pages interieures --- */

.fg-hero-page {
	padding-top: clamp(var(--fg-space-xl), 12vw, var(--fg-space-2xl));
	padding-bottom: var(--fg-space-lg);
	background-color: var(--fg-cream);
	position: relative;
}

.fg-hero-page::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(
		to right,
		transparent,
		rgba(200, 169, 110, 0.3),
		transparent
	);
}

.fg-hero-page__title {
	font-size: var(--fg-text-2xl);
	margin-top: var(--fg-space-xs);
}

.fg-hero-page__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.fg-hero-page__bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0.35;
	display: block;
}

.fg-hero-page__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(44, 24, 16, 0.6) 0%,
		rgba(44, 24, 16, 0.3) 100%
	);
}

.fg-hero-page__inner {
	position: relative;
	z-index: 1;
}

.fg-hero-page--has-bg {
	background-color: var(--fg-chocolate-dark);
	color: var(--fg-white);
}

.fg-hero-page--has-bg .fg-hero-page__title {
	color: var(--fg-white);
}

.fg-hero-page--has-bg .fg-label {
	color: var(--fg-gold);
}
