/* Wobi - Boutons flottants : WhatsApp (bas gauche) et retour en haut (bas droite). */

.wobi-flot {
	position: fixed;
	bottom: 24px;
	z-index: 9990;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	text-decoration: none;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, opacity .3s, background .25s;
}
.wobi-flot svg { display: block; }
.wobi-flot:focus-visible { outline: 3px solid #111; outline-offset: 3px; }

/* WhatsApp */
.wobi-flot--whatsapp {
	left: 24px;
	width: 58px;
	height: 58px;
	background: #25D366;
	color: #fff;
	box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .65), 0 4px 10px rgba(0, 0, 0, .12);
}
.wobi-flot--whatsapp svg { width: 32px; height: 32px; }
.wobi-flot--whatsapp:hover { transform: translateY(-3px) scale(1.04); background: #1EBE5A; color: #fff; }
.wobi-flot--whatsapp::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
	animation: wobi-wa-pulse 2.4s ease-out 3;
	pointer-events: none;
}
@keyframes wobi-wa-pulse {
	0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
	80%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
}
.wobi-flot__bulle {
	position: absolute;
	left: calc(100% + 12px);
	top: 50%;
	transform: translate(-6px, -50%);
	white-space: nowrap;
	background: #111;
	color: #fff;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1;
	padding: 10px 14px;
	border-radius: 8px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s, transform .25s;
}
.wobi-flot--whatsapp:hover .wobi-flot__bulle,
.wobi-flot--whatsapp:focus-visible .wobi-flot__bulle { opacity: 1; transform: translate(0, -50%); }

/* Retour en haut */
.wobi-flot--haut {
	right: 24px;
	width: 48px;
	height: 48px;
	background: #F26A1B;
	color: #fff;
	box-shadow: 0 10px 22px -10px rgba(242, 106, 27, .7);
	opacity: 0;
	transform: translateY(16px);
	pointer-events: none;
}
.wobi-flot--haut[hidden] { display: grid; visibility: hidden; }
.wobi-flot--haut.est-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.wobi-flot--haut svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wobi-flot--haut:hover { background: #D9560C; transform: translateY(-3px); }

@media (max-width: 767px) {
	.wobi-flot { bottom: 16px; }
	.wobi-flot--whatsapp { left: 16px; width: 52px; height: 52px; }
	.wobi-flot--whatsapp svg { width: 28px; height: 28px; }
	.wobi-flot--haut { right: 16px; width: 44px; height: 44px; }
	.wobi-flot__bulle { display: none; }
}

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

@media (prefers-reduced-motion: reduce) {
	.wobi-flot, .wobi-flot__bulle { transition: none; }
	.wobi-flot--whatsapp::before { animation: none; }
}

/* Au-dessus du bouton cookies (bas gauche) */
.wobi-flot--whatsapp { bottom: 96px; }
@media (max-width: 767px) { .wobi-flot--whatsapp { bottom: 84px; } }
