/* ============================================================
   SmartSeniors — Conversation (split : chat | dossier en direct)
   ============================================================ */

.ss-convo { padding: clamp(16px,3vw,32px) clamp(14px,4vw,48px) clamp(28px,5vw,56px); }
.ss-convo-head { max-width: 1180px; margin: 0 auto clamp(16px,3vw,26px); text-align: center; }
.ss-convo-head .ss-sec-title { font-size: clamp(1.5rem,3.2vw,2rem); margin: 8px 0 6px; }
.ss-convo-head .ss-sec-lede { margin: 0 auto; }

.ss-split {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.12fr .88fr; gap: 0;
  border-radius: calc(var(--radius-card) + 4px); overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid var(--c-line);
  min-height: 660px;
}
.ss-root[data-direction="atelier"] .ss-split { border: 1.5px solid var(--c-ink); }
.ss-root[data-direction="solstice"] .ss-split { border: 2px solid var(--c-ink); box-shadow: 10px 10px 0 rgba(14,59,51,.12); }
@media (max-width: 900px) { .ss-split { grid-template-columns: 1fr; min-height: 0; } }

/* ───────────── CHAT SIDE ───────────── */
.chat-side { background: var(--c-bg-alt); display: flex; flex-direction: column; min-height: 0; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.chat-top .emma-av { width: 42px; height: 42px; }
.chat-top .emma-av svg { width: 26px; height: 26px; }
.chat-top .nm { font-weight: 900; font-size: 1rem; color: var(--c-ink); line-height: 1.1; }
.chat-top .rl { font-size: .72rem; color: var(--c-accent); font-weight: 700; margin-top: 1px; }
.chat-replay {
  margin-left: auto; font-family: var(--font); font-size: .78rem; font-weight: 800; cursor: pointer;
  border: 1.5px solid var(--c-line); background: transparent; color: var(--c-ink-soft);
  border-radius: 999px; padding: 7px 14px; display: inline-flex; align-items: center; gap: 6px; transition: all .18s;
}
.ss-root[data-direction="atelier"] .chat-replay { border-radius: 6px; }
.chat-replay:hover { border-color: var(--c-accent); color: var(--c-accent); }
.chat-replay svg { width: 13px; height: 13px; }

.chat-scroll { flex: 1; overflow-y: auto; padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; min-height: 360px; max-height: 560px; }
.chat-scroll::-webkit-scrollbar { width: 6px; }
.chat-scroll::-webkit-scrollbar-thumb { background: rgba(94,126,120,.3); border-radius: 4px; }

.crow { display: flex; gap: 10px; animation: ss-slideup .34s ease both; }
.crow.user { flex-direction: row-reverse; }
@keyframes ss-slideup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.cav { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; align-self: flex-end; background: linear-gradient(135deg,#4ECDC4,#A855F7); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(21,183,158,.32); }
.cav svg { width: 16px; height: 16px; }
.cbub { max-width: 80%; padding: 12px 15px; font-size: .93rem; line-height: 1.58; border-radius: 16px; box-shadow: var(--shadow-soft); }
.crow.bot .cbub { background: var(--c-surface); color: var(--c-ink); border-bottom-left-radius: 4px; }
.crow.user .cbub { background: var(--c-brown); color: #fff; border-bottom-right-radius: 4px; }
.ss-root[data-direction="atelier"] .cbub { border-radius: 8px; }
.ss-root[data-direction="atelier"] .crow.bot .cbub { border-bottom-left-radius: 0; }
.cbub strong { color: var(--c-accent); }
.ccursor { display: inline-block; width: 2px; height: 1em; background: var(--c-accent); margin-left: 2px; vertical-align: text-bottom; animation: ss-blink .65s step-end infinite; }
@keyframes ss-blink { 50% { opacity: 0; } }

.cthink { display: inline-flex; padding: 12px 16px; background: var(--c-surface); border-radius: 16px; border-bottom-left-radius: 4px; width: fit-content; box-shadow: var(--shadow-soft); }
.cthink span { width: 7px; height: 7px; border-radius: 50%; margin: 0 2px; animation: ss-bounce .9s ease-in-out infinite; }
.cthink span:nth-child(1){background:var(--joy1)} .cthink span:nth-child(2){background:var(--joy2);animation-delay:.15s} .cthink span:nth-child(3){background:var(--joy3);animation-delay:.3s}
@keyframes ss-bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

.chat-input { display: flex; gap: 9px; align-items: center; padding: 12px 16px; background: var(--c-surface); border-top: 1px solid var(--c-line); }
.chat-input input, .chat-input textarea { flex: 1; border: 1.5px solid var(--c-line); border-radius: 13px; padding: 12px 15px; font-family: var(--font); font-size: .92rem; background: var(--c-bg); color: var(--c-ink); outline: none; }
.ss-root[data-direction="atelier"] .chat-input input, .ss-root[data-direction="atelier"] .chat-input textarea { border-radius: 7px; }
.chat-send { width: 44px; height: 44px; border: none; border-radius: 50%; cursor: pointer; flex-shrink: 0; background: var(--grad); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 14px rgba(21,183,158,.42); }
.ss-root[data-direction="atelier"] .chat-send { border-radius: 9px; }
.chat-send svg { width: 19px; height: 19px; }

/* ───────────── LEAD SIDE (back-office) ───────────── */
.lead-side { background: #12463C; padding: 24px 24px 26px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.lead-side::before { content:''; position:absolute; width:240px; height:240px; border-radius:50%; background:rgba(21,183,158,.08); top:-80px; right:-70px; pointer-events:none; }
.lead-head { display: flex; align-items: center; gap: 11px; margin-bottom: 6px; position: relative; z-index: 1; }
.lead-head .lh-ico { width: 34px; height: 34px; border-radius: 9px; background: rgba(21,183,158,.18); display: flex; align-items: center; justify-content: center; color: var(--c-accent2); }
.lead-head .lh-ico svg { width: 18px; height: 18px; }
.lead-head .lh-t { font-size: 1.02rem; font-weight: 900; color: #F1F7F5; line-height: 1.1; }
.lead-head .lh-s { font-size: .7rem; color: rgba(241,247,245,.5); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.lead-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: .68rem; font-weight: 800; color: var(--c-online); text-transform: uppercase; letter-spacing: .05em; }

.lead-prog { height: 6px; border-radius: 99px; background: rgba(241,247,245,.1); overflow: hidden; margin: 16px 0 18px; position: relative; z-index: 1; }
.lead-prog i { display: block; height: 100%; border-radius: 99px; background: var(--grad); width: 0; transition: width .6s cubic-bezier(.4,0,.2,1); }

.lead-fields { display: flex; flex-direction: column; gap: 9px; position: relative; z-index: 1; flex: 1; }
.lfield {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 12px; background: rgba(255,255,255,.05); border: 1.5px solid rgba(241,247,245,.08);
  transition: all .4s ease; opacity: .5;
}
.ss-root[data-direction="atelier"] .lfield { border-radius: 6px; }
.lfield.filled { opacity: 1; background: rgba(255,255,255,.08); border-color: rgba(21,183,158,.35); }
.lfield.flash { animation: ss-flash .9s ease; }
@keyframes ss-flash { 0% { background: rgba(21,183,158,.32); } 100% { background: rgba(255,255,255,.08); } }
.lf-check {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(241,247,245,.08); color: rgba(241,247,245,.3);
  border: 1.5px solid rgba(241,247,245,.14); transition: all .4s;
}
.lfield.filled .lf-check { background: var(--c-online); color: var(--c-header); border-color: transparent; }
.lf-check svg { width: 14px; height: 14px; }
.lf-body { flex: 1; min-width: 0; }
.lf-label { font-size: .68rem; font-weight: 800; color: rgba(241,247,245,.45); text-transform: uppercase; letter-spacing: .04em; }
.lf-value { font-size: .92rem; font-weight: 700; color: #F1F7F5; margin-top: 2px; min-height: 1.2em; }
.lfield:not(.filled) .lf-value { color: rgba(241,247,245,.28); font-weight: 600; font-style: italic; }

/* urgency gauge */
.lead-score { margin-top: 16px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1.5px solid rgba(241,247,245,.1); position: relative; z-index: 1; opacity: .45; transition: opacity .4s; }
.ss-root[data-direction="atelier"] .lead-score { border-radius: 7px; }
.lead-score.on { opacity: 1; }
.ls-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ls-label { font-size: .74rem; font-weight: 800; color: rgba(241,247,245,.6); text-transform: uppercase; letter-spacing: .04em; }
.ls-badge { font-size: .76rem; font-weight: 900; padding: 4px 12px; border-radius: 99px; }
.ls-badge.chaud { background: #FEE2E2; color: #b91c1c; }
.ls-badge.tiede { background: #FEF9C3; color: #92400e; }
.ls-badge.froid { background: #DBEAFE; color: #1e40af; }
.ls-meter { height: 10px; border-radius: 99px; background: rgba(241,247,245,.12); overflow: hidden; }
.ls-meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg,#3B82F6,#FFD93D,#FF6B6B); width: 0; transition: width 1s cubic-bezier(.4,0,.2,1); }
.ls-scale { display: flex; justify-content: space-between; font-size: .64rem; color: rgba(241,247,245,.4); font-weight: 700; margin-top: 5px; }

/* sent / email preview */
.lead-sent { margin-top: 14px; position: relative; z-index: 1; opacity: 0; transform: translateY(10px); transition: all .5s ease; pointer-events: none; }
.lead-sent.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lead-sent-banner { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-radius: 12px; background: rgba(110,231,183,.12); border: 1.5px solid rgba(110,231,183,.3); margin-bottom: 10px; }
.ss-root[data-direction="atelier"] .lead-sent-banner { border-radius: 6px; }
.lead-sent-banner .sb-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--c-online); color: var(--c-header); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lead-sent-banner .sb-ico svg { width: 16px; height: 16px; }
.lead-sent-banner .sb-t { font-size: .88rem; font-weight: 900; color: var(--c-online); line-height: 1.2; }
.lead-sent-banner .sb-s { font-size: .72rem; color: rgba(110,231,183,.65); font-weight: 700; margin-top: 1px; }

.email-card { background: rgba(255,255,255,.06); border: 1px solid rgba(241,247,245,.12); border-radius: 11px; padding: 13px 15px; }
.ss-root[data-direction="atelier"] .email-card { border-radius: 6px; }
.email-from { display: flex; align-items: center; gap: 8px; padding-bottom: 9px; margin-bottom: 9px; border-bottom: 1px solid rgba(241,247,245,.1); }
.email-from .ef-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 900; color: #fff; flex-shrink: 0; }
.email-from .ef-t { font-size: .78rem; font-weight: 800; color: #F1F7F5; }
.email-from .ef-s { font-size: .68rem; color: rgba(241,247,245,.45); }
.email-subj { font-size: .82rem; font-weight: 800; color: var(--c-accent2); margin-bottom: 6px; }
.email-body { font-size: .76rem; color: rgba(241,247,245,.7); line-height: 1.55; }
.email-body b { color: #F1F7F5; }
