:root {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #eef2f7;
    background: #0b0f14;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top,
            #18202b 0,
            #0b0f14 45%
        );
}

.page {
    width:
        min(
            1500px,
            calc(100% - 32px)
        );

    margin: 0 auto;

    padding:
        36px 0 60px;
}

.hero {
    display: flex;

    gap: 28px;

    justify-content:
        space-between;

    align-items: end;

    margin-bottom: 28px;
}

.eyebrow {
    margin:
        0 0 4px;

    color: #9ba9ba;

    font-size: 13px;

    text-transform:
        uppercase;

    letter-spacing:
        .12em;
}

h1 {
    margin: 0;

    font-size:
        clamp(
            32px,
            5vw,
            54px
        );
}

.subtitle {
    margin:
        8px 0 0;

    color:
        #aeb8c5;
}

.stats {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}

.stats div {
    min-width:
        104px;

    padding:
        12px 16px;

    border:
        1px solid #273241;

    border-radius:
        14px;

    background:
        rgba(
            20,
            27,
            36,
            .86
        );
}

.stats strong,
.stats span {
    display: block;
}

.stats strong {
    font-size: 22px;
}

.stats span {
    color: #9aa6b4;
    font-size: 12px;
}

.toolbar {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        160px;

    gap: 12px;

    margin-bottom:
        14px;
}

.search-wrap,
.select-wrap {
    display: grid;

    gap: 6px;

    color: #98a5b4;

    font-size: 12px;
}

input,
select {
    width: 100%;

    border:
        1px solid #2b3746;

    border-radius:
        12px;

    padding:
        13px 14px;

    background:
        #111821;

    color:
        #f5f7fa;

    outline:
        none;
}

input:focus,
select:focus {
    border-color:
        #70839a;

    box-shadow:
        0 0 0 3px
        rgba(
            112,
            131,
            154,
            .14
        );
}

.sync-status {
    margin:
        0 0 14px;

    padding:
        10px 12px;

    border:
        1px solid #324156;

    border-radius:
        10px;

    color:
        #c6d1dd;

    background:
        #111923;

    font-size:
        13px;
}

.table-card {
    overflow: hidden;

    border:
        1px solid #242f3d;

    border-radius:
        16px;

    background:
        rgba(
            15,
            21,
            29,
            .94
        );
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse:
        collapse;

    min-width:
        900px;
}

th,
td {
    padding:
        12px 14px;

    border-bottom:
        1px solid #202a36;

    text-align: left;

    vertical-align:
        middle;
}

th {
    position: sticky;

    top: 0;

    z-index: 2;

    background:
        #151d27;

    color:
        #aeb8c6;

    font-size:
        12px;

    text-transform:
        uppercase;

    letter-spacing:
        .04em;
}

tbody tr:hover {
    background:
        #121b25;
}

td:nth-child(5),
th:nth-child(5) {
    text-align:
        center;
}

.thumb {
    width: 62px;

    height: 86px;

    object-fit:
        cover;

    border-radius:
        6px;

    display: block;

    cursor:
        zoom-in;

    background:
        #202833;
}

.no-image {
    width: 62px;

    height: 86px;

    display: grid;

    place-items:
        center;

    border-radius:
        6px;

    background:
        #202833;

    color:
        #7e8b99;

    font-size:
        10px;

    text-align:
        center;
}

.name {
    font-weight: 700;
}

.meta {
    color:
        #8e9aa8;

    font-size:
        12px;

    margin-top:
        3px;
}

.badge {
    display:
        inline-flex;

    align-items:
        center;

    padding:
        5px 9px;

    border:
        1px solid #334154;

    border-radius:
        999px;

    font-size:
        12px;
}

.empty {
    padding: 32px;

    text-align:
        center;

    color:
        #9aa6b3;
}

dialog {
    border:
        1px solid #36465a;

    border-radius:
        16px;

    padding:
        18px;

    background:
        #0d131b;

    box-shadow:
        0 24px 80px
        rgba(
            0,
            0,
            0,
            .55
        );
}

dialog::backdrop {
    background:
        rgba(
            0,
            0,
            0,
            .78
        );
}

dialog img {
    display: block;

    max-width:
        min(
            90vw,
            520px
        );

    max-height:
        82vh;

    border-radius:
        14px;
}

.close {
    position:
        absolute;

    top: 4px;

    right: 6px;

    width: 34px;

    height: 34px;

    border: 0;

    border-radius:
        50%;

    background:
        rgba(
            0,
            0,
            0,
            .75
        );

    color: white;

    font-size: 24px;

    cursor: pointer;
}

@media (
    max-width: 760px
) {

    .page {
        width:
            min(
                100% - 18px,
                1500px
            );

        padding-top:
            20px;
    }

    .hero {
        align-items:
            start;

        flex-direction:
            column;
    }

    .toolbar {
        grid-template-columns:
            1fr;
    }

    .stats {
        width:
            100%;
    }

    .stats div {
        flex: 1;
    }
}


.price {
    white-space: nowrap;
    text-align: right;
    font-weight: 700;
}

th:last-child {
    text-align: right;
}


/* ==========================================================
   TRI DES COLONNES
   ========================================================== */

.sort-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;

    color: inherit;
    font: inherit;
    font-weight: inherit;

    text-transform: inherit;
    letter-spacing: inherit;

    cursor: pointer;

    transition:
        color .15s ease;
}

.sort-button:hover {
    color: #ffffff;
}

.sort-button.active {
    color: #ffffff;
}

.sort-arrow {
    display: inline-block;

    min-width: 10px;

    font-size: 9px;

    line-height: 1;
}

.sort-button-right {
    width: 100%;
    justify-content: flex-end;
}

