:root{--font:"Plus Jakarta Sans",system-ui,sans-serif;--r:14px}
[data-theme=clair]{--bg:#f5f6fb;--surface:#fff;--text:#1b1d2a;--muted:#6a6f85;--line:#e3e5ef;--accent:#5b5bd6;--ink:#fff;--danger:#d93a4a}
[data-theme=sombre]{--bg:#0f1117;--surface:#181b25;--text:#eceef6;--muted:#9097ad;--line:#272b39;--accent:#8b8cf5;--ink:#0f1117;--danger:#ff6b78;color-scheme:dark}
[data-theme=ocean]{--bg:#eef6fb;--surface:#fff;--text:#0f2a3d;--muted:#58738a;--line:#d5e4ee;--accent:#0a7cc2;--ink:#fff;--danger:#d93a4a}
[data-theme=foret]{--bg:#f1f6f1;--surface:#fff;--text:#16281d;--muted:#5d7466;--line:#d9e6dc;--accent:#2f8f5b;--ink:#fff;--danger:#d93a4a}
[data-theme=rose]{--bg:#fdf3f6;--surface:#fff;--text:#2b1520;--muted:#86606f;--line:#f1dae2;--accent:#d6336c;--ink:#fff;--danger:#c92a2a}
*{box-sizing:border-box}
body{margin:0;min-height:100dvh;font:400 15px/1.5 var(--font);color:var(--text);
  background:radial-gradient(60rem 32rem at 8% -10%,color-mix(in oklab,var(--accent) 18%,transparent),transparent),var(--bg)}
[hidden]{display:none!important}
.bar{display:flex;align-items:center;gap:8px;padding:12px 24px;border-bottom:1px solid var(--line);background:color-mix(in oklab,var(--surface) 80%,transparent);backdrop-filter:blur(10px)}
.sp{flex:1}.logo{font-size:20px;font-weight:800;letter-spacing:-.02em;color:var(--accent)}
button,select,input{font:inherit;color:inherit}
button{padding:7px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);cursor:pointer;transition:transform .15s,background .15s}
button:hover:not(:disabled){background:color-mix(in oklab,var(--accent) 10%,var(--surface))}
button:active:not(:disabled){transform:scale(.97)}button:disabled{opacity:.45;cursor:not-allowed}
button.danger{color:var(--danger)}
select,input:not([type=radio]){width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.bar select{width:auto}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.hero{display:flex;flex-wrap:wrap;gap:48px;align-items:center;justify-content:center;max-width:980px;margin:0 auto;padding:64px 24px}
.intro{flex:1 1 320px;max-width:460px}
h1{font-size:clamp(32px,5vw,48px);line-height:1.1;letter-spacing:-.03em;font-weight:800;margin:0 0 16px}
.intro p{color:var(--muted);font-size:17px;margin:0}
.card{flex:0 1 360px;width:100%;display:flex;flex-direction:column;gap:14px;padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:0 20px 50px -25px color-mix(in oklab,var(--accent) 55%,transparent)}
.card h2{margin:0;font-size:20px}
label,legend{display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--muted);font-weight:500}
small{color:var(--muted);font-size:12px}.row{display:flex;gap:12px}.row>label{flex:1}
fieldset{display:flex;flex-direction:row;gap:8px;border:0;padding:0;margin:0;flex-wrap:wrap}fieldset legend{width:100%;margin-bottom:5px}
.seg{flex:1;position:relative}.seg input{position:absolute;opacity:0}
.seg span{display:block;text-align:center;padding:9px;border:1px solid var(--line);border-radius:10px;color:var(--text);cursor:pointer}
.seg input:checked+span{background:color-mix(in oklab,var(--accent) 14%,var(--surface));border-color:var(--accent);color:var(--accent);font-weight:700}
.seg input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.primary{background:var(--accent);color:var(--ink);border-color:transparent;font-weight:700;padding:11px}
.primary:hover:not(:disabled){background:color-mix(in oklab,var(--accent) 88%,black)}
.err{color:var(--danger);font-size:13px;margin:0;min-height:1em}
.layout{display:grid;grid-template-columns:300px 1fr;height:calc(100dvh - 58px)}
.side{display:flex;flex-direction:column;gap:10px;padding:14px;border-right:1px solid var(--line);background:var(--surface);min-height:0}
.side-head{display:flex;justify-content:space-between;align-items:center}
#filters{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
#users{list-style:none;margin:0;padding:0;overflow:auto;flex:1}
.user{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:12px;background:none;text-align:left}
.user.on{background:color-mix(in oklab,var(--accent) 14%,var(--surface))}
.av{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:color-mix(in oklab,var(--accent) 18%,var(--surface));color:var(--accent);font-weight:700;font-size:13px}
.who{display:flex;flex-direction:column;line-height:1.3}.who small{display:block}
.center{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;min-width:0}
.empty{color:var(--muted)}.profile{width:min(420px,100%);padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:20px}
.profile h2{margin:0 0 12px}.profile p{margin:6px 0;color:var(--muted)}.profile b{color:var(--text)}
@media(max-width:760px){.layout{grid-template-columns:1fr;grid-template-rows:auto 1fr;height:auto}.side{max-height:55dvh;border-right:0;border-bottom:1px solid var(--line)}.bar{flex-wrap:wrap;padding:10px 14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.flag{width:26px;height:18px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px var(--line);flex:none}
.who{flex:1;min-width:0}.who b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gi{display:inline-grid;place-items:center;flex:none}.gi svg{width:20px;height:20px}
.gi.f{color:#e0559c}.gi.m{color:#3b82f6}
.gi.big svg{width:96px;height:96px}.gi.big{margin-bottom:8px}
.profile{text-align:center}.profile label{align-items:center;margin-top:16px}.profile select{max-width:220px}

.badge{display:inline-block;min-width:18px;padding:0 6px;border-radius:999px;background:var(--danger);color:#fff;font-size:11px;font-weight:700;text-align:center;line-height:18px}
.center:has(.msgs){justify-content:stretch;align-items:stretch;padding:0}
.center:has(.panel){justify-content:flex-start;overflow:auto}
.chat-head{display:flex;align-items:center;gap:10px;padding:12px 18px;border-bottom:1px solid var(--line);background:var(--surface)}
.msgs{flex:1;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:8px;min-height:0}
.msg{align-self:flex-start;max-width:72%;display:flex;flex-direction:column;padding:8px 12px;border:1px solid var(--line);border-radius:16px 16px 16px 4px;background:var(--surface);overflow-wrap:anywhere}
.msg.me{align-self:flex-end;border-radius:16px 16px 4px 16px;background:var(--accent);color:var(--ink);border-color:transparent}
.msg small{align-self:flex-end;font-size:11px;opacity:.7;color:inherit}
.composer{display:flex;gap:8px;padding:12px 18px;border-top:1px solid var(--line);background:var(--surface)}
.composer input{flex:1}.composer .primary{padding:9px 18px}
.panel{width:min(520px,100%);display:flex;flex-direction:column;gap:6px}.panel h2{margin:0 0 8px}
.panel .user{border:1px solid var(--line);background:var(--surface)}

.dot{width:9px;height:9px;border-radius:50%;background:#2ecc71;flex:none}.dot.off{background:var(--muted)}
.user.off{opacity:.6}

.dot.on{background:#2ecc71}.dot.away{background:#e5484d}.dot.idle,.dot.off,.dot.gone{background:var(--muted)}
.chat-head .dot{margin-left:auto}.chat-head .status{color:var(--muted);font-size:13px}
.composer.off{opacity:.5;background:color-mix(in oklab,var(--muted) 12%,var(--surface))}
.composer input:disabled,.composer button:disabled{cursor:not-allowed}

#app{display:flex;flex-direction:column;height:100dvh}
.layout{flex:1;min-height:0;height:auto;grid-template-rows:minmax(0,1fr)}
.center{min-height:0}.center:has(.msgs){overflow:hidden}
@media(max-width:760px){.layout{grid-template-rows:auto minmax(0,1fr)}.side{max-height:38dvh}}
#toasts{position:fixed;top:70px;right:16px;z-index:50;display:flex;flex-direction:column;gap:8px;width:min(320px,calc(100vw - 32px))}
.toast{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:12px 14px;border-radius:14px;border-left:4px solid var(--accent);background:var(--surface);box-shadow:0 12px 30px -14px rgba(0,0,0,.45);animation:pop .2s ease-out}
.toast span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
@keyframes pop{from{transform:translateY(-8px);opacity:0}}
.profile .chk{flex-direction:row;align-items:center;justify-content:center;gap:8px;color:var(--text)}.profile .chk input{width:auto}
@media(prefers-reduced-motion:reduce){.toast{animation:none}}

body:has(#app:not([hidden])){overflow:hidden}
.msgs>:first-child{margin-top:auto}

.msg{position:relative}
.quote{display:flex;flex-direction:column;margin:0 0 6px;padding:4px 8px;border-left:3px solid currentColor;border-radius:6px;background:color-mix(in oklab,currentColor 10%,transparent);font-size:12px;cursor:pointer}
.quote span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.8}
.rx{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.chip{padding:1px 7px;border-radius:999px;background:color-mix(in oklab,currentColor 14%,transparent);font-size:12px}
.chip.mine{outline:1.5px solid currentColor}
.tools{position:absolute;top:-18px;z-index:2;display:none;gap:2px;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--surface);box-shadow:0 6px 18px -8px rgba(0,0,0,.4)}
.msg:not(.me) .tools{left:8px}.msg.me .tools{right:8px}
.msg:hover .tools,.msg.tools-on .tools{display:flex}
.tools button{padding:2px 7px;border:0;border-radius:999px;background:none;color:var(--text);font-size:15px;line-height:1.3}
.tools button.on{background:color-mix(in oklab,var(--accent) 22%,var(--surface))}
.replybar{display:flex;align-items:center;gap:8px;padding:8px 18px;border-top:1px solid var(--line);background:var(--surface);font-size:13px;color:var(--muted)}
.replybar span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.replybar button{padding:2px 8px}

.typing{display:flex;align-items:center;gap:8px;min-height:26px;padding:2px 18px;color:var(--muted);font-size:12px;visibility:hidden}
.typing.on{visibility:visible}
.dots{display:inline-flex;gap:3px}.dots b{width:5px;height:5px;border-radius:50%;background:var(--muted);animation:blink 1.2s infinite}
.dots b:nth-child(2){animation-delay:.2s}.dots b:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,60%,100%{opacity:.25}30%{opacity:1}}
@media(prefers-reduced-motion:reduce){.dots b{animation:none}}

.logo{display:inline-flex;align-items:center;gap:8px}.logo svg{width:30px;height:30px;flex:none}

.tbtn{padding:4px 10px;font-size:12px}.chat-head .status+.tbtn{margin-left:12px}
.dlg{width:min(380px,calc(100vw - 32px));padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text)}
.dlg::backdrop{background:rgba(0,0,0,.45)}.dlg h3{margin:0 0 12px}.dlg form{display:flex;flex-direction:column;gap:6px}
.opt{flex-direction:row;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;color:var(--text);font-size:14px;cursor:pointer}
.dlg-row{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}

small a{color:var(--accent)}.back{display:none;align-self:flex-start;padding:4px 10px;font-size:13px}
@media(max-width:760px){
  .layout{grid-template-rows:minmax(0,1fr)}.layout .side{max-height:none}
  .layout[data-pane=list] .center{display:none}.layout:not([data-pane=list]) .side{display:none}
  .back{display:inline-flex}.chat-head .back{margin-right:4px}
}

.chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:5px 14px;border-radius:999px;background:var(--surface)}
.chip b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip small{color:var(--muted);white-space:nowrap}
@media(max-width:760px){.chip small{display:none}}

.composer{position:relative}.emo{padding:4px 9px;font-size:18px;line-height:1;border-radius:10px}
.emo-pop{position:absolute;left:18px;bottom:calc(100% + 6px);z-index:5;display:grid;grid-template-columns:repeat(10,1fr);gap:2px;width:min(380px,calc(100vw - 36px));padding:8px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 12px 30px -12px rgba(0,0,0,.4)}
.emo-pop button{padding:4px 0;border:0;background:none;font-size:20px;line-height:1.3}
.seen{padding:0 18px 4px;font-size:12px;color:var(--muted);text-align:right}

.ver{text-align:center;opacity:.55;font-size:11px}.bar .ver{margin-left:8px}

.pic{position:relative;display:block;width:min(260px,70vw);min-height:72px;border-radius:12px;overflow:hidden;background:color-mix(in oklab,currentColor 8%,transparent)}
.pic img{display:block;width:100%;height:auto}.pic img:not([src]){display:none}
.pic img.blur{filter:blur(28px);transform:scale(1.15)}
.pic-note{position:absolute;left:0;right:0;bottom:8px;text-align:center;font-size:12px;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.7)}
.pic img:not([src])~.pic-note{position:static;padding:26px 8px;color:inherit;text-shadow:none;opacity:.8}
.pic-eye{position:absolute;inset:0;margin:auto;width:54px;height:54px;padding:0;border:0;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:26px;line-height:1}

:root{--boy:#2563eb;--girl:#db2777}
[data-theme=sombre]{--boy:#7aa7ff;--girl:#ff7eb6}
.user.gm .who b,.user.gm .who small{color:var(--boy)}
.user.gf .who b,.user.gf .who small{color:var(--girl)}

.recbar{display:flex;align-items:center;gap:10px;padding:8px 18px;border-top:1px solid var(--line);background:var(--surface)}
.recbar audio{flex:1;min-width:0;height:34px}.recbar b{flex:1;color:var(--danger)}
.emo.on{border-color:var(--danger);background:color-mix(in oklab,var(--danger) 20%,var(--surface))}
.vox{display:flex;align-items:center;gap:10px;min-width:210px}.vox button{padding:4px 11px;border-radius:999px}
.vox-bar{flex:1;height:5px;border-radius:3px;overflow:hidden;background:color-mix(in oklab,currentColor 22%,transparent)}
.vox-bar i{display:block;width:0;height:100%;background:currentColor}

.vox button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;padding:0;border-radius:50%;background:var(--surface);color:var(--accent);border:1px solid var(--line)}
.vox button svg{display:block}

.peer{display:inline-flex;align-items:center;gap:10px;min-width:0;padding:3px 8px;margin:-3px -8px;border:0;border-radius:10px;background:none;color:inherit;font:inherit;cursor:pointer}
.peer b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prof{text-align:center}.prof h2{margin:0 0 10px}.prof p{margin:6px 0;color:var(--muted)}.prof p b{color:var(--text)}
.prof .inl{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}.prof .primary{width:100%;margin-top:16px}

#toasts{top:var(--bar-h,62px);left:var(--side-w,300px);right:0;width:auto;gap:2px}
.toast{flex-direction:row;align-items:center;gap:10px;width:100%;padding:13px 18px;border:0;border-radius:0;background:var(--accent);color:var(--ink);box-shadow:0 10px 24px -12px rgba(0,0,0,.55);animation:slide .25s ease-out}
.toast b{white-space:nowrap}.toast span{flex:1;color:inherit;opacity:.92}
#toasts .toast:hover{background:color-mix(in oklab,var(--accent) 86%,black)}
@keyframes slide{from{transform:translateY(-100%);opacity:0}}
@media(max-width:760px){#toasts{left:0}}
@media(prefers-reduced-motion:reduce){.toast{animation:none}}

.center{position:relative}
.esolo{display:inline-block}.esolo.wait{visibility:hidden}
.bigemo{position:absolute;inset:0;z-index:30;display:grid;place-items:center;pointer-events:none;overflow:hidden}
.bigemo .bigrow{display:flex;align-items:center;justify-content:center;gap:.06em;line-height:1.15;filter:drop-shadow(0 14px 18px rgba(0,0,0,.28));will-change:transform,opacity}
.bigemo img{display:block}

#toasts .toast.warn,#toasts .toast.warn:hover{background:#c2410c;color:#fff}

.emo-tip{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:34px;margin-top:4px;padding:6px 4px 0;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.emo-tip b{font-size:22px;line-height:1;font-weight:400}
.emo-tip code{padding:1px 7px;border-radius:6px;background:color-mix(in oklab,var(--accent) 12%,var(--surface));color:var(--text);font:600 13px ui-monospace,Consolas,monospace}

/* ===== Téléphone : en-tête compact, zone d'écriture confortable ===== */
.ic{display:none;width:20px;height:20px;flex:none}.cacts{display:contents}.logo-t{display:inline}
@media(max-width:760px){
  input,select,textarea{font-size:16px}                       /* évite le zoom automatique d'iOS */
  .bar{flex-wrap:nowrap;gap:6px;padding:8px 10px;padding-top:max(8px,env(safe-area-inset-top))}
  .bar .ver{display:none}
  #app .logo-t{display:none}.logo svg{width:28px;height:28px}
  #app .bar button:not(.chip){display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:42px;min-height:42px;padding:6px 10px}
  #app .bar .ic{display:block}#app .bar .tx{display:none}
  #app .bar .chip{flex:1 1 auto;min-width:0;justify-content:center;padding:6px 10px}
  #app .bar .sp{display:none}
  .badge{margin-left:0}
  /* conversation */
  .chat-head{gap:6px;padding:8px 10px}.chat-head .status{display:none}.chat-head .dot{margin-left:auto}
  .chat-head .tbtn{font-size:0;line-height:1;min-width:40px;min-height:40px;padding:0}.chat-head .tbtn::before{font-size:18px;content:"\1F6A9"}
  .chat-head .blk::before{content:"\1F6AB"}.chat-head .blk[data-on]::before{content:"\2705"}
  .chat-head .status+.tbtn{margin-left:0}
  .msgs{padding:12px 10px}.msg{max-width:86%}
  /* zone d'écriture : champ pleine largeur, boutons en dessous */
  .composer{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"inp send" "acts acts";gap:8px;padding:8px 10px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .composer input{grid-area:inp;min-height:46px;padding:10px 14px;border-radius:14px}
  .composer>.primary{grid-area:send;min-height:46px;padding:0 18px;border-radius:14px}
  .cacts{grid-area:acts;display:flex;gap:8px}
  .cacts>button{flex:1 1 0;min-height:42px;padding:6px;border-radius:12px;font-size:20px}
  .emo-pop{left:8px;right:8px;width:auto;grid-template-columns:repeat(8,1fr);max-height:46dvh;overflow:auto}
  .emo-pop button{min-height:38px}
  .recbar,.replybar{padding:8px 10px}
  .user{padding:10px}
  .dlg{width:calc(100vw - 24px)}
}

@media(hover:none){.emo-tip{display:none}}

/* ===== Wizz ===== */
.wz-tray{display:flex;align-items:center;gap:6px;min-width:0}.chat-head .wz-tray{margin:0 8px}
#wizz-bar{padding:6px 14px;border-bottom:1px solid var(--line);background:var(--surface)}
.wz-chip{display:inline-flex;align-items:stretch;flex:none;border:1px solid #f59e0b;border-radius:999px;background:color-mix(in oklab,#f59e0b 16%,var(--surface));overflow:hidden}
.wz-chip.wait{visibility:hidden}
.wz-go{display:inline-flex;align-items:center;gap:5px;max-width:150px;padding:3px 6px 3px 9px;border:0;border-radius:0;background:none;font-size:13px;font-weight:700}
.wz-nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:10ch}.wz-in{display:none}
.wz-ic{display:inline-block;animation:wz-wiggle 1.8s ease-in-out infinite}
.wz-x{padding:0 9px 0 3px;border:0;border-radius:0;background:none;color:var(--muted);font-size:16px;line-height:1}
.wz-more{padding:3px 11px;border:1px solid #f59e0b;font-weight:700;font-size:13px;border-radius:999px}
.wz-more-wrap{position:relative;flex:none}
.wz-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:40;display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 12px 30px -12px rgba(0,0,0,.4)}
@keyframes wz-wiggle{0%,100%{transform:rotate(0)}12%{transform:rotate(-14deg)}26%{transform:rotate(12deg)}40%{transform:rotate(-8deg)}54%{transform:rotate(5deg)}68%{transform:rotate(0)}}
@media(prefers-reduced-motion:reduce){.wz-ic{animation:none}}
.bigemo.fx-fixed{position:fixed;z-index:70}
.fx-pop{display:flex;flex-direction:column;gap:4px;width:min(300px,calc(100vw - 36px))}
.fx-item{display:grid;grid-template-columns:auto 1fr;gap:0 12px;align-items:center;width:100%;padding:8px 10px;border:0;border-radius:10px;background:none;text-align:left}
.fx-item b{grid-row:span 2;font-size:28px;font-weight:400;line-height:1}.fx-item small{color:var(--muted)}
.msg.sys{align-self:center;flex-direction:row;align-items:center;gap:8px;max-width:92%;padding:4px 14px;border:1px dashed var(--line);border-radius:999px;background:transparent;color:var(--muted);font-size:13px}
.msg.sys small{align-self:center}
@media(max-width:760px){.wz-nm{display:none}.wz-in{display:inline}.wz-go{padding:3px 4px 3px 9px}.chat-head .wz-tray{margin:0 4px}#wizz-bar{padding:6px 10px}}

.chat-head .wz-tray{flex:0 1 auto;min-width:0}

/* ===== Sélecteur d'emojis complet ===== */
.emo-pop.emo-full{display:flex;flex-direction:column;gap:0;width:min(400px,calc(100vw - 36px));padding:8px}
.emo-tabs{display:flex;gap:2px;overflow-x:auto;padding-bottom:6px;border-bottom:1px solid var(--line);scrollbar-width:thin}
.emo-pop .emo-tab{flex:none;padding:5px 9px;border:0;border-radius:10px;background:none;font-size:20px;line-height:1.3}
.emo-pop .emo-tab.on{background:color-mix(in oklab,var(--accent) 20%,var(--surface))}
.emo-grid{display:grid;grid-template-columns:repeat(9,1fr);gap:2px;max-height:250px;min-height:120px;overflow-y:auto;padding-top:6px;align-content:start}
.emo-empty{grid-column:1/-1;margin:20px 8px;color:var(--muted);text-align:center;font-size:13px}
.emo-full .emo-tip{margin-top:6px}
@media(max-width:760px){.emo-pop.emo-full{left:8px;right:8px;width:auto;max-height:none;overflow:visible;grid-template-columns:none}.emo-grid{grid-template-columns:repeat(8,1fr);max-height:36dvh}}
/* ===== Vocal : envoyer / supprimer ===== */
.recbar .ibtn{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border-radius:50%}
.recbar .ibtn.danger{color:var(--danger)}

/* ===== Photo agrandie ===== */
.pic img[src]:not(.blur){cursor:zoom-in}
.lightbox{position:fixed;inset:0;z-index:90;display:grid;place-items:center;background:rgba(0,0,0,.9);color:#fff}
.lightbox img{max-width:96vw;max-height:92dvh;object-fit:contain;border-radius:8px;cursor:zoom-out}
.lb-x{position:fixed;top:max(12px,env(safe-area-inset-top));right:14px;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:28px;line-height:1}

/* ===== Pages d'information (à propos, confidentialité, contact) ===== */
.site-foot{padding:22px 16px calc(22px + env(safe-area-inset-bottom));text-align:center;font-size:13px;color:var(--muted)}
.site-foot a{color:var(--muted)}
a.logo{text-decoration:none}.doc-cta{padding:7px 14px;border-radius:10px;background:var(--accent);color:var(--ink);font-weight:700;text-decoration:none}
.doc{max-width:720px;margin:0 auto;padding:32px 20px 24px}
.doc h1{margin:0 0 12px;font-size:clamp(28px,5vw,38px);letter-spacing:-.02em}
.doc h2{margin:28px 0 8px;font-size:20px}
.doc p,.doc li{color:var(--text);line-height:1.65}.doc li{margin:6px 0}.doc .muted{color:var(--muted);margin:0 0 14px}
.doc a{color:var(--accent)}.doc mark{padding:1px 6px;border-radius:6px;background:#fde68a;color:#1b1d2a}
/* ---- Effet marteau ---- */
.hm-stage{position:fixed;inset:0;z-index:80;pointer-events:none;overflow:hidden}
.hm-obj{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.05);opacity:0;will-change:transform,opacity;filter:drop-shadow(0 34px 38px rgba(0,0,0,.5))}
.hm-obj svg{display:block;width:100%;height:100%;overflow:visible}
.hm-flash{position:absolute;inset:0;background:#fff;opacity:0}
.crack{position:fixed;inset:0;z-index:90;pointer-events:none;transition:opacity .5s}
.crack svg{display:block;width:100%;height:100%}
.ci path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.ci .sh{stroke:rgba(0,0,0,.4);stroke-width:3}.ci .hi{stroke:rgba(255,255,255,.93);stroke-width:1.7}
.ci .rg.sh{stroke-width:2}.ci .rg.hi{stroke-width:1}
.ci .fc{fill:rgba(255,255,255,.07);stroke:none}
.ci .st{fill:rgba(255,255,255,.55);stroke:rgba(0,0,0,.32);stroke-width:1.2}
.ci.new path{stroke-dasharray:1;stroke-dashoffset:1;animation:crack-grow .42s ease-out forwards}
.ci.new .rg{animation-delay:.2s}.ci.new .fc,.ci.new .st{stroke-dasharray:none;stroke-dashoffset:0;animation:none}
@keyframes crack-grow{to{stroke-dashoffset:0}}
.doc a.doc-cta{display:inline-block;color:#fff;text-decoration:none;margin:4px 0}
