
/* ==========================================================================
   SEN DARAL — PAGINATION PREMIUM
   ========================================================================== */

/* CONTENEUR PRINCIPAL */
.ads-pagination-wrapper {
    width: 100%;
    margin-top: 35px;
    padding: 20px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    background: #ffffff;
    border: 1px solid rgba(8, 75, 65, .09);
    border-radius: 20px;

    box-shadow:
        0 12px 35px rgba(8, 75, 65, .06),
        0 2px 8px rgba(0, 0, 0, .025);

    box-sizing: border-box;
}

/* INFORMATION DE PAGE */
.ads-pagination-info {
    flex: 0 0 auto;
    color: #71807d;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.ads-pagination-info strong {
    color: #063f37;
    font-weight: 800;
}

/* NAVIGATION */
.ads-pagination {
    display: flex !important;
    flex: 1 1 auto;
    align-items: center !important;
    justify-content: flex-end;
    gap: 7px;

    margin: 0;
    padding: 0;

    list-style: none;
}

/* RESET DES ÉLÉMENTS DE PAGINATION */
.ads-pagination *,
.ads-pagination *::before,
.ads-pagination *::after {
    box-sizing: border-box;
}

.ads-pagination a,
.ads-pagination span {
    list-style: none;
    text-decoration: none;
}

