.sfx-layer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: hidden;
	z-index: 99999;
}

.sfx-item {
	position: absolute;
	top: 0;
	left: 0;
	will-change: transform, opacity;
}

/* Message d'accompagnement */
.sfx-msg {
	position: fixed;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	gap: 14px;
	box-sizing: border-box;
	overflow: hidden;
	padding: 12px 16px;
	color: var(--sfx-tc, #fff);
	background: linear-gradient(110deg, var(--sfx-c1, #333), var(--sfx-c2, #666));
	font: 600 15px/1.35 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
	animation: sfx-msg-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.sfx-msg--top,
.sfx-msg--bottom {
	left: 0;
	right: 0;
	justify-content: center;
	text-align: center;
}

.sfx-msg--top { top: 0; }
.sfx-msg--bottom { bottom: 0; }

.sfx-msg--card {
	right: 18px;
	bottom: 18px;
	max-width: min(380px, calc(100vw - 36px));
	padding: 16px 18px;
	border-radius: 14px;
}

.sfx-msg__count {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sfx-msg__cta {
	flex: none;
	padding: 7px 14px;
	border-radius: 999px;
	background: #fff;
	color: #111 !important;
	text-decoration: none;
	text-shadow: none;
	font-size: 13px;
	font-weight: 700;
}

.sfx-msg__close {
	flex: none;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	color: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.sfx-msg__close:hover { background: rgba(255, 255, 255, 0.35); }

.sfx-msg.is-leaving {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.25s, transform 0.25s;
}

@keyframes sfx-msg-in {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.sfx-msg { animation: none; }
}

.sfx-msg__bar {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background: rgba(255, 255, 255, 0.55);
	transform-origin: left;
	animation: sfx-bar linear forwards;
}

@keyframes sfx-bar {
	to { transform: scaleX(0); }
}

.sfx-sound {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147483000;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	color: #fff;
	background: rgba(17, 24, 39, 0.72);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	cursor: pointer;
}

.sfx-sound:hover { background: rgba(17, 24, 39, 0.9); }
