/* v2.0.68 : messagerie interne — charte KMAR (rouge, noir, blanc), ergonomie d'une messagerie de téléphone. */
:root { --m-red: #B0122B; --m-red-d: #7E0C1E; --m-ink: #141414; --m-bg: #EFEAE4; --m-out: #FBE4E6; --m-mut: #5F5F5F; --m-line: #E4DED7; }
.sr, .p-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.msg-app { max-width: 980px; margin: 0 auto; }
.m-panel { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; flex-direction: column; position: relative; }
.m-head { background: var(--m-ink); color: #fff; display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 12px; min-height: 60px; box-sizing: border-box; }
.m-head h1 { margin: 0; font-size: 1.35rem; color: #fff; }
.m-head-t { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.m-head-t b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-head-t small { color: #D6D6D6; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-head-c { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: 1 1 auto; min-width: 0; }
.m-hb { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: inherit; background: transparent; border: 0; border-radius: 50%; cursor: pointer; flex-shrink: 0; text-decoration: none; }
.m-head .m-hb { color: #fff; }
.m-hb:hover { background: rgba(255,255,255,.12); }
.m-av { --s: 48px; width: var(--s); height: var(--s); min-width: var(--s); border-radius: 50%; background: #444; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: calc(var(--s) * .36); }
.m-s32 { --s: 32px; } .m-s36 { --s: 36px; } .m-s40 { --s: 40px; } .m-s46 { --s: 46px; } .m-s48 { --s: 48px; } .m-s84 { --s: 84px; }
.m-c0 { background: #8A1C2B; } .m-c1 { background: #2F4858; } .m-c2 { background: #6B4E16; } .m-c3 { background: #3D5A40; } .m-c4 { background: #4B3F72; } .m-c5 { background: #5A3D2B; } .m-c6 { background: #7A2E4A; } .m-c7 { background: #141414; }
.m-tc0 { color: #8A1C2B; } .m-tc1 { color: #2F4858; } .m-tc2 { color: #6B4E16; } .m-tc3 { color: #3D5A40; } .m-tc4 { color: #4B3F72; } .m-tc5 { color: #5A3D2B; } .m-tc6 { color: #7A2E4A; } .m-tc7 { color: #141414; }
.m-px0 { left: 5%; } .m-px1 { left: 15%; } .m-px2 { left: 25%; } .m-px3 { left: 35%; } .m-px4 { left: 45%; } .m-px5 { left: 55%; } .m-px6 { left: 65%; } .m-px7 { left: 75%; } .m-px8 { left: 85%; } .m-px9 { left: 95%; }
.m-py0 { top: 5%; } .m-py1 { top: 15%; } .m-py2 { top: 25%; } .m-py3 { top: 35%; } .m-py4 { top: 45%; } .m-py5 { top: 55%; } .m-py6 { top: 65%; } .m-py7 { top: 75%; } .m-py8 { top: 85%; } .m-py9 { top: 95%; }
.m-a1 { --c: #7A2E4A; } .m-a2 { --c: #B0122B; } .m-a3 { --c: #4B3F72; } .m-a4 { --c: #3D5A40; } .m-a5 { --c: #2F4858; } .m-a6 { --c: #8A1C2B; }
.m-av-i { background: var(--m-red); }
.m-av-ticket { background: #2F4858; }
.m-av-annonce { background: #141414; }
/* Liste */
.m-search { padding: 10px 14px 4px; }
.m-search label { display: flex; align-items: center; gap: 10px; background: #F1EEEA; border-radius: 22px; height: 44px; padding: 0 14px; color: var(--m-mut); }
.m-search input { border: 0; outline: 0; background: transparent; font: inherit; width: 100%; color: var(--m-ink); padding: 0; min-height: 0; box-shadow: none; }
.m-chips { display: flex; gap: 8px; padding: 8px 14px; overflow-x: auto; }
.m-chip { height: 34px; padding: 0 14px; border-radius: 17px; background: #F1EEEA; color: var(--m-ink); display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; white-space: nowrap; }
.m-chip.on { background: #F6D7DB; color: var(--m-red-d); }
.m-arch { display: flex; align-items: center; gap: 18px; padding: 10px 26px; color: var(--m-ink); text-decoration: none; font-weight: 500; }
.m-arch .mi { color: var(--m-red); }
.m-arch small { margin-left: auto; color: var(--m-mut); }
.m-items { display: flex; flex-direction: column; padding-bottom: 80px; }
.m-li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; color: var(--m-ink); }
.m-li:hover { background: #F7F4F1; }
.m-li-b { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; border-bottom: 1px solid var(--m-line); padding-bottom: 10px; }
.m-li-1, .m-li-2 { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.m-li-1 b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-li-1 small { color: var(--m-mut); font-size: .76rem; flex-shrink: 0; }
.m-li.unread .m-li-1 small { color: var(--m-red); font-weight: 700; }
.m-li-ap { color: var(--m-mut); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.m-li.unread .m-li-ap { color: var(--m-ink); font-weight: 500; }
.m-li-ic { display: inline-flex; align-items: center; gap: 4px; color: #767676; flex-shrink: 0; }
.m-badge { min-width: 22px; height: 22px; border-radius: 11px; background: var(--m-red); color: #fff; font-size: .74rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; box-sizing: border-box; }
.m-tag { font-size: .68rem; font-weight: 700; color: var(--m-red); border: 1px solid var(--m-red); border-radius: 4px; padding: 0 4px; margin-right: 6px; vertical-align: 2px; }
.m-fab { position: absolute; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 16px; background: var(--m-red); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.m-empty { text-align: center; color: var(--m-mut); padding: 30px 16px; }
/* Discussion */
.m-conv { height: calc(100dvh - 170px); min-height: 460px; }
@media (max-width: 760px) { .m-conv { height: calc(100dvh - 140px); border-radius: 0; margin: 0 -12px; } }
.m-band { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--m-line); color: var(--m-ink); text-decoration: none; }
.m-band .mi { color: var(--m-red); flex-shrink: 0; }
.m-band span { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.m-band b { font-size: .86rem; } .m-band small { color: var(--m-mut); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-band > a { color: var(--m-red); font-weight: 600; text-decoration: none; padding: 10px 4px; }
.m-fil { flex: 1 1 auto; overflow-y: auto; background: var(--m-bg); padding: 10px 0 6px; display: flex; flex-direction: column; gap: 4px; overscroll-behavior: contain; }
.m-older { align-self: center; margin: 4px 0 8px; font-size: .85rem; }
.m-day { display: flex; justify-content: center; padding: 6px 0; }
.m-day span { background: #fff; color: var(--m-mut); font-size: .76rem; font-weight: 500; padding: 5px 12px; border-radius: 8px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.m-sys { display: flex; justify-content: center; padding: 2px 24px; }
.m-sys span { display: inline-flex; align-items: center; gap: 6px; background: #F8F1DA; color: #4A3A10; font-size: .8rem; padding: 6px 12px; border-radius: 8px; text-align: center; line-height: 1.35; max-width: 520px; }
.m-row { display: flex; flex-direction: column; align-items: flex-start; padding: 1px 10px; }
.m-row.m-out { align-items: flex-end; }
.m-row.m-flash .m-bub { box-shadow: 0 0 0 3px #F3B5BE; }
.m-bub { position: relative; max-width: min(78%, 520px); background: #fff; border-radius: 2px 12px 12px 12px; padding: 7px 10px 8px; box-shadow: 0 1px 1px rgba(0,0,0,.08); line-height: 1.38; overflow-wrap: anywhere; }
.m-out .m-bub { background: var(--m-out); border-radius: 12px 2px 12px 12px; }
.m-client .m-bub { background: #E7F0F4; }
.m-who { display: block; font-size: .82rem; margin-bottom: 2px; }
.m-txt { display: inline; }
.m-txt a { color: var(--m-red-d); }
.m-mention { color: var(--m-red); }
.m-meta { display: inline-flex; align-items: center; gap: 3px; font-size: .7rem; color: var(--m-mut); float: right; margin: 6px 0 -4px 10px; }
.m-tk { display: inline-flex; color: #767676; } .m-tk-lu { color: var(--m-red); }
.m-fav { color: #B98900; display: inline-flex; }
.m-fwd, .m-vis { display: flex; align-items: center; gap: 4px; color: var(--m-mut); font-style: italic; font-size: .74rem; margin-bottom: 2px; }
.m-vis { color: #2F4858; font-style: normal; font-weight: 600; }
.m-del { color: var(--m-mut); display: inline-flex; align-items: center; gap: 4px; }
.m-more { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--m-mut); display: none; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.m-bub:hover .m-more, .m-more:focus { display: inline-flex; }
@media (pointer: coarse) { .m-more { display: none !important; } }
.m-quote { display: block; border-left: 4px solid var(--m-red); background: rgba(0,0,0,.05); border-radius: 6px; padding: 4px 8px; margin-bottom: 5px; text-decoration: none; color: var(--m-ink); }
.m-quote b { display: block; font-size: .8rem; color: var(--m-red); } .m-quote span { font-size: .84rem; color: var(--m-mut); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-photo img { display: block; max-width: 100%; width: 280px; max-height: 340px; object-fit: cover; border-radius: 8px; margin-bottom: 4px; background: #ddd; }
.m-doc { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.045); border-radius: 8px; padding: 8px 10px; text-decoration: none; color: var(--m-ink); margin-bottom: 4px; min-width: 220px; }
.m-doc-ic { width: 36px; height: 44px; border-radius: 4px; background: var(--m-red); color: #fff; font-size: .62rem; font-weight: 700; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; box-sizing: border-box; flex-shrink: 0; }
.m-doc span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .m-doc b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; } .m-doc small { color: var(--m-mut); font-size: .76rem; }
.m-vocal { display: flex; align-items: center; gap: 8px; min-width: 240px; }
.m-vocal audio { height: 36px; max-width: 220px; }
.m-vocal small { color: var(--m-mut); font-size: .74rem; }
.m-pos { display: block; width: 260px; max-width: 100%; text-decoration: none; color: var(--m-ink); margin-bottom: 4px; }
.m-pos-map { display: block; position: relative; height: 130px; overflow: hidden; border-radius: 8px 8px 0 0; background: #D9E2D3; }
.m-pos-map img { position: absolute; left: 50%; top: 50%; width: 256px; height: 256px; transform: translate(-50%, -50%); }
.m-pos-pin { position: absolute; transform: translate(-50%, -100%); color: var(--m-red); margin-left: 0; }
.m-pos-txt { display: flex; flex-direction: column; gap: 2px; background: rgba(0,0,0,.045); border-radius: 0 0 8px 8px; padding: 7px 10px; }
.m-pos-txt small { color: var(--m-mut); font-size: .76rem; }
.m-card { display: flex; gap: 10px; align-items: center; background: rgba(0,0,0,.045); border-radius: 8px; padding: 8px 10px; text-decoration: none; color: var(--m-ink); margin-bottom: 4px; }
.m-card-ic { width: 36px; height: 36px; border-radius: 50%; background: #2F4858; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.m-card span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .m-card small { color: var(--m-mut); font-size: .78rem; }
.m-poll { min-width: 240px; }
.m-poll-q { display: flex; align-items: center; gap: 6px; } .m-poll-q .mi { color: var(--m-red); }
.m-poll > small { display: block; color: var(--m-mut); font-size: .74rem; margin: 2px 0 4px; }
.m-opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 8px; align-items: center; width: 100%; border: 0; background: transparent; font: inherit; color: inherit; padding: 6px 0; cursor: pointer; text-align: left; }
.m-opt-r { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--m-red); box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.m-opt.on .m-opt-r { background: var(--m-red); }
.m-opt-n { font-size: .8rem; color: var(--m-mut); }
.m-opt-b { grid-column: 2 / 4; width: 100%; height: 5px; border: 0; border-radius: 3px; background: #E7E1DB; overflow: hidden; -webkit-appearance: none; appearance: none; }
.m-opt-b::-webkit-progress-bar { background: #E7E1DB; border-radius: 3px; } .m-opt-b::-webkit-progress-value { background: var(--m-red); border-radius: 3px; } .m-opt-b::-moz-progress-bar { background: var(--m-red); border-radius: 3px; }
.m-rx { margin: -8px 14px 0; background: #fff; border: 0; border-radius: 12px; padding: 2px 7px; font-size: .84rem; box-shadow: 0 1px 2px rgba(0,0,0,.18); cursor: default; position: relative; z-index: 1; }
/* Saisie */
.m-comp { background: var(--m-bg); padding: 6px 8px 10px; }
.m-replybar { display: flex; align-items: center; gap: 8px; background: #fff; border-left: 4px solid var(--m-red); border-radius: 8px; padding: 6px 4px 6px 10px; margin-bottom: 6px; }
.m-replybar span { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; } .m-replybar b { color: var(--m-red); font-size: .82rem; } .m-replybar small { color: var(--m-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-vischk { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: #2F4858; padding: 0 6px 6px; }
.m-comp-row { display: flex; align-items: flex-end; gap: 6px; }
.m-comp-row[hidden] { display: none; }
.m-comp-box { flex: 1 1 auto; min-height: 48px; background: #fff; border-radius: 24px; display: flex; align-items: flex-end; padding: 0 4px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.m-ib { width: 44px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--m-mut); cursor: pointer; flex-shrink: 0; }
.m-ta { flex: 1 1 auto; display: flex; }
.m-ta textarea { border: 0; outline: 0; resize: none; font: inherit; font-size: 16px; width: 100%; background: transparent; padding: 12px 0; min-height: 0; max-height: 140px; box-shadow: none; line-height: 1.35; }
.m-send { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--m-red); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.m-send[hidden] { display: none; }
.m-rec { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 24px; padding: 6px 8px 6px 16px; min-height: 48px; box-sizing: border-box; }
.m-rec[hidden] { display: none; }
.m-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--m-red); animation: m-pulse 1s infinite; }
.m-rec-hint { flex: 1 1 auto; color: var(--m-mut); font-size: .86rem; }
@keyframes m-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .m-rec-dot { animation: none; } }
.m-emo { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 2px; background: #fff; border-radius: 12px; padding: 6px; margin-top: 6px; }
.m-emo[hidden] { display: none; }
.m-emo button { height: 44px; border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; border-radius: 8px; }
.m-emo button:hover { background: #F1EEEA; }
.m-ro { text-align: center; color: var(--m-mut); padding: 14px; margin: 0; background: var(--m-bg); }
/* Feuille « Joindre » et menu */
.m-sheet, .m-menu { position: absolute; inset: 0; background: rgba(0,0,0,.42); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.m-sheet[hidden], .m-menu[hidden] { display: none; }
.m-sheet-in, .m-menu-in { background: #fff; border-radius: 20px; margin: 10px; padding: 18px 12px 14px; width: min(100%, 460px); box-shadow: 0 6px 20px rgba(0,0,0,.25); max-height: calc(100% - 20px); overflow-y: auto; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; }
.m-att { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
.m-att-b { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: transparent; font: inherit; font-size: .82rem; color: var(--m-ink); cursor: pointer; text-align: center; padding: 0; }
.m-att-b .mi { width: 56px; height: 56px; padding: 15px; box-sizing: border-box; border-radius: 50%; background: var(--c); color: #fff; }
.m-subform { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--m-line); padding-top: 12px; }
.m-subform[hidden] { display: none; }
.m-subform label { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; }
.m-sheet-x { align-self: center; }
.m-menu-rx { display: flex; justify-content: space-between; background: #F6F3F0; border-radius: 28px; padding: 2px 6px; }
.m-menu-rx button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; border-radius: 50%; }
.m-menu-rx button:hover { background: #fff; }
.m-menu-l { display: flex; flex-direction: column; }
.m-menu-l > * { display: flex; align-items: center; gap: 14px; border: 0; background: transparent; font: inherit; color: var(--m-ink); padding: 11px 10px; text-align: left; cursor: pointer; border-radius: 10px; text-decoration: none; }
.m-menu-l > *:hover { background: #F6F3F0; }
.m-menu-l > [hidden] { display: none; }
.m-danger { color: #A3001B !important; }
.m-menu-vu, .m-menu-fwd { border-top: 1px solid var(--m-line); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.m-menu-vu[hidden], .m-menu-fwd[hidden] { display: none; }
.m-menu-vu p { margin: 0; font-size: .9rem; }
.m-menu-fwd button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; font: inherit; padding: 6px; cursor: pointer; border-radius: 8px; text-align: left; }
.m-menu-fwd button:hover { background: #F6F3F0; }
.m-toast { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--m-ink); color: #fff; padding: 9px 16px; border-radius: 20px; font-size: .88rem; z-index: 30; max-width: 90%; text-align: center; }
.m-toast[hidden] { display: none; }
/* Infos, nouveau, favoris */
.m-infos-b, .m-new-b { background: #F1EEEA; display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.m-card-w { background: #fff; padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.m-card-w h3 { margin: 0; font-size: .92rem; color: var(--m-mut); font-weight: 500; display: flex; justify-content: space-between; }
.m-id { align-items: center; text-align: center; }
.m-id h2 { margin: 6px 0 0; font-size: 1.25rem; }
.m-id small { color: var(--m-mut); }
.m-quick { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.m-quick a { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; padding: 10px 0; border: 1px solid var(--m-line); border-radius: 12px; text-decoration: none; color: var(--m-red); font-size: .8rem; font-weight: 500; }
.m-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.m-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.m-docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.m-docs li { display: flex; flex-direction: column; } .m-docs small { color: var(--m-mut); font-size: .76rem; }
.m-set-b { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: transparent; font: inherit; padding: 10px 0; cursor: pointer; text-align: left; color: var(--m-ink); }
.m-sw { width: 40px; height: 24px; border-radius: 12px; background: #C9C2BB; position: relative; flex-shrink: 0; }
.m-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.m-sw.on { background: var(--m-red); } .m-sw.on::after { left: 19px; }
.m-mb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.m-mb li { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.m-mb li > span { flex: 1 1 auto; display: flex; flex-direction: column; } .m-mb small { color: var(--m-mut); }
.m-form { display: flex; flex-direction: column; gap: 10px; }
.m-form fieldset { border: 1px solid var(--m-line); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.m-nv button, .m-nv-s { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; background: #fff; font: inherit; padding: 10px 18px; cursor: pointer; text-align: left; color: var(--m-ink); }
.m-nv button:hover { background: #F7F4F1; }
.m-nv button span, .m-nv-s span { display: flex; flex-direction: column; } .m-nv small, .m-nv-s small { color: var(--m-mut); }
.m-nv-s { padding: 0; list-style: none; } .m-nv-s::-webkit-details-marker { display: none; }
.m-sec { margin: 10px 18px 0; font-size: .86rem; color: var(--m-mut); font-weight: 500; }
.m-tl { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.m-note { margin: 8px 18px; padding: 12px 14px; background: #F8F1DA; color: #4A3A10; border-radius: 10px; font-size: .86rem; }
.m-favh { padding: 6px 14px 0; font-size: .78rem; color: var(--m-mut); }
/* Menu de l'application */
.m-msg .nav-badge { margin-left: 4px; }
[data-msg-badge][hidden] { display: none !important; }
/* Bandeau « pointer le départ » et hors service */
.depart-band { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #FBE4E6; color: #5C0716; border: 1px solid #F3B5BE; border-radius: 12px; padding: 10px 14px; margin: 8px 0 12px; }
.hs-libre { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 12px 0 4px; }
.tb-panel .tb-hs + a { display: block; }
/* Espace client : fil de messages */
.p-chat li.p-me { background: #FBE4E6; border-radius: 10px; }
.p-chat-f { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }
.p-chat-f textarea { width: 100%; box-sizing: border-box; }
/* v2.0.68 : barre du bas à 6 boutons (Messages ajouté) */
@media (max-width: 900px) {
  .tabbar { grid-template-columns: repeat(6, 1fr) !important; padding-left: 2px !important; padding-right: 2px !important; }
  .tabbar .tb span { font-size: .66rem; }
}
@media (max-width: 760px) { .m-conv { height: calc(100dvh - 168px); } }

/* v3.0.1 : page de discussion sans défilement de la page (la discussion défile à l'intérieur) */
html.m-plein, html.m-plein body { overflow: hidden; height: 100%; overscroll-behavior: none; }
html.m-plein .foot { display: none; }
html.m-plein main.wrap { padding-bottom: 0; }
@media (max-width: 760px) { html.m-plein main.wrap { padding-top: 6px; } .m-conv { min-height: 0; } }
html.m-clavier .tabbar, html.m-clavier .foot { display: none !important; }
html.m-clavier header.top { display: none; }
/* v3.0.1 : modifier un compte (Utilisateurs et rôles) */
.user-infos { display: flex; flex-direction: column; gap: 6px; min-width: 240px; padding: 8px 0; }
.user-infos label { display: flex; flex-direction: column; gap: 2px; font-size: .85rem; text-align: left; }
/* v3.0.2 : discussion avec le client */
.m-band-cl { background: #E7F0F4; color: #1F3440; } .m-band-cl .mi { color: #2F4858; }
.m-interne { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: #4A3A10; background: #FFF6DB; border: 1px dashed #C9A227; border-radius: 10px; padding: 6px 10px; margin: 0 0 6px; cursor: pointer; }
.m-comp-int .m-comp-box { background: #FFF6DB; box-shadow: 0 0 0 2px #C9A227; }
.m-int { display: flex; align-items: center; gap: 4px; color: #6B5310; font-size: .74rem; font-weight: 700; margin-bottom: 2px; }
.m-interne-row .m-bub { background: #FFF6DB !important; border: 1px dashed #C9A227; }
.m-tag-cl { color: #2F4858; border-color: #2F4858; }
.m-av-kmar { background: #141414; border: 2px solid var(--m-red); box-sizing: border-box; font-weight: 800; letter-spacing: -.02em; font-size: calc(var(--s) * .3); }
.m-hours { display: flex; gap: 8px; align-items: flex-start; margin: 12px 14px 4px; padding: 10px 12px; background: #F8F1DA; color: #4A3A10; border-radius: 10px; font-size: .86rem; line-height: 1.4; }
.m-hours a { color: var(--m-red-d); }
.m-fab-txt { width: auto; padding: 0 18px; gap: 8px; height: 54px; font-weight: 600; text-decoration: none; }
.m-li-s { color: var(--m-mut); font-size: .78rem; }
.m-li-done { opacity: .72; }
.m-sys-auto { flex-direction: column; align-items: center; gap: 6px; }
.m-sys-auto span { background: #fff; color: var(--m-ink); border-left: 4px solid var(--m-red); text-align: left; }
.m-urg { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.m-conv-cl .m-out .m-bub { background: var(--m-out); }
html.m-clavier .p-top, html.m-clavier .p-tabbar, html.m-clavier .p-foot, html.m-clavier .p-install { display: none !important; }
html.m-plein .p-foot, html.m-plein .p-install, html.m-plein .p-center { display: none !important; }
html.m-plein .p-main { padding-bottom: 0; }
.portail .msg-app { margin: 0 -4px; }
.portail .m-panel { text-align: start; }
.m-interne { flex-direction: row !important; justify-content: flex-start; text-align: left; }
.m-interne input[type=checkbox] { width: 20px !important; height: 20px !important; min-height: 0; margin: 0; flex: 0 0 20px; accent-color: #C9A227; }
.m-interne span { flex: 1 1 auto; }
/* v3.0.4 : les avatars restent ronds partout (la règle des listes ne doit pas les étirer) */
.m-av { flex: 0 0 var(--s) !important; display: inline-flex !important; flex-direction: row !important; width: var(--s) !important; height: var(--s) !important; }
.m-mb li > span.m-av, .m-nv button > span.m-av, .m-nv-s > span.m-av { gap: 0; }
/* v3.0.5 : envoi d'un devis — choix du destinataire */
.gc-envoi-dv { display: inline-block; }
.gc-envoi-dv > summary { list-style: none; cursor: pointer; } .gc-envoi-dv > summary::-webkit-details-marker { display: none; }
.gc-envoi-dv[open] { display: block; flex-basis: 100%; }
.gc-envoi-f { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid #E4DED7; border-radius: 12px; padding: 12px 14px; margin-top: 8px; max-width: 560px; text-align: left; }
.gc-envoi-f fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gc-envoi-f legend { font-weight: 600; margin-bottom: 4px; }
.gc-dem select { max-width: 280px; }
