/**
 * Sticky Mobile CTA + Floating WhatsApp
 * RenovIntérieur — version 1.0.0
 */

:root {
	--ri-cta-phone: #a85e35;
	--ri-cta-wa: #25d366;
	--ri-cta-devis: #132432;
	--ri-cta-shadow: 0 -2px 16px rgba(17, 31, 44, 0.12);
}

/* ====== MOBILE STICKY BAR (visible <= 768px) ====== */
.ri-mobile-cta {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9998;
	background: #ffffff;
	box-shadow: var(--ri-cta-shadow);
	padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0));
	border-top: 1px solid #e5ebf2;
}

.ri-mobile-cta__inner {
	display: flex;
	gap: 8px;
	max-width: 720px;
	margin: 0 auto;
	padding: 0 8px;
}

.ri-mobile-cta__btn {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 10px 6px;
	border-radius: 10px;
	text-decoration: none !important;
	font-family: var(--ri-font-body, 'Inter', sans-serif);
	font-weight: 600;
	font-size: 12px;
	line-height: 1.1;
	letter-spacing: 0.01em;
	color: #fff !important;
	transition: transform 0.15s ease, filter 0.15s ease;
	min-height: 52px;
	-webkit-tap-highlight-color: transparent;
}

.ri-mobile-cta__btn:active {
	transform: scale(0.97);
	filter: brightness(0.92);
}

.ri-mobile-cta__btn svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	flex-shrink: 0;
}

.ri-mobile-cta__btn--phone {
	background: var(--ri-cta-phone);
}

.ri-mobile-cta__btn--wa {
	background: var(--ri-cta-wa);
}

.ri-mobile-cta__btn--devis {
	background: var(--ri-cta-devis);
}

@media (max-width: 768px) {
	.ri-mobile-cta {
		display: block;
	}
	body {
		padding-bottom: calc(76px + env(safe-area-inset-bottom, 0));
	}
}

/* ====== FLOATING WHATSAPP (visible >= 769px) ====== */
.ri-wa-float {
	display: none;
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9997;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--ri-cta-wa);
	color: #fff !important;
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(17, 31, 44, 0.18);
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none !important;
}

.ri-wa-float:hover {
	transform: scale(1.06) translateY(-2px);
	box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45), 0 4px 8px rgba(17, 31, 44, 0.22);
}

.ri-wa-float svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
}

.ri-wa-float__pulse {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--ri-cta-wa);
	opacity: 0;
	animation: ri-wa-pulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
	z-index: -1;
}

@keyframes ri-wa-pulse {
	0% {
		transform: scale(1);
		opacity: 0.6;
	}
	80%,
	100% {
		transform: scale(1.6);
		opacity: 0;
	}
}

@media (min-width: 769px) {
	.ri-wa-float {
		display: flex;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ri-wa-float__pulse {
		animation: none;
	}
}
