/* ==========================================================================
   06. ANIMATIONS
   Issu du découpage par domaine de l'ancien custom.css monolithique
   (2947 lignes) — voir AUDIT_REFONTE_2026.md / CLAUDE.md. Ordre de chargement
   des fichiers dans base.html : base, layout, components, pages, utilities,
   animations, footer — NE PAS réordonner les <link> sans revérifier la
   cascade (des règles de spécificité égale peuvent se chevaucher entre fichiers).
   ========================================================================== */

/* ==========================================================================
   06. ANIMATIONS
   ========================================================================== */

@keyframes navbarFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   View Transitions API — transition fade entre pages (Chrome 126+)
   Progressive enhancement : ignoré par Firefox/Safari, aucun fallback nécessaire.
   ========================================================================== */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation-duration: 180ms;
    animation-timing-function: ease-out;
}

::view-transition-new(root) {
    animation-duration: 280ms;
    animation-timing-function: ease-in;
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
        animation: none !important;
    }
}

