:root {
  --brand-50: #f2f0fd;
  --brand-100: #e4defc;
  --brand-200: #c7b8f8;
  --brand-500: #5b2ee0;
  --brand-600: #4520b8;
  --brand-700: #34187f;
  --brand-gradient: linear-gradient(135deg, #047af6 0%, #5b2ee0 55%, #c026d3 100%);
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --green-50: #f0fdf4;
  --green-700: #15803d;
  --red-50: #fef2f2;
  --red-700: #b91c1c;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -8px rgba(15, 23, 42, 0.08);
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--slate-800);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--brand-500); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--slate-900); }
.brand-logo { height: 68px; width: auto; flex-shrink: 0; }
.brand small { display: block; font-weight: 500; font-size: 0.7rem; color: var(--slate-500); }
.footer-logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 6px;
}
.footer-logo-badge img { height: 56px; width: auto; display: block; }
.brand-tagline { font-size: 0.72rem; font-weight: 500; color: var(--slate-500); line-height: 1.25; max-width: 130px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--slate-600); transition: color .15s;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--brand-600); }
.nav-cta {
  display: flex; align-items: center; gap: 14px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; min-height: 44px; border-radius: 10px; font-weight: 600; font-size: 0.9rem;
  border: 1px solid transparent; transition: all .15s; white-space: nowrap;
}
.btn-primary { background: var(--brand-500); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--brand-600); }
.btn-outline { background: #fff; color: var(--slate-700); border-color: var(--slate-300); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--brand-500); color: var(--brand-600); }
.btn-ghost { color: var(--slate-600); }
.btn-ghost:hover { color: var(--brand-600); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--slate-300); border-radius: 8px;
  width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--slate-700);
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; background: linear-gradient(180deg, var(--brand-50) 0%, #fff 60%); }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--brand-100); color: var(--brand-700); font-size: 0.78rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.12; font-weight: 800; color: var(--slate-900); letter-spacing: -0.02em; }
.hero .lede { margin-top: 18px; font-size: 1.1rem; color: var(--slate-600); max-width: 46ch; }
.hero-ctas { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 32px; display: flex; gap: 24px; flex-wrap: wrap; }
.hero-trust div { font-size: 0.8rem; color: var(--slate-500); display: flex; align-items: center; gap: 6px; }
.hero-card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow);
}
.hero-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.hero-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-stat { background: var(--slate-50); border-radius: 12px; padding: 16px; }
.hero-stat strong { display: block; font-size: 1.5rem; color: var(--brand-600); font-weight: 800; }
.hero-stat span { font-size: 0.78rem; color: var(--slate-500); }

