/* =========================================================
   PAGINATION RBT — design élégant
   ========================================================= */
.rbt-pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
}

.rbt-pagination-summary {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    letter-spacing: 0.2px;
}
.rbt-pagination-summary strong {
    color: #1f2937;
    font-weight: 600;
}

.rbt-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rbt-page-item {
    list-style: none;
}

.rbt-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    font-family: inherit;
    line-height: 1;
}

/* Hover */
.rbt-page-item:not(.disabled):not(.active) .rbt-page-link:hover {
    color: #ffffff;
    background: #1f2937;
    border-color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(31, 41, 55, 0.18);
}

/* Page active */
.rbt-page-item.active .rbt-page-link {
    color: #ffffff;
    background: linear-gradient(135deg, #FF5A3C 0%, #FF8A3C 100%);
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(255, 90, 60, 0.35);
    cursor: default;
    pointer-events: none;
}

/* Désactivé */
.rbt-page-item.disabled .rbt-page-link {
    color: #c1c7d0;
    background: #f9fafb;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Icônes chevrons */
.rbt-page-link i {
    font-size: 13px;
    transition: transform 0.25s ease;
}
.rbt-page-item:not(.disabled):not(.active) .rbt-page-link:hover i.fa-chevron-left {
    transform: translateX(-2px);
}
.rbt-page-item:not(.disabled):not(.active) .rbt-page-link:hover i.fa-chevron-right {
    transform: translateX(2px);
}

/* Ellipse "..." */
.rbt-page-dots {
    border: none !important;
    background: transparent !important;
    color: #9ca3af !important;
    letter-spacing: 2px;
    cursor: default;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 575px) {
    .rbt-pagination { gap: 6px; }
    .rbt-page-link {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 13px;
        border-radius: 10px;
    }
    /* On cache les numéros intermédiaires sur très petits écrans */
    .rbt-page-item.rbt-page-item--hide-mobile { display: none; }
}