/* ============================================================
   VITALIBERTY — animations.css
   Animations & effets visuels
   ============================================================ */

/* ── Keyframes ────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
    50%       { box-shadow: 0 0 40px rgba(0, 212, 255, 0.6); }
}

@keyframes scanLine {
    0%   { transform: translateY(-100%); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

@keyframes borderGlow {
    0%, 100% { border-color: rgba(30, 144, 255, 0.3); }
    50%       { border-color: rgba(0, 212, 255, 0.8); }
}

@keyframes typewriter {
    from { width: 0; }
    to   { width: 100%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

@keyframes particleFloat {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
    33%  { transform: translateY(-20px) translateX(10px) scale(1.1); opacity: 1; }
    66%  { transform: translateY(-10px) translateX(-8px) scale(0.9); opacity: 0.7; }
    100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
}

@keyframes counterUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Classes utilitaires d'animation ─────────────────────── */
.anim-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }
.anim-delay-5 { transition-delay: 0.5s; }

/* ── Curseur clignotant hero ─────────────────────────────── */
.cursor-blink {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--clr-accent-cyan);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

/* ── Floating (pour image hero) ──────────────────────────── */
.anim-float {
    animation: float 6s ease-in-out infinite;
}

/* ── Glow pulsé ──────────────────────────────────────────── */
.anim-glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

/* ── Scan line décoratif ─────────────────────────────────── */
.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--clr-accent-cyan), transparent);
    animation: scanLine 8s linear infinite;
    pointer-events: none;
    opacity: 0.4;
}

/* ── Respect reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .anim-fade-up {
        opacity: 1;
        transform: none;
    }
}
