/*
 * Retours visuels d'Impact (docs/impact/retours-visuels.md) : joués par assets/lib/retours.js. Rien ne prend la souris,
 * tout est retiré à la fin ; animations réduites : rien ne bouge ; mode télé : rien.
 */
.impact-retour-ok { animation: impact-retour-rebond .32s ease-out; }
.impact-retour-ok-large { animation: impact-retour-rebond-large .32s ease-out; }
.impact-retour-ok [pathLength], .impact-retour-ok-large [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: impact-retour-trait .36s ease-out forwards; }
.impact-retour-toile { position: fixed; inset: 0; z-index: 1990; pointer-events: none; }
.impact-retour-bulle {
    position: fixed; z-index: 1991; pointer-events: none; transform: translate(-50%, -100%);
    font-size: 12px; font-weight: 700; color: var(--tblr-primary, #6c3cf0);
    animation: impact-retour-bulle .6s ease-out forwards;
}
.impact-retour-coche {
    position: fixed; z-index: 1991; pointer-events: none; width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center; background: var(--tblr-success, #2fb344); color: #fff;
}
@keyframes impact-retour-rebond { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes impact-retour-rebond-large { 0% { transform: scale(1); } 40% { transform: scale(1.015); } 100% { transform: scale(1); } }
@keyframes impact-retour-trait { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes impact-retour-bulle {
    0% { opacity: 0; transform: translate(-50%, -100%) scale(.8); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, calc(-100% - 16px)) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
    .impact-retour-ok, .impact-retour-ok-large, .impact-retour-ok [pathLength], .impact-retour-ok-large [pathLength], .impact-retour-bulle { animation: none; }
    .impact-retour-ok [pathLength], .impact-retour-ok-large [pathLength] { stroke-dashoffset: 0; }
    .impact-retour-bulle, .impact-retour-toile { display: none; }
}
body.impact--tele .impact-retour-toile, body.impact--tele .impact-retour-bulle, body.impact--tele .impact-retour-coche { display: none; }
