/* ========================================
   PAGE PARIS
   Le style du tableau vient de styles.css (.data-table).
======================================== */

/* Introduction sur toute la largeur du conteneur, sans coupure à 720px */
.page-head .page-lead {
    max-width: none;
}

/* Mode d'emploi en trois étapes, sous l'introduction */
.how-to {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 12px;
    padding: 0;
    list-style: none;
    counter-reset: how-to;
}

.how-to li {
    position: relative;
    padding: 10px 14px 10px 46px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    counter-increment: how-to;
}

.how-to li::before {
    content: counter(how-to);
    position: absolute;
    top: 11px;
    left: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--surface);
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
}

.how-to strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 900px) {
    .how-to {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Légende des codes de stratégie */
.strategy-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--muted);
}

.strategy-legend li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ad-slot {
    margin-top: 32px;
    text-align: center;
}

/* ========================================
   MOBILE : chaque pari devient une carte
======================================== */
@media (max-width: 800px) {
    .bet-card {
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }

    .bet-table thead {
        display: none;
    }

    .bet-table,
    .bet-table tbody,
    .bet-table tr,
    .bet-table td {
        display: block;
        width: 100%;
    }

    .bet-table tr {
        margin-bottom: 12px;
        padding: 8px 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
    }

    .bet-table td {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 8px 0;
        text-align: right;
    }

    .bet-table td::before {
        content: attr(data-label);
        flex-shrink: 0;
        font-size: 12px;
        font-weight: 500;
        color: var(--muted);
        text-align: left;
    }

    .bet-table tbody tr:hover td {
        background: transparent;
    }

    .bet-table tbody tr td:last-child {
        border-bottom: none;
    }
}
