/* ============ PAGE HEADER ============ */
.page-header {
    padding: 160px 32px 80px;
    text-align: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.page-header-inner { position: relative; z-index: 1; }

.page-title {
    font-size: clamp(48px, 8vw, 96px);
    margin: 20px 0 20px;
    letter-spacing: -0.01em;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 620px;
    margin: 0 auto 28px;
}

.page-meta {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 13px;
    color: var(--yellow-soft);
}

.nav-links a.active {
    color: var(--yellow);
}
.nav-links a.active::after {
    width: 100%;
}

/* ============ LAYOUT ============ */
.reglement-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 32px 120px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}

/* ============ TABLE OF CONTENTS ============ */
.toc {
    position: sticky;
    top: 90px;
}

.toc-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
}

.toc h4 {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--yellow);
    margin-bottom: 16px;
    font-weight: 700;
}

.toc nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc nav a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.toc nav a:hover {
    color: var(--yellow);
    background: rgba(255, 193, 7, 0.06);
    border-left-color: var(--yellow);
}

.toc nav a.active {
    color: var(--yellow);
    background: rgba(255, 193, 7, 0.1);
    border-left-color: var(--yellow);
}

/* ============ CONTENT ============ */
.reglement-content {
    max-width: 860px;
}

.rule-section {
    margin-bottom: 72px;
    scroll-margin-top: 90px;
}

.rule-section h2 {
    font-size: clamp(32px, 4vw, 44px);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.rule-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--gradient-gold);
    color: #0a0a0a;
    border-radius: 12px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
}

/* ============ RULE CARDS ============ */
.rule-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 14px;
    transition: all 0.25s ease;
    border-left: 3px solid var(--yellow);
}

.rule-card:hover {
    background: var(--surface-2);
    transform: translateX(4px);
}

.rule-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.rule-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

.rule-card strong {
    color: var(--yellow);
    font-weight: 600;
}

.rule-card code {
    background: rgba(255, 193, 7, 0.1);
    color: var(--yellow);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

.rule-card.rule-danger {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.04);
}

.rule-card.rule-danger h3::before {
    content: '⚠️  ';
}

.rule-card.rule-danger strong {
    color: #ff6b6b;
}

/* ============ LEXIQUE ============ */
.lexique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.lexique-grid > div {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-muted);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.lexique-grid > div:hover {
    background: rgba(255, 193, 7, 0.05);
}

.lexique-grid strong {
    color: var(--yellow);
    font-weight: 700;
    margin-right: 8px;
}

/* ============ SANCTIONS ============ */
.sanction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.sanction {
    padding: 20px 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--yellow);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s ease;
}

.sanction:hover { transform: translateY(-3px); }

.sanction strong {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 0.04em;
    color: var(--text);
}

.sanction span {
    color: var(--text-muted);
    font-size: 13px;
}

.sanction.warn { border-left-color: #60a5fa; }
.sanction.warn strong { color: #60a5fa; }

.sanction.kick { border-left-color: #fbbf24; }
.sanction.kick strong { color: #fbbf24; }

.sanction.ban-short { border-left-color: #fb923c; }
.sanction.ban-short strong { color: #fb923c; }

.sanction.ban-long { border-left-color: #f87171; }
.sanction.ban-long strong { color: #f87171; }

.sanction.ban-perm { border-left-color: #ef4444; background: rgba(239, 68, 68, 0.05); }
.sanction.ban-perm strong { color: #ef4444; }

/* ============ FOOTER CTA ============ */
.reglement-footer-cta {
    margin-top: 72px;
    padding: 48px 32px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.reglement-footer-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 193, 7, 0.12), transparent 60%);
    pointer-events: none;
}

.reglement-footer-cta p {
    font-size: 17px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.reglement-footer-cta strong {
    color: var(--yellow);
}

.reglement-footer-cta .btn {
    position: relative;
    z-index: 1;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .reglement-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .toc {
        position: static;
    }
    .toc-inner {
        display: flex;
        flex-wrap: wrap;
    }
    .toc h4 { width: 100%; }
    .toc nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .toc nav a {
        padding: 6px 12px;
        border-left: none;
        border: 1px solid var(--border);
        border-radius: 999px;
        font-size: 13px;
    }
    .toc nav a:hover,
    .toc nav a.active {
        border-color: var(--yellow);
    }
}

@media (max-width: 560px) {
    .page-header { padding: 120px 20px 60px; }
    .reglement-layout { padding: 20px 20px 80px; }
    .rule-section { margin-bottom: 56px; }
    .rule-num { width: 38px; height: 38px; font-size: 22px; }
    .rule-card { padding: 18px 20px; }
    .reglement-footer-cta { padding: 36px 20px; }
}
