/* Animation de chargement pour les pages Natinfs */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2780e3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(39, 128, 227, 0.3);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

.loading-text {
    margin-top: 20px;
    color: #2780e3;
    font-size: 1rem; /* 16px en rem */
    font-weight: 500;
    text-align: center;
}

.loading-dots {
    display: inline-block;
    animation: dots 1.5s infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Animation pour le contenu qui apparaît */
.content-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.content-fade-in.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Animation pour les liens de catégories */
.category-link {
    transition: all 0.2s ease;
}

.category-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 128, 227, 0.15);
}

/* Animation pour les cartes de résultats */
.result-card {
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

/* Délai progressif pour les cartes */
.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }
.result-card:nth-child(4) { animation-delay: 0.4s; }
.result-card:nth-child(5) { animation-delay: 0.5s; }
.result-card:nth-child(6) { animation-delay: 0.6s; }
.result-card:nth-child(7) { animation-delay: 0.7s; }
.result-card:nth-child(8) { animation-delay: 0.8s; }
.result-card:nth-child(9) { animation-delay: 0.9s; }
.result-card:nth-child(10) { animation-delay: 1.0s; }

/* Responsive */
@media (max-width: 768px) {
    .loading-spinner {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .loading-text {
        font-size: 0.875rem; /* 14px en rem */
    }
} 