@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');


/* =========================================
   VARIABLES
========================================= */

:root {

    --accent: #d8a23a;
    --accent-light: #f0c86a;

    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.72);

    --background: #080808;

    --card: rgba(10, 10, 10, 0.78);

    --navbar: rgba(5, 5, 5, 0.90);

    --border: rgba(255, 255, 255, 0.11);

}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    min-height: 100vh;

    font-family: 'Inter', sans-serif;

    color: var(--text);

    background-color: var(--background);

    background-image:

        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.88),
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.88)
        ),

        url("https://galerie.t-life.fr/media/gallery/texts.png");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    background-attachment: fixed;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 82px;

    padding: 0 6%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: var(--navbar);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);

    z-index: 1000;
}


/* =========================================
   LOGO
========================================= */

.logo {

    font-size: 25px;

    font-weight: 900;

    letter-spacing: 3px;

    white-space: nowrap;
}

.logo span {
    color: var(--accent);
}


/* =========================================
   NAVIGATION
========================================= */

.nav-links {

    display: flex;

    align-items: center;

    gap: 8px;
}

.nav-link {

    position: relative;

    padding: 12px 18px;

    color: rgba(255, 255, 255, 0.70);

    font-size: 15px;

    font-weight: 600;

    border-radius: 7px;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.nav-link:hover {

    color: #ffffff;

    background: rgba(255, 255, 255, 0.07);

    transform: translateY(-1px);
}

.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {

    content: "";

    position: absolute;

    left: 18px;
    right: 18px;

    bottom: 5px;

    height: 2px;

    background: var(--accent);

    border-radius: 10px;
}


/* =========================================
   DISCORD
========================================= */

.nav-link.discord {

    margin-left: 8px;

    color: #ffffff;

    background: rgba(216, 162, 58, 0.15);

    border: 1px solid rgba(216, 162, 58, 0.35);
}

.nav-link.discord:hover {

    color: #111111;

    background: var(--accent);

    border-color: var(--accent);
}


/* =========================================
   PAGE
========================================= */

.lexique-page {

    width: 100%;

    max-width: 1150px;

    margin: 0 auto;

    padding: 145px 30px 60px;
}


/* =========================================
   HEADER
========================================= */

.lexique-header {

    text-align: center;

    margin-bottom: 60px;
}

.badge {

    display: inline-block;

    margin-bottom: 20px;

    padding: 9px 18px;

    color: var(--accent-light);

    background: rgba(216, 162, 58, 0.10);

    border: 1px solid rgba(216, 162, 58, 0.35);

    border-radius: 50px;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;
}

.lexique-header h1 {

    font-size: clamp(46px, 6vw, 76px);

    line-height: 1;

    font-weight: 900;

    letter-spacing: -2px;

    margin-bottom: 25px;
}

.lexique-header h1 span {
    color: var(--accent);
}

.lexique-header p {

    max-width: 760px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 18px;

    line-height: 1.8;
}


/* =========================================
   CONTENEUR LEXIQUE
========================================= */

.lexique-container {

    display: flex;

    flex-direction: column;

    gap: 20px;
}


/* =========================================
   CARTE LEXIQUE
========================================= */

.lexique-card {

    display: flex;

    gap: 30px;

    padding: 35px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 12px;

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.lexique-card:hover {

    transform: translateY(-2px);

    background: rgba(15, 15, 15, 0.84);

    border-color: rgba(216, 162, 58, 0.30);
}


/* =========================================
   NUMÉRO
========================================= */

.term-number {

    width: 54px;

    height: 54px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--accent);

    background: rgba(216, 162, 58, 0.10);

    border: 1px solid rgba(216, 162, 58, 0.25);

    border-radius: 9px;

    font-size: 15px;

    font-weight: 800;
}


/* =========================================
   CONTENU DU TERME
========================================= */

.term-content {
    flex: 1;
}

.term-content h2 {

    margin-bottom: 16px;

    color: #ffffff;

    font-size: 26px;

    font-weight: 800;

    line-height: 1.2;
}

.term-content h2::first-letter {
    color: var(--accent);
}

.term-content p {

    margin-bottom: 16px;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.85;
}

.term-content p:last-child {
    margin-bottom: 0;
}

.term-content strong {

    color: #ffffff;

    font-weight: 700;
}


/* =========================================
   DOCUMENTATION RP
========================================= */

.categories-section {

    margin-top: 65px;

    padding-top: 10px;
}


/* =========================================
   HEADER DOCUMENTATION
========================================= */

.categories-header {

    text-align: center;

    margin-bottom: 30px;
}

.categories-badge {

    display: inline-block;

    margin-bottom: 12px;

    padding: 7px 15px;

    color: var(--accent-light);

    background: rgba(216, 162, 58, 0.08);

    border: 1px solid rgba(216, 162, 58, 0.25);

    border-radius: 50px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}

.categories-header h2 {

    margin-bottom: 12px;

    font-size: 32px;

    font-weight: 900;
}

.categories-header h2 span {
    color: var(--accent);
}

.categories-header p {

    color: var(--muted);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================
   CATÉGORIES RÈGLEMENT
========================================= */

.reglement-categories {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 12px;
}

.category-button {

    min-height: 82px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 13px 15px;

    text-align: center;

    color: rgba(255, 255, 255, 0.75);

    background: rgba(8, 8, 8, 0.78);

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 9px;

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.category-button span {

    color: #ffffff;

    font-size: 14px;

    font-weight: 800;
}

.category-button small {

    margin-top: 5px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 11px;
}

.category-button:hover {

    background: rgba(216, 162, 58, 0.12);

    border-color: rgba(216, 162, 58, 0.35);

    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(216, 162, 58, 0.10);
}

.category-button:hover span {
    color: var(--accent-light);
}

.category-button:hover small {
    color: rgba(255, 255, 255, 0.65);
}


/* =========================================
   BOUTON ACTIF — LEXIQUE
========================================= */

.category-button.active {

    background: var(--accent);

    border-color: var(--accent);

    box-shadow:
        0 10px 30px rgba(216, 162, 58, 0.18);
}

.category-button.active span {
    color: #111111;
}

.category-button.active small {
    color: rgba(0, 0, 0, 0.60);
}

.category-button.active:hover {

    background: var(--accent-light);

    border-color: var(--accent-light);
}


/* =========================================
   BOUTONS BAS DE PAGE
========================================= */

.bottom-buttons {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    margin-top: 45px;
}

.back-button,
.home-button {

    min-height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 25px;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 700;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.back-button {

    color: #111111;

    background: var(--accent);

    box-shadow:
        0 10px 30px rgba(216, 162, 58, 0.18);
}

.back-button:hover {

    background: var(--accent-light);

    transform: translateY(-3px);
}

.home-button {

    color: #ffffff;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.16);
}

.home-button:hover {

    background: rgba(255, 255, 255, 0.12);

    border-color: rgba(255, 255, 255, 0.30);

    transform: translateY(-3px);
}


/* =========================================
   FOOTER
========================================= */

footer {

    width: 100%;

    padding: 24px 6%;

    margin-top: 20px;

    background: rgba(0, 0, 0, 0.45);

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);
}

.footer-content {

    display: flex;

    justify-content: space-between;

    align-items: center;

    color: rgba(255, 255, 255, 0.45);

    font-size: 13px;
}


/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #070707;
}

::-webkit-scrollbar-thumb {

    background: rgba(216, 162, 58, 0.55);

    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}


/* =========================================
   SÉLECTION
========================================= */

::selection {

    color: #111111;

    background: var(--accent);
}


/* =========================================
   TABLETTE
========================================= */

@media (max-width: 900px) {

    .navbar {

        height: auto;

        min-height: 75px;

        padding: 15px 5%;

        flex-direction: column;

        gap: 12px;
    }

    .nav-links {

        width: 100%;

        justify-content: center;

        flex-wrap: wrap;
    }

    .nav-link {

        padding: 9px 12px;

        font-size: 13px;
    }

    .lexique-page {

        padding-top: 175px;
    }

    .reglement-categories {

        grid-template-columns: repeat(3, 1fr);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .lexique-page {

        padding: 155px 15px 50px;
    }

    .lexique-header {

        margin-bottom: 40px;
    }

    .lexique-header h1 {

        font-size: 44px;

        letter-spacing: -1px;
    }

    .lexique-header p {

        font-size: 16px;
    }

    .lexique-card {

        flex-direction: column;

        gap: 18px;

        padding: 27px;
    }

    .term-number {

        width: 48px;

        height: 48px;
    }

    .term-content h2 {

        font-size: 23px;
    }

    .term-content p {

        font-size: 16px;

        line-height: 1.8;
    }

    .categories-section {

        margin-top: 50px;
    }

    .categories-header h2 {

        font-size: 27px;
    }

    .categories-header p {

        font-size: 14px;
    }

    .reglement-categories {

        grid-template-columns: repeat(2, 1fr);

        gap: 10px;
    }

    .category-button {

        min-height: 75px;

        padding: 10px;
    }

    .category-button span {

        font-size: 13px;
    }

    .category-button small {

        font-size: 10px;
    }

    .bottom-buttons {

        flex-direction: column;

        width: 100%;
    }

    .back-button,
    .home-button {

        width: 100%;
    }

    .footer-content {

        flex-direction: column;

        align-items: center;

        gap: 8px;

        text-align: center;
    }

}


/* =========================================
   TRÈS PETIT ÉCRAN
========================================= */

@media (max-width: 400px) {

    .nav-link {

        padding: 7px;

        font-size: 11px;
    }

    .lexique-page {

        padding-left: 12px;

        padding-right: 12px;
    }

    .lexique-header h1 {

        font-size: 38px;
    }

    .lexique-card {

        padding: 21px;
    }

    .reglement-categories {

        grid-template-columns: 1fr;
    }

}