/* RESET & VARIABLES */
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
    --bg-dark: #050505;
    --bg-card: #111111;
    --primary: #00f0ff; /* Bleu Électrique/Néon Titan */
    --primary-glow: rgba(0, 240, 255, 0.4);
    --text-main: #ffffff;
    --text-muted: #888888;
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

body {
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.highlight { color: var(--primary); }

/* NAVBAR */
.navbar {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%;
    background: transparent;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 55px; }
.logo-text { display: none; }

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active-page { color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 2px; }

.btn-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary);
    color: var(--bg-dark) !important;
    box-shadow: 0 0 20px var(--primary-glow);
}

.mobile-menu-btn { display: none; font-size: 1.8rem; cursor: pointer; z-index: 1001; color: var(--text-main); }

/* SÉLECTEUR DE LANGUE */
.lang-selector { display: flex; align-items: center; gap: 4px; margin-left: 1rem; }
.lang-btn {
    background: none; border: 1px solid rgba(255,255,255,0.15); color: var(--text-muted);
    padding: 3px 8px; border-radius: 3px; font-size: 0.75rem; font-weight: 700;
    cursor: pointer; letter-spacing: 0.5px; transition: var(--transition);
}
.lang-btn:hover, .lang-btn.active { border-color: var(--primary); color: var(--primary); }
@media (max-width: 900px) { .lang-selector { margin-left: 0; } }

/* HERO SECTION (Accueil) */
.hero {
    height: 100vh;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    padding: 80px 5% 80px;
    text-align: center;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(0,240,255,0.1) 0%, var(--bg-dark) 70%);
    z-index: -1;
}
.hero-content { max-width: 900px; z-index: 2; }
.badge {
    display: inline-block; padding: 5px 15px; border: 1px solid var(--text-muted);
    border-radius: 50px; font-size: 0.8rem; font-weight: bold; letter-spacing: 2px;
    margin-bottom: 1.5rem; color: var(--text-muted);
}
.hero h1 { font-size: 3.2rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1px; }
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.hero-buttons { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 2rem; }
.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-outline {
    border: 1px solid var(--text-muted); color: var(--text-main);
    padding: 1rem 2.5rem; text-decoration: none; font-weight: bold; border-radius: 4px; transition: var(--transition);
}
.btn-outline:hover { border-color: var(--text-main); background: rgba(255,255,255,0.05); }

/* STATS HERO */
.stats-row { display: flex; justify-content: center; gap: 3rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; }
.stat { font-weight: bold; font-size: 1.1rem; color: var(--text-muted); display: flex; align-items: center; gap: 10px; flex-direction: column; }
.stat-number { font-size: 2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.stat i { color: var(--primary); font-size: 1.5rem; }

/* HERO MINI (pages internes) */
.hero-mini {
    padding: 10rem 5% 5rem;
    text-align: center;
    position: relative;
}
.hero-mini-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center top, rgba(0,240,255,0.08) 0%, var(--bg-dark) 60%);
    z-index: -1;
}
.hero-mini h1 { font-size: 3.5rem; font-weight: 900; margin-bottom: 1rem; }
.hero-mini p { color: var(--text-muted); font-size: 1.2rem; max-width: 700px; margin: 0 auto; }

/* EXPERTISES CARDS */
.section-padding { padding: 8rem 5%; }
.section-title { text-align: center; margin-bottom: 5rem; }
.section-title h2 { font-size: 3rem; font-weight: 900; margin-bottom: 1rem; }
.section-title p { color: var(--text-muted); font-size: 1.2rem; }

.cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto;
}
.expertise-card {
    background: var(--bg-card); padding: 3rem 2rem; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05); transition: var(--transition);
    position: relative; overflow: hidden; cursor: pointer; text-decoration: none; display: block; color: inherit;
}
.expertise-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}
.card-icon { font-size: 3rem; color: var(--primary); margin-bottom: 1.5rem; }
.expertise-card h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.expertise-card p { color: var(--text-muted); margin-bottom: 2rem; }
.feature-list { list-style: none; }
.feature-list li { margin-bottom: 0.8rem; color: var(--text-main); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.feature-list i { color: var(--primary); }
.card-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: bold; font-size: 0.95rem; margin-top: 1.5rem; }

