:root {
    /* --- Couleurs Raffinées --- */
    --bg-deep: #08080a;       
    --bg-surface: #0f1012;    
    --bg-card: #151518;       
    
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0; 
    --text-tertiary: #666666;
    
    /* --- Accent Neon "Perfcore" --- */
    --accent: #00A9FF; 
    --accent-glow: rgba(0, 169, 255, 0.5);
    --accent-dim: rgba(0, 169, 255, 0.12);
    
    /* --- Structure --- */
    --border: rgba(255, 255, 255, 0.06); 
    --font-main: 'Inter', sans-serif;
    --nav-height: 80px;
    --container-width: 1140px; 
}

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body { 
    font-family: var(--font-main); 
    background-color: var(--bg-deep); 
    color: var(--text-primary); 
    line-height: 1.7; 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; 
}

/* === TYPOGRAPHIE === */
h1 { font-size: 4.2rem; font-weight: 800; letter-spacing: -2px; line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: 2.8rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 24px; }
h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 20px; }

.text-highlight { 
    background: linear-gradient(90deg, #fff, var(--accent)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    filter: drop-shadow(0 0 20px rgba(0, 169, 255, 0.3)); 
}
.text-mute { color: var(--text-tertiary); font-weight: 400; }
.section-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px; color: var(--text-tertiary); font-weight: 700; margin-bottom: 40px; }
.center { text-align: center; }

/* === LAYOUT & ESPACEMENT === */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
section { padding: 160px 0; border-bottom: 1px solid var(--border); } 

