/* Chat du site TOM Agency : bulle, accueil de l'équipe, conversation, carte de proposition. Nuit violette et papier clair. */
#tom-chat {
  --tc-accent: var(--accent, #852fe8);
  --tc-accent-2: color-mix(in srgb, var(--tc-accent) 62%, #2a0a55);
  --tc-tint: color-mix(in srgb, var(--tc-accent) 8%, #fff);
  --tc-ink: #120d1c; --tc-soft: #4a4458; --tc-muted: #7c7590; --tc-line: rgba(30, 14, 56, .09);
  --tc-paper: #f7f5fb; --tc-night: #150a26;
  --tc-ease: cubic-bezier(.2, .9, .25, 1.12);
  position: fixed; z-index: 90; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom));
  font-family: var(--font-body, system-ui, sans-serif); color: var(--tc-ink); -webkit-font-smoothing: antialiased;
}
#tom-chat[hidden], #tom-chat [hidden] { display: none !important; }
#tom-chat *, #tom-chat *::before, #tom-chat *::after { box-sizing: border-box; }
#tom-chat button { font: inherit; }

/* ---------- Bulle ---------- */
.tc-launch { position: relative; display: flex; align-items: center; gap: .7rem; height: 62px; padding: 0 .55rem 0 .5rem; border: 0; border-radius: 99px; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tc-accent) 90%, #fff 10%), var(--tc-accent-2));
  box-shadow: 0 20px 44px -16px color-mix(in srgb, var(--tc-accent) 80%, transparent), 0 2px 8px rgba(18, 13, 28, .2), inset 0 1px 0 rgba(255, 255, 255, .28);
  transform: translateY(22px) scale(.9); opacity: 0; transition: transform .6s var(--tc-ease), opacity .4s, box-shadow .3s; }
