/* Messages privés entre amis (8/11/2026) : cadre bleu de la ROM (echanges.css), bulles, bandeau en bas à gauche, pastilles. */

/* ---------- La fenêtre ---------- */
.mp-modal .box { width: min(540px, 94vw); max-height: calc(100vh / var(--ui, 1) - 16px); display: flex; flex-direction: column; gap: 6px; }
.mp-tete { display: flex; gap: 10px; align-items: center; }
.mp-port, .mp-port img { width: 56px; height: 56px; }
.mp-qui { min-width: 0; flex: 1; }
.mp-qui .g-nom { font-size: 22px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-sous { font-size: 16px; display: flex; align-items: center; gap: 4px; }
.mp-coupe, .mp-x { flex: none; font-size: 16px; min-height: 40px; }
.mp-x { padding: 4px 10px; }
.mp-fil { flex: 1 1 auto; min-height: 130px; max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 8px;
  background: rgba(6, 12, 36, .55); border: 2px solid rgba(120, 160, 255, .35); border-radius: 4px; scrollbar-width: thin; }
.mp-vide { margin: auto; text-align: center; font-size: 18px; }
.mp-bulle { position: relative; display: flex; flex-direction: column; max-width: 84%; padding: 6px 12px 3px; border-radius: 10px; font-size: 20px; line-height: 1.25;
  overflow-wrap: anywhere; text-shadow: 0 1px 0 #000; flex: none; }
.mp-bulle.lui { align-self: flex-start; background: linear-gradient(#3b5ba8, #2c4688); border: 2px solid #8fb4ff; border-bottom-left-radius: 2px; padding-right: 44px; }
.mp-bulle.moi { align-self: flex-end; background: linear-gradient(#a8812a, #876419); border: 2px solid #ffd35c; border-bottom-right-radius: 2px; }
.mp-bulle.neuve { animation: mpBulle .32s cubic-bezier(.2, 1.5, .4, 1); }
.mp-bulle.signale { opacity: .65; }
.mp-b-h { align-self: flex-end; font-size: 13px; opacity: .7; line-height: 1.1; }
.mp-sig { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-width: 0; min-height: 0; padding: 2px 6px; font-size: 14px; line-height: 18px; opacity: .6; border-width: 1px; }
.mp-sig:hover, .mp-sig.focus, .mp-sig:focus-visible { opacity: 1; color: #ffb3a0; }
.mp-b-sig { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 15px; }
@keyframes mpBulle { from { transform: translateY(10px) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.mp-etat { min-height: 20px; font-size: 16px; }
.mp-etat:empty { min-height: 0; margin: -3px 0; }
.mp-etat.err { color: #ffb3a0; }
.mp-etat.secoue { animation: mpSecoue .3s; }
@keyframes mpSecoue { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.mp-rapides { display: flex; flex-wrap: wrap; gap: 5px; }
.mp-rap { font-size: 17px; padding: 4px 10px; min-height: 0; }
.mp-ecrire { display: flex; gap: 6px; align-items: center; }
.mp-ecrire .mp-in { flex: 1; min-width: 0; width: auto; font-size: 20px; }
.mp-compte { font-size: 14px; width: 60px; text-align: right; flex: none; }
.mp-compte.presque { color: #ffd35c; }
.mp-go { flex: none; display: flex; align-items: center; gap: 4px; }
.mp-go.envol .pxi { animation: mpEnvol .45s ease-in; }
@keyframes mpEnvol { 40% { transform: translate(6px, -8px) rotate(-12deg); opacity: 0; } 41% { transform: translate(-6px, 6px); } 100% { transform: none; opacity: 1; } }
.mp-regle { font-size: 14px; }
.mp-modal.coupe .mp-ecrire, .mp-modal.coupe .mp-rapides { opacity: .45; }
.mp-signal .box { width: min(440px, 94vw); }
.mp-signal .mp-bulle { max-width: 100%; padding-right: 12px; }
.mp-signal p { font-size: 17px; }
.mp-aussi { gap: 6px; font-size: 17px; }
/* Téléphone couché : le fil prend la place, les réponses rapides sur une ligne qui défile */
body.is-touch .mp-modal .box { gap: 4px; }
body.is-touch .mp-port, body.is-touch .mp-port img { width: 40px; height: 40px; }
body.is-touch .mp-fil { max-height: none; min-height: 60px; }
body.is-touch .mp-bulle { font-size: 17px; }
body.is-touch .mp-rapides { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
body.is-touch .mp-rap { flex: none; font-size: 15px; }
body.is-touch .mp-regle { display: none; }
body.is-touch .mp-ecrire .mp-in { font-size: 17px; }

/* ---------- Bandeau en bas à gauche (au camp comme en donjon) ---------- */
#mp-flux { position: fixed; left: 12px; bottom: 96px; z-index: 13; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none;
  max-width: min(620px, 70vw); }
.mp-notif { pointer-events: auto; cursor: pointer; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left;
  padding: 5px 14px 5px 5px; font: inherit; font-size: 21px; color: #fff; text-shadow: 0 2px 0 #000;
  background: linear-gradient(90deg, rgba(150, 40, 110, .92), rgba(40, 20, 70, .88)); border: 2px solid #ff9ad5; border-radius: 6px;
  box-shadow: 0 0 12px rgba(255, 120, 200, .45), 0 4px 10px rgba(0, 0, 0, .5); animation: mpNotif .45s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .8s, transform .8s; }
.mp-notif.attente { border-color: #ffd35c; }
.mp-notif.part { opacity: 0; transform: translateX(-16px); }
.mp-notif:hover, .mp-notif:focus-visible { filter: brightness(1.15); outline: none; }
.mp-n-port { grid-row: 1 / span 2; width: 46px; height: 46px; image-rendering: pixelated; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .3); }
.mp-n-txt { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.mp-n-txt b { color: #ffd0ee; font-weight: normal; }
.mp-n-ico { display: inline-block; vertical-align: -2px; animation: mpLettre .9s ease-in-out 2; }
.mp-n-aide { font-size: 15px; color: #ffe0f2; opacity: .8; }
@keyframes mpNotif { from { transform: translateX(-30px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mpLettre { 0%, 100% { transform: none; } 30% { transform: rotate(-14deg) translateY(-2px); } 60% { transform: rotate(10deg); } }
body.is-touch .mp-notif { font-size: 16px; padding: 3px 10px 3px 3px; }
body.is-touch .mp-n-aide { font-size: 12px; }
body.is-touch .mp-n-port { width: 34px; height: 34px; }
body.cine-en-cours #mp-flux { opacity: 0; pointer-events: none; }

/* ---------- Pastilles « non lus » ---------- */
.mp-pastille, .mp-pastille-l, .mp-menu { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #e8459a; color: #fff; font-size: 13px; line-height: 1; text-shadow: 0 1px 0 #6a0f3d; box-shadow: 0 0 0 2px #2a0d22, 0 0 8px rgba(255, 110, 190, .7); vertical-align: middle; margin-left: 6px; }
.mp-pastille-l:empty { display: none; }
.mp-pastille-l.pop, .mp-menu { animation: mpPop .4s cubic-bezier(.2, 1.8, .4, 1); }
.mp-menu .pxi { width: 16px; height: 16px; }
@keyframes mpPop { from { transform: scale(.2); } to { transform: none; } }
.ami .f-mp { position: relative; min-height: 50px; padding: 2px 10px; }
.ami .f-mp .mp-pastille-l { position: absolute; top: -6px; right: -6px; margin: 0; }
.ami .f-qui { cursor: pointer; }
.jm-op .mp-pastille { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .mp-notif, .mp-bulle.neuve, .mp-n-ico, .mp-pastille-l.pop, .mp-menu { animation: none; } }

/* Plus précis que .btn.mini (style.css) */
.mp-modal .btn.mini.mp-rap { font-size: 18px; padding: 2px 10px; }
.mp-modal .btn.mini.mp-coupe, .mp-modal .btn.mini.mp-x { font-size: 17px; padding: 2px 10px; }
.mp-modal .btn.mini.mp-sig { border-width: 4px; padding: 0 4px; font-size: 14px; }
body.is-touch .mp-modal .btn.mini.mp-rap { font-size: 15px; }
body.is-touch .mp-bulle.lui { padding-right: 60px; }
#m-plus, #tel-menu { position: relative; }
#m-plus > .mp-menu, #tel-menu > .mp-menu { position: absolute; top: -8px; right: -6px; margin: 0; z-index: 1; }
