:root {
  --navy: #10203c;
  --navy-2: #1d3357;
  --lime: #adf359;
  --lime-d: #92d93f;
  --bg: #faf8f3;
  --card: #fff;
  --line: #e8e4da;
  --muted: #5d6a82;
  --danger: #c0392b;
  --shadow: 0 1px 2px rgba(16, 32, 60, .05), 0 10px 30px rgba(16, 32, 60, .07);
  --radius: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--navy); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-underline-offset: 3px; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); padding-block: 40px 80px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.fineprint { font-size: .85rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: #33445f; max-width: 34em; }
.notice { background: #fff8e1; border: 1px solid #f1dd9b; border-radius: 12px; padding: 12px 16px; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-word { font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; color: var(--navy); }
.logo-word span { background: linear-gradient(transparent 62%, var(--lime) 62%); }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--lime); color: var(--navy); box-shadow: 0 6px 18px rgba(173, 243, 89, .45); }
.btn-primary:hover { background: var(--lime-d); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-sm { padding: 6px 14px; font-size: .88rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* en-tête site */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 243, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 550; color: #33445f; }
.nav-links a:not(.btn):hover { color: var(--navy); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; cursor: pointer; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; flex-direction: column; justify-content: center; gap: 4px; padding: 0 11px; }
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-block: 72px 40px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.preview-card { background: #fff; border-radius: 24px; box-shadow: 0 30px 80px rgba(16, 32, 60, .16); border: 1px solid var(--line); overflow: hidden; transform: rotate(1.2deg); }
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f4f1e8; border-bottom: 1px solid var(--line); }
.preview-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #d9d3c2; }
.preview-bar em { margin-left: 8px; font-size: .78rem; color: var(--muted); font-style: normal; font-weight: 600; }
.preview-body { padding: 20px; }
.preview-title { font-weight: 700; margin-bottom: 10px; }
.preview-list { list-style: none; margin: 0 0 18px; padding: 0; }
.preview-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.preview-list small { display: block; color: var(--muted); }
.preview-chat { background: var(--bg); border-radius: 16px; padding: 14px; }

/* sections */
.section { padding-block: 64px; }
.section-lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 28px; }
.narrow-sec { max-width: 820px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.card-sm { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.step-n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--lime); font-weight: 800; margin-bottom: 14px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-weight: 550; }
.assistant-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; background: var(--navy); color: #fff; border: 0; }
.assistant-band h2, .assistant-band .eyebrow { color: #fff; }
.assistant-band .eyebrow { color: var(--lime); }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.tick { flex: none; margin-top: 3px; }
.plan { display: flex; flex-direction: column; }
.plan-featured { border: 2px solid var(--navy); transform: translateY(-6px); }
.plan-tag { color: var(--muted); }
.price strong { font-size: 2.4rem; letter-spacing: -.03em; }
.price span { color: var(--muted); }
.plan .btn { margin-top: auto; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: 10px 0 0; color: #33445f; }
.cta-band { background: var(--navy); color: #fff; border-radius: 28px; padding: 56px 28px; text-align: center; }
.cta-band h2 { color: #fff; }
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-grid nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }

/* badges */
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eef1f6; color: var(--navy); white-space: nowrap; }
.b-new, .s-nouveau { background: #e3ecff; }
.b-quote, .s-devis { background: #fff1cc; }
.b-won, .s-gagne { background: var(--lime); }
.s-contacte { background: #e6f5ff; }
.s-perdu { background: #f3dcd9; color: #7b2418; }
.u-prioritaire { background: #ffe6bf; }
.u-urgente { background: #ffd1cc; color: #7b2418; }

/* bulles de conversation (base, réutilisée par l'admin) */
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; margin: 0 0 10px; white-space: normal; overflow-wrap: anywhere; }
.bubble-in { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble-out { background: var(--lime); margin-left: auto; border-bottom-right-radius: 4px; }
.chat-log {
  height: min(55vh, 560px);
  height: min(55dvh, 560px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  display: flex;
  flex-direction: column;
  padding: 4px 5px 12px 2px;
}
.chat-log:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }

/* ===================== CHAT PREMIUM (conversation publique) ===================== */
.card.chat {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 150px);
}
/* En-tête : entreprise + statut assistant virtuel */
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfaf6);
}
.chat-head-avatar {
  flex: none; width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center; background: var(--navy);
  box-shadow: 0 4px 12px rgba(16, 32, 60, .18);
}
.chat-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.25; }
.chat-head-name { font-weight: 750; font-size: 1.02rem; overflow-wrap: anywhere; }
.chat-head-status { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.chat-head-dot { width: 9px; height: 9px; border-radius: 50%; background: #2fbf6b; box-shadow: 0 0 0 4px rgba(47, 191, 107, .16); }

/* Zone des messages */
.card.chat .chat-log {
  flex: 1 1 auto;
  height: auto;
  min-height: 240px;
  max-height: min(58dvh, 560px);
  gap: 12px;
  padding: 20px 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(173, 243, 89, .08), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(16, 32, 60, .05), transparent 46%),
    #f6f4ee;
  scroll-behavior: smooth;
}
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 86%; margin: 0; }
.msg-in { align-self: flex-start; }
.msg-out { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 2px;
}
.msg-in .msg-avatar { background: var(--navy); }
.msg-out .msg-avatar { background: #e7ebf2; color: var(--navy-2); }
/* Regroupe les messages consécutifs du même interlocuteur */
.msg-in + .msg-in .msg-avatar,
.msg-out + .msg-out .msg-avatar { visibility: hidden; }
.card.chat .bubble {
  max-width: 100%; margin: 0;
  padding: 11px 15px; border-radius: 18px;
  font-size: 1rem; line-height: 1.5;
  box-shadow: 0 1px 2px rgba(16, 32, 60, .06);
}
.card.chat .bubble-in { background: #fff; border: 1px solid var(--line); color: var(--navy); border-bottom-left-radius: 6px; }
.card.chat .bubble-out { background: var(--navy); color: #fff; margin-left: 0; border: 0; border-bottom-right-radius: 6px; }
.card.chat .bubble-out a { color: #d8f3b4; }

/* Indicateur honnête « réponse en cours » (affiché uniquement pendant une vraie requête via JS) */
.chat-pending { display: flex; align-items: flex-end; gap: 8px; align-self: flex-start; max-width: 86%; }
.chat-pending[hidden] { display: none; }
.chat-pending .msg-avatar { background: var(--navy); }
.chat-typing { display: inline-flex; gap: 5px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; border-bottom-left-radius: 6px; padding: 14px 16px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa6bd; animation: chat-typing 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Composer fixé en bas de la carte */
.chat-form {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-field { flex: 1 1 auto; min-width: 0; }
.chat-input {
  min-height: 48px;
  max-height: 152px;
  overflow-y: auto;
  line-height: 1.45;
  resize: none;
  font-size: 16px;
  border-radius: 14px;
}
.chat-send {
  flex: none; min-height: 48px; min-width: 48px;
  padding: 10px 20px; align-self: flex-end;
}
.chat-send-icon { display: none; }
.chat-form button:disabled { opacity: .7; cursor: wait; }
.chat-reset { text-align: center; padding: 10px 16px 14px; }
.chat-reset .link-btn { min-height: 40px; }

@media (max-width: 640px) {
  .card.chat { max-height: none; }
  .card.chat .chat-log { max-height: 56dvh; padding: 16px 13px; gap: 10px; }
  .msg, .chat-pending { max-width: 92%; }
  .chat-form { gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .chat-send { padding: 10px; }
  .chat-send-label { display: none; }
  .chat-send-icon { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card.chat .chat-log { scroll-behavior: auto; }
  .chat-typing span { animation: none; }
  .btn:hover { transform: none; }
}

/* formulaires */
.stack { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-label { font-weight: 600; font-size: .92rem; }
.field-label i { color: var(--danger); font-style: normal; }
.input { width: 100%; padding: 11px 14px; border: 1px solid #d5d0c2; border-radius: 12px; font: inherit; background: #fff; color: var(--navy); }
.input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(173, 243, 89, .6); }
.input.has-error { border-color: var(--danger); }
.input-sm { padding: 6px 10px; width: auto; }
textarea.input { resize: vertical; }
.hint { color: var(--muted); }
.error { color: var(--danger); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 5px; accent-color: var(--navy); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.radios { display: grid; gap: 10px; }
.radio { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.days { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { background: #eefbd9; border: 1px solid var(--lime-d); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.flash-error { background: #fdeceb; border-color: #e5a29b; color: #7b2418; }
.actions { display: flex; gap: 12px; }
.inline { display: inline-flex; gap: 6px; align-items: center; }
.danger summary { cursor: pointer; font-weight: 650; color: var(--danger); }

/* pages d'authentification & publiques */
.auth-wrap { min-height: 100vh; display: grid; place-content: center; gap: 22px; padding: 28px 16px; width: min(480px, 100%); margin-inline: auto; }
.auth-logo { justify-self: center; text-decoration: none; }
.auth-card h1 { font-size: 1.9rem; }
.public-wrap { width: min(680px, 100% - 32px); margin: 0 auto; padding: 40px 0 60px; }
.public-head { margin-bottom: 22px; }
.public-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.back { text-decoration: none; display: inline-block; margin-bottom: 24px; }

/* application */
body.app { background: #f5f3ec; }
.app-shell { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #fff; padding: 24px 18px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.sidebar .logo-word { color: #fff; }
.side-logo { text-decoration: none; margin-bottom: 4px; }
.side-org { color: #aebbd3; font-size: .85rem; margin: 4px 0 18px; overflow-wrap: anywhere; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: #d6deee; text-decoration: none; font-weight: 600; }
.side-link:hover { background: var(--navy-2); color: #fff; }
.side-link.active { background: var(--lime); color: var(--navy); }
.side-foot { display: grid; gap: 10px; color: #aebbd3; font-size: .8rem; overflow-wrap: anywhere; }
/* Bascule mode simple / avancé */
.side-mode { margin-top: auto; display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--navy-2); }
.side-mode-label { color: #d6deee; font-size: .82rem; }
.side-mode-label strong { color: var(--lime); }
.mode-switch { font: inherit; font-weight: 650; font-size: .85rem; cursor: pointer; color: var(--navy); background: var(--lime); border: 0; border-radius: 10px; padding: 9px 12px; min-height: 40px; }
.mode-switch:hover, .mode-switch:focus-visible { background: var(--lime-d); }
/* Visibilité selon le mode : hérite du body (.mode-simple / .mode-advanced) */
.mode-simple .adv-only { display: none !important; }
.mode-advanced .simple-only { display: none !important; }
.mode-hint { background: #fff8e1; border: 1px solid #f1dd9b; border-radius: 12px; padding: 12px 16px; }
.app-main { padding: 36px clamp(18px, 4vw, 48px) 80px; min-width: 0; }
.app-top { display: none; }
.scrim { display: none; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0; }
.app-main .grid { margin-bottom: 20px; }
.app-main .card { margin-bottom: 20px; }
.grid .card { margin-bottom: 0; }
.kpi span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.kpi strong { display: block; font-size: 2rem; letter-spacing: -.03em; margin-top: 6px; }
.kpi small { color: var(--muted); }
.kpi-head { display: inline-flex; align-items: center; gap: 8px; }
.kpi-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #eef1f6; color: var(--navy); flex: none; }
.kpi-accent { border-color: var(--navy); box-shadow: 0 10px 30px rgba(16, 32, 60, .1); }
.kpi-accent .kpi-ic { background: var(--lime); }
.page-sub { margin: 4px 0 0; font-size: .98rem; }
/* Bandeau « À traiter » */
.todo-band { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; border: 0; }
.todo-band h2.todo-title { color: #fff; font-size: 1.15rem; margin-bottom: 14px; }
.todo-band.todo-clear { background: #eefbd9; border: 1px solid var(--lime-d); color: var(--navy); }
.todo-band.todo-clear p { margin: 0; font-weight: 600; }
.todo-list { display: flex; flex-wrap: wrap; gap: 12px; }
.todo-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; text-decoration: none; padding: 12px 16px; border-radius: 14px; font-weight: 600; min-height: 48px; transition: background .12s, transform .1s; }
.todo-chip:hover, .todo-chip:focus-visible { background: rgba(255, 255, 255, .2); transform: translateY(-1px); }
.todo-chip strong { font-size: 1.3rem; background: var(--lime); color: var(--navy); border-radius: 8px; padding: 1px 9px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 110px 1fr 30px; gap: 10px; align-items: center; }
.bar { width: 100%; height: 8px; }
.bar-bg { fill: #ece8dc; }
.bar-fill { fill: var(--navy); }
.list { list-style: none; margin: 0 0 10px; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.filters .field { min-width: 200px; }
.cards-list { display: grid; gap: 14px; }
.req { margin-bottom: 0 !important; padding: 20px; }
.req header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.req h3 { margin: 0; }
.req footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.req .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 10px 0; color: #33445f; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.meta { color: var(--muted); font-size: .9rem; }
.empty { text-align: center; padding: 48px 20px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; }
.table td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: top; }

/* mobile */
@media (max-width: 960px) {
  .hero, .assistant-band { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .preview-card { transform: none; }
  .plan-featured { transform: none; }
  .row4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .burger { display: flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 18px 20px 24px; gap: 16px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .grid-2, .grid-3, .grid-4, .row2, .row3, .row4 { grid-template-columns: 1fr; }
  .hero { padding-block: 40px 20px; gap: 36px; }
  .section { padding-block: 44px; }
  .app-shell { grid-template-columns: 1fr; }
  .app-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: 280px; transform: translateX(-102%); transition: transform .2s; }
  .nav-toggle:checked ~ .app-shell .sidebar { transform: none; }
  .nav-toggle:checked ~ .app-shell .scrim { display: block; position: fixed; inset: 0; background: rgba(16, 32, 60, .45); z-index: 40; }
  .bars li { grid-template-columns: 90px 1fr 26px; }
  .table thead { display: none; }
  .table tr { display: block; border-top: 1px solid var(--line); padding: 10px 0; }
  .table td { display: block; border: 0; padding: 4px 0; }
  .table td[data-l]::before { content: attr(data-l) " : "; color: var(--muted); font-weight: 600; }
  .bubble { max-width: 94%; }
}

/* Identité Secrétaire IA : nouveau nom, logo lisible sur ordinateur et mobile. */
.logo-word{white-space:nowrap;font-size:1.14rem}
@media(max-width:1150px) and (min-width:761px){.nav-links{gap:13px}.nav-links a{font-size:.92rem}}
@media(max-width:390px){.logo-word{font-size:1.04rem}}


/* Choix rapides et dictée facultative : chat pour téléphone / ordinateur. */
.chat-quick-replies { display:flex; flex-wrap:wrap; gap:8px; padding:12px 16px 2px; align-items:center; }
.chat-choice { font:inherit; font-weight:650; font-size:.92rem; color:var(--navy);
  background:#fff; border:1.5px solid #cfd8e6; border-radius:999px;
  padding:10px 15px; min-height:44px; cursor:pointer; line-height:1.2;
  box-shadow:0 1px 2px rgba(16,32,60,.05); transition:background .12s, border-color .12s, transform .1s; }
.chat-choice:hover,.chat-choice:focus-visible { background:#eef7e2; border-color:var(--lime-d); transform:translateY(-1px); }
.chat-choice:active { transform:translateY(0); }
.chat-choice:disabled { opacity:.5; cursor:wait; transform:none; }
.chat-voice-toolbar { display:flex; gap:8px; flex-wrap:wrap; align-items:center; padding:10px 16px 0; }
.chat-voice-btn { padding:8px 13px; min-height:40px; background:#fff; border:1px solid #cfd8e6;
  border-radius:999px; color:var(--navy); font:inherit; font-size:.88rem; font-weight:600; cursor:pointer; }
.chat-voice-btn:hover,.chat-voice-btn:focus-visible { border-color:var(--navy); }
.chat-voice-btn[aria-pressed="true"] { background:#eef7e2; border-color:var(--lime-d); }
.chat-voice-btn[hidden] { display:none; }
.chat-voice-status { font-size:.82rem; color:var(--muted); flex:1 1 180px; }
@media(max-width:600px){
 .chat-quick-replies { gap:7px; padding:10px 12px 2px; }
 .chat-choice { font-size:.9rem; padding:9px 13px; }
 .chat-voice-toolbar { padding:8px 12px 0; }
}
@media (prefers-reduced-motion: reduce) {
 .chat-choice:hover,.chat-choice:focus-visible { transform:none; }
}


/* Paramètres professionnels : champs utiles et horaires type carte/tarifs */
.settings-pro-grid{display:grid;grid-template-columns:minmax(290px,.9fr) minmax(480px,1.35fr);gap:18px;align-items:start;margin-bottom:18px}
.settings-section{padding:24px}
.settings-section-head{display:flex;gap:14px;align-items:flex-start;margin-bottom:20px}
.settings-section-head h2{margin:0 0 4px}
.settings-section-head p{margin:0}
.settings-icon{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;border-radius:13px;background:#edf7df;font-size:22px}
.settings-hour-hint{font-size:.9rem;color:#516077;margin:0 0 16px}
.hours-editor{border:1px solid #d9ddde;border-radius:14px;overflow:hidden}
.hours-editor-header,.hours-editor-row{display:grid;grid-template-columns:minmax(95px,1.1fr) minmax(102px,1fr) minmax(105px,1.3fr) minmax(105px,1.3fr);gap:10px;align-items:center;padding:10px 12px}
.hours-editor-header{background:#10203c;color:#fff;font-size:.82rem;font-weight:700}
.hours-editor-row{border-top:1px solid #e9e8e3;min-height:63px}
.hours-editor-row:nth-child(odd){background:#fafcf7}
.hours-editor-row.is-closed{background:#f5f5f3}
.hours-editor-row.is-closed .hours-day{color:#6b7280}
.hours-day{text-transform:capitalize;font-size:.95rem}
.hours-toggle{display:flex;align-items:center;gap:8px;font-size:.89rem;cursor:pointer}
.hours-toggle input{width:19px;height:19px;accent-color:#659b2d}
.hours-time{min-width:0}
.hours-time .input{padding:8px 7px;height:42px;min-width:0}
.hours-label{display:none}
.settings-closures{border-top:1px solid #e9e8e3;padding-top:18px;display:grid;gap:10px}
.settings-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.settings-shortcut{position:relative;border:1px solid #d9ddde;background:#fff;border-radius:13px;min-height:106px;padding:17px 30px 17px 15px;display:grid;align-content:start;grid-template-columns:28px 1fr;gap:2px 10px;color:#10203c;text-decoration:none}
.settings-shortcut>span:first-child{grid-row:span 2;font-size:22px}
.settings-shortcut strong{font-size:.96rem}
.settings-shortcut small{color:#536079;line-height:1.4}
.settings-arrow{position:absolute;right:13px;top:18px}
.settings-shortcut:hover,.settings-shortcut:focus-visible{background:#f3fbe9;border-color:#86c75d;box-shadow:0 0 0 2px #daf5c4}
@media(max-width:1150px){.settings-pro-grid{grid-template-columns:1fr}}
@media(max-width:640px){
.settings-section{padding:17px}
.hours-editor-header{display:none}
.hours-editor{border:0;display:grid;gap:10px;overflow:visible}
.hours-editor-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:13px;border:1px solid #e0e3e2;border-radius:13px;background:#fff}
.hours-editor-row .hours-day{grid-column:1}
.hours-editor-row .hours-toggle{grid-column:2;justify-self:end}
.hours-editor-row .hours-time{grid-row:2}
.hours-label{display:block;font-size:.77rem;color:#516077;margin-bottom:3px}
.settings-shortcuts{grid-template-columns:1fr}
}

.settings-option-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.settings-option{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px;border:1px solid #d9ddde;border-radius:14px;background:#fff;cursor:pointer}
.settings-option:hover{border-color:#83c554;background:#fafdf6}
.settings-option>span{display:grid;gap:4px}
.settings-option strong{color:#10203c}
.settings-option small{line-height:1.45;color:#536079}
.settings-option input{width:23px;height:23px;flex-shrink:0;accent-color:#70a92e;cursor:pointer}
@media(max-width:760px){.settings-option-list{grid-template-columns:1fr}}
