/* Ebombay : bulle d'assistance */
.eb-fab { position: fixed; z-index: 60; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .45rem; padding: .45rem .9rem .45rem .5rem;
  border: 0; border-radius: 999px; background: #0b7a5c; color: #fff; font: 600 .95rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.eb-fab svg { width: 34px; height: 34px; background: #fff; color: #0b7a5c; border-radius: 50%; padding: 3px; }
.eb-fab:hover { filter: brightness(1.06); } .eb-fab:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.eb-fab.eb-open .eb-fab-label { display: none; } .eb-fab.eb-open { padding: .45rem; }
.eb-fab.eb-public { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (max-width: 1023px) { .eb-fab.eb-app { bottom: calc(80px + env(safe-area-inset-bottom)); padding: .4rem; } .eb-fab.eb-app .eb-fab-label { display: none; } }
.eb-panel { position: fixed; z-index: 61; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 370px; max-width: calc(100vw - 24px); height: min(560px, calc(100vh - 110px));
  display: flex; flex-direction: column; background: #fff; color: #17201d; border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.28); overflow: hidden; font: .93rem/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.eb-panel[hidden] { display: none; }
.eb-panel.eb-public { bottom: calc(144px + env(safe-area-inset-bottom)); height: min(540px, calc(100vh - 170px)); }
@media (max-width: 1023px) { .eb-panel.eb-app { bottom: calc(132px + env(safe-area-inset-bottom)); height: min(520px, calc(100vh - 160px)); } }
@media (max-width: 480px) { .eb-panel { right: 8px; left: 8px; width: auto; max-width: none; } }
.eb-head { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; background: #0b7a5c; color: #fff; }
.eb-head small { display: block; opacity: .85; font-weight: 400; }
.eb-av svg { width: 36px; height: 36px; background: #fff; color: #0b7a5c; border-radius: 50%; padding: 3px; display: block; }
.eb-x { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 .3rem; }
.eb-log { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .55rem; background: #f4f7f6; }
.eb-msg { max-width: 88%; padding: .55rem .75rem; border-radius: 14px; word-wrap: break-word; }
.eb-msg p { margin: 0 0 .4rem; } .eb-msg p:last-child { margin-bottom: 0; } .eb-msg ul { margin: .2rem 0 .4rem 1.1rem; padding: 0; } .eb-msg a { color: #0b7a5c; font-weight: 600; }
.eb-bot { align-self: flex-start; background: #fff; border: 1px solid #e1e8e5; border-bottom-left-radius: 4px; }
.eb-user { align-self: flex-end; background: #0b7a5c; color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.eb-fb { display: flex; gap: .4rem; align-items: center; margin-top: .45rem; font-size: .78rem; color: #5c6b66; }
.eb-fb button { border: 1px solid #cdd8d4; background: #fff; border-radius: 999px; padding: .1rem .6rem; font: inherit; cursor: pointer; }
.eb-fb button:hover { border-color: #0b7a5c; color: #0b7a5c; }
.eb-chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: .3rem .8rem; background: #f4f7f6; }
.eb-chips:empty { display: none; } .eb-chips small { width: 100%; color: #5c6b66; }
.eb-chip { border: 1px solid #0b7a5c; color: #0b7a5c; background: #fff; border-radius: 999px; padding: .25rem .65rem; font: inherit; font-size: .82rem; cursor: pointer; text-align: left; }
.eb-chip:hover { background: #e6f3ef; }
.eb-form { display: flex; gap: .4rem; padding: .55rem; border-top: 1px solid #e1e8e5; background: #fff; }
.eb-form input { flex: 1; min-width: 0; border: 1px solid #cdd8d4; border-radius: 999px; padding: .55rem .85rem; font: inherit; font-size: 16px; color: inherit; background: #fff; }
.eb-form input:focus { outline: 2px solid #0b7a5c; border-color: transparent; }
.eb-form button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: #0b7a5c; color: #fff; display: grid; place-items: center; cursor: pointer; }
.eb-form button svg { width: 20px; height: 20px; }
.eb-typing { display: flex; gap: 4px; padding: .7rem .8rem; } .eb-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9fb1aa; animation: ebdot 1s infinite ease-in-out; }
.eb-typing i:nth-child(2) { animation-delay: .15s; } .eb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ebdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media print { .eb-fab, .eb-panel { display: none !important; } }
