/* ============================================================
   LeadExclu — conseiller IA (bulle et plein écran)
   ============================================================ */
.cs { font-size: 15px; }
.cs-fab { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; align-items: center; gap: 9px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 99px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 10px 30px -6px rgba(12,26,36,.45); transition: transform .2s; }
.cs-fab:hover { transform: translateY(-2px); }
.cs-fab .ic { color: #7ad3ad; }
.cs.nudge .cs-fab { animation: nudge 1s ease-in-out 3; }
@keyframes nudge { 30% { transform: translateY(-6px); } 60% { transform: translateY(0); } }
.cs.open .cs-fab span { display: none; }
.cs.open .cs-fab { padding: 0 16px; }
.cs-panel { position: fixed; right: 22px; bottom: 88px; z-index: 81; width: 390px; max-width: calc(100vw - 24px); height: min(620px, calc(100vh - 120px)); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(12,26,36,.4); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(14px) scale(.98); pointer-events: none; transition: opacity .2s, transform .2s; }
.cs.open .cs-panel { opacity: 1; transform: none; pointer-events: auto; }
.cs-head { display: flex; gap: 11px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--line-2); background: var(--ink); color: #fff; }
.cs-head b { display: block; font-size: .95rem; }
.cs-head small { color: #9fb0bb; font-size: .78rem; }
.cs-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #2a9d74); display: grid; place-items: center; font-weight: 700; position: relative; flex-shrink: 0; }
.cs-av::after { content: ""; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: #34d399; border: 2px solid var(--ink); }
.cs-x { border: 0; background: rgba(255,255,255,.08); color: #fff; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; }
.cs-feed { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px; background: var(--surface-2); }
.cs-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; line-height: 1.45; font-size: .93rem; white-space: pre-wrap; animation: csin .2s ease-out; }
@keyframes csin { from { opacity: 0; transform: translateY(5px); } }
.cs-msg.bot { background: #fff; border: 1px solid var(--line-2); border-bottom-left-radius: 5px; align-self: flex-start; }
.cs-msg.me { background: var(--brand); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.cs-typing { display: inline-flex; gap: 4px; padding: 13px 15px; }
.cs-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa5ad; animation: csb 1.2s infinite; display: block; }
.cs-typing i:nth-child(2) { animation-delay: .2s; } .cs-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes csb { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.cs-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.cs-chips button { border: 1.5px solid var(--brand); background: #fff; color: var(--brand-700); font: inherit; font-weight: 600; font-size: .85rem; padding: 7px 12px; border-radius: 99px; cursor: pointer; text-align: left; }
.cs-chips button:hover { background: var(--brand-50); }
.cs-card { background: #fff; border: 1px solid var(--brand-100); border-radius: 14px; padding: 12px 13px; align-self: stretch; animation: csin .25s; }
.cs-ct { display: flex; gap: 7px; align-items: center; font-weight: 650; font-size: .9rem; margin-bottom: 8px; }
.cs-ct .ic { width: 16px; height: 16px; color: var(--brand); }
.cs-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 6px; }
.cs-kv div { background: var(--surface-2); border-radius: 9px; padding: 7px 8px; }
.cs-kv small { display: block; color: var(--muted); font-size: .7rem; line-height: 1.2; }
.cs-kv b { font-size: .95rem; letter-spacing: -.02em; }
.cs-card .faint { font-size: .74rem; }
.cs-in { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line-2); background: #fff; }
.cs-in textarea { flex: 1; min-height: 42px; max-height: 110px; resize: none; padding: 10px 12px; border-radius: 12px; font-size: 16px; }
.cs-in button { width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.cs-foot { text-align: center; font-size: .7rem; color: var(--faint); padding: 0 0 8px; background: #fff; }
.cs-foot a { color: var(--faint); text-decoration: underline; }
@media (max-width: 760px) {
  .cs-fab { bottom: 84px; right: 14px; height: 48px; }
  .cs-panel { right: 0; left: 0; bottom: 0; width: 100%; max-width: none; height: 100dvh; border-radius: 0; }
  .cs:not(.cs-full).open .cs-fab { display: none; }
  .cs-head { padding-top: calc(13px + env(safe-area-inset-top)); }
}
/* Plein écran (conseiller.html) */
.cs-full .cs-panel { position: static; width: 100%; max-width: 760px; height: calc(100dvh - 130px); min-height: 480px; margin: 0 auto; opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 760px) { .cs-full .cs-panel { height: calc(100dvh - 64px); border-radius: 0; border-left: 0; border-right: 0; } }
