:root {
    --bg: #09090b;
    --card: #18181b;
    --border: #27272a;
    --border-soft: rgba(255, 255, 255, 0.08);
    --accent: #ffd807;
    --accent-hover: #e6c206;
    --text: #e4e4e7;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: "Montserrat", sans-serif;
    line-height: 1.7;
    padding-top: 80px;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Navbar ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    height: 34px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

/* ---------- Contenu ---------- */
.section {
    max-width: 820px;
    margin: 3.5rem auto 2rem auto;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    padding: 3rem;
}

.section h1 {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    color: var(--accent);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.section .updated {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin: 2.25rem 0 0.85rem;
    padding-left: 0.85rem;
    border-left: 3px solid var(--accent);
}

.section p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.section ul {
    list-style: none;
    margin-bottom: 1rem;
}

.section ul li {
    color: var(--text-muted);
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.section ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent);
}

.section strong {
    color: var(--text);
    font-weight: 600;
}

.section a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.section a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ---------- Bouton retour ---------- */
.back-wrap {
    text-align: center;
    margin-top: 3rem;
}

.back-button {
    display: inline-block;
    padding: 0.85rem 2.25rem;
    border-radius: 12px;
    background-color: var(--accent);
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.back-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    text-decoration: none;
    color: #000;
}

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--border-soft);
    margin-top: 3rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

footer > img {
    height: 40px;
    width: auto;
    margin-bottom: 1.25rem;
}

footer .socials {
    display: flex;
    justify-content: center;
    gap: 1.1rem;
    margin-bottom: 1.5rem;
}

footer .socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

footer .socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

footer p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.9;
}

footer .rulelink {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer .rulelink:hover {
    color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .section {
        margin: 2rem 1rem;
        padding: 1.75rem 1.35rem;
        border-radius: 14px;
    }

    .section h1 {
        font-size: 1.8rem;
    }

    .section h2 {
        font-size: 1.1rem;
    }

    .navbar {
        padding: 0 1rem;
    }

    .navbar .logo {
        height: 28px;
    }
}
