/* Briefing */
.brief-head { display: flex; align-items: center; gap: 14px; margin: 18px 0 18px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; background: var(--surface-2); border: 2px solid var(--line); }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 2px; }
.how { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.how .mic-mini { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); flex: none; display: grid; place-items: center; }

/* Call */
#call { padding-bottom: 0; }
#call.active { height: 100dvh; overflow: hidden; }
.call-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.avatar.has-img { border: 0; background: none; overflow: hidden; }
.avatar svg { width: 100%; height: 100%; display: block; }
.avatar.small { width: 42px; height: 42px; font-size: 17px; }
.call-id { display: flex; align-items: center; gap: 10px; }
q.said { font-style: italic; quotes: "« " " »"; }
.call-who b { font-family: var(--display); font-size: 20px; display: block; line-height: 1.1; }
.call-who span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Raccrocher : bouton filaire rouge, pas en gras (choix du 28 novembre 2026). */
.hangup { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 999px; border: 1.5px solid #D9544D; background: transparent; color: #D9544D; font-weight: 500; }
.hangup:active { background: rgba(217, 84, 77, .08); }
.hangup.confirm { background: #D9544D; color: #fff; border-color: #D9544D; }
.stage { display: flex; flex-direction: column; align-items: center; padding: 18px 0 8px; }
.orb { width: 132px; height: 132px; transition: transform .4s ease, filter .4s ease, width .4s ease, height .4s ease; animation: breathe 4.5s ease-in-out infinite; }
.compact .orb { width: 84px; height: 84px; }
.orb.speaking { animation: speak 0.9s ease-in-out infinite; }
.orb.thinking { animation: breathe 1.6s ease-in-out infinite; filter: saturate(.7) brightness(.95); }
.orb.listening { filter: saturate(.35) brightness(1.05); animation: none; }
.orb.bloom { animation: bloom 1.4s ease-out forwards; }
.orb.cold { filter: grayscale(.9) brightness(.8); animation: none; }
.status { margin-top: 12px; font-size: 15px; color: var(--muted); min-height: 24px; text-align: center; }
.feed { flex: 1; overflow-y: auto; padding: 8px 2px 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 20px; font-size: 16px; line-height: 1.42; }
.msg.p { background: var(--surface); align-self: flex-start; border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.msg.c { background: var(--ink); color: var(--bg); align-self: flex-end; border-bottom-right-radius: 6px; }
.msg.c.pending { opacity: .6; }
.msg.live { opacity: .62; }
/* Réponse de la prospecte en temps réel : les caractères apparaissent un à un (fondu net) au rythme de la voix, et la bulle grandit avec le texte. */
.msg.live.rev { opacity: 1; padding: 0; overflow: hidden; transition: width .18s cubic-bezier(.2, .8, .2, 1), height .18s cubic-bezier(.2, .8, .2, 1); }
.rtexte { display: block; width: max-content; padding: 12px 15px; }
.rmot { display: inline-block; white-space: nowrap; }
.rcar { display: inline-block; animation: rcarFondu 260ms ease-out both; }
@keyframes rcarFondu { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }
.rev.leger .rcar { animation-name: rcarFonduLeger; }
@keyframes rcarFonduLeger { from { opacity: 0; } to { opacity: 1; } }
/* Réglage « réduire les animations » : le texte apparaît toujours au fil de la voix, sans fondu ni transition de la bulle. */
@media (prefers-reduced-motion: reduce) { .rcar { animation: none; } .msg.live.rev { transition: none; } }
#call.live .controls, #call.live .textbar { display: none !important; }
.fallback { display: none; width: 100%; text-align: center; }
.fallback.show { display: block; }
.fallback p { margin: 0 0 12px; }
.maj { margin: 0 0 14px; border: 1.5px solid #F25F5C; }
.maj b { display: block; margin-bottom: 4px; }
.maj p { margin: 0; font-size: 14px; color: var(--muted); }
.fallback .detail { display: block; margin: -6px 0 12px; font-size: 12px; color: var(--muted); word-break: break-word; }
.btn-white { background: #fff; color: #14262A; border: 1.5px solid #14262A; box-shadow: 0 2px 8px rgba(20,38,42,.12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-white { border-color: #fff; } }
:root[data-theme="dark"] .btn-white { border-color: #fff; }
.fallback .btn + .btn { margin-top: 8px; }
.msg .replay { display: block; margin-top: 6px; background: none; border: 0; padding: 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: currentColor; opacity: .5; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
.dock {
  position: sticky; bottom: 0; background: linear-gradient(to bottom, rgba(0,0,0,0), var(--bg) 22%);
  padding: 18px 0 max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.improve { display: none; }
.improve.show { display: inline-flex; animation: rise .35s ease-out; }
.controls { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; width: 100%; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.mic {
  justify-self: center; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; position: relative; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.mic svg { width: 32px; height: 32px; }
.mic::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--ember); opacity: 0; transform: scale(var(--lvl, 1)); transition: transform .08s linear, opacity .2s; }
.mic.rec { background: var(--ember-deep); }
.mic.rec::before { opacity: .9; }
.mic[disabled] { opacity: .35; }
.mic-label { font-size: 14px; color: var(--muted); text-align: center; min-height: 20px; }
.textbar { display: none; width: 100%; gap: 8px; }
.textbar.show { display: flex; }
.textbar input { flex: 1; min-height: 50px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 18px; font-size: 16px; }
.textbar .btn { min-height: 50px; padding: 0 18px; }

