@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.88);
    --border: rgba(255, 255, 255, 0.12);
}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

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.78),
            rgba(0, 0, 0, 0.42),
            rgba(0, 0, 0, 0.78)
        ),
        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: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    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.72);

    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-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 NAVBAR
========================================= */

.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;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 120px 8% 80px;
}

.hero-content {
    width: 100%;
    max-width: 1100px;
}


/* =========================================
   BADGE
========================================= */

.badge {
    display: inline-block;

    margin-bottom: 20px;
    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
========================================= */

.hero h1 {
    font-size: clamp(48px, 7vw, 92px);

    line-height: 0.95;

    font-weight: 900;

    letter-spacing: -3px;

    margin-bottom: 28px;

    text-shadow:
        0 8px 35px rgba(0, 0, 0, 0.65);
}

.hero h1 span {
    display: block;

    color: var(--accent);

    text-shadow:
        0 0 35px rgba(216, 162, 58, 0.20);
}


/* =========================================
   DESCRIPTION
========================================= */

.description {
    max-width: 620px;

    margin-bottom: 35px;

    color: var(--muted);

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================
   BOUTONS
========================================= */

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}

.main-button,
.secondary-button {
    min-height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-weight: 700;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.main-button {
    min-width: 220px;

    flex-direction: column;

    background: var(--accent);

    color: #111111;

    box-shadow:
        0 10px 30px rgba(216, 162, 58, 0.20);
}

.main-button span {
    font-size: 15px;
}

.main-button small {
    margin-top: 2px;

    font-size: 10px;

    opacity: 0.65;
}

.main-button:hover {
    transform: translateY(-3px);

    background: var(--accent-light);

    box-shadow:
        0 15px 40px rgba(216, 162, 58, 0.30);
}

.secondary-button {
    padding: 0 25px;

    color: #ffffff;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(8px);
}

.secondary-button:hover {
    transform: translateY(-3px);

    background: rgba(255, 255, 255, 0.12);

    border-color: rgba(255, 255, 255, 0.35);
}


/* =========================================
   AVIS
========================================= */

.avis-section {
    width: 100%;

    margin-top: 35px;

    padding: 0;
}

.avis-section h2 {
    font-size: 24px;

    font-weight: 800;

    margin-bottom: 18px;

    color: var(--accent-light);

    text-align: left;
}


/* =========================================
   CONTENEUR DES 3 AVIS
========================================= */

#avis-container {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}


/* =========================================
   CARTE AVIS
========================================= */

.avis-card {
    min-width: 0;

    padding: 16px;

    background: rgba(255, 255, 255, 0.055);

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 10px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.20);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.avis-card:hover {
    transform: translateY(-4px);

    background: rgba(255, 255, 255, 0.09);

    border-color: rgba(216, 162, 58, 0.35);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.30);
}


/* =========================================
   NOM
========================================= */

.avis-nom {
    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 7px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================
   ÉTOILES
========================================= */

.avis-etoiles {
    color: var(--accent);

    font-size: 14px;

    margin-bottom: 8px;

    letter-spacing: 1px;
}


/* =========================================
   TEXTE AVIS
========================================= */

.avis-texte {
    color: var(--muted);

    font-size: 12px;

    line-height: 1.5;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================
   ANCIEN FORMAT AVIS
========================================= */

.avis-container {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

    width: 100%;

    margin: 0 auto;
}

.avis-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 10px;
}

.avis-header h3 {
    font-size: 16px;

    font-weight: 700;

    color: var(--text);
}

.avis-note {
    color: var(--accent);

    font-size: 18px;
}

.avis-text {
    color: var(--muted);

    line-height: 1.6;

    margin-bottom: 10px;
}

.avis-date {
    color: rgba(255, 255, 255, 0.4);

    font-size: 12px;
}


/* =========================================
   MESSAGE AUCUN AVIS
========================================= */

.aucun-avis {
    grid-column: 1 / -1;

    padding: 20px;

    text-align: center;

    color: var(--muted);

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid var(--border);

    border-radius: 10px;
}


/* =========================================
   FOOTER
========================================= */

footer {
    width: 100%;

    padding: 20px 6%;

    background: rgba(0, 0, 0, 0.35);

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(8px);
}

.footer-content {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 25px;

    flex-wrap: wrap;

    color: rgba(255, 255, 255, 0.45);

    font-size: 12px;
}


/* =========================================
   RESEAUX SOCIAUX
========================================= */

.social-links {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;
}

.social-links a {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 7px 11px;

    border-radius: 6px;

    color: rgba(255, 255, 255, 0.65);

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.08);

    font-size: 11px;
    font-weight: 600;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}

.social-links a:hover {
    color: #ffffff;

    background: rgba(216, 162, 58, 0.15);

    border-color: rgba(216, 162, 58, 0.35);

    transform: translateY(-2px);
}


/* =========================================
   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: 12px;
    }

    .hero {
        padding-top: 170px;
    }

    #avis-container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .logo {
        font-size: 21px;
    }

    .hero {
        padding: 160px 7% 60px;

        text-align: center;

        justify-content: center;
    }

    .hero-content {
        width: 100%;
    }

    .hero h1 {
        font-size: 50px;

        letter-spacing: -2px;
    }

    .description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;

        width: 100%;
    }

    .main-button,
    .secondary-button {
        width: 100%;
    }


    /* =====================================
       AVIS SUR MOBILE
    ===================================== */

    .avis-section {
        margin-top: 30px;
    }

    .avis-section h2 {
        text-align: center;

        font-size: 22px;
    }

    #avis-container {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .avis-card {
        text-align: left;

        padding: 14px;
    }


    /* =====================================
       FOOTER MOBILE
    ===================================== */

    footer {
        position: relative;

        margin-top: 30px;
    }

    .footer-content {
        flex-direction: column;

        align-items: center;

        gap: 10px;
    }

    .social-links {
        flex-wrap: wrap;

        gap: 7px;
    }

    .social-links a {
        padding: 7px 9px;

        font-size: 10px;
    }

}