/* Styles pour les cartes skeleton (loading) */
.card.skeleton {
    pointer-events: none;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.card.skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.skeleton-img {
    width: 100%;
    height: 200px;
    background: #e0e0e0;
    border-radius: 8px 8px 0 0;
}

.skeleton-line {
    background: #e0e0e0;
    border-radius: 4px;
    margin: 8px 0;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Animation de transition pour les cartes */
.card {
    animation: fadeIn 0.3s ease-in;
}

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

/* État de chargement pour le conteneur */
.contain.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Contrôles de pagination en haut */
.pagination-controls-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(233, 161, 27, 0.1);
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
}

.items-per-page label {
    font-size: 14px;
    color: #586069;
    font-weight: 600;
}

.items-per-page select {
    padding: 10px 16px;
    border: 2px solid #e8e4e1;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #f6f8fa;
    color: #24292e;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.items-per-page select:hover {
    border-color: rgb(233, 161, 27);
    background: white;
}

.items-per-page select:focus {
    outline: none;
    border-color: rgb(233, 161, 27);
    background: white;
    box-shadow: 0 0 0 3px rgba(233, 161, 27, 0.1);
}

/* Container de pagination */
#pagination {
    margin-top: 40px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(233, 161, 27, 0.1);
}

/* Contrôles de pagination */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #e8e4e1;
    background: #f6f8fa;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #24292e;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(233, 161, 27), rgb(220, 145, 15));
    transition: left 0.4s ease;
    z-index: 0;
}

.pagination-btn span,
.pagination-btn svg {
    position: relative;
    z-index: 1;
}

.pagination-btn:hover:not(:disabled) {
    border-color: rgb(233, 161, 27);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 161, 27, 0.2);
}

.pagination-btn:hover:not(:disabled)::before {
    left: 0;
}

.pagination-btn:hover:not(:disabled) {
    color: white;
}

.pagination-btn.active {
    border-color: rgb(233, 161, 27);
    color: white;
}

.pagination-btn.active::before {
    left: 0;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f6f8fa;
    border-color: #e8e4e1;
}

.pagination-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: #a0a8b0;
    font-weight: 600;
}

/* Info de pagination */
.pagination-info {
    text-align: center;
    color: #586069;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}

.pagination-info strong {
    color: rgb(233, 161, 27);
}

/* Responsive */
@media (max-width: 768px) {
    .pagination-controls-top {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .items-per-page {
        justify-content: space-between;
    }
    
    .pagination-controls {
        gap: 5px;
    }
    
    .pagination-btn {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
    
    .pagination-info {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pagination-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
    
    .pagination-ellipsis {
        padding: 0 4px;
    }
}