/* Fil d'Ariane, posé sur l'image d'en-tête */
/* Hors du flux : le fil ne doit jamais pousser le menu vers le bas */
#header {
	position: relative;
}

/* Calé sur le bas de l'en-tête, quelle que soit la taille du logo */
#header .breadcrumbs {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 10px;
	z-index: 2;
	float: none;
	height: 0;
	margin: 0;
	padding: 0;
	text-shadow: none;
}

#header .bdg-fil-ariane {
	position: absolute;
	/* Au-dessus de la barre de menu, qui chevauche le bas de l'en-tête */
	bottom: calc(var(--bdg-barre, 44px) / 2 + 8px);
	left: .5em;
	width: max-content;
	max-width: calc(100% - 1em);
}

.bdg-fil-ariane ol {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 0;
	margin: 0;
	padding: 3px 11px 3px 8px;
	list-style: none;
	border-radius: 14px;
	background: rgba(15, 15, 15, .5);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
	font-family: Ubuntu, Arial, Tahoma, sans-serif;
	font-size: 12px;
	line-height: 1.35;
	color: #fff;
}

.bdg-fil-ariane li {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	min-width: 0;
}

/* Chevron entre deux éléments */
.bdg-fil-ariane li + li::before {
	content: "";
	flex: none;
	width: 5px;
	height: 5px;
	margin: 0 8px 0 6px;
	border-top: 1.5px solid rgba(255, 255, 255, .6);
	border-right: 1.5px solid rgba(255, 255, 255, .6);
	transform: rotate(45deg);
}

.bdg-fil-ariane a,
.bdg-fil-ariane a:link,
.bdg-fil-ariane a:visited {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 1px 0;
	color: rgba(255, 255, 255, .85);
	text-decoration: none;
	transition: color .2s ease;
}

.bdg-fil-ariane a:hover,
.bdg-fil-ariane a:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: #e7501e;
	text-decoration-thickness: 2px;
}

.bdg-fil-ariane a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	border-radius: 2px;
}

/* Icône maison devant « Accueil » */
.bdg-fil-ariane li.home a::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 11.5h3V21h5.5v-6h3v6H19v-9.5h3z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 11.5h3V21h5.5v-6h3v6H19v-9.5h3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Page en cours */
.bdg-fil-ariane [aria-current="page"] {
	overflow: hidden;
	color: #fff;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 800px) {

	/* Une seule ligne : icône d'accueil, rubrique parente, page en cours abrégée */
	.bdg-fil-ariane ol {
		display: inline-flex;
		flex-wrap: nowrap;
		max-width: 100%;
		padding: 3px 10px 3px 8px;
		font-size: 11px;
		white-space: nowrap;
	}

	.bdg-fil-ariane li {
		flex: none;
	}

	.bdg-fil-ariane li:last-child {
		flex: 0 1 auto;
		min-width: 0;
	}

	.bdg-fil-ariane li:not(:first-child):not(:last-child):not(:nth-last-child(2)) {
		display: none;
	}

	.bdg-fil-ariane li.home a {
		gap: 0;
		font-size: 0;
	}

	.bdg-fil-ariane li + li::before {
		margin: 0 7px 0 5px;
	}
}
