@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #00dc82;       /* Vert Fintech vibrant */
    --primary-dark: #00b368;
    --bg-dark: #0f172a;       /* Bleu nuit profond */
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================
   2. FOND ANIMÉ (AURORA)
   ========================================= */
.aurora-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background: #0f172a;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 10s infinite alternate;
}

.blob-1 {
    top: -10%; left: -10%; width: 50vw; height: 50vw;
    background: #4f46e5;
}

.blob-2 {
    bottom: -10%; right: -10%; width: 60vw; height: 60vw;
    background: #00dc82;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.1); }
}

/* =========================================
   3. NAVIGATION (Menu)
   ========================================= */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(15px);
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
}

.nav-flex {
    display: flex; justify-content: space-between; align-items: center;
}

/* Liens Desktop */
.nav-links {
    display: flex; align-items: center; gap: 30px;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}
.nav-links a:hover { color: white; color: var(--primary); }

.logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none;
    z-index: 1002; /* Toujours au dessus du menu mobile */
    position: relative;
}

/* Hamburger (Caché sur Desktop) */
.hamburger { display: none; font-size: 1.5rem; color: white; cursor: pointer; z-index: 1002; }

/* =========================================
   4. SECTION HERO (Accueil)
   ========================================= */
.hero {
    padding-top: 140px; padding-bottom: 80px;
    min-height: 100vh;
    display: flex; align-items: center;
}

.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}

h1 {
    font-size: 3.5rem; line-height: 1.1; margin-bottom: 25px; font-weight: 800;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(to right, #00dc82, #2dd4bf);
    -webkit-background-clip: text; color: transparent;
}

/* Phone Mockup */
.phone-container {
    position: relative; display: flex; justify-content: center;
}

.glass-phone {
    width: 300px; height: 600px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    padding: 20px;
    transform: rotate(-5deg);
    transition: 0.5s ease;
}
.glass-phone:hover { transform: rotate(0) scale(1.02); }

.phone-ui {
    display: flex; flex-direction: column; height: 100%; color: white;
}

.ui-card {
    background: rgba(255,255,255,0.05);
    padding: 15px; border-radius: 12px; margin-bottom: 10px;
    display: flex; align-items: center; gap: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}
.ui-card.active {
    background: rgba(0, 220, 130, 0.1); border-color: rgba(0, 220, 130, 0.3);
}

/* =========================================
   5. AUTHENTIFICATION (Login / Register)
   ========================================= */
.auth-wrapper {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    position: relative; z-index: 10;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    width: 100%; max-width: 420px;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    color: #1e293b;
}

.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header a { color: #0f172a; text-decoration:none; font-weight:800; font-size:1.5rem; } 
.auth-header h2 { color: #0f172a; font-weight: 800; font-size: 1.5rem; margin-top:10px; }

.form-group { margin-bottom: 20px; text-align:left; }
.form-label {
    display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: #334155;
}
.form-input {
    width: 100%; padding: 12px;
    border: 1px solid #cbd5e1; border-radius: 10px;
    font-size: 1rem; background: #f8fafc; color: #0f172a;
    transition: 0.3s;
}
.form-input:focus {
    outline: none; border-color: var(--primary); background: white;
    box-shadow: 0 0 0 4px rgba(0, 220, 130, 0.15);
}

.btn-glow {
    background: var(--primary);
    color: #064e3b;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 15px rgba(0, 220, 130, 0.3);
    border: none; cursor: pointer; font-size: 1rem;
    transition: 0.3s;
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 220, 130, 0.5);
    background: #00ef8d;
}
.btn-block { width: 100%; text-align: center; }

/* =========================================
   6. GRID FEATURES
   ========================================= */
.section-padding { padding: 80px 20px; }

.bento-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}

.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px; border-radius: 20px;
    transition: 0.3s;
}
.feature-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.icon-box {
    width: 45px; height: 45px;
    background: linear-gradient(135deg, #00dc82, #00b368);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: white; margin-bottom: 20px;
}

footer {
    background: #020617; border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 20px; margin-top: 50px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
footer a {
    display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 10px; font-size:0.9rem;
}
footer a:hover { color: var(--primary); }

/* Animation Scroll */
.hidden { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.show { opacity: 1; transform: translateY(0); }

/* =========================================
   7. RESPONSIVE (MOBILE FIX)
   ========================================= */
@media (max-width: 900px) {
    /* Navbar Mobile */
    .hamburger { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0; right: -100%; /* Caché à droite */
        width: 100%; height: 100vh;
        background: rgba(15, 23, 42, 0.98); /* Fond opaque */
        flex-direction: column; /* Empiler les liens */
        justify-content: center;
        transition: 0.4s ease-in-out;
        box-shadow: none;
        padding-bottom: 50px;
        
        /* Correction Flex pour centrer */
        display: flex; 
    }
    
    .nav-links.active { right: 0; } /* Afficher */
    
    .nav-links a {
        font-size: 1.5rem; margin: 15px 0; display: block;
    }

    /* Hero Mobile */
    .hero { 
        padding-top: 100px; 
        padding-bottom: 50px;
        flex-direction: column; 
        text-align: center;
    }
    
    .hero-grid { 
        grid-template-columns: 1fr; /* Une colonne */
        gap: 40px; 
    }
    
    h1 { font-size: 2.2rem; }
    
    /* Boutons Hero centrés */
    .hero-grid div[style*="display:flex"] {
        justify-content: center !important;
    }

    /* Téléphone plus petit sur mobile */
    .glass-phone {
        width: 260px; height: 500px;
        transform: rotate(0); /* Droit sur mobile */
    }
    
    /* Footer empilé */
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
}