@font-face { font-family: "DB Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DB Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DB Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DB Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DB Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/lora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DB Lora"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/lora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DB Comfortaa"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/comfortaa-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DB Comfortaa"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/comfortaa-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DB Dancing"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/dancing-script-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DB Dancing"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/dancing-script-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg: #0e1116; --panel: #161b22; --panel2: #1d242e; --line: #2a323d;
  --text: #e8ecf1; --muted: #9aa5b1; --accent: #f5a524; --accent-ink: #1a1203;
  --out: #1f5f53; --in: #222a35; --ok: #3ccf91; --danger: #ef5b5b; --read: #6cc4ff;
  --r: 16px; --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f4f1ea; --panel: #ffffff; --panel2: #f0ece3; --line: #e2ddd2; --text: #1b1f24; --muted: #66707b;
    --out: #d9f3e6; --in: #ffffff; --accent-ink: #1a1203; --read: #1f8fe0; color-scheme: light; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 15px; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 1rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-family: var(--font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif); overscroll-behavior: none; }
#app { height: 100dvh; max-width: 760px; margin: 0 auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2 { margin: 0; }
h2 { font-size: 1rem; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.muted { color: var(--muted); font-size: .92rem; margin: 4px 0 12px; }
.fine { color: var(--muted); font-size: .8rem; }
.mono { font-family: ui-monospace, monospace; }
.center { text-align: center; }

.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.tiny { width: 14px; height: 14px; vertical-align: -2px; }
.ic.ok { color: var(--ok); margin-left: 4px; }

.screen { height: 100%; display: flex; flex-direction: column; position: relative; }
.topbar { display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 14px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--panel); border-bottom: 1px solid var(--line); min-height: 60px; }
.topbar h1 { font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-title { flex: 1; min-width: 0; }
.tb-sub { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.iconbtn:active { background: var(--panel2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }

.btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 13px 16px; margin-top: 10px;
  border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); font-weight: 600; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.small { width: auto; padding: 7px 12px; margin: 0 0 0 6px; font-size: .85rem; }
.btn:active { transform: scale(.98); }
.btnrow { display: flex; gap: 8px; }
.field { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  font: inherit; margin-top: 10px; resize: none; }
.field:focus, .composer-input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.onboard { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 28px; gap: 2px; text-align: center; }
.onboard h1 { font-size: 1.8rem; margin-top: 8px; }
.logo { width: 84px; height: 84px; border-radius: 26px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto; }
.logo-ic { width: 44px; height: 44px; stroke-width: 2.2; }

.list { flex: 1; overflow-y: auto; padding-bottom: 90px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.row:active { background: var(--panel2); }
.row.request { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.row-main { flex: 1; min-width: 0; }
.row-name { font-weight: 600; display: flex; align-items: center; }
.row-last { color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row-time { color: var(--muted); font-size: .75rem; }
.badge { background: var(--accent); color: var(--accent-ink); border-radius: 999px; min-width: 22px; padding: 1px 7px; font-size: .75rem; font-weight: 700; text-align: center; }
.avatar { --h: 30; width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700;
  background: hsl(var(--h) 55% 38%); color: #fff; }
.avatar.big { width: 76px; height: 76px; font-size: 1.6rem; margin: 0 auto 4px; }
.empty { padding: 48px 28px; text-align: center; }
.fab { position: absolute; right: 18px; bottom: calc(18px + var(--safe-b)); width: 58px; height: 58px; border-radius: 18px;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); }

.scroll { flex: 1; overflow-y: auto; }
.pad { padding: 14px 14px calc(24px + var(--safe-b)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.card.confirm { border-color: var(--accent); text-align: center; }
.qr { width: min(260px, 70vw); aspect-ratio: 1; border-radius: 12px; background: #fff; padding: 6px; display: block; margin: 6px auto 4px; }
.scanner { width: 100%; border-radius: 12px; margin-top: 10px; background: #000; aspect-ratio: 1; object-fit: cover; }
.safety { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 10px; font-family: ui-monospace, monospace; font-size: 1.05rem;
  text-align: center; padding: 12px; background: var(--panel2); border-radius: 12px; letter-spacing: .04em; }
.facts { margin: 4px 0 6px; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.facts li { margin: 4px 0; }

.chat .msgs { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px;
  background: var(--wall, radial-gradient(circle at 20% 0, color-mix(in srgb, var(--accent) 6%, transparent), transparent 50%)); }
.bubble { max-width: 80%; padding: 7px 10px 5px; border-radius: 14px; position: relative; word-wrap: break-word; overflow-wrap: anywhere; animation: pop .14s ease-out; }
.bubble.in { background: var(--in); align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid var(--line); }
.bubble.out { background: var(--out); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble .text { white-space: pre-wrap; }
.bubble .meta { font-size: .7rem; color: var(--muted); text-align: right; margin-top: 2px; display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.ticks { letter-spacing: -2px; }
.ticks.read { color: var(--read); font-weight: 700; }
.photo { display: block; width: 260px; max-width: 100%; border-radius: 10px; object-fit: cover; background: var(--panel2); cursor: zoom-in; }
.daysep, .sys { align-self: center; font-size: .75rem; color: var(--muted); background: var(--panel); padding: 4px 10px; border-radius: 999px; margin: 8px 0; text-transform: capitalize; }
.sys { text-transform: none; text-align: center; }
.e2e-note { margin: 20px auto; max-width: 320px; font-size: .82rem; color: var(--muted); background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; text-align: center; }
.composer { display: flex; align-items: flex-end; gap: 6px; padding: 8px 8px calc(8px + var(--safe-b)); background: var(--panel); border-top: 1px solid var(--line); }
.composer-input { flex: 1; resize: none; border-radius: 20px; border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  font: inherit; padding: 10px 14px; max-height: 140px; }
.sendbtn { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.viewer { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: grid; place-items: center; z-index: 50; }
.viewer img { max-width: 100vw; max-height: 100dvh; }

#toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translate(-50%, 20px); background: #000c; color: #fff;
  padding: 10px 16px; border-radius: 12px; font-size: .9rem; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes pop { from { transform: scale(.96); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } }

/* ---------- Appels ---------- */
.call { position: fixed; inset: 0; z-index: 80; background: radial-gradient(circle at 50% 30%, #23303d, #0b0e12 70%); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: max(48px, env(safe-area-inset-top)) 20px calc(36px + var(--safe-b)); }
.call-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; transition: opacity .3s; }
.call.has-video .call-remote { opacity: 1; }
.call-local { position: absolute; right: 14px; top: max(14px, env(safe-area-inset-top)); width: 28vw; max-width: 150px; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 14px; border: 2px solid rgba(255,255,255,.7); background: #111; display: none; z-index: 2; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.call.has-local .call-local { display: block; }
.call.mirror .call-local { transform: scaleX(-1); }
.call:not(.has-video).has-local .call-local { width: 34vw; max-width: 170px; }
.cbtn-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .82rem; opacity: .95; }
.cbtn.ghost-green { background: rgba(255,255,255,.16); border: 2px solid #2fbf71; }
.call-info { position: relative; z-index: 1; text-align: center; margin-top: 6vh; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.call.has-video .call-info { margin-top: 0; }
.call.has-video .call-info .avatar { display: none; }
.call-info .avatar { width: 112px; height: 112px; font-size: 2.4rem; margin-bottom: 14px; box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 0 0 22px rgba(255,255,255,.03); }
.call-name { font-size: 1.6rem; font-weight: 700; }
.call-status { margin-top: 6px; font-size: 1rem; opacity: .85; font-variant-numeric: tabular-nums; }
.call-e2e { margin-top: 6px; font-size: .78rem; opacity: .6; }
.call-actions { position: relative; z-index: 1; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.cbtn { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cbtn .ic { width: 28px; height: 28px; }
.cbtn.on { background: #fff; color: #111; }
.cbtn.red { background: #e5484d; }
.cbtn.red .ic { transform: rotate(135deg); }
.cbtn.green { background: #2fbf71; animation: pulse 1.4s infinite; }
.cbtn:active { transform: scale(.94); }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(47,191,113,0); } 0% { box-shadow: 0 0 0 0 rgba(47,191,113,.6); } }
.topbar .iconbtn + .iconbtn { margin-left: -4px; }

/* ---------- Pièces jointes ---------- */
.att { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.att audio { width: 260px; max-width: 100%; }
.file { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--text) 7%, transparent); }
.file-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; flex: none; }
.file-main { flex: 1; min-width: 0; }
.file-name { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-sub { font-size: .75rem; color: var(--muted); }
.file-dl { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--text) 10%, transparent);
  color: var(--text); text-decoration: none; font-size: 1.1rem; flex: none; }
.bar { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--text) 12%, transparent); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.card-msg { min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.card-msg .btn { margin-top: 6px; text-decoration: none; }
.card-title { font-weight: 700; }
.loc-map { height: 110px; border-radius: 10px; display: grid; place-items: center; font-size: 2.2rem;
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--ok) 18%, transparent) 0 12px, color-mix(in srgb, var(--ok) 8%, transparent) 12px 24px); }
.contact-row { display: flex; gap: 10px; align-items: center; }
.contact-row .avatar { width: 42px; height: 42px; }
.msgs.drop { outline: 3px dashed var(--accent); outline-offset: -8px; }
.sheet-bg { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { width: 100%; max-width: 760px; max-height: 85dvh; overflow-y: auto; background: var(--panel); border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(18px + var(--safe-b)); animation: up .2s ease-out; }
.sheet h2 { margin: 14px 0 4px; }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.att-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px; }
.att-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .82rem; }
.att-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; }
.list.mini { padding: 0; max-height: 40dvh; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Numéro / appareils ---------- */
.telrow { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 8px; }
.telrow .field { margin-top: 10px; }
select.field { appearance: auto; }
.telnum { font-size: 1.3rem; font-weight: 700; margin: 4px 0; letter-spacing: .03em; }
.linkcode { font-size: 1.5rem; font-weight: 800; letter-spacing: .08em; background: var(--panel2); border-radius: 12px; padding: 12px; margin: 10px 0; }
.notfound { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--panel2); }
.notfound p { margin: 0 0 6px; }
.btnrow.wrap { flex-wrap: wrap; }
.btnrow .btn.small { margin: 6px 6px 0 0; text-decoration: none; }
.card.join { margin-top: 12px; text-align: left; }
.onboard .telrow { text-align: left; }
.onboard { overflow-y: auto; justify-content: flex-start; padding-top: max(40px, 8dvh); }

/* ---------- Vérification e-mail ---------- */
.banner { display: flex; gap: 12px; align-items: center; width: calc(100% - 20px); margin: 10px; padding: 12px 14px; border-radius: 14px; text-align: left;
  background: color-mix(in srgb, var(--accent) 16%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.banner > span:first-child { font-size: 1.6rem; }
.field.code { font-size: 1.6rem; letter-spacing: .5em; text-align: center; }
.badge-ok { color: var(--ok); font-weight: 600; margin: 6px 0; }
.badge-warn { color: var(--accent); font-size: .88rem; margin: 6px 0; }
h2.mt { margin-top: 18px; }

/* ---------- Licence ---------- */
.field.code-lic { font-size: 1.25rem; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.lic-why { background: color-mix(in srgb, var(--danger) 14%, var(--panel)); border-radius: 12px; padding: 10px 12px; }
.lic-dev { margin-top: 18px; text-align: center; }
.devid { font-size: 1.3rem; font-weight: 800; letter-spacing: .15em; margin: 4px 0 0; }
.banned-logo { background: var(--danger); font-size: 2.6rem; }

/* ---------- Bloquer / verrouiller / mises à jour ---------- */
.blockedbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px calc(12px + var(--safe-b));
  background: var(--panel); border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.blockedbar .btn.small { margin: 0; }
.locked-folder { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.avatar.lockav { background: var(--panel2); font-size: 1.4rem; }
.tag { margin-left: 6px; font-size: .8rem; }
.menu-head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 6px; text-align: left; font-size: 1rem; border-radius: 10px; }
.menu-item:active, .menu-item:hover { background: var(--panel2); }
.menu-item.danger { color: var(--danger); }
.mi-ic { width: 28px; text-align: center; font-size: 1.2rem; }
.pin-sheet { text-align: center; }
.pin-ic { font-size: 2.2rem; }
.field.pin { letter-spacing: .6em; }
.linkbtn { color: var(--accent); margin-top: 12px; font-size: .9rem; text-decoration: underline; }
.row.flat { border: 0; padding: 8px 0; }
.banner.upd { background: color-mix(in srgb, var(--ok) 16%, var(--panel)); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.facts.left { text-align: left; }
.pad { padding: 14px; }

/* Apparence */
.lbl { display: block; font-size: .82rem; color: var(--muted); margin: 12px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 7px 12px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-size: .88rem; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 700; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 2px rgba(0,0,0,.15); }
.swatch.on { border-color: var(--text); }
.walls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.wall { height: 64px; border-radius: 12px; border: 2px solid var(--line); position: relative; overflow: hidden; display: grid; place-items: center; }
.wall.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.wall span { position: absolute; left: 0; right: 0; bottom: 0; font-size: .74rem; padding: 3px 4px; background: color-mix(in srgb, var(--panel) 80%, transparent); }
.wall b { font-size: 1.4rem; font-weight: 400; margin-bottom: 14px; }
.look-demo { margin-top: 12px; padding: 12px; border-radius: 12px; display: flex; flex-direction: column; gap: 6px; background: var(--wall); border: 1px solid var(--line); }
.look-demo { box-shadow: inset 0 0 0 999px transparent; }
.card .look-demo { background-color: transparent; }


/* Recherche */
.searchbar { display: flex; align-items: center; gap: 8px; margin: 8px 12px 4px; padding: 0 12px; height: 42px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); }
.searchbar:focus-within { border-color: var(--accent); }
.search-ic { font-size: .9rem; opacity: .7; }
.search-in { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; outline: none; height: 100%; }
.search-in::-webkit-search-cancel-button { display: none; }
.search-x { width: 28px; height: 28px; border-radius: 50%; color: var(--muted); }
.search-head { font-size: .8rem; color: var(--muted); padding: 10px 16px 4px; }
.hidebox { margin: 14px 12px; }
/* Appel : vidéos inversées */
.call-remote, .call-local { cursor: pointer; }
.call.swapped .call-local { inset: 0; top: 0; right: auto; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border: 0; border-radius: 0; z-index: 0; box-shadow: none; }
.call.swapped .call-remote { inset: auto; right: 14px; top: max(14px, env(safe-area-inset-top)); width: 28vw; max-width: 150px; height: auto; aspect-ratio: 3 / 4;
  border-radius: 14px; border: 2px solid rgba(255,255,255,.7); z-index: 2; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.call.swapped .call-info { margin-top: 0; }
.call.has-video .call-info { align-self: flex-start; text-align: left; max-width: calc(100% - min(28vw, 150px) - 24px); }
.call.has-video .call-name { font-size: 1.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Actions sur les messages */
.bubble { -webkit-user-select: text; user-select: text; -webkit-touch-callout: none; }
.bubble.sel { outline: 2px solid var(--accent); outline-offset: 2px; }
.bubble .fwd { font-size: .76rem; font-style: italic; color: var(--muted); margin-bottom: 2px; }
.bubble .edited { font-style: italic; margin-right: 2px; }
.bubble.deleted .text { font-style: italic; color: var(--muted); }
.menu-quote { margin: 4px 6px 8px; padding: 8px 10px; border-left: 3px solid var(--accent); background: var(--panel2); border-radius: 8px; font-size: .9rem; color: var(--muted); white-space: pre-wrap; max-height: 5.5em; overflow: hidden; }
.editbar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; background: var(--panel); border-top: 1px solid var(--line); }
.editbar .eb-ic { font-size: 1.1rem; }
.editbar .eb-main { flex: 1; min-width: 0; border-left: 3px solid var(--accent); padding-left: 8px; font-size: .85rem; }
.editbar .eb-q { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet.tall { max-height: 85dvh; display: flex; flex-direction: column; }
.fwlist { overflow-y: auto; flex: 1; min-height: 120px; margin: 6px 0; }
.fwck { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 800; flex: none; }
.fwck.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (pointer: coarse) { .bubble { -webkit-user-select: none; user-select: none; } }
.manual { margin: 6px 0 4px; }
.card-msg .btnrow.wrap .btn.small { margin: 6px 6px 0 0; }
.card-msg a.btn, .btnrow a.btn { color: inherit; text-decoration: none; }
.colorpick { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wall span { font-size: .68rem; }

/* Police des messages */
.bubble .text, .composer-input, .menu-quote, .look-demo .bubble { font-family: var(--msg-font, inherit); }
.chips.fonts .chip { font-size: .95rem; }
.switchrow { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: .88rem; color: var(--muted); }
.switchrow input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.wall b { text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.chat { background: var(--bg); }

/* Visionneuse photos / vidéos */
.gallery { position: fixed; inset: 0; z-index: 70; background: #000; color: #fff; display: flex; flex-direction: column; animation: gfade .15s ease-out; touch-action: none; }
@keyframes gfade { from { opacity: 0; } }
.g-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 8px; padding-top: max(8px, env(safe-area-inset-top));
  background: linear-gradient(rgba(0,0,0,.7), transparent); transition: opacity .2s; }
.g-head { flex: 1; min-width: 0; }
.g-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-sub { font-size: .78rem; opacity: .75; }
.g-count { font-size: .85rem; opacity: .85; padding: 0 6px; font-variant-numeric: tabular-nums; }
.g-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.2rem; flex: none; }
.g-btn:active, .g-nav:active { background: rgba(255,255,255,.18); }
.g-stage { flex: 1; display: grid; place-items: center; overflow: hidden; }
.g-media { max-width: 100vw; max-height: 100dvh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.g-media.from-right { animation: gin-r .18s ease-out; }
.g-media.from-left { animation: gin-l .18s ease-out; }
@keyframes gin-r { from { transform: translateX(40px); opacity: .3; } }
@keyframes gin-l { from { transform: translateX(-40px); opacity: .3; } }
.gallery.zoomed .g-stage { overflow: auto; display: block; touch-action: pan-x pan-y; }
.gallery.zoomed .g-media { max-width: none; max-height: none; width: 200vw; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 64px; border-radius: 12px; background: rgba(0,0,0,.35); color: #fff;
  font-size: 2.2rem; line-height: 1; display: grid; place-items: center; transition: opacity .2s; }
.g-prev { left: 6px; } .g-next { right: 6px; }
.gallery.bare .g-top, .gallery.bare .g-nav, .gallery.zoomed .g-nav { opacity: 0; pointer-events: none; }
.vidwrap { position: relative; }
.vid-full { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 1.1rem; }
.g-nav[hidden] { display: none; }

/* --- Réponse à un message (citation) --- */
.quote { display: block; border-left: 4px solid var(--accent); background: rgba(0,0,0,.07); border-radius: 8px; padding: 5px 9px; margin: 0 0 5px; cursor: pointer; max-width: 100%; overflow: hidden; }
.quote.me { border-left-color: var(--read, #1f8fe0); }
.quote b { display: block; font-size: .78rem; color: var(--accent); }
.quote.me b { color: var(--read, #1f8fe0); }
.quote span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .84rem; opacity: .85; white-space: pre-wrap; word-break: break-word; }
.bubble.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: none; } }
.bubble.swipe-ok::before { content: '↩'; position: absolute; left: -34px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.2rem; }
.bubble { position: relative; }
.bubble.vanish { transition: opacity .16s, transform .16s; opacity: 0; transform: scale(.96); }
.replybar .eb-ic { color: var(--accent); font-weight: 700; }

/* --- Fenêtre de suppression (se ferme dès qu'on choisit) --- */
.dlg-bg { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.5); display: grid; place-items: center; padding: 24px; animation: fade .12s; }
.dlg { background: var(--panel, #1b222b); color: var(--text); border-radius: 16px; width: min(380px, 100%); padding: 20px 18px 10px; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.dlg-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.dlg-sub { color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.dlg-actions { display: flex; flex-direction: column; align-items: stretch; margin-top: 8px; }
.dlg-btn { text-align: right; padding: 12px 6px; font-weight: 600; color: var(--accent); background: none; border: 0; font-size: .98rem; cursor: pointer; }
.dlg-btn.danger { color: #e5484d; }

/* --- Appel de groupe --- */
.call.conf { display: flex; flex-direction: column; padding: max(10px, env(safe-area-inset-top)) 8px max(14px, env(safe-area-inset-bottom)); }
.conf-head { text-align: center; padding: 6px 8px 10px; }
.conf-title { font-weight: 600; font-size: .98rem; }
.conf-grid { flex: 1; min-height: 0; display: grid; gap: 6px; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
.conf-grid[data-n="2"] { grid-template-rows: 1fr 1fr; }
.conf-grid[data-n="3"], .conf-grid[data-n="4"] { grid-template-columns: 1fr 1fr; }
.conf-grid[data-n="3"] > :last-child { grid-column: 1 / -1; }
.conf-grid[data-n="5"], .conf-grid[data-n="6"] { grid-template-columns: 1fr 1fr; }
.conf-grid[data-n="5"] > :last-child { grid-column: 1 / -1; }
@media (orientation: landscape) { .conf-grid[data-n="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; } .conf-grid[data-n="5"], .conf-grid[data-n="6"] { grid-template-columns: 1fr 1fr 1fr; } .conf-grid[data-n="5"] > :last-child { grid-column: auto; } }
.conf-tile { position: relative; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.07); min-height: 0; }
.conf-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.conf-tile.vid video { opacity: 1; }
.conf-tile.mirror video.mine { transform: scaleX(-1); }
.conf-av { position: absolute; inset: 0; display: grid; place-items: center; }
.conf-tile.vid .conf-av { display: none; }
.conf-name { position: absolute; left: 8px; bottom: 8px; right: 8px; font-size: .82rem; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conf .call-actions { position: static; margin-top: 12px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.call.conf { align-items: stretch; justify-content: flex-start; }
.sheet-bg.top { z-index: 95; }
/* Partage d'écran */
.call.scr-in .call-remote { object-fit: contain; }
.call.scr-out .call-local { object-fit: contain; background: #111; }
.conf-tile.scr video { object-fit: contain; background: #000; }
/* Qualité de connexion pendant l'appel */
.call-q { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: #ddd; background: rgba(0,0,0,.35); padding: 3px 8px; border-radius: 10px; max-width: 92vw; }
.q-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.q-bars i { width: 3px; background: rgba(255,255,255,.3); border-radius: 1px; }
.q-bars i:nth-child(1) { height: 4px; } .q-bars i:nth-child(2) { height: 8px; } .q-bars i:nth-child(3) { height: 12px; }
.q3 .q-bars i { background: #25d366; }
.q2 .q-bars i:nth-child(-n+2) { background: #f5c518; }
.q1 .q-bars i:nth-child(1), .q0 .q-bars i:nth-child(1) { background: #f04444; }
.conf-head #confQ { margin-left: auto; }
/* « … écrit » */
.typing-sub { color: var(--ok, #25d366); font-weight: 600; }
.typing-bubble { padding: 10px 14px; min-width: 0; width: auto; animation: tb-in .2s ease-out; }
.tdots { display: inline-flex; gap: 4px; align-items: center; height: 10px; }
.tdots i { width: 8px; height: 8px; border-radius: 50%; background: #8696a0; opacity: .45; animation: tdot 1.2s infinite ease-in-out; }
.tdots i:nth-child(2) { animation-delay: .15s; } .tdots i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes tb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Micro / envoi (comme WhatsApp : micro quand la zone est vide) */
.composer { position: relative; }
.composer .micbtn { touch-action: none; user-select: none; -webkit-user-select: none; }
.composer:not(.novoice):not(.has-text) .sendonly { display: none; }
.composer.has-text .micbtn { display: none; }
.composer.recording .micbtn { transform: scale(1.35); background: #e5484d; color: #fff; transition: transform .15s; }
.composer.reclock .micbtn { display: none; }
.recbar { position: absolute; left: 8px; right: 60px; top: 8px; bottom: calc(8px + var(--safe-b)); display: flex; align-items: center; gap: 10px;
  background: var(--panel); padding: 0 8px; border-radius: 22px; z-index: 2; }
.composer.reclock .recbar { right: 8px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; animation: recblink 1s infinite; flex: none; }
@keyframes recblink { 50% { opacity: .2; } }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 38px; }
.rec-hint { flex: 1; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; transition: opacity .1s; }
.rec-lock { position: absolute; right: -50px; top: -46px; width: 40px; height: 40px; border-radius: 20px; background: var(--panel); box-shadow: 0 2px 8px rgba(0,0,0,.2);
  display: grid; place-items: center; animation: lockup 1.2s infinite ease-in-out; }
@keyframes lockup { 50% { transform: translateY(-6px); } }
.rec-del { font-size: 20px; }
/* Bulle de message vocal */
.voice { display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 290px; padding: 4px 2px; }
.vplay { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 16px; flex: none; display: grid; place-items: center; }
.vmid { flex: 1; min-width: 0; }
.vwave { display: flex; align-items: center; gap: 2px; height: 26px; cursor: pointer; }
.vwave i { flex: 1; min-width: 2px; max-width: 4px; border-radius: 2px; background: currentColor; opacity: .3; }
.vwave i.on { opacity: 1; background: var(--accent); }
.vrow { display: flex; align-items: center; gap: 8px; font-size: 12px; opacity: .8; margin-top: 2px; }
.vrow .bar { flex: 1; }
.vspeed { font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 10px; background: rgba(0,0,0,.08); flex: none; }
/* Messages vidéo ronds */
.composer.recording .micbtn:not(.active-rec) { display: none; }
.vn-rec { position: fixed; left: 50%; bottom: calc(120px + var(--safe-b)); transform: translateX(-50%); z-index: 60; width: min(70vw, 280px); aspect-ratio: 1;
  border-radius: 50%; padding: 5px; background: conic-gradient(#e5484d calc(var(--p, 0) * 360deg), rgba(255,255,255,.35) 0); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.vn-circle { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #000; }
.vn-circle canvas { width: 100%; height: 100%; display: block; transform: scaleX(-1); }
.vnote-att { padding: 0 !important; }
.bubble:has(.vnote) { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 2px !important; }
.vnote { position: relative; width: 220px; height: 220px; border-radius: 50%; overflow: hidden; background: #111; cursor: pointer;
  box-shadow: 0 0 0 3px var(--panel), 0 2px 10px rgba(0,0,0,.2); }
.vnote.playing { box-shadow: 0 0 0 3px var(--accent), 0 2px 10px rgba(0,0,0,.2); }
.vnote video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vn-wait { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 18px; }
.vn-dur { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.vn-play { position: absolute; right: 30px; top: 30px; background: rgba(0,0,0,.45); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; }
.vnote .bar { position: absolute; left: 30px; right: 30px; bottom: 40px; }
@media (max-width: 360px) { .vnote { width: 190px; height: 190px; } }
/* Emojis et stickers */
.emo-btn.on { color: var(--accent); }
.emo-panel { height: min(42vh, 330px); background: var(--panel); border-top: 1px solid var(--line); display: flex; flex-direction: column; flex: none; }
.emo-tabs { display: flex; gap: 4px; padding: 6px 8px 0; }
.emo-tab { padding: 6px 12px; border-radius: 16px; font-weight: 600; font-size: 14px; color: var(--muted); }
.emo-tab.on { background: var(--panel2); color: var(--text); }
.emo-tab.del { margin-left: auto; font-size: 18px; }
.emo-body { flex: 1; overflow-y: auto; padding: 0 8px 8px; overscroll-behavior: contain; }
.emo-h { font-size: 12px; font-weight: 700; color: var(--muted); margin: 10px 4px 4px; display: flex; align-items: center; gap: 8px; }
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
.emo { font-size: 27px; height: 44px; border-radius: 8px; line-height: 1; font-family: "Noto Color Emoji","Apple Color Emoji","Segoe UI Emoji",sans-serif; }
.emo:active { background: var(--panel2); }
.emo-cats { display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding: 4px 0 calc(4px + var(--safe-b)); }
.emo-cat { font-size: 18px; padding: 4px 6px; opacity: .75; }
.stk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 4px; }
.stk-btn { padding: 4px; border-radius: 10px; } .stk-btn:active { background: var(--panel2); }
.stk { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.bubble.stk-msg { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
.bubble.stk-msg .meta { background: rgba(0,0,0,.35); color: #fff; border-radius: 8px; padding: 1px 6px; width: fit-content; margin-left: auto; }
img.sticker { width: 150px; height: 150px; object-fit: contain; display: block; }
.bubble.jumbo { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 2px 4px !important; }
.bubble.jumbo .text { line-height: 1.15; font-family: "Noto Color Emoji","Apple Color Emoji","Segoe UI Emoji",sans-serif; }
.bubble.jumbo.j1 .text { font-size: 64px; } .bubble.jumbo.j2 .text { font-size: 52px; } .bubble.jumbo.j3 .text { font-size: 44px; }
.bubble.jumbo .meta { opacity: .7; }
/* Zone de saisie plus large : boutons compacts, emoji et trombone dans la bulle de saisie */
.composer { gap: 5px; padding: 6px 6px calc(6px + var(--safe-b)); }
.cpill { flex: 1; min-width: 0; display: flex; align-items: flex-end; background: var(--panel2); border: 1px solid var(--line); border-radius: 22px; }
.cpill:focus-within { border-color: var(--accent); }
.cpill .composer-input { border: 0; background: transparent; padding: 10px 2px; min-width: 0; border-radius: 0; }
.cpill .composer-input:focus { outline: none; }
.cpill .iconbtn { width: 38px; height: 42px; color: var(--muted); }
.cpill .iconbtn svg { width: 22px; height: 22px; }
.composer .sendbtn { width: 42px; height: 42px; }
.composer .sendbtn svg { width: 21px; height: 21px; }
.composer .micbtn[aria-label^="Message vidéo"] { background: transparent; color: var(--accent); width: 36px; }
.composer .micbtn[aria-label^="Message vidéo"].active-rec { background: #e5484d; color: #fff; width: 42px; }
.recbar { right: 52px; }
/* Notifications et pastille : liste de vérification */
.alerts .al-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.alerts .al-ic { font-size: 18px; flex: none; }
.alerts .al-main { flex: 1; min-width: 0; }
.alerts .al-row.ko b { color: var(--text); }
.alerts .al-row.ok b { font-weight: 600; opacity: .85; }
.alerts .btnrow { margin-top: 10px; display: flex; gap: 8px; }
.alerts .btnrow .btn { flex: 1; }
.al-banner { display: flex; align-items: center; gap: 10px; margin: 8px 12px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, #f5a524 18%, var(--panel)); border: 1px solid color-mix(in srgb, #f5a524 45%, transparent); }
.al-banner .al-main { flex: 1; min-width: 0; }
.call-sound { display: none; }
.tap-sound { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 5; background: #25d366; color: #04210f; font-weight: 700;
  padding: 14px 20px; border-radius: 28px; box-shadow: 0 6px 24px rgba(0,0,0,.4); font-size: 16px; }
/* Propositions de mots */
.sugbar { display: none; gap: 0; background: var(--panel); border-top: 1px solid var(--line); overflow-x: auto; }
.sugbar.on { display: flex; }
.sug { flex: 1; min-width: 0; padding: 9px 6px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.sug + .sug { border-left: 1px solid var(--line); }
.sug.fix { font-weight: 700; color: var(--accent); }
.sug:active { background: var(--panel2); }
.alerts .btnrow { flex-wrap: wrap; }
.al-banner.apk { background: color-mix(in srgb, #25d366 16%, var(--panel)); border-color: color-mix(in srgb, #25d366 45%, transparent); }

/* ===== Appel réduit (petite fenêtre) ===== */
.call-min { position: absolute; left: 12px; top: max(12px, env(safe-area-inset-top)); z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; border: 0; }
.call-min .ic { width: 24px; height: 24px; }
.call.conf .call-min { display: none; }
.call.mini { inset: auto; top: calc(env(safe-area-inset-top, 0px) + 72px); right: 10px; width: 108px; height: 148px; padding: 0; border-radius: 16px;
  overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,.55); z-index: 85; justify-content: flex-end; align-items: stretch; touch-action: none; cursor: pointer;
  border: 2px solid #1fa463; animation: none; }
.call.mini .call-actions, .call.mini .call-local, .call.mini .call-e2e, .call.mini #callQ, .call.mini .call-min { display: none !important; }
.call.mini .call-remote { inset: 0 !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important;
  border-radius: 0 !important; border: 0 !important; box-shadow: none !important; transform: none !important; }
.call.mini .call-info { margin: 0 !important; padding: 6px; text-align: center; max-width: none !important; align-self: stretch; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.call.mini .call-info .avatar { width: 52px; height: 52px; font-size: 1.2rem; margin: 0 auto 6px; box-shadow: none; }
.call.mini.has-video .call-info .avatar { display: none; }
.call.mini .call-name { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call.mini .call-status { font-size: .75rem; margin-top: 2px; }
.call.mini:not(.has-video) { height: auto; width: 112px; justify-content: center; background: linear-gradient(160deg, #1f8f5a, #0f5c39); padding: 12px 0 8px; }
.call.mini:not(.has-video) .call-info { background: none; }
/* ===== Annotation des photos ===== */
.annot { position: fixed; inset: 0; z-index: 75; background: #0b0d10; color: #fff; display: flex; flex-direction: column; touch-action: none;
  padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.an-top { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.an-title { flex: 1; font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 1.2rem; }
.an-btn:disabled { opacity: .35; }
.an-send { width: auto; margin: 0; padding: 9px 16px; }
.an-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 6px; }
.an-cv { max-width: 100%; max-height: 100%; touch-action: none; border-radius: 6px; box-shadow: 0 2px 14px rgba(0,0,0,.5); }
.an-bar { padding: 6px 8px 10px; background: #14181d; }
.an-tools { display: flex; gap: 4px; overflow-x: auto; }
.an-tool { flex: 1 0 auto; min-width: 50px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; border-radius: 10px; border: 0;
  background: none; color: #cfd6de; font-size: 1.15rem; }
.an-tool small { font-size: .62rem; }
.an-tool.on { background: rgba(255,255,255,.14); color: #fff; }
.an-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.an-col { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); }
.an-col.on { outline: 3px solid #fff; outline-offset: 2px; }
.an-sep { flex: 1; }
.an-size { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: none; color: #cfd6de; font-size: .75rem; }
.an-size.on { background: #fff; color: #000; }
/* ===== Réduction du bruit : bouton à appui long ===== */
.cbtn.calm-btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: background .2s, color .2s, box-shadow .2s; }
.cbtn.calm-l1 { background: #f5a524; color: #1a1203; box-shadow: 0 0 0 4px rgba(245,165,36,.25); }
.cbtn.calm-l2 { background: #2fbf71; color: #04210f; box-shadow: 0 0 0 4px rgba(47,191,113,.3); }
.calm-tip { position: fixed; z-index: 95; transform: translate(-50%, -100%); padding: 5px 11px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: rgba(0,0,0,.78); color: #fff; white-space: nowrap; pointer-events: none; animation: calmIn .15s ease-out; transition: opacity .35s, transform .35s; }
.calm-tip.calm-l1 { background: #f5a524; color: #1a1203; }
.calm-tip.calm-l2 { background: #2fbf71; color: #04210f; }
.calm-tip.out { opacity: 0; transform: translate(-50%, -150%); }
@keyframes calmIn { from { opacity: 0; transform: translate(-50%, -60%); } to { opacity: 1; transform: translate(-50%, -100%); } }
.calm-set { display: flex; align-items: center; gap: 10px; }
.calm-dot { width: 14px; height: 14px; border-radius: 50%; background: #8a939e; flex: 0 0 auto; }
.calm-dot.calm-l1 { background: #f5a524; } .calm-dot.calm-l2 { background: #2fbf71; }

/* ===== Confidentialité ===== */
.pv-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.pv-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
.once { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; text-align: left; }
.once-ic { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--accent); display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--accent); flex: 0 0 auto; }
.once.done { opacity: .6; } .once.done .once-ic { border-style: solid; border-color: var(--muted); color: var(--muted); }
.once-view img { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.an-once { font-weight: 800; border: 2px dashed rgba(255,255,255,.5); }
.an-once.on { background: #f5a524; color: #1a1203; border-style: solid; border-color: #f5a524; }

.share-what { margin: 0 0 8px; font-weight: 600; word-break: break-all; }