/* METHODE */
.method-section { background: var(--bg-card); padding: 6rem 5%; border-top: 1px solid #222; border-bottom: 1px solid #222; }
.method-content { max-width: 1000px; margin: 0 auto; text-align: center; }
.method-content h2 { font-size: 3rem; font-weight: 900; margin-bottom: 0.5rem; }
.method-content .subtitle { color: var(--primary); font-weight: bold; margin-bottom: 4rem; letter-spacing: 2px; text-transform: uppercase; }

.method-steps { display: flex; justify-content: space-between; gap: 2rem; text-align: left; }
.step { flex: 1; position: relative; }
.step-num { font-size: 4rem; font-weight: 900; color: rgba(255,255,255,0.05); margin-bottom: -30px; }
.step-text h4 { font-size: 1.5rem; color: var(--text-main); margin-bottom: 1rem; }
.step-text p { color: var(--text-muted); }

/* STEPS PAGE METHODE (détaillés) */
.steps-detailed { display: flex; flex-direction: column; gap: 4rem; max-width: 900px; margin: 0 auto; }
.step-detailed { display: flex; gap: 3rem; align-items: flex-start; }
.step-detailed .step-icon { font-size: 3rem; color: var(--primary); min-width: 60px; text-align: center; margin-top: 0.5rem; }
.step-detailed .step-body h3 { font-size: 2rem; font-weight: 900; margin-bottom: 1rem; }
.step-detailed .step-body p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 1.5rem; }
.step-detailed .step-body ul { list-style: none; }
.step-detailed .step-body ul li { padding: 0.5rem 0; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.step-detailed .step-body ul li i { color: var(--primary); }
.step-number-big { font-size: 6rem; font-weight: 900; color: rgba(0,240,255,0.1); line-height: 1; min-width: 80px; text-align: center; }

/* FAQ */
.faq-section { padding: 6rem 5%; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 1.8rem 0; cursor: pointer; background: none; border: none; color: var(--text-main);
    font-size: 1.1rem; font-weight: 700; text-align: left; transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question i { color: var(--primary); transition: var(--transition); flex-shrink: 0; margin-left: 1rem; }
.faq-question.open i { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-answer p { color: var(--text-muted); font-size: 1rem; padding-bottom: 1.5rem; line-height: 1.8; }

/* TÉMOIGNAGES */
.testimonials-section { padding: 8rem 5%; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.testimonial-card {
    background: var(--bg-card); padding: 2.5rem; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05); transition: var(--transition);
}
.testimonial-card:hover { border-color: rgba(0,240,255,0.2); }
.testimonial-stars { color: #FFD700; margin-bottom: 1.2rem; font-size: 1.1rem; }
.testimonial-text { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 45px; height: 45px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), rgba(0,240,255,0.3));
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.1rem; color: var(--bg-dark);
}
.author-info .author-name { font-weight: 700; font-size: 1rem; }
.author-info .author-role { color: var(--text-muted); font-size: 0.85rem; }

/* ONGLETS SERVICES */
.tabs-nav {
    display: flex; gap: 0; justify-content: center; margin-bottom: 4rem;
    border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
    overflow: hidden; max-width: 600px; margin-left: auto; margin-right: auto; margin-bottom: 4rem;
}
.tab-btn {
    flex: 1; padding: 1rem 1.5rem; background: transparent;
    border: none; color: var(--text-muted); font-weight: 700;
    font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; transition: var(--transition); border-right: 1px solid rgba(255,255,255,0.1);
}
.tab-btn:last-child { border-right: none; }
.tab-btn:hover { color: var(--primary); background: rgba(0,240,255,0.05); }
.tab-btn.active { background: rgba(0,240,255,0.1); color: var(--primary); border-bottom: 2px solid var(--primary); }

.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.service-detail { max-width: 900px; margin: 0 auto; }
.service-detail-header { display: flex; align-items: center; gap: 2rem; margin-bottom: 3rem; }
.service-detail-icon { font-size: 4rem; color: var(--primary); }
.service-detail-header h2 { font-size: 2.5rem; font-weight: 900; }
.service-detail-header p { color: var(--text-muted); font-size: 1.1rem; margin-top: 0.5rem; }
.service-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.service-feature-item {
    background: var(--bg-card); padding: 1.5rem; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05); display: flex; align-items: flex-start; gap: 1rem;
}
.service-feature-item i { color: var(--primary); font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }
.service-feature-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.service-feature-item p { color: var(--text-muted); font-size: 0.9rem; }

.pricing-box { background: var(--bg-card); border: 1px solid rgba(0,240,255,0.2); border-radius: 12px; padding: 2.5rem; margin-bottom: 2rem; }
.pricing-box h3 { color: var(--primary); font-size: 1.3rem; margin-bottom: 1.5rem; }
.pricing-items { display: flex; gap: 2rem; flex-wrap: wrap; }
.pricing-item { text-align: center; flex: 1; min-width: 120px; }
.pricing-item .price { font-size: 2rem; font-weight: 900; color: var(--text-main); }
.pricing-item .price-label { color: var(--text-muted); font-size: 0.9rem; }

/* PORTFOLIO */
.filter-nav { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.filter-btn {
    padding: 0.6rem 1.5rem; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px; background: transparent; color: var(--text-muted);
    font-weight: 600; cursor: pointer; transition: var(--transition); font-size: 0.9rem;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(0,240,255,0.1); }

.portfolio-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem; max-width: 1200px; margin: 0 auto;
}
.portfolio-item {
    border-radius: 8px; overflow: hidden; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05); transition: var(--transition);
    aspect-ratio: 3/4; position: relative;
}
.portfolio-item:hover { border-color: rgba(0,240,255,0.3); transform: scale(1.02); box-shadow: 0 10px 30px rgba(0,240,255,0.1); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay i { font-size: 2.5rem; color: var(--primary); }

/* LIGHTBOX */
.lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lightbox-close {
    position: fixed; top: 2rem; right: 2rem; font-size: 2.5rem;
    color: var(--text-main); cursor: pointer; z-index: 10000;
    background: none; border: none; transition: var(--transition);
}
.lightbox-close:hover { color: var(--primary); }
.lightbox-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); border: none; color: var(--text-main);
    width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem;
    cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: var(--primary); color: var(--bg-dark); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* CONTACT */