/* BOUTONS PRÉCÉDENT / SUIVANT */
.ads-pagination > a.ads-page-link,
.ads-pagination > span.ads-page-link,
.ads-pagination > span.prev,
.ads-pagination > span.next,
.ads-pagination > span.prev > a,
.ads-pagination > span.next > a {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;

    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid rgba(8, 75, 65, .10);
    border-radius: 12px;

    background: #ffffff;
    color: #174f48;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

/* HOVER DES BOUTONS */
.ads-pagination > a.ads-page-link:hover,
.ads-pagination > span.prev > a:hover,
.ads-pagination > span.next > a:hover {
    background: #063f37;
    border-color: #063f37;
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(6, 63, 55, .16);
}

/* ICÔNES */
.ads-pagination .ads-page-link i {
    font-size: 14px;
    line-height: 1;
}

/* BOUTONS DÉSACTIVÉS */
.ads-pagination > span.ads-page-link,
.ads-pagination > span.prev,
.ads-pagination > span.next,
.ads-pagination > span.prev.disabled,
.ads-pagination > span.next.disabled {
    background: #f5f8f7;
    border-color: rgba(8, 75, 65, .06);
    color: #a7b2af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* CONTENEUR DES NUMÉROS */
.ads-pagination .ads-page-numbers {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin: 0;
    padding: 0;

    list-style: none;
}

/* NUMÉROS CLIQUABLES */
.ads-pagination .ads-page-numbers a,
.ads-pagination a.ads-page-number {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;

    display: inline-flex !important;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;
    border-radius: 12px;

    background: #ffffff;
    color: #52635f;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

/* SURVOL DES NUMÉROS */
.ads-pagination .ads-page-numbers a:hover,
.ads-pagination a.ads-page-number:hover {
    background: #edf5f3;
    border-color: rgba(8, 75, 65, .10);
    color: #063f37;
    transform: translateY(-1px);
}

/* PAGE ACTIVE */
.ads-pagination .ads-page-numbers .ads-page-current,
.ads-pagination .ads-page-current {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;

    display: inline-flex !important;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;

    border: 1px solid #063f37;
    border-radius: 12px;

    background: #063f37;
    color: #ffffff !important;

    font-size: 13px;
    font-weight: 800;
    line-height: 1;

    box-shadow: 0 7px 18px rgba(6, 63, 55, .20);
}

/* POINTS DE SUSPENSION */
.ads-pagination .ellipsis {
    min-width: 30px;
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #9aa8a4;
    font-size: 14px;
    font-weight: 700;
}

/* SUPPRESSION DES PUCES PARASITES */
.ads-pagination ul,
.ads-pagination ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ads-pagination li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ads-pagination li::marker {
    content: "";
}

/* TABLETTE */
@media (max-width: 768px) {
    .ads-pagination-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 18px;
    }

    .ads-pagination {
        width: 100%;
        flex: 0 1 auto;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* MOBILE */
@media (max-width: 576px) {
    .ads-pagination-wrapper {
        padding: 15px 12px;
        border-radius: 16px;
    }

    .ads-pagination {
        gap: 5px;
    }

    .ads-pagination > a.ads-page-link,
    .ads-pagination > span.ads-page-link,
    .ads-pagination > span.prev,
    .ads-pagination > span.next,
    .ads-pagination > span.prev > a,
    .ads-pagination > span.next > a {
        min-width: 40px;
        height: 40px;
        padding: 0 11px;
        border-radius: 10px;
        font-size: 12px;
    }

    .ads-pagination .ads-page-numbers a,
    .ads-pagination a.ads-page-number,
    .ads-pagination .ads-page-numbers .ads-page-current,
    .ads-pagination .ads-page-current {
        width: 40px;
        min-width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 10px;
        font-size: 12px;
    }
}

/* TRÈS PETIT MOBILE */
@media (max-width: 400px) {
    .ads-pagination-wrapper {
        padding: 12px 8px;
    }

    .ads-pagination {
        gap: 3px;
    }

    .ads-pagination > a.ads-page-link,
    .ads-pagination > span.ads-page-link,
    .ads-pagination > span.prev,
    .ads-pagination > span.next,
    .ads-pagination > span.prev > a,
    .ads-pagination > span.next > a {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 11px;
    }

    .ads-pagination .ads-page-numbers a,
    .ads-pagination a.ads-page-number,
    .ads-pagination .ads-page-numbers .ads-page-current,
    .ads-pagination .ads-page-current {
        width: 36px;
        min-width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 9px;
    }

    .ads-pagination-info {
        font-size: 12px;
    }
}


/* ==========================================================
   SEN DARAL — PAGINATION : STYLE FINAL
========================================================== */

/* Navigation générale */
.ads-pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end;
    gap: 10px;
}

/* Conteneur des numéros */
.ads-pagination .ads-page-numbers {
    display: flex !important;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Tous les éléments de pagination */
.ads-pagination .ads-page-numbers li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Numéros */
.ads-pagination .ads-page-numbers li a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e5eeeb;
    border-radius: 12px;
    background: #fff;
    color: #315b53;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    transition: all .2s ease;
}

.ads-pagination .ads-page-numbers li a:hover {
    background: #edf6f3;
    border-color: #b8d9ce;
    color: #063f37;
    transform: translateY(-2px);
}

/* PAGE ACTIVE */
.ads-pagination .ads-page-numbers li.active {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #063f37;
    border-radius: 12px;
    background: #063f37;
    color: #fff;

    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(6, 63, 55, .20);
}

/* Lien actif éventuel */
.ads-pagination .ads-page-numbers li.active a {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
    transform: none;
}

/* POINTS DE SUSPENSION */
.ads-pagination .ads-page-numbers li.ellipsis {
    color: #9aa8a4;
    padding: 0 5px;
}

/* PRÉCÉDENT ET SUIVANT */
.ads-pagination > a.ads-page-link,
.ads-pagination > span.ads-page-link {
    min-width: 125px;
    height: 44px;
    padding: 0 17px;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border: 1px solid #dce9e5;
    border-radius: 12px;
    background: #fff;
    color: #0d4f45;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;

    transition: all .2s ease;
}

/* Survol précédent/suivant */
.ads-pagination > a.ads-page-link:hover {
    background: #0d4f45;
    border-color: #0d4f45;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(13, 79, 69, .16);
}

/* Flèches */
.ads-pagination .ads-page-link i {
    font-size: 14px;
}

/* État désactivé */
.ads-pagination > span.ads-page-link {
    background: #f5f8f7;
    border-color: #edf1ef;
    color: #a4b1ad;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* MOBILE */
@media (max-width: 576px) {
    .ads-pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .ads-pagination .ads-page-numbers {
        gap: 5px;
    }

    .ads-pagination .ads-page-numbers li,
    .ads-pagination .ads-page-numbers li.active {
        width: 38px;
        height: 38px;
    }

    .ads-pagination .ads-page-numbers li a {
        width: 38px;
        height: 38px;
    }

    .ads-pagination > a.ads-page-link,
    .ads-pagination > span.ads-page-link {
        min-width: 105px;
        height: 40px;
        padding: 0 11px;
        font-size: 12px;
    }
}
