/* Règles du jeu */

.rules-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.rules-header {
    padding: 1.5rem 0 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.rules-kicker {
    color: #2f6f4f;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.rules-tabs {
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
}

.rules-tabs .nav-link {
    min-height: 44px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    color: #24313d;
    font-weight: 700;
    white-space: nowrap;
    background: #fff;
}

.rules-tabs .nav-link:hover {
    border-color: rgba(25, 135, 84, 0.32);
    color: #11613d;
    background: #f4fbf6;
}

.rules-tabs .nav-link.active {
    border-color: #198754;
    background: #198754;
    color: #fff;
}

.rules-panel {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.05);
}

.rules-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rules-section-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    background: #198754;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.rule-tile,
.rule-note {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
}

.rule-tile {
    border-left-width: 4px;
}

.rule-tile i {
    color: var(--tile-color, #198754);
}

.tone-green {
    --tile-color: #198754;
    border-left-color: #198754;
}

.tone-blue {
    --tile-color: #0d6efd;
    border-left-color: #0d6efd;
}

.tone-amber {
    --tile-color: #b7791f;
    border-left-color: #f0ad4e;
}

.tone-red {
    --tile-color: #b02a37;
    border-left-color: #dc3545;
}

.tone-purple {
    --tile-color: #6f42c1;
    border-left-color: #6f42c1;
}

.rules-formula {
    border-radius: 8px;
    padding: 1rem;
    background: #172033;
    color: #fff;
}

.rules-formula span {
    color: #ffe08a;
    font-weight: 800;
}

.rules-list {
    padding-left: 1.2rem;
}

.rules-list li + li {
    margin-top: 0.45rem;
}

.rules-table {
    margin-bottom: 0;
}

.rules-table th {
    color: #506070;
    font-size: 0.85rem;
    text-transform: uppercase;
}

@media (max-width: 767.98px) {
    .rules-panel {
        padding: 1rem;
    }

    .rules-section-title {
        align-items: flex-start;
    }
}
