/* =========================================
   CORE SETUP
   ========================================= */
:root {
    --bg-dark: #020617;
    --neon-blue: #0ea5e9;
    --neon-gold: #f59e0b;
    --neon-red: #ef4444;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    /* Motif "Honeycomb" subtil */
    background-image: radial-gradient(#1e293b 1px, transparent 1px);
    background-size: 30px 30px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   NAVBAR (GLASSMORPHISM)
   ========================================= */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

.logo { 
    font-size: 1.5rem; font-weight: 900; letter-spacing: 1px; 
    color: var(--text); display: flex; align-items: center; gap: 10px;
}
.pulse-icon { color: var(--neon-gold); animation: pulse 2s infinite; }

.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a { 
    font-size: 0.9rem; font-weight: 500; color: #94a3b8; transition: 0.3s; 
}
.nav-links a:hover { color: var(--neon-blue); text-shadow: 0 0 10px var(--neon-blue); }

.nav-cta {
    background: linear-gradient(45deg, var(--neon-blue), #3b82f6);
    padding: 10px 25px; border-radius: 50px; color: white !important;
    font-weight: 700 !important; box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}
.nav-cta:hover { transform: scale(1.05); }

/* =========================================
   HERO SECTION (IMPACT)
   ========================================= */
header {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; padding-top: 80px;
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.15), transparent 60%);
    z-index: -1;
}

.badge-new {
    background: rgba(245, 158, 11, 0.1); color: var(--neon-gold);
    border: 1px solid var(--neon-gold); padding: 5px 15px;
    border-radius: 20px; font-size: 0.8rem; font-weight: 700;
    display: inline-block; margin-bottom: 20px; letter-spacing: 1px;
}

h1 {
    font-size: 4.5rem; line-height: 1.1; font-weight: 900; margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(to right, var(--neon-gold), #fcd34d);
    -webkit-background-clip: text; color: transparent;
}

p { font-size: 1.2rem; color: #94a3b8; max-width: 600px; margin: 0 auto 40px; }

.hero-buttons { display: flex; gap: 20px; justify-content: center; }

.btn-primary {
    background: white; color: var(--bg-dark); padding: 15px 35px;
    border-radius: 8px; font-weight: 800; transition: 0.3s;
}
.btn-primary:hover { background: var(--neon-blue); color: white; }

.btn-outline {
    border: 1px solid rgba(255,255,255,0.2); color: white; padding: 15px 35px;
    border-radius: 8px; font-weight: 600; transition: 0.3s;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.05); }

/* Floating Stats */
.floating-stats {
    margin-top: 60px; display: flex; gap: 30px; justify-content: center;
}
.stat-bubble {
    background: var(--glass); border: 1px solid var(--border);
    padding: 10px 20px; border-radius: 50px; font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px; backdrop-filter: blur(5px);
}
.stat-bubble i { color: var(--neon-blue); }

/* =========================================
   FEATURES (HOLOCARDS)
   ========================================= */
section { padding: 100px 5%; }
.section-title {
    text-align: center; font-size: 2.5rem; margin-bottom: 60px;
}
.highlight { color: var(--neon-blue); }

.cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; max-width: 1200px; margin: 0 auto;
}

.holo-card {
    background: linear-gradient(145deg, rgba(30,41,59,0.4), rgba(15,23,42,0.6));
    border: 1px solid var(--border); border-radius: 20px;
    padding: 40px; transition: 0.4s; position: relative; overflow: hidden;
}

.holo-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-blue);
    box-shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.2);
}

.icon-box {
    width: 60px; height: 60px; border-radius: 15px; display: flex;
    align-items: center; justify-content: center; font-size: 1.5rem;
    margin-bottom: 20px;
}
.blue { background: rgba(14, 165, 233, 0.1); color: var(--neon-blue); }
.gold { background: rgba(245, 158, 11, 0.1); color: var(--neon-gold); }
.red { background: rgba(239, 68, 68, 0.1); color: var(--neon-red); }

