/* AubeSocial : habillage arrondi de la Suite Aube, aux couleurs de L'Aube Étoilée.
 *
 * Palette prise sur l'en-tête de aubeetoilee.com : un ciel de nuit indigo (#0d0b1f) qui
 * descend vers le violet (#382950), le rose (#954e73) et la pêche de l'horizon (#f2a76c).
 * Thème nuit par défaut ; thème jour sur blanc, encre nuit (#16183a). L'accent est le rose
 * de l'aube (entre le rose et la pêche de l'image), jamais le jaune. */
:root {
  --nuit: #0d0b1f; --nuit-2: #1a152c; --violet: #382950; --rose: #954e73; --peche: #f2a76c;
  --bg: #0d0b1f; --surf: #16132b; --surf2: #1f1b38; --surf3: #292446; --line: #282348; --line2: #3a3460;
  --ink: #f3f1ff; --ink2: #b6b1d2; --ink3: #807a9f;
  --accent: #eb708f; --accent-dim: rgba(235, 112, 143, .16); --on-accent: #160f2c;
  --aube: linear-gradient(135deg, #c25a8a 0%, #eb708f 45%, #f2a76c 100%);
  --danger: #ff5c68; --danger-dim: rgba(255, 92, 104, .15); --ok: #4fc98a; --absent: #f2a76c; --occupe: #ff5c68;
  --r: 16px; --rc: 10px; --rp: 999px; --ring: 0 0 0 3px rgba(235, 112, 143, .35);
  --shadow-card: 0 1px 2px rgba(5, 3, 20, .6), 0 12px 32px rgba(5, 3, 20, .5);
  --rail: 72px; --cote: 260px; --membres: 240px; --entete: 52px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="clair"] {
  --bg: #fff; --surf: #f7f6fc; --surf2: #eeecf7; --surf3: #e3e0f1; --line: #dfdcee; --line2: #c9c5df;
  --ink: #16183a; --ink2: #514d70; --ink3: #8b87a4;
  --accent: #b82e60; --accent-dim: rgba(184, 46, 96, .12); --on-accent: #fff;
  --aube: linear-gradient(135deg, #9c3f74 0%, #b82e60 45%, #e0824e 100%);
  --danger: #d9364a; --danger-dim: rgba(217, 54, 74, .12); --ok: #1f9e5c; --absent: #d9862f; --occupe: #d9364a;
  --ring: 0 0 0 3px rgba(184, 46, 96, .25);
  --shadow-card: 0 1px 2px rgba(22, 24, 58, .08), 0 12px 32px rgba(22, 24, 58, .1);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="sombre"]) {
    --bg: #fff; --surf: #f7f6fc; --surf2: #eeecf7; --surf3: #e3e0f1; --line: #dfdcee; --line2: #c9c5df;
    --ink: #16183a; --ink2: #514d70; --ink3: #8b87a4;
    --accent: #b82e60; --accent-dim: rgba(184, 46, 96, .12); --on-accent: #fff;
    --aube: linear-gradient(135deg, #9c3f74 0%, #b82e60 45%, #e0824e 100%);
    --danger: #d9364a; --danger-dim: rgba(217, 54, 74, .12); --ok: #1f9e5c; --absent: #d9862f; --occupe: #d9364a;
    --ring: 0 0 0 3px rgba(184, 46, 96, .25);
    --shadow-card: 0 1px 2px rgba(22, 24, 58, .08), 0 12px 32px rgba(22, 24, 58, .1);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font);
  min-height: 100dvh; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.15; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
em, i { font-style: normal; }
code { font-family: var(--mono); font-size: .85em; background: var(--surf2); padding: .1em .35em; border-radius: 4px; }
pre { font-family: var(--mono); font-size: .85em; background: var(--surf2); border: 1px solid var(--line); border-radius: var(--rc); padding: .6rem .8rem; overflow-x: auto; margin: .3rem 0; }
pre code { background: none; padding: 0; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-petit { width: 16px; height: 16px; }
.ico-grand { width: 40px; height: 40px; }
[hidden] { display: none !important; }
.sourd { color: var(--ink2); }
.petit { font-size: .85rem; }
.centre { text-align: center; }
.kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); margin: 0 0 .6rem; }
.vide { color: var(--ink3); padding: 2.5rem 1rem; text-align: center; }

/* ------------------------------------------------------------------ boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1.1rem; border-radius: var(--rp); border: 1px solid var(--line2);
  background: transparent; color: var(--ink); font-weight: 600; font-size: .92rem;
  line-height: 1.2; white-space: nowrap; transition: background .15s, transform .1s;
}
.btn:hover { text-decoration: none; background: var(--surf2); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .icone-btn:focus-visible, .rail-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--aube); border-color: transparent; color: var(--on-accent); box-shadow: 0 6px 18px var(--accent-dim); }
.btn-primary:hover { background: var(--aube); filter: brightness(1.08); }
.btn-ghost { background: var(--surf); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger-dim); }
.btn-large { padding: .8rem 1.4rem; font-size: 1rem; }
.btn-bloc { width: 100%; }
.btn-petit { padding: .3rem .7rem; font-size: .8rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icone-btn { background: none; border: 0; padding: .4rem; border-radius: var(--rp); display: inline-flex; color: var(--ink2); }
.icone-btn:hover { background: var(--surf2); color: var(--ink); }
.icone-btn.actif { color: var(--accent); }
.icone-btn.danger { color: var(--danger); }
.lien { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; text-decoration: underline; }
.segmente { display: inline-flex; border: 1px solid var(--line2); border-radius: var(--rp); overflow: hidden; }
.segmente button { background: none; border: 0; padding: .3rem .7rem; font-size: .8rem; font-weight: 600; color: var(--ink2); }
.segmente button.actif { background: var(--ink); color: var(--bg); }

/* ------------------------------------------------------------------ formulaires */
.formulaire { display: grid; gap: 1rem; }
.formulaire label, .champ { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink2); }
.formulaire input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .formulaire textarea, .formulaire select,
.champ input, .champ textarea, .champ select {
  width: 100%; background: var(--surf2); border: 1px solid var(--line); border-radius: var(--rc);
  padding: .6rem .8rem; color: var(--ink); font-weight: 400; font-size: .95rem; outline: none;
}
.formulaire input:focus, .formulaire textarea:focus, .formulaire select:focus, .champ input:focus, .champ textarea:focus, .champ select:focus { box-shadow: var(--ring); border-color: var(--line2); }
.champ-mdp { position: relative; display: block; }
.champ-mdp input { padding-right: 2.8rem; }
.oeil { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: .3rem; color: var(--ink2); display: flex; border-radius: var(--rp); }
.flash { padding: .7rem 1rem; border-radius: var(--rc); border: 1px solid var(--line); margin: 0 0 1rem; font-size: .9rem; }
.flash-error { border-color: var(--danger); color: var(--danger); background: var(--danger-dim); }
.aide { font-size: .8rem; color: var(--ink3); font-weight: 400; }