#tom-chat.is-ready .tc-launch { transform: none; opacity: 1; }
.tc-launch:hover { transform: translateY(-2px); box-shadow: 0 26px 54px -16px color-mix(in srgb, var(--tc-accent) 90%, transparent), 0 2px 8px rgba(18, 13, 28, .2), inset 0 1px 0 rgba(255, 255, 255, .28); }
.tc-launch:focus-visible { outline: 3px solid color-mix(in srgb, var(--tc-accent) 40%, #fff); outline-offset: 3px; }
.tc-launch-avs { position: relative; display: flex; }
.tc-launch-avs .tc-av { width: 46px; height: 46px; border: 2.5px solid color-mix(in srgb, var(--tc-accent) 75%, #fff); }
.tc-launch-avs .tc-av + .tc-av { margin-left: -15px; }
#tom-chat.is-online .tc-launch-avs::after { content: ""; position: absolute; right: 0; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2.5px var(--tc-accent-2); }
.tc-launch-label { font-family: var(--font-display, inherit); font-weight: 600; font-size: .9rem; letter-spacing: .005em; white-space: nowrap; }
.tc-launch-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.tc-launch-ico svg { grid-area: 1 / 1; width: 20px; height: 20px; transition: transform .4s var(--tc-ease), opacity .25s; }
.tc-i-down { opacity: 0; transform: rotate(-90deg) scale(.6); }
#tom-chat.is-open .tc-i-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
#tom-chat.is-open .tc-i-down { opacity: 1; transform: none; }
.tc-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--tc-accent); background: #fff; box-shadow: 0 4px 12px rgba(18, 13, 28, .25); }

/* ---------- Accroche ---------- */
.tc-teaser { position: absolute; right: 0; bottom: 78px; width: min(310px, calc(100vw - 44px)); animation: tcPop .5s var(--tc-ease); }
.tc-teaser-body { display: flex; gap: .8rem; align-items: center; width: 100%; padding: .9rem 1rem; border: 0; text-align: left; cursor: pointer; color: inherit;
  border-radius: 20px 20px 6px 20px; background: #fff; box-shadow: 0 26px 54px -22px rgba(21, 10, 38, .5), 0 0 0 1px var(--tc-line); }
.tc-teaser-body .tc-av { width: 42px; height: 42px; }
.tc-teaser-body > span { display: grid; gap: .15rem; font-size: .86rem; line-height: 1.45; color: var(--tc-soft); }
.tc-teaser-body strong { color: var(--tc-ink); font-size: .8rem; font-weight: 600; }
.tc-teaser-x { position: absolute; top: -10px; left: -10px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: var(--tc-ink); background: #fff; box-shadow: 0 4px 14px rgba(18, 13, 28, .18); }
.tc-teaser-x svg { width: 13px; height: 13px; }

/* ---------- Panneau ---------- */
.tc-panel { position: absolute; right: 0; bottom: 78px; width: 412px; height: min(720px, calc(100dvh - 112px)); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 28px; background: var(--tc-paper); box-shadow: 0 44px 100px -30px rgba(21, 10, 38, .6), 0 0 0 1px rgba(21, 10, 38, .08);
  transform-origin: bottom right; transform: translateY(18px) scale(.94); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .5s var(--tc-ease), opacity .3s, visibility 0s .5s; }
#tom-chat.is-open .tc-panel { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .5s var(--tc-ease), opacity .3s; }
.tc-head { position: relative; display: flex; align-items: center; gap: .8rem; padding: 1rem 1rem 1rem 1.15rem; color: #fff;
  background: radial-gradient(130% 160% at 100% 0%, color-mix(in srgb, var(--tc-accent) 55%, transparent), transparent 58%), linear-gradient(155deg, #26113f, var(--tc-night)); }
.tc-head-avs { display: flex; }
.tc-head-avs .tc-av { width: 40px; height: 40px; border: 2px solid #26113f; }
.tc-head-avs .tc-av + .tc-av { margin-left: -12px; }
.tc-head-txt { display: grid; gap: .1rem; min-width: 0; flex: 1; }
.tc-head-txt strong { font-family: var(--font-display, inherit); font-size: 1rem; letter-spacing: -.01em; }
.tc-status { display: flex; align-items: center; gap: .45rem; font-size: .76rem; color: rgba(255, 255, 255, .7); }
#tom-chat.is-online .tc-status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: tcPulse 2.4s ease-out infinite; }
.tc-x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .1); transition: background .2s, transform .2s; }
.tc-x:hover { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }
.tc-x svg { width: 18px; height: 18px; }

.tc-body { position: relative; flex: 1; min-height: 0; display: flex; }
.tc-msgs { flex: 1; min-width: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 1.2rem 1rem .8rem; display: flex; flex-direction: column; gap: .5rem; scrollbar-width: thin; scrollbar-color: rgba(21, 10, 38, .15) transparent; }
.tc-newpill { position: absolute; left: 0; right: 0; bottom: 12px; width: max-content; margin: 0 auto; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border: 0; border-radius: 99px; cursor: pointer;
  color: #fff; font-size: .78rem; font-weight: 600; background: var(--tc-ink); box-shadow: 0 10px 24px -10px rgba(18, 13, 28, .6); animation: tcPop .35s var(--tc-ease); }
.tc-newpill svg { width: 14px; height: 14px; }

/* Accueil : scène vidéo, équipe, questions fréquentes (le bandeau remplace l'en-tête) */
.tc-panel.is-home .tc-head { display: none; }
.tc-panel.is-home .tc-msgs { padding: 0 0 .4rem; }
.tc-hero { display: flex; flex-direction: column; animation: tcIn .6s var(--tc-ease) both; }
.tc-stage { position: relative; flex: none; height: 236px; overflow: hidden; color: #fff; background: var(--tc-night); }
.tc-stage-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; filter: saturate(1.12) contrast(1.04); transform: scale(1.02); animation: tcZoom 16s ease-in-out infinite alternate; }
.tc-stage-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(21, 10, 38, .72) 0%, rgba(21, 10, 38, .18) 32%, rgba(21, 10, 38, .4) 58%, rgba(21, 10, 38, .96) 100%),
  radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--tc-accent) 45%, transparent), transparent 70%); }
.tc-stage-shade::after { content: ""; position: absolute; inset: 0; opacity: .16; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); }
.tc-stage-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem 0 1.25rem; }
.tc-brand { height: 22px; width: auto; opacity: .95; }
@media (min-width: 641px) { .tc-brand { visibility: hidden; } }
.tc-x-glass { background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.tc-stage-copy { position: absolute; left: 1.35rem; right: 1.35rem; bottom: 2.6rem; }
.tc-kicker { display: flex; align-items: center; gap: .55rem; margin: 0 0 .55rem; font-family: var(--font-display, inherit); font-size: .62rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.tc-kicker::before { content: ""; width: 18px; height: 1.5px; border-radius: 2px; background: color-mix(in srgb, var(--tc-accent) 50%, #fff); }
.tc-display { margin: 0; font-family: var(--font-display, inherit); font-weight: 700; font-size: 2.05rem; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; text-shadow: 0 2px 24px rgba(21, 10, 38, .45); }
.tc-display em { font-style: normal; background: linear-gradient(110deg, #d9c2ff 0%, #fff 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.tc-team { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: .85rem; margin-top: -30px; padding: 0 1.35rem; }
.tc-team-avs { display: flex; flex: none; }
.tc-team-av { position: relative; display: block; padding: 3px; border-radius: 50%; background: var(--tc-paper); }
.tc-team-av + .tc-team-av { margin-left: -14px; }
.tc-team-av .tc-av { width: 54px; height: 54px; }
.tc-team-av.is-on::after { content: ""; position: absolute; right: 3px; bottom: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--tc-accent); box-shadow: 0 0 0 2.5px var(--tc-paper); }
.tc-team-txt { display: grid; gap: .15rem; min-width: 0; padding-top: 38px; }
.tc-team-txt strong { font-family: var(--font-display, inherit); font-size: .92rem; font-weight: 700; letter-spacing: -.01em; }
.tc-team-txt span { display: flex; align-items: center; gap: .4rem; font-size: .74rem; line-height: 1.35; color: var(--tc-muted); }
.tc-team-txt i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #b9b2c8; }
.tc-team-txt span.is-on { color: color-mix(in srgb, var(--tc-accent) 85%, #000); }
.tc-team-txt span.is-on i { background: var(--tc-accent); animation: tcPulse 2.4s ease-out infinite; }

.tc-faq { margin: 1rem 1rem 0; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--tc-line), 0 18px 36px -28px rgba(21, 10, 38, .45); }
.tc-faq-title { margin: 0; padding: .85rem 1.1rem .35rem; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tc-muted); }
.tc-faq-row { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .66rem 1.1rem; border: 0; border-top: 1px solid var(--tc-line); background: none; cursor: pointer; text-align: left; color: var(--tc-ink); transition: background .2s; }
.tc-faq-title + .tc-faq-row { border-top: 0; }
.tc-faq-row:hover { background: var(--tc-tint); }
.tc-faq-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--tc-accent); background: var(--tc-tint); transition: background .2s, color .2s; }
.tc-faq-ico svg { width: 17px; height: 17px; }
.tc-faq-row:hover .tc-faq-ico { color: #fff; background: var(--tc-accent); }
.tc-faq-q { flex: 1; min-width: 0; font-size: .9rem; font-weight: 600; letter-spacing: -.005em; }
.tc-faq-go { flex: none; width: 16px; height: 16px; color: #b9b2c8; transition: transform .25s var(--tc-ease), color .2s; }
.tc-faq-row:hover .tc-faq-go, .tc-call:hover .tc-faq-go { color: var(--tc-accent); transform: translateX(3px); }
.tc-call { display: flex; align-items: center; gap: .8rem; margin: .6rem 1rem .9rem; padding: .7rem 1.1rem; border-radius: 18px; text-decoration: none; color: var(--tc-ink); background: #fff; box-shadow: 0 0 0 1px var(--tc-line); transition: box-shadow .2s; }
.tc-call:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc-accent) 35%, transparent); }
.tc-call-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: var(--tc-ink); }
.tc-call-ico svg { width: 16px; height: 16px; }
.tc-call > span:nth-child(2) { flex: 1; display: grid; font-family: var(--font-display, inherit); font-weight: 700; font-size: .92rem; }
.tc-call small { font-family: var(--font-body, inherit); font-weight: 500; font-size: .72rem; color: var(--tc-muted); }

/* Messages */
.tc-row { display: flex; align-items: flex-end; gap: .55rem; max-width: 90%; margin-top: .45rem; }
.tc-row.is-grouped { margin-top: 0; }
.tc-row.is-me { align-self: flex-end; justify-content: flex-end; }
.tc-row.is-in { animation: tcIn .42s var(--tc-ease) both; }
.tc-stack { display: grid; gap: .3rem; min-width: 0; }
.tc-name { font-size: .7rem; font-weight: 600; color: var(--tc-muted); padding-left: .25rem; letter-spacing: .01em; }
.tc-av-gap { flex: none; width: 30px; }
.tc-bubble { padding: .72rem 1rem; border-radius: 20px 20px 20px 7px; font-size: .9rem; line-height: 1.58; color: var(--tc-ink); overflow-wrap: anywhere;
  background: #fff; box-shadow: 0 1px 2px rgba(21, 10, 38, .05), 0 0 0 1px var(--tc-line); }
.tc-row.is-grouped .tc-bubble { border-top-left-radius: 7px; }
.tc-bubble ul { margin: .35rem 0; padding-left: 1.1rem; }
.tc-bubble li + li { margin-top: .2rem; }
.tc-bubble strong { font-weight: 700; }
.tc-bubble.is-typing::after { content: ""; display: inline-block; width: 6px; height: 1em; margin-left: 2px; vertical-align: -2px; border-radius: 2px; background: color-mix(in srgb, var(--tc-accent) 50%, transparent); animation: tcCaret .8s steps(2) infinite; }
.tc-bubble.is-me { color: #fff; border-radius: 20px 20px 7px 20px; white-space: pre-wrap; background: linear-gradient(135deg, var(--tc-accent), var(--tc-accent-2)); box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--tc-accent) 75%, transparent); }
.tc-bubble.is-agent { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--tc-accent) 32%, transparent), 0 8px 18px -14px color-mix(in srgb, var(--tc-accent) 70%, transparent); }
.tc-row.is-failed .tc-bubble { opacity: .5; }
.tc-sys { align-self: center; margin: .5rem 0 .2rem; padding: .3rem .8rem; border-radius: 99px; font-size: .72rem; color: var(--tc-muted); background: rgba(21, 10, 38, .04); text-align: center; }
.tc-sys.is-err { color: #b4360c; background: #fff1eb; }
.tc-av { display: inline-block; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; background: #e9e5f0; }
.tc-av-sm { width: 30px; height: 30px; }
.tc-av-ini { display: inline-grid; place-items: center; font-family: var(--font-display, inherit); font-weight: 700; font-size: .85rem; color: #fff; background: var(--av, var(--tc-accent)); }
.tc-orb { display: inline-grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--tc-accent) 40%, #fff), var(--tc-accent) 55%, var(--tc-accent-2));
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--tc-accent) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .4); }
.tc-orb svg { width: 56%; height: 56%; }
.tc-typing .tc-bubble { display: flex; gap: 4px; padding: .9rem 1rem; }
.tc-typing i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--tc-accent) 55%, #cfc8dc); animation: tcDot 1.2s infinite ease-in-out; }
.tc-typing i:nth-child(2) { animation-delay: .15s; }
.tc-typing i:nth-child(3) { animation-delay: .3s; }

.tc-quote { display: flex; align-items: center; gap: .75rem; margin-top: .15rem; padding: .85rem 1rem; border-radius: 18px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--tc-accent), var(--tc-accent-2)); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--tc-accent) 80%, transparent); transition: transform .25s var(--tc-ease); }
.tc-quote:hover { transform: translateY(-2px); }
.tc-quote-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.16); }
.tc-quote-ico svg { width: 20px; height: 20px; }
.tc-quote-txt { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.tc-quote-txt strong { font-family: var(--font-display, inherit); font-size: .92rem; }
.tc-quote-txt span { font-size: .76rem; color: rgba(255,255,255,.8); }
.tc-quote-go { flex: none; width: 18px; height: 18px; transition: transform .25s var(--tc-ease); }
.tc-quote:hover .tc-quote-go { transform: translateX(3px); }

/* Suggestions */
.tc-suggest { display: flex; flex-wrap: wrap; gap: .4rem; margin: .35rem 0 0 calc(30px + .55rem); }
.tc-suggest.is-in { animation: tcIn .4s var(--tc-ease) both; }
.tc-chip { padding: .5rem .85rem; border: 0; border-radius: 99px; cursor: pointer; font-size: .8rem; font-weight: 600; color: color-mix(in srgb, var(--tc-accent) 88%, #000);
  background: #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc-accent) 28%, transparent); transition: background .2s, transform .2s var(--tc-ease), box-shadow .2s; }
.tc-chip:hover { background: var(--tc-tint); transform: translateY(-1px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc-accent) 50%, transparent); }

/* Saisie */
.tc-bottom { padding: .55rem .8rem .7rem; border-top: 1px solid var(--tc-line); background: color-mix(in srgb, var(--tc-paper) 85%, #fff); }
.tc-compose { display: flex; align-items: flex-end; gap: .5rem; padding: .35rem .35rem .35rem .95rem; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--tc-line), 0 10px 26px -20px rgba(21, 10, 38, .5); transition: box-shadow .2s; }
.tc-compose:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc-accent) 50%, transparent), 0 10px 26px -20px rgba(21, 10, 38, .5); }
.tc-input { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: none; padding: .6rem 0; font: inherit; font-size: 16px; line-height: 1.4; max-height: 120px; color: var(--tc-ink); }
.tc-input::placeholder { color: #a39cb3; }
.tc-send { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: #d9d3e4; transition: background .25s, transform .25s var(--tc-ease); }
.tc-send.is-ready { background: linear-gradient(135deg, var(--tc-accent), var(--tc-accent-2)); }
.tc-send.is-ready:hover { transform: scale(1.06); }
.tc-send svg { width: 18px; height: 18px; }
.tc-legal { margin: .45rem .3rem 0; font-size: .66rem; color: var(--tc-muted); text-align: center; }

/* ---------- Carte de proposition ---------- */
.tc-card { align-self: stretch; min-width: 0; width: 100%; flex: none; margin-top: .6rem; border-radius: 24px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc-accent) 20%, transparent), 0 24px 50px -30px color-mix(in srgb, var(--tc-accent) 70%, transparent); }
.tc-card.is-in { animation: tcIn .5s var(--tc-ease) both; }
.tc-card-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; background: linear-gradient(180deg, var(--tc-tint), #fff); border-bottom: 1px solid var(--tc-line); }
.tc-card-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--tc-accent), var(--tc-accent-2)); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--tc-accent) 80%, transparent); }
.tc-card-ico svg { width: 20px; height: 20px; }
.tc-card-htxt { flex: 1; min-width: 0; }
.tc-card-title { margin: 0; font-family: var(--font-display, inherit); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.tc-card-sub { margin: .1rem 0 0; font-size: .76rem; color: var(--tc-muted); }
.tc-steps { display: flex; gap: 4px; }
.tc-steps i { width: 18px; height: 4px; border-radius: 99px; background: var(--tc-line); transition: background .3s, width .3s; }
.tc-steps i.is-on { width: 26px; background: var(--tc-accent); }
.tc-steps i.is-done { background: color-mix(in srgb, var(--tc-accent) 45%, #fff); }
.tc-card-body { padding: 1rem 1.1rem 1.15rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.tc-card-body > *, .tc-contact > *, .tc-sec > * { min-width: 0; }
.tc-sec { display: grid; gap: .55rem; }
.tc-lbl { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tc-muted); }
.tc-lbl svg { width: 14px; height: 14px; color: var(--tc-accent); }

.tc-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.tc-type { position: relative; display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .65rem .7rem; border: 0; border-radius: 14px; cursor: pointer; text-align: left;
  font-size: .82rem; font-weight: 600; line-height: 1.25; color: var(--tc-ink); background: var(--tc-paper); box-shadow: 0 0 0 1px var(--tc-line); transition: box-shadow .2s, background .2s, transform .2s var(--tc-ease); }
.tc-type:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc-accent) 35%, transparent); }
.tc-type-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--tc-accent); background: #fff; box-shadow: 0 0 0 1px var(--tc-line); transition: background .2s, color .2s; }
.tc-type-ico svg { width: 17px; height: 17px; }
.tc-type.is-on { background: var(--tc-tint); box-shadow: 0 0 0 1.5px var(--tc-accent); }
.tc-type.is-on .tc-type-ico { color: #fff; background: var(--tc-accent); box-shadow: none; }

.tc-cal { padding: .75rem; border-radius: 18px; background: var(--tc-paper); box-shadow: 0 0 0 1px var(--tc-line); }
.tc-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .45rem; }
.tc-cal-head strong { font-family: var(--font-display, inherit); font-size: .9rem; text-transform: capitalize; }
.tc-cal-nav { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer; color: var(--tc-ink); background: #fff; box-shadow: 0 0 0 1px var(--tc-line); transition: background .2s; }
.tc-cal-nav:hover:not(:disabled) { background: var(--tc-tint); }
.tc-cal-nav:disabled { opacity: .35; cursor: default; }
.tc-cal-nav svg { width: 15px; height: 15px; }
.tc-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.tc-cal-wd { display: grid; place-items: center; height: 26px; font-size: .66rem; font-weight: 700; color: var(--tc-muted); }
.tc-cal-day { aspect-ratio: 1; max-height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; font-size: .82rem; font-weight: 500; color: var(--tc-ink); background: none; transition: background .15s, color .15s, transform .15s; }
.tc-cal-day:hover:not(:disabled) { background: #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc-accent) 30%, transparent); }
.tc-cal-day:disabled { color: #c7c1d3; cursor: default; }
.tc-cal-day.is-today { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tc-accent) 45%, transparent); }
.tc-cal-day.is-on { color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--tc-accent), var(--tc-accent-2)); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--tc-accent) 80%, transparent); transform: scale(1.04); }
.tc-nodate { margin-top: .55rem; width: 100%; justify-content: center; }

