/* Effets Hover pour les cartes de catalogue */
.hover-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.hover-card img {
    transition: transform 0.3s ease;
}

.hover-card:hover img {
    transform: scale(1.05);
}

.hover-card .btn-primary {
    transition: all 0.3s ease;
}

.hover-card:hover .btn-primary {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

/* Animation pour le chargement */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.search-loader .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Amélioration de la pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 4px;
    border: 2px solid #e9ecef;
    color: #0d6efd;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-color: #0d6efd;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Badge de type */
.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Style pour les inputs dans les filtres */
.filters-body .form-control:focus,
.filters-body .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Animation pour les résultats */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results .col-md-6,
.search-results .col-lg-4,
.search-results .col-xl-3 {
    animation: fadeInUp 0.5s ease;
}

/* Stagger animation pour les cartes */
.search-results .col-md-6:nth-child(1),
.search-results .col-lg-4:nth-child(1),
.search-results .col-xl-3:nth-child(1) {
    animation-delay: 0.1s;
}

.search-results .col-md-6:nth-child(2),
.search-results .col-lg-4:nth-child(2),
.search-results .col-xl-3:nth-child(2) {
    animation-delay: 0.2s;
}

.search-results .col-md-6:nth-child(3),
.search-results .col-lg-4:nth-child(3),
.search-results .col-xl-3:nth-child(3) {
    animation-delay: 0.3s;
}

.search-results .col-md-6:nth-child(4),
.search-results .col-lg-4:nth-child(4),
.search-results .col-xl-3:nth-child(4) {
    animation-delay: 0.4s;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hover-card:hover {
        transform: none;
    }

    .search-results .col-md-6,
    .search-results .col-lg-4,
    .search-results .col-xl-3 {
        animation: none;
    }
}

/* Switch pour disponibilité */
.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

/* Amélioration des alertes */
.search-stats .alert {
    border-left: 4px solid #0dcaf0;
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.05) 0%, rgba(13, 202, 240, 0.15) 100%);
}
