/* =========================
   RESET GLOBAL
   ========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top, rgba(66, 140, 77, 0.35), transparent 35%),
        linear-gradient(135deg, #101510, #1d2b1d);
    color: #f4f4f4;
    min-height: 100vh;
}

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

/* =========================
   MENU GLOBAL INJECTÉ PAR menu.js
   ========================= */

/*
    Le menu vient de /menu.js.
    Ces classes sont donc obligatoires ici aussi,
    sinon le logo et les liens du menu s'affichent mal.
*/

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 12, 7, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(94, 219, 99, 0.25);
}

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

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

/*
    IMPORTANT :
    C'est cette règle qui empêche le logo du menu
    de devenir énorme.
*/
.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(94, 219, 99, 0.55));
}

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

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

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

.nav-links a:hover {
    color: #80ff84;
    text-shadow: 0 0 12px rgba(128, 255, 132, 0.45);
}

/* Lien des jeux : Minecraft, BFME2, etc. */
.nav-links a.game-link {
    color: #39ff88;
}

.nav-links a.game-link:hover {
    color: #8dffbd;
    text-shadow: 0 0 14px rgba(57, 255, 136, 0.5);
}

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

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #f4fff4;
    margin: 5px auto;
}

/* =========================
   CONTENU PAGE MINECRAFT
   ========================= */

.page {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    padding: 40px 0;
}

.hero {
    text-align: center;
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(94, 168, 85, 0.6);
    border-radius: 24px;
    padding: 45px 25px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.45);
}

/*
    Logo dans la section principale.
    Celui-ci est volontairement plus grand que le logo du menu.
*/
.logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(104, 255, 104, 0.35));
}

h1 {
    font-size: 3rem;
    margin-bottom: 12px;
    color: #9cff8f;
    text-shadow: 0 0 12px rgba(107, 255, 107, 0.35);
}

.subtitle {
    font-size: 1.2rem;
    color: #d8ffd5;
    margin-bottom: 30px;
}

.buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 12px;
    padding: 14px 24px;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

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

.primary {
    background: #5edb63;
    color: #102010;
    box-shadow: 0 0 15px rgba(94, 219, 99, 0.45);
}

.primary:hover {
    background: #80ff84;
    box-shadow: 0 0 25px rgba(128, 255, 132, 0.55);
}

.secondary {
    background: #2b3d2b;
    color: #e7ffe4;
    border: 1px solid #6fdc6f;
}

.secondary:hover {
    background: #395739;
    box-shadow: 0 0 20px rgba(111, 220, 111, 0.3);
}

/* =========================
   BLOC CODE CURSEFORGE
   ========================= */

.import-box {
    max-width: 480px;
    margin: auto;
    background: rgba(20, 35, 20, 0.8);
    border: 1px solid rgba(130, 255, 130, 0.35);
    border-radius: 16px;
    padding: 20px;
}

.import-box p {
    margin-bottom: 10px;
    color: #d8ffd5;
}

.code-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

code {
    background: #0c130c;
    color: #9cff8f;
    border: 1px solid #4fa94f;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.copy-btn {
    border: none;
    background: #5edb63;
    color: #102010;
    font-weight: bold;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
}

.copy-btn:hover {
    background: #80ff84;
}

.copy-message {
    margin-top: 12px;
    color: #9cff8f;
    font-weight: bold;
    min-height: 20px;
}

/* =========================
   TUTORIEL / INFOS
   ========================= */

.tutorial,
.info {
    margin-top: 35px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(120, 255, 120, 0.25);
    border-radius: 20px;
    padding: 30px;
}

h2 {
    color: #9cff8f;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.steps {
    display: grid;
    gap: 15px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(30, 50, 30, 0.8);
    border-radius: 14px;
    padding: 15px;
}

.step span {
    min-width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #5edb63;
    color: #102010;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.step p {
    color: #f0fff0;
    line-height: 1.5;
}

.info p {
    color: #e4ffe2;
    line-height: 1.6;
    margin-bottom: 12px;
}

.warning {
    color: #ffe28a;
    font-weight: bold;
}

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

@media screen and (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, 25, 13, 0.98);
        border: 1px solid rgba(94, 219, 99, 0.35);
        border-radius: 18px;
        overflow: hidden;
    }

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

    .nav-links a {
        padding: 16px 18px;
        border-bottom: 1px solid rgba(94, 219, 99, 0.18);
    }
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .code-line {
        flex-direction: column;
    }

    code {
        width: 100%;
        font-size: 1.1rem;
    }

    .copy-btn {
        width: 100%;
    }
}