/**
 * Tableaux → cartes sur mobile (≤ 767px).
 * table--cards + table-wrap--cards sur le conteneur.
 * Variantes « classement » : bandeau tête (# · titre · métrique) + lignes détail pleine largeur.
 */

@media (max-width: 767px) {
    .table-wrap--cards,
    .table-wrap:has(.table--cards) {
        overflow: visible;
        max-height: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .table--cards {
        display: block;
        width: 100%;
        border: none;
        background: transparent;
        font-size: 0.9rem;
    }

    .table--cards thead {
        display: none;
    }

    .table--cards tbody {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        width: 100%;
        max-width: 100%;
    }

    .table--cards tbody td[colspan] {
        display: block;
        grid-template-columns: 1fr;
        padding: 0.75rem 1rem;
        text-align: center;
    }

    .table--cards tbody td[colspan]::before {
        display: none;
    }

    /* Cartes « classement » : grille pleine largeur */
    .table-simple--leaderboard.table--cards tbody tr,
    .table-simple--clubs.table--cards tbody tr,
    .table-simple--denouncers.table--cards tbody tr,
    .table-simple--denouncements.table--cards tbody tr,
    .table-simple--crest-preview.table--cards tbody tr,
    .table-simple--challenges.table--cards tbody tr,
    .table-simple--account-crests.table--cards tbody tr {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--bg-elevated);
        box-shadow: var(--shadow);
    }

    /* max-width desktop héritées */
    .table-simple--rank.table--cards .lb-col-pseudo,
    .table-simple--rank.table--cards .lb-col-place,
    .table-simple--rank.table--cards .lb-col-tier,
    .table-simple--rank.table--cards .lb-tier-cell {
        max-width: none !important;
    }

    .panel--rank .table-wrap--cards,
    .panel--wide .table-wrap--cards {
        width: 100%;
    }

    /* —— Classement des crêtes —— */
    .table-simple--leaderboard.table--cards tbody tr {
        overflow: visible;
    }

    .table-simple--leaderboard.table--cards tbody td:nth-child(1),
    .table-simple--leaderboard.table--cards tbody td:nth-child(2),
    .table-simple--leaderboard.table--cards tbody td:nth-child(6) {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        grid-row: 1;
        box-sizing: border-box;
        padding: 0.75rem 0.65rem;
        margin: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        background: linear-gradient(180deg, rgba(30, 64, 175, 0.06), transparent);
        max-width: none !important;
    }

    .table-simple--leaderboard.table--cards tbody td:nth-child(1)::before,
    .table-simple--leaderboard.table--cards tbody td:nth-child(2)::before,
    .table-simple--leaderboard.table--cards tbody td:nth-child(6)::before {
        display: none;
    }

    .table-simple--leaderboard.table--cards tbody td:nth-child(1) {
        grid-column: 1;
        font-weight: 800;
        font-size: 1.15rem;
        color: var(--accent);
        padding-left: 1rem;
        padding-right: 0;
    }

    .table-simple--leaderboard.table--cards tbody td:nth-child(1)::after {
        content: '·';
        margin-left: 0.2rem;
        color: var(--muted);
        font-weight: 600;
    }

    .table-simple--leaderboard.table--cards tbody td:nth-child(2) {
        grid-column: 2;
        min-width: 0;
        font-weight: 700;
        font-size: 1.05rem;
        padding-left: 0;
        padding-right: 0.35rem;
    }

    .table-simple--leaderboard.table--cards tbody td:nth-child(2) .lb-pseudo-cell {
        min-width: 0;
        width: 100%;
    }

    .table-simple--leaderboard.table--cards tbody td:nth-child(6) {
        grid-column: 3;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        padding-right: 1rem;
        padding-left: 0.35rem;
        text-align: right;
        white-space: nowrap;
    }

    .table-simple--leaderboard.table--cards tbody td:nth-child(6)::before {
        content: 'Score';
        display: block;
        font-size: 0.62rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--muted);
        margin-bottom: 0.1rem;
    }

    .table-simple--leaderboard.table--cards tbody td:nth-child(6) strong {
        font-size: 1.2rem;
        font-weight: 800;
    }

    .table-simple--leaderboard.table--cards tbody td:nth-child(3),
    .table-simple--leaderboard.table--cards tbody td:nth-child(4),
    .table-simple--leaderboard.table--cards tbody td:nth-child(5) {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: 6.75rem minmax(0, 1fr);
        align-items: start;
        gap: 0.2rem 0.75rem;
        width: 100%;
        box-sizing: border-box;
        padding: 0.45rem 1rem;
        margin: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        max-width: none !important;
    }

    .table-simple--leaderboard.table--cards tbody td:nth-child(3) { grid-row: 2; }
    .table-simple--leaderboard.table--cards tbody td:nth-child(4) { grid-row: 3; }
    .table-simple--leaderboard.table--cards tbody td:nth-child(5) { grid-row: 4; }

    .table-simple--leaderboard.table--cards tbody td:nth-child(3)::before { content: 'Né à'; }
    .table-simple--leaderboard.table--cards tbody td:nth-child(4)::before { content: 'Vit à'; }
    .table-simple--leaderboard.table--cards tbody td:nth-child(5)::before { content: 'Club supporté'; }

    .table-simple--leaderboard.table--cards tbody td:nth-child(3)::before,
    .table-simple--leaderboard.table--cards tbody td:nth-child(4)::before,
    .table-simple--leaderboard.table--cards tbody td:nth-child(5)::before,
    .table-simple--leaderboard.table--cards tbody td:nth-child(7)::before {
        font-size: 0.68rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--muted);
        line-height: 1.35;
    }

    .table-simple--leaderboard.table--cards tbody td:nth-child(7) {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        grid-column: 1 / -1;
        grid-row: 5;
        width: 100%;
        box-sizing: border-box;
        padding: 0.65rem 1rem 0.85rem;
        margin: 0;
        border: none;
        max-width: none !important;
    }

    .table-simple--leaderboard.table--cards tbody td:nth-child(7)::before {
        content: 'Appellation';
        display: block;
    }

    .table-simple--leaderboard.table--cards tbody td.lb-tier-cell {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 0.65rem;
        width: 100%;
    }

    .table-simple--leaderboard.table--cards tbody td.lb-tier-cell .lb-tier-copy {
        flex: 1 1 auto;
        min-width: 0;
    }

    .table-simple--leaderboard.table--cards tbody td.lb-tier-cell .lb-tier-label {
        line-height: 1.3;
    }

    /* —— Classement des délateurs (all time) —— */
    .table-simple--denouncers.table--cards tbody td:nth-child(1),
    .table-simple--denouncers.table--cards tbody td:nth-child(2),
    .table-simple--denouncers.table--cards tbody td:nth-child(7) {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        grid-row: 1;
        box-sizing: border-box;
        padding: 0.75rem 0.65rem;
        margin: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        background: linear-gradient(180deg, rgba(180, 83, 9, 0.08), transparent);
        max-width: none !important;
    }

    .table-simple--denouncers.table--cards tbody td:nth-child(1)::before,
    .table-simple--denouncers.table--cards tbody td:nth-child(2)::before,
    .table-simple--denouncers.table--cards tbody td:nth-child(7)::before {
        display: none;
    }

    .table-simple--denouncers.table--cards tbody td:nth-child(1) {
        grid-column: 1;
        font-weight: 800;
        font-size: 1.15rem;
        color: var(--accent);
        padding-left: 1rem;
        padding-right: 0;
    }

    .table-simple--denouncers.table--cards tbody td:nth-child(1)::after {
        content: '·';
        margin-left: 0.2rem;
        color: var(--muted);
        font-weight: 600;
    }

    .table-simple--denouncers.table--cards tbody td:nth-child(2) {
        grid-column: 2;
        min-width: 0;
        font-weight: 700;
        font-size: 1.05rem;
        padding-left: 0;
        padding-right: 0.35rem;
    }

    .table-simple--denouncers.table--cards tbody td:nth-child(2) .lb-pseudo-cell {
        min-width: 0;
        width: 100%;
    }

    .table-simple--denouncers.table--cards tbody td:nth-child(7) {
        grid-column: 3;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        padding-right: 1rem;
        padding-left: 0.35rem;
        text-align: right;
        white-space: nowrap;
    }

    .table-simple--denouncers.table--cards tbody td:nth-child(7)::before {
        content: 'Score footix arraché';
        display: block;
        font-size: 0.58rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--muted);
        margin-bottom: 0.1rem;
        max-width: 6.5rem;
        text-align: right;
        line-height: 1.2;
    }

    .table-simple--denouncers.table--cards tbody td:nth-child(7) .dn-delator-score__value {
        font-size: 1.25rem;
        font-weight: 800;
    }

    .table-simple--denouncers.table--cards tbody td:nth-child(7) .dn-delator-score__meta {
        font-size: 0.62rem;
    }

    .table-simple--denouncers.table--cards tbody td:nth-child(3),
    .table-simple--denouncers.table--cards tbody td:nth-child(4),
    .table-simple--denouncers.table--cards tbody td:nth-child(5),
    .table-simple--denouncers.table--cards tbody td:nth-child(6) {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: 6.75rem minmax(0, 1fr);
        align-items: start;
        gap: 0.2rem 0.75rem;
        width: 100%;
        box-sizing: border-box;
        padding: 0.45rem 1rem;
        margin: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        max-width: none !important;
    }

    .table-simple--denouncers.table--cards tbody td:nth-child(3) { grid-row: 2; }
    .table-simple--denouncers.table--cards tbody td:nth-child(4) { grid-row: 3; }
    .table-simple--denouncers.table--cards tbody td:nth-child(5) { grid-row: 4; }
    .table-simple--denouncers.table--cards tbody td:nth-child(6) { grid-row: 5; }

    .table-simple--denouncers.table--cards tbody td:nth-child(3)::before { content: 'Né à'; }
    .table-simple--denouncers.table--cards tbody td:nth-child(4)::before { content: 'Vit à'; }
    .table-simple--denouncers.table--cards tbody td:nth-child(5)::before { content: 'Club'; }
    .table-simple--denouncers.table--cards tbody td:nth-child(6)::before { content: 'Défis envoyés'; }

    /* —— Classement des clubs —— */
    .table-simple--clubs.table--cards tbody td:nth-child(1),
    .table-simple--clubs.table--cards tbody td:nth-child(2),
    .table-simple--clubs.table--cards tbody td:nth-child(3) {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        grid-row: 1;
        box-sizing: border-box;
        padding: 0.75rem 0.65rem;
        margin: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        background: linear-gradient(180deg, rgba(30, 64, 175, 0.06), transparent);
        max-width: none !important;
    }

    .table-simple--clubs.table--cards tbody td:nth-child(1)::before,
    .table-simple--clubs.table--cards tbody td:nth-child(2)::before,
    .table-simple--clubs.table--cards tbody td:nth-child(3)::before {
        display: none;
    }

    .table-simple--clubs.table--cards tbody td:nth-child(1) {
        grid-column: 1;
        font-weight: 800;
        font-size: 1.15rem;
        color: var(--accent);
        padding-left: 1rem;
        padding-right: 0;
    }

    .table-simple--clubs.table--cards tbody td:nth-child(1)::after {
        content: '·';
        margin-left: 0.2rem;
        color: var(--muted);
        font-weight: 600;
    }

    .table-simple--clubs.table--cards tbody td:nth-child(2) {
        grid-column: 2;
        min-width: 0;
        font-weight: 700;
        font-size: 1.05rem;
        padding-left: 0;
        padding-right: 0.35rem;
    }

    .table-simple--clubs.table--cards tbody td:nth-child(3) {
        grid-column: 3;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        padding-right: 1rem;
        padding-left: 0.35rem;
        text-align: right;
        white-space: nowrap;
    }

    .table-simple--clubs.table--cards tbody td:nth-child(3)::before {
        content: 'Plaident coupable';
        display: block;
        font-size: 0.62rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--muted);
        margin-bottom: 0.1rem;
    }

    .table-simple--clubs.table--cards tbody td:nth-child(3) strong {
        font-size: 1.2rem;
        font-weight: 800;
    }

    .table-simple--clubs.table--cards tbody td:nth-child(4) {
        display: grid;
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: 6.75rem minmax(0, 1fr);
        align-items: start;
        gap: 0.2rem 0.75rem;
        width: 100%;
        box-sizing: border-box;
        padding: 0.55rem 1rem 0.85rem;
        margin: 0;
        border: none;
        max-width: none !important;
    }

    .table-simple--clubs.table--cards tbody td:nth-child(4)::before {
        content: 'Ø crête plaidée';
        font-size: 0.68rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--muted);
        line-height: 1.35;
    }

    /* —— Registre des dénonciations —— */
    .table-simple--denouncements.table--cards tbody td:nth-child(1),
    .table-simple--denouncements.table--cards tbody td:nth-child(6) {
        display: flex;
        align-items: center;
        grid-row: 1;
        box-sizing: border-box;
        padding: 0.75rem 1rem;
        margin: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        background: linear-gradient(180deg, rgba(30, 64, 175, 0.06), transparent);
        max-width: none !important;
    }

    .table-simple--denouncements.table--cards tbody td:nth-child(1)::before,
    .table-simple--denouncements.table--cards tbody td:nth-child(6)::before {
        display: none;
    }

    .table-simple--denouncements.table--cards tbody td:nth-child(1) {
        grid-column: 1 / 3;
        font-weight: 700;
        font-size: 1.05rem;
        color: var(--text);
        padding-right: 0.5rem;
    }

    .table-simple--denouncements.table--cards tbody td:nth-child(6) {
        grid-column: 3;
        justify-content: flex-end;
        padding-left: 0.5rem;
    }

    .table-simple--denouncements.table--cards tbody td:nth-child(2),
    .table-simple--denouncements.table--cards tbody td:nth-child(3),
    .table-simple--denouncements.table--cards tbody td:nth-child(4) {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: 6.75rem minmax(0, 1fr);
        align-items: start;
        gap: 0.2rem 0.75rem;
        width: 100%;
        box-sizing: border-box;
        padding: 0.45rem 1rem;
        margin: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        max-width: none !important;
    }

    .table-simple--denouncements.table--cards tbody td:nth-child(2) { grid-row: 2; }
    .table-simple--denouncements.table--cards tbody td:nth-child(3) { grid-row: 3; }
    .table-simple--denouncements.table--cards tbody td:nth-child(4) { grid-row: 4; }

    .table-simple--denouncements.table--cards tbody td:nth-child(2)::before { content: 'Naissance'; }
    .table-simple--denouncements.table--cards tbody td:nth-child(3)::before { content: 'Vit à'; }
    .table-simple--denouncements.table--cards tbody td:nth-child(4)::before { content: 'Club supporté'; }

    .table-simple--denouncements.table--cards tbody td:nth-child(2)::before,
    .table-simple--denouncements.table--cards tbody td:nth-child(3)::before,
    .table-simple--denouncements.table--cards tbody td:nth-child(4)::before,
    .table-simple--denouncements.table--cards tbody td:nth-child(5)::before {
        font-size: 0.68rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--muted);
        line-height: 1.35;
    }

    .table-simple--denouncements.table--cards tbody td:nth-child(5) {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        grid-column: 1 / -1;
        grid-row: 5;
        width: 100%;
        box-sizing: border-box;
        padding: 0.65rem 1rem 0.85rem;
        margin: 0;
        border: none;
        max-width: none !important;
    }

    .table-simple--denouncements.table--cards tbody td:nth-child(5)::before {
        content: 'Niveau';
        display: block;
    }

    .table-simple--denouncements.table--cards tbody td:nth-child(5) .lb-tier-cell,
    .table-simple--denouncements.table--cards tbody td:nth-child(5) .dn-tier-cell__inner,
    .table-simple--denouncements.table--cards tbody td:nth-child(5) .dn-tier-stack,
    .table-simple--denouncements.table--cards tbody td:nth-child(5) .dn-tier-stack__final {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.65rem;
        width: 100%;
        max-width: none;
    }

    .table-simple--denouncements.table--cards tbody td:nth-child(5) .dn-tier-stack {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    /* —— Aperçu crête (défi) —— */
    .table-simple--crest-preview.table--cards tbody td:nth-child(1),
    .table-simple--crest-preview.table--cards tbody td:nth-child(5) {
        display: flex;
        align-items: center;
        grid-row: 1;
        box-sizing: border-box;
        padding: 0.75rem 0.65rem;
        margin: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        background: linear-gradient(180deg, rgba(30, 64, 175, 0.06), transparent);
        max-width: none !important;
    }

    .table-simple--crest-preview.table--cards tbody td:nth-child(1)::before,
    .table-simple--crest-preview.table--cards tbody td:nth-child(5)::before {
        display: none;
    }

    .table-simple--crest-preview.table--cards tbody td:nth-child(1) {
        grid-column: 1 / 3;
        min-width: 0;
        font-weight: 700;
        font-size: 1.05rem;
        padding-left: 1rem;
        padding-right: 0.5rem;
    }

    .table-simple--crest-preview.table--cards tbody td:nth-child(5) {
        grid-column: 3;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        padding-right: 1rem;
        padding-left: 0.35rem;
        text-align: right;
        white-space: nowrap;
    }

    .table-simple--crest-preview.table--cards tbody td:nth-child(5)::before {
        content: 'Score';
        display: block;
        font-size: 0.62rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--muted);
        margin-bottom: 0.1rem;
    }

    .table-simple--crest-preview.table--cards tbody td:nth-child(5) strong {
        font-size: 1.2rem;
        font-weight: 800;
    }

    .table-simple--crest-preview.table--cards tbody td:nth-child(2),
    .table-simple--crest-preview.table--cards tbody td:nth-child(3),
    .table-simple--crest-preview.table--cards tbody td:nth-child(4) {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: 6.75rem minmax(0, 1fr);
        align-items: start;
        gap: 0.2rem 0.75rem;
        width: 100%;
        box-sizing: border-box;
        padding: 0.45rem 1rem;
        margin: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        max-width: none !important;
    }

    .table-simple--crest-preview.table--cards tbody td:nth-child(2) { grid-row: 2; }
    .table-simple--crest-preview.table--cards tbody td:nth-child(3) { grid-row: 3; }
    .table-simple--crest-preview.table--cards tbody td:nth-child(4) { grid-row: 4; }

    .table-simple--crest-preview.table--cards tbody td:nth-child(2)::before { content: 'Né à'; }
    .table-simple--crest-preview.table--cards tbody td:nth-child(3)::before { content: 'Vit à'; }
    .table-simple--crest-preview.table--cards tbody td:nth-child(4)::before { content: 'Club supporté'; }

    .table-simple--crest-preview.table--cards tbody td:nth-child(2)::before,
    .table-simple--crest-preview.table--cards tbody td:nth-child(3)::before,
    .table-simple--crest-preview.table--cards tbody td:nth-child(4)::before,
    .table-simple--crest-preview.table--cards tbody td:nth-child(6)::before {
        font-size: 0.68rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--muted);
        line-height: 1.35;
    }

    .table-simple--crest-preview.table--cards tbody td:nth-child(6) {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        grid-column: 1 / -1;
        grid-row: 5;
        width: 100%;
        box-sizing: border-box;
        padding: 0.65rem 1rem 0.85rem;
        margin: 0;
        border: none;
        max-width: none !important;
    }

    .table-simple--crest-preview.table--cards tbody td:nth-child(6)::before {
        content: 'Appellation';
        display: block;
    }

    .table-simple--crest-preview.table--cards tbody td.lb-tier-cell {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 0.65rem;
        width: 100%;
    }

    /* —— Mes défis (compte) —— */
    .table-simple--challenges.table--cards tbody td:nth-child(1),
    .table-simple--challenges.table--cards tbody td:nth-child(2),
    .table-simple--challenges.table--cards tbody td:nth-child(7) {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        grid-row: 1;
        box-sizing: border-box;
        padding: 0.75rem 0.65rem;
        margin: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        background: linear-gradient(180deg, rgba(30, 64, 175, 0.06), transparent);
        max-width: none !important;
    }

    .table-simple--challenges.table--cards tbody td:nth-child(1)::before,
    .table-simple--challenges.table--cards tbody td:nth-child(2)::before,
    .table-simple--challenges.table--cards tbody td:nth-child(7)::before {
        display: none;
    }

    .table-simple--challenges.table--cards tbody td:nth-child(1) {
        grid-column: 1;
        font-weight: 700;
        font-size: 0.9rem;
        color: var(--muted);
        padding-left: 1rem;
        padding-right: 0;
        white-space: nowrap;
    }

    .table-simple--challenges.table--cards tbody td:nth-child(1)::after {
        content: '·';
        margin-left: 0.2rem;
        color: var(--muted);
        font-weight: 600;
    }

    .table-simple--challenges.table--cards tbody td:nth-child(2) {
        grid-column: 2;
        min-width: 0;
        font-weight: 700;
        font-size: 1.05rem;
        padding-left: 0;
        padding-right: 0.35rem;
    }

    .table-simple--challenges.table--cards tbody td:nth-child(7) {
        grid-column: 3;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        padding-right: 1rem;
        padding-left: 0.35rem;
        text-align: right;
        white-space: nowrap;
    }

    .table-simple--challenges.table--cards tbody td:nth-child(7)::before {
        content: 'Score défi';
        display: block;
        font-size: 0.62rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--muted);
        margin-bottom: 0.1rem;
    }

    .table-simple--challenges.table--cards tbody td:nth-child(7) strong {
        font-size: 1.2rem;
        font-weight: 800;
    }

    .table-simple--challenges.table--cards tbody td:nth-child(3),
    .table-simple--challenges.table--cards tbody td:nth-child(4),
    .table-simple--challenges.table--cards tbody td:nth-child(5),
    .table-simple--challenges.table--cards tbody td:nth-child(6),
    .table-simple--challenges.table--cards tbody td:nth-child(9),
    .table-simple--challenges.table--cards tbody td:nth-child(10) {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: 6.75rem minmax(0, 1fr);
        align-items: start;
        gap: 0.2rem 0.75rem;
        width: 100%;
        box-sizing: border-box;
        padding: 0.45rem 1rem;
        margin: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        max-width: none !important;
    }

    .table-simple--challenges.table--cards tbody td:nth-child(3) { grid-row: 2; }
    .table-simple--challenges.table--cards tbody td:nth-child(4) { grid-row: 3; }
    .table-simple--challenges.table--cards tbody td:nth-child(5) { grid-row: 4; }
    .table-simple--challenges.table--cards tbody td:nth-child(6) { grid-row: 5; }
    .table-simple--challenges.table--cards tbody td:nth-child(9) { grid-row: 7; }
    .table-simple--challenges.table--cards tbody td:nth-child(10) { grid-row: 8; }

    .table-simple--challenges.table--cards tbody td:nth-child(3)::before { content: 'Email'; }
    .table-simple--challenges.table--cards tbody td:nth-child(4)::before { content: 'Né à'; }
    .table-simple--challenges.table--cards tbody td:nth-child(5)::before { content: 'Vit à'; }
    .table-simple--challenges.table--cards tbody td:nth-child(6)::before { content: 'Club supporté'; }
    .table-simple--challenges.table--cards tbody td:nth-child(9)::before { content: 'Statut'; }
    .table-simple--challenges.table--cards tbody td:nth-child(10)::before { content: 'Réponse'; }

    .table-simple--challenges.table--cards tbody td:nth-child(3)::before,
    .table-simple--challenges.table--cards tbody td:nth-child(4)::before,
    .table-simple--challenges.table--cards tbody td:nth-child(5)::before,
    .table-simple--challenges.table--cards tbody td:nth-child(6)::before,
    .table-simple--challenges.table--cards tbody td:nth-child(8)::before,
    .table-simple--challenges.table--cards tbody td:nth-child(9)::before,
    .table-simple--challenges.table--cards tbody td:nth-child(10)::before {
        font-size: 0.68rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--muted);
        line-height: 1.35;
    }

    .table-simple--challenges.table--cards tbody td:nth-child(8) {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        grid-column: 1 / -1;
        grid-row: 6;
        width: 100%;
        box-sizing: border-box;
        padding: 0.65rem 1rem;
        margin: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        max-width: none !important;
    }

    .table-simple--challenges.table--cards tbody td:nth-child(8)::before {
        content: 'Appellation';
        display: block;
    }

    .table-simple--challenges.table--cards tbody td:nth-child(10) {
        padding-bottom: 0.85rem;
        border-bottom: none;
    }

    .table-simple--challenges.table--cards tbody td.lb-col-tier {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 0.65rem;
        width: 100%;
    }

    /* —— Mes crêtes (compte) —— */
    .table-simple--account-crests.table--cards .account-crests__col-extra {
        display: grid !important;
    }

    .table-simple--account-crests.table--cards .account-crests__menu-meta {
        display: none !important;
    }

    .table-simple--account-crests.table--cards .lb-tier-label {
        display: block !important;
    }

    .table-simple--account-crests.table--cards tbody td.lb-col-name,
    .table-simple--account-crests.table--cards tbody td:nth-child(6) {
        display: flex;
        align-items: center;
        grid-row: 1;
        box-sizing: border-box;
        padding: 0.75rem 0.65rem;
        margin: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        background: linear-gradient(180deg, rgba(30, 64, 175, 0.06), transparent);
        max-width: none !important;
    }

    .table-simple--account-crests.table--cards tbody td.lb-col-name::before,
    .table-simple--account-crests.table--cards tbody td:nth-child(6)::before {
        display: none;
    }

    .table-simple--account-crests.table--cards tbody td.lb-col-name {
        grid-column: 1 / 3;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        min-width: 0;
        padding-left: 1rem;
        padding-right: 0.5rem;
    }

    .table-simple--account-crests.table--cards tbody td.lb-col-name .account-crests__label {
        font-weight: 700;
        font-size: 1.05rem;
        line-height: 1.25;
    }

    .table-simple--account-crests.table--cards tbody td:nth-child(6) {
        grid-column: 3;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        padding-right: 1rem;
        padding-left: 0.35rem;
        text-align: right;
        white-space: nowrap;
    }

    .table-simple--account-crests.table--cards tbody td:nth-child(6)::before {
        content: 'Score';
        display: block;
        font-size: 0.62rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--muted);
        margin-bottom: 0.1rem;
    }

    .table-simple--account-crests.table--cards tbody td:nth-child(6) strong {
        font-size: 1.2rem;
        font-weight: 800;
    }

    .table-simple--account-crests.table--cards tbody td:nth-child(2),
    .table-simple--account-crests.table--cards tbody td:nth-child(3),
    .table-simple--account-crests.table--cards tbody td:nth-child(4),
    .table-simple--account-crests.table--cards tbody td:nth-child(5) {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: 6.75rem minmax(0, 1fr);
        align-items: start;
        gap: 0.2rem 0.75rem;
        width: 100%;
        box-sizing: border-box;
        padding: 0.45rem 1rem;
        margin: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        max-width: none !important;
    }

    .table-simple--account-crests.table--cards tbody td:nth-child(2) { grid-row: 2; }
    .table-simple--account-crests.table--cards tbody td:nth-child(3) { grid-row: 3; }
    .table-simple--account-crests.table--cards tbody td:nth-child(4) { grid-row: 4; }
    .table-simple--account-crests.table--cards tbody td:nth-child(5) { grid-row: 5; }

    .table-simple--account-crests.table--cards tbody td:nth-child(2)::before { content: 'Date'; }
    .table-simple--account-crests.table--cards tbody td:nth-child(3)::before { content: 'Né à'; }
    .table-simple--account-crests.table--cards tbody td:nth-child(4)::before { content: 'Vit à'; }
    .table-simple--account-crests.table--cards tbody td:nth-child(5)::before { content: 'Club'; }

    .table-simple--account-crests.table--cards tbody td:nth-child(2)::before,
    .table-simple--account-crests.table--cards tbody td:nth-child(3)::before,
    .table-simple--account-crests.table--cards tbody td:nth-child(4)::before,
    .table-simple--account-crests.table--cards tbody td:nth-child(5)::before,
    .table-simple--account-crests.table--cards tbody td:nth-child(7)::before {
        font-size: 0.68rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--muted);
        line-height: 1.35;
    }

    .table-simple--account-crests.table--cards tbody td:nth-child(7) {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        grid-column: 1 / -1;
        grid-row: 6;
        width: 100%;
        box-sizing: border-box;
        padding: 0.65rem 1rem;
        margin: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        max-width: none !important;
    }

    .table-simple--account-crests.table--cards tbody td:nth-child(7)::before {
        content: 'Crête';
        display: block;
    }

    .table-simple--account-crests.table--cards tbody td.lb-col-tier {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 0.65rem;
        width: 100%;
    }

    .table-simple--account-crests.table--cards tbody td.lb-col-menu {
        display: flex;
        justify-content: flex-end;
        grid-column: 1 / -1;
        grid-row: 7;
        width: 100%;
        box-sizing: border-box;
        padding: 0.45rem 1rem 0.75rem;
        margin: 0;
        border: none;
        max-width: none !important;
    }

    .table-simple--account-crests.table--cards tbody td.lb-col-menu::before {
        display: none;
    }

    /* —— Utilitaires communs —— */
    .table--cards .lb-tier-cell {
        flex-wrap: wrap;
        gap: 0.5rem;
        max-width: none;
    }

    .table--cards .lb-tier-mark-wrap {
        flex-shrink: 0;
    }

    .table--cards .lb-pseudo-cell {
        flex-wrap: wrap;
    }

    .table--cards .dn-tier-cell__inner,
    .table--cards .dn-tier-stack__final {
        flex-wrap: wrap;
    }

    .table--cards .account-crests__label {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}
