/* ==========================================================================
   MatGeco — Fil d'Ariane (extra-matgeco/breadcrumb)
   Discret, charte verte, variables CSS --em-bc-* émises par le render PHP.
   ========================================================================== */

.em-bc {
	background: var(--em-bc-bg, transparent);
	padding-top: var(--em-bc-pt, 16px);
	padding-bottom: var(--em-bc-pb, 0);
}

.em-bc-outer {
	max-width: var(--em-bc-bmw, 1280px);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

.em-bc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 4px;
	font-size: var(--em-bc-fs, 13px);
	font-weight: var(--em-bc-fw, 500);
	letter-spacing: var(--em-bc-ls, 0);
	text-transform: var(--em-bc-tt, none);
	color: var(--em-bc-text, #627262);
	line-height: 1.4;
}

.em-bc-item {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
}

.em-bc-sep {
	margin: 0 8px;
	color: var(--em-bc-sep, rgba(106, 122, 106, 0.55));
	user-select: none;
}

.em-bc-link {
	color: var(--em-bc-text, #627262);
	text-decoration: none;
	transition: color 0.15s ease;
}

.em-bc-link:hover,
.em-bc-link:focus-visible {
	color: var(--em-bc-hover, #11802f);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.em-bc-text {
	color: var(--em-bc-text, #627262);
}

.em-bc-current {
	color: var(--em-bc-current, #1c4a1d);
	font-weight: var(--em-bc-current-fw, 600);
}

@media (max-width: 767px) {
	.em-bc-outer {
		max-width: var(--em-bc-bmw-m, var(--em-bc-bmw-t, var(--em-bc-bmw, 100%)));
		padding-left: 16px;
		padding-right: 16px;
	}

	.em-bc-list {
		font-size: var(--em-bc-fs-m, 12px);
	}

	.em-bc-sep {
		margin: 0 6px;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.em-bc-outer {
		max-width: var(--em-bc-bmw-t, var(--em-bc-bmw, 1024px));
	}
}

/* === Visibilité par appareil (réglages du bloc) === */
@media (min-width: 1025px) {
	.em-bc--hide-d {
		display: none !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.em-bc--hide-t {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.em-bc--hide-m {
		display: none !important;
	}
}

/* =================================================================
 * Editor tweaks — dans le canvas, les media queries de visibilité
 * n'ont pas de sens (la largeur du canvas n'est pas celle de
 * l'appareil) : le nav reste toujours visible ; c'est l'éditeur JS
 * qui affiche un bandeau « masqué sur cet appareil » à la place.
 * ================================================================= */
.editor-styles-wrapper .em-bc--hide-d,
.editor-styles-wrapper .em-bc--hide-t,
.editor-styles-wrapper .em-bc--hide-m {
	display: block !important;
}
