/* Reset et setup global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #f1f1f1;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url('cursor.cur'), auto;
    scroll-behavior: smooth;
}

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

h1, h2, h3 {
    font-weight: 700;
    text-transform: uppercase;
}

.cta-button {
    display: inline-block;
    background: #ff0033;
    color: white;
    padding: 1em 2em;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #cc002a;
    transform: scale(1.05);
}

/* Header navbar */
.nav {
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #ff0033;
}

.nav .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff0033;
}

.nav nav a {
    margin-left: 2rem;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav nav a:hover {
    color: #ff0033;
}

/* Hero section */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(to right, #0f0f0f, #1c1c1c);
    animation: fadeIn 1.5s ease-out;
    position: relative;
    overflow: hidden;
}

/* Fond animé */
.hero::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200%;
    height: 200%;
    background-image: url('../assets/img/bg_hero_anim.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    filter: blur(20px);
    z-index: 0;
    animation: floatBackground 20s linear infinite alternate;
}

/* Pour que le texte reste visible */
.hero * {
    position: relative;
    z-index: 1;
}

/* Animation */
@keyframes floatBackground {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(30px, 20px);
    }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px #ff0033;
}

.hero-sub {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Features */
.features {
    padding: 4rem 2rem;
    background: #121212;
    text-align: center;
}

.features h2 {
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: #ff0033;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: auto;
}

.feature-card {
    background: #1f1f1f;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
}

.feature-card h3 {
    color: #ff0033;
    margin-bottom: 1rem;
}

/* Screenshots */
.screenshots {
    background: #0e0e0e;
    padding: 4rem 2rem;
    text-align: center;
}

.screenshots h2 {
    color: #ff0033;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.gallery img {
    width: 300px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 10px black;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Join */
.join {
    padding: 4rem 2rem;
    text-align: center;
    background: #1a1a1a;
}

.join h2 {
    color: #ff0033;
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* Footer */
footer {
    background: #0a0a0a;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #222;
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0px rgba(255,0,51,0.5); }
    50% { box-shadow: 0 0 15px rgba(255,0,51,0.7); }
}

/* Scrollbar custom */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #111;
}
::-webkit-scrollbar-thumb {
    background: #ff0033;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #cc002a;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .gallery img {
        width: 90%;
    }
    .nav nav a {
        margin-left: 1rem;
        font-size: 0.9rem;
    }
}