/**
 * Bandeau des pages intérieures.
 * Ne cible pas .hero : l'accueil et la liste des produits restent inchangés.
 * Source : assets/scss/_hero-refonte.scss
 */

.lokorn-home .story-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	min-height: min(78svh, 820px);
	color: var(--paper);
	background: var(--forest-deep);
	overflow: clip;
}

.lokorn-home .story-hero:has(.mobile-menu.is-open) {
	min-height: 100svh;
}

.lokorn-home .story-hero .hero-content {
	position: relative;
	left: auto;
	bottom: auto;
	z-index: 1;
	width: min(920px, 88vw);
	margin-top: auto;
	padding: clamp(28px, 5vh, 56px) 6.5vw clamp(48px, 8vh, 88px);
}

.lokorn-home .story-hero h1 {
	max-width: 14ch;
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(48px, 6.4vw, 108px);
	font-weight: 500;
	line-height: 0.9;
	letter-spacing: -0.05em;
}

.lokorn-home .story-hero.is-compact h1 {
	max-width: 18ch;
	font-size: clamp(36px, 4.6vw, 72px);
	line-height: 0.96;
}

.lokorn-home .story-hero.is-document h1 {
	max-width: 16ch;
	font-size: clamp(48px, 6.2vw, 84px);
	line-height: 0.94;
}

.lokorn-home .story-hero .hero-intro {
	width: min(520px, 100%);
	max-width: none;
	margin: 22px 0 0;
}

.lokorn-home .story-hero .hero-content .link-arrow {
	margin-top: 28px;
	margin-left: 0;
}

.lokorn-home .story-hero .nav-links > a[aria-current="page"]::after,
.lokorn-home .story-hero .nav-item > a[aria-current="page"]::after {
	transform: scaleX(1);
	transform-origin: 0 center;
}

.lokorn-home .story-hero .mobile-menu a[aria-current="page"] {
	color: var(--sun);
}

.lokorn-home .story-hero picture.hero-image img,
.lokorn-home .page-hero picture.hero-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: inherit;
}

@media (max-width: 680px) {
	.lokorn-home .story-hero {
		min-height: 100svh;
	}

	.lokorn-home .story-hero .hero-content {
		width: auto;
		padding-right: 20px;
		padding-left: 20px;
	}

	.lokorn-home .story-hero h1,
	.lokorn-home .story-hero.is-compact h1 {
		max-width: none;
		font-size: clamp(40px, 12vw, 64px);
		line-height: 0.94;
	}

	.lokorn-home .story-hero .hero-intro {
		max-width: none;
		margin-left: 0;
	}
}

@media (max-width: 900px) {
	body.lokorn-hero-fill .lokorn-home .story-hero {
		min-height: 100vh;
		min-height: 100dvh;
	}

	body.lokorn-hero-fill .lokorn-home .story-hero picture.hero-image,
	body.lokorn-hero-fill .lokorn-home .story-hero > img.hero-image {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
	}

	body.lokorn-hero-fill .lokorn-home .story-hero picture.hero-image img,
	body.lokorn-hero-fill .lokorn-home .story-hero > img.hero-image {
		position: absolute;
		inset: 0;
		display: block;
		width: 100%;
		height: 100%;
		max-width: none;
		object-fit: cover;
		object-position: inherit;
	}
}

.lokorn-home .shop-bar {
	position: relative;
	z-index: 6;
	color: #74503f;
	background: transparent;
}

.lokorn-home .shop-bar .topbar {
	border-bottom-color: transparent;
}

.lokorn-home .shop-bar .logo[style*="--lokorn-logo"] {
	background-color: #74503f;
	-webkit-mask-image: var(--lokorn-logo);
	mask-image: var(--lokorn-logo);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: left center;
	mask-position: left center;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-mode: alpha;
	mask-mode: alpha;
}

.lokorn-home .shop-bar .logo[style*="--lokorn-logo"] img {
	opacity: 0;
}

.lokorn-home .shop-bar .lokorn-cart,
.lokorn-home .shop-bar .lokorn-cart .xoo-wsc-sc-bki {
	color: #74503f;
}

.lokorn-home .shop-bar .lokorn-cart .xoo-wsc-sc-count {
	background: #74503f;
	color: #f8f4e9;
}

.lokorn-home .shop-bar .nav-dropdown {
	color: #74503f;
	background: var(--cream);
	box-shadow: 0 18px 40px rgba(116, 80, 63, 0.12);
}

.lokorn-home .shop-bar .nav-links > a[aria-current="page"]::after,
.lokorn-home .shop-bar .nav-item > a[aria-current="page"]::after {
	transform: scaleX(1);
	transform-origin: 0 center;
}

.lokorn-home .shop-bar .mobile-menu {
	color: #74503f;
	background: var(--cream);
}
.lokorn-home .shop-bar .mobile-menu a {
	color: #74503f;
}

.lokorn-home .shop-bar .mobile-menu a[aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.lokorn-home .shop-bar:has(.mobile-menu.is-open) {
	min-height: 100svh;
	background: var(--cream);
}
