/* =========================================================
   HKSmartVision — feuille de style (multi-pages)
   Marque : bleu #2563eb, fond sombre #0f172a, police Inter.
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; color: #1a1a2e; background: #fafafa; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Nav (sticky) */
nav { position: sticky; top: 0; left: 0; right: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); z-index: 100; border-bottom: 1px solid #eaeaea; }
nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: #0f172a; letter-spacing: -.02em; }
.logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.logo span { color: #2563eb; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: .9rem; font-weight: 500; color: #475569; }
.nav-links a:hover { color: #2563eb; }
.nav-links a[aria-current="page"] { color: #2563eb; font-weight: 600; }
.nav-cta { background: #2563eb; color: #fff !important; padding: 8px 20px; border-radius: 8px; font-weight: 600; font-size: .9rem; }
.nav-cta:hover { background: #1d4ed8; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #1a1a2e; }

/* Fil d'Ariane + retour */
.breadcrumb { background: #fff; border-bottom: 1px solid #eaeaea; }
.breadcrumb .container { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: #64748b; }
.crumbs a { color: #2563eb; font-weight: 500; }
.crumbs .sep { color: #cbd5e1; }
.btn-back { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .85rem; color: #0f172a; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; padding: .4rem 1rem; cursor: pointer; transition: border-color .2s, color .2s, transform .15s; }
.btn-back:hover { border-color: #2563eb; color: #2563eb; transform: translateX(-2px); }

/* Hero (accueil) */
.hero { padding: 80px 0; background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e3a5f 100%); color: #fff; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; margin-bottom: 20px; }
.hero h1 span { color: #60a5fa; }
.hero p { font-size: 1.15rem; color: #94a3b8; margin-bottom: 32px; max-width: 500px; }
.hero-cta { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-primary { background: #2563eb; color: #fff; padding: 14px 32px; border-radius: 10px; font-weight: 600; font-size: 1rem; transition: background .2s; }
.hero-cta .btn-primary:hover { background: #1d4ed8; }
.hero-cta .btn-secondary { color: #94a3b8; font-weight: 500; font-size: .95rem; border-bottom: 1px solid #475569; padding-bottom: 2px; }
.hero-cta .btn-secondary:hover { color: #fff; border-color: #fff; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); padding: 6px 16px; border-radius: 100px; font-size: .85rem; color: #94a3b8; margin-bottom: 24px; border: 1px solid rgba(255,255,255,.1); }
.hero-badge strong { color: #60a5fa; }
.hero-visual { position: relative; }
.hero-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 32px; backdrop-filter: blur(4px); }
.hero-card .stat-row { display: flex; gap: 24px; margin-bottom: 20px; }
.hero-card .stat { flex: 1; text-align: center; }
.hero-card .stat-number { font-size: 1.75rem; font-weight: 800; color: #60a5fa; }
.hero-card .stat-label { font-size: .8rem; color: #64748b; margin-top: 4px; }
.hero-card .quote { font-size: .9rem; color: #94a3b8; font-style: italic; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; }

/* En-tête de page (pages internes) */
.page-hero { padding: 64px 0; background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e3a5f 100%); color: #fff; }
.page-hero .section-label { color: #60a5fa; }
.page-hero h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.page-hero p { color: #94a3b8; max-width: 620px; font-size: 1.1rem; }

/* Sections globales */
.section { padding: 80px 0; }
.section-label { display: inline-block; font-size: .8rem; font-weight: 600; color: #2563eb; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.section-title { font-size: 2.25rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; color: #0f172a; }
.section-subtitle { font-size: 1.1rem; color: #64748b; max-width: 600px; margin-bottom: 48px; }

/* Cartes de navigation (accueil) */
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid #eaeaea; border-radius: 16px; padding: 28px; background: #fff; transition: box-shadow .2s, transform .2s, border-color .2s; }
.home-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.06); transform: translateY(-4px); border-color: #2563eb; }
.home-card .icon { font-size: 1.9rem; }
.home-card h3 { font-size: 1.2rem; font-weight: 700; color: #0f172a; margin: 0; }
.home-card p { font-size: .92rem; color: #64748b; margin: 0; }
.home-card .go { margin-top: auto; padding-top: 8px; color: #2563eb; font-weight: 600; font-size: .9rem; }

/* Offres */
.offres { background: #fff; }
.offres-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.offre-card { border: 1px solid #eaeaea; border-radius: 16px; padding: 32px; transition: box-shadow .2s, transform .2s; background: #fff; }
.offre-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.06); transform: translateY(-4px); }
.offre-card.featured { border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb; }
.offre-card .icon { font-size: 2rem; margin-bottom: 16px; }
.offre-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; color: #0f172a; }
.offre-card .price { font-size: 2rem; font-weight: 800; color: #2563eb; margin: 16px 0 4px; }
.offre-card .price-note { font-size: .85rem; color: #64748b; margin-bottom: 16px; }
.offre-card ul { list-style: none; padding: 0; }
.offre-card li { font-size: .9rem; color: #475569; padding: 8px 0; border-top: 1px solid #f1f5f9; display: flex; align-items: start; gap: 8px; }
.offre-card li::before { content: '✓'; color: #2563eb; font-weight: 600; flex-shrink: 0; }
.offre-card .btn-card { display: block; text-align: center; margin-top: 24px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: .92rem; border: 1px solid #2563eb; color: #2563eb; transition: background .2s, color .2s; }
.offre-card .btn-card:hover { background: #2563eb; color: #fff; }
.offre-card.featured .btn-card { background: #2563eb; color: #fff; }
.offre-card.featured .btn-card:hover { background: #1d4ed8; border-color: #1d4ed8; }

/* Process */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.step { padding: 32px 16px; }
.step-number { width: 48px; height: 48px; background: #2563eb; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; margin: 0 auto 16px; }
.step h4 { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; color: #0f172a; }
.step p { font-size: .9rem; color: #64748b; }

/* Pourquoi moi */
.pourquoi { background: #f8fafc; }
.pourquoi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pourquoi-text h2 { font-size: 2.25rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; color: #0f172a; }
.pourquoi-text p { color: #475569; margin-bottom: 16px; font-size: 1rem; }
.pourquoi-list { list-style: none; padding: 0; margin-top: 24px; }
.pourquoi-list li { display: flex; align-items: start; gap: 12px; padding: 12px 0; border-top: 1px solid #eaeaea; font-size: .95rem; color: #334155; }
.pourquoi-list li::before { content: '▹'; color: #2563eb; font-weight: 600; }
.pourquoi-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 24px; text-align: center; }
.stat-card .num { font-size: 2rem; font-weight: 800; color: #2563eb; }
.stat-card .label { font-size: .85rem; color: #64748b; margin-top: 4px; }

/* Contact */
.contact { background: #0f172a; color: #fff; text-align: center; }
.contact h2 { font-size: 2.25rem; font-weight: 800; margin-bottom: 16px; }
.contact p { color: #94a3b8; max-width: 500px; margin: 0 auto 32px; font-size: 1.05rem; }
.contact-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.contact-actions .btn-contact { background: #2563eb; color: #fff; padding: 14px 36px; border-radius: 10px; font-weight: 600; font-size: 1rem; transition: background .2s; }
.contact-actions .btn-contact:hover { background: #1d4ed8; }
.contact-actions .btn-outline { border: 1px solid #334155; color: #94a3b8; padding: 14px 36px; border-radius: 10px; font-weight: 500; font-size: 1rem; transition: .2s; }
.contact-actions .btn-outline:hover { border-color: #475569; color: #fff; }
.contact .email { margin-top: 24px; color: #60a5fa; font-size: .95rem; }

/* Footer */
footer { background: #0a0f1a; color: #475569; padding: 48px 0 32px; font-size: .85rem; border-top: 1px solid #1e293b; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: #94a3b8; }
.footer-nav a:hover { color: #60a5fa; }
.footer-copy { width: 100%; text-align: center; padding-top: 20px; margin-top: 8px; border-top: 1px solid #1e293b; color: #475569; }

/* Back to top */
.back-to-top { position: fixed; right: 24px; bottom: 92px; z-index: 150; width: 44px; height: 44px; border-radius: 50%; background: #1e293b; color: #fff; border: 1px solid #334155; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; transform: translateY(10px); }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: #2563eb; border-color: #2563eb; }

/* Chatbot */
.chat-fab { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; align-items: center; gap: 10px; background: #2563eb; color: #fff; border: none; cursor: pointer; padding: 14px 20px; border-radius: 100px; font-family: inherit; font-weight: 600; font-size: .95rem; box-shadow: 0 8px 28px rgba(37,99,235,.4); transition: transform .15s, background .2s; }
.chat-fab:hover { background: #1d4ed8; transform: translateY(-2px); }
.chat-fab svg { width: 22px; height: 22px; }
.chat-panel { position: fixed; bottom: 24px; right: 24px; z-index: 201; width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 48px); background: #fff; border-radius: 18px; box-shadow: 0 24px 64px rgba(15,23,42,.28); display: none; flex-direction: column; overflow: hidden; border: 1px solid #e2e8f0; }
.chat-panel.open { display: flex; }
.chat-header { background: linear-gradient(135deg, #0f172a, #1e3a5f); color: #fff; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.chat-header .ttl { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.chat-header .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.chat-header .sub { font-size: .78rem; color: #94a3b8; margin-top: 2px; }
.chat-close { background: none; border: none; color: #94a3b8; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.chat-close:hover { color: #fff; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #f8fafc; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: #fff; border: 1px solid #e2e8f0; color: #1e293b; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: #2563eb; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.typing { color: #94a3b8; font-style: italic; }
.msg a { font-weight: 600; text-decoration: underline; }
.msg.bot a { color: #2563eb; }
.msg.user a { color: #fff; }
.msg .cal-btn { display: inline-block; margin-top: 8px; background: #2563eb; color: #fff; padding: 9px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: .88rem; }
.msg .cal-btn:hover { background: #1d4ed8; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; background: #f8fafc; }
.chat-suggest button { background: #fff; border: 1px solid #cbd5e1; color: #2563eb; font-family: inherit; font-size: .8rem; padding: 7px 12px; border-radius: 100px; cursor: pointer; transition: .15s; }
.chat-suggest button:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.chat-input { display: flex; gap: 8px; padding: 14px; border-top: 1px solid #e2e8f0; background: #fff; }
.chat-input input { flex: 1; border: 1px solid #cbd5e1; border-radius: 10px; padding: 11px 14px; font-family: inherit; font-size: .9rem; outline: none; }
.chat-input input:focus { border-color: #2563eb; }
.chat-input button { background: #2563eb; color: #fff; border: none; border-radius: 10px; padding: 0 16px; cursor: pointer; font-size: 1.1rem; }
.chat-input button:hover { background: #1d4ed8; }
.chat-input button:disabled { opacity: .5; cursor: default; }

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; align-items: flex-start; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #eaeaea; padding: 16px 24px; gap: 16px; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.25rem; }
    .hero p { margin: 0 auto 32px; }
    .hero-cta { justify-content: center; }
    .home-grid { grid-template-columns: 1fr; }
    .offres-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .pourquoi-grid { grid-template-columns: 1fr; }
    .section-title, .page-hero h1 { font-size: 1.75rem; }
    .breadcrumb .container { flex-direction: column; align-items: flex-start; }
    .btn-back { margin-left: 0; }
}
