/*
 * Indicateur du pull-to-refresh (voir pull_to_refresh.js). Fixe en haut du
 * viewport, caché par défaut (opacity géré en JS pendant le tirage), pousse
 * légèrement vers le bas puis tourne pendant le rafraîchissement.
 */
#pull-to-refresh-indicator {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    opacity: 0;
    z-index: 500;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-surface, #fff);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

#pull-to-refresh-indicator .icon {
    width: 1.1em;
    height: 1.1em;
    font-size: 1.1rem;
    color: var(--color-accent);
    transition: transform 0.1s linear;
}

#pull-to-refresh-indicator.armed .icon {
    transform: rotate(180deg);
}

#pull-to-refresh-indicator.refreshing {
    transition: transform 0.2s ease;
}

#pull-to-refresh-indicator.refreshing .icon {
    animation: pull-to-refresh-spin 0.8s linear infinite;
}

@keyframes pull-to-refresh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
