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

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

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

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

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

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

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gris-moyen);
    border-top-color: var(--noir);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
    margin: 0 auto;
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--gris-clair) 0%,
        var(--gris-tres-clair) 50%,
        var(--gris-clair) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

.skeleton-text {
    height: 14px;
    margin-bottom: var(--espacement-xs);
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: var(--espacement-sm);
}

.skeleton-image {
    height: 200px;
    margin-bottom: var(--espacement-sm);
}

.skeleton-button {
    height: 40px;
    width: 120px;
}
