/* Messages vocaux (23/11/2026 au soir, js/vocal.js) : la bulle (lecture, forme du son, durée), le bouton micro et la barre
   d'enregistrement. Partagé par la messagerie du coach (css/messages.css) et l'appli de l'athlète (css/echanges.css). */
.vocb{display:flex;align-items:center;gap:10px;min-width:min(236px,62vw);padding:2px 0}
.vocplay{flex:none;width:38px;height:38px;min-height:38px;border-radius:50%;border:0;padding:0;display:grid;place-items:center;cursor:pointer;background:currentColor}
.vocplay svg{width:18px;height:18px;fill:#0B0B0C}
.moi .vocplay svg{fill:#F5F5F7}
.voconde{flex:1;min-width:0;height:28px;display:flex;align-items:center;justify-content:space-between;gap:2px}
.voconde i{flex:1;max-width:3px;min-width:2px;height:var(--h);border-radius:2px;background:currentColor;opacity:.32}
.voconde i.lu{opacity:1}
.vocdur{flex:none;font-size:12px;font-variant-numeric:tabular-nums;opacity:.7;min-width:30px;text-align:right}
.vocb.charge .vocplay{opacity:.55}
.vocb.ko .vocdur{opacity:1}
.msgb.vocal time,.xb.vocal time{margin-top:-2px}
/* le micro : à la place du bouton Envoyer tant que rien n'est écrit */
.msgmic,.xmic{flex:none;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;border:0;display:grid;place-items:center;cursor:pointer;background:rgba(255,255,255,.1);color:var(--ink)}
.xmic{width:48px;height:48px;min-height:48px}
.msgmic svg,.xmic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.msgcomp:not(.atexte) .msgmic ~ .msgenv,.xcomp:not(.atexte) .xmic ~ .xenv{display:none}
.msgcomp.atexte .msgmic,.xcomp.atexte .xmic{display:none}
@media (hover:hover) and (pointer:fine){.msgmic:hover,.xmic:hover{background:rgba(255,255,255,.16)}}
/* pendant l'enregistrement : annuler, le point rouge et le temps, le niveau de la voix, envoyer */
.msgrec,.xrec{display:flex;align-items:center;gap:10px;min-height:48px;width:100%}
.msgrecx{flex:none;width:44px;height:44px;border-radius:50%;border:0;padding:0;display:grid;place-items:center;background:rgba(255,255,255,.1);color:var(--ink);cursor:pointer}
.msgrecx svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.msgrecdot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--acc);animation:vocpouls 1.2s ease-in-out infinite}
@keyframes vocpouls{50%{opacity:.25}}
.msgrec time,.xrec time{flex:none;font-variant-numeric:tabular-nums;font-size:15px;min-width:40px}
.msgrecniv{flex:1;min-width:0;height:30px;display:flex;align-items:center;justify-content:space-between;gap:2px}
.msgrecniv i{flex:1;max-width:3px;height:30px;border-radius:2px;background:var(--ink);transform:scaleY(.12);transform-origin:center}
@media (prefers-reduced-motion:reduce){.msgrecdot{animation:none}}
