/* ------------------------------ */
/* BASE */
/* ------------------------------ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #05060a;
    color: #e5e9f5;
}

/* ------------------------------ */
/* TOPBAR */
/* ------------------------------ */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(5, 6, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1b2030;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    color: #4fd36b;
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #b3b9d4;
    font-weight: 500;
    font-size: 14px;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #4fd36b;
}

.nav-download {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #4fd36b;
}

/* ------------------------------ */
/* HERO (FOND MINECRAFT ANIMÉ) */
/* ------------------------------ */

.hero {
    position: relative;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
}

/* Image Minecraft animée */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("images/minecraft-landscape.png");
    background-size: cover;
    background-repeat: repeat-x;
    background-position: center;
    animation: scroll-bg 40s linear infinite;
    filter: brightness(0.55);
}

/* Voile sombre */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.1), rgba(0,0,0,0.85));
}

/* Contenu */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    text-align: center;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(79, 211, 107, 0.6);
}

.hero-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #c3c8e5;
}

.hero-buttons {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Animation du fond */
@keyframes scroll-bg {
    from {
        background-position: 0 center;
    }
    to {
        background-position: -1400px center;
    }
}

/* ------------------------------ */
/* SECTIONS */
/* ------------------------------ */

.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 40px;
}

.section h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #4fd36b;
    text-shadow: 0 0 8px rgba(79, 211, 107, 0.4);
}

.section p {
    font-size: 15px;
    line-height: 1.7;
    color: #c3c8e5;
}

/* ------------------------------ */
/* CARDS */
/* ------------------------------ */

.cards-grid {
    background: #0b0d14;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid #1b2030;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: #11141d;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #23293a;
    transition: 0.2s ease;
}

.card h3 {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 16px;
    color: #e5e9f5;
}

.card p {
    font-size: 14px;
    color: #b3b9d4;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.8);
    border-color: #4fd36b;
}

/* Cartes avec images */
.image-card {
    text-align: center;
}

.image-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* ------------------------------ */
/* BOUTONS */
/* ------------------------------ */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

.primary {
    background: #4fd36b;
    color: #05060a;
}

.primary:hover {
    background: #3aa653;
}

.secondary {
    background: transparent;
    color: #4fd36b;
    border: 1px solid #4fd36b;
}

.secondary:hover {
    background: rgba(79, 211, 107, 0.1);
}

/* ------------------------------ */
/* DOWNLOAD SECTION */
/* ------------------------------ */

.download-section {
    text-align: center;
}

/* ------------------------------ */
/* FOOTER */
/* ------------------------------ */

.footer {
    margin-top: 40px;
    padding: 20px 40px;
    text-align: center;
    font-size: 13px;
    color: #7a8194;
    border-top: 1px solid #1b2030;
    background: #05060a;
}

/* ------------------------------ */
/* RESPONSIVE */
/* ------------------------------ */

@media (max-width: 768px) {
    .topbar {
        padding: 10px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero {
        padding: 30px 20px;
        height: auto;
    }

    .section {
        padding: 30px 20px;
    }
}
