/* Styles pour la pagination personnalisée */

/* Container de la pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Éléments de la pagination */
.pagination .page-item {
    margin: 0 2px;
}

/* Liens de pagination */
.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination .page-link:hover {
    background-color: #f5f5f5;
    border-color: #999;
    color: #000;
}

/* Page active */
.pagination .active .page-link {
    background-color: #9c27b0;
    border-color: #9c27b0;
    color: white;
    font-weight: bold;
}

.pagination .active .page-link:hover {
    background-color: #7b1fa2;
    border-color: #7b1fa2;
}

/* Liens désactivés */
.pagination .disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f9f9f9;
    border-color: #ddd;
    pointer-events: none;
}

/* Boutons première/dernière page et navigation */
.pagination .first .page-link,
.pagination .last .page-link,
.pagination .prev .page-link,
.pagination .next .page-link {
    font-weight: bold;
}

/* Icônes Material */
.pagination .page-link .material-icons {
    font-size: 20px;
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .pagination .page-link {
        min-width: 35px;
        height: 35px;
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .pagination .page-item {
        margin: 0 1px;
    }
}

/* Animation au survol */
.pagination .page-link {
    position: relative;
    overflow: hidden;
}

.pagination .page-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(156, 39, 176, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.pagination .page-link:hover::before {
    width: 100%;
    height: 100%;
}

/* Style spécial pour les ellipses */
.pagination .disabled .page-link {
    background: transparent;
    border: none;
    font-weight: bold;
    font-size: 18px;
    padding-top: 0;
}
