/* Global Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 1rem 0;
    width: 100%;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: space-between;
}

/* Previous/Next Buttons */
.page-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    /* Pillow shape */
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Previous Button - Gray style (as seen in image) */
.page-nav-btn.prev {
    background-color: #E0E0E0;
    color: #ffffff;
    /* Assuming white text from image look, or maybe dark gray? Let's try white first as it looks like a "disabled" or "neutral" pill */
    color: #888888;
    /* Actually standard gray button usually has dark text if light gray bg. Let's adjust to match "Page précédente" text in image which looks whiteish on gray */
    color: #555;
}

.page-nav-btn.prev:hover {
    background-color: #d0d0d0;
    text-decoration: none;
    color: #333;
}

.page-nav-btn.prev.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Next Button - Red style */
.page-nav-btn.next {
    background-color: #ED2024;
    color: #FFFFFF;
}

.page-nav-btn.next:hover {
    background-color: #c41215;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(237, 32, 36, 0.3);
}

/* Page Numbers Container */
.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Individual Page Number */
.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Inactive Page: White bg, Red border, Red text */
.page-number.inactive {
    background-color: #FFFFFF;
    border: 1px solid #ED2024;
    color: #ED2024;
}

.page-number.inactive:hover {
    background-color: #fff0f0;
    text-decoration: none;
}

/* Active Page: Red bg, White text */
.page-number.active {
    background-color: #ED2024;
    border: 1px solid #ED2024;
    color: #FFFFFF;
    pointer-events: none;
    /* Can't click active page */
}

/* Ellipsis */
.page-ellipsis {
    color: #888;
    margin: 0 0.25rem;
}

/* Responsive */
@media (max-width: 576px) {
    .pagination-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-numbers {
        order: -1;
        /* Show numbers on top on mobile? Or standard flow */
        order: 0;
    }

    .page-nav-btn {
        width: 100%;
    }
}