/* === NAVBAR === */
.navbar { position: fixed; width: 100%; top: 0; z-index: 1000; height: var(--nav-height); background: rgba(8, 8, 10, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-size: 1.6rem; font-weight: 900; color: #fff; text-decoration: none; letter-spacing: -1px; }
.logo span { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 40px; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* Bouton Désactivé (Login) */
.btn-login.disabled {
    color: var(--text-tertiary);
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
    font-size: 0.85rem; font-weight: 600; padding: 10px 18px; border-radius: 8px;
    cursor: not-allowed; display: flex; align-items: center; gap: 8px;
}

/* === HERO SECTION === */
#hero { position: relative; padding-top: 180px; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; align-items: center; }

.hero-bg-animation {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.3;
    background: radial-gradient(circle at 50% 30%, rgba(0, 169, 255, 0.15) 0%, transparent 60%);
    filter: blur(60px);
    animation: moveBackground 20s ease infinite alternate;
}
@keyframes moveBackground { 0% { transform: scale(1); } 100% { transform: scale(1.1) translate(-20px, 20px); } }

.hero-container { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-content { max-width: 700px; margin-bottom: 80px; }

/* Status Pill */
.status-pill { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 189, 46, 0.1); color: #FFBD2E; font-size: 0.85rem; font-weight: 700; padding: 8px 18px; border-radius: 100px; margin-bottom: 30px; border: 1px solid rgba(255, 189, 46, 0.2); }
.dot-orange { width: 8px; height: 8px; background: #FFBD2E; border-radius: 50%; box-shadow: 0 0 10px rgba(255, 189, 46, 0.4); display: inline-block; }

.hero-sub { font-size: 1.2rem; line-height: 1.6; margin-bottom: 40px; color: var(--text-secondary); max-width: 600px; margin-left: auto; margin-right: auto; }

/* === FORMULAIRE NEWSLETTER === */
.hero-form { max-width: 550px; margin: 0 auto; width: 100%; }

.input-wrapper { 
    display: flex; 
    align-items: center; /* Centre verticalement */
    gap: 6px; 
    padding: 6px; 
    background: rgba(255,255,255,0.03); 
    border: 1px solid var(--border); 
    border-radius: 60px; 
    transition: all 0.3s; 
    position: relative; /* Sécurité */
}

.input-wrapper:focus-within { 
    border-color: var(--accent); 
    box-shadow: 0 0 30px var(--accent-dim); 
    background: rgba(0, 169, 255, 0.02); 
}

.hero-form input { 
    flex: 1; /* Prend toute la place disponible */
    min-width: 0; /* Empêche l'input de forcer la largeur */
    background: none; 
    border: none; 
    padding: 12px 20px; 
    color: #fff; 
    font-size: 1.05rem; 
    outline: none; 
}

.cta-button { 
    background: var(--accent); 
    color: #08080a; 
    border: none; 
    padding: 14px 24px; /* Padding ajusté */
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 1rem; 
    cursor: pointer; 
    transition: all 0.3s; 
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
    flex-shrink: 0; /* Empêche le bouton de s'écraser */
}

.cta-button:hover { 
    background: #33BAFF; 
    transform: translateY(-2px); 
    box-shadow: 0 10px 30px var(--accent-glow); 
}

.meta-text { font-size: 0.9rem; color: var(--text-tertiary); margin-top: 18px; }

/* === DASHBOARD PREVIEW === */
.dashboard-preview { width: 100%; max-width: 1000px; perspective: 2000px; margin-top: 20px; padding-bottom: 50px; }
.window-frame {
    background: rgba(22, 22, 24, 0.8); backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8);
    overflow: hidden; 
    transform: rotateX(5deg); 
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.window-frame:hover { transform: rotateX(0deg) translateY(-10px) scale(1.01); }

.window-header { height: 46px; background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 20px; position: relative; }
.window-controls { display: flex; gap: 8px; }
.window-controls span { width: 12px; height: 12px; border-radius: 50%; background: #333; }
.window-controls span:nth-child(1) { background: #FF5F56; }
.window-controls span:nth-child(2) { background: #FFBD2E; }
.window-controls span:nth-child(3) { background: #27C93F; }
.window-address { position: absolute; left: 0; right: 0; text-align: center; color: var(--text-tertiary); font-size: 0.8rem; font-family: monospace; opacity: 0.6; }

.window-body { display: flex; height: 520px; }
.ui-sidebar { width: 80px; border-right: 1px solid var(--border); padding: 30px 0; display: flex; flex-direction: column; align-items: center; gap: 24px; background: rgba(0,0,0,0.2); }
.ui-nav-item { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.05); }
.ui-nav-item.active { background: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }

.ui-main { flex: 1; padding: 40px; background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent); }
.ui-top-bar { display: flex; justify-content: flex-end; margin-bottom: 30px; }
.ui-user { width: 40px; height: 40px; border-radius: 50%; background: #222; border: 1px solid var(--border); }

.ui-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 180px 180px; gap: 24px; }
.ui-card { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.big-graph { grid-column: 1 / 2; grid-row: 1 / 3; }
.ui-card-title { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; font-weight: 600; }

/* Graph Elements */
.chart-container { flex: 1; display: flex; align-items: flex-end; position: relative; }
.chart-line { 
    width: 100%; height: 100%; 
    background: linear-gradient(90deg, transparent, var(--accent-dim));
    clip-path: polygon(0 80%, 20% 60%, 40% 70%, 60% 30%, 80% 40%, 100% 10%, 100% 100%, 0 100%);
    opacity: 0.3;
}
.chart-line::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-top: 2px solid var(--accent);
    clip-path: polygon(0 80%, 20% 60%, 40% 70%, 60% 30%, 80% 40%, 100% 10%, 100% 12%, 80% 42%, 60% 32%, 40% 72%, 20% 62%, 0 82%);
    filter: drop-shadow(0 0 6px var(--accent));
}
.chart-scanline { position: absolute; top: 0; left: 0; width: 1px; height: 100%; background: rgba(255,255,255,0.5); box-shadow: 0 0 15px #fff; animation: scan 4s infinite linear; }
@keyframes scan { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.metric-value { font-size: 2.2rem; font-weight: 800; color: #fff; margin-top: auto; }
.trend { font-size: 0.8rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; vertical-align: middle; margin-left: 10px; }
.trend.positive { color: #08080a; background: #27C93F; }
.trend.ok { color: var(--accent); background: var(--accent-dim); border: 1px solid var(--accent); }
.pulse-text { animation: pulseText 2s infinite; }
@keyframes pulseText { 50% { opacity: 0.6; transform: scale(0.95); } }

/* === PARTNERS === */
.partners-section { padding: 60px 0; border-bottom: 1px solid var(--border); background: #050507; }
.partners-grid { display: flex; justify-content: center; gap: 80px; opacity: 0.5; filter: grayscale(100%) brightness(10); }
.partners-grid img { height: 30px; }

/* === GRID CARDS === */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.feature-card { padding: 40px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; transition: all 0.3s; }
.feature-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.card-icon { font-size: 2.5rem; margin-bottom: 25px; display: inline-block; }

/* === STEPS === */
.steps-wrapper { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
.step-row { display: flex; gap: 40px; padding: 40px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; align-items: flex-start; }
.step-num { font-size: 1.2rem; font-weight: 900; color: #08080a; background: #fff; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.active-step { border-color: var(--accent); background: linear-gradient(90deg, var(--accent-dim), var(--bg-card)); }
.active-step .step-num { background: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.step-content h3 { margin: 0 0 15px 0; font-size: 1.4rem; }

/* === PRICING GRID === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.price-card.basic:hover { border-color: rgba(255,255,255,0.2); }

.price-card.elite {
    background: linear-gradient(145deg, #1a1a1c, #0d0d0f);
    border: 1px solid rgba(0, 169, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: scale(1.02); 
    z-index: 2;
}
.price-card.elite:hover {
    box-shadow: 0 30px 60px rgba(0, 169, 255, 0.1);
    border-color: var(--accent);
}

.popular-tag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #000; font-weight: 800; font-size: 0.75rem;
    padding: 6px 16px; border-radius: 20px; letter-spacing: 1px;
    box-shadow: 0 0 15px var(--accent-glow);
}

.card-header { margin-bottom: 30px; text-align: center; border-bottom: 1px solid var(--border); padding-bottom: 30px; }
.plan-name { font-size: 1.5rem; color: #fff; margin-bottom: 10px; }
.plan-desc { font-size: 0.95rem; color: var(--text-tertiary); margin: 0; }
.price-tag { font-size: 3.5rem; color: #fff; font-weight: 800; margin: 15px 0; }
.price-tag .currency { font-size: 1.5rem; vertical-align: super; color: var(--text-secondary); }
.price-tag .period { font-size: 1rem; color: var(--text-tertiary); font-weight: 500; margin-left: 5px; }

.spec-list { list-style: none; margin-bottom: 40px; flex: 1; }
.spec-list li { margin-bottom: 15px; font-size: 1rem; color: var(--text-secondary); display: flex; align-items: center; gap: 12px; }
.spec-list li::before { content: '✓'; color: var(--accent); font-weight: 900; }
.spec-list li.disabled { color: var(--text-tertiary); opacity: 0.6; text-decoration: line-through; }
.spec-list li.disabled::before { content: '×'; color: var(--text-tertiary); }

.btn-outline {
    display: block; width: 100%; text-align: center; padding: 16px;
    border: 1px solid var(--border); border-radius: 12px;
    color: #fff; text-decoration: none; font-weight: 600;
    transition: 0.3s;
}
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: #fff; }

.btn-block {
    display: block; width: 100%; text-align: center; padding: 16px;
    background: var(--accent); color: #08080a; border-radius: 12px;
    text-decoration: none; font-weight: 700;
    transition: 0.3s; box-shadow: 0 5px 20px var(--accent-dim);
}
.btn-block:hover { background: #fff; box-shadow: 0 10px 30px rgba(255,255,255,0.2); }

/* === ROADMAP === */
.timeline { display: flex; justify-content: space-between; position: relative; max-width: 700px; margin: 40px auto 0; }
.timeline::before { content: ''; position: absolute; top: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.timeline-item { position: relative; z-index: 1; background: var(--bg-deep); padding: 0 25px; text-align: center; }
.timeline-item .time { display: block; font-size: 0.95rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.timeline-item .desc { font-size: 0.9rem; color: var(--text-tertiary); }
.timeline-item.current .time { color: var(--accent); text-shadow: 0 0 15px var(--accent-glow); }
.ping { position: absolute; top: -5px; right: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ping 2s infinite; opacity: 0.7; }
@keyframes ping { 100% { transform: scale(3); opacity: 0; } }

/* === FOOTER & TOAST === */
.footer-flex { padding: 60px 24px; border-top: 1px solid var(--border); background: #050507; display: flex; justify-content: space-between; color: var(--text-tertiary); font-size: 0.9rem; }
.legal-col a { color: var(--text-tertiary); text-decoration: none; margin-left: 20px; transition: 0.3s; }
.legal-col a:hover { color: #fff; }

#toast { visibility: hidden; position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); background: #161616; color: #fff; padding: 14px 28px; border-radius: 50px; border: 1px solid var(--accent); font-weight: 500; font-size: 1rem; box-shadow: 0 10px 40px -10px var(--accent-glow); display: flex; align-items: center; gap: 12px; z-index: 2000; transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); opacity: 0; }
#toast svg { fill: var(--accent); width: 22px; }
#toast.show { visibility: visible; transform: translateX(-50%) translateY(0); opacity: 1; }

/* === ANIMATIONS & RESPONSIVE === */
.reveal { opacity: 0; transform: translateY(50px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.fade-in-up { animation: fadeInUp 0.8s forwards; opacity: 0; }
.delay-100 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; transition-delay: 0.2s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* === MOBILE OPTIMIZATION === */
@media (max-width: 900px) {
    /* Global */
    h1 { font-size: 2.8rem; line-height: 1.1; margin-bottom: 15px; }
    h2 { font-size: 2rem; }
    .container { padding: 0 20px; }
    section { padding: 80px 0; }

    /* Navbar */
    .nav-links { display: none; }
    .btn-login.disabled { margin-left: auto; }
    .nav-container { justify-content: space-between; }

    /* Hero */
    #hero { padding-top: 120px; min-height: auto; padding-bottom: 60px; }
    .hero-sub { font-size: 1rem; padding: 0 10px; }
    
    /* Form - Correction Mobile */
    .input-wrapper { 
        flex-direction: column; /* Empile les éléments */
        background: transparent; /* Enlève le fond gris global */
        border: none; /* Enlève la bordure globale */
        padding: 0; 
        gap: 15px; 
        box-shadow: none !important; /* Enlève l'effet de focus global */
    }

    .hero-form input { 
        background: rgba(255,255,255,0.05); 
        border: 1px solid var(--border); 
        border-radius: 12px; 
        padding: 16px; 
        width: 100%; 
        text-align: center;
        margin-bottom: 0; /* Sécurité */
    }
    
    .hero-form input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 15px var(--accent-dim);
    }

    .cta-button { 
        width: 100%; 
        padding: 16px; 
        transform: none !important; /* Évite les bugs de hover sur mobile */
    }

    /* Dashboard Mobile Fix */
    .dashboard-preview { margin-top: 40px; width: 100%; max-width: 100%; perspective: none; }
    
    .window-frame {
        transform: none !important; 
        width: 100%; margin: 0; height: auto;
    }
    .window-frame:hover { transform: none; }

    .window-body { flex-direction: column; height: auto; }

    .ui-sidebar {
        width: 100%; height: auto; flex-direction: row; justify-content: center;
        border-right: none; border-bottom: 1px solid var(--border); padding: 15px;
    }

    .ui-main { padding: 20px; }
    .ui-top-bar { display: none; }

    .ui-grid { display: flex; flex-direction: column; gap: 15px; }
    .big-graph { height: 200px; }

    /* Grid Layouts */
    .grid-3 { grid-template-columns: 1fr; gap: 30px; }
    
    /* Pricing Mobile */
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .price-card.elite { transform: none; margin-top: 20px; }
    
    /* Method Steps */
    .step-row { flex-direction: column; gap: 20px; text-align: center; align-items: center; padding: 30px 20px; }
    
    /* Roadmap */
    .timeline { flex-direction: column; gap: 40px; align-items: center; }
    .timeline::before { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }

    /* Partners */
    .partners-grid { gap: 40px; flex-wrap: wrap; }
    
    /* Footer */
    .footer-flex { flex-direction: column; gap: 30px; text-align: center; }
    .legal-col { display: flex; flex-direction: column; gap: 15px; }
    .legal-col a { margin: 0; }
}