/*
   Effets : barre de progression, notifications
*/

.progression {
    position: fixed;
    left: 0;
    top: 0;
    height: 6px;
    width: 100%;
    z-index: 9998;
    pointer-events: none;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: var(--accent);
}

.progression-etoile {
    position: fixed;
    top: -8px;
    left: 0;
    width: 22px;
    height: 22px;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
}

.progression-etoile svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: var(--accent);
    stroke: var(--encre);
    stroke-width: 5px;
    overflow: visible;
}

.notification {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 9996;
    transform: translate(-50%, 24px);
    opacity: 0;
    pointer-events: none;
    background: var(--encre);
    color: var(--papier);
    font: 700 14px system-ui;
    padding: 12px 20px;
    border-radius: 99px;
    border: 2.5px solid var(--accent);
    transition:
        opacity 0.35s cubic-bezier(0.2, 0.9, 0.2, 1),
        transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.notification.visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .progression-etoile {
        display: none;
    }
}
