/* Barre du bas */

.dlc-bnav {
	display: none;
}

@media (max-width: 1024px) {
	body.has-dlc-bnav {
		--dlc-bnav-h: 66px;
		padding-bottom: calc(var(--dlc-bnav-h) + env(safe-area-inset-bottom));
	}

	.dlc-bnav {
		--dlc-bnav-ink: #07222F;
		--dlc-bnav-primary: #A1383D;
		--dlc-bnav-paper: #F7F4F2;
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 999996;
		display: block;
		padding-bottom: env(safe-area-inset-bottom);
		color: var(--dlc-bnav-ink);
		font-family: "Montserrat", sans-serif;
	}

	.dlc-bnav::before {
		content: "";
		position: absolute;
		inset: -8px 0 0;
		z-index: -1;
		background: url("bnav-papier.svg") center top / 100% 100% no-repeat;
		filter: drop-shadow(0 -6px 14px rgba(7, 34, 47, .12));
		pointer-events: none;
	}

	.dlc-bnav__list {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
		max-width: 480px;
		height: var(--dlc-bnav-h);
		margin: 0 auto;
		padding: 0 12px;
		list-style: none;
	}

	.dlc-bnav__slot {
		display: flex;
		justify-content: center;
		margin: 0;
	}

	.dlc-bnav .dlc-hc .dlc-hc__trigger,
	.dlc-bnav .dlc-bnav__cart {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		min-width: 72px;
		min-height: 56px;
		padding: 4px 8px;
		border: 0;
		border-radius: 14px;
		background: transparent;
		color: var(--dlc-bnav-ink);
		font: 600 11px/1 "Montserrat", sans-serif;
		letter-spacing: .04em;
		text-transform: uppercase;
		text-decoration: none;
		cursor: pointer;
		transition: color .2s;
	}

	.dlc-bnav .dlc-hc__label {
		display: block;
	}

	.dlc-bnav .dlc-hc .dlc-hc__trigger:hover,
	.dlc-bnav .dlc-hc .dlc-hc__trigger:focus-visible,
	.dlc-bnav .dlc-hc.is-open .dlc-hc__trigger,
	.dlc-bnav .dlc-hc.is-current .dlc-hc__trigger,
	.dlc-bnav .dlc-bnav__cart:hover,
	.dlc-bnav .dlc-bnav__cart:focus-visible {
		background: transparent;
		color: var(--dlc-bnav-primary);
	}

	.dlc-bnav .dlc-hc__trigger:focus-visible,
	.dlc-bnav .dlc-bnav__cart:focus-visible {
		outline: 2px solid var(--dlc-bnav-primary);
		outline-offset: 2px;
	}

	.dlc-bnav .dlc-hc__icon {
		display: block;
		width: 23px;
		height: 23px;
	}

	.dlc-bnav .dlc-hc.is-logged .dlc-hc__trigger::after {
		top: 4px;
		right: calc(50% - 16px);
		bottom: auto;
		border-color: var(--dlc-bnav-paper);
	}

	/* Commander : bouton central en relief */

	.dlc-bnav .dlc-bnav__order .dlc-hc__trigger {
		min-width: 92px;
		padding-top: 0;
	}

	.dlc-bnav__bubble {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 56px;
		height: 56px;
		margin-top: -30px;
		border: 4px solid var(--dlc-bnav-paper);
		border-radius: 50%;
		background: var(--dlc-bnav-primary);
		box-shadow: 0 8px 18px rgba(161, 56, 61, .35);
		color: #fff;
		transition: transform .25s ease;
	}

	.dlc-bnav__bubble svg {
		width: 26px;
		height: 26px;
	}

	.dlc-bnav__order.is-open .dlc-bnav__bubble {
		transform: rotate(-12deg) scale(1.04);
	}

	/* Panier */

	.dlc-bnav__icon {
		position: relative;
		display: block;
	}

	.dlc-bnav__icon img {
		display: block;
		width: 27px;
		height: 23px;
	}

	.dlc-bnav__count {
		position: absolute;
		top: -9px;
		right: -12px;
		min-width: 20px;
		height: 20px;
		padding: 0 3px;
		box-sizing: border-box;
		background: url("pastille.svg") center / 100% 100% no-repeat;
		color: #fff;
		font: 700 11px/20px "Montserrat", sans-serif;
		letter-spacing: 0;
		text-align: center;
	}

	.dlc-bnav__count[hidden] {
		display: none;
	}

	/* Menus vers le haut (compte et commander) */

	.dlc-bnav .dlc-hc__menu {
		top: auto;
		bottom: calc(100% + 14px);
		left: 0;
		right: auto;
		width: min(300px, calc(100vw - 24px));
		min-width: 0;
		box-shadow: 0 -12px 40px rgba(31, 26, 25, .2);
	}

	.dlc-bnav .dlc-hc__menu::before {
		top: auto;
		right: auto;
		bottom: -6px;
		left: 30px;
		border: 0;
		border-right: 1px solid var(--dlc-hc-line);
		border-bottom: 1px solid var(--dlc-hc-line);
	}

	.dlc-bnav .dlc-bnav__menu {
		left: 50%;
		transform: translateX(-50%);
	}

	.dlc-bnav .dlc-bnav__menu::before {
		left: calc(50% - 5px);
	}

	.dlc-bnav .dlc-bnav__menu li:last-child {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}

	.dlc-bnav .dlc-bnav__menu a {
		display: grid;
		gap: 3px;
		padding: 12px 14px;
	}

	.dlc-bnav__menu strong {
		font-size: 15px;
		font-weight: 600;
	}

	.dlc-bnav__menu a span {
		color: #6f6866;
		font-size: 13px;
		font-weight: 400;
	}

	.dlc-bnav .dlc-bnav__menu a[aria-current="page"] {
		background: #fff;
		color: var(--dlc-bnav-primary);
	}

	/* Le panier rejoint la barre ; les éléments flottants passent au-dessus d'elle. */

	body.has-dlc-bnav .xoo-wsc-basket {
		display: none !important;
	}

	body.has-dlc-bnav .dlc-toast {
		bottom: calc(var(--dlc-bnav-h) + env(safe-area-inset-bottom) + 16px);
	}

	body.has-dlc-bnav #cc-main .cm.cm--bottom {
		bottom: calc(var(--dlc-bnav-h) + env(safe-area-inset-bottom) + 8px);
	}

	body.has-dlc-bnav .dlc-plateau__bar {
		bottom: calc(var(--dlc-bnav-h) + env(safe-area-inset-bottom) + 36px);
	}
}

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