:root {
    --bg-main: #101018;
    --bg-alt: #181824;
    --accent: #f1c45b;
    --accent-soft: #e09c3a;
    --text-main: #f4f4f4;
    --text-muted: #b4b7d3;
    --danger: #ff4c7b;
    --pixel-border: 4px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #222240 0, #101018 50%, #050508 100%);
    color: var(--text-main);
}

/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: rgba(5, 5, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: var(--pixel-border) solid #000;
    z-index: 1000;
}

.navbar__logo {
    font-family: "Press Start 2P", system-ui;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

.navbar__nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.75rem;
}

.navbar__nav a {
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.35rem 0.7rem;
    border: 2px solid transparent;
}

.navbar__nav a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* HERO */

.hero {
    min-height: 100vh;
    padding: 120px 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #18263d 0, #05060d 55%, #020308 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08) 0, transparent 60%),
                      radial-gradient(circle at 80% 10%, rgba(255,255,255,0.06) 0, transparent 55%);
    opacity: 0.5;
    pointer-events: none;
}

.hero__inner {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-family: "Press Start 2P", system-ui;
    font-size: 1.4rem;
    line-height: 1.5;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero__title-highlight {
    color: var(--accent);
}

.hero__tagline {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border-radius: 0;
    border: var(--pixel-border) solid #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
    font-family: "Press Start 2P", system-ui;
}

.btn--primary {
    background: var(--accent);
    color: #2b1200;
    box-shadow: 0 0 0 4px #000, 0 0 16px rgba(241, 196, 91, 0.7);
}

.btn--primary:hover {
    background: var(--accent-soft);
    transform: translate(-2px, -2px);
}

.btn--ghost {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn--ghost:hover {
    background: rgba(241, 196, 91, 0.12);
    transform: translate(-2px, -2px);
}

.hero__meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hero__art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__screen {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #234063, #101826);
    border: var(--pixel-border) solid #000;
    box-shadow: 0 0 0 4px #000, 0 0 28px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__screen-inner {
    text-align: center;
    padding: 1.5rem;
}

.hero__sprite {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #4c3f91, #f1c45b);
    image-rendering: pixelated;
    border: var(--pixel-border) solid #000;
}

.hero__screen-title {
    font-family: "Press Start 2P", system-ui;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: #f7f7e5;
}

.hero__screen-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hero__screen-cta {
    font-size: 0.65rem;
    color: var(--accent);
}

/* SECTIONS */

.section {
    padding: 4rem 1.5rem;
}

.section--alt {
    background: var(--bg-alt);
    border-top: var(--pixel-border) solid #000;
    border-bottom: var(--pixel-border) solid #000;
}

.section__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section__title {
    font-family: "Press Start 2P", system-ui;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section__subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.section__subtitle--small {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.body-small {
    font-size: 0.85rem;
    color: var(--text-main);
}

/* HISTOIRE */

.story-box {
    max-width: 720px;
    background: #05050a;
    border: var(--pixel-border) solid #000;
    box-shadow: 0 0 0 4px #000, 0 0 18px rgba(0, 0, 0, 0.7);
    padding: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.story-box::before {
    content: "◆ DIALOGUE";
    position: absolute;
    top: -1.2rem;
    left: 0.75rem;
    font-family: "Press Start 2P", system-ui;
    font-size: 0.55rem;
    background: #05050a;
    padding: 0.2rem 0.4rem;
    border: 2px solid #000;
}

.story-box__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.7rem;
}

.story-box__choice {
    padding: 0.4rem 0.75rem;
    border: 2px solid var(--accent);
    color: var(--accent);
    cursor: default;
}

/* FEATURES / GAMEPLAY */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: #05050a;
    border: var(--pixel-border) solid #000;
    padding: 1rem;
    box-shadow: 0 0 0 4px #000;
    font-size: 0.9rem;
}

.feature-card__title {
    font-family: "Press Start 2P", system-ui;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.feature-card__icon {
    font-size: 1.2rem;
    margin-right: 0.4rem;
}

/* GALERIE */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.gallery-item {
    background: #05050a;
    border: var(--pixel-border) solid #000;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 4px #000;
}

.gallery-item__label {
    position: absolute;
    bottom: 0.35rem;
    left: 0.35rem;
    font-family: "Press Start 2P", system-ui;
    font-size: 0.55rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.15rem 0.35rem;
}

/* TÉLÉCHARGEMENT */

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* TRAILER */

.trailer-frame {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border: var(--pixel-border) solid #000;
    box-shadow: 0 0 0 4px #000;
    background: #000;
}

.trailer-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
}

/* NEWSLETTER */

.save-box {
    max-width: 520px;
    background: #05050a;
    border: var(--pixel-border) solid #000;
    box-shadow: 0 0 0 4px #000;
    padding: 1.5rem;
    font-size: 0.9rem;
}

.save-box__title {
    font-family: "Press Start 2P", system-ui;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.save-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.save-form input[type="email"] {
    flex: 1 1 180px;
    padding: 0.6rem 0.7rem;
    border-radius: 0;
    border: var(--pixel-border) solid #000;
    background: #151525;
    color: var(--text-main);
    font-size: 0.8rem;
}

.save-form button {
    border-radius: 0;
    border: var(--pixel-border) solid #000;
    background: var(--accent);
    color: #2b1200;
    padding: 0.6rem 1rem;
    font-family: "Press Start 2P", system-ui;
    font-size: 0.7rem;
    text-transform: uppercase;
    cursor: pointer;
}

.save-form button:hover {
    background: var(--accent-soft);
}

/* ABOUT / PRESS */

.two-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2rem;
}

.press-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.press-list li + li {
    margin-top: 0.4rem;
}

.press-list a {
    color: var(--accent);
    text-decoration: none;
}

.press-list a:hover {
    text-decoration: underline;
}

/* FOOTER */

footer {
    padding: 1.5rem;
    border-top: var(--pixel-border) solid #000;
    background: #05050a;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-menu {
    margin-bottom: 0.5rem;
}

.footer-menu span {
    margin: 0 0.5rem;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 96px;
    }

    .navbar__nav {
        display: none; /* tu pourras ajouter un burger menu ici */
    }
}

@media (max-width: 600px) {
    .hero__title {
        font-size: 1.1rem;
    }

    .section {
        padding: 3rem 1rem;
    }
}