.contact-container { display: flex; gap: 4rem; max-width: 1200px; margin: 0 auto; }
.contact-info { flex: 1; }
.contact-info h2 { font-size: 3.5rem; font-weight: 900; margin-bottom: 1.5rem; line-height: 1.1; }
.contact-info p { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 3rem; }

.btn-whatsapp-large {
    display: inline-flex; align-items: center; gap: 15px;
    background: #25D366; color: #fff; padding: 1rem 2rem;
    border-radius: 8px; font-size: 1.2rem; font-weight: bold; text-decoration: none;
    transition: var(--transition); margin-bottom: 3rem;
}
.btn-whatsapp-large:hover { background: #128C7E; transform: scale(1.05); }

.social-links-big { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.social-box {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-card); padding: 1rem 1.5rem; border-radius: 8px;
    color: var(--text-main); text-decoration: none; font-weight: bold;
    border: 1px solid rgba(255,255,255,0.1); transition: var(--transition);
}
.social-box i { font-size: 1.5rem; color: var(--primary); }
.social-box:hover { border-color: var(--primary); background: rgba(0, 240, 255, 0.05); }

.horaires-box { margin-top: 2.5rem; padding: 1.5rem; background: var(--bg-card); border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.horaires-box h4 { color: var(--primary); margin-bottom: 0.8rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.horaires-box p { color: var(--text-muted); }

/* FORMULAIRE */
.contact-form-box { flex: 1; background: var(--bg-card); padding: 3rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); }
.titan-form h3 { font-size: 2rem; margin-bottom: 2rem; }
.input-group { margin-bottom: 1.5rem; }
.input-group input, .input-group select, .input-group textarea {
    width: 100%; padding: 1.2rem; background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 4px;
    color: var(--text-main); font-size: 1rem; outline: none; transition: var(--transition);
    font-family: inherit;
}
.input-group textarea { resize: vertical; min-height: 120px; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 10px rgba(0,240,255,0.2); }
.input-group select option { background: var(--bg-dark); }
.btn-submit {
    width: 100%; padding: 1.2rem; background: var(--text-main); color: var(--bg-dark);
    border: none; border-radius: 4px; font-size: 1.1rem; font-weight: bold;
    cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; transition: var(--transition);
}
.btn-submit:hover { background: var(--primary); }

/* CTA SECTION */
.cta-section { padding: 8rem 5%; text-align: center; }
.cta-box { max-width: 700px; margin: 0 auto; }
.cta-box h2 { font-size: 3rem; font-weight: 900; margin-bottom: 1.5rem; }
.cta-box p { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 3rem; }
.cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
footer { text-align: center; padding: 4rem 5% 2rem; border-top: 1px solid #111; }
.footer-logo { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 1.5rem; text-decoration: none; }
.footer-logo img { height: 30px; }
.footer-logo span { font-size: 1.5rem; font-weight: 900; letter-spacing: 2px; color: var(--text-main); }
footer p { color: var(--text-muted); font-weight: bold; margin-bottom: 1rem; }
.copyright { font-size: 0.9rem; font-weight: normal !important; }

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(30px); animation: fadeUpAnim 0.8s forwards; }
.delay-1 { animation-delay: 0.2s; } .delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; } .delay-4 { animation-delay: 0.8s; }
@keyframes fadeUpAnim { to { opacity: 1; transform: translateY(0); } }

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

/* MOBILE */
@media (max-width: 900px) {
    .hero h1 { font-size: 3rem; }
    .hero-mini h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .stats-row { flex-direction: column; gap: 2rem; }
    .method-steps { flex-direction: column; }
    .contact-container { flex-direction: column; }
    .social-links-big { flex-direction: column; }
    .steps-detailed .step-detailed { flex-direction: column; gap: 1rem; }
    .step-number-big { font-size: 4rem; }
    .tabs-nav { flex-direction: column; border-radius: 0; }
    .tab-btn { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .service-detail-header { flex-direction: column; gap: 1rem; text-align: center; }
    .cta-buttons { flex-direction: column; align-items: center; }

    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-links.active {
        display: flex; position: fixed; top: 70px; left: 0; width: 100%; height: 100vh;
        background: var(--bg-dark); flex-direction: column; align-items: center; padding-top: 2rem;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .section-title h2 { font-size: 2rem; }
    .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ================================================
   TITANBOT — Chatbot Widget
   ================================================ */

#titan-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    font-family: 'Inter', sans-serif;
}

/* Bouton flottant */
#titan-chat-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #050505;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
}
#titan-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.8);
}
#titan-btn-icon-open, #titan-btn-icon-close {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animation pulse */
.titan-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.3);
    animation: titanPulse 2s infinite;
}
@keyframes titanPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* Badge de notification */
.titan-notif-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ff3b3b;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #050505;
}

