/* ===== Woyatsapp « wa1 » : interface façon messagerie mobile (Android sombre) ===== */
/* --- en-tête de discussion --- */
.hd.wa{background:#0b141a;height:60px;padding:6px 4px 6px 2px;gap:2px;position:relative;border-bottom:1px solid #ffffff08}
.hd.wa .hbk{display:flex;align-items:center;justify-content:center;width:40px;height:44px;border-radius:22px;flex:none;padding:0}.hd.wa .hbk svg{width:24px;height:24px}
.hd.wa .av{width:40px;height:40px;font-size:17px;cursor:pointer;flex:none}
.hd.wa .chead{flex:1;min-width:0;padding-left:8px;cursor:pointer}.hd.wa .chead b{display:block;font-size:17.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hd.wa .stat{font-size:13px;color:var(--sub);opacity:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hd.wa .hb{width:44px;height:44px;flex:none;border-radius:50%;padding:0}.hd.wa .hb svg{width:24px;height:24px}.hd.wa .hb:active,.hd.wa .hbk:active{background:#ffffff14}
@media(min-width:900px){.hd.wa .hbk{display:none}}
.cmenu{top:52px;right:6px;min-width:210px}
/* --- fond et bulles --- */
.msgs{background:#0b141a url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22180%22%20height%3D%22180%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-opacity%3D%22.045%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%20%3Cpath%20d%3D%22M18%2022h26a6%206%200%200%201%206%206v12a6%206%200%200%201-6%206H30l-8%207v-7h-4a6%206%200%200%201-6-6V28a6%206%200%200%201%206-6z%22%2F%3E%20%3Ccircle%20cx%3D%22120%22%20cy%3D%2230%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M114%2030h12M120%2024v12%22%2F%3E%20%3Cpath%20d%3D%22M150%2080l4%209%2010%201-7.5%206.5%202.3%209.8L150%20101l-8.8%205.3%202.3-9.8L136%2090l10-1z%22%2F%3E%20%3Cpath%20d%3D%22M40%20110c0-6%208-9%2012-3%204-6%2012-3%2012%203%200%208-12%2014-12%2014s-12-6-12-14z%22%2F%3E%20%3Crect%20x%3D%2288%22%20y%3D%22120%22%20width%3D%2222%22%20height%3D%2234%22%20rx%3D%224%22%2F%3E%3Cpath%20d%3D%22M96%20148h6%22%2F%3E%20%3Cpath%20d%3D%22M150%20150c6-10%2018-10%2024%200M156%20150a6%206%200%200%201%2012%200%22%2F%3E%20%3Ccircle%20cx%3D%2275%22%20cy%3D%2262%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%22160%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M60%20170l8-8M64%20162l4%200%200%204%22%2F%3E%20%3Cpath%20d%3D%22M100%2076q8-12%2016%200t16%200%22%2F%3E%20%3C%2Fsvg%3E") 0 0/180px 180px;padding:10px 5% 14px;gap:2px}
.dsep{align-self:center;margin:10px 0 6px}.dsep span{display:inline-block;background:#182229;color:#8696a0;font-size:12.5px;padding:5px 12px;border-radius:8px;box-shadow:0 1px 1px #0005}
.m{border-radius:8px;padding:6px 8px 7px 9px;font-size:15.5px;line-height:1.32;max-width:82%}.m.me{border-radius:8px}
.m:not(.sys):not(.cont){margin-top:6px}
.m:not(.sys):not(.cont)::before{content:'';position:absolute;top:0;left:-7px;width:8px;height:13px;background:var(--bubble-in);clip-path:polygon(0 0,100% 0,100% 100%)}
.m.me:not(.cont)::before{left:auto;right:-7px;background:var(--bubble-out);clip-path:polygon(0 0,100% 0,0 100%)}
.m:not(.sys):not(.cont):not(.me){border-top-left-radius:0}.m.me:not(.cont){border-top-right-radius:0}
.m.tm{padding-bottom:6px}.m.tm .tx{white-space:pre-wrap}.m.tm .tx::after{content:'';display:inline-block;width:52px}.m.me.tm .tx::after{width:70px}.m.tm.ed .tx::after{width:110px}.m.me.tm.ed .tx::after{width:128px}
.m.tm .meta,.m.vmsg .meta{position:absolute;inset-inline-end:8px;bottom:4px;margin:0}
.m .meta{font-size:11.5px;color:#ffffff8c;display:flex;align-items:center;justify-content:flex-end;gap:2px}.m .tick{font-size:12px;letter-spacing:-3px;margin-left:4px;color:#ffffff8c}.m .tick.read{color:#53bdeb}
.m.sys{font-size:12.5px;border-radius:8px;padding:5px 12px;margin:6px 0}
.tobottom{position:absolute;right:12px;bottom:78px;width:42px;height:42px;border-radius:50%;border:0;background:#202c33;color:#aebac1;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #0008;z-index:4;cursor:pointer}
.tobottom svg{width:24px;height:24px}.tobottom i{position:absolute;top:-6px;right:-2px;background:var(--green);color:#0b141a;font-style:normal;font-size:11px;font-weight:700;border-radius:10px;min-width:20px;height:20px;line-height:20px;text-align:center;padding:0 5px}
/* --- barre de saisie --- */
.bar.wa,.bar.rec.wa{background:transparent;padding:6px 6px calc(8px + env(safe-area-inset-bottom));gap:6px;align-items:flex-end}
.chat .bar.wa{position:relative;z-index:3}
.pillc{flex:1;min-width:0;display:flex;align-items:center;background:#202c33;border-radius:26px;min-height:50px;padding:0 4px}
.pillc input{flex:1;min-width:0;background:transparent!important;border:0;margin:0;padding:12px 4px;font-size:17px;color:var(--txt);border-radius:0}
.bar.wa .ic{width:42px;height:44px;display:flex;align-items:center;justify-content:center;color:#8696a0;padding:0;flex:none;border-radius:50%}.bar.wa .ic svg{width:24px;height:24px}.bar.wa .ic:active{background:#ffffff10}
.bar.wa .ic svg.clip{transform:rotate(-45deg)}#emojiBtn.on{color:var(--green)}
.bar.wa .round,.bar.rec.wa .round{width:50px;height:50px;border-radius:50%;background:var(--green);color:#0b141a;border:0;display:flex;align-items:center;justify-content:center;flex:none;padding:0;touch-action:none;user-select:none;-webkit-user-select:none}
.bar.wa .round svg{width:24px;height:24px}#mic:active,.rec.hold #recSend{transform:scale(1.08)}
.emojip{display:grid;grid-template-columns:repeat(8,1fr);gap:2px;background:#111b21;border-top:1px solid var(--line);max-height:230px;overflow-y:auto;padding:8px;position:relative;z-index:3}
.emojip button{background:none;border:0;font-size:26px;height:44px;border-radius:8px;cursor:pointer;padding:0}.emojip button:active{background:#ffffff14}
.attmenu{bottom:70px;left:12px}
.bar.rec.wa{align-items:center}.bar.rec.wa>.ic{color:#8696a0}
.bar.rec.wa{background:#0b141a}.rec #recTime{color:var(--txt);font-size:16px;min-width:42px}.rec .dot{flex:none}
.recwave{flex:1;min-width:0;height:30px;display:flex;align-items:center;justify-content:flex-end;gap:2px;overflow:hidden}.recwave i{width:3px;flex:none;background:#8696a0;border-radius:2px;min-height:3px}
.rechint{color:var(--sub);font-size:14px;white-space:nowrap}.rec.hold .recwave{display:none}.rec.hold .rechint{flex:1;text-align:center}
.uperr.ok{background:#103529;color:#e9edef}
/* --- messages vocaux --- */
.m.vmsg{padding:6px 8px 20px 6px}
.voice.wa{display:flex;align-items:center;gap:6px;min-width:min(258px,66vw)}
.voice.wa .pl{width:36px;height:36px;border:0;background:none;color:#aebac1;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;flex:none}.voice.wa .pl svg{width:30px;height:30px}
.voice.wa .wv{flex:1;position:relative;height:32px;cursor:pointer;min-width:0;margin:0 6px 0 2px}
.voice.wa .bars{position:absolute;inset:0;display:flex;align-items:center;gap:2px}.voice.wa .bars i{flex:1;max-width:4px;border-radius:2px;background:#ffffff4d;min-height:3px}.voice.wa .bars i.p{background:#e9edef}
.voice.wa .knob{position:absolute;left:0;top:50%;width:13px;height:13px;border-radius:50%;background:var(--green);transform:translate(-50%,-50%);box-shadow:0 0 0 2px #0002;transition:left .1s linear}
.voice.wa.played .knob{background:#53bdeb}.m.me .voice.wa .knob{background:#e9edef}
.voice.wa .vav{width:46px;height:46px;border-radius:50%;flex:none;position:relative;background:#6b7c85;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:18px}
.voice.wa .vav img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.voice.wa .micb{position:absolute;inset-inline-start:-5px;inset-inline-end:auto;bottom:-3px;width:18px;height:18px;display:flex;align-items:center;justify-content:center;color:#53bdeb;pointer-events:none}.voice.wa .micb svg{width:17px;height:17px;filter:drop-shadow(0 0 1px #0008)}
.voice.wa.played .micb{color:#8696a0}
.m.me .voice.wa .micb,.m.me .voice.wa.played .micb{inset-inline-start:auto;inset-inline-end:-5px;color:#8696a0}
.m.vmsg .vd{position:absolute;inset-inline-start:50px;bottom:4px;font-size:11.5px;color:#ffffff8c;unicode-bidi:isolate;direction:ltr}
.m.me.vmsg .vd{inset-inline-start:96px}
.m.vmsg .sender{margin-inline-start:4px}
/* --- onglet Appels --- */
.qacts{display:flex;justify-content:space-around;padding:6px 6px 10px}
.qacts button{background:none;border:0;color:var(--txt);display:flex;flex-direction:column;align-items:center;gap:9px;font-size:13.5px;cursor:pointer;min-width:0;flex:1}
.qacts span{width:62px;height:62px;border-radius:50%;background:#1f272a;display:flex;align-items:center;justify-content:center}.qacts span svg{width:25px;height:25px}.qacts button:active span{background:#2a3439}
#pane-calls .sec{font-size:18px;margin:12px 18px 6px}
.item.call .last.cl{display:flex;align-items:center;gap:5px}.item.call .arr{display:inline-flex}.item.call .arr svg{width:16px;height:16px}.arr svg{width:16px;height:16px}
.item.call .cb svg,.item.sched .cb svg{width:24px;height:24px}.item.sched .av svg{width:24px;height:24px;color:var(--green)}
.cirow{display:flex;align-items:center;gap:12px;padding:8px 2px;border-bottom:1px solid var(--line)}.cirow .arr{display:inline-flex}
.blk{display:block}.cb.favon{color:#f15c6d}
.msearch{padding:0 0 8px!important}.msearch input{margin:0}.cplist{max-height:50vh;overflow-y:auto}.pick.act{cursor:pointer;border:0;margin-top:6px}.pick[data-u]{cursor:pointer}
.av.acc svg{width:24px;height:24px;fill:currentColor}
.msel{width:100%;padding:12px;border-radius:8px;border:0;background:var(--panel2);color:var(--txt);font-size:15px;margin:6px 0}
.seg{display:flex;gap:16px;margin:10px 0 4px}.seg label{display:flex;align-items:center;gap:6px;color:var(--txt);font-size:15px;margin:0!important}.seg input{width:auto;margin:0;accent-color:var(--green)}
.box input[type=datetime-local]{color-scheme:dark}
.cinfo{text-align:center}.cinfo h2{font-weight:500;margin:12px 0 2px}.cinfo .shact button{background:none}.cinfo .shact svg{width:24px;height:24px}.cinfo .shact small{font-size:12.5px}
#favAdd{margin-top:14px}
/* --- clavier --- */
.dialpad{position:fixed;inset:0;z-index:35;background:var(--bg);display:flex;flex-direction:column}
@media(min-width:900px){.dialpad{right:auto;width:420px;border-right:1px solid var(--line)}}
.dialpad .apptop h2{font-size:20px;margin-left:6px}
.dpbody{flex:1;display:flex;flex-direction:column;padding:0 20px calc(18px + env(safe-area-inset-bottom));min-height:0;overflow-y:auto}
.dpcc select{width:100%;background:var(--panel2);color:var(--txt);border:0;border-radius:10px;padding:11px;font-size:15px}
.dpnum{display:flex;align-items:center;gap:4px;margin-top:14px}.dpnum input{flex:1;background:none!important;border:0;font-size:32px;text-align:center;letter-spacing:1px;padding:8px 0;margin:0;color:var(--txt)}
.dpres{min-height:58px;display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;font-size:14px;flex-wrap:wrap}.dpres .pick{width:100%;border:0;text-align:left}
.dpkeys{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 18px;margin:auto 0 0;padding:8px 6px}
.dpkeys button{background:none;border:0;color:var(--txt);height:64px;border-radius:32px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;user-select:none}
.dpkeys button:active{background:#ffffff14}.dpkeys b{font-size:28px;font-weight:400;line-height:1}.dpkeys small{font-size:10.5px;color:var(--sub);letter-spacing:1.5px;margin-top:2px}
.dpact{display:flex;align-items:center;justify-content:space-around;margin-top:14px}
.dpcall{width:68px;height:68px;border-radius:50%;border:0;background:var(--green);color:#0b141a;display:flex;align-items:center;justify-content:center;cursor:pointer}.dpcall svg{width:30px;height:30px}
.dpv{width:52px;height:52px;border-radius:50%;border:0;background:#1f272a;color:var(--txt);display:flex;align-items:center;justify-content:center;cursor:pointer}.dpv svg{width:24px;height:24px}.dpv.ghost{visibility:hidden}
/* --- barre du bas --- */
@media(max-width:380px){.bnav button{font-size:11.5px}.bnav .pi{width:50px}}
main{min-width:0}.chat{width:100%;min-width:0}.msgs{overflow-x:hidden}.hd.wa{min-width:0}
.tick{display:inline-flex;vertical-align:-1px}.tick svg{fill:currentColor}.m .tick{letter-spacing:0}.item .ricons .tick{color:var(--sub)}.item .ricons .tick.read{color:#53bdeb}
