/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --bg: #09090b;
    --card-bg: #131315; /* Un poil plus foncé pour le contraste */
    --text: #e4e4e7;
    --text-muted: #a1a1aa;
    --border: #27272a;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --secondary: #ec4899;
    --green: #10b981;
    --yellow: #f59e0b;
    --red: #ef4444;
    --font-main: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
button { font-family: var(--font-main); cursor: pointer; }

/* =========================================
   ANIMATED BACKGROUND
   ========================================= */
/* La lueur ambiante en arrière-plan */
.ambient-light {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.08) 0%, rgba(9, 9, 11, 0) 60%);
    z-index: -1;
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active-reveal {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 3rem;
    position: fixed; top: 0; width: 100%;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
}

.logo { font-weight: 900; font-size: 1.3rem; letter-spacing: 1px; display: flex; align-items: center; gap: 0.5rem; }
.highlight { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 2rem; }

.nav-item {
    font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
    position: relative;
}

.nav-item::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -4px; left: 0; background-color: var(--accent);
    transition: width 0.3s ease;
}
.nav-item:hover { color: white; }
.nav-item:hover::after { width: 100%; }

.lang-switch { display: flex; gap: 5px; padding-right: 20px; border-right: 1px solid var(--border); margin-right: 10px; }
.lang-btn { background: none; border: none; color: var(--text-muted); font-weight: 700; font-size: 0.8rem; opacity: 0.6; transition: 0.2s; }
.lang-btn:hover { opacity: 1; color: white; }
.lang-btn.active { color: var(--accent); opacity: 1; text-decoration: underline; }
.sep { color: var(--border); font-size: 0.8rem; }

.cta-button {
    background: white; color: black; padding: 0.6rem 1.2rem;
    font-weight: 800; border-radius: 4px; font-size: 0.85rem;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(255,255,255,0.3); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto;
    padding: 10rem 2rem 6rem 2rem; gap: 4rem; min-height: 90vh;
}

.tagline {
    color: var(--accent); font-weight: 700; font-size: 0.8rem; margin-bottom: 1.5rem;
    letter-spacing: 2px; display: flex; align-items: center; gap: 10px;
}
.pulse-dot {
    width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    animation: pulse-purple 2s infinite;
}

h1 { font-size: 3.8rem; line-height: 1.1; font-weight: 900; margin-bottom: 1.5rem; letter-spacing: -1.5px; }
.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.subtitle { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 2.5rem; max-width: 500px; }
.hero-actions { display: flex; gap: 1rem; }

.btn-primary {
    background: var(--accent); color: white; padding: 0.9rem 1.8rem;
    border-radius: 6px; font-weight: 700; display: inline-block;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5); }

.btn-secondary {
    border: 1px solid var(--border); padding: 0.9rem 1.8rem;
    border-radius: 6px; color: var(--text-muted); font-weight: 600;
}
.btn-secondary:hover { border-color: var(--text); color: var(--text); background: rgba(255,255,255,0.05); }

/* TERMINAL ANIMATION */
.hero-visual { flex: 1; display: flex; justify-content: center; perspective: 1000px; }
.terminal-window {
    background: #0e0e10; border: 1px solid var(--border); border-radius: 8px;
    width: 100%; max-width: 480px; padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7); font-family: var(--font-mono); font-size: 0.9rem;
    position: relative;
    /* Floating effect */
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

.terminal-header { display: flex; gap: 8px; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: var(--red); } .yellow { background: var(--yellow); } .green { background: var(--green); }

.line { margin-bottom: 0.6rem; display: flex; gap: 8px; opacity: 0; animation: fadeInLine 0.5s forwards; }
.delay-1 { animation-delay: 0.8s; } .delay-2 { animation-delay: 1.6s; } .delay-3 { animation-delay: 2.4s; }

@keyframes fadeInLine { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }

.cmd { color: #c084fc; font-weight: bold; } .success { color: var(--green); }
.blink { animation: blink 1s infinite; color: var(--accent); font-weight: bold; opacity: 1 !important; }

/* =========================================
   SECTIONS & CARDS
   ========================================= */
.section { padding: 8rem 2rem; max-width: 1100px; margin: 0 auto; }
.dark-bg { background: rgba(12, 12, 14, 0.5); width: 100%; max-width: 100%; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-header h2 { font-size: 2.2rem; font-weight: 900; margin-bottom: 0.5rem; letter-spacing: -0.5px; }

/* Cards Grid */
.grid-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card {
    background: var(--card-bg); padding: 2.5rem; border-radius: 12px;
    border: 1px solid var(--border); transition: all 0.4s ease;
    position: relative; overflow: hidden;
}
.card:hover { border-color: var(--accent); transform: translateY(-8px); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), transparent 40%);
    opacity: 0; transition: 0.4s;
}
.card:hover::before { opacity: 1; }

.icon { font-size: 2.5rem; margin-bottom: 1.5rem; display: inline-block; transition: 0.3s; }
.card:hover .icon { transform: scale(1.1); }

/* =========================================
   ROADMAP & DETAILS
   ========================================= */
.roadmap-container { max-width: 700px; margin: 0 auto; border-left: 2px solid var(--border); padding-left: 2.5rem; }
.roadmap-item { position: relative; margin-bottom: 4rem; }
.marker {
    position: absolute; left: -2.95rem; top: 5px; width: 14px; height: 14px;
    border-radius: 50%; background: var(--bg); border: 2px solid var(--border);
    z-index: 10; transition: 0.3s;
}
.completed .marker { background: var(--green); border-color: var(--green); box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
.active .marker { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }
.pulse-marker { animation: pulse-purple 2s infinite; }

@keyframes pulse-purple { 0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); } }

.status-tag { font-size: 0.7rem; padding: 4px 8px; border-radius: 4px; font-weight: 800; text-transform: uppercase; background: #1f2937; color: var(--text-muted); display: inline-block; }
.status-tag.active { background: rgba(139, 92, 246, 0.15); color: var(--accent); border: 1px solid rgba(139, 92, 246, 0.3); }

.details-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
.detail-block { background: #121214; padding: 2rem; border-left: 3px solid var(--border); border-radius: 0 8px 8px 0; transition: 0.3s; }
.detail-block:hover { border-left-color: var(--accent); background: #161619; transform: translateX(5px); }
.info-box { background: rgba(16, 185, 129, 0.1); border-left: 3px solid var(--green); padding: 10px 15px; margin-bottom: 15px; color: #e4e4e7; border-radius: 0 4px 4px 0; }
.warning-box { background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.3); padding: 1rem; border-radius: 6px; margin-bottom: 1.5rem; font-size: 0.95rem; color: #ddd; }
.warning-text { color: var(--red); }
.white { color: white; font-weight: bold; text-decoration: underline; text-decoration-color: var(--accent); }

/* Alert Box Roadmap */
.alert-box { margin-top: 3rem; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); color: #fbbf24; padding: 1rem; border-radius: 6px; text-align: center; font-size: 0.9rem; max-width: 700px; margin-left: auto; margin-right: auto; }

/* =========================================
   FOOTER & RESPONSIVE
   ========================================= */
footer { text-align: center; padding: 4rem 2rem; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--border); background: #050505; }
.socials { margin-top: 1.5rem; display: flex; justify-content: center; gap: 2rem; }
.socials a { font-weight: 600; } .socials a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; padding: 1rem; position: relative; }
    .nav-links { flex-direction: column; gap: 1rem; width: 100%; text-align: center; }
    .hero { flex-direction: column; padding-top: 2rem; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-actions { justify-content: center; flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}