/* Assistant AttrapTemps – reprend la typographie du thème (font-family: inherit) */
.ata-widget {
  --ata-accent: #15835a;
  --ata-ink: #16201b;
  --ata-muted: #5d6b63;
  --ata-line: #d8ded9;
  --ata-bubble: #eef1ee;
  --ata-bg: #ffffff;
  font-family: inherit;
  color: var(--ata-ink);
  background: var(--ata-bg);
  border: 1px solid var(--ata-line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: min(640px, 80vh);
  min-height: 460px;
  max-width: 760px;
  box-sizing: border-box;
}
.ata-widget *, .ata-widget *::before, .ata-widget *::after { box-sizing: border-box; }
.ata-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--ata-line); }
.ata-avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--ata-ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.ata-titles strong { display: block; font-size: 16px; line-height: 1.2; }
.ata-titles { flex: 1; min-width: 0; }
.ata-titles small { color: var(--ata-muted); font-size: 12.5px; }
.ata-link { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13px; color: var(--ata-accent); text-decoration: underline; cursor: pointer; white-space: nowrap; }
.ata-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ata-msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; font-size: 15px; }
.ata-bot { background: var(--ata-bubble); border-bottom-left-radius: 5px; align-self: flex-start; }
.ata-me { background: var(--ata-accent); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.ata-sys { align-self: center; color: var(--ata-muted); font-size: 13px; text-align: center; max-width: 92%; }
.ata-typing { display: inline-flex; gap: 4px; padding: 14px; }
.ata-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ata-muted); animation: ata-blink 1s infinite; }
.ata-typing i:nth-child(2) { animation-delay: .15s; }
.ata-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ata-blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ata-typing i { animation: none; } }
.ata-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 10px; }
.ata-chips:empty { display: none; }
.ata-chip { border: 1px solid var(--ata-accent); color: var(--ata-accent); background: transparent; font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.ata-chip:hover { background: color-mix(in srgb, var(--ata-accent) 10%, transparent); }
.ata-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 18px 10px; }
.ata-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ata-upload-btn { border: 1px dashed var(--ata-accent); color: var(--ata-accent); padding: 7px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.ata-files { font-size: 13px; }
.ata-hint { font-size: 12px; color: var(--ata-muted); width: 100%; }
.ata-consent { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--ata-line); background: color-mix(in srgb, var(--ata-accent) 8%, #fff); font-size: 14px; }
.ata-consent label { flex: 1; min-width: 220px; display: flex; gap: 8px; align-items: flex-start; }
.ata-consent a { color: inherit; }
.ata-composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--ata-line); align-items: flex-end; margin: 0; }
.ata-composer textarea { flex: 1; min-width: 0; resize: none; border: 1px solid var(--ata-line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 15px; max-height: 140px; background: #fff; color: var(--ata-ink); }
.ata-btn { border: 0; background: var(--ata-accent); color: #fff; font: inherit; font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 12px; cursor: pointer; white-space: nowrap; }
.ata-btn:disabled { opacity: .45; cursor: default; }
.ata-widget :focus-visible { outline: 2px solid var(--ata-accent); outline-offset: 2px; }
.ata-again { padding: 12px 18px; border-top: 1px solid var(--ata-line); text-align: center; }
.ata-ts:empty { display: none; }
.ata-ts { padding: 0 18px 8px; }
.ata-fallback { padding: 18px; display: grid; gap: 12px; overflow-y: auto; }
.ata-fallback label { display: grid; gap: 4px; font-size: 14px; }
.ata-fallback input[type=text], .ata-fallback input[type=email], .ata-fallback input[type=tel], .ata-fallback textarea { font: inherit; border: 1px solid var(--ata-line); border-radius: 10px; padding: 9px 12px; }
.ata-fallback .ata-fb-consent { display: flex; gap: 8px; align-items: center; }
.ata-fb-status { color: var(--ata-muted); font-size: 13px; margin: 0; }
.ata-fb-ok { font-size: 16px; }
.ata-widget [hidden] { display: none !important; }
