/* =====================================================================
   Le tchat des Rendez-vous (backend/src/tchat.php) : les messages, et la
   liste des conversations de l'exposant et de l'équipe. Chargé sur le stand
   et l'édition (head.php), dans « Messages » de l'espace exposant et dans
   l'écran de l'admin, qui partage les variables du site (admin.css) : pas
   de --sp-* ici, il ne les a pas.
   ===================================================================== */
/* ---------- Le tchat des Rendez-vous : les messages ----------
   Communs au stand (assets/rdv_tchat.js) et à l'espace exposant
   (assets/expo_tchat.js). Les miens à droite, en prune ; les autres à gauche. */
.tchatMessages { list-style: none; margin: 0; padding: 4px 2px; display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow-y: auto; }
.tchatMessage { max-width: 85%; align-self: flex-start; }
.tchatMessage p { margin: 2px 0 0; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--beige-50); border: 1px solid var(--border-soft); color: var(--fg); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.tchatMessage--moi { align-self: flex-end; text-align: right; }
.tchatMessage--moi p { background: var(--brand); border-color: var(--brand); color: var(--paper); border-radius: 14px 14px 4px 14px; text-align: left; }
.tchatQui { font: 500 12px/1.3 var(--font-sans); color: var(--fg-3); }
.tchatVide { color: var(--fg-3); font-size: 14px; }
.tchatSaisie { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.tchatSaisie label { font: 600 13px/1.3 var(--font-sans); color: var(--fg-2); }
.tchatSaisie input, .tchatSaisie textarea {
  width: 100%; box-sizing: border-box; min-height: 42px; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: var(--r-3); background: #fff; font: inherit;
}
.tchatSaisie [hidden] { display: none !important; }
.tchatBoutons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* ---------- Les notifications de l'exposant (assets/expo_push.js) ----------
   `hidden` sur un bouton : .btn pose un display qui le battrait. */
.expoPush { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-3); }
.expoPush > p:first-child { flex: 1 1 280px; margin: 0; color: var(--fg-2); }
.expoPush .expoMeta { flex-basis: 100%; order: 3; margin: 0; }
.expoPush [hidden] { display: none; }

/* ---------- Les messages de l'exposant (assets/expo_tchat.js) ----------
   La liste des conversations à gauche, la conversation à droite ; empilées
   au téléphone. */
.expoTchat { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin-top: 16px; }
.expoTchatListe { flex: 1 1 240px; max-width: 300px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-3); padding: 8px 0; }
.expoTchatListe ul { list-style: none; margin: 0; padding: 0; }
.expoTchatVide { color: var(--fg-3); padding: 8px 16px; margin: 0; }
.expoTchatVide[hidden] { display: none; }
.expoTchatConv { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 10px 16px; min-height: 44px; border: 0; background: none; cursor: pointer; font: inherit; color: var(--fg-2); }
.expoTchatConv:hover { background: var(--beige-50); }
.expoTchatConv.is-active { background: var(--mauve-100); box-shadow: inset 3px 0 0 var(--brand); }
.expoTchatConv.is-non-lu strong { color: var(--brand); }
.expoTchatConv small { color: var(--fg-3); font-size: 12px; }
.expoTchatConvHaut { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.expoTchatBadge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--paper); font: 700 12px/20px var(--font-sans); text-align: center; }
.expoTchatFil { flex: 999 1 420px; min-width: 0; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-3); padding: 20px; }
.expoTchatFil [hidden] { display: none !important; }
.expoTchatTete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.expoTchatTete strong { font-family: var(--font-display); font-size: 20px; }
.expoTchatActions { display: flex; gap: 6px; }
.expoTchatFil .tchatMessages { max-height: 460px; }
@media (max-width: 760px) { .expoTchatListe { max-width: none; } }
