/**
 * Fil d'Ariane — page courante : reflet chrome progressif (inspiré CodePen xbGbmW).
 */

.asmon-crumb {
	position: absolute;
	top: var(--asmon-chrome-top, clamp(0.5rem, 1.5vw, 0.75rem));
	left: var(--asmon-chrome-gutter, clamp(1rem, 4vw, 4rem));
	z-index: 4;
	/* max-width: min(24rem, 72vw); */
	padding: 0;
	pointer-events: auto;
}

.asmon-crumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--asmon-font-body, "Crimson Pro", Georgia, serif);
	font-size: 0.95rem;
	line-height: 1.45;
	letter-spacing: 0.04em;
}

.asmon-crumb__item {
	display: inline-flex;
	align-items: baseline;
	max-width: 100%;
	opacity: 0;
	transform: translateY(4px);
}

.asmon-crumb.is-visible .asmon-crumb__item {
	animation: asmon-crumb-enter 0.45s ease-out forwards;
	animation-delay: calc(0.06s * var(--crumb-i, 0) + 0.08s);
}

@keyframes asmon-crumb-enter {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.asmon-crumb__link {
	color: rgba(232, 222, 200, 0.78);
	text-decoration: none;
	transition: color 0.25s ease;
}

.asmon-crumb__link:hover {
	color: var(--asmon-text-bright, #e8dec8);
}

.asmon-crumb__sep {
	margin: 0 0.5rem;
	font-family: var(--asmon-font-display, "Cinzel", Georgia, serif);
	font-size: 0.65rem;
	font-style: italic;
	color: rgba(201, 168, 76, 0.4);
	user-select: none;
}

.asmon-hero:not(.asmon-hero--has-image) .asmon-crumb__link {
	color: #7a6a52;
}

/* Page courante */
.asmon-crumb__current {
	position: relative;
	display: inline-block;
	font-family: var(--asmon-font-display, "Cinzel", Georgia, serif);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.asmon-crumb__current .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.asmon-crumb__chrome {
	--chrome-cycle: 18s;
	position: relative;
	display: inline-block;
	max-width: 100%;
}

.asmon-crumb__chrome-letters,
.asmon-crumb__chrome-flare {
	white-space: nowrap;
}

.asmon-crumb__chrome-letters {
	position: relative;
	z-index: 0;
}

.asmon-crumb__char {
	display: inline;
	color: #b89848;
}

/* Bande lumineuse unique — traverse toute la largeur du mot */
.asmon-crumb__chrome-flare {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-image: linear-gradient(
		100deg,
		transparent 0%,
		rgba(255, 248, 228, 0.18) 32%,
		rgba(255, 252, 245, 0.72) 50%,
		rgba(255, 248, 228, 0.18) 68%,
		transparent 100%
	);
	background-size: 55% 100%;
	background-repeat: no-repeat;
	background-position: -55% 0;
	-webkit-background-clip: text;
	background-clip: text;
	animation: asmon-crumb-flare var(--chrome-cycle) linear infinite;
}

.asmon-crumb__char--flare {
	color: transparent;
	-webkit-text-fill-color: transparent;
}

@keyframes asmon-crumb-flare {
	0% {
		background-position: -55% 0;
	}

	38% {
		background-position: 155% 0;
	}

	76% {
		background-position: -55% 0;
	}

	76%,
	100% {
		background-position: -55% 0;
	}
}

@media (max-width: 899px) {
	.asmon-hero:has(> .asmon-crumb),
	.univers-hero:has(> .asmon-crumb) {
		overflow-x: visible;
		overflow-y: hidden;
	}

	.asmon-hero:has(> .asmon-crumb) .asmon-hero__inner,
	.univers-hero:has(> .asmon-crumb) .univers-hero__inner {
		padding-top: max(
			var(--asmon-chrome-band, clamp(3rem, 10vw, 4rem)),
			clamp(1.25rem, 4vh, 2rem)
		);
	}

	.asmon-hero--has-image:has(> .asmon-crumb) .asmon-hero__inner {
		padding-top: max(
			var(--asmon-chrome-band, clamp(3rem, 10vw, 4rem)),
			clamp(2rem, 7vh, 3.5rem)
		);
	}

	.asmon-hero--compact:has(> .asmon-crumb) .asmon-hero__inner {
		padding-top: max(
			var(--asmon-chrome-band, clamp(3rem, 10vw, 4rem)),
			clamp(1rem, 3vh, 1.5rem)
		);
	}

	.univers-hero:has(> .asmon-crumb) .univers-hero__inner {
		padding-top: max(
			var(--asmon-chrome-band, clamp(3rem, 10vw, 4rem)),
			clamp(3rem, 8vh, 5rem)
		);
	}

	.asmon-crumb {
		right: var(--asmon-chrome-burger-gap, 4.75rem);
		max-width: none;
		width: auto;
		z-index: 6;
	}

	.asmon-crumb__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		overscroll-behavior-x: contain;
		padding-right: 0.25rem;
	}

	.asmon-crumb__list::-webkit-scrollbar {
		display: none;
	}

	.asmon-crumb__item {
		flex: 0 0 auto;
		max-width: none;
		white-space: nowrap;
	}

	.asmon-crumb__link,
	.asmon-crumb__sep,
	.asmon-crumb__current {
		white-space: nowrap;
	}

	.asmon-crumb__chrome {
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.asmon-crumb__item {
		opacity: 1;
		transform: none;
		animation: none !important;
	}

	.asmon-crumb__chrome-flare {
		animation: none !important;
		display: none;
	}
}
