/* Hallmark · animation-sheet · theme: apple-engineered-mineral */
/* critique: Révélation au scroll fluide avec fallback strict sans-JS et prefers-reduced-motion. */

/* ===== ARRIÈRE-PLAN ÉPURÉ & NOBLE (SANS HALOS ARTIFICIELS) ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: var(--primary);
    transition: background-color 0.4s ease;
}

[data-theme="light"] .bg-animation {
    background: var(--primary);
}

/* ===== APPARITION PROGRESSIVE AU SCROLL (REVEAL) ===== */
.fade-in {
    opacity: 1;
    transform: none;
}

html.js .fade-in:not(.visible) {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

html.js .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Décalages en cascade discrets */
.projects-editorial-list .project-entry:nth-child(1) { transition-delay: 0.04s; }
.projects-editorial-list .project-entry:nth-child(2) { transition-delay: 0.08s; }
.projects-editorial-list .project-entry:nth-child(3) { transition-delay: 0.12s; }
.projects-editorial-list .project-entry:nth-child(4) { transition-delay: 0.16s; }
.projects-editorial-list .project-entry:nth-child(5) { transition-delay: 0.20s; }
.projects-editorial-list .project-entry:nth-child(6) { transition-delay: 0.24s; }

/* Motion accessibilité (Floor 7) */
@media (prefers-reduced-motion: reduce) {
    .fade-in, html.js .fade-in:not(.visible) {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
