/* ================================
   6. ANIMATIONS & KEYFRAMES
   ================================ */

/* Animate Top */
@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

/* Animate Top (variant 2) */
@-webkit-keyframes animatetop {
    from {
        top: -800px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

@keyframes animatetop {
    from {
        top: -800px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

/* Slide In Up */
@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flicker */
@keyframes flicker {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Star Glow */
@keyframes starGlow {
    0% {
        filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.5)) brightness(1);
    }
    100% {
        filter: drop-shadow(3px 3px 12px rgba(255, 217, 0, 0.87)) brightness(1.2);
    }
}

/* Float */
@keyframes float {
    0%, 100% {
        transform: rotateX(10deg) rotateY(-5deg) translateY(0px);
    }
    50% {
        transform: rotateX(10deg) rotateY(-5deg) translateY(-5px);
    }
}

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

/* Scroll Image */
@keyframes scroll-image_nkz {
    0% {
        left: -400px;
    }
    100% {
        left: 100%;
    }
}

/* Marquee (défilement) */
.marquee-rtl {
    flex-shrink: 0;
    width: 80%;
    margin: 1em auto;
    overflow: hidden;
    color: #fff;
    opacity: .9;
    scroll-snap-align: center;
}

.marquee-rtl > :first-child {
    display: inline-block;
    padding-left: 100%;
    white-space: nowrap;
    animation: defilement-rtl 35s infinite linear;
}

.marquee-rtlnkm {
    flex-shrink: 0;
    width: 90%;
    margin: 1em auto 2em;
    overflow: hidden;
    box-shadow: 0 .15em .5em #FFF, inset 0 0 1em .15em #FFF;
    color: #000;
    opacity: .9;
    scroll-snap-align: center;
}

.marquee-rtlnkm > :first-child {
    display: inline-block;
    padding-left: 100%;
    white-space: nowrap;
    animation: defilement-rtl 15s infinite linear;
}

@keyframes defilement-rtl {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Destination Card Animation */
.destination-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.destination-card:nth-child(1) { animation-delay: 0.1s; }
.destination-card:nth-child(2) { animation-delay: 0.2s; }
.destination-card:nth-child(3) { animation-delay: 0.3s; }
.destination-card:nth-child(4) { animation-delay: 0.4s; }
.destination-card:nth-child(5) { animation-delay: 0.5s; }
