/* MeLa Voice OS R10F — interface d'appel Web inspiree iOS. */
:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;color:#101f40;background:#dce9ff;font-synthesis:none}*{box-sizing:border-box}html,body{min-width:320px;min-height:100%;margin:0}body{background:radial-gradient(ellipse at 9% 5%,#f0f7ff 0,transparent 48%),linear-gradient(126deg,#cbdffd,#e8f0ff 54%,#c5dcfc);-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.38;cursor:not-allowed}[hidden]{display:none!important}svg{width:22px;height:22px;flex-shrink:0}.wv-shell{max-width:1440px;min-height:100svh;margin:auto;padding:24px 30px 10px;display:flex;flex-direction:column}.wv-topline{background:#f9fbffed;border:1px solid #edf2fe;box-shadow:0 5px 40px #6786b018;border-radius:26px 26px 0 0;min-height:73px;padding:12px 25px;display:flex;justify-content:space-between;align-items:center;gap:12px}.wv-brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:clamp(15px,1.7vw,22px);letter-spacing:-.7px;white-space:nowrap}.wv-brand svg{color:#2768ef;width:31px;height:31px;stroke-width:2.2}.wv-header-right{display:flex;gap:15px;align-items:center}.wv-https{display:flex;align-items:center;gap:6px;color:#577098;font-size:12px}.wv-https svg{width:17px;height:17px}.wv-tenant-pill{display:flex;align-items:center;gap:7px;background:#fff;padding:9px 14px;border-radius:22px;font-size:12px;font-weight:750;box-shadow:0 2px 13px #5c84bd11}.wv-tenant-pill svg{width:17px;height:17px;color:#2f69e9}.wv-workspace{background:linear-gradient(100deg,#eaf2ff 0%,#fff 40%,#fbfdff 100%);border-left:1px solid #edf2fe;border-right:1px solid #edf2fe;border-bottom:1px solid #edf2fe;border-radius:0 0 28px 28px;display:grid;grid-template-columns:134px minmax(0,1fr);flex:1;min-height:680px;box-shadow:0 22px 70px #476d9f1a;overflow:hidden}.wv-nav{padding:22px 12px;border-right:1px solid #e3ecfb;display:flex;flex-direction:column;gap:8px}.wv-nav-item{border:0;background:transparent;border-radius:15px;color:#476184;min-height:76px;width:100%;display:flex;flex-direction:column;gap:7px;justify-content:center;align-items:center;font-size:12px;font-weight:500}.wv-nav-item svg{width:25px;height:25px}.wv-nav-item.active{background:#e2edff;color:#1f60e3;box-shadow:inset 3px 0 #2d70ed}.wv-nav-item:hover{background:#e7effd}.wv-call-view{background:linear-gradient(#fffefeff,#fbfcfffe);margin:18px 18px 18px 16px;border:1px solid #edf2f9;border-radius:29px;min-width:0;min-height:635px;display:flex;flex-direction:column;align-items:stretch;padding:16px clamp(18px,3.5vw,45px) 20px;position:relative}.wv-call-top{display:flex;align-items:center;justify-content:space-between;gap:9px;color:#7285a9;font-size:11px;min-height:34px}.wv-call-type{display:flex;align-items:center;gap:5px}.wv-call-type svg{width:15px;height:15px}.wv-call-status{display:flex;gap:6px;align-items:center;background:#eef4ff;padding:8px 12px;border-radius:30px;color:#29446e;font-weight:650;font-variant-numeric:tabular-nums}.wv-call-status i{width:8px;height:8px;border-radius:50%;background:#20bb70;box-shadow:0 0 0 3px #30bf7030}.wv-identity-stage{display:flex;align-items:center;flex-direction:column;padding:4px 0 5px}.wv-portrait-frame{position:relative;display:flex;align-items:center;justify-content:center;width:176px;height:176px}.wv-portrait{width:150px;height:150px;aspect-ratio:1;border-radius:100%;object-fit:cover;border:7px solid #f6faff;box-shadow:0 0 0 8px #e9f2ff,0 0 44px #5489ef56;display:grid;place-items:center}.wv-portrait-fallback{background:linear-gradient(130deg,#3f6fea,#9379ec);color:#fff;font-size:65px;font-weight:800}.wv-waves-left,.wv-waves-right{position:absolute;width:65px;height:55px;top:65px;background:repeating-linear-gradient(90deg,#79aeff 0 4px,transparent 4px 11px);-webkit-mask:linear-gradient(to bottom,transparent 0,#000 40%,#000 60%,transparent 100%);mask:linear-gradient(to bottom,transparent 0,#000 40%,#000 60%,transparent 100%);opacity:.75}.wv-waves-left{right:100%;margin-right:13px}.wv-waves-right{left:100%;margin-left:13px}.wv-identity-stage h1{font-size:clamp(28px,2.7vw,38px);letter-spacing:-1.4px;line-height:1;margin:18px 0 7px}.wv-identity-stage p{margin:0;color:#6a7f9e;font-size:14px}.wv-chat{flex:1;min-height:98px;max-width:610px;width:100%;align-self:center;display:flex;flex-direction:column;gap:10px;overflow-y:auto;overscroll-behavior:contain;padding:19px 6px 6px;scrollbar-color:#a7c3eb transparent;scrollbar-width:thin}.wv-intro{text-align:center;max-width:460px;margin:auto}.wv-intro h2{margin:0 0 9px;font-size:23px;letter-spacing:-.7px}.wv-intro p{margin:0 auto 8px;font-size:15px;line-height:1.65;color:#3b557b}.wv-intro small{font-size:11px;color:#778ba9}.wv-message{max-width:min(87%,480px);width:fit-content;padding:15px 19px;border-radius:22px;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #e4ecfa;background:#edf3ff;color:#152b53}.wv-message small{display:block;opacity:.65;font-size:10px;font-weight:750;letter-spacing:.4px;text-transform:uppercase;margin-bottom:5px}.wv-message.bot{align-self:flex-start;border-bottom-left-radius:6px}.wv-message.user{align-self:flex-end;background:#2d64da;color:#fff;border-color:#2d64da;border-bottom-right-radius:6px}.wv-wave-wrap{height:45px;display:flex;justify-content:center;align-items:center;margin-top:2px}.wv-waveform{display:flex;align-items:center;justify-content:center;gap:4px;height:39px}.wv-waveform i{width:3px;height:12px;border-radius:8px;background:#8ab5fa;opacity:.7;animation:wv-wave 1.5s ease-in-out infinite;animation-play-state:paused}.wv-waveform i:nth-child(3n){height:26px}.wv-waveform i:nth-child(4n){height:33px}.wv-waveform i:nth-child(5n){height:17px}.wv-waveform i:nth-child(3n+1){animation-delay:-.4s}.wv-waveform i:nth-child(3n+2){animation-delay:-.9s}@keyframes wv-wave{0%,100%{transform:scaleY(.55);opacity:.42}50%{transform:scaleY(1.25);opacity:1}}#webvoice[data-voice-state="listening"] .wv-waveform i,#webvoice[data-voice-state="hearing"] .wv-waveform i,#webvoice[data-voice-state="speaking"] .wv-waveform i{animation-play-state:running}#webvoice[data-voice-state="hearing"] .wv-waveform i{background:#396cea}#webvoice[data-voice-state="ringing"] .wv-portrait{animation:wv-breathe .65s ease-in-out infinite} @keyframes wv-breathe{50%{box-shadow:0 0 0 10px #d5e6ff,0 0 58px #568aff90}}.wv-voice-mode{max-width:560px;width:100%;align-self:center;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 5px 6px}.wv-voice-left{display:flex;align-items:center;gap:9px;min-width:0}.wv-voice-left strong{display:block;font-size:12px}.wv-voice-left small{display:block;margin-top:3px;color:#7385a5;font-size:11px;max-width:400px}.wv-live-orb{height:9px;width:9px;border-radius:99px;background:#31c284;box-shadow:0 0 0 4px #b9f3dc75;flex-shrink:0}.wv-voice-switch{display:flex;align-items:center;gap:7px;font-size:11px;color:#577198;white-space:nowrap}.wv-voice-switch input{accent-color:#376df0}.wv-start{margin-top:auto;max-width:550px;width:100%;align-self:center;border:1px solid #e7effc;background:#fff;border-radius:18px;padding:14px 18px 14px;box-shadow:0 10px 35px #5c84b411}.wv-consent{display:flex;align-items:flex-start;gap:12px;color:#516584;font-size:11px;line-height:1.5;cursor:pointer}.wv-consent input{width:19px;height:19px;flex:0 0 19px;accent-color:#2d67e8;margin-top:1px}.wv-primary{display:flex;justify-content:center;align-items:center;gap:12px;width:100%;border:0;border-radius:15px;background:#2f62d6;color:#fff;padding:15px 14px;font-weight:750;font-size:14px;margin-top:13px;box-shadow:0 10px 25px #285dd52c}.wv-primary:hover{background:#2753b9}.wv-primary svg{width:20px;height:20px}.wv-start>small{display:block;text-align:center;color:#8190a5;font-size:10px;line-height:1.45;margin:11px 0 0}.wv-controls{width:100%;max-width:690px;align-self:center;margin-top:auto;padding:7px 0 0}.wv-buttons{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.wv-control{display:flex;align-items:center;flex-direction:column;gap:8px;border:0;background:transparent;color:#25426d;min-width:72px;max-width:112px;flex:1;padding:2px 0;font-size:12px}.wv-control-circle{width:69px;height:69px;border-radius:50%;display:grid;place-items:center;background:#eaf2ff;color:#2c64db;border:1px solid #fff;box-shadow:0 8px 20px #679bdf25;transition:transform .15s,background .15s}.wv-control-circle svg{width:28px;height:28px}.wv-control:hover .wv-control-circle{transform:translateY(-2px)}.wv-control-name{display:block;text-align:center;line-height:1.2;font-size:12px;font-weight:600}.wv-control-end .wv-control-circle{width:88px;height:88px;background:#ff393f;color:#fff;box-shadow:0 10px 35px #ff393f35}.wv-control-end .wv-control-circle svg{width:43px;height:43px;stroke-width:2.6}.wv-control-end{margin-top:-9px}.wv-control-end .wv-control-name{color:#142548}.wv-control-mic[aria-pressed="true"] .wv-control-circle,.wv-control-speaker[aria-pressed="false"] .wv-control-circle{background:#eaecf2;color:#7a8495}.wv-control-mic[aria-pressed="true"] .wv-control-circle::after{content:"";position:absolute;width:52px;height:2px;background:#c7354d;transform:rotate(-45deg);border-radius:5px}.wv-control-mic .wv-control-circle{position:relative}.wv-mobile-actions{display:none}.wv-legacy{display:flex;justify-content:center;gap:10px;align-items:center;margin-top:14px}.wv-legacy button{background:#fff;border:1px solid #dce7fa;border-radius:10px;padding:6px 12px;color:#516f9e;font-size:11px}.wv-voice-pref{background:#f5f9ff;border:1px solid #e4edfd;border-radius:13px;padding:11px;margin:10px auto 0;max-width:475px;display:flex;align-items:center;justify-content:space-between;gap:10px}.wv-voice-pref label{font-size:12px}.wv-voice-pref select{padding:6px 8px;border-radius:9px;border:1px solid #d7e3f4;max-width:65%;background:#fff}.wv-text-form{display:flex;gap:8px;margin:12px auto 0;max-width:550px}.wv-text-form input{min-width:0;flex:1;border:1px solid #dce7f6;background:#fff;border-radius:12px;padding:12px;font-size:13px}.wv-text-form button{border:0;background:#315fcb;border-radius:12px;padding:0 15px;color:#fff}.wv-hint{text-align:center;color:#7186aa;font-size:11px;line-height:1.35;margin:12px 3px 0}.wv-error{background:#fff0f1;border:1px solid #ffd7de;border-radius:11px;color:#a22742;padding:10px 13px;margin:10px auto 0;width:100%;max-width:670px;font-size:12px}.wv-footer{display:flex;justify-content:space-between;gap:8px;color:#647ba0;font-size:10px;padding:12px 8px 4px}.wv-modal-overlay{position:fixed;inset:0;background:#122349aa;backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:30;padding:20px}.wv-modal{position:relative;background:#fff;border-radius:25px;padding:26px;width:min(480px,100%);box-shadow:0 25px 80px #0a1b4290}.wv-modal-x{position:absolute;right:18px;top:16px;background:#f2f6fe;border:0;border-radius:50%;width:35px;height:35px;display:grid;place-items:center}.wv-modal-x svg{width:18px;height:18px}.wv-modal-bubble{width:50px;height:50px;border-radius:16px;background:#e7f0ff;color:#2869e9;display:grid;place-items:center}.wv-modal-bubble svg{width:26px;height:26px}.wv-modal h2{font-size:23px;letter-spacing:-.6px;margin:15px 0 9px}.wv-modal p{font-size:13px;line-height:1.5;color:#607595;margin:0 0 18px}.wv-modal label{display:block;font-size:13px;font-weight:650;margin-bottom:7px}.wv-modal textarea{resize:vertical;min-height:124px;width:100%;max-height:260px;padding:13px;border-radius:13px;border:1px solid #cfdef5;outline:none;color:#172747}.wv-modal textarea:focus{border-color:#366de6;box-shadow:0 0 0 3px #366de61c}.wv-modal form small{display:block;font-size:11px;color:#7c8ca5;margin-top:6px}.wv-modal form .wv-primary{margin-top:15px}@media(max-width:900px){.wv-shell{padding:12px}.wv-workspace{grid-template-columns:86px minmax(0,1fr)}.wv-nav-item{min-height:72px}.wv-call-view{margin:12px;padding:12px 24px 20px}.wv-waves-left,.wv-waves-right{width:50px}.wv-call-top{font-size:10px}}
@media(max-width:580px){:root{background:#dceaff}body{background:linear-gradient(148deg,#cfe2ff 0%,#eef5ff 64%,#d6e6ff 100%)}.wv-shell{padding:0;min-height:100svh}.wv-topline{border-radius:0;box-shadow:none;background:transparent;border:0;min-height:62px;padding:12px 17px 2px;justify-content:center}.wv-brand{font-size:19px}.wv-brand svg{width:28px;height:28px}.wv-header-right,.wv-nav{display:none}.wv-workspace{display:block;border:0;border-radius:0;background:transparent;box-shadow:none;min-height:0;flex:1}.wv-call-view{background:transparent;border:0;border-radius:0;margin:0;padding:0 17px max(10px,env(safe-area-inset-bottom));height:calc(100svh - 83px);min-height:520px}.wv-call-top{padding-top:1px;min-height:38px}.wv-call-type{font-size:10px}.wv-call-status{font-size:11px;padding:8px 10px}.wv-identity-stage{padding:8px 0 0}.wv-portrait-frame{width:142px;height:142px}.wv-portrait{width:129px;height:129px;box-shadow:0 0 0 5px #e9f2ff,0 0 34px #5489ef56;border-width:5px}.wv-waves-left,.wv-waves-right{width:38px;height:46px;top:50px}.wv-waves-left{margin-right:6px}.wv-waves-right{margin-left:6px}.wv-identity-stage h1{font-size:30px;margin:12px 0 6px}.wv-identity-stage p{font-size:13px}.wv-chat{padding:12px 0 6px;min-height:70px;max-height:none;flex:1}.wv-intro h2{font-size:19px}.wv-intro p{font-size:13px}.wv-message{font-size:13px;padding:13px 14px;max-width:94%}.wv-wave-wrap{height:35px}.wv-waveform{transform:scale(.8)}.wv-voice-mode{padding:2px 0 6px}.wv-voice-left small{font-size:10px}.wv-voice-left strong{font-size:11px}.wv-voice-switch{font-size:10px}.wv-start{padding:12px 13px;border-radius:17px}.wv-consent{font-size:11px}.wv-primary{font-size:13px;padding:14px}.wv-controls{padding-top:4px}.wv-buttons{gap:9px;justify-content:space-around}.wv-control{flex:0 1 100px;min-width:67px}.wv-control-circle{width:71px;height:71px}.wv-control-circle svg{width:29px;height:29px}.wv-control-end .wv-control-circle{width:83px;height:83px}.wv-control-end{margin-top:-7px}.wv-control-name{font-size:12px}.wv-control-keypad,.wv-control-speaker{display:none}.wv-mobile-actions{display:flex;justify-content:center;gap:20px;margin:12px 0 0}.wv-mobile-actions button{font-size:11px;color:#43649a;background:transparent;border:0;text-decoration:underline;text-underline-offset:3px;padding:7px}.wv-legacy{margin-top:5px}.wv-legacy button{font-size:10px;padding:6px 8px}.wv-hint{font-size:10px;margin:8px 0 0}.wv-footer{justify-content:center;min-height:20px;font-size:9px;padding:0 5px 4px}.wv-footer span:last-child{display:none}.wv-text-form{margin-top:5px}.wv-text-form input{padding:10px}.wv-modal-overlay{padding:15px}.wv-modal{padding:20px}.wv-modal h2{font-size:21px}}
@media(max-width:375px){.wv-call-view{padding-inline:10px}.wv-identity-stage{padding-top:0}.wv-portrait-frame{width:124px;height:124px}.wv-portrait{width:114px;height:114px}.wv-waves-left,.wv-waves-right{top:42px}.wv-identity-stage h1{margin:9px 0 4px}.wv-control-circle{width:64px;height:64px}.wv-control-end .wv-control-circle{width:76px;height:76px}.wv-control-name{font-size:11px}.wv-consent{font-size:10px}}
@media(prefers-reduced-motion:reduce){.wv-waveform i,.wv-portrait{animation:none!important}button{transition:none!important}}

/* MELA_R10J1_CHAT_VIEW : conserver les commandes visibles quand la conversation est longue. */
#webvoice[data-call-active="yes"] .wv-chat{max-height:clamp(180px,36vh,390px);overflow-y:auto;min-height:140px}
#webvoice[data-voice-state="off"] .wv-live-orb{background:#abb9ce;box-shadow:0 0 0 4px #dce3ee88}
#webvoice[data-voice-state="speaking"] .wv-live-orb{background:#5584ef;box-shadow:0 0 0 4px #d5e1fc}
