/* ============================================================
 *  Lud'Oléron — Catalogue des jeux
 *  Polices et couleurs de texte héritées du thème ; seule la
 *  couleur d'accent vient du shortcode (--ljx-accent).
 * ============================================================ */

.ljx {
    --ljx-accent: #555;
    --ljx-bord: #dcdcdc;
    max-width: 1000px;
    margin: 0 auto 2em;
    text-align: left;
}

/* ── Filtres ─────────────────────────────────────────────── */
.ljx-filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: flex-end;
    margin-bottom: 1em;
}
.ljx-champ {
    display: flex;
    flex-direction: column;
    flex: 0 1 140px;
}
.ljx-champ-nom {
    flex: 1 1 260px;
}
.ljx-champ label {
    font-size: .85em;
    margin-bottom: 4px;
}
.ljx input,
.ljx select {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--ljx-bord);
    border-radius: 4px;
    font: inherit;
    background: #fff;
}
.ljx input:focus,
.ljx select:focus {
    outline: none;
    border-color: var(--ljx-accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--ljx-accent) 25%, transparent);
}

.ljx-compte {
    font-size: .9em;
    margin: 0 0 .5em;
    opacity: .8;
}

/* ── Tableau ─────────────────────────────────────────────── */
.ljx-tableau {
    overflow-x: auto;
}
.ljx table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.ljx th {
    text-align: left;
    font-weight: 600;
    padding: 8px 10px;
    border-bottom: 2px solid var(--ljx-accent);
    white-space: nowrap;
}
.ljx td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--ljx-bord);
    vertical-align: top;
}
.ljx td:nth-child(2),
.ljx td:nth-child(3),
.ljx td:nth-child(4) {
    white-space: nowrap;
}
.ljx tr.ljx-sorti td:last-child {
    font-style: italic;
    opacity: .75;
}

/* ── Afficher plus ───────────────────────────────────────── */
.ljx-suite {
    text-align: center;
    margin-top: 1em;
}
.ljx-plus {
    padding: 8px 18px;
    border: 1px solid var(--ljx-accent);
    border-radius: 4px;
    background: var(--ljx-accent);
    color: #fff;
    font: inherit;
    cursor: pointer;
}
.ljx-plus:hover {
    filter: brightness(.92);
}

/* ── Petits écrans : une carte par jeu ───────────────────── */
@media (max-width: 640px) {
    .ljx thead {
        display: none;
    }
    .ljx table,
    .ljx tbody,
    .ljx tr,
    .ljx td {
        display: block;
        width: 100%;
    }
    .ljx tr {
        padding: 8px 0;
        border-bottom: 1px solid var(--ljx-bord);
    }
    .ljx td {
        border: 0;
        padding: 2px 0;
        white-space: normal !important;
    }
    .ljx td:first-child {
        font-weight: 600;
    }
    .ljx td:not(:first-child)::before {
        content: attr(data-etiquette) " : ";
        opacity: .7;
    }
}
