/* Contacts, icônes d'apps, menu Wi-Fi, Messages, confirmation, éditeur de messages */

.app__icon--contacts { --icon: linear-gradient(160deg, #b8bcc4, #5a5f68); }
.app__icon--contacts svg { stroke: #fff; }
.void--contacts .void__icon { background: var(--grey-soft); box-shadow: inset 0 0 0 1px var(--line); }
.void--contacts .void__icon svg { stroke: var(--text); }

.contacts__search { width: 100%; border-radius: 12px; background: var(--panel-2); border-color: transparent; padding: 10px 14px; }
.contacts { list-style: none; margin: -6px 0 0; padding: 0; }
.contacts__letter {
  position: sticky;
  top: -6px;
  z-index: 1;
  padding: 10px 4px 4px;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--line);
}
.contact {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid rgba(47, 50, 56, 0.6);
  background: none;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
}
.contact:hover { background: rgba(255, 255, 255, 0.03); }
.contact:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.contact__body { display: flex; flex-direction: column; min-width: 0; }
.contact__name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact__sub { color: var(--muted); font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact--enemy .contact__sub { color: #ff8a8e; }
.contact__tel { color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.contact--me { grid-template-columns: 56px minmax(0, 1fr); padding: 12px 4px 16px; margin-bottom: 4px; }
.contact--me .contact__name { font-size: 1.1875rem; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.25rem; background: var(--red); border-color: var(--red); color: #fff; }
.contacts__none { padding: 24px 4px; color: var(--muted); text-align: center; }

/* Icônes d'apps (60×60) */
.app__icon svg.glyph { width: 100%; height: 100%; stroke: none; fill: none; }

.app__icon--chrono { --icon: linear-gradient(180deg, #fff 0%, #f4f4f6 100%); }
.app__icon--chrono text { font-family: -apple-system, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif; font-variant-numeric: lining-nums; }
.app__icon--contacts { --icon: linear-gradient(180deg, #f2f2f7, #c7c7cc); }
.app__icon--caisses { --icon: linear-gradient(180deg, #5ac8fa, #007aff); }
.app__icon--stats { --icon: linear-gradient(160deg, #1c1c1e, #000); }
.app__icon--galerie { --icon: #fff; }
.app__icon--musique { --icon: linear-gradient(180deg, #fb5c74, #fa233b); }
.app__icon--messages { --icon: linear-gradient(180deg, #5bf675, #0cbd2a); }

/* Menu Wi-Fi de la barre d'état */
.wifi { display: grid; place-items: center; padding: 2px; margin: -2px; border: 0; border-radius: 6px; background: none; color: inherit; cursor: pointer; }
.wifi:hover, .wifi[aria-expanded="true"] { background: rgba(255, 255, 255, 0.12); }
.wifi:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.wifi-menu {
  position: absolute;
  top: 52px; right: 14px;
  z-index: 20;
  width: min(250px, calc(100% - 28px));
  padding: 12px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(28, 30, 34, 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: wifi-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
}
@keyframes wifi-in { from { opacity: 0; transform: scale(0.94) translateY(-4px); } }
.wifi-menu__title { margin: 0 10px 6px; font-weight: 700; }
.wifi-menu__sub { margin: 10px 10px 4px; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.wifi-menu__list { list-style: none; margin: 0; padding: 0; }
.wifi-net {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
}
.wifi-net svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wifi-net > .sys { margin-left: 0; }
.wifi-net__lock { margin-left: auto; color: var(--muted); width: 14px !important; height: 14px !important; }
.wifi-net:not(:has(.wifi-net__lock)) > svg:last-child { margin-left: auto; }
.wifi-net--on { font-weight: 700; }
.wifi-net__check { color: var(--red); }
a.wifi-net:hover { background: rgba(255, 255, 255, 0.07); }
a.wifi-net:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.wifi-net--off { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .wifi-menu { animation: none; } }

/* Messages */
.void--messages .void__icon { background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(63, 191, 127, 0.3); }
.void--messages .void__icon svg { stroke: var(--green); }
#view-messages.is-thread > .view__head { display: none; }
#messages { display: flex; flex-direction: column; gap: 14px; }
.convos { list-style: none; margin: 0; padding: 0; }
.convo .row-actions { display: flex; gap: 12px; padding: 0 4px 10px 70px; }
.convo__open {
  display: grid;
  grid-template-columns: 10px 46px minmax(0, 1fr) 14px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
}
.convo__body { display: flex; flex-direction: column; min-width: 0; gap: 2px; padding-bottom: 10px; margin-bottom: -10px; border-bottom: 1px solid rgba(47, 50, 56, 0.6); align-self: stretch; justify-content: center; }
.convo:last-child .convo__body { border-bottom-color: transparent; }
.convo__open:hover { background: rgba(255, 255, 255, 0.03); }
.convo__open:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.convo__dot { width: 10px; height: 10px; border-radius: 50%; }
.convo--unread .convo__dot { background: var(--red); }
.avatar--convo { width: 46px; height: 46px; font-size: 1.125rem; }
.convo__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.convo__name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo__time { color: var(--muted); font-size: 0.75rem; white-space: nowrap; }
.convo__last {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}
.convo--unread .convo__last { color: var(--text); }
.convo__chev { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.6; }

.phone #view-messages.is-thread { min-height: 100%; }
#view-messages.is-thread > #messages, .thread { flex: 1; }
.thread { display: flex; flex-direction: column; }
.thread__head {
  position: sticky;
  top: -6px;
  z-index: 2;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin: -6px -16px 0;
  padding: 8px 16px 10px;
  background: rgba(20, 21, 24, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.thread__back { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--red); cursor: pointer; }
.thread__back:hover { background: rgba(255, 255, 255, 0.05); }
.thread__back svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.thread__who { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.avatar--thread { width: 52px; height: 52px; font-size: 1.25rem; }
.thread__name { margin: 0; max-width: 100%; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread__list { flex: 1; list-style: none; margin: 0; padding: 14px 0 12px; display: flex; flex-direction: column; gap: 2px; }
.thread__sep { align-self: center; margin: 12px 0 6px; color: var(--muted); font-size: 0.6875rem; font-weight: 600; }
.thread__receipt { align-self: flex-end; margin-top: 2px; color: var(--muted); font-size: 0.6875rem; font-weight: 600; }
.bubble {
  position: relative;
  align-self: flex-start;
  max-width: 76%;
  padding: 7px 12px;
  border-radius: 18px;
  background: var(--panel-2);
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  animation: bubble-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(4px); } }
.bubble--first:not(:first-child) { margin-top: 6px; }
.bubble:not(.bubble--tail) { border-bottom-left-radius: 6px; }
.bubble:not(.bubble--first) { border-top-left-radius: 6px; }
.bubble--me { align-self: flex-end; background: var(--red); color: #fff; }
.bubble--me:not(.bubble--tail) { border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.bubble--me:not(.bubble--first) { border-top-left-radius: 18px; border-top-right-radius: 6px; }
.bubble--emoji { padding: 0 2px; background: none; font-size: 2.5rem; line-height: 1.15; }
.bubble--typing { display: flex; gap: 4px; padding: 12px 14px; }
.bubble--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite ease-in-out; }
.bubble--typing i:nth-child(2) { animation-delay: 0.15s; }
.bubble--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.composer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -16px -48px;
  padding: 8px 16px 40px;
  background: linear-gradient(transparent, var(--bg) 30%);
}
.composer__field { flex: 1; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.875rem; }
.composer__send { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2); }
.composer__send svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .bubble, .bubble--typing i { animation: none; } }

/* Confirmation de suppression (admin) */
.confirm { width: min(380px, calc(100vw - 32px)); text-align: center; }
.confirm h2 { margin-bottom: 8px; }
.confirm__icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: var(--red-soft); box-shadow: inset 0 0 0 1px rgba(227, 36, 43, 0.35); }
.confirm__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.confirm__text { margin: 0; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.confirm .dialog__actions { justify-content: center; }
.confirm .dialog__actions .btn { flex: 1; }

/* conversation ouverte : retour à la liste */
.appwin:has(#view-messages.is-thread:not([hidden])) .appbar { display: none; }
.phone #view-messages.is-thread .thread__head { top: 0; margin-top: 0; }

/* Éditeur de messages (admin) : une ligne par bulle */
.fil-edit { display: flex; flex-direction: column; gap: 10px; }
.fil-edit__list { list-style: none; margin: 0; padding: 10px; display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.fil-edit__list:empty::before { content: "Aucun message. Ajoute-en un avec les boutons ci-dessous."; padding: 14px; color: var(--muted); font-size: 0.875rem; text-align: center; }
.fil-row { display: flex; align-items: center; gap: 6px; width: 82%; }
.fil-row--me { align-self: flex-end; flex-direction: row-reverse; }
.fil-row--sep, .fil-row--typing { align-self: center; width: 60%; }
.fil-row__side {
  flex: none;
  min-width: 52px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  text-align: center;
}
button.fil-row__side { cursor: pointer; }
button.fil-row__side:hover { color: var(--text); }
.fil-row--me .fil-row__side { border-color: rgba(227, 36, 43, 0.5); color: #ff8a8e; }
.fil-row__text {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
}
.fil-row--me .fil-row__text { background: var(--red); color: #fff; }
.fil-row--me .fil-row__text::placeholder { color: rgba(255, 255, 255, 0.7); }
.fil-row--sep .fil-row__text { background: none; border-color: var(--line); text-align: center; font-size: 0.8125rem; }
.fil-row__text:focus { outline: none; border-color: var(--text); }
.fil-row__dots { flex: 1; display: flex; justify-content: center; gap: 4px; padding: 10px; }
.fil-row__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.fil-row__del { flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.125rem; line-height: 1; cursor: pointer; }
.fil-row__del:hover { background: var(--red-soft); color: var(--red); }
.fil-edit__hint { margin: 0; color: var(--muted); font-size: 0.75rem; }
.fil-edit__add { display: flex; flex-wrap: wrap; gap: 8px; }

/* Pastille d'icône */
.app__badge {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ff3b30;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}
.app__badge[hidden] { display: none; }

/* Bannière de notification */
.notif { position: absolute; top: 50px; left: 10px; right: 10px; z-index: 30; animation: notif-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15); }
.notif[hidden] { display: none; }
.notif.is-leaving { animation: notif-out 0.3s ease-in forwards; }
.notif__card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)), rgba(28, 29, 33, 0.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 34px rgba(0, 0, 0, 0.45);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.notif__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--icon); }
.notif__icon svg { width: 100%; height: 100%; }
.notif__text { display: flex; flex-direction: column; min-width: 0; }
.notif__top { display: flex; justify-content: space-between; gap: 8px; color: rgba(236, 236, 238, 0.6); font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.notif__text strong { font-size: 0.875rem; }
.notif__msg { color: rgba(236, 236, 238, 0.85); font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes notif-in { from { transform: translateY(-120%); opacity: 0; } }
@keyframes notif-out { to { transform: translateY(-120%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .notif, .notif.is-leaving { animation: none; } }

/* En-tête de conversation */
button.thread__who { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.thread__name svg { width: 11px; height: 11px; margin-left: 2px; fill: none; stroke: var(--muted); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -1px; }
.thread__sub { margin: -2px 0 0; max-width: 100%; color: var(--muted); font-size: 0.6875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.thread__who:hover .thread__name { color: #fff; }
.avatar--thread.avatar--enemy, .avatar--convo.avatar--enemy { box-shadow: 0 0 0 2px var(--red); }

/* Boutons ronds d'une fiche */
.contact-actions { display: flex; gap: 10px; margin-top: 14px; }
.msg-link {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.15s, background-color 0.15s;
}
.msg-link svg { width: 20px; height: 20px; fill: #fff; }
.msg-link:hover { background: rgba(255, 255, 255, 0.18); }
.msg-link:active { transform: scale(0.92); }

/* Contacts : total */
.contacts__count { padding: 16px 0 4px; color: var(--muted); font-size: 0.8125rem; font-weight: 600; text-align: center; }

/* Écran d'appel */
.call {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 28px 44px;
  background: linear-gradient(180deg, rgba(20, 22, 28, 0.82), rgba(8, 9, 12, 0.94));
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  backdrop-filter: blur(30px) saturate(1.4);
  color: #fff;
  animation: call-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.call[hidden] { display: none; }
.call.is-ended { animation: call-out 0.35s 1.05s ease-in forwards; }
.call__top { text-align: center; }
.call__state { margin: 0; color: rgba(255, 255, 255, 0.65); font-size: 0.9375rem; font-weight: 600; }
.call.is-ended .call__state { color: #ff6b70; }
.call__name { margin: 6px 0 2px; font-family: var(--head); font-weight: 700; font-size: 2rem; line-height: 1.1; }
.call__num { margin: 0; color: rgba(255, 255, 255, 0.55); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.call__face { position: relative; display: grid; place-items: center; margin: 46px 0 auto; }
.call__face::before, .call__face::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.18); animation: call-ring 2.2s ease-out infinite; }
.call__face::after { animation-delay: 1.1s; }
.call.is-ended .call__face::before, .call.is-ended .call__face::after { animation: none; opacity: 0; }
.call__avatar { width: 112px; height: 112px; font-size: 2.5rem; }
.call__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 22px; margin-bottom: 34px; }
.call__grid span { display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.8); font-size: 0.75rem; font-weight: 600; }
.call__grid i { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.call__grid svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.call__grid span:nth-child(2) svg { fill: #fff; stroke: none; }
.call__hang { display: grid; place-items: center; width: 68px; height: 68px; padding: 0; border: 0; border-radius: 50%; background: #ff3b30; cursor: pointer; box-shadow: 0 10px 24px rgba(255, 59, 48, 0.35); transition: transform 0.15s, filter 0.15s; }
.call__hang svg { width: 30px; height: 30px; fill: #fff; transform: rotate(135deg); }
.call__hang:hover { filter: brightness(1.08); }
.call__hang:active { transform: scale(0.92); }
@keyframes call-in { from { opacity: 0; transform: scale(1.04); } }
@keyframes call-out { to { opacity: 0; transform: scale(0.98); } }
@keyframes call-ring { from { transform: scale(0.9); opacity: 0.8; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .call, .call.is-ended, .call__face::before, .call__face::after { animation: none; } }

/* Contacts : bouton messagerie */
.contact-line { display: flex; align-items: center; gap: 4px; }
.contact-line > .contact { flex: 1; min-width: 0; }
.contact__vm {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}
.contact__vm svg { width: 17px; height: 17px; fill: var(--text); }
.contact__vm:hover { background: rgba(255, 255, 255, 0.16); }
.contact__vm:active { transform: scale(0.92); }
.contact__vm.has-new::after { content: ""; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 2px var(--bg); }

/* Messagerie d'un contact */
#view-contacts.is-voicemail > .view__head, #view-contacts.is-voicemail > .contacts__search, #view-contacts.is-voicemail > .contacts { display: none; }
.voicemail[hidden] { display: none; }
.vm__back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 6px -6px; padding: 4px 6px; border: 0; border-radius: 8px; background: none; color: var(--red); font: inherit; font-weight: 600; cursor: pointer; }
.vm__back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vm__who { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 18px; text-align: center; }
.avatar--vm { width: 84px; height: 84px; font-size: 2rem; }
.avatar--vm.avatar--enemy { box-shadow: 0 0 0 3px var(--red); }
.vm__name { margin: 8px 0 0; font-family: var(--head); font-weight: 700; font-size: 1.5rem; }
.vm__tel { margin: 0; color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.vm__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.vm__head h3 { margin: 0; font-family: var(--head); font-weight: 700; font-size: 1.125rem; }
.vm__head span { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.vm__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vm__item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.vm__item.is-new::before { content: ""; position: absolute; top: 14px; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: #3b82ff; }
.vm__play { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--red); cursor: pointer; transition: transform 0.15s, filter 0.15s; }
.vm__play:hover { filter: brightness(1.1); }
.vm__play:active { transform: scale(0.92); }
.vm__play svg { width: 20px; height: 20px; fill: #fff; }
.vm__i-pause, .vm__item.is-playing .vm__i-play { display: none; }
.vm__item.is-playing .vm__i-pause { display: block; }
.vm__when { margin: 0 0 6px; font-size: 0.875rem; font-weight: 700; }
.vm__item.is-new .vm__when::after { content: "Nouveau"; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: rgba(59, 130, 255, 0.18); color: #7aa8ff; font-size: 0.6875rem; font-weight: 700; }
.vm__bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; cursor: pointer; }
.vm__bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--text); transition: width 0.2s linear; }
.vm__times { display: flex; justify-content: space-between; margin: 5px 0 0; color: var(--muted); font-size: 0.6875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.vm__none { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 0; color: var(--muted); text-align: center; }
.vm__none svg { width: 34px; height: 34px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }

/* Admin : messagerie */
#vocaux-admin { display: grid; gap: 14px; }
.vm-admin__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vm-admin__list li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.vm-admin__list li:first-child { border-top: 0; }
.vm-admin__when { font-weight: 600; }
.vm-admin__list audio, .field--audio audio { width: 100%; height: 36px; }
.field--audio input[type="file"] { margin-top: 6px; font-size: 0.875rem; color: var(--muted); }
.audio-empty { color: var(--muted); font-size: 0.875rem; }