/* ------------------------------------------------------------------ pages publiques */
.page-publique .topbar {
  position: sticky; top: 0; z-index: 30; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-accent { color: var(--accent); }
.page { max-width: 1100px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) 3rem; }
/* Le ciel de L'Aube Étoilée : nuit en haut, étoiles, lueur de l'aube à l'horizon (pleine largeur). */
.ciel {
  position: relative; width: 100vw; margin: calc(-1 * clamp(1.5rem, 4vw, 3rem)) 0 3rem calc(50% - 50vw);
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem) clamp(3.5rem, 8vw, 6rem); overflow: hidden; color: #f3f1ff;
  background:
    radial-gradient(120% 60% at 50% 122%, rgba(242, 167, 108, .7) 0%, rgba(201, 127, 111, .5) 22%, rgba(149, 78, 115, .4) 45%, transparent 72%),
    radial-gradient(70% 50% at 20% 0%, rgba(56, 41, 80, .8), transparent 60%),
    linear-gradient(180deg, #0d0b1f 0%, #1a152c 45%, #2c2143 78%, #382950 100%);
}
.ciel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 42% 21%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(2px 2px at 7% 11%, rgba(243,241,255,.55) 55%, transparent 100%),
    radial-gradient(1px 1px at 47% 76%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(1px 1px at 28% 6%, rgba(243,241,255,.75) 55%, transparent 100%),
    radial-gradient(1px 1px at 54% 10%, rgba(243,241,255,.55) 55%, transparent 100%),
    radial-gradient(1px 1px at 71% 56%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(2px 2px at 16% 30%, rgba(243,241,255,.55) 55%, transparent 100%),
    radial-gradient(1.5px 1.5px at 74% 76%, rgba(243,241,255,.55) 55%, transparent 100%),
    radial-gradient(2px 2px at 29% 7%, rgba(243,241,255,.55) 55%, transparent 100%),
    radial-gradient(1px 1px at 38% 55%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(1px 1px at 16% 75%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(1px 1px at 88% 25%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(1px 1px at 74% 26%, rgba(243,241,255,.55) 55%, transparent 100%),
    radial-gradient(2px 2px at 71% 10%, rgba(243,241,255,.55) 55%, transparent 100%),
    radial-gradient(1.5px 1.5px at 80% 28%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(1px 1px at 69% 56%, rgba(243,241,255,.75) 55%, transparent 100%),
    radial-gradient(1px 1px at 75% 60%, rgba(243,241,255,.75) 55%, transparent 100%),
    radial-gradient(1px 1px at 32% 25%, rgba(243,241,255,.55) 55%, transparent 100%),
    radial-gradient(2px 2px at 74% 40%, rgba(243,241,255,.75) 55%, transparent 100%),
    radial-gradient(1px 1px at 44% 59%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(2px 2px at 10% 17%, rgba(243,241,255,.75) 55%, transparent 100%),
    radial-gradient(1px 1px at 22% 45%, rgba(243,241,255,.75) 55%, transparent 100%),
    radial-gradient(1px 1px at 54% 7%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(1px 1px at 74% 42%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 78%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(1px 1px at 59% 10%, rgba(243,241,255,.75) 55%, transparent 100%),
    radial-gradient(1px 1px at 61% 10%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(2px 2px at 90% 41%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(1.5px 1.5px at 58% 38%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 4%, rgba(243,241,255,.75) 55%, transparent 100%),
    radial-gradient(1.5px 1.5px at 22% 16%, rgba(243,241,255,.55) 55%, transparent 100%),
    radial-gradient(1px 1px at 28% 38%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(1.5px 1.5px at 32% 52%, rgba(243,241,255,.75) 55%, transparent 100%),
    radial-gradient(1.5px 1.5px at 11% 23%, rgba(243,241,255,.75) 55%, transparent 100%),
    radial-gradient(1px 1px at 71% 37%, rgba(243,241,255,.75) 55%, transparent 100%),
    radial-gradient(1.5px 1.5px at 71% 37%, rgba(243,241,255,.75) 55%, transparent 100%),
    radial-gradient(1px 1px at 88% 50%, rgba(243,241,255,.55) 55%, transparent 100%),
    radial-gradient(1px 1px at 11% 24%, rgba(243,241,255,.55) 55%, transparent 100%),
    radial-gradient(1px 1px at 85% 31%, rgba(243,241,255,.75) 55%, transparent 100%),
    radial-gradient(1px 1px at 76% 25%, rgba(243,241,255,.75) 55%, transparent 100%),
    radial-gradient(1.5px 1.5px at 1% 20%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(1px 1px at 48% 74%, rgba(243,241,255,.55) 55%, transparent 100%),
    radial-gradient(2px 2px at 89% 67%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(1.5px 1.5px at 87% 8%, rgba(243,241,255,.95) 55%, transparent 100%),
    radial-gradient(1.5px 1.5px at 72% 52%, rgba(243,241,255,.75) 55%, transparent 100%),
    radial-gradient(1.5px 1.5px at 51% 15%, rgba(243,241,255,.95) 55%, transparent 100%);
}
.ciel > * { position: relative; }
.ciel .kicker { color: #b6b1d2; }
.ciel .heros-texte { color: #d9d5ea; }
.ciel .btn:not(.btn-primary) { color: #f3f1ff; border-color: rgba(243, 241, 255, .45); }
.ciel .btn:not(.btn-primary):hover { background: rgba(243, 241, 255, .1); }
.heros { text-align: center; max-width: 780px; margin: 1rem auto 3rem; }
.ciel .heros { margin: 0 auto; }
.heros h1 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.03em; margin-bottom: 1.2rem; }
.heros-texte { font-size: 1.1rem; color: var(--ink2); max-width: 640px; margin: 0 auto 1.6rem; }
.heros-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.vitrine { margin: 0 auto 3rem; max-width: 980px; }
.cadre { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); overflow: hidden; }
.cadre-barre { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.cadre-barre span { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.maquette { display: grid; grid-template-columns: 56px 190px 1fr; min-height: 340px; font-size: .85rem; }
.maquette-rail { border-right: 1px solid var(--line); padding: 10px 0; display: grid; justify-items: center; align-content: start; gap: 8px; }
.maquette-serveur { width: 38px; height: 38px; border-radius: 50%; background: var(--surf2); display: grid; place-items: center; font-weight: 700; }
.maquette-serveur.actif { border-radius: 12px; background: var(--aube); color: var(--on-accent); }
.maquette-serveur.plus { color: var(--ink3); }
.maquette-salons { border-right: 1px solid var(--line); padding: 10px; }
.maquette-titre { font-weight: 700; padding: 4px 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.maquette-cat { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); padding: 8px 6px 4px; }
.maquette-salon { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; color: var(--ink2); }
.maquette-salon .ico { width: 16px; height: 16px; }
.maquette-salon.actif { background: var(--surf2); color: var(--ink); }
.maquette-voix { display: flex; align-items: center; gap: 6px; padding: 2px 6px 2px 28px; color: var(--ink2); }
.maquette-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--surf3); display: inline-grid; place-items: center; font-size: .7rem; font-weight: 700; flex: none; }
.maquette-chat { display: flex; flex-direction: column; padding: 10px 14px; gap: 10px; text-align: left; }
.maquette-entete { display: flex; align-items: center; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 700; }
.maquette-entete .ico { width: 16px; height: 16px; }
.maquette-entete .sourd { font-weight: 400; }
.maquette-msg { display: flex; gap: 10px; align-items: flex-start; }
.maquette-msg .maquette-avatar { width: 30px; height: 30px; margin-top: 2px; }
.maquette-saisie { margin-top: auto; background: var(--surf2); border: 1px solid var(--line); border-radius: var(--rc); padding: 8px 12px; color: var(--ink3); }
.atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.atouts article { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; box-shadow: var(--shadow-card); }
.atouts .ico-grand { color: var(--accent); margin-bottom: .8rem; }
.atouts h2 { font-size: 1.1rem; }
.atouts p { color: var(--ink2); margin: 0; font-size: .95rem; }
.bloc { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow-card); }
.bloc-etroit { max-width: 560px; margin: 0 auto; }
.prose h2 { font-size: 1.1rem; margin-top: 1.6rem; }
.prose p { color: var(--ink2); }
.invit-icone { width: 84px; height: 84px; border-radius: 24px; background: var(--surf2); border: 1px solid var(--line); margin: 0 auto 1rem; display: grid; place-items: center; font-size: 2rem; font-weight: 800; overflow: hidden; }
.invit-icone img { width: 100%; height: 100%; object-fit: cover; }
.pied { border-top: 1px solid var(--line); padding: 1.5rem clamp(1rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-size: .85rem; color: var(--ink2); }
.pied-marque { display: flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--ink); }
.pied-liens { display: flex; gap: 1.2rem; }

/* ------------------------------------------------------------------ application : grille */
body.app { height: 100dvh; overflow: hidden; }
.app-grille { display: grid; grid-template-columns: var(--rail) var(--cote) 1fr auto auto; height: 100dvh; }
.rail { background: linear-gradient(180deg, var(--bg) 0%, var(--surf) 100%); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0 max(12px, env(safe-area-inset-bottom, 0px)); overflow-y: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-serveurs { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.rail-btn { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surf); display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; transition: border-radius .15s, background .15s; overflow: visible; padding: 0; color: var(--ink); }
.rail-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.rail-btn:hover { border-radius: 16px; background: var(--surf2); }
.rail-btn.actif { border-radius: 16px; background: var(--aube); border-color: transparent; color: var(--on-accent); }
.rail-btn.actif::before, .rail-btn.non-lu::before { content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 20px; transform: translateY(-50%); background: var(--ink); border-radius: 0 4px 4px 0; }
.rail-btn.non-lu:not(.actif)::before { height: 8px; }
.rail-accueil { color: var(--ink); }
.rail-accueil.actif { color: var(--on-accent); }
.rail-plus { color: var(--ok); }
.rail-sep { width: 32px; height: 1px; background: var(--line2); }
.badge { position: absolute; right: -4px; bottom: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--rp); background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.cote { background: var(--surf); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.cote-entete { height: var(--entete); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 12px; font-weight: 700; flex: none; }
.cote-entete button.serveur-nom { flex: 1; text-align: left; background: none; border: 0; padding: 6px 8px; border-radius: var(--rc); display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 700; min-width: 0; }
.cote-entete button.serveur-nom span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cote-entete button.serveur-nom:hover { background: var(--surf2); }
.cote-entete .icone-btn { margin-left: auto; }
.cote-liste { flex: 1; overflow-y: auto; padding: 8px; min-height: 0; }
.cat { display: flex; align-items: center; justify-content: space-between; padding: 12px 6px 4px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); cursor: pointer; user-select: none; }
.cat:hover { color: var(--ink2); }
.cat .icone-btn { padding: 2px; visibility: hidden; }
.cat:hover .icone-btn { visibility: visible; }
.cat .chev { width: 12px; height: 12px; transition: transform .15s; }
.cat.replie .chev { transform: rotate(-90deg); }
.salon { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: var(--rc); color: var(--ink2); cursor: pointer; font-weight: 500; position: relative; }
.salon .ico { width: 18px; height: 18px; color: var(--ink3); }
.salon:hover { background: var(--surf2); color: var(--ink); }
.salon.actif { background: var(--surf3); color: var(--ink); }
.salon.non-lu { color: var(--ink); font-weight: 700; }
.salon.non-lu::before { content: ""; position: absolute; left: -8px; top: 50%; width: 4px; height: 8px; transform: translateY(-50%); background: var(--ink); border-radius: 0 4px 4px 0; }
.salon .nom { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.salon .pastille { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--rp); background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.salon .icone-btn { padding: 2px; visibility: hidden; }
.salon:hover .icone-btn { visibility: visible; }
.voix-liste { padding: 0 0 4px 26px; display: grid; gap: 2px; }
.voix-membre { display: flex; align-items: center; gap: 8px; padding: 3px 8px; border-radius: var(--rc); color: var(--ink2); font-size: .9rem; }
.voix-membre.parle .avatar { box-shadow: 0 0 0 2px var(--ok); }
.voix-membre .ico { width: 14px; height: 14px; color: var(--ink3); margin-left: auto; }
.voix-membre .ico + .ico { margin-left: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surf3); display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; position: relative; overflow: visible; color: var(--ink); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.petit { width: 24px; height: 24px; font-size: .65rem; }
.avatar.grand { width: 40px; height: 40px; font-size: .95rem; }
.avatar.geant { width: 80px; height: 80px; font-size: 1.8rem; }
.avatar .point { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--surf); background: var(--ink3); }
.avatar.petit .point { width: 10px; height: 10px; right: -3px; bottom: -3px; }
.point.en_ligne { background: var(--ok); }
.point.absent { background: var(--absent); }
.point.occupe { background: var(--occupe); }
.point.hors_ligne, .point.invisible { background: var(--ink3); }
.moi-panneau { height: 58px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 2px; padding: 0 8px; background: var(--bg); flex: none; }
.moi-identite { flex: 1; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 6px; border-radius: var(--rc); min-width: 0; text-align: left; }
.moi-identite:hover { background: var(--surf2); }
.moi-noms { display: grid; min-width: 0; line-height: 1.2; }
.moi-nom { font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moi-panneau .icone-btn.coupe { color: var(--danger); }
.voix-panneau { border-top: 1px solid var(--line); padding: 8px 12px; background: var(--surf); flex: none; }
.voix-panneau .etat { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ok); font-weight: 700; }
.voix-panneau .etat.probleme { color: var(--danger); }
.voix-panneau .nom-salon { font-size: .85rem; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voix-panneau .actions { display: flex; gap: 4px; margin-top: 6px; }
.voix-panneau .actions .icone-btn { flex: 1; justify-content: center; border: 1px solid var(--line); border-radius: var(--rc); }
.voix-panneau .actions .icone-btn.actif { background: var(--accent-dim); color: var(--accent); }
.principal { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.principal-entete { height: var(--entete); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 12px; flex: none; }
.principal-titre { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; flex: 1; }
.principal-titre .ico { color: var(--ink3); }
.principal-titre .sujet { font-weight: 400; color: var(--ink2); border-left: 1px solid var(--line2); padding-left: 10px; margin-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.principal-outils { display: flex; align-items: center; gap: 2px; }
.recherche { display: flex; align-items: center; gap: 4px; background: var(--surf2); border: 1px solid var(--line); border-radius: var(--rp); padding: 2px 8px; width: 160px; transition: width .15s; }
.recherche:focus-within { width: 260px; box-shadow: var(--ring); }
.recherche .ico { width: 16px; height: 16px; color: var(--ink3); }
.recherche input { background: none; border: 0; outline: none; width: 100%; font-size: .9rem; min-width: 0; }
.seulement-mobile { display: none; }
.vue-messages { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.messages { flex: 1; overflow-y: auto; padding: 12px 0 8px; outline: none; overscroll-behavior: contain; }
.messages-debut { padding: 24px 16px 12px; border-bottom: 1px solid var(--line); margin: 0 16px 8px; }
.messages-debut h2 { font-size: 1.4rem; }
.messages-debut .ico { color: var(--accent); }
.charger { display: block; margin: 0 auto 8px; }
.separateur { display: flex; align-items: center; gap: 12px; padding: 12px 16px 4px; font-size: .75rem; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; }
.separateur::before, .separateur::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.separateur.nouveau { color: var(--danger); }
.separateur.nouveau::before, .separateur.nouveau::after { background: var(--danger); }
.msg { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 2px 16px; }
.msg:hover { background: var(--surf); }
.msg.tete { margin-top: 10px; padding-top: 4px; }
.msg.suite .avatar { visibility: hidden; height: 0; }
.msg.suite .msg-entete { display: none; }
.heure-marge { position: absolute; left: 0; width: 56px; text-align: center; top: 4px; font-size: .68rem; color: var(--ink3); visibility: hidden; font-family: var(--mono); }
.msg.suite:hover .heure-marge { visibility: visible; }
.msg .avatar { margin-top: 2px; cursor: pointer; width: 40px; height: 40px; font-size: .95rem; }
.msg-corps { min-width: 0; }
.msg-entete { display: flex; align-items: baseline; gap: 8px; }
.msg-auteur { font-weight: 700; cursor: pointer; }
.msg-auteur:hover { text-decoration: underline; }
.msg-heure { font-size: .72rem; color: var(--ink3); }
.msg-role { font-size: .65rem; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 4px; }
.msg-texte { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-texte a { color: var(--accent); text-decoration: underline; }
.msg-texte .mention { background: var(--accent-dim); color: var(--accent); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.msg.mentionne { background: var(--accent-dim); box-shadow: inset 3px 0 0 var(--accent); }
.msg-modifie { font-size: .7rem; color: var(--ink3); margin-left: 4px; }
.msg-epingle { font-size: .7rem; color: var(--accent); display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; }
.msg-epingle .ico { width: 12px; height: 12px; }
.msg-reponse { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink2); margin-bottom: 2px; cursor: pointer; }
.msg-reponse::before { content: ""; width: 24px; height: 10px; border-left: 2px solid var(--line2); border-top: 2px solid var(--line2); border-radius: 6px 0 0 0; margin-left: 20px; margin-top: 8px; }
.msg-reponse .avatar { width: 16px; height: 16px; font-size: .55rem; }
.msg-reponse b { color: var(--ink); }
.msg-reponse span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.msg-pieces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.piece-image { max-width: min(420px, 100%); max-height: 320px; border-radius: var(--rc); border: 1px solid var(--line); object-fit: contain; background: var(--surf2); cursor: zoom-in; }
.piece-fichier { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--rc); background: var(--surf2); font-size: .85rem; max-width: 100%; }
.piece-fichier .ico { color: var(--accent); }
.piece-fichier b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.msg-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.reaction { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--rp); border: 1px solid var(--line); background: var(--surf2); font-size: .8rem; font-weight: 600; color: var(--ink2); }
.reaction .ico { width: 15px; height: 15px; }
.reaction:hover { border-color: var(--line2); color: var(--ink); }
.reaction.moi { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.msg-actions { position: absolute; right: 16px; top: -12px; display: none; background: var(--surf); border: 1px solid var(--line); border-radius: var(--rc); box-shadow: var(--shadow-card); padding: 2px; }
.msg:hover .msg-actions, .msg.menu-ouvert .msg-actions { display: flex; }
.msg-actions .icone-btn { padding: 4px; }
.msg-actions .icone-btn .ico { width: 18px; height: 18px; }
.choix-reactions { display: flex; gap: 2px; padding: 4px; }
.choix-reactions .icone-btn { padding: 6px; }
.msg-edition textarea { width: 100%; background: var(--surf2); border: 1px solid var(--line); border-radius: var(--rc); padding: .5rem .7rem; outline: none; resize: none; }
.msg-edition .aide { margin-top: 2px; }
.frappe { height: 22px; padding: 0 20px; font-size: .78rem; color: var(--ink2); display: flex; align-items: center; gap: 6px; }
.frappe .points { display: inline-flex; gap: 3px; }
.frappe .points i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink2); animation: frappe 1s infinite; }
.frappe .points i:nth-child(2) { animation-delay: .2s; }
.frappe .points i:nth-child(3) { animation-delay: .4s; }
@keyframes frappe { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.composer { padding: 0 16px max(12px, env(safe-area-inset-bottom, 0px)); flex: none; position: relative; }
.composer-ligne { display: flex; align-items: flex-end; gap: 4px; background: var(--surf2); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 6px; }
.composer-ligne:focus-within { box-shadow: var(--ring); }
.composer-ligne .icone-btn { flex: none; margin-bottom: 2px; }
.composer textarea { flex: 1; background: none; border: 0; outline: none; resize: none; padding: .55rem .4rem; max-height: 180px; line-height: 1.4; min-width: 0; }
.reponse-bandeau, .pieces-attente { background: var(--surf); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--rc) var(--rc) 0 0; padding: 6px 12px; font-size: .82rem; color: var(--ink2); display: flex; align-items: center; gap: 8px; }
.reponse-bandeau + .pieces-attente { border-top: 0; border-radius: 0; }
.reponse-bandeau b { color: var(--ink); }
.reponse-bandeau .icone-btn { margin-left: auto; padding: 2px; }
.pieces-attente { flex-wrap: wrap; gap: 8px; }
.piece-attente { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: var(--rc); padding: 4px 8px; background: var(--surf2); font-size: .8rem; }
.piece-attente img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.piece-attente .icone-btn { padding: 2px; }
.mentions { position: absolute; left: 16px; right: 16px; bottom: calc(100% - 4px); background: var(--surf); border: 1px solid var(--line); border-radius: var(--rc); box-shadow: var(--shadow-card); max-height: 240px; overflow-y: auto; padding: 4px; z-index: 5; }
.mention-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: .9rem; }
.mention-item.actif, .mention-item:hover { background: var(--surf2); }
.mention-item .sourd { margin-left: auto; }
.vue-vide { flex: 1; display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--ink2); }
.vue-vide .ico-grand { color: var(--accent); margin: 0 auto 1rem; }
.vue-vide h2 { color: var(--ink); }
.vue-vide .actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.vue-vocal { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 16px; gap: 12px; }
.vocal-grille { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-content: center; overflow-y: auto; }
.vocal-grille.avec-ecran { grid-template-columns: 1fr; align-content: start; }
.tuile { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); display: grid; place-items: center; gap: 8px; padding: 20px 12px; text-align: center; position: relative; min-height: 150px; }
.tuile.parle { box-shadow: inset 0 0 0 2px var(--ok); }
.tuile .avatar { width: 64px; height: 64px; font-size: 1.4rem; }
.tuile .nom { font-weight: 700; }
.tuile .etats { display: flex; gap: 4px; position: absolute; right: 10px; bottom: 10px; color: var(--ink3); }
.tuile .etats .ico { width: 16px; height: 16px; }
.tuile-ecran { grid-column: 1 / -1; background: #000; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; min-height: 240px; max-height: 70vh; }
.tuile-ecran video { width: 100%; height: 100%; object-fit: contain; max-height: 70vh; }
.tuile-ecran .etiquette { position: absolute; left: 12px; top: 12px; background: rgba(0,0,0,.6); color: #fff; padding: 2px 8px; border-radius: var(--rp); font-size: .8rem; }
.tuile-ecran { position: relative; }
.vocal-barre { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.vocal-barre .btn.actif { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.vocal-barre .btn.coupe { background: var(--danger-dim); border-color: var(--danger); color: var(--danger); }
.membres { width: var(--membres); background: var(--surf); border-left: 1px solid var(--line); overflow-y: auto; padding: 8px; }
.salon .reserve { color: var(--ink3); margin-left: 2px; }
.msg-fil { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; border-radius: var(--rp); border: 1px solid var(--line2); background: var(--surf2); color: var(--accent); font-size: .8rem; font-weight: 600; }
.msg-fil:hover { background: var(--surf3); }
/* panneau du fil : à droite, à la place des membres */
.fil { width: min(380px, 40vw); background: var(--surf); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.fil-entete { height: var(--entete); display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); flex: none; }
.fil-entete .sourd { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fil-messages { flex: 1; overflow-y: auto; padding: 8px 0; }
.fil-messages .msg { padding-left: 10px; padding-right: 10px; }
.fil-composer { display: flex; align-items: flex-end; gap: 4px; padding: 8px; border-top: 1px solid var(--line); flex: none; }
.fil-composer textarea { flex: 1; resize: none; background: var(--surf2); border: 1px solid var(--line); border-radius: var(--rc); padding: .5rem .7rem; max-height: 140px; }
.fil-composer textarea:focus { outline: none; box-shadow: var(--ring); }
.jauge { height: 8px; border-radius: var(--rp); background: var(--surf3); overflow: hidden; margin: 4px 0; }
.jauge span { display: block; height: 100%; background: var(--aube); border-radius: var(--rp); }
.case { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.case input { margin-top: 3px; accent-color: var(--accent); }
.membres .cat { cursor: default; }
.membre { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: var(--rc); cursor: pointer; }
.membre:hover { background: var(--surf2); }
.membre.hors-ligne { opacity: .45; }
.membre .noms { min-width: 0; line-height: 1.2; display: grid; flex: 1; }
.membre .nom { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.membre .nom.role-proprietaire { color: var(--accent); }
.membre .phrase { font-size: .75rem; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.membre .couronne { width: 14px; height: 14px; color: var(--accent); flex: none; }
.conv { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--rc); cursor: pointer; color: var(--ink2); position: relative; }
.conv:hover { background: var(--surf2); color: var(--ink); }
.conv.actif { background: var(--surf3); color: var(--ink); }
.conv.non-lu { color: var(--ink); font-weight: 700; }
.conv .noms { min-width: 0; flex: 1; line-height: 1.2; display: grid; }
.conv .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.conv .sous { font-size: .75rem; color: var(--ink3); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .pastille { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--rp); background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.conv .icone-btn { padding: 2px; visibility: hidden; }
.conv:hover .icone-btn { visibility: visible; }
.groupe-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); display: grid; place-items: center; flex: none; }
.groupe-avatar .ico { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ modales, surgissants, toasts */
.voile { position: fixed; inset: 0; background: rgba(13, 11, 31, .6); z-index: 40; }
.modale { position: fixed; inset: 0; z-index: 41; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modale-boite { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); width: min(560px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; }
.modale-boite.large { width: min(820px, 100%); }
.modale-entete { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modale-entete h2 { margin: 0; flex: 1; font-size: 1.15rem; }
.modale-corps { padding: 18px; overflow-y: auto; }
.modale-corps .formulaire { gap: .9rem; }
.modale-pied { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.modale-onglets { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.modale-onglets button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.modale-onglets button.actif { color: var(--ink); border-bottom-color: var(--accent); }
.liste-lignes { display: grid; gap: 4px; }
.ligne { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--rc); background: var(--surf2); }
.ligne .noms { flex: 1; min-width: 0; line-height: 1.25; }
.ligne .nom { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne .sous { display: block; font-size: .78rem; color: var(--ink3); }
.ligne .nom.libre { white-space: normal; font-weight: 400; }
.ligne select { background: var(--surf); border: 1px solid var(--line); border-radius: var(--rc); padding: .3rem .5rem; font-size: .85rem; }
.ligne code { font-size: .85rem; }
.ligne .actions { display: flex; gap: 2px; }
.icone-serveur-apercu { width: 80px; height: 80px; border-radius: 24px; background: var(--surf2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; overflow: hidden; cursor: pointer; }
.icone-serveur-apercu img { width: 100%; height: 100%; object-fit: cover; }
.choix-type { display: grid; gap: 6px; }
.choix-type label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--rc); padding: 10px 12px; cursor: pointer; font-weight: 500; color: var(--ink); }
.choix-type label:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); }
.choix-type input { accent-color: var(--accent); }
.choix-type .ico { color: var(--ink2); }
.choix-type small { display: block; color: var(--ink3); font-weight: 400; font-size: .78rem; }
.surgissant { position: fixed; z-index: 42; background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); width: 300px; overflow: hidden; }
.surgissant .bandeau { height: 56px; background: var(--aube); }
.surgissant .corps { padding: 0 16px 16px; }
.surgissant .avatar.geant { margin-top: -40px; border: 4px solid var(--surf); background-clip: padding-box; }
.surgissant h3 { margin: 8px 0 0; }
.surgissant .handle { font-family: var(--mono); font-size: .8rem; color: var(--ink3); }
.surgissant .phrase { margin: 8px 0; font-size: .9rem; }
.surgissant .kicker { margin-top: 12px; }
.surgissant .actions { display: grid; gap: 6px; margin-top: 12px; }
.menu { position: fixed; z-index: 42; background: var(--surf); border: 1px solid var(--line); border-radius: var(--rc); box-shadow: var(--shadow-card); padding: 4px; min-width: 200px; }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 8px 10px; border-radius: 8px; text-align: left; font-size: .9rem; font-weight: 500; }
.menu button:hover { background: var(--surf2); }
.menu button.danger { color: var(--danger); }
.menu .sep { height: 1px; background: var(--line); margin: 4px 0; }
.menu .ico { width: 18px; height: 18px; color: var(--ink2); }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 50; display: grid; gap: 6px; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: var(--rp); font-size: .88rem; font-weight: 600; box-shadow: var(--shadow-card); animation: toast .2s; }
.toast.erreur { background: var(--danger); color: #fff; }
@keyframes toast { from { opacity: 0; transform: translateY(6px); } }
.resultats { display: grid; gap: 6px; }
.resultat { border: 1px solid var(--line); border-radius: var(--rc); padding: 8px 12px; cursor: pointer; }
.resultat:hover { background: var(--surf2); }
.resultat .meta { font-size: .75rem; color: var(--ink3); display: flex; gap: 8px; }
.resultat .texte { font-size: .9rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.statuts { display: grid; gap: 6px; }
.statuts label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--rc); padding: 8px 12px; cursor: pointer; color: var(--ink); font-weight: 500; }
.statuts label:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); }
.statuts input { accent-color: var(--accent); }
.statuts .point { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.zoom { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .9); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }
.connexion-perdue { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 55; background: var(--danger); color: #fff; padding: 6px 14px; border-radius: var(--rp); font-size: .85rem; font-weight: 600; }
.cle-touche { font-family: var(--mono); font-size: .75rem; border: 1px solid var(--line2); border-radius: 4px; padding: 0 4px; }

/* ------------------------------------------------------------------ mobile */
@media (max-width: 860px) {
  .app-grille { grid-template-columns: 1fr; }
  .rail, .cote { position: fixed; top: 0; bottom: 0; z-index: 35; transform: translateX(-110%); transition: transform .2s; }
  .rail { left: 0; width: var(--rail); }
  .cote { left: var(--rail); width: min(var(--cote), calc(100vw - var(--rail))); transform: translateX(-160%); }
  body.cote-ouvert .rail, body.cote-ouvert .cote { transform: none; }
  body.cote-ouvert .voile { display: block !important; }
  .membres { position: fixed; right: 0; top: 0; bottom: 0; z-index: 36; width: min(300px, 90vw); }
  .fil { position: fixed; right: 0; top: 0; bottom: 0; z-index: 36; width: min(380px, 92vw); }
  .seulement-mobile { display: inline-flex; }
  .recherche { width: 36px; padding: 2px 6px; }
  .recherche input { display: none; }
  .recherche:focus-within { width: 200px; }
  .recherche:focus-within input { display: block; }
  .msg { padding: 2px 10px; }
  .msg-reponse span { max-width: 200px; }
  .principal-titre .sujet { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
