/* SIRA — site vitrine. Fond crème, serif éditoriale, cartes douces, terracotta SIRA en accent. Aucun JavaScript. */

/* Polices hébergées sur le site (aucune requête externe). Licence SIL Open Font License. */
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/source-serif-4-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/source-serif-4-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/source-serif-4-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-tight-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #FAF9F5;
  --surface: #F0EEE6;
  --surface-2: #E8E6DC;
  --ink: #141413;
  --muted: #5E5D59;
  --faint: #8A8880;
  --line: #E3E0D4;
  --accent: #C85A2A;
  --accent-soft: #F5E1D7;
  --navy: #15263E;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pad: clamp(20px, 4vw, 48px);
  --nav-h: 72px;
  --radius: 14px;
  --header-bg: rgba(250, 249, 245, 0.88);
  --tag-bg: rgba(250, 249, 245, 0.94);
  --field-bg: #FFFFFF;
  --shadow: rgba(20, 20, 19, 0.18);
}

/* Mode sombre : choix enregistré (data-theme) ou, à défaut, réglage de l'appareil. */
:root[data-theme="dark"] {
  --bg: #1A1915;
  --surface: #24221D;
  --surface-2: #2E2B25;
  --ink: #F2EFE7;
  --muted: #B3AEA3;
  --faint: #8A857B;
  --line: #36332C;
  --accent: #E58A5F;
  --accent-soft: #3B2A21;
  --header-bg: rgba(26, 25, 21, 0.88);
  --tag-bg: rgba(26, 25, 21, 0.92);
  --field-bg: #1A1915;
  --shadow: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1915;
    --surface: #24221D;
    --surface-2: #2E2B25;
    --ink: #F2EFE7;
    --muted: #B3AEA3;
    --faint: #8A857B;
    --line: #36332C;
    --accent: #E58A5F;
    --accent-soft: #3B2A21;
    --header-bg: rgba(26, 25, 21, 0.88);
    --tag-bg: rgba(26, 25, 21, 0.92);
    --field-bg: #1A1915;
    --shadow: rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; }

.wrap, .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.small { font-size: 0.9rem; }

h1, h2, h3 { margin: 0; color: var(--ink); }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 5vw, 4.1rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.15; letter-spacing: -0.015em; max-width: 24ch; margin-bottom: 0.4em; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.center h2, .section-head h2 { margin-inline: auto; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.role { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-lead, .lead { color: var(--muted); max-width: 62ch; font-size: 1.04rem; margin-top: 16px; }
.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 15px/1 var(--sans); padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark, .btn-primary { background: var(--ink); color: var(--bg); }
.btn-line, .btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover, .btn-outline:hover { background: var(--surface); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 60; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 22px; height: auto; }
.wordmark { font-family: 'Inter Tight', var(--sans); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-link { font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.nav-link:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; line-height: 1;
  padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none;
}
.nav-cta:hover { opacity: 0.85; }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; padding: 12px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 1.5px; background: var(--ink); position: relative; }
.burger::before, .burger::after { content: ''; position: absolute; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { top: 0; transform: rotate(45deg); }
.nav-mobile[open] .burger::after { top: 0; transform: rotate(-45deg); }
.nav-mobile nav {
  position: absolute; right: 0; top: 56px; width: min(300px, calc(100vw - 40px));
  display: flex; flex-direction: column; padding: 10px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 40px rgba(20, 20, 19, 0.08);
}
.nav-mobile nav a:not(.btn) { padding: 12px; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-mobile nav .btn { margin-top: 12px; }

/* Langue et thème */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.lang-switch a, .lang-current { padding: 5px 9px; border-radius: 999px; line-height: 1; text-decoration: none; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--ink); }
.lang-current { background: var(--ink); color: var(--bg); }
.theme-toggle { width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--surface); }
.theme-icon { display: grid; }
.theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: grid; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-icon-sun { display: grid; }
}
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
.nav-compact { display: none; align-items: center; gap: 10px; }

/* Hero */
.hero { padding: 40px 0 80px; }
.status {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.8); opacity: 0; } }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-top: 28px; }
.hero-copy > p:not(.role) { margin-top: 22px; color: var(--muted); font-size: 1.06rem; max-width: 48ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 520px; }
.hero-visual img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; }
.hero-tag {
  position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: var(--tag-bg); font-size: 14px; font-weight: 500;
  color: var(--ink); box-shadow: 0 8px 24px rgba(20, 20, 19, 0.12);
}
.hero-tag .icon { color: var(--accent); }

/* Bandeau défilant (CSS seul) */
.stack { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.stack-label { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: scroll-x 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.tech { display: inline-flex; align-items: center; margin-right: 44px; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink); opacity: 0.72; }
.tech::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 14px; opacity: 0.8; }

/* Sections */
.block { padding: 96px 0; border-bottom: 1px solid var(--line); }
.block-last { border-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.25s ease; }
.card:hover { transform: translateY(-3px); }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.icon-box { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.icon-box-sm { width: 36px; height: 36px; border-radius: 10px; }

.pipeline { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: none; }
.step { background: var(--surface); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.step:not(:last-child)::after {
  content: ''; position: absolute; right: -11px; top: 40px; width: 8px; height: 8px;
  border-top: 1.5px solid var(--faint); border-right: 1.5px solid var(--faint); transform: rotate(45deg);
}
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-num { font-family: var(--serif); font-size: 1.5rem; color: var(--faint); }
.step h3 { font-size: 1rem; }
.step p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.join-card { display: grid; grid-template-columns: 1fr 1.2fr; background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform 0.25s ease; }
.join-card:hover { transform: translateY(-3px); }
.join-card img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.join-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.join-body h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.join-body p { margin: 0; color: var(--muted); }
.link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--accent); }

