/* =========================================================
   VARIABLES GLOBALES
   ---------------------------------------------------------
   Toutes les couleurs importantes du site sont ici.
   Pour changer le thème général, modifie surtout cette zone.
========================================================= */

:root {
    --bg: #070912;
    --bg-soft: #0d1324;
    --panel: rgba(17, 26, 48, 0.86);
    --panel-strong: #111b33;

    --text: #f7f9ff;
    --muted: #a9b5d6;

    --blue: #00b7ff;
    --cyan: #58f0ff;

    /* Couleurs spécifiques aux liens de jeux */
    --green: #39ff88;
    --green-light: #8dffbd;

    --gold: #ffcc66;
    --red: #ff3d63;

    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   RESET DE BASE
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 183, 255, 0.22), transparent 34rem),
        radial-gradient(circle at top right, rgba(255, 61, 99, 0.16), transparent 30rem),
        linear-gradient(180deg, #070912 0%, #0b1020 45%, #05070d 100%);
    color: var(--text);
    min-height: 100vh;
}

/* Grille subtile en fond */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   HEADER / MENU
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 9, 18, 0.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo + texte TeuTeu */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(88, 240, 255, 0.45));
}

.brand-text {
    font-size: 1.1rem;
}

/* Liens du menu */
.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--muted);
    font-weight: 700;
}

.nav-links a {
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* Liens classiques du menu */
.nav-links a:hover {
    color: var(--cyan);
}

/*
   Liens de jeux
   ---------------------------------------------------------
   Pour mettre un lien du menu en vert, ajoute class="game-link"
   dans menu.js, par exemple :

   <a href="minecraft/index.html#games" class="game-link">Minecraft</a>
*/
.nav-links a.game-link {
    color: var(--green);
}

.nav-links a.game-link:hover {
    color: var(--green-light);
    text-shadow: 0 0 14px rgba(57, 255, 136, 0.42);
}

/* Bouton burger mobile */
.nav-toggle {
    display: none;
    width: 46px;
    height: 42px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    margin: 5px auto;
}

/* =========================================================
   HERO / SECTION PRINCIPALE
========================================================= */

.hero {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
    padding: 86px 0 64px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 34px;
    align-items: center;
}

.eyebrow {
    color: var(--cyan);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

h1 {
    font-size: clamp(2.8rem, 7vw, 6.2rem);
    line-height: 0.92;
    letter-spacing: -0.08em;
    max-width: 850px;
    text-transform: uppercase;
}

.hero-text {
    color: var(--muted);
    font-size: 1.16rem;
    line-height: 1.75;
    max-width: 720px;
    margin: 26px 0 30px;
}

.hero-actions,
.download-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* =========================================================
   BOUTONS
========================================================= */

.btn {
    border: 0;
    border-radius: 14px;
    padding: 15px 22px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-size: 0.98rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #04111b;
    box-shadow: 0 12px 34px rgba(0, 183, 255, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 16px 44px rgba(88, 240, 255, 0.34);
}

.btn-secondary {
    background: rgba(255,255,255,0.07);
    color: var(--text);
    border: 1px solid var(--border);
}

/* =========================================================
   STATS HERO
========================================================= */

.hero-stats {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 660px;
}

.hero-stats div {
    background: rgba(255,255,255,0.055);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
}

.hero-stats strong {
    display: block;
    font-size: 1.35rem;
    color: var(--gold);
}

.hero-stats span {
    color: var(--muted);
    font-size: 0.9rem;
}

/* =========================================================
   CARTE HERO
========================================================= */

.hero-card {
    position: relative;
    min-height: 430px;
    border-radius: 30px;
    padding: 34px;
    background:
        linear-gradient(150deg, rgba(0,183,255,0.22), rgba(255,255,255,0.06)),
        url("logo-teuteu.png") center 62% / 54% no-repeat,
        var(--panel-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(88,240,255,0.32);
    border-radius: 24px;
}

.card-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    top: -80px;
    right: -90px;
    border-radius: 50%;
    background: rgba(88, 240, 255, 0.28);
    filter: blur(30px);
}

.card-label {
    position: relative;
    color: var(--gold);
    font-weight: 900;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
}

.hero-card h2,
.hero-card p {
    position: relative;
}

.hero-card h2 {
    font-size: 2.3rem;
    line-height: 1;
    margin: 12px 0;
}

.hero-card p:not(.card-label) {
    color: var(--muted);
    line-height: 1.6;
}

/* =========================================================
   SECTIONS GÉNÉRALES
========================================================= */

.section {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
    padding: 70px 0;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: -0.055em;
    line-height: 1;
    text-transform: uppercase;
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
    max-width: 680px;
    margin: 16px auto 0;
    line-height: 1.7;
}

.centered {
    text-align: center;
}

/* =========================================================
   HISTOIRE
========================================================= */

.story-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
}

.story-card,
.value-card,
.tutorial-panel,
.download-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.story-card.featured {
    grid-row: span 2;
    min-height: 360px;
    background:
        linear-gradient(145deg, rgba(0,183,255,0.18), rgba(255,61,99,0.10)),
        var(--panel);
}

.story-card h3,
.value-card h3,
.tutorial-panel h3 {
    font-size: 1.45rem;
    margin-bottom: 14px;
}

.story-card p,
.value-card p,
.tutorial-panel li,
.download-panel p {
    color: var(--muted);
    line-height: 1.7;
}

.story-card p + p {
    margin-top: 16px;
}

.number {
    display: inline-flex;
    color: var(--cyan);
    font-weight: 900;
    margin-bottom: 24px;
}

/* =========================================================
   SECTION SOMBRE
========================================================= */

.dark-section {
    width: 100%;
    max-width: none;
    padding: 82px max(16px, calc((100vw - 1180px) / 2));
    background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(0,183,255,0.07), rgba(255,255,255,0.04));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* =========================================================
   CARTES VALEURS
========================================================= */

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.value-card {
    min-height: 190px;
}

.value-card h3 {
    color: var(--gold);
}

/* =========================================================
   ANCIENNE SECTION DOWNLOAD
   ---------------------------------------------------------
   Tu peux supprimer cette partie si tu n'as plus aucune section
   téléchargement / modpack dans ton HTML.
========================================================= */

.download-section {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 20px;
    align-items: start;
}

.download-panel {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    background:
        linear-gradient(135deg, rgba(88,240,255,0.16), rgba(255,204,102,0.08)),
        var(--panel);
}

.download-panel h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    text-transform: uppercase;
    letter-spacing: -0.06em;
    margin-bottom: 14px;
}

.code-box {
    display: grid;
    gap: 8px;
    background: rgba(0,0,0,0.24);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
}

.code-box span {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 900;
}

.code-box strong {
    color: var(--cyan);
    font-size: 1.7rem;
    letter-spacing: 0.12em;
}

#copy-message {
    min-height: 22px;
    color: var(--gold);
    font-weight: 800;
}

