/*==================================================
GOOGLE FONT
==================================================*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/*==================================================
VARIABLES
==================================================*/

:root{

    --badges-primary:#4f46e5;

    --badges-secondary:#7c3aed;

    --badges-success:#16a34a;

    --badges-danger:#dc2626;

    --badges-bg:#f5f7fb;

    --badges-card:#ffffff;

    --badges-text:#172554;

    --badges-muted:#64748b;

    --badges-border:#e5e7eb;

}

/*==================================================
RESET
==================================================*/

.badges-page *{

    box-sizing:border-box;

}

/*==================================================
BODY
==================================================*/

body{

    background:var(--badges-bg) !important;

    font-family:'Inter',sans-serif;

    color:var(--badges-text);

}

/*==================================================
PAGE
==================================================*/

.badges-page{

    padding:34px 0 56px;

}

/*==================================================
CONTAINER
==================================================*/

.badges-page .container{

    max-width:1380px;

}

/*==================================================
HERO
==================================================*/

.badges-hero{

    position:relative;

    overflow:hidden;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:22px;

    margin-bottom:18px;

    padding:22px 24px;

    border-radius:18px;

    color:#fff;

    background:

    linear-gradient(

        135deg,

        #2563eb,

        #4338ca,

        #7c3aed

    );

    box-shadow:

    0 12px 30px rgba(79,70,229,.16);

}

.badges-hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:

    radial-gradient(

        circle at top right,

        rgba(255,255,255,.14),

        transparent 48%

    );

}

.badges-hero>*{

    position:relative;

    z-index:2;

}

/*==================================================
LEFT
==================================================*/

.badges-hero__content{

    flex:1;

    min-width:0;

}

.badges-hero__label{

    display:inline-flex;

    align-items:center;

    gap:7px;

    margin-bottom:8px;

    padding:5px 12px;

    border-radius:999px;

    background:rgba(255,255,255,.15);

    backdrop-filter:blur(10px);

    font-size:.70rem;

    font-weight:700;

    letter-spacing:.05em;

    text-transform:uppercase;

}

.badges-hero h1{

    margin:0 0 8px;

    color:#fff;

    font-size:1.75rem;

    font-weight:800;

    line-height:1.25;

}

.badges-hero p{

    max-width:560px;

    margin:0;

    color:rgba(255,255,255,.92);

    font-size:.88rem;

    line-height:1.55;

}

/*==================================================
HERO BUTTONS
==================================================*/

.badges-hero__actions{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-top:16px;

}

.btn-hero-primary,

.btn-hero-secondary{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    height:40px;

    padding:0 16px;

    border-radius:10px;

    font-size:.84rem;

    font-weight:700;

    text-decoration:none;

    transition:.25s;

}

.btn-hero-primary{

    border:none;

    background:#fff !important;

    color:var(--badges-primary) !important;

}

.btn-hero-secondary{

    border:1px solid rgba(255,255,255,.28);

    background:rgba(255,255,255,.10) !important;

    color:#fff !important;

    backdrop-filter:blur(8px);

}

.btn-hero-primary:hover,

.btn-hero-secondary:hover{

    transform:translateY(-2px);

}

/*==================================================
RIGHT
==================================================*/

.badges-hero__illustration{

    display:flex;

    align-items:center;

    justify-content:center;

}

.illustration-badge{

    width:95px;

    height:95px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:18px;

    background:rgba(255,255,255,.14);

    border:1px solid rgba(255,255,255,.18);

    backdrop-filter:blur(12px);

    font-size:48px;

}

/*==================================================
ANIMATION
==================================================*/

.badges-hero{

    animation:heroFade .45s ease;

}