.tc-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.tc-pill { display: inline-flex; align-items: center; padding: .5rem .85rem; border: 0; border-radius: 99px; cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--tc-soft);
  background: var(--tc-paper); box-shadow: 0 0 0 1px var(--tc-line); transition: background .2s, color .2s, box-shadow .2s; }
.tc-pill:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc-accent) 35%, transparent); }
.tc-pill.is-on { color: color-mix(in srgb, var(--tc-accent) 90%, #000); background: var(--tc-tint); box-shadow: 0 0 0 1.5px var(--tc-accent); }

.tc-field { display: flex; min-width: 0; align-items: center; gap: .6rem; padding: 0 .9rem; height: 48px; border-radius: 14px; background: var(--tc-paper); box-shadow: 0 0 0 1px var(--tc-line); transition: box-shadow .2s, background .2s; }
.tc-field svg { flex: none; width: 17px; height: 17px; color: var(--tc-muted); }
.tc-field:focus-within { background: #fff; box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc-accent) 55%, transparent); }
.tc-field:focus-within svg { color: var(--tc-accent); }
.tc-field-in { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--tc-ink); }
.tc-field-in::placeholder { color: #a39cb3; }
.tc-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; }
.tc-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.tc-recap { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .7rem .75rem; border-radius: 14px; background: var(--tc-tint); }
.tc-recap span { padding: .25rem .6rem; border-radius: 99px; font-size: .74rem; font-weight: 600; color: color-mix(in srgb, var(--tc-accent) 85%, #000); background: #fff; }
.tc-edit { margin-left: auto; border: 0; background: none; cursor: pointer; font-size: .74rem; font-weight: 600; color: var(--tc-accent); text-decoration: underline; text-underline-offset: 3px; }
.tc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tc-consent { position: relative; display: flex; gap: .6rem; align-items: flex-start; margin-top: .2rem; font-size: .76rem; line-height: 1.45; color: var(--tc-soft); cursor: pointer; }
.tc-consent input { position: absolute; opacity: 0; pointer-events: none; }
.tc-check { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; color: transparent; background: #fff; box-shadow: 0 0 0 1.5px #cfc8dc; transition: background .2s, box-shadow .2s, color .2s; }
.tc-check svg { width: 13px; height: 13px; }
.tc-consent input:checked + .tc-check { color: #fff; background: var(--tc-accent); box-shadow: none; }
.tc-consent input:focus-visible + .tc-check { outline: 2px solid var(--tc-accent); outline-offset: 2px; }
.tc-consent a { color: inherit; text-decoration: underline; }
.tc-err { margin: 0; padding: .55rem .75rem; border-radius: 12px; font-size: .8rem; color: #b4360c; background: #fff1eb; }

.tc-actions { display: grid; gap: .45rem; }
.tc-go { display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; height: 52px; border: 0; border-radius: 99px; cursor: pointer; color: #fff; font-weight: 700; font-size: .92rem; letter-spacing: .01em;
  background: linear-gradient(135deg, var(--tc-accent), var(--tc-accent-2)); box-shadow: 0 16px 32px -16px color-mix(in srgb, var(--tc-accent) 85%, transparent); transition: transform .25s var(--tc-ease), box-shadow .25s, opacity .2s; }
.tc-go svg { width: 18px; height: 18px; transition: transform .25s var(--tc-ease); }
.tc-go:hover:not(:disabled) { transform: translateY(-1px); }
.tc-go:hover:not(:disabled) svg { transform: translateX(3px); }
.tc-go:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.tc-go.is-busy { opacity: .7; cursor: wait; }
.tc-hint { margin: 0; text-align: center; font-size: .72rem; color: var(--tc-muted); }
.tc-reassure { display: flex; flex-wrap: wrap; text-align: center; align-items: center; justify-content: center; gap: .4rem; margin: 0; font-size: .72rem; color: var(--tc-muted); }
.tc-reassure svg { width: 14px; height: 14px; }
.tc-done { display: grid; justify-items: center; gap: .4rem; padding: .8rem .4rem .5rem; text-align: center; }
.tc-done-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--tc-accent), var(--tc-accent-2)); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--tc-accent) 80%, transparent); animation: tcPop .55s var(--tc-ease); }
.tc-done-ico svg { width: 28px; height: 28px; stroke-width: 2.2; stroke-dasharray: 30; stroke-dashoffset: 30; animation: tcDraw .5s .25s ease-out forwards; }
.tc-done-title { margin: .3rem 0 0; font-family: var(--font-display, inherit); font-weight: 700; font-size: 1.1rem; }
.tc-done-sub { margin: 0; max-width: 30ch; font-size: .85rem; line-height: 1.55; color: var(--tc-soft); }
.tc-done-ref { margin: .3rem 0 0; padding: .4rem .8rem; border-radius: 99px; font-size: .78rem; color: var(--tc-soft); background: var(--tc-tint); }
.tc-done-ref strong { font-family: ui-monospace, monospace; letter-spacing: .06em; color: var(--tc-accent); }

/* Bulle déplaçable (ordinateur, tablette) */
@media (min-width: 641px) {
  .tc-launch { cursor: grab; touch-action: none; }
  #tom-chat.is-dragging .tc-launch { cursor: grabbing; transform: scale(1.04); transition: none; box-shadow: 0 30px 60px -16px color-mix(in srgb, var(--tc-accent) 90%, transparent); }
  #tom-chat.is-dragging { user-select: none; }
  #tom-chat.tc-flipx .tc-panel, #tom-chat.tc-flipx .tc-teaser { right: auto; left: 0; transform-origin: bottom left; }
  #tom-chat.tc-below .tc-panel, #tom-chat.tc-below .tc-teaser { bottom: auto; top: 76px; }
  .tc-panel { max-height: var(--tc-room, calc(100dvh - 112px)); }
  #tom-chat.tc-below .tc-panel { transform-origin: top right; }
  #tom-chat.tc-below.tc-flipx .tc-panel { transform-origin: top left; }
}

/* ---------- Mobile : plein écran ---------- */
@media (max-width: 640px) {
  #tom-chat { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  body.page-paris #tom-chat { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .tc-launch { height: 58px; padding: 0 .4rem; }
  .tc-launch-label, .tc-launch-ico { display: none; }
  .tc-launch-avs .tc-av { width: 42px; height: 42px; }
  #tom-chat.is-open .tc-launch { opacity: 0; pointer-events: none; }
  .tc-teaser { bottom: 72px; }
  .tc-panel { position: fixed; inset: 0 0 auto 0; width: 100%; height: 100dvh; border-radius: 0; transform: translateY(40px); transform-origin: bottom center; }
  .tc-head { padding-top: max(1rem, env(safe-area-inset-top)); }
  .tc-bottom { padding-bottom: max(.7rem, env(safe-area-inset-bottom)); }
  .tc-row { max-width: 94%; }
  .tc-stage { height: 280px; }
  .tc-stage-top { padding-top: max(1rem, env(safe-area-inset-top)); }
}
@media (max-width: 360px) { .tc-types { grid-template-columns: minmax(0, 1fr); } .tc-2col { grid-template-columns: minmax(0, 1fr); } }
html.tc-lock, html.tc-lock body { overflow: hidden; }

@keyframes tcIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes tcPop { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes tcDot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }
@keyframes tcPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tc-accent) 60%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes tcCaret { 50% { opacity: 0; } }
@keyframes tcDraw { to { stroke-dashoffset: 0; } }
@keyframes tcZoom { from { transform: scale(1.02); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .tc-launch, .tc-panel, .tc-row.is-in, .tc-card.is-in, .tc-suggest.is-in, .tc-teaser, .tc-hero, .tc-done-ico, .tc-stage-media { transition: none; animation: none; }
  .tc-typing i, .tc-team-txt span.is-on i, #tom-chat.is-online .tc-status::before, .tc-bubble.is-typing::after { animation: none; }
  .tc-done-ico svg { stroke-dashoffset: 0; animation: none; }
}

/* Carte « Voir TOM en vidéo » (réponse de l'assistant) */
.tc-video { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: .8rem; margin-top: .15rem; padding: .5rem .9rem .5rem .5rem; border-radius: 18px; text-decoration: none; color: inherit; background: #fff; border: 1px solid rgba(124, 58, 237, .22); box-shadow: 0 10px 28px -16px rgba(76, 29, 149, .45); transition: transform .25s var(--tc-ease); }
.tc-video:hover { transform: translateY(-2px); }
.tc-video-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #0c0814; }
.tc-video-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-video-play { position: absolute; inset: 0; margin: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #7c3aed; color: #fff; }
.tc-video-play svg { width: 15px; height: 15px; margin-left: 2px; fill: currentColor; stroke: none; }
.tc-video-txt { display: grid; gap: .15rem; min-width: 0; }
.tc-video-txt strong { font-family: var(--font-display, inherit); font-size: .92rem; }
.tc-video-txt span { font-size: .76rem; opacity: .7; }
