/* Assistant E-FONIJ — widget data-driven partagé (landing + espace).
   Ne dépend que des tokens de marque (efonij-tokens.css), chargés des deux côtés. */
.ef-bot { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; }
.ef-bot__fab { width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer; background: var(--ef-grad-teal); color: #fff; box-shadow: 0 10px 26px rgba(13, 158, 138, .4); display: inline-flex; align-items: center; justify-content: center; }
.ef-bot__panel { position: absolute; right: 0; bottom: 70px; width: min(360px, calc(100vw - 2rem)); height: 480px; max-height: calc(100dvh - 6rem); background: #fff; border: 1px solid var(--ef-line); border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 31, 28, .26); display: none; flex-direction: column; overflow: hidden; }
.ef-bot.is-open .ef-bot__panel { display: flex; animation: ef-bot-in .2s ease; }
.ef-bot__head { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; color: #fff; background: var(--ef-grad-teal); }
.ef-bot__title { font-weight: 800; }
.ef-bot__x { border: none; background: transparent; color: rgba(255, 255, 255, .9); cursor: pointer; }
.ef-bot__msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .55rem; background: #f7faf9; }
.ef-bot__bubble { max-width: 85%; padding: .55rem .8rem; border-radius: 14px; font-size: .88rem; line-height: 1.5; }
.ef-bot__bubble--in { background: #fff; border: 1px solid var(--ef-line); align-self: flex-start; border-bottom-left-radius: 5px; }
.ef-bot__bubble--out { background: var(--ef-grad-teal); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.ef-bot__items { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.ef-bot__items a, .ef-bot__items li > b { text-decoration: none; }
.ef-bot__items li { background: var(--ef-tint); border-radius: 9px; padding: .4rem .6rem; }
.ef-bot__items a { display: block; color: inherit; }
.ef-bot__items b { display: block; color: var(--ef-ink); font-size: .85rem; }
.ef-bot__items span { font-size: .76rem; color: var(--ef-muted); }
.ef-bot__login { display: inline-block; margin-top: .5rem; font-weight: 700; color: var(--ef-teal-dark); }
.ef-bot__suggestions { display: flex; flex-wrap: wrap; gap: .35rem; }
.ef-bot__sug { border: 1.5px solid var(--ef-line); background: #fff; border-radius: 999px; padding: .3rem .7rem; font: inherit; font-size: .8rem; cursor: pointer; color: var(--ef-teal-dark); }
.ef-bot__sug:hover { border-color: var(--ef-teal); }
.ef-bot__composer { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--ef-line); background: #fff; }
.ef-bot__composer input { flex: 1; border: 1.5px solid var(--ef-line); border-radius: 999px; padding: .5rem .9rem; font: inherit; font-size: .88rem; }
.ef-bot__composer input:focus { outline: none; border-color: var(--ef-teal); }
.ef-bot__composer button { width: 40px; border: none; border-radius: 50%; background: var(--ef-grad-teal); color: #fff; cursor: pointer; flex-shrink: 0; }
.ef-bot__dots i { display: inline-block; width: 6px; height: 6px; margin: 0 1px; border-radius: 50%; background: var(--ef-muted); animation: ef-bot-dot 1s infinite; }
.ef-bot__dots i:nth-child(2) { animation-delay: .15s; } .ef-bot__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ef-bot-in { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes ef-bot-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ef-bot.is-open .ef-bot__panel { animation: none; } .ef-bot__dots i { animation: none; } }