.holo-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.holo-card p { color: #94a3b8; line-height: 1.6; }

/* =========================================
   DEMO SECTION
   ========================================= */
.split-layout {
    display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px;
    max-width: 1200px; margin: 0 auto;
}

.demo-text h2 { font-size: 3rem; line-height: 1.1; margin-bottom: 30px; }
.check-list li {
    margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; gap: 15px;
}
.check-list i { color: var(--neon-green); }

.btn-store {
    background: #fff; color: #000; display: inline-flex; align-items: center; gap: 15px;
    padding: 10px 25px; border-radius: 10px; margin-top: 30px; transition: 0.3s;
}
.btn-store:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(255,255,255,0.2); }
.btn-store i { font-size: 2rem; }
.btn-store div { display: flex; flex-direction: column; }
.btn-store span { font-size: 0.7rem; }

/* PHONE MOCKUP */
.phone-frame {
    width: 300px; height: 600px; border: 8px solid #334155; border-radius: 40px;
    margin: 0 auto; background: #0f172a; position: relative;
    box-shadow: 0 0 50px rgba(14, 165, 233, 0.1); overflow: hidden;
}
.phone-screen { padding: 20px; }
.screen-header { 
    display: flex; justify-content: space-between; color: white; margin-bottom: 30px; font-weight: bold;
}
.screen-card {
    background: rgba(255,255,255,0.05); padding: 15px; border-radius: 12px;
    margin-bottom: 15px; color: white; border: 1px solid rgba(255,255,255,0.1);
}
.screen-card.alert { 
    background: rgba(239, 68, 68, 0.2); border-color: var(--neon-red); color: var(--neon-red); font-weight: bold;
    animation: pulse 1s infinite;
}
.screen-graph {
    height: 150px; background: linear-gradient(transparent, rgba(14, 165, 233, 0.2));
    border-bottom: 2px solid var(--neon-blue); margin-top: 30px; position: relative;
}
.screen-graph::after {
    content: ''; position: absolute; width: 100%; height: 2px; background: var(--neon-gold);
    top: 50%; transform: rotate(-10deg);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* BURGER */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: white; margin: 5px; transition: 0.3s; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 50px 5%; text-align: center; background: #010409; }
.footer-logo { font-weight: 900; font-size: 1.5rem; margin-bottom: 10px; color: white; }
.copyright { margin-top: 30px; font-size: 0.8rem; color: #475569; }
.socials a { color: #94a3b8; font-size: 1.5rem; margin: 0 10px; transition: 0.3s; }
.socials a:hover { color: white; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media screen and (max-width: 768px) {
    h1 { font-size: 3rem; }
    .nav-links {
        position: absolute; right: 0; height: 100vh; top: 0;
        background: rgba(2, 6, 23, 0.95); flex-direction: column;
        justify-content: center; width: 70%; transform: translateX(100%);
        transition: 0.5s; backdrop-filter: blur(10px);
    }
    .nav-active { transform: translateX(0); }
    .burger { display: block; z-index: 2000; }
    
    .split-layout { grid-template-columns: 1fr; text-align: center; }
    .check-list li { justify-content: center; }
    .phone-frame { margin-top: 50px; width: 280px; height: 550px; }
}

/* =========================================
   SECTION CONTACT (TRANSMISSION)
   ========================================= */
.contact-section {
    position: relative;
    background: linear-gradient(to top, #020617, #0f172a);
    padding-bottom: 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

/* INFO COLONNE */
.contact-info h3 {
    font-size: 1.8rem; margin-bottom: 20px; color: var(--text);
}
.contact-info p {
    color: #94a3b8; margin-bottom: 40px; font-size: 1rem;
}

.info-item {
    display: flex; align-items: center; gap: 20px; margin-bottom: 30px;
}

.icon-circle {
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid var(--neon-blue);
    display: flex; align-items: center; justify-content: center;
    color: var(--neon-blue); font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

.info-item span {
    display: block; font-size: 0.8rem; color: #64748b; font-weight: 700; letter-spacing: 1px;
}
.info-item a, .info-item p {
    font-size: 1.1rem; color: white; margin: 0; font-weight: 500; transition: 0.3s;
}
.info-item a:hover { color: var(--neon-blue); }

/* FORMULAIRE CYBER */
.cyber-form {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border);
    padding: 40px; border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.form-group { margin-bottom: 25px; }

.form-group label {
    display: block; margin-bottom: 10px;
    font-size: 0.75rem; color: var(--neon-gold);
    font-weight: 700; letter-spacing: 1px;
}

.cyber-form input, .cyber-form textarea {
    width: 100%;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--border);
    padding: 15px; border-radius: 8px;
    color: white; font-family: 'Outfit', sans-serif;
    transition: 0.3s;
}

.cyber-form input:focus, .cyber-form textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
    background: rgba(2, 6, 23, 0.8);
}

.btn-submit {
    width: 100%; padding: 18px;
    background: linear-gradient(45deg, var(--neon-blue), #2563eb);
    border: none; border-radius: 8px;
    color: white; font-weight: 800; font-size: 1rem;
    cursor: pointer; transition: 0.3s;
    letter-spacing: 1px; text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.5);
}

/* RESPONSIVE CONTACT */
@media screen and (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .cyber-form { padding: 25px; }
}

/* =========================================
   CHATBOT MELAINA 2.0 (INTELLIGENT)
   ========================================= */
.chatbot-container {
    position: fixed; bottom: 30px; right: 30px;
    z-index: 9999; font-family: 'Outfit', sans-serif;
}

.chatbot-toggle {
    width: 65px; height: 65px;
    background: linear-gradient(45deg, var(--neon-blue), #3b82f6);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: white; cursor: pointer;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    transition: transform 0.3s;
}
.chatbot-toggle:hover { transform: scale(1.1); }

.chatbot-window {
    position: absolute; bottom: 85px; right: 0;
    width: 380px; background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--neon-blue); border-radius: 15px;
    overflow: hidden; display: none; /* Caché par défaut */
    flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}
.chatbot-window.active { display: flex; animation: slideUp 0.3s ease; }

@keyframes slideUp { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.chatbot-header {
    background: rgba(2, 6, 23, 0.9); padding: 15px 20px;
    color: var(--neon-blue); font-weight: bold;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}
.chatbot-header button { background: none; border: none; color: white; cursor: pointer; font-size: 1.2rem; }

.chatbot-messages {
    height: 350px; padding: 20px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 15px;
    scroll-behavior: smooth;
}

.message { max-width: 85%; padding: 12px 15px; border-radius: 12px; font-size: 0.9rem; line-height: 1.5; }
.bot-message { background: rgba(14, 165, 233, 0.1); color: #fff; align-self: flex-start; border-bottom-left-radius: 0; border: 1px solid rgba(14, 165, 233, 0.2); }
.user-message { background: var(--neon-blue); color: #000; align-self: flex-end; border-bottom-right-radius: 0; font-weight: 600; }

/* BOUTONS DE SUGGESTION */
.quick-replies {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px;
}
.quick-reply-btn {
    background: transparent; border: 1px solid var(--neon-blue);
    color: var(--neon-blue); padding: 6px 12px; border-radius: 20px;
    font-size: 0.8rem; cursor: pointer; transition: 0.3s;
    font-family: inherit;
}
.quick-reply-btn:hover { background: var(--neon-blue); color: #000; }

/* ANIMATION "EN TRAIN D'ÉCRIRE..." */
.typing-indicator {
    display: flex; gap: 5px; padding: 15px 20px !important;
    align-items: center; width: max-content;
}
.typing-dot {
    width: 6px; height: 6px; background-color: var(--neon-blue);
    border-radius: 50%; animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); }
}

.chatbot-input {
    display: flex; padding: 15px; background: rgba(2, 6, 23, 0.8);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.chatbot-input input {
    flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 15px; border-radius: 20px; color: white; outline: none;
}
.chatbot-input button {
    background: none; border: none; color: var(--neon-blue);
    font-size: 1.2rem; margin-left: 12px; cursor: pointer; transition: 0.2s;
}
.chatbot-input button:hover { transform: scale(1.1); }

/* =========================================
   VERSION MOBILE DU CHATBOT (DESIGN APP)
   ========================================= */
@media screen and (max-width: 768px) {
    .chatbot-window { 
        position: fixed; 
        bottom: 0; 
        left: 0;
        right: 0;
        width: 100%; 
        height: 85dvh; 
        border-radius: 25px 25px 0 0; 
        z-index: 10000; 
        border: none;
        border-top: 1px solid var(--neon-blue);
        box-shadow: 0 -10px 50px rgba(2, 6, 23, 0.9); 
    }
    
    .chatbot-messages { 
        height: calc(85dvh - 130px); 
        padding-bottom: 20px;
    }
    
    .chatbot-toggle { 
        bottom: 20px; 
        right: 20px; 
        z-index: 9998; 
    }
    
    .message {
        font-size: 0.95rem; 
        max-width: 90%; 
    }
    
    .chatbot-input {
        padding: 10px 15px 20px 15px; 
    }
}