@keyframes heroFade{

    from{

        opacity:0;

        transform:translateY(12px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*==================================================
TABLET
==================================================*/

@media (max-width:992px){

    .badges-page{

        padding:26px 0 46px;

    }

    .badges-hero{

        flex-direction:column;

        align-items:flex-start;

        gap:18px;

    }

    .badges-hero__illustration{

        display:none;

    }

}

/*==================================================
MOBILE
==================================================*/

@media (max-width:768px){

    .badges-page{

        padding:18px 0 36px;

    }

    .badges-hero{

        padding:16px;

        border-radius:16px;

        gap:14px;

    }

    .badges-hero__label{

        font-size:.64rem;

        padding:4px 10px;

    }

    .badges-hero h1{

        font-size:1.35rem;

    }

    .badges-hero p{

        font-size:.80rem;

        line-height:1.5;

    }

    .badges-hero__actions{

        width:100%;

        gap:8px;

    }

    .btn-hero-primary,

    .btn-hero-secondary{

        flex:1;

        min-width:150px;

    }

}

/*==================================================
SMALL MOBILE
==================================================*/

@media (max-width:480px){

    .badges-hero{

        padding:14px;

    }

    .badges-hero h1{

        font-size:1.18rem;

    }

    .badges-hero__actions{

        flex-direction:column;

    }

    .btn-hero-primary,

    .btn-hero-secondary{

        width:100%;

    }

}    


/*==================================================
STATISTICS
==================================================*/

.badges-stats{

    margin-bottom:22px;

}

.badges-stat-card{

    display:flex;

    align-items:center;

    gap:12px;

    height:100%;

    padding:14px;

    background:#fff;

    border:1px solid var(--badges-border);

    border-radius:14px;

    box-shadow:0 2px 8px rgba(15,23,42,.05);

    transition:.25s;

}

.badges-stat-card:hover{

    transform:translateY(-2px);

    box-shadow:0 10px 22px rgba(15,23,42,.08);

}

.badges-stat-icon{

    width:42px;

    height:42px;

    flex-shrink:0;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:12px;

    font-size:20px;

}

.badges-stat-card h3{

    margin:0;

    font-size:1.15rem;

    font-weight:800;

    color:var(--badges-text);

}

.badges-stat-card span{

    display:block;

    margin-top:2px;

    color:var(--badges-muted);

    font-size:.78rem;

}

/*==================================================
SEARCH TOOLBAR
==================================================*/

.badges-toolbar{

    margin-bottom:20px;

}

.badges-search{

    position:relative;

}

.badges-search i{

    position:absolute;

    left:14px;

    top:50%;

    transform:translateY(-50%);

    color:var(--badges-muted);

    font-size:15px;

}

.badges-search .form-control{

    height:40px;

    padding-left:40px;

    border:1px solid var(--badges-border);

    border-radius:10px;

    background:#fff;

    box-shadow:0 2px 8px rgba(15,23,42,.05);

    font-size:.88rem;

}

.badges-search .form-control:focus{

    border-color:var(--badges-primary);

    box-shadow:0 0 0 .18rem rgba(79,70,229,.10);

}

.badges-filter .form-select{

    height:40px;

    border-radius:10px;

    border:1px solid var(--badges-border);

    background:#fff;

    font-size:.84rem;

    font-weight:600;

    box-shadow:0 2px 8px rgba(15,23,42,.05);

}

.badges-filter .form-select:focus{

    border-color:var(--badges-primary);

    box-shadow:0 0 0 .18rem rgba(79,70,229,.10);

}

/*==================================================
BUTTONS
==================================================*/

.badges-search-btn,

.badges-reset-btn{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:6px;

    height:40px;

    padding:0 14px;

    border:none;

    border-radius:10px;

    font-size:.82rem;

    font-weight:700;

    transition:.25s;

}

.badges-search-btn{

    background:linear-gradient(

        135deg,

        var(--badges-primary),

        var(--badges-secondary)

    );

    color:#fff !important;

}

.badges-reset-btn{

    background:#f8fafc;

    color:var(--badges-muted) !important;

    border:1px solid var(--badges-border);

}

.badges-search-btn i,

.badges-reset-btn i{

    color:inherit;

}

.badges-search-btn:hover,

.badges-reset-btn:hover{

    transform:translateY(-2px);

}

/*==================================================
TABLET
==================================================*/

@media(max-width:992px){

    .badges-toolbar{

        margin-bottom:18px;

    }

}

/*==================================================
MOBILE
==================================================*/

@media(max-width:768px){

    .badges-stats .row{

        --bs-gutter-x:.75rem;

        --bs-gutter-y:.75rem;

    }

    .badges-stat-card{

        padding:12px;

    }

    .badges-stat-icon{

        width:38px;

        height:38px;

        font-size:18px;

    }

    .badges-stat-card h3{

        font-size:1rem;

    }

    .badges-stat-card span{

        font-size:.72rem;

    }

    .badges-search .form-control,

    .badges-filter .form-select{

        height:38px;

        font-size:.82rem;

    }

    .badges-search-btn,

    .badges-reset-btn{

        height:38px;

        font-size:.80rem;

        padding:0 12px;

    }

    /* On garde l'affichage horizontal */

    .badges-toolbar .row{

        align-items:center;

    }

    .badges-toolbar .d-flex{

        flex-wrap:nowrap;

    }

}


/*==================================================
BADGE CARD
==================================================*/

.badge-premium-card{

    position:relative;

    display:flex;

    flex-direction:column;

    height:100%;

    padding:18px;

    background:#fff;

    border:1px solid var(--badges-border);

    border-radius:18px;

    box-shadow:0 4px 14px rgba(15,23,42,.05);

    transition:.25s;

    overflow:hidden;

}

.badge-premium-card::before{

    content:"";

    position:absolute;

    top:14px;

    right:14px;

    width:70px;

    height:70px;

    border-radius:50%;

    background:rgba(79,70,229,.04);

}

.badge-premium-card:hover{

    transform:translateY(-3px);

    box-shadow:0 14px 30px rgba(15,23,42,.08);

}

/*==================================================
ICON
==================================================*/

.badge-premium-icon{

    position:relative;

    z-index:2;

    width:54px;

    height:54px;

    margin:0 auto 14px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:16px;

    background:

    linear-gradient(

        135deg,

        #fff7d8,

        #ffe8a3

    );

    font-size:30px;

    box-shadow:

    inset 0 2px 5px rgba(255,255,255,.70),

    0 6px 16px rgba(255,193,7,.18);

    transition:.25s;

}

.badge-premium-card:hover .badge-premium-icon{

    transform:rotate(-6deg) scale(1.06);

}

/*==================================================
TITLE
==================================================*/

.badge-premium-title{

    position:relative;

    z-index:2;

    margin:0 0 10px;

    text-align:center;

    font-size:1.05rem;

    font-weight:700;

    line-height:1.35;

    color:var(--badges-text);

}

/*==================================================
DESCRIPTION
==================================================*/

.badge-premium-description{

    position:relative;

    z-index:2;

    margin-bottom:14px;

    color:var(--badges-muted);

    font-size:.84rem;

    line-height:1.5;

    text-align:center;

    flex:1;

}

/*==================================================
RECENT MEMBERS
==================================================*/

.badge-premium-members{

    position:relative;

    z-index:2;

    display:flex;

    justify-content:center;

    align-items:center;

    margin-bottom:16px;

}

.badge-premium-avatar,

.badge-premium-more{

    width:36px;

    height:36px;

    border-radius:50%;

    border:2px solid #fff;

    margin-left:-8px;

}

.badge-premium-avatar:first-child{

    margin-left:0;

}

.badge-premium-avatar{

    object-fit:cover;

    box-shadow:0 3px 8px rgba(15,23,42,.10);

}

.badge-premium-more{

    display:flex;

    align-items:center;

    justify-content:center;

    background:#eef2ff;

    color:var(--badges-primary);

    font-size:.72rem;

    font-weight:700;

}

/*==================================================
FOOTER
==================================================*/

.badge-premium-footer{

    position:relative;

    z-index:2;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:10px;

    margin-bottom:16px;

    padding:12px 0;

    border-top:1px solid var(--badges-border);

    border-bottom:1px solid var(--badges-border);

}

.badge-premium-members-count,

.badge-premium-date{

    display:flex;

    align-items:center;

    gap:6px;

    color:var(--badges-muted);

    font-size:.76rem;

}

.badge-premium-members-count i,

.badge-premium-date i{

    color:var(--badges-primary);

    font-size:14px;

}

/*==================================================
BUTTON
==================================================*/

.badge-premium-button{

    position:relative;

    z-index:2;

    display:flex;

    align-items:center;

    justify-content:center;

    width:100%;

    height:40px;

    border-radius:10px;

    text-decoration:none;

    font-size:.82rem;

    font-weight:700;

    color:#fff;

    background:

    linear-gradient(

        135deg,

        var(--badges-primary),

        var(--badges-secondary)

    );

    transition:.25s;

}

.badge-premium-button:hover{

    color:#fff;

    transform:translateY(-2px);

}

/*==================================================
CARD RESPONSIVE
==================================================*/

@media(max-width:768px){

    .badge-premium-card{

        padding:16px;

    }

    .badge-premium-footer{

        flex-direction:row;

    }

    .badge-premium-title{

        font-size:1rem;

    }

    .badge-premium-description{

        font-size:.80rem;

    }

}

@media(max-width:480px){

    .badge-premium-card{

        padding:15px;

    }

    .badge-premium-icon{

        width:48px;

        height:48px;

        font-size:26px;

    }

    .badge-premium-avatar,

    .badge-premium-more{

        width:32px;

        height:32px;

    }

}


/*==================================================
PREMIUM ANIMATIONS
==================================================*/

@keyframes badgeCardFade{

    from{

        opacity:0;

        transform:translateY(18px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.badge-premium-card{

    animation:badgeCardFade .45s ease both;

}

.badge-premium-card:nth-child(2){

    animation-delay:.04s;

}

.badge-premium-card:nth-child(3){

    animation-delay:.08s;

}

.badge-premium-card:nth-child(4){

    animation-delay:.12s;

}

.badge-premium-card:nth-child(5){

    animation-delay:.16s;

}

.badge-premium-card:nth-child(6){

    animation-delay:.20s;

}

/*==================================================
HOVER EFFECTS
==================================================*/

.badge-premium-card{

    cursor:default;

}

.badge-premium-card:hover{

    border-color:rgba(79,70,229,.18);

}

.badge-premium-card:hover .badge-premium-title{

    color:var(--badges-primary);

}

.badge-premium-button{

    overflow:hidden;

}

.badge-premium-button::before{

    content:"";

    position:absolute;

    top:0;

    left:-120%;

    width:120%;

    height:100%;

    background:

    linear-gradient(

        90deg,

        transparent,

        rgba(255,255,255,.30),

        transparent

    );

    transition:.6s;

}

.badge-premium-button:hover::before{

    left:120%;

}

.badges-stat-card,

.badges-search .form-control,

.badges-filter .form-select,

.badges-search-btn,

.badges-reset-btn{

    transition:.25s;

}

/*==================================================
PAGINATION
==================================================*/

.badges-pagination-wrapper{

    margin-top:28px;

}

.badges-pagination{

    gap:8px;

}

.badges-pagination .page-link{

    min-width:38px;

    height:38px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:none;

    border-radius:10px;

    background:#fff;

    color:var(--badges-muted);

    font-size:.82rem;

    font-weight:700;

    box-shadow:0 2px 8px rgba(15,23,42,.05);

}

.badges-pagination .page-item.active .page-link{

    color:#fff;

    background:

    linear-gradient(

        135deg,

        var(--badges-primary),

        var(--badges-secondary)

    );

}

.badges-pagination .page-link:hover{

    color:var(--badges-primary);

    background:#eef2ff;

}

.badges-pagination .page-item.active .page-link:hover{

    color:#fff;

}

/*==================================================
TABLET
==================================================*/

@media(max-width:992px){

    .badges-page{

        padding:22px 0 40px;

    }

    .badges-pagination-wrapper{

        margin-top:24px;

    }

}

/*==================================================
PHONE
==================================================*/

@media(max-width:768px){

    .badges-page{

        padding:18px 0 32px;

    }

    .badge-premium-card{

        border-radius:16px;

    }

    .badges-pagination{

        gap:6px;

    }

    .badges-pagination .page-link{

        min-width:36px;

        height:36px;

        padding:0 10px;

        font-size:.78rem;

    }

}

/*==================================================
SMALL PHONE
==================================================*/

@media(max-width:480px){

    .badges-page .container{

        padding-left:12px;

        padding-right:12px;

    }

    .badges-pagination{

        flex-wrap:wrap;

        justify-content:center;

    }

    .badges-pagination .page-link{

        min-width:34px;

        height:34px;

        border-radius:8px;

        font-size:.75rem;

    }

}

/*==================================================
PERFORMANCE
==================================================*/

.badge-premium-card,

.badges-stat-card,

.badges-search-btn,

.badges-reset-btn,

.badge-premium-button{

    will-change:transform;

}

/*==================================================
SCROLLBAR
==================================================*/

::-webkit-scrollbar{

    width:8px;

    height:8px;

}

::-webkit-scrollbar-track{

    background:#edf2f7;

}

::-webkit-scrollbar-thumb{

    background:#c7d2fe;

    border-radius:999px;

}

::-webkit-scrollbar-thumb:hover{

    background:#a5b4fc;

}
    