@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

:root {
    --primary-color: #00aaff;
    --background-color: #0a0a1a;
    --surface-color: #1a1a2a;
    --text-color: #e0e0e0;
    --header-font: 'Orbitron', sans-serif;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

#rain-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place it behind everything */
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--primary-color);
    box-sizing: border-box; /* Empêche le padding de causer un débordement */
}

.nav-brand {
    font-family: var(--header-font);
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-button-nav {
    background: var(--primary-color);
    color: var(--background-color) !important;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
}

.cta-button-nav:hover {
    background: #fff;
    color: var(--background-color) !important;
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.8);
    transform: scale(1.05);
}

/* --- Hero Section --- */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
    text-align: center;
    background: linear-gradient(rgba(10, 10, 26, 0.7), rgba(10, 10, 26, 1)), url('Capture d’écran (12).png') no-repeat center center/cover;
    color: #fff;
}

header h1 {
    font-family: var(--header-font);
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: backwards;
}

/* --- General Section Styling --- */
main {
    padding: 0;
    max-width: 100%;
}

section {
    padding: 5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    border-bottom: 1px solid #2a2a3a;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    font-family: var(--header-font);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* --- Features Section --- */
#features ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

#features li {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#features li:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 170, 255, 0.1);
}

/* --- Screenshots Section --- */
.screenshot-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.screenshot-gallery img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--surface-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.5);
}

/* --- CTA Button --- */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--background-color);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    font-weight: bold;
    font-family: var(--header-font);
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: fadeInUp 1s ease-out 1s;
    animation-fill-mode: backwards;
}

.cta-button:hover {
    background: #fff;
    transform: scale(1.05);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--surface-color);
    color: #aaa;
}

/* --- Animations --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
