/* Back to top — chartre navy #06113a + or #F2CD78 — desktop only */

.wpcursor-back-to-top {
	--ct-btt-navy: #06113a;
	--ct-btt-gold: #f2cd78;
	position: fixed;
	z-index: 99990;
	right: 28px;
	bottom: 32px;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 2px solid var(--ct-btt-gold);
	border-radius: 14px;
	background: var(--ct-btt-navy);
	color: var(--ct-btt-gold);
	box-shadow: 0 8px 24px rgba(6, 17, 58, 0.28);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(12px);
	transition:
		opacity 0.28s ease,
		visibility 0.28s ease,
		transform 0.28s ease,
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.wpcursor-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.wpcursor-back-to-top:hover,
.wpcursor-back-to-top:focus-visible {
	background: var(--ct-btt-gold);
	color: var(--ct-btt-navy);
	border-color: var(--ct-btt-gold);
	box-shadow: 0 10px 28px rgba(6, 17, 58, 0.35);
	outline: none;
}

.wpcursor-back-to-top:active {
	transform: translateY(1px) scale(0.97);
}

.wpcursor-back-to-top__icon {
	display: flex;
	line-height: 0;
}

.wpcursor-back-to-top__icon svg {
	display: block;
}

/* Masquer le bouton Divi natif si présent (évite le doublon) */
body.wpcursor-has-back-to-top .et_pb_scroll_top {
	display: none !important;
}

/* Mobile / tablette : masqué (menu bas sticky) */
@media (max-width: 980px) {
	.wpcursor-back-to-top {
		display: none !important;
	}
}
