/* Messagerie (revue du 14/11/2026, voir js/messagerie.js). */

/* Lecteur de vocaux : bulle compacte, bouton rond bleu, onde qui se remplit, durée. */
.gm-has-voice > :not(.gm-voice) { display: none !important; }
.gm-has-voice { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.gm-voice { --p: 0; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; min-width: 230px; max-width: 290px;
  background: #1C2944; border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; font-family: Poppins, sans-serif; }
.gm-voice-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(135deg, #37A7EE, #2E76EB); box-shadow: 0 4px 12px rgba(46, 118, 235, .35); }
.gm-voice-btn::before { content: ''; width: 0; height: 0; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.gm-voice.playing .gm-voice-btn::before { width: 11px; height: 13px; border: 0; margin: 0; background: linear-gradient(90deg, #fff 0 4px, transparent 4px 7px, #fff 7px 11px); }
.gm-voice-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 30px; cursor: pointer; min-width: 0; }
.gm-voice-wave i { flex: 1; min-width: 2px; border-radius: 2px; background: rgba(170, 182, 202, .45); transition: background .12s; }
.gm-voice-wave i.on { background: #37A7EE; }
.gm-voice-time { flex: none; font-size: 12px; color: #AAB6CA; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .06); padding: 3px 8px; border-radius: 999px; }

/* Liste des conversations : conversation avec des non-lus en évidence (nom, dernier message et heure en gras, blancs),
   nombre de non-lus sous l'heure. La pastille de Bubble (Group_UnreadBadge, jamais visible) est remplacée. */
.gm-unread [data-b^="bTKuF0 "], .gm-unread [data-b^="bTKtz0 "], .gm-unread [data-b^="bTKuL0 "] { font-weight: 700 !important; color: #FFFFFF !important; }
[data-b^="bTNkN0 "] { display: none !important; }
.gm-row-badge { display: block; order: 99; align-self: flex-end; margin-top: 4px; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px;
  background: linear-gradient(135deg, #37A7EE, #2E76EB); color: #fff; font: 700 11px/20px Poppins, sans-serif; font-style: normal; text-align: center; }
/* Pastille de l'onglet Messages (barre du bas, mobile) : par-dessus l'icône, neutre (blanc grisé). */
[data-b$=" Group_NavMessages"] { position: relative; }
.gm-tab-badge { position: absolute; z-index: 5; top: -4px; left: 54%; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px;
  background: #E3E8F0; color: #111D36; font: 700 10.5px/18px Poppins, sans-serif; font-style: normal; text-align: center; pointer-events: none;
  box-shadow: 0 0 0 2px #0D1628; }

/* Recherche instantanée. */
.gm-search-hidden { display: none !important; }

/* « À propos de la conversation » : fenêtre modale (fond assombri et flouté, arrière-plan bloqué). */
body.gm-modal-open [data-b$=" FG_ConversationOptions"] { z-index: 1001 !important; }
#gm-modal-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(4, 8, 18, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: gm-backdrop-in .18s ease both; }
#gm-modal-backdrop[hidden] { display: none; }
body.gm-modal-open [data-b$=" FG__ConversationOptionsOverlay"] { display: none !important; }
@keyframes gm-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