.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 22px 44px 22px 0; font-weight: 500; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 44px 22px 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-cards { display: grid; gap: 12px; margin-top: 32px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--surface); border-radius: var(--radius); text-decoration: none; transition: transform 0.25s ease; }
.contact-card:hover { transform: translateY(-2px); }
.contact-label { display: block; font-size: 13px; color: var(--muted); }
.contact-value { display: block; font-weight: 500; }

/* Formulaires */
.lead-form { display: grid; gap: 18px; padding: 32px; background: var(--surface); border-radius: var(--radius); text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form select, .lead-form textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--field-bg); border: 1px solid var(--line); border-radius: 10px;
}
.lead-form textarea { resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--ink); }
.lead-form input:user-invalid, .lead-form select:user-invalid { border-color: #DC2626; }
.lead-form ::placeholder { color: var(--faint); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--ink); }
.lead-form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Pages cuisiniers / livreurs */
.page-hero { padding: 64px 0 88px; border-bottom: 1px solid var(--line); }
.page-hero-dark { background: var(--surface); }
.page-hero .lead { margin-bottom: 28px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split-visual img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 24px; }
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section-tinted { background: var(--surface); }
.section-tinted .card { background: var(--bg); }
.section-head { max-width: 680px; margin: 0 auto 8px; text-align: center; }
.section-head h2 { margin-inline: auto; }
.section .cards { margin-top: 36px; }
.timeline { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; counter-reset: step; }
.timeline li { counter-increment: step; position: relative; background: var(--bg); border-radius: var(--radius); padding: 22px 22px 22px 76px; }
.timeline li::before { content: '0' counter(step); position: absolute; left: 24px; top: 20px; font-family: var(--serif); font-size: 1.5rem; color: var(--faint); }
.timeline h3 { margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 32px auto 0; max-width: 560px; display: grid; gap: 10px; }
.check-list li { position: relative; padding: 14px 18px 14px 48px; background: var(--bg); border-radius: 12px; }
.check-list li::before { content: '✓'; position: absolute; left: 18px; top: 13px; color: var(--accent); font-weight: 600; }

/* Merci / erreur */
.status-page { min-height: 60vh; display: grid; align-items: center; }
.status-icon { width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.8rem; color: var(--bg); }
.status-ok { background: var(--ink); }
.status-error { background: var(--accent); }
.status-page h1 { margin-bottom: 16px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.center-buttons { justify-content: center; margin-bottom: 28px; }

/* Pages légales */
.legal h1 { margin-bottom: 1em; }
.legal h2 { font-size: 1.6rem; margin-top: 1.8em; max-width: none; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border-radius: var(--radius); background: var(--surface); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.legal th, .legal td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal th { background: var(--surface-2); }
.legal tr:last-child td { border-bottom: 0; }
.legal mark { background: var(--accent-soft); color: var(--ink); padding: 0 3px; border-radius: 3px; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 88px; height: auto; margin-bottom: 16px; }
.site-footer h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; font-size: 13px; }
.footer-bottom p { margin: 0; }

.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 14px; border-radius: 999px; background: #25D366; color: #fff;
  font-weight: 500; text-decoration: none; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 1080px) {
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3)::after { display: none; }
}
@media (max-width: 900px) {
  .nav-right { display: none; }
  .nav-compact { display: flex; }
  .nav-mobile { display: block; }
  .hero-grid, .split, .faq-layout, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-self: start; }
  .cards, .cards-4 { grid-template-columns: 1fr 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .block, .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .pipeline, .cards, .cards-4, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .join-card { grid-template-columns: 1fr; }
  .join-card img { min-height: 200px; max-height: 240px; }
  .lead-form { padding: 22px; }
  .lead-form .btn, .actions .btn { width: 100%; }
  .whatsapp-fab span { display: none; }
  .whatsapp-fab { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .pulse::after { animation: none; }
  .btn, .card, .join-card, .contact-card { transition: none; }
}

/* Assistant SIRA (web/chat.js) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat[hidden] { display: none; }
.chat-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px 13px 16px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--bg); font: 500 15px/1 var(--sans); cursor: pointer;
  box-shadow: 0 12px 30px var(--shadow);
}
.chat-toggle:hover { opacity: 0.9; }
.chat-open .chat-toggle { display: none; }
.chat-panel {
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px var(--shadow);
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-title { margin: 0; font-family: var(--serif); font-size: 1.2rem; }
.chat-sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.chat-close { border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg a { color: var(--accent); font-weight: 500; }
.msg-bot { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 4px; }
.msg-user { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.msg-error { align-self: flex-start; background: var(--accent-soft); color: var(--ink); }
.msg-typing { color: var(--muted); letter-spacing: 0.2em; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: 12px 14px; font: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--field-bg); color: var(--ink); }
.chat-form input:focus { outline: none; border-color: var(--ink); }
.chat-send { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; }
.chat-send:disabled { opacity: 0.5; cursor: wait; }
.whatsapp-fab { right: auto; left: 20px; }
@media (max-width: 600px) {
  .chat { right: 12px; bottom: 12px; }
  .chat-toggle span { display: none; }
  .chat-toggle { padding: 15px; }
}