.tutorial-panel ol {
    padding-left: 21px;
}

.tutorial-panel li + li {
    margin-top: 12px;
}

/* =========================================================
   CODE TEUTEU / RÈGLES
========================================================= */

.rules-list {
    display: grid;
    gap: 14px;
}

.rule-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.055);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.rule-item span {
    color: var(--cyan);
    font-weight: 900;
}

.rule-item p {
    color: var(--muted);
    line-height: 1.6;
}

/* =========================================================
   ESPORT / SPIRIT PANEL
========================================================= */

.spirit-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: stretch;
}

.spirit-panel > div {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.spirit-panel h3 {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.spirit-panel p {
    color: var(--muted);
    line-height: 1.75;
}

.quote-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, rgba(0,183,255,0.18), rgba(255,204,102,0.08)), var(--panel) !important;
}

.quote-box p {
    color: var(--text);
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.35;
}

.quote-box span {
    margin-top: 16px;
    color: var(--gold);
    font-weight: 800;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
    padding: 34px 0 46px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

.footer a {
    color: var(--cyan);
    font-weight: 800;
}

/* =========================================================
   RESPONSIVE TABLETTE
========================================================= */

@media (max-width: 920px) {
    .hero,
    .story-grid,
    .download-section {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-card {
        min-height: 340px;
    }
}

/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 720px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 78px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(13, 19, 36, 0.98);
        border: 1px solid var(--border);
        border-radius: 18px;
        overflow: hidden;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 16px 18px;
        border-bottom: 1px solid var(--border);
    }

    .hero {
        padding-top: 54px;
    }

    .hero-stats,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .download-actions,
    .footer {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .rule-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* =========================================================
   RESPONSIVE SPIRIT PANEL
========================================================= */

@media screen and (max-width: 820px) {
    .spirit-panel {
        grid-template-columns: 1fr;
    }
}