/* Fenêtre de chat */
#titan-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 540px;
    background: #0d0d0d;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 240, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
#titan-chat-window.titan-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Header */
#titan-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: #111;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}
.titan-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.titan-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
}
.titan-header-info strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 700;
}
.titan-status {
    font-size: 0.72rem;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 5px;
}
.titan-dot-green {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
    animation: titanBlink 1.5s infinite;
}
@keyframes titanBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.titan-close-btn {
    background: none;
    border: none;
    color: #555;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
    padding: 5px;
}
.titan-close-btn:hover { color: white; }

/* Zone messages */
#titan-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,240,255,0.2) transparent;
}
#titan-messages::-webkit-scrollbar { width: 4px; }
#titan-messages::-webkit-scrollbar-track { background: transparent; }
#titan-messages::-webkit-scrollbar-thumb { background: rgba(0,240,255,0.2); border-radius: 4px; }

.titan-msg {
    display: flex;
    max-width: 85%;
    animation: titanFadeMsg 0.3s ease;
}
@keyframes titanFadeMsg {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.titan-bot-msg { align-self: flex-start; }
.titan-user-msg { align-self: flex-end; }

.titan-bubble {
    padding: 0.8rem 1rem;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.6;
}
.titan-bot-msg .titan-bubble {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.07);
    border-bottom-left-radius: 4px;
    color: #e0e0e0;
}
.titan-user-msg .titan-bubble {
    background: var(--primary);
    color: #050505;
    font-weight: 600;
    border-bottom-right-radius: 4px;
}
.titan-bubble a { color: var(--primary); text-decoration: underline; }
.titan-user-msg .titan-bubble a { color: #050505; }

/* Animation typing */
.titan-typing {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 1rem 1.2rem !important;
}
.titan-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    animation: titanDot 1.2s infinite ease-in-out;
}
.titan-typing span:nth-child(2) { animation-delay: 0.2s; }
.titan-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes titanDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Suggestions rapides */
#titan-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0.5rem 1.2rem;
}
#titan-suggestions button {
    background: rgba(0, 240, 255, 0.07);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
}
#titan-suggestions button:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary);
}

/* Zone de saisie */
#titan-input-area {
    display: flex;
    gap: 8px;
    padding: 0.8rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: #0d0d0d;
}
#titan-input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: 0.2s;
}
#titan-input:focus {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}
#titan-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary);
    border: none;
    color: #050505;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}
#titan-send-btn:hover { background: #00d4e8; transform: scale(1.05); }
#titan-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Footer */
.titan-powered {
    text-align: center;
    font-size: 0.65rem;
    color: #333;
    padding: 4px 0 8px;
    letter-spacing: 0.5px;
}

/* Mobile */
@media (max-width: 480px) {
    #titan-chatbot { bottom: 20px; right: 15px; }
    #titan-chat-window { width: calc(100vw - 30px); right: -15px; height: 480px; }
}
