/* WEENERGY – Retour visuel des boutons */
:root { --we-press-scale: .95; --we-ripple: rgba(255,255,255,.45); }

.we-btn {
	position: relative;
	overflow: hidden;
	-webkit-tap-highlight-color: transparent;
	transition: transform .12s ease, box-shadow .12s ease, filter .12s ease, opacity .12s ease !important;
}
/* Enfoncement pendant l'appui + maintenu quelques instants après le clic */
.we-btn:active,
.we-btn.we-pressed {
	transform: scale(var(--we-press-scale)) translateY(1px) !important;
	filter: brightness(.88) !important;
	box-shadow: inset 0 3px 8px rgba(0,0,0,.25) !important;
}
/* Onde qui part du point touché */
.we-ripple {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	background: var(--we-ripple);
	transform: scale(0);
	animation: we-ripple .55s ease-out forwards;
}
@keyframes we-ripple { to { transform: scale(2.6); opacity: 0; } }

/* Indicateur de chargement : action en cours */
.we-btn.we-loading {
	pointer-events: none;
	opacity: .85;
	cursor: progress;
}
.we-btn.we-loading::after {
	content: "";
	display: inline-block;
	width: 1em; height: 1em;
	margin-left: .55em;
	vertical-align: -.15em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: we-spin .7s linear infinite;
}
input.we-btn.we-loading { cursor: progress; } /* pas de ::after sur <input> : l'enfoncement reste visible */
@keyframes we-spin { to { transform: rotate(360deg); } }

/* Cases à cocher / boutons radio : petit « pop » */
input[type="checkbox"].we-check:active,
input[type="radio"].we-check:active { transform: scale(.85); }
input[type="checkbox"].we-check, input[type="radio"].we-check { transition: transform .1s ease; }

@media (prefers-reduced-motion: reduce) {
	.we-btn, .we-btn:active, .we-btn.we-pressed { transform: none !important; }
	.we-ripple { display: none; }
}
