/* Barre de navigation collante — styles front. Toutes les classes sont préfixées edeqp- pour éviter les conflits. */

.edeqp-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: stretch;
	justify-content: space-around;
	height: var(--edeqp-bar-height, 62px);
	background: var(--edeqp-bg, #101322);
	border-radius: var(--edeqp-radius, 0) var(--edeqp-radius, 0) 0 0;
	z-index: var(--edeqp-z-index, 99990);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	transition: transform 0.25s ease;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.edeqp-nav--hidden {
	transform: translateY(100%);
}

@media (prefers-reduced-motion: reduce) {
	.edeqp-nav {
		transition: none;
	}
}

.edeqp-nav-item {
	position: relative;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 44px;
	text-decoration: none;
	color: var(--edeqp-inactive, #9AA3B2);
	font-size: var(--edeqp-text-size, 11px);
	line-height: 1.2;
	padding: 4px 2px;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

.edeqp-nav-item__icon-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.edeqp-nav-item__pill {
	position: absolute;
	inset: -6px -14px;
	border-radius: 999px;
	background: transparent;
	transition: background-color 0.2s ease;
	z-index: 0;
}

.edeqp-nav-item__icon {
	position: relative;
	z-index: 1;
	display: flex;
	width: 24px;
	height: 24px;
}

.edeqp-nav-item__icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
	stroke: none;
}

.edeqp-nav-item__label {
	position: relative;
	z-index: 1;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.edeqp-nav-item--active {
	color: var(--edeqp-active, #FFFFFF);
}

.edeqp-nav-item--active .edeqp-nav-item__pill {
	background: var(--edeqp-pill-bg, #1B3B6F);
}

.edeqp-nav-item__led {
	position: absolute;
	top: -2px;
	right: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ff4d4f;
	z-index: 2;
	animation: edeqp-led-pulse 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.edeqp-nav-item__led {
		animation: none;
	}
}

@keyframes edeqp-led-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.4); opacity: 0.6; }
}

/* Bouton central mis en avant. */
.edeqp-nav-item--central {
	flex: 0 0 auto;
	width: 72px;
}

.edeqp-nav-item--central .edeqp-nav-item__icon-wrap {
	position: absolute;
	top: -18px;
	left: 50%;
	transform: translateX(-50%);
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--edeqp-central-bg, #D87830);
	color: var(--edeqp-central-icon, #FFFFFF);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s ease;
}

.edeqp-nav-item--central:active .edeqp-nav-item__icon-wrap {
	transform: translateX(-50%) scale(0.94);
}

.edeqp-nav-item--central .edeqp-nav-item__pill {
	display: none;
}

.edeqp-nav-item--central .edeqp-nav-item__icon {
	width: 26px;
	height: 26px;
	color: var(--edeqp-central-icon, #FFFFFF);
}

.edeqp-nav-item--central .edeqp-nav-item__label {
	margin-top: 40px;
	color: var(--edeqp-inactive, #9AA3B2);
}

.edeqp-nav-item--central.edeqp-nav-item--active .edeqp-nav-item__label {
	color: var(--edeqp-active, #FFFFFF);
}

/* Décalage automatique des éléments flottants existants (bouton retour en haut, chat, footer collant Elementor). */
body.edeqp-nav-push-active #back-to-top,
body.edeqp-nav-push-active .scroll-to-top,
body.edeqp-nav-push-active .go-top,
body.edeqp-nav-push-active .elementor-sticky--bottom,
body.edeqp-nav-push-active .elementor-menu-cart__wrapper,
body.edeqp-nav-push-active [class*="whatsapp-chat"],
body.edeqp-nav-push-active [id*="whatsapp-chat"] {
	margin-bottom: calc(var(--edeqp-bar-height, 62px) + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 480px) {
	.edeqp-nav-item {
		font-size: calc(var(--edeqp-text-size, 11px) - 1px);
	}
}
