
@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.68);

    --background: #080808;
    --navbar: rgba(5, 5, 5, 0.94);

    --border: rgba(255, 255, 255, 0.12);

    --green: #4ade80;
    --red: #ef4444;
}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

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.82),
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.82)
        ),
        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 {
    text-decoration: none;
    color: inherit;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

    padding: 0 30px;

    display: flex;
    align-items: center;

    background: var(--navbar);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    z-index: 1000;
}


/* =========================================
   PROFIL À GAUCHE
========================================= */

.profile-area {
    position: absolute;

    left: 30px;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    align-items: center;

    z-index: 2001;
}

.profile-bubble {
    width: 46px;
    height: 46px;

    padding: 0;

    border-radius: 50%;

    overflow: hidden;

    border: 2px solid rgba(216, 162, 58, 0.65);

    background: #111111;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.profile-bubble:hover {
    border-color: var(--accent-light);

    transform: scale(1.05);
}

.profile-bubble img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* =========================================
   MENU PROFIL
========================================= */

.profile-menu {
    position: absolute;

    top: 60px;
    left: 0;

    width: 280px;

    padding: 18px;

    background: rgba(15, 15, 15, 0.98);

    border: 1px solid var(--border);

    border-radius: 12px;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;

    z-index: 3000;
}

.profile-menu.show {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

.profile-menu-header {
    display: flex;

    align-items: center;

    gap: 12px;
}

.profile-menu-header img {
    width: 48px;
    height: 48px;

    border-radius: 50%;

    object-fit: cover;

    border: 1px solid var(--border);
}

.profile-menu-header div {
    display: flex;

    flex-direction: column;

    gap: 4px;

    min-width: 0;
}

.profile-menu-header strong {
    color: #ffffff;

    font-size: 14px;

    font-weight: 800;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.profile-menu-header span {
    color: var(--muted);

    font-size: 12px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.profile-divider {
    height: 1px;

    margin: 15px 0;

    background: var(--border);
}


/* =========================================
   BOUTONS PROFIL
========================================= */

.profile-button {
    width: 100%;

    display: block;

    padding: 11px 12px;

    margin-top: 7px;

    border-radius: 7px;

    border: 1px solid var(--border);

    background: rgba(255, 255, 255, 0.04);

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    text-align: left;

    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.profile-button:hover {
    background: rgba(255, 255, 255, 0.08);

    border-color: rgba(255, 255, 255, 0.18);

    transform: translateY(-1px);
}

.admin-button {
    color: var(--accent-light);
}

.admin-button:hover {
    color: #ffffff;

    background: rgba(216, 162, 58, 0.10);

    border-color: rgba(216, 162, 58, 0.30);
}

.settings-button {
    color: var(--accent-light);

    background: rgba(216, 162, 58, 0.06);

    border-color: rgba(216, 162, 58, 0.18);
}

.settings-button:hover {
    color: #ffffff;

    background: rgba(216, 162, 58, 0.14);

    border-color: rgba(216, 162, 58, 0.40);
}

.logout-button {
    color: #ff6b6b;
}

.logout-button:hover {
    color: #ff8585;

    background: rgba(239, 68, 68, 0.08);

    border-color: rgba(239, 68, 68, 0.25);
}


/* =========================================
   LOGO
========================================= */

.logo {
    position: absolute;

    left: 90px;
    top: 50%;

    transform: translateY(-50%);

    color: #ffffff;

    text-decoration: none;

    font-size: 25px;

    font-weight: 900;

    letter-spacing: 3px;

    white-space: nowrap;

    z-index: 1001;
}

.logo span {
    color: var(--accent);
}


/* =========================================
   NAVIGATION CENTRÉE
========================================= */

.nav-links {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 4px;

    white-space: nowrap;

    z-index: 1001;
}

.nav-link {
    position: relative;

    padding: 10px 12px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 13px;

    font-weight: 700;

    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: var(--accent-light);

    background: rgba(216, 162, 58, 0.08);
}

.nav-link.active::after {
    content: "";

    position: absolute;

    left: 12px;
    right: 12px;

    bottom: 3px;

    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 {
    background: var(--accent);

    color: #111111;

    border-color: var(--accent);
}


/* =========================================
   PAGE AVIS
========================================= */

.avis-page {
    min-height: 100vh;

    padding: 140px 30px 100px;
}

.avis-content {
    width: 100%;

    max-width: 1200px;

    margin: 0 auto;
}


/* =========================================
   BADGE
========================================= */

.badge {
    display: inline-block;

    margin-bottom: 18px;

    padding: 8px 15px;

    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: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}


/* =========================================
   TITRE
========================================= */

.avis-content h1 {
    font-size: clamp(42px, 6vw, 72px);

    line-height: 1;

    font-weight: 900;

    letter-spacing: -3px;

    margin-bottom: 18px;
}

.avis-content h1 span {
    color: var(--accent);
}

.description {
    max-width: 650px;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================
   BOUTON AVIS
========================================= */

.avis-actions {
    margin-top: 28px;

    margin-bottom: 35px;
}

.create-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding: 0 22px;

    border-radius: 8px;

    background: var(--accent);

    color: #111111;

    font-size: 14px;

    font-weight: 800;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.create-button:hover {
    transform: translateY(-3px);

    background: var(--accent-light);

    box-shadow:
        0 10px 30px rgba(216, 162, 58, 0.25);
}


/* =========================================
   GRILLE DES AVIS
========================================= */

.avis-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;

    width: 100%;
}


/* =========================================
   CARTE AVIS
========================================= */

.avis-card {
    min-width: 0;

    padding: 20px;

    background: rgba(255, 255, 255, 0.055);

    border: 1px solid var(--border);

    border-radius: 12px;

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.avis-card:hover {
    transform: translateY(-5px);

    background: rgba(255, 255, 255, 0.09);

    border-color: rgba(216, 162, 58, 0.35);
}


/* =========================================
   HEADER AVIS
========================================= */

.avis-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 12px;
}

.avis-user {
    min-width: 0;
}

.avis-nom {
    color: #ffffff;

    font-size: 15px;

    font-weight: 800;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.avis-user-rp {
    margin-top: 3px;

    color: rgba(255, 255, 255, 0.48);

    font-size: 12px;
}

.avis-note {
    flex-shrink: 0;

    color: var(--accent);

    font-size: 16px;

    letter-spacing: 1px;

    white-space: nowrap;
}


/* =========================================
   TEXTE AVIS
========================================= */

.avis-text {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.65;

    word-break: break-word;

    overflow-wrap: anywhere;

    margin-bottom: 15px;
}


/* =========================================
   DATE
========================================= */

.avis-date {
    display: block;

    color: rgba(255, 255, 255, 0.38);

    font-size: 11px;
}


/* =========================================
   CHARGEMENT
========================================= */

.loading {
    grid-column: 1 / -1;

    padding: 40px;

    text-align: center;

    color: var(--muted);

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid var(--border);

    border-radius: 12px;
}


/* =========================================
   MESSAGE
========================================= */

.message {
    grid-column: 1 / -1;

    padding: 30px;

    text-align: center;

    color: var(--muted);

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid var(--border);

    border-radius: 12px;
}


/* =========================================
   PAGINATION
========================================= */

.pagination {
    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 30px;
}

.pagination button {
    min-width: 40px;

    height: 40px;

    padding: 0 12px;

    border: 1px solid var(--border);

    border-radius: 7px;

    background: rgba(255, 255, 255, 0.05);

    color: #ffffff;

    cursor: pointer;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.pagination button:hover {
    transform: translateY(-2px);

    background: rgba(255, 255, 255, 0.10);

    border-color: rgba(216, 162, 58, 0.35);
}

.pagination button.active {
    background: var(--accent);

    color: #111111;

    border-color: var(--accent);
}


/* =========================================
   FOOTER
========================================= */

footer {
    width: 100%;

    padding: 20px 30px;

    background: rgba(0, 0, 0, 0.35);

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);
}

.footer-content {
    max-width: 1450px;

    margin: 0 auto;

    display: flex;

    justify-content: space-between;

    color: rgba(255, 255, 255, 0.45);

    font-size: 12px;
}


/* =========================================
   TABLETTE
========================================= */

@media (max-width: 1200px) {

    .navbar {
        padding: 0 20px;
    }

    .profile-area {
        left: 20px;
    }

    .logo {
        left: 75px;

        font-size: 22px;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-link {
        padding: 10px 8px;

        font-size: 12px;
    }

    .nav-link.active::after {
        left: 8px;
        right: 8px;
    }
}


/* =========================================
   PETITE TABLETTE
========================================= */

@media (max-width: 1050px) {

    .logo {
        display: none;
    }

    .nav-links {
        left: 55%;
    }

    .avis-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .navbar {
        position: fixed;

        height: auto;

        min-height: 70px;

        padding: 12px 15px;

        display: flex;

        flex-wrap: wrap;

        gap: 10px;
    }

    .profile-area {
        position: relative;

        left: auto;
        top: auto;

        transform: none;

        width: 44px;

        min-width: 44px;
    }

    .profile-bubble {
        width: 44px;
        height: 44px;
    }

    .logo {
        display: block;

        position: static;

        transform: none;

        margin-left: 5px;

        font-size: 20px;
    }

    .nav-links {
        position: static;

        transform: none;

        width: 100%;

        order: 3;

        justify-content: flex-start;

        overflow-x: auto;

        padding-bottom: 5px;

        gap: 5px;

        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        flex-shrink: 0;

        padding: 8px 10px;

        font-size: 11px;
    }

    .nav-link.active::after {
        left: 10px;
        right: 10px;
    }

    .profile-menu {
        top: 55px;

        left: 0;

        width: 260px;
    }

    .avis-page {
        padding: 120px 15px 50px;
    }

    .avis-content h1 {
        font-size: 46px;

        letter-spacing: -2px;
    }

    .description {
        font-size: 14px;
    }

    .create-button {
        width: 100%;
    }

    .avis-grid {
        grid-template-columns: 1fr;

        text-align: left;
    }

    .avis-header {
        gap: 10px;
    }

    .avis-note {
        font-size: 14px;
    }

    footer {
        position: relative;

        margin-top: 30px;
    }

    .footer-content {
        padding: 0;

        flex-direction: column;

        align-items: center;

        gap: 7px;

        text-align: center;
    }
}


/* =========================================
   TRÈS PETIT ÉCRAN
========================================= */

@media (max-width: 450px) {

    .navbar {
        padding: 10px;
    }

    .profile-area {
        width: 40px;

        min-width: 40px;
    }

    .profile-bubble {
        width: 40px;
        height: 40px;
    }

    .logo {
        font-size: 18px;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-link {
        padding: 7px 8px;

        font-size: 10px;
    }

    .avis-page {
        padding: 115px 10px 40px;
    }

    .avis-content h1 {
        font-size: 38px;
    }

    .avis-card {
        padding: 17px;
    }

    .create-button {
        min-height: 45px;

        font-size: 13px;
    }
}

