@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.92);

    --border: rgba(255, 255, 255, 0.11);

    --danger: #d84a4a;
}


/* =========================================
   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.90),
            rgba(0, 0, 0, 0.68),
            rgba(0, 0, 0, 0.90)
        ),
        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%;
    min-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(16px);
    -webkit-backdrop-filter: blur(16px);

    z-index: 1000;
}


/* =========================================
   LOGO
========================================= */

.logo {
    display: flex;
    align-items: center;

    color: #ffffff;

    font-size: 25px;
    font-weight: 900;

    letter-spacing: 3px;

    white-space: nowrap;
}

.logo span {
    color: var(--accent);
}

.logo:hover {
    transform: translateY(-1px);
}


/* =========================================
   NAVIGATION
========================================= */

.nav-links {
    display: flex;
    align-items: center;

    gap: 7px;
}

.nav-link {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px 17px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 14px;
    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 ACTIVE
========================================= */

.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: "";

    position: absolute;

    left: 17px;
    right: 17px;

    bottom: 5px;

    height: 2px;

    background: var(--accent);

    border-radius: 20px;
}


/* =========================================
   DISCORD
========================================= */

.nav-link.discord {
    margin-left: 8px;

    color: #ffffff;

    background: rgba(216, 162, 58, 0.12);

    border: 1px solid rgba(216, 162, 58, 0.30);
}

.nav-link.discord:hover {
    color: #111111;

    background: var(--accent);

    border-color: var(--accent);
}


/* =========================================
   PAGE
========================================= */

.reglement-page {
    width: 100%;
    max-width: 1150px;

    margin: 0 auto;

    padding: 145px 30px 60px;
}


/* =========================================
   HEADER
========================================= */

.reglement-header {
    text-align: center;

    margin-bottom: 35px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    padding: 9px 19px;

    color: var(--accent-light);

    background: rgba(216, 162, 58, 0.09);

    border: 1px solid rgba(216, 162, 58, 0.30);

    border-radius: 50px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;
}

.reglement-header h1 {
    margin-bottom: 24px;

    color: #ffffff;

    font-size: clamp(46px, 6vw, 76px);

    line-height: 0.98;

    font-weight: 900;

    letter-spacing: -2px;
}

.reglement-header h1 span {
    color: var(--accent);
}

.reglement-header p {
    max-width: 760px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 18px;

    line-height: 1.8;
}


/* =========================================
   AVERTISSEMENT
========================================= */

.top-warning {
    margin-bottom: 25px;
}

.warning-card {
    display: flex;
    align-items: flex-start;

    gap: 20px;

    padding: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(216, 74, 74, 0.12),
            rgba(216, 74, 74, 0.05)
        );

    border: 1px solid rgba(216, 74, 74, 0.32);

    border-radius: 12px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.warning-icon {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    background: var(--danger);

    border-radius: 50%;

    font-size: 22px;
    font-weight: 900;
}

.warning-card h2 {
    margin-bottom: 11px;

    font-size: 22px;
    font-weight: 800;
}

.warning-card p {
    margin-bottom: 12px;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.8;
}

.warning-card p:last-child {
    margin-bottom: 0;
}

.warning-card strong {
    color: #ffffff;
}


/* =========================================
   CONTAINER
========================================= */

.reglement-container {
    display: flex;
    flex-direction: column;

    gap: 22px;
}


/* =========================================
   CARDS
========================================= */

.reglement-card {
    display: flex;

    gap: 30px;

    padding: 38px;

    background:
        linear-gradient(
            135deg,
            rgba(12, 12, 12, 0.84),
            rgba(8, 8, 8, 0.72)
        );

    border: 1px solid var(--border);

    border-radius: 12px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.reglement-card:hover {
    transform: translateY(-2px);

    border-color:
        rgba(216, 162, 58, 0.28);
}


/* =========================================
   NUMÉROS
========================================= */

.card-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.09);

    border: 1px solid rgba(216, 162, 58, 0.25);

    border-radius: 9px;

    font-size: 15px;
    font-weight: 800;
}


