/* Wobi - Barre de navigation mobile (sous 768 px). */

.wobi-barre { display: none; }

@media (max-width: 767px) {
	:root { --wobi-barre-h: 64px; }

	.wobi-barre {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9995;
		padding: 0 max(10px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(10px, env(safe-area-inset-left));
		background: rgba(255, 255, 255, .92);
		-webkit-backdrop-filter: saturate(160%) blur(14px);
		backdrop-filter: saturate(160%) blur(14px);
		border-top: 1px solid rgba(17, 17, 17, .08);
		box-shadow: 0 -8px 24px -16px rgba(17, 17, 17, .25);
		transition: transform .3s cubic-bezier(.2, .8, .2, 1);
	}
	.wobi-barre.est-cachee { transform: translateY(calc(100% + 2px)); }

	.wobi-barre__liste {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		margin: 0;
		padding: 0;
		list-style: none;
		height: var(--wobi-barre-h);
	}
	.wobi-barre__liste > li { margin: 0; padding: 0; display: flex; }

	.wobi-barre__lien {
		position: relative;
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		min-height: 48px;
		color: #5f6368;
		text-decoration: none;
		font-size: 12px;
		font-weight: 500;
		line-height: 1.1;
		letter-spacing: .01em;
		-webkit-tap-highlight-color: transparent;
		transition: color .2s;
	}
	.wobi-barre__lien:hover,
	.wobi-barre__lien:focus { color: #111; text-decoration: none; }
	.wobi-barre__lien:focus-visible { outline: 2px solid #F26A1B; outline-offset: -4px; border-radius: 12px; }

	.wobi-barre__icone {
		width: 24px;
		height: 24px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.8;
		stroke-linecap: round;
		stroke-linejoin: round;
		transition: transform .2s;
	}
	.wobi-barre__lien:active .wobi-barre__icone { transform: scale(.9); }

	.wobi-barre__lien.est-actif { color: #E2620F; font-weight: 600; }
	.wobi-barre__lien.est-actif::before {
		content: "";
		position: absolute;
		top: 0;
		left: 50%;
		width: 28px;
		height: 3px;
		margin-left: -14px;
		border-radius: 0 0 3px 3px;
		background: #F26A1B;
	}
	.wobi-barre__lien.est-actif .wobi-barre__icone { stroke-width: 2.1; }

	/* Le contenu ne passe jamais sous la barre */
	body.wobi-a-barre { padding-bottom: calc(var(--wobi-barre-h) + env(safe-area-inset-bottom)); }

	/* Boutons flottants et bouton cookies remontes au-dessus de la barre */
	body.wobi-a-barre .wobi-flot--haut { bottom: calc(var(--wobi-barre-h) + 14px + env(safe-area-inset-bottom)); }
	body.wobi-a-barre .wobi-flot--whatsapp { bottom: calc(var(--wobi-barre-h) + 14px + env(safe-area-inset-bottom)); }
	body.wobi-a-barre .cookieadmin_re_consent { bottom: calc(var(--wobi-barre-h) + 80px + env(safe-area-inset-bottom)) !important; }
	body.wobi-a-barre .wobi-barre.est-cachee ~ .wobi-flot { transform: none; }

	/* Bandeau cookies au-dessus de la barre */
	body.wobi-a-barre .cookieadmin_law_container,
	body.wobi-a-barre .cookieadmin_consent_inside { margin-bottom: calc(var(--wobi-barre-h) + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
	.wobi-barre, .wobi-barre__lien, .wobi-barre__icone { transition: none; }
}

@media print { .wobi-barre { display: none !important; } }

/* Menu mobile ou recherche ouverts : la barre et les boutons flottants s'effacent
   (le menu vit dans l'en-tete, sous la barre dans l'ordre d'empilement). */
body:has(.elementskit-menu-container.active) .wobi-barre,
body:has(.mfp-ready) .wobi-barre { transform: translateY(calc(100% + 2px)); pointer-events: none; }
body:has(.elementskit-menu-container.active) .wobi-flot,
body:has(.mfp-ready) .wobi-flot { opacity: 0 !important; pointer-events: none !important; }
