/* TempsMax 4 — chat des visiteurs (pages publiques) : rouge TempsMax, blanc, gris. */
.tmi-fab { position: fixed; right: 22px; bottom: 22px; z-index: 1080; width: 60px; height: 60px; border-radius: 50%; border: 0; background: #D02842; color: #fff; font-size: 1.6rem; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(208,40,66,.38), 0 2px 6px rgba(26,29,33,.18); cursor: pointer; transition: transform .15s, background .15s; }
.tmi-fab:hover { background: #AE1F36; transform: scale(1.05); }
.tmi-fab:focus-visible { outline: 3px solid #F3B4BE; outline-offset: 3px; }
.tmi-fab.is-open i::before { content: "\F282"; }   /* chevron-down de Bootstrap Icons */
.tmi-fab-badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; border-radius: 11px; background: #fff; color: #D02842; font-size: .75rem; font-weight: 700; line-height: 22px; text-align: center; padding: 0 5px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.tmi-panel { position: fixed; right: 22px; bottom: 94px; z-index: 1080; width: 370px; max-width: calc(100vw - 24px); height: 540px; max-height: calc(100vh - 116px); display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(26,29,33,.28); overflow: hidden; font-size: .9rem; color: #1A1D21; }
.tmi-panel[hidden] { display: none; }
.tmi-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: #D02842; color: #fff; }
.tmi-head-ico { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; flex: none; }
.tmi-head-t { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.tmi-head-t b { display: block; font-weight: 600; font-size: .95rem; }
.tmi-head-t small { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: rgba(255,255,255,.9); }
.tmi-head-t small span { width: 8px; height: 8px; border-radius: 50%; background: #C5CDD5; }
.tmi-head-t small.is-on span { background: #7CF0B0; box-shadow: 0 0 0 2px rgba(124,240,176,.3); }
.tmi-head-t small em { font-style: normal; }
.tmi-head-btn { width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: #fff; font-size: 1.05rem; display: inline-flex; align-items: center; justify-content: center; }
.tmi-head-btn:hover { background: rgba(255,255,255,.16); }
.tmi-debut { flex: 1 1 auto; overflow-y: auto; padding: 14px; background: #F3F4F7; display: flex; flex-direction: column; gap: 9px; }
.tmi-intro { margin: 0 0 4px; color: #4B5560; font-size: .86rem; line-height: 1.45; background: #fff; border: 1px solid #E1E4E8; border-radius: 8px; padding: 9px 11px; }
.tmi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.tmi-debut label { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; font-weight: 500; color: #4B5560; }
.tmi-debut label i { color: #D02842; font-style: normal; }
.tmi-debut label > span { display: block; }
.tmi-debut input, .tmi-debut textarea, .tmi-saisie textarea { font: inherit; font-size: .88rem; color: #1A1D21; border: 1px solid #C5CDD5; border-radius: 6px; padding: 7px 9px; background: #fff; width: 100%; min-width: 0; }
.tmi-debut input:focus, .tmi-debut textarea:focus, .tmi-saisie textarea:focus { outline: none; border-color: #D02842; box-shadow: 0 0 0 3px rgba(208,40,66,.14); }
.tmi-debut textarea { resize: vertical; min-height: 70px; }
.tmi-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.tmi-err { margin: 0; color: #C4302B; font-size: .82rem; background: #F9E4E3; border-radius: 6px; padding: 6px 9px; }
.tmi-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 7px; background: #D02842; color: #fff; font-weight: 600; padding: 9px 14px; cursor: pointer; }
.tmi-btn:hover { background: #AE1F36; }
.tmi-btn:disabled { opacity: .6; cursor: wait; }
.tmi-btn-light { background: #fff; color: #D02842; border: 1px solid #D02842; }
.tmi-btn-light:hover { background: #FBE9EC; }
.tmi-note { color: #6B7580; font-size: .74rem; text-align: center; }
.tmi-conv { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.tmi-conv[hidden], .tmi-debut[hidden] { display: none; }
.tmi-fil { flex: 1 1 auto; overflow-y: auto; padding: 14px 12px; background: #F3F4F7; display: flex; flex-direction: column; gap: 8px; }
.tmi-m { max-width: 82%; padding: 8px 11px 6px; border-radius: 12px; line-height: 1.4; word-wrap: break-word; }
.tmi-m p { margin: 0; white-space: pre-wrap; }
.tmi-m small { display: block; text-align: right; font-size: .68rem; opacity: .75; margin-top: 2px; }
.tmi-m b { display: block; font-size: .74rem; color: #D02842; margin-bottom: 1px; }
.tmi-m-moi { align-self: flex-end; background: #D02842; color: #fff; border-bottom-right-radius: 4px; }
.tmi-m-eux { align-self: flex-start; background: #fff; border: 1px solid #E1E4E8; border-bottom-left-radius: 4px; }
.tmi-m-sys { align-self: center; max-width: 92%; background: #E7EAEE; color: #4B5560; font-size: .78rem; text-align: center; border-radius: 8px; padding: 6px 10px; }
.tmi-ecrit { min-height: 18px; padding: 0 14px; font-size: .74rem; color: #6B7580; background: #F3F4F7; font-style: italic; }
.tmi-saisie { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid #E1E4E8; background: #fff; }
.tmi-saisie[hidden] { display: none; }
.tmi-saisie textarea { resize: none; max-height: 110px; }
.tmi-send { flex: none; width: 40px; height: 38px; border: 0; border-radius: 8px; background: #D02842; color: #fff; font-size: 1rem; }
.tmi-send:hover { background: #AE1F36; }
.tmi-termine { padding: 14px; text-align: center; border-top: 1px solid #E1E4E8; background: #fff; }
.tmi-termine[hidden] { display: none; }
.tmi-termine p { margin: 0 0 8px; color: #4B5560; }
@media (max-width: 575.98px) {
  .tmi-fab { right: 14px; bottom: 14px; width: 54px; height: 54px; font-size: 1.4rem; }
  .tmi-panel { right: 8px; left: 8px; width: auto; max-width: none; bottom: 78px; height: calc(100vh - 96px); max-height: none; }
  .tmi-row { grid-template-columns: 1fr; }
}
@media print { .tmi-fab, .tmi-panel { display: none !important; } }
/* une fenêtre Bootstrap ouverte (ex. « Créer un compte entreprise ») masque la bulle, qui couvrirait ses boutons */
body.modal-open .tmi-fab, body.modal-open .tmi-panel { display: none !important; }
