/* ============================================
   CSS COMMUN - Animations et utilitaires
   Thème 4 (primary rouge, secondary bleu, accent vert)
   ============================================ */

/* Carrousel logos - Animations */
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes scroll-reverse {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.animate-scroll {
    animation: scroll 35s linear infinite;
    will-change: transform;
}

.animate-scroll-reverse {
    animation: scroll-reverse 35s linear infinite;
    will-change: transform;
}

/* Pause au survol */
.animate-scroll:hover,
.animate-scroll-reverse:hover {
    animation-play-state: paused;
}

/* Accessibilité : réduit l'animation si l'utilisateur l'a demandé */
@media (prefers-reduced-motion: reduce) {
    .animate-scroll,
    .animate-scroll-reverse {
        animation: none !important;
    }
}

/* Utilitaire focus visible (a11y) - Thème 4 */
.focus-ring:focus-visible {
    outline: 2px solid var(--secondary);          /* Bleu du thème */
    outline-offset: 2px;
    box-shadow: 0 0 0 3px var(--secondary-pale);  /* halo doux */
    border-radius: 0.25rem;
}