/* =========================================
   CONTENU
========================================= */

.card-content {
    flex: 1;
}

.card-content h2 {
    margin-bottom: 20px;

    font-size: 27px;
    font-weight: 800;
}

.card-content p {
    margin-bottom: 18px;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.85;
}

.card-content p:last-child {
    margin-bottom: 0;
}

.card-content strong {
    color: #ffffff;
}


/* =========================================
   STAFF
========================================= */

.developers {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

    margin: 25px 0;
}

.developer {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 18px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 9px;

    transition: 0.25s ease;
}

.developer:hover {
    transform: translateY(-2px);

    background: rgba(216, 162, 58, 0.07);

    border-color: rgba(216, 162, 58, 0.25);
}

.developer-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #111111;

    background: var(--accent);

    border-radius: 8px;

    font-size: 16px;
    font-weight: 900;
}

.developer strong {
    display: block;

    margin-bottom: 5px;

    font-size: 16px;
}

.developer small {
    display: block;

    color: var(--accent-light);

    font-size: 13px;
    font-weight: 600;
}


/* =========================================
   CONTACT STAFF
========================================= */

.staff-contact {
    margin-top: 22px !important;

    padding: 18px 20px;

    background: rgba(216, 162, 58, 0.055);

    border-left: 3px solid var(--accent);

    border-radius: 6px;
}

.staff-contact strong {
    color: var(--accent) !important;
}


/* =========================================
   SECTION DOCUMENTATION
========================================= */

.categories-section {
    margin-top: 55px;
}


/* =========================================
   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;
}


/* =========================================
   CATÉGORIES
========================================= */

.reglement-categories {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 12px;
}


/* =========================================
   BOUTON CATÉGORIE
========================================= */

.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);
}


/* =========================================
   FOOTER
========================================= */

footer {
    width: 100%;

    padding: 25px 6%;

    background: rgba(0, 0, 0, 0.48);

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;

    align-items: center;

    justify-content: space-between;

    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 {
        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;
    }

    .nav-link.discord {
        margin-left: 0;
    }

    .reglement-page {
        padding-top: 175px;
    }

    .reglement-categories {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .navbar {
        padding: 13px 15px;
    }

    .logo {
        font-size: 22px;
    }

    .nav-links {
        gap: 3px;
    }

    .nav-link {
        padding: 8px 9px;

        font-size: 12px;
    }

    .reglement-page {
        padding: 155px 15px 50px;
    }

    .reglement-header h1 {
        font-size: 43px;
    }

    .reglement-header p {
        font-size: 15px;
    }

    .warning-card {
        padding: 23px;

        gap: 14px;
    }

    .warning-icon {
        width: 43px;
        height: 43px;

        font-size: 18px;
    }

    .warning-card h2 {
        font-size: 19px;
    }

    .warning-card p {
        font-size: 14px;
    }

    .reglement-card {
        flex-direction: column;

        gap: 18px;

        padding: 27px;
    }

    .card-number {
        width: 48px;
        height: 48px;
    }

    .card-content h2 {
        font-size: 23px;
    }

    .card-content p {
        font-size: 15px;
    }

    .developers {
        grid-template-columns: 1fr;
    }

    .reglement-categories {
        grid-template-columns: repeat(2, 1fr);

        gap: 10px;
    }

    .category-button {
        min-height: 72px;

        padding: 10px;
    }

    .category-button span {
        font-size: 13px;
    }

    .category-button small {
        font-size: 10px;
    }

    .categories-header h2 {
        font-size: 27px;
    }

    .footer-content {
        flex-direction: column;

        justify-content: center;

        gap: 8px;

        text-align: center;
    }
}


/* =========================================
   PETIT MOBILE
========================================= */

@media (max-width: 400px) {

    .nav-link {
        padding: 7px;

        font-size: 11px;
    }

    .reglement-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .reglement-header h1 {
        font-size: 38px;
    }

    .reglement-card {
        padding: 22px;
    }

    .warning-card {
        padding: 20px;
    }

    .reglement-categories {
        grid-template-columns: 1fr;
    }

}