/* ---------- Section shell ---------- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { display: inline-flex; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: var(--slate-900); letter-spacing: -0.01em; }
.section-head p { margin-top: 12px; color: var(--slate-500); font-size: 1.02rem; }
.section-alt { background: var(--slate-50); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.icon-badge {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-100); color: var(--brand-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--slate-900); }
.card p { color: var(--slate-500); font-size: 0.92rem; }
.card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.card ul li { font-size: 0.88rem; color: var(--slate-600); display: flex; gap: 8px; align-items: flex-start; }
.card ul li svg { flex-shrink: 0; margin-top: 2px; color: var(--brand-500); }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--slate-900); color: #fff; padding: 40px 0; }
.stats-bar .grid-4 { text-align: center; }
.stats-bar strong { display: block; font-size: 2rem; font-weight: 800; color: var(--brand-400, var(--brand-500)); }
.stats-bar span { font-size: 0.82rem; color: var(--slate-300, #cbd5e1); }

/* ---------- Testimonials ---------- */
.testimonial { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.testimonial .stars { color: var(--brand-500); font-size: 0.9rem; margin-bottom: 10px; }
.testimonial p.quote { font-size: 0.95rem; color: var(--slate-700); font-style: italic; }
.testimonial .who { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 999px; background: var(--slate-200); color: var(--slate-600);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem;
}
.who strong { display: block; font-size: 0.88rem; }
.who span { font-size: 0.78rem; color: var(--slate-500); }

/* ---------- Segments ---------- */
.segment { padding: 20px; border: 1px solid var(--slate-200); border-radius: 14px; display: flex; gap: 14px; align-items: flex-start; }
.segment .icon-badge { margin-bottom: 0; }
.segment h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.segment p { font-size: 0.85rem; color: var(--slate-500); }

/* ---------- Partner CTA band ---------- */
.band { background: linear-gradient(135deg, var(--slate-900), #33210a); color: #fff; border-radius: 24px; padding: 48px; }
.band .container-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { font-size: 1.6rem; font-weight: 800; }
.band p { margin-top: 10px; color: var(--slate-300, #cbd5e1); max-width: 48ch; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 1.7rem; font-weight: 800; }
.contact-info p { margin-top: 12px; color: var(--slate-500); }
.contact-details { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.contact-details a, .contact-details div { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--slate-700); }
.contact-details .icon-badge { width: 36px; height: 36px; margin-bottom: 0; border-radius: 10px; }

.form-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--slate-700); margin-bottom: 6px; }
.field .required { color: var(--brand-600); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--slate-300); border-radius: 10px; padding: 10px 12px;
  font-size: 16px; font-family: inherit; color: var(--slate-800); background: #fff; min-height: 44px;
}
.field textarea { min-height: 0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brand-500); outline-offset: 1px; border-color: var(--brand-500);
}
.field.error input, .field.error select, .field.error textarea { border-color: #ef4444; }
.field .error-msg { color: #dc2626; font-size: 0.78rem; margin-top: 5px; }
.field .hint { color: var(--slate-400); font-size: 0.78rem; margin-top: 5px; }
.field-file {
  border: 1.5px dashed var(--slate-300); border-radius: 12px; padding: 18px; text-align: center; background: var(--slate-50);
}
.field-file label { cursor: pointer; font-size: 0.85rem; color: var(--slate-500); }
.field-file label strong { color: var(--brand-600); }
.file-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.file-list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 8px;
  padding: 8px 10px; font-size: 0.82rem; color: var(--slate-700);
}
.file-list-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list-size { color: var(--slate-400); }
.file-list-remove {
  flex-shrink: 0; border: none; background: none; color: var(--slate-400); font-size: 1.1rem;
  line-height: 1; cursor: pointer; padding: 0 4px;
}
.file-list-remove:hover { color: #dc2626; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--slate-600); }
.checkbox-row input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }

.alert { border-radius: 12px; padding: 12px 16px; font-size: 0.86rem; margin-bottom: 16px; }
.alert-error { background: var(--red-50); color: var(--red-700); }
.alert-success { background: var(--green-50); color: var(--green-700); }

.tabs { display: flex; gap: 4px; background: var(--slate-100); border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.tabs button { flex: 1; padding: 9px; border: none; background: none; border-radius: 8px; font-size: 0.86rem; font-weight: 600; color: var(--slate-500); }
.tabs button.active { background: #fff; color: var(--slate-900); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-900); color: var(--slate-300, #cbd5e1); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h5 { color: #fff; font-size: 0.85rem; font-weight: 700; margin-bottom: 14px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 0.85rem; color: var(--slate-400); }
.footer-grid a:hover { color: var(--brand-400, var(--brand-500)); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; color: var(--slate-400);
}
.footer-bottom a { color: var(--slate-400); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 56px 0 80px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.legal-page .updated { color: var(--slate-400); font-size: 0.85rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.15rem; font-weight: 700; margin: 32px 0 12px; color: var(--slate-900); }
.legal-page p, .legal-page li { color: var(--slate-600); font-size: 0.95rem; }
.legal-page ul { padding-left: 20px; list-style: disc; margin-top: 8px; }
.legal-page li { margin-bottom: 6px; }
.legal-note {
  background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: 12px;
  padding: 14px 18px; font-size: 0.85rem; color: var(--brand-700); margin-bottom: 32px;
}

/* ---------- Souscription Pro (stepper form) ---------- */
.stepper { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.stepper-dot {
  flex: 1; height: 4px; border-radius: 999px; background: var(--slate-200);
}
.stepper-dot.done, .stepper-dot.active { background: var(--brand-500); }
.stepper-label { font-size: 0.8rem; color: var(--slate-500); margin-bottom: 24px; }
.pro-step { display: none; }
.pro-step.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.radio-card-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-card { flex: 1; min-width: 140px; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card span {
  display: block; padding: 12px 14px; border: 1.5px solid var(--slate-300); border-radius: 10px;
  text-align: center; font-size: 0.88rem; font-weight: 600; color: var(--slate-600); cursor: pointer; transition: all .15s;
}
.radio-card input:checked + span { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); }
.radio-card input:focus-visible + span { outline: 2px solid var(--brand-500); outline-offset: 1px; }

.slider-field input[type="range"] {
  width: 100%; accent-color: var(--brand-500); height: 6px;
}
.slider-value { text-align: center; font-weight: 700; color: var(--brand-600); font-size: 1.1rem; margin-top: 6px; }

.info-box { background: var(--brand-50); border-left: 3px solid var(--brand-500); border-radius: 8px; padding: 12px 14px; font-size: 0.84rem; color: var(--brand-700); margin-top: 16px; }

.pro-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
@media (max-width: 480px) {
  .pro-nav { flex-direction: column-reverse; }
  .pro-nav .btn { width: 100%; margin-left: 0 !important; }
}
.pro-success { text-align: center; padding: 32px 8px; }
.pro-success .icon-badge { width: 64px; height: 64px; margin: 0 auto 16px; background: var(--green-50); color: var(--green-700); }

/* ---------- Partner portal ---------- */
.portal-shell { min-height: calc(100vh - 72px - 260px); padding: 56px 0; background: var(--slate-50); }
.portal-card { max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.portal-dashboard { max-width: 880px; margin: 0 auto; }
.status-pill { display: inline-flex; padding: 4px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; }
.status-nouveau, .status-en_attente { background: var(--slate-100); color: var(--slate-600); }
.status-contacte { background: #dbeafe; color: #1d4ed8; }
.status-converti, .status-actif { background: var(--green-50); color: var(--green-700); }
.status-perdu, .status-suspendu { background: var(--red-50); color: var(--red-700); }
[hidden] { display: none !important; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.data-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-400); padding: 10px 12px; border-bottom: 1px solid var(--slate-200); }
table.data-table td { padding: 12px; border-bottom: 1px solid var(--slate-100); color: var(--slate-700); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero .container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-6, .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-cta { gap: 8px; }
  .nav-cta .btn-primary { display: none; }
  .nav-cta .btn-outline {
    padding: 0; width: 40px; height: 40px; border-radius: 999px; flex-shrink: 0;
  }
  .nav-cta .btn-outline .phone-text { display: none; }
  .menu-toggle { flex-shrink: 0; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-6, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 40px; }
  .hero h1 { font-size: clamp(1.65rem, 7vw, 2.1rem); }
  section { padding: 40px 0; }
  .band { padding: 32px 24px; }
  .band .container-inner { flex-direction: column; align-items: flex-start; }
  .site-header .container { height: 76px; }
  .brand-logo { height: 58px; }
  .brand-tagline { display: none; }
  .container { padding: 0 16px; }
  .hero-stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-card { padding: 20px; }
  .form-card, .card { padding: 20px; }
  .contact-details a, .contact-details div { font-size: 0.88rem; }
}

/* ---------- Vigie IA widget ---------- */
.vb-root { position: fixed; right: 20px; bottom: 20px; z-index: 200; }
.vb-toggle {
  display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 16px;
  border-radius: 999px; border: none; background: var(--brand-500); color: #fff;
  box-shadow: 0 10px 24px -6px rgba(91, 46, 224, 0.5); cursor: pointer; font-weight: 700; font-size: 0.9rem;
  transition: background .15s, transform .15s;
}
.vb-toggle:hover { background: var(--brand-600); transform: translateY(-1px); }
.vb-toggle-label { white-space: nowrap; }
.vb-toggle-logo {
  width: 28px; height: 28px; border-radius: 999px; background: #fff; object-fit: cover; flex-shrink: 0;
}

.vb-panel {
  position: fixed; right: 20px; bottom: 88px; width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 120px); background: #fff; border-radius: 18px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.35); display: flex; flex-direction: column;
  overflow: hidden; border: 1px solid var(--slate-200);
}
.vb-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; background: var(--brand-500); color: #fff; flex-shrink: 0;
}
.vb-header-info { display: flex; align-items: center; gap: 10px; }
.vb-avatar {
  width: 34px; height: 34px; border-radius: 999px; background: #fff;
  display: block; object-fit: cover; flex-shrink: 0;
}
.vb-header-info strong { display: block; font-size: 0.92rem; }
.vb-status { font-size: 0.72rem; opacity: 0.85; }
.vb-close { background: none; border: none; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 6px; }
.vb-header-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.vb-voice-toggle {
  background: none; border: none; color: rgba(255,255,255,0.75); cursor: pointer;
  width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
}
.vb-voice-toggle:hover { background: rgba(255,255,255,0.15); color: #fff; }
.vb-voice-toggle.is-active { background: rgba(255,255,255,0.22); color: #fff; }

.vb-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--slate-50); }
.vb-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 0.88rem; line-height: 1.45; }
.vb-msg-assistant { align-self: flex-start; background: #fff; border: 1px solid var(--slate-200); color: var(--slate-800); border-bottom-left-radius: 4px; }
.vb-msg-user { align-self: flex-end; background: var(--brand-500); color: #fff; border-bottom-right-radius: 4px; }
.vb-typing { display: flex; gap: 4px; align-items: center; padding: 12px 14px; }
.vb-typing span { width: 6px; height: 6px; border-radius: 999px; background: var(--slate-400); animation: vb-bounce 1.2s infinite ease-in-out; }
.vb-typing span:nth-child(2) { animation-delay: 0.15s; }
.vb-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes vb-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.vb-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--slate-200); flex-shrink: 0; }
.vb-input {
  flex: 1; border: 1px solid var(--slate-300); border-radius: 10px; padding: 10px 12px;
  font-size: 16px; font-family: inherit; min-height: 44px;
}
.vb-input:focus { outline: 2px solid var(--brand-500); outline-offset: 1px; border-color: var(--brand-500); }
.vb-send {
  width: 44px; height: 44px; border-radius: 10px; border: none; background: var(--brand-500); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.vb-send:hover { background: var(--brand-600); }
.vb-mic {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--slate-300); background: #fff;
  color: var(--slate-600); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.vb-mic:hover { border-color: var(--brand-500); color: var(--brand-600); }
.vb-mic.is-listening {
  background: #fef2f2; border-color: #ef4444; color: #dc2626;
  animation: vb-pulse 1.2s infinite;
}
@keyframes vb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}
.vb-mic-status {
  font-size: 0.74rem; color: var(--brand-600); text-align: center; padding: 0 14px 8px; flex-shrink: 0; margin: 0;
}
.vb-mic-status.is-error { color: #dc2626; }
.vb-disclaimer { font-size: 0.68rem; color: var(--slate-400); text-align: center; padding: 0 14px 12px; flex-shrink: 0; }
.vb-disclaimer a { color: var(--brand-600); font-weight: 600; }

@media (max-width: 480px) {
  .vb-root { right: 12px; bottom: 12px; }
  .vb-toggle-label { display: none; }
  .vb-toggle { width: 52px; padding: 0; justify-content: center; }
  .vb-panel {
    right: 8px; left: 8px; bottom: 80px; width: auto; max-width: none;
    height: min(70vh, 560px);
  }
}

/* Mobile nav panel — tiroir latéral au-dessus de la page */
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: 300px; max-width: 85vw;
  background: #fff; z-index: 60; padding: 20px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  transform: translateX(100%);
  transition: transform .28s ease;
  box-shadow: -16px 0 40px -12px rgba(15, 23, 42, 0.3);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-close {
  align-self: flex-end; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--slate-200);
  background: var(--slate-50); color: var(--slate-600); font-size: 1.4rem; line-height: 1; cursor: pointer;
  margin-bottom: 12px;
}
.mobile-nav-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); z-index: 59;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.mobile-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav a { padding: 14px 4px; font-size: 1rem; font-weight: 600; border-bottom: 1px solid var(--slate-100); }
