:root {
    --primary: #FDB813;
    --primary-dark: #E09400;
    --primary-soft: #fef3c7;
    --ink: #1e293b;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e5e7eb;
    --bg: #f0f2f5;
    --card: #ffffff;
    --ok: #22c55e;
    --info: #3b82f6;
    --warn: #f59e0b;
    --wait: #f97316;
    --run: #eab308;
    --done: #16a34a;
    --onboard: #ef4444;
    --shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* NAV */
.nav {
    position: sticky; top: 0; z-index: 40;
    background: #1e293b; color: #fff;
    border-bottom: 1px solid #0f172a;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; white-space: nowrap; }
.brand-icon {
    width: 34px; height: 34px; border-radius: 10px;
    object-fit: contain; background: #fff; padding: 3px;
    flex-shrink: 0;
}
.brand em { font-style: normal; color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: #cbd5e1; font-size: 13px; font-weight: 700; }
.nav-links a:hover { color: #fff; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: none; cursor: pointer; font-weight: 800;
    border-radius: 12px; padding: 11px 16px; transition: 0.15s;
}
.btn-primary { background: linear-gradient(135deg, #FDB813, #E09400); color: #1a1a2e; }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 20px; }

/* HERO */
.hero { padding: 56px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--line); color: var(--muted);
    border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700;
    margin-bottom: 16px;
}
.pill i { color: var(--primary-dark); }
.hero h1 { font-size: 44px; line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.hero h1 span { color: var(--primary-dark); }
.hero p.lead { margin: 16px 0 24px; color: var(--muted); font-size: 16px; max-width: 520px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-kpis { display: flex; gap: 18px; margin-top: 22px; color: var(--muted); font-size: 12px; font-weight: 700; }
.hero-kpis strong { display: block; color: var(--ink); font-size: 18px; }

.hero-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 16px; min-height: 112px; box-shadow: 0 8px 24px rgba(15,23,42,0.05);
}
.tile.wide { grid-column: 1 / -1; }
.tile .k { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.tile .v { font-size: 18px; font-weight: 800; margin-top: 6px; }
.tile .mini { margin-top: 10px; display: flex; gap: 6px; }

/* SECTIONS */
.section { padding: 56px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); margin-top: 6px; max-width: 560px; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: center; }
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.split ul { list-style: none; margin-top: 16px; }
.split li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14px; font-weight: 600; }
.split li i { color: var(--primary-dark); margin-top: 3px; }

/* DEVICE FRAMES */
.frame {
    background: #fff; border: 1px solid var(--line); border-radius: 20px;
    box-shadow: var(--shadow); overflow: hidden;
}
.frame-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; background: #1e293b; color: #fff; font-size: 12px; font-weight: 800;
}
.dots { display: flex; gap: 5px; }
.dots b { width: 8px; height: 8px; border-radius: 50%; display: block; }
.dots b:nth-child(1) { background: #ef4444; }
.dots b:nth-child(2) { background: #f59e0b; }
.dots b:nth-child(3) { background: #22c55e; }
.frame-bar span { margin-left: 6px; color: #cbd5e1; }

/* DASH DEMO */
.dash { display: grid; grid-template-columns: 72px 1fr; min-height: 340px; }
.dash-side { background: #1e293b; padding: 12px 8px; display: flex; flex-direction: column; gap: 8px; }
.dash-ico {
    width: 44px; height: 44px; border-radius: 12px; border: none; color: #94a3b8;
    background: transparent; cursor: pointer;
}
.dash-ico.active { background: linear-gradient(135deg, #FDB813, #E09400); color: #1a1a2e; }
.dash-main { padding: 14px; background: #f8fafc; }
.ride {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 12px; margin-bottom: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px;
}
.ride:hover, .ride.on { border-color: #fde68a; box-shadow: 0 4px 14px rgba(245,158,11,0.12); }
.ride b { display: block; font-size: 13px; }
.ride small { color: var(--muted); font-weight: 600; }
.badge {
    display: inline-flex; align-items: center; border-radius: 8px;
    padding: 3px 8px; font-size: 11px; font-weight: 800; height: fit-content; white-space: nowrap;
}
.badge.reserved { background: #dbeafe; color: #1d4ed8; border: 1px solid #60a5fa; }
.badge.route { background: #fef9c3; color: #a16207; border: 1px solid #eab308; }
.badge.done { background: #dcfce7; color: #15803d; border: 1px solid #4ade80; }
.dash-detail {
    margin-top: 8px; background: #fff; border: 1px solid #fde68a; border-radius: 12px; padding: 12px;
    display: none;
}
.dash-detail.show { display: block; }
.track { height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.track i { display: block; height: 100%; width: 18%; background: linear-gradient(135deg, #FDB813, #E09400); transition: width 0.6s; }

/* SMART DEMO */
.smart { display: grid; grid-template-columns: 210px 1fr; min-height: 360px; }
.smart-left { background: #fff; border-right: 1px solid var(--line); padding: 12px; }
.smart-map {
    background:
        linear-gradient(rgba(255,255,255,0.15), rgba(255,255,255,0.15)),
        radial-gradient(circle at 30% 40%, #d1fae5 0 18%, transparent 19%),
        radial-gradient(circle at 70% 62%, #fee2e2 0 14%, transparent 15%),
        #dbeafe;
    position: relative;
}
.pin {
    position: absolute; background: #fff; border-radius: 999px; padding: 6px 10px;
    font-size: 11px; font-weight: 800; box-shadow: 0 6px 16px rgba(15,23,42,0.15);
}
.pin.origin { left: 18%; top: 34%; color: #047857; }
.pin.dest { right: 16%; bottom: 26%; color: #b91c1c; }
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qa-btn {
    border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px;
    cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px;
    font-weight: 800; font-size: 11px; text-transform: uppercase;
}
.qa-btn.standard { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.qa-btn.break { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #3730a3; }
.qa-btn.van { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; grid-column: 1 / -1; }
.qa-btn .users { display: flex; gap: 2px; }
.qa-btn .users i { font-size: 8px; }
.smart-confirm, .smart-ok {
    margin-top: 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
    display: none;
}
.smart-confirm.show, .smart-ok.show { display: block; }
.smart-ok { background: #ecfdf5; border-color: #bbf7d0; }

/* TABLET DEMO */
.tablet { min-height: 340px; background: #f8fafc; padding: 14px; }
.tab-grid { display: grid; grid-template-columns: 220px 1fr; gap: 12px; }
.guest { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 12px; font-weight: 700; }
.guest:focus { outline: none; border-color: var(--primary); }
.dests { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dest {
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px;
    cursor: pointer; font-weight: 800; text-align: left;
}
.dest:hover, .dest.on { border-color: #fde68a; background: #fffbeb; }
.dest small { display: block; color: var(--muted); font-weight: 600; margin-top: 4px; }
.tab-ok { display: none; margin-top: 12px; background: #ecfdf5; border: 1px solid #bbf7d0; border-radius: 12px; padding: 12px; font-weight: 700; }
.tab-ok.show { display: block; }

/* IVR DEMO */
.phone {
    width: min(340px, 100%); margin: 0 auto; background: #0f172a; border-radius: 28px;
    padding: 16px 14px 18px; color: #fff; box-shadow: var(--shadow);
}
.phone-top { text-align: center; font-size: 11px; color: #94a3b8; font-weight: 800; letter-spacing: 0.4px; }
.phone-body { background: #111827; border-radius: 18px; min-height: 320px; padding: 14px; margin-top: 10px; display: flex; flex-direction: column; }
.ivr-log { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 88%; padding: 9px 11px; border-radius: 14px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.bubble.bot { background: #1e293b; align-self: flex-start; }
.bubble.me { background: linear-gradient(135deg, #FDB813, #E09400); color: #1a1a2e; align-self: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
    border: none; background: #334155; color: #fff; border-radius: 999px;
    padding: 8px 12px; font-size: 12px; font-weight: 800; cursor: pointer;
}
.chip:hover { background: #475569; }
.call-btn { width: 100%; margin-top: 12px; }

/* REGISTER */
.register { background: #1e293b; color: #fff; padding: 64px 0; }
.register h2 { font-size: 32px; font-weight: 800; }
.register h2 span { color: var(--primary); }
.register .sub { color: #94a3b8; margin: 10px 0 22px; }
.reg-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; }
.reg-form { background: #fff; color: var(--ink); border-radius: 20px; padding: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px; }
.field input, .field select, .field textarea {
    width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(253,184,19,0.15); }
.addr-wrap { position: relative; }
.addr-wrap input { padding-right: 40px; }
.addr-loader {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-size: 13px; pointer-events: none;
}
.addr-sugg {
    position: absolute; top: calc(100% - 2px); left: 0; right: 0; z-index: 30;
    background: #fff; border: 2px solid var(--line); border-top: none;
    border-radius: 0 0 12px 12px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    max-height: 220px; overflow-y: auto;
}
.addr-sugg-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; cursor: pointer; font-size: 13px; font-weight: 700; color: #374151;
    border-top: 1px solid #f1f5f9;
}
.addr-sugg-item:hover, .addr-sugg-item.on { background: var(--primary-soft); }
.addr-sugg-item i { color: #d1d5db; font-size: 12px; margin-top: 3px; }
.addr-sugg-item small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.addr-wrap.open input { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f8fafc; border: 1px solid var(--line); border-radius: 999px;
    padding: 7px 10px; font-size: 12px; font-weight: 800;
}
.form-error { display: none; background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.form-error.show { display: block; }
.form-ok { display: none; text-align: center; padding: 28px 10px; }
.form-ok.show { display: block; }
.form-ok i { font-size: 42px; color: var(--ok); }
.benefits { list-style: none; }
.benefits li { display: flex; gap: 10px; padding: 8px 0; color: #cbd5e1; font-weight: 600; }
.benefits i { color: var(--primary); }

.footer { padding: 22px 0 92px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }

/* Support chat — même logique que le widget */
@keyframes helloChatPulse {
    0% { transform: scale(1); opacity: 0.9; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70% { transform: scale(1.15); opacity: 0.55; box-shadow: 0 0 0 7px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); opacity: 0.9; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.hello-chat-dock {
    position: fixed; right: 20px; bottom: 20px; z-index: 70;
    display: flex; align-items: center; gap: 10px;
}
.hello-chat-hint {
    max-width: 220px; text-align: left;
    background: #fff; color: #1e293b; border: 1px solid #e5e7eb;
    border-radius: 16px; padding: 10px 12px;
    font-size: 13px; font-weight: 800; line-height: 1.3;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12); cursor: pointer;
}
.hello-chat-hint.gone { display: none; }
.hello-chat-fab {
    position: relative; width: 56px; height: 56px; border: 0; border-radius: 50%;
    background: #25D366; color: #fff; cursor: pointer;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38);
    display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.hello-chat-fab:hover { filter: brightness(1.08); }
.hello-chat-fab i, .hello-chat-hint { pointer-events: auto; }
.hello-chat-fab i { pointer-events: none; }
.hello-chat-unread {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.hello-chat-panel {
    position: fixed; right: 20px; bottom: 20px; z-index: 70;
    width: min(calc(100vw - 2.5rem), 360px); max-height: min(70vh, 520px);
    background: #fff; border: 1px solid #e5e7eb; border-radius: 20px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
    display: flex; flex-direction: column; overflow: hidden;
}
.hello-chat-head {
    display: flex; align-items: center; gap: 8px;
    background: #25D366; color: #fff; padding: 12px 12px 12px 14px;
}
.hello-chat-title { flex: 1; font-size: 14px; font-weight: 800; min-width: 0; }
.hello-chat-head-actions { display: flex; align-items: center; gap: 4px; }
.hello-chat-iconbtn, .hello-chat-min {
    border: 0; background: transparent; color: #fff; cursor: pointer;
    border-radius: 999px; height: 32px;
}
.hello-chat-iconbtn { width: 32px; display: inline-flex; align-items: center; justify-content: center; }
.hello-chat-min { padding: 0 10px; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.hello-chat-iconbtn:hover, .hello-chat-min:hover { background: rgba(255,255,255,0.16); }
.hello-chat-body { flex: 1; overflow-y: auto; background: #f0f2f5; padding: 12px; min-height: 220px; }
.hello-chat-menu-title { font-size: 14px; font-weight: 800; color: #1e293b; padding: 2px 4px 10px; }
.hello-chat-opt {
    width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
}
.hello-chat-opt:hover { background: #f8fafc; }
.hello-chat-opt:disabled { opacity: 0.45; cursor: not-allowed; }
.hello-chat-opt i.ico {
    width: 40px; height: 40px; border-radius: 12px; color: #fff;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hello-chat-opt strong { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.hello-chat-opt small { display: block; color: #64748b; font-size: 12px; font-weight: 600; margin-top: 2px; }
.hello-chat-opt .chev { margin-left: auto; color: #cbd5e1; font-size: 12px; }
.hello-chat-dot {
    width: 10px; height: 10px; border-radius: 50%; background: #25D366;
    animation: helloChatPulse 1.6s ease-out infinite;
}
.hello-chat-card { text-align: center; padding: 18px 8px; }
.hello-chat-card .ico {
    width: 56px; height: 56px; border-radius: 16px; color: #fff; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.hello-chat-card h3 { font-size: 16px; margin-bottom: 6px; }
.hello-chat-card p { color: #64748b; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.hello-chat-card .box {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 12px 14px; font-weight: 800; margin-bottom: 14px; word-break: break-all;
}
.hello-chat-card a.cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px; border-radius: 12px; color: #fff; font-weight: 800;
}
.hello-chat-msg { display: flex; margin-bottom: 8px; }
.hello-chat-msg.me { justify-content: flex-end; }
.hello-chat-msg.them { justify-content: flex-start; }
.hello-chat-bubble {
    max-width: 85%; padding: 8px 12px; border-radius: 16px; font-size: 13px; font-weight: 600; line-height: 1.45;
}
.hello-chat-msg.me .hello-chat-bubble { background: #FDB813; color: #1a1a2e; border-bottom-right-radius: 6px; }
.hello-chat-msg.them .hello-chat-bubble { background: #fff; border: 1px solid #e5e7eb; color: #1e293b; border-bottom-left-radius: 6px; }
.hello-chat-who { font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px; color: #94a3b8; margin-bottom: 2px; }
.hello-chat-sys { text-align: center; color: #64748b; font-size: 12px; font-weight: 700; margin: 8px 4px; }
.hello-chat-empty { text-align: center; color: #64748b; font-size: 13px; font-weight: 600; padding: 32px 16px; }
.hello-chat-compose {
    display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e5e7eb; background: #fff;
}
.hello-chat-compose input {
    flex: 1; border: 2px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 14px;
}
.hello-chat-compose input:focus { outline: none; border-color: #25D366; }
.hello-chat-compose button {
    width: 42px; border: 0; border-radius: 12px; background: #25D366; color: #fff; cursor: pointer;
}
.hello-chat-compose button:disabled { opacity: 0.45; cursor: not-allowed; }
.hello-chat-panel[hidden],
.hello-chat-dock[hidden],
.hello-chat-unread[hidden],
.hello-chat-compose[hidden],
.hello-chat-iconbtn[hidden],
.hello-chat-hint.gone { display: none !important; }
@media (max-width: 520px) {
    .hello-chat-hint { max-width: 160px; font-size: 12px; }
}

@media (max-width: 860px) {
    .hero-grid, .split, .split.reverse, .reg-grid, .smart, .dash, .tab-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 34px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
        background: #1e293b; padding: 16px; gap: 14px;
    }
    .nav-toggle { display: block; }
    .form-row { grid-template-columns: 1fr; }
}
