﻿/* L’overlay couvre la zone et bloque les interactions */
.refresh-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.35); /* voile léger blanc */
    z-index: 6;
    pointer-events: all; /* capte les clics, empêche d'accéder aux boutons dessous */
}

/* Petit badge en haut à droite (fond blanc) */
.refresh-indicator {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: #fff;
    border-radius: 9999px;
    padding: .5rem .75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    line-height: 1;
}

/* Barre de progression animée en bas */
.refresh-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    overflow: hidden;
    background: rgba(0,0,0,0.06);
}

    .refresh-progress .bar {
        position: absolute;
        left: -30%;
        bottom: 0;
        width: 30%;
        height: 100%;
        background: rgba(0,0,0,0.35);
        animation: slide 1.2s linear infinite;
    }

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(430%);
    }
}

/* Spinner */
.spin {
    animation: spin 800ms linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
