/*
* CréaCuisines - Animations
* Version: 1.0
*/

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
/* Reveal animations */
.reveal-up,
.reveal-down,
.reveal-left,
.reveal-right {
    position: relative;
    opacity: 0;
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up {
    transform: translateY(5rem);
}

.reveal-down {
    transform: translateY(-5rem);
}

.reveal-left {
    transform: translateX(-10rem);
}

.reveal-right {
    transform: translateX(10rem);
}

.reveal-up.animate,
.reveal-down.animate,
.reveal-left.animate,
.reveal-right.animate {
    opacity: 1;
    transform: translate(0);
}

/* Fade animations */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.animate {
    opacity: 1;
}

/* Scale animations */
.scale-up {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s ease;
}

.scale-up.animate {
    opacity: 1;
    transform: scale(1);
}

/* Animation delays */
[data-delay="100"] {
    transition-delay: 0.1s;
}

[data-delay="200"] {
    transition-delay: 0.2s;
}

[data-delay="300"] {
    transition-delay: 0.3s;
}

[data-delay="400"] {
    transition-delay: 0.4s;
}

[data-delay="500"] {
    transition-delay: 0.5s;
}

[data-delay="600"] {
    transition-delay: 0.6s;
}

[data-delay="700"] {
    transition-delay: 0.7s;
}

[data-delay="800"] {
    transition-delay: 0.8s;
}

[data-delay="900"] {
    transition-delay: 0.9s;
}

[data-delay="1000"] {
    transition-delay: 1s;
}

/* Keyframe animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

@keyframes rotateIn {
    from {
        transform: rotate(-360deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

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

/* Animation utility classes */
.animate-fadeIn {
    animation: fadeIn 1s ease forwards;
}

.animate-fadeOut {
    animation: fadeOut 1s ease forwards;
}

.animate-slideUp {
    animation: slideUp 1s ease forwards;
}

.animate-slideDown {
    animation: slideDown 1s ease forwards;
}

.animate-slideLeft {
    animation: slideLeft 1s ease forwards;
}

.animate-slideRight {
    animation: slideRight 1s ease forwards;
}

.animate-zoomIn {
    animation: zoomIn 1s ease forwards;
}

.animate-zoomOut {
    animation: zoomOut 1s ease forwards;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-shake {
    animation: shake 0.5s;
}

.animate-rotateIn {
    animation: rotateIn 1s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Animation delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

.delay-900 {
    animation-delay: 0.9s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Animation durations */
.duration-500 {
    animation-duration: 0.5s;
}

.duration-1000 {
    animation-duration: 1s;
}

.duration-1500 {
    animation-duration: 1.5s;
}

.duration-2000 {
    animation-duration: 2s;
}

.duration-2500 {
    animation-duration: 2.5s;
}

.duration-3000 {
    animation-duration: 3s;
}
