/* ════════════════════════════════════════════════════════════════
   LOSAM Live — charte Galaxy « papier & forêt »
   ════════════════════════════════════════════════════════════════ */
:root {
  --paper: #F5F3EC;
  --surf: #FFFEFA;
  --ink: #14281E;
  --ink2: #44584D;
  --ink3: #7A887F;
  --forest: #0F2F22;
  --forest2: #17402F;
  --emerald: #2B7A55;
  --mint: #6DB88E;
  --sage: #CFE7D6;
  --terra: #C4553C;
  --ochre: #B77C12;
  --line: rgba(20, 40, 30, .1);
  --line2: rgba(20, 40, 30, .18);
  --shadow: 0 1px 1px rgba(15, 47, 34, .04), 0 2px 6px rgba(15, 47, 34, .05), 0 12px 28px -14px rgba(15, 47, 34, .22);
  --shadow-lift: 0 2px 4px rgba(15, 47, 34, .06), 0 22px 44px -18px rgba(15, 47, 34, .36);
  --forest-grad: radial-gradient(120% 140% at 100% 0%, #2B7A55 0%, transparent 55%), radial-gradient(90% 120% at 0% 100%, #1A4A35 0%, transparent 60%), linear-gradient(135deg, #0F2F22, #123826);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
*, *::before, *::after { box-sizing: inherit; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.45;
}
body:not(.screen)::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(800px 520px at 88% -8%, rgba(109, 184, 142, .22), transparent 62%),
    radial-gradient(640px 460px at -6% 104%, rgba(43, 122, 85, .12), transparent 60%),
    linear-gradient(rgba(20, 40, 30, .028) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(20, 40, 30, .028) 1px, transparent 1px) 0 0 / 32px 32px;
}
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
h1, h2, h3 { text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--emerald); }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--sage); }

.boot { display: grid; place-items: center; min-height: 100vh; }

/* ───────── Marque ───────── */
.brand { display: inline-flex; align-items: baseline; gap: .32em; text-decoration: none; color: inherit; }
.brand b { font-weight: 700; letter-spacing: .24em; font-size: 14px; }
.brand em {
  font-size: 23px; line-height: 1;
  background: linear-gradient(100deg, #2B7A55, #6DB88E 60%, #2B7A55);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.on-dark .brand b { color: #F5F3EC; }
.on-dark .brand em { background-image: linear-gradient(100deg, #A9D9BC, #6DB88E 60%, #CFE7D6); }

/* ───────── Intro ───────── */
.intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(600px 400px at 50% 48%, rgba(109, 184, 142, .35), transparent 70%), var(--paper);
  transition: opacity .55s var(--ease), visibility .55s;
}
.intro .w { display: flex; align-items: baseline; gap: .3em; }
.intro .l { font-weight: 700; font-size: clamp(30px, 6vw, 56px); letter-spacing: .28em; display: inline-block; opacity: 0; transform: translateY(18px); animation: il .6s var(--ease) forwards; }
.intro .live {
  font-family: var(--serif); font-style: italic; font-size: clamp(46px, 9vw, 86px); opacity: 0; transform: translateY(-14px);
  background: linear-gradient(100deg, #0F2F22, #2B7A55 45%, #6DB88E); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: il .8s var(--ease) .5s forwards; padding-right: .1em;
}
.intro.out { opacity: 0; visibility: hidden; }
.intro.out .w { transform: scale(1.04); transition: transform .55s var(--ease); }
@keyframes il { to { opacity: 1; transform: none; } }

/* ───────── Boutons & champs ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 1px solid var(--line2); background: var(--surf); color: var(--ink);
  padding: .58em 1.05em; border-radius: 999px; cursor: pointer; font-weight: 500; line-height: 1.2;
  transition: background .18s, border-color .18s, transform .12s, box-shadow .18s; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: rgba(20, 40, 30, .32); box-shadow: 0 6px 16px -10px rgba(15, 47, 34, .4); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--forest); color: #F5F3EC; border-color: var(--forest); }
.btn.primary:hover { background: var(--forest2); }
.btn.green { background: var(--emerald); color: #fff; border-color: var(--emerald); }
.btn.cream { background: #F5F3EC; color: var(--forest); border-color: transparent; }
.btn.glass { background: rgba(245, 243, 236, .1); color: #F5F3EC; border-color: rgba(245, 243, 236, .22); }
.btn.glass:hover { background: rgba(245, 243, 236, .18); }
.btn.danger { color: var(--terra); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: rgba(20, 40, 30, .06); }
.btn.sm { padding: .38em .8em; font-size: 13px; }
.btn.lg { padding: .9em 1.5em; font-size: 16.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn svg { width: 16px; height: 16px; flex: none; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; color: var(--ink2); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--line2); background: var(--surf); border-radius: 12px;
  padding: .7em .85em; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(43, 122, 85, .14); }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.4; }
.hint { font-size: 12.5px; color: var(--ink3); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--emerald); width: 17px; height: 17px; }
.check small { display: block; color: var(--ink3); }

.chip {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: .38em .9em;
  border: 1px solid var(--line2); background: var(--surf); font-size: 13.5px; cursor: pointer; transition: all .15s;
}
.chip i { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--sage)); display: inline-block; box-shadow: inset 0 0 0 1px rgba(20, 40, 30, .12); }
.chip.on { border-color: var(--forest); background: var(--forest); color: #F5F3EC; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: .2em .65em; border-radius: 999px; background: var(--sage); color: var(--forest); }
.tag.live { background: var(--terra); color: #fff; }
.tag.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
.tag.closed { background: rgba(20, 40, 30, .07); color: var(--ink2); }
.cc { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--cc, var(--emerald)); }
.cc::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.code { font-family: var(--mono); font-weight: 700; letter-spacing: .14em; }
.over { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
@keyframes blink { 50% { opacity: .35; } }

.card { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.demo-banner { background: #F3E3B5; color: #5C3F08; font-size: 12.5px; text-align: center; padding: 6px 12px; position: relative; z-index: 30; }

/* ───────── Toasts / modale / popover ───────── */
#toasts { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: 8px; z-index: 150; pointer-events: none; justify-items: center; }
.toast { background: var(--forest); color: #F5F3EC; padding: .65em 1.2em; border-radius: 999px; box-shadow: var(--shadow-lift); font-size: 14px; animation: tin .3s var(--ease); }
.toast.err { background: var(--terra); }
@keyframes tin { from { opacity: 0; transform: translateY(10px) scale(.97); } }

.modal-bg { position: fixed; inset: 0; background: rgba(15, 47, 34, .32); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 120; padding: 16px; animation: fade .18s; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 28px; animation: rise .3s var(--ease); }
.modal h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; margin: 0 0 18px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.pop { position: fixed; z-index: 110; width: 270px; padding: 14px; display: grid; gap: 8px; animation: rise .18s var(--ease); }
.pop .pop-txt { font-family: var(--serif); font-size: 19px; line-height: 1.25; max-height: 130px; overflow: auto; }
.pop .pop-by { font-size: 12.5px; color: var(--ink3); }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 2px 0; width: 100%; }
.pop .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pop .btn { justify-content: flex-start; }

/* ───────── Carte forêt (signature Galaxy) ───────── */
.hero {
  position: relative; overflow: hidden; color: #F5F3EC; background: var(--forest-grad);
  border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(15, 47, 34, .65), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.hero .over { color: rgba(245, 243, 236, .6); }
.hero .lines { position: absolute; right: -60px; top: -60px; width: 360px; height: 360px; opacity: .18; pointer-events: none; }

/* ───────── Accueil participant ───────── */
.join-wrap { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; padding: 22px; }
.join { align-self: center; justify-self: center; width: min(440px, 100%); text-align: center; }
.join h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 12vw, 72px); line-height: .95; margin: 0 0 14px; }
.join h1 em { color: var(--emerald); }
.join p { color: var(--ink2); margin: 0 0 28px; }
.join .codein { text-align: center; font-family: var(--mono); font-size: 30px; letter-spacing: .32em; text-transform: uppercase; padding: .55em; border-radius: 18px; box-shadow: var(--shadow); }
.join .btn { width: 100%; margin-top: 12px; }
.foot { text-align: center; font-size: 13px; color: var(--ink3); }
.foot a { color: var(--ink3); }

/* ───────── Participant ───────── */
.p-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.p-hero { margin: 12px 12px 0; padding: 18px 20px 54px; border-radius: 26px; }
.p-hero .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; z-index: 1; }
.p-hero .who { font-size: 12.5px; color: rgba(245, 243, 236, .75); text-align: right; line-height: 1.3; }
.p-hero .who button { border: 0; background: none; color: #A9D9BC; padding: 0; cursor: pointer; font-size: 12.5px; }
.p-title { position: relative; z-index: 1; margin-top: 22px; }
.p-title h1 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.02; margin: 4px 0 0; }
.p-title .sub { color: rgba(245, 243, 236, .65); font-size: 13px; margin-top: 8px; }
.p-main { flex: 1; padding: 0 16px 28px; width: min(560px, 100%); margin: -38px auto 0; position: relative; z-index: 2; }
.p-tabs { display: flex; gap: 4px; background: var(--surf); padding: 5px; border-radius: 999px; margin-bottom: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.p-tabs button { flex: 1; border: 0; background: none; padding: .6em; border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--ink2); transition: all .2s; }
.p-tabs button.on { background: var(--forest); color: #F5F3EC; }
.p-tabs .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--terra); margin-left: 7px; vertical-align: middle; animation: blink 1.4s infinite; }

.composer { padding: 20px; position: relative; overflow: hidden; }
.composer .paper {
  position: relative; background: var(--nc, #F4E6B8); border-radius: 4px 4px 14px 4px; padding: 16px 16px 10px;
  box-shadow: 0 1px 2px rgba(15, 47, 34, .1), 0 16px 26px -16px rgba(15, 47, 34, .55);
  transform: rotate(-1.2deg); transition: background .25s;
}
.composer .paper::before { content: ""; position: absolute; top: -9px; left: 50%; width: 74px; height: 20px; transform: translateX(-50%) rotate(-2deg); background: rgba(255, 254, 250, .55); border: 1px solid rgba(20, 40, 30, .06); }
.composer textarea { width: 100%; border: 0; background: transparent; resize: none; outline: none; font-family: var(--serif); font-size: 24px; line-height: 1.22; min-height: 150px; color: var(--ink); }
.composer textarea::placeholder { color: rgba(20, 40, 30, .38); }
.composer .count { text-align: right; font-size: 11.5px; color: rgba(20, 40, 30, .5); font-variant-numeric: tabular-nums; }
.composer .cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.composer .send { width: 100%; margin-top: 16px; }
.composer.fly .paper { animation: fly .6s cubic-bezier(.5, 0, .7, .2) forwards; }
@keyframes fly { to { transform: translateY(-160%) rotate(-9deg) scale(.65); opacity: 0; } }

.sent { text-align: center; padding: 30px 20px; }
.sent .ok { width: 60px; height: 60px; border-radius: 50%; background: var(--forest-grad); color: #F5F3EC; display: grid; place-items: center; margin: 0 auto 14px; font-size: 26px; animation: pop .55s cubic-bezier(.2, 1.4, .4, 1); }
.sent h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; margin: 0 0 6px; }
.mine { margin-top: 22px; }
.mine h3 { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); margin: 0 0 10px; }
.mine .mn { background: var(--surf); border: 1px solid var(--line); border-left: 5px solid var(--nc, #F4E6B8); border-radius: 10px; padding: 9px 12px; font-size: 14px; margin-bottom: 7px; }

.waiting { text-align: center; padding: 46px 18px; }
.waiting .pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--mint); margin: 0 auto 20px; animation: pulse 1.8s infinite; }
.waiting h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; color: var(--ink); margin: 0 0 6px; }
.waiting p { color: var(--ink2); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(109, 184, 142, .6); } 100% { box-shadow: 0 0 0 24px rgba(109, 184, 142, 0); } }

.ident { padding: 24px; }
.ident h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 6px; }
.ident p { color: var(--ink2); margin: 0 0 18px; font-size: 14px; }
.notice { font-size: 12px; color: var(--ink3); margin-top: 16px; line-height: 1.45; }

.vote { padding: 22px; }
.vote h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.06; margin: 0 0 6px; }
.vote .kind { font-size: 13px; color: var(--ink3); margin-bottom: 18px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 15px 16px; margin-bottom: 9px;
  border: 1px solid var(--line2); border-radius: 14px; background: var(--surf); cursor: pointer; font-size: 16px; transition: all .18s;
}
.opt:hover { border-color: rgba(20, 40, 30, .32); }
.opt .box { width: 22px; height: 22px; border: 2px solid rgba(20, 40, 30, .28); border-radius: 50%; flex: none; display: grid; place-items: center; transition: all .18s; }
.opt.multi .box { border-radius: 7px; }
.opt.on { border-color: var(--emerald); background: #EDF6F0; box-shadow: 0 0 0 1px var(--emerald); }
.opt.on .box { border-color: var(--emerald); background: var(--emerald); }
.opt.on .box::after { content: ""; width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.opt.multi.on .box::after { border-radius: 2px; }
.scale { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 7px; }
.scale button { aspect-ratio: 1; border: 1px solid var(--line2); background: var(--surf); border-radius: 14px; font-family: var(--serif); font-size: 26px; cursor: pointer; transition: all .18s; }
.scale button.on { background: var(--forest); color: #F5F3EC; border-color: var(--forest); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.scale-lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink3); margin-top: 8px; }
.words-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.voted { margin-top: 16px; font-size: 14px; color: var(--emerald); font-weight: 500; text-align: center; }

/* ───────── Animateur : coquille Galaxy ───────── */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sb {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 22px 14px 16px;
  border-right: 1px solid var(--line); background: rgba(255, 254, 250, .55); backdrop-filter: blur(12px);
}
.sb .brand { padding: 0 10px 18px; }
.sb .brand em { font-size: 26px; }
.sb-new { margin: 0 4px 16px; }
.sb-sec { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); padding: 12px 10px 6px; }
.sb-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink2); text-decoration: none;
  font-size: 14px; font-weight: 500; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; transition: background .15s, color .15s;
}
.sb-item:hover { background: rgba(20, 40, 30, .05); color: var(--ink); }
.sb-item.on { background: var(--surf); color: var(--ink); box-shadow: var(--shadow); }
.sb-item .d { width: 9px; height: 9px; border-radius: 50%; background: var(--cc, var(--emerald)); flex: none; }
.sb-item svg { width: 17px; height: 17px; flex: none; opacity: .75; }
.sb-item .n { margin-left: auto; font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.sb-scroll { overflow: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }
.sb-foot { border-top: 1px solid var(--line); padding: 12px 10px 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--ink3); }
.sb-foot .u { color: var(--ink2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-foot .v { display: inline-flex; align-self: start; padding: .15em .6em; border-radius: 99px; background: rgba(20, 40, 30, .06); font-size: 11.5px; }
.sb-foot button { border: 0; background: none; padding: 0; color: var(--emerald); cursor: pointer; font-size: 12.5px; text-align: left; }
.mtop { display: none; }
.main { min-width: 0; padding: 30px 34px 70px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: .95; margin: 6px 0 0; }
.page-head h1 em { color: var(--emerald); }

/* Liste des sessions */
.next { padding: 28px 30px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: center; margin-bottom: 30px; }
.next > * { position: relative; z-index: 1; }
.next h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; margin: 10px 0 12px; }
.next .meta { color: rgba(245, 243, 236, .72); font-size: 14.5px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.next .jx { font-family: var(--serif); font-style: italic; font-size: 22px; color: #A9D9BC; }
.next .row { margin-top: 20px; }
.next .qrt { background: #F5F3EC; border-radius: 18px; padding: 12px; width: 148px; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .6); text-align: center; }
.next .qrt .code { color: var(--forest); font-size: 15px; display: block; margin-top: 6px; }
.sect { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 14px; }
.sect h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0; }
.sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.sess { padding: 20px 20px 16px; display: grid; gap: 10px; position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.sess::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cc, var(--emerald)); }
.sess:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.sess h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.1; }
.sess .meta { font-size: 13px; color: var(--ink2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sess.is-past { opacity: .7; }
.sess.is-past:hover { opacity: 1; }
.empty { text-align: center; padding: 64px 22px; color: var(--ink2); }
.empty h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; color: var(--ink); margin: 0 0 8px; }
.login { width: min(420px, 100%); margin: 9vh auto; padding: 32px; }
.login h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; margin: 0 0 22px; }
.login h1 em { color: var(--emerald); }
.err-msg { color: var(--terra); font-size: 13.5px; margin: -4px 0 10px; min-height: 1em; }

/* Console */
.c-hero { padding: 22px 26px; display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.c-hero > * { position: relative; z-index: 1; }
.c-hero .tt { flex: 1; min-width: 0; }
.c-hero input {
  display: block; width: 100%; border: 0; background: transparent; color: #F5F3EC; outline: none; min-width: 0;
  font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; padding: 4px 8px; margin: 4px -8px 0; border-radius: 10px;
}
.c-hero input:hover, .c-hero input:focus { background: rgba(245, 243, 236, .08); }
.c-hero .status { display: grid; justify-items: end; gap: 8px; text-align: right; }
.c-hero .code { font-size: 26px; color: #F5F3EC; }
.livepill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: .35em .8em; border-radius: 99px; background: rgba(245, 243, 236, .1); color: #CFE7D6; }
.livepill i { width: 8px; height: 8px; border-radius: 50%; background: #6DB88E; box-shadow: 0 0 0 0 rgba(109, 184, 142, .7); animation: pulse 1.8s infinite; }
.livepill.off { color: rgba(245, 243, 236, .55); }
.livepill.off i { background: rgba(245, 243, 236, .4); animation: none; }
.console { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 20px; }
.tabs { display: inline-flex; gap: 4px; background: rgba(20, 40, 30, .06); padding: 4px; border-radius: 999px; margin-bottom: 16px; }
.tabs button { border: 0; background: none; padding: .55em 1.1em; cursor: pointer; font-weight: 500; color: var(--ink2); border-radius: 999px; transition: all .18s; }
.tabs button.on { background: var(--surf); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 47, 34, .14); }
.tabs button .n { font-size: 11.5px; background: rgba(20, 40, 30, .08); padding: .05em .55em; border-radius: 99px; margin-left: 7px; font-variant-numeric: tabular-nums; }
.tabs button.on .n { background: var(--sage); color: var(--forest); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; background: rgba(20, 40, 30, .06); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: .42em .95em; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--ink2); transition: all .18s; }
.seg button.on { background: var(--surf); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 47, 34, .15); }
.seg button[disabled] { opacity: .4; cursor: not-allowed; }
.pending { padding: 14px 16px; margin-bottom: 14px; display: grid; gap: 8px; border-color: rgba(183, 124, 18, .35); background: #FFFBF0; }
.pending h4 { margin: 0; font-size: 14px; color: #7A5208; }
.pending .pi { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.pending .pi span { flex: 1; }

.side { display: grid; gap: 14px; align-content: start; position: sticky; top: 20px; }
.panel { padding: 18px; }
.panel h4 { margin: 0 0 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.panel .seg { display: flex; }
.panel .seg button { flex: 1; }
.qr-mini { display: flex; gap: 14px; align-items: center; }
.qr-mini .qr { width: 96px; flex: none; background: #fff; border-radius: 12px; padding: 6px; border: 1px solid var(--line); }
.qr-mini .code { font-size: 21px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stats div { background: rgba(20, 40, 30, .035); border-radius: 12px; padding: 12px; }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: .95; }
.stats span { font-size: 12px; color: var(--ink2); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 23px; border-radius: 99px; background: rgba(20, 40, 30, .18); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .22); }
.switch input:checked { background: var(--emerald); }
.switch input:checked::after { transform: translateX(17px); }

/* Sondages (animateur) */
.polls { display: grid; gap: 14px; }
.poll { padding: 20px 22px; transition: box-shadow .2s; }
.poll.is-live { border-color: transparent; box-shadow: 0 0 0 2px var(--terra), var(--shadow-lift); }
.poll-h { display: flex; gap: 10px; align-items: start; }
.poll-h h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.1; flex: 1; }
.poll-k { font-size: 12.5px; color: var(--ink3); margin: 6px 0 14px; }
.poll .row { margin-top: 14px; }
.opt-ed { display: flex; gap: 8px; margin-bottom: 8px; }

/* Réglages */
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.settings .card { padding: 22px; }
.settings h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 25px; }
.cat-ed { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.sw { display: flex; gap: 4px; }
.sw button { width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line); cursor: pointer; background: var(--c); }
.sw button.on { box-shadow: 0 0 0 2px var(--surf), 0 0 0 4px var(--forest); }

/* ───────── Mur de post-its ───────── */
.board {
  position: relative; width: 100%; aspect-ratio: 16 / 9; container-type: inline-size;
  border-radius: var(--r); overflow: hidden; user-select: none; touch-action: none;
}
.board.light {
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(109, 184, 142, .12), transparent 70%),
    radial-gradient(circle, rgba(20, 40, 30, .12) 1px, transparent 1.4px) 0 0 / 26px 26px,
    #FCFBF6;
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 #fff, var(--shadow);
}
.col-h {
  position: absolute; top: 1.4cqw; height: 3.4cqw; display: flex; align-items: center; gap: .7cqw;
  font-family: var(--serif); font-size: 2cqw; padding: 0 1cqw; overflow: hidden; white-space: nowrap;
}
.col-h i { width: 1.1cqw; height: 1.1cqw; border-radius: .3cqw; background: var(--c); flex: none; box-shadow: inset 0 0 0 1px rgba(20, 40, 30, .12); }
.col-h span { font-family: var(--sans); font-size: 1.2cqw; opacity: .55; }
.col-sep { position: absolute; top: 1.6cqw; bottom: 1.6cqw; width: 1px; background: linear-gradient(transparent, rgba(20, 40, 30, .14), transparent); }
.note {
  position: absolute; width: calc(var(--w) * 1cqw); aspect-ratio: 1 / .82;
  background: linear-gradient(170deg, rgba(255, 255, 255, .35), transparent 40%), var(--bg, #F4E6B8); color: #14281E;
  border-radius: .25cqw .25cqw .9cqw .25cqw;
  padding: calc(var(--w) * .075cqw); display: flex; flex-direction: column;
  box-shadow: 0 .1cqw .2cqw rgba(15, 47, 34, .12), 0 1cqw 1.4cqw -.9cqw rgba(15, 47, 34, .5);
  transform: rotate(var(--rot, 0deg));
  transition: left .5s var(--ease), top .5s var(--ease), width .5s var(--ease), transform .2s, opacity .2s, box-shadow .2s;
}
.note .nt { font-size: calc(var(--w) * var(--fs, .085) * 1cqw); line-height: 1.22; overflow: hidden; flex: 1; overflow-wrap: anywhere; }
.note .nb { font-size: calc(var(--w) * .058cqw); opacity: .6; margin-top: .3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note.new { animation: pop .6s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { 0% { transform: scale(.2) rotate(-16deg); opacity: 0; } 100% { transform: scale(1) rotate(var(--rot, 0deg)); opacity: 1; } }
.board.edit .note { cursor: grab; }
.board.edit .note:hover { box-shadow: 0 0 0 .18cqw var(--emerald), 0 1.2cqw 1.8cqw -.9cqw rgba(15, 47, 34, .55); }
.note.dragging { cursor: grabbing; transition: none; z-index: 30; transform: rotate(0) scale(1.07); box-shadow: 0 2.4cqw 3.2cqw -1cqw rgba(15, 47, 34, .55); }
.note.is-hidden { opacity: .32; }
.note.is-pending { outline: .2cqw dashed var(--ochre); outline-offset: .25cqw; }
.note.is-spot { box-shadow: 0 0 0 .3cqw var(--terra), 0 1cqw 1.6cqw -.8cqw rgba(15, 47, 34, .5); }
.board-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--ink3); font-size: 1.5cqw; padding: 4cqw; }
.board-empty b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 3.6cqw; color: var(--ink); margin-bottom: .6cqw; }

/* ───────── Résultats de sondage ───────── */
.res { display: grid; gap: 12px; }
.bar { display: grid; gap: 5px; }
.bar .bl { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.bar .bl b { font-variant-numeric: tabular-nums; }
.bar .bt { height: 12px; border-radius: 99px; background: rgba(20, 40, 30, .07); overflow: hidden; }
.bar .bf { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2B7A55, #6DB88E); width: var(--p); transition: width .9s var(--ease); }
.bar.top .bf { background: linear-gradient(90deg, #0F2F22, #2B7A55); }
.cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .15em .55em; padding: 10px; line-height: 1.05; font-size: 15px; }
.cloud span { font-weight: 600; color: var(--emerald); transition: font-size .7s var(--ease); }
.cloud span:nth-child(3n+2) { color: var(--forest); font-family: var(--serif); font-style: italic; font-weight: 400; }
.cloud span:nth-child(3n) { color: var(--mint); }
.avg { display: flex; align-items: baseline; gap: 8px; }
.avg b { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1; }
.res-n { font-size: 12.5px; color: var(--ink3); margin-top: 6px; }
.res-hidden { color: var(--ink3); font-size: 14px; padding: 6px 0; }

/* ───────── Écran de projection ───────── */
body.screen { background: #0A2219; color: #F5F3EC; overflow: hidden; }
.s-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(120% 90% at 50% 120%, #0E3426, #0A2219 70%); }
.s-bg i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 38s ease-in-out infinite alternate; }
.s-bg i:nth-child(1) { width: 55vw; height: 55vw; left: 52%; top: -26%; background: #2B7A55; }
.s-bg i:nth-child(2) { width: 42vw; height: 42vw; left: -14%; top: 52%; background: #1E5A40; animation-duration: 46s; animation-delay: -12s; }
.s-bg i:nth-child(3) { width: 26vw; height: 26vw; left: 30%; top: 40%; background: #6DB88E; opacity: .14; animation-duration: 52s; }
.s-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6vw, 5vh) scale(1.08); } 100% { transform: translate(4vw, -4vh) scale(.95); } }
.s-wrap { position: relative; z-index: 1; height: 100vh; display: flex; flex-direction: column; padding: 2.4vh 2.8vw; gap: 2vh; }
.s-head { display: flex; align-items: center; gap: 2vw; }
.s-head .brand b { font-size: 1.15vw; }
.s-head .brand em { font-size: 2vw; }
.s-head .t { flex: 1; font-family: var(--serif); font-size: 2.2vw; line-height: 1.1; color: rgba(245, 243, 236, .94); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-join { display: flex; align-items: center; gap: 1vw; background: rgba(245, 243, 236, .07); border: 1px solid rgba(245, 243, 236, .13); border-radius: 1.2vw; padding: .6vw .9vw .6vw .6vw; backdrop-filter: blur(10px); }
.s-join .qr { width: 5.4vw; background: #F5F3EC; border-radius: .6vw; padding: .3vw; }
.s-join small { display: block; font-size: .85vw; opacity: .65; }
.s-join .code { font-size: 1.7vw; color: #F5F3EC; }
.s-stage { flex: 1; min-height: 0; display: grid; place-items: center; }
.s-board { width: min(100%, calc((100vh - 15vh) * 16 / 9)); }
.board.dark { background: transparent; }
.board.dark .col-h { color: #F5F3EC; }
.board.dark .col-sep { background: linear-gradient(transparent, rgba(245, 243, 236, .16), transparent); }
.board.dark .board-empty { color: rgba(245, 243, 236, .6); }
.board.dark .board-empty b { color: #F5F3EC; }
.board.dark .note { box-shadow: 0 .1cqw .2cqw rgba(0, 0, 0, .25), 0 1.2cqw 1.8cqw -.8cqw rgba(0, 0, 0, .7); }

.s-qr { display: grid; grid-template-columns: minmax(0, 1.1fr) auto; gap: 6vw; align-items: center; width: min(1500px, 90vw); }
.s-qr .over { color: rgba(245, 243, 236, .55); font-size: 1vw; letter-spacing: .2em; }
.s-qr h1 { font-family: var(--serif); font-weight: 400; font-size: 5vw; line-height: .98; margin: 2vh 0 5vh; }
.s-qr ol { list-style: none; padding: 0; margin: 0 0 5vh; display: grid; gap: 1.6vh; counter-reset: s; }
.s-qr li { counter-increment: s; display: flex; align-items: baseline; gap: 1.2vw; font-size: 1.6vw; color: rgba(245, 243, 236, .85); }
.s-qr li::before { content: counter(s); font-family: var(--serif); font-style: italic; font-size: 2.4vw; color: var(--mint); width: 1.6vw; }
.s-qr .url { font-family: var(--mono); font-size: 1.4vw; color: rgba(245, 243, 236, .6); }
.s-qr .bigcode { font-family: var(--mono); font-weight: 700; letter-spacing: .2em; font-size: 4.4vw; display: block; margin-top: .6vh; color: #F5F3EC; }
.s-qr .qrbox { position: relative; }
.s-qr .qr { width: min(32vw, 62vh); background: #F5F3EC; border-radius: 2.2vw; padding: 1.8vw; box-shadow: 0 4vw 7vw -3vw rgba(0, 0, 0, .7); position: relative; z-index: 1; }
.s-qr .qrbox::before { content: ""; position: absolute; inset: -1.4vw; border-radius: 3vw; border: 1px solid rgba(109, 184, 142, .35); animation: ring 3.2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.96); opacity: .9; } 100% { transform: scale(1.1); opacity: 0; } }

.s-poll { width: min(1450px, 90vw); }
.s-poll .over { text-align: center; color: rgba(245, 243, 236, .55); font-size: 1vw; letter-spacing: .2em; }
.s-poll h1 { font-family: var(--serif); font-weight: 400; font-size: 4.2vw; line-height: 1.04; margin: 1.4vh 0 5vh; text-align: center; }
.s-poll .res { gap: 2.6vh; }
.s-poll .bar .bl { font-size: 1.9vw; }
.s-poll .bar .bt { height: 2.8vh; background: rgba(245, 243, 236, .09); }
.s-poll .bar .bf { background: linear-gradient(90deg, #2B7A55, #6DB88E); }
.s-poll .bar.top .bf { background: linear-gradient(90deg, #6DB88E, #CFE7D6); box-shadow: 0 0 2vw rgba(109, 184, 142, .45); }
.s-poll .cloud { font-size: 2.2vw; min-height: 30vh; }
.s-poll .cloud span { color: var(--mint); }
.s-poll .cloud span:nth-child(3n+2) { color: #F5F3EC; }
.s-poll .cloud span:nth-child(3n) { color: #A9D9BC; }
.s-poll .avg { justify-content: center; margin-bottom: 3vh; }
.s-poll .avg b { font-size: 10vw; background: linear-gradient(180deg, #F5F3EC, #A9D9BC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-poll .avg span { font-size: 2vw; opacity: .7; }
.s-poll .res-n, .s-poll .res-hidden { text-align: center; font-size: 1.4vw; color: rgba(245, 243, 236, .6); margin-top: 2.4vh; }

.spot { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(6, 22, 15, .72); backdrop-filter: blur(8px); z-index: 40; animation: fade .3s; }
.spot .note-big {
  width: min(58vw, 92vh); aspect-ratio: 1 / .82; background: linear-gradient(170deg, rgba(255, 255, 255, .4), transparent 40%), var(--bg, #F4E6B8); color: #14281E;
  border-radius: .6vw .6vw 2.4vw .6vw; padding: 3.8vw; display: flex; flex-direction: column; justify-content: center; transform: rotate(-1.5deg);
  box-shadow: 0 5vw 9vw -3vw rgba(0, 0, 0, .75); animation: pop .55s cubic-bezier(.2, 1.4, .4, 1);
}
.spot .note-big .nt { font-size: var(--bfs, 3.6vw); line-height: 1.18; font-family: var(--serif); }
.spot .note-big .nb { font-size: 1.4vw; opacity: .6; margin-top: 2vw; }
.s-fs { position: fixed; right: 1.4vw; bottom: 1.4vw; z-index: 50; opacity: 0; transition: opacity .3s; background: rgba(245, 243, 236, .1); color: #F5F3EC; border: 1px solid rgba(245, 243, 236, .18); border-radius: 99px; padding: .5em 1em; cursor: pointer; }
body.screen:hover .s-fs { opacity: .85; }
.s-count { font-size: 1vw; opacity: .6; }




/* ───────── Graphiques de sondage ───────── */
.pres, #pr { container-type: inline-size; }
.chart { --fill: linear-gradient(90deg, #2B7A55, #6DB88E); --fill-v: linear-gradient(0deg, #2B7A55, #6DB88E); --top: #0F2F22; --track: rgba(20, 40, 30, .07); }
.screen.dark .chart { --fill-v: linear-gradient(0deg, #2B7A55, #6DB88E); --top: #CFE7D6; --track: rgba(245, 243, 236, .1); }
.chart .avg { justify-content: center; margin-bottom: 2cqw; }

.cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(8px, 2.4cqw, 44px); height: clamp(170px, 30cqw, 46vh); align-items: end; }
.col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; gap: clamp(4px, .8cqw, 14px); min-width: 0; }
.col .cv { font-family: var(--serif); font-weight: 400; font-size: clamp(18px, 3.4cqw, 64px); line-height: 1; }
.col .ct { position: relative; background: var(--track); border-radius: clamp(6px, 1cqw, 16px); overflow: hidden; }
.col .cf { position: absolute; left: 0; right: 0; bottom: 0; height: var(--p); background: var(--fill-v); border-radius: inherit; transition: height .9s var(--ease); }
.col.top .cf { background: var(--top); }
.col .cl { font-size: clamp(12px, 1.7cqw, 30px); line-height: 1.2; overflow-wrap: anywhere; }
.scale-ends { display: flex; justify-content: space-between; font-size: clamp(12px, 1.4cqw, 24px); opacity: .6; margin-top: 1cqw; }

.donut-wrap { display: flex; align-items: center; gap: clamp(16px, 5cqw, 90px); justify-content: center; flex-wrap: wrap; }
.donut { position: relative; width: clamp(170px, 30cqw, 44vh); flex: none; }
.donut svg { display: block; width: 100%; transform: rotate(0deg); }
.donut .dtrack { stroke: var(--track); }
.donut .dseg { transition: stroke-dasharray .9s var(--ease), stroke-dashoffset .9s var(--ease); }
.donut .dc { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 22%; }
.donut .dc b { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 6cqw, 110px); line-height: 1; }
.donut .dc span { font-size: clamp(11px, 1.4cqw, 24px); opacity: .7; margin-top: .3em; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(6px, 1.2cqw, 20px); min-width: min(100%, 220px); flex: 1; max-width: 560px; }
.legend li { display: flex; align-items: center; gap: clamp(8px, 1cqw, 16px); font-size: clamp(13px, 1.8cqw, 32px); }
.legend li i { width: clamp(10px, 1.2cqw, 20px); height: clamp(10px, 1.2cqw, 20px); border-radius: 4px; flex: none; }
.legend li span { flex: 1; min-width: 0; }
.legend li b { font-variant-numeric: tabular-nums; }
.legend li.top span { font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(120px, 18cqw, 340px), 1fr)); gap: clamp(8px, 1.6cqw, 28px); }
.tile { position: relative; overflow: hidden; border-radius: clamp(12px, 1.6cqw, 28px); padding: clamp(14px, 2.2cqw, 40px); background: var(--track); display: grid; gap: .3em; min-height: clamp(110px, 16cqw, 30vh); align-content: end; }
.tile .tfill { position: absolute; left: 0; right: 0; bottom: 0; height: var(--p); background: rgba(109, 184, 142, .22); transition: height .9s var(--ease); }
.tile > :not(.tfill) { position: relative; }
.tile .tp { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 6.4cqw, 120px); line-height: .95; }
.tile .tl { font-size: clamp(13px, 1.7cqw, 30px); line-height: 1.2; }
.tile .tc { font-size: clamp(11px, 1.2cqw, 20px); opacity: .6; }
.tile.top { background: var(--forest-grad); color: #F5F3EC; }
.tile.top .tfill { background: rgba(245, 243, 236, .1); }
.screen.dark .tile.top { background: #F5F3EC; color: #0F2F22; }

.gauge { position: relative; width: clamp(240px, 52cqw, 80vh); margin: 0 auto; text-align: center; }
.gauge svg { display: block; width: 100%; overflow: visible; }
.gauge .gtrack { stroke: var(--track); stroke-width: 10; stroke-linecap: round; }
.gauge .gfill { stroke: var(--emerald); stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray 1s var(--ease); }
.screen.dark .gauge .gfill { stroke: #6DB88E; }
.gauge .gv { position: absolute; left: 0; right: 0; bottom: 6%; display: flex; justify-content: center; align-items: baseline; gap: .2em; }
.gauge .gv b { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 11cqw, 190px); line-height: 1; }
.gauge .gv span { font-size: clamp(14px, 2cqw, 36px); opacity: .6; }
.gauge .gl { display: flex; justify-content: space-between; font-size: clamp(12px, 1.5cqw, 26px); opacity: .65; margin-top: .4em; }
.chart-gauge + [data-n] .res-n, .chart-donut + [data-n] .res-n, .chart-tiles + [data-n] .res-n { text-align: center; }

/* Choix du graphique (fenêtre de création) */
.chart-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.cp { display: grid; justify-items: center; gap: 6px; padding: 12px 8px 10px; border: 1px solid var(--line2); border-radius: 14px; background: var(--surf); cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink2); transition: all .18s; }
.cp svg { width: 48px; height: 32px; fill: var(--mint); stroke: var(--mint); }
.cp:hover { border-color: rgba(20, 40, 30, .32); }
.cp.on { border-color: var(--forest); box-shadow: 0 0 0 1px var(--forest); color: var(--ink); background: #F1F7F2; }
.cp.on svg { fill: var(--emerald); stroke: var(--emerald); }
.mini-sel { margin-left: 10px; font-size: 12.5px; color: var(--ink3); }
.mini-sel select { font-size: 12.5px; border: 1px solid var(--line2); border-radius: 99px; padding: .15em .6em; background: var(--surf); margin-left: 4px; cursor: pointer; }

/* ───────── Liste classée et votes ───────── */
.note .nv {
  position: absolute; right: calc(var(--w) * .05cqw); bottom: calc(var(--w) * .05cqw);
  display: inline-flex; align-items: center; gap: .3em; font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: calc(var(--w) * .075cqw); padding: .15em .55em; border-radius: 99px; background: var(--forest); color: #F5F3EC;
}
.note .nv.zero { background: rgba(20, 40, 30, .1); color: rgba(20, 40, 30, .55); }
.note.as-row {
  aspect-ratio: auto; height: calc(var(--h) * 1cqw); transform: none; flex-direction: row; align-items: center;
  gap: calc(var(--h) * .22cqw); padding: 0 calc(var(--h) * .28cqw) 0 calc(var(--h) * .22cqw);
  border-radius: calc(var(--h) * .14cqw); background: var(--surf); border-left: calc(var(--h) * .07cqw) solid var(--bg, #F4E6B8);
  box-shadow: 0 .1cqw .2cqw rgba(15, 47, 34, .08), 0 .6cqw 1.2cqw -.8cqw rgba(15, 47, 34, .4);
}
.note.as-row .nr { font-family: var(--serif); font-style: italic; color: var(--emerald); font-size: calc(var(--h) * .42cqw); width: 1.4em; text-align: center; flex: none; line-height: 1; }
.note.as-row .nbody { flex: 1; min-width: 0; }
.note.as-row .nt { font-size: calc(var(--h) * .27cqw); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: none; }
.note.as-row .nb { font-size: calc(var(--h) * .17cqw); margin-top: .15em; }
.note.as-row .nv { position: static; font-size: calc(var(--h) * .26cqw); flex: none; }
.note.as-row.new { animation: rowin .55s var(--ease); }
@keyframes rowin { from { opacity: 0; transform: translateX(-3cqw); } }
.board.dark .note.as-row { background: #FFFEFA; }
.s-count { display: flex; align-items: center; gap: 1vw; }
.s-vote { display: inline-flex; align-items: center; gap: .5vw; font-size: 1vw; font-weight: 600; padding: .35vw .9vw; border-radius: 99px; background: var(--terra); color: #fff; opacity: 1; }
.s-vote::before { content: ""; width: .5vw; height: .5vw; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }

/* Mur sur téléphone */
.pw { padding: 0; }
.pw-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 15px; position: sticky; top: 0; z-index: 3; background: rgba(255, 254, 250, .94); backdrop-filter: blur(8px); border-radius: var(--r) var(--r) 0 0; }
.pw-head b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1; margin-right: 2px; }
.pw-dots { display: flex; gap: 5px; }
.pw-dots i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--emerald); }
.pw-dots i.on { background: var(--emerald); }
.pw-filter { display: flex; gap: 6px; overflow-x: auto; padding: 12px 18px 4px; scrollbar-width: none; }
.pw-filter .chip { flex: none; }
.pw-list { padding: 10px 12px 14px; display: grid; gap: 8px; }
.pw-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 14px; border-radius: 12px;
  background: var(--surf); border: 1px solid var(--line); border-left: 5px solid var(--nc, #F4E6B8); transition: background .2s, border-color .2s;
}
.pw-item.on { background: #EEF6F0; border-color: rgba(43, 122, 85, .35); border-left-color: var(--nc, #F4E6B8); }
.pw-txt { flex: 1; min-width: 0; font-family: var(--serif); font-size: 19px; line-height: 1.22; overflow-wrap: anywhere; }
.pw-txt small { display: block; font-family: var(--sans); font-size: 12px; color: var(--ink3); margin-top: 4px; }
.pw-me { display: inline-block; vertical-align: middle; margin-left: 8px; font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--emerald); background: var(--sage); padding: .1em .5em; border-radius: 99px; }
.pw-vote {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line2); background: var(--surf);
  display: grid; place-items: center; font-size: 19px; color: var(--ink3); cursor: pointer; transition: all .18s var(--ease);
}
.pw-vote[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #F5F3EC; transform: scale(1.06); }
.pw-vote[aria-pressed="true"] span { display: inline-block; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.pw-vote[disabled] { opacity: .35; cursor: not-allowed; }


/* ───────── Chrono ───────── */
.tm { --f: 1; --tc: var(--emerald); display: inline-flex; align-items: center; gap: .55em; font-variant-numeric: tabular-nums; }
.tm[hidden] { display: none; }
.tm-ring { width: 1.15em; height: 1.15em; border-radius: 50%; flex: none; background: conic-gradient(var(--tc) calc(var(--f) * 360deg), rgba(127, 127, 127, .22) 0); -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%); mask: radial-gradient(circle, transparent 52%, #000 54%); transition: background .25s linear; }
.tm .tm-v { font-family: var(--mono); font-weight: 700; letter-spacing: .02em; }
.tm.warn { --tc: var(--ochre); }
.tm.warn .tm-v { color: var(--ochre); }
.tm.over { --tc: var(--terra); }
.tm.over .tm-v { color: var(--terra); font-family: var(--sans); letter-spacing: 0; animation: blink 1.2s infinite; }
.tm.paused .tm-v { opacity: .55; }
.tm-screen {
  position: fixed; top: 2.4vh; left: 50%; transform: translateX(-50%); z-index: 45; font-size: 2.6vw;
  padding: .35em .8em .35em .55em; border-radius: 999px; background: var(--surf); color: var(--ink); box-shadow: var(--shadow-lift); border: 1px solid var(--line);
}
.screen.dark .tm-screen { background: rgba(245, 243, 236, .1); color: #F5F3EC; border-color: rgba(245, 243, 236, .18); backdrop-filter: blur(10px); --tc: #6DB88E; }
.tm-screen.inhead { position: static; transform: none; font-size: 1.9vw; box-shadow: none; flex: none; }
.tm-phone {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; font-size: 20px;
  padding: .45em 1em .45em .7em; border-radius: 999px; background: var(--forest); color: #F5F3EC; box-shadow: var(--shadow-lift); --tc: #6DB88E;
}
.tm-phone.warn .tm-v { color: #E3B04B; }
.tm-phone.over .tm-v { color: #F2A28F; }
.tm-admin { text-align: center; margin: 6px 0 10px; }
.tm-big { font-family: var(--mono); font-weight: 700; font-size: 40px; letter-spacing: .02em; color: var(--ink3); font-variant-numeric: tabular-nums; }
.tm-big.run { color: var(--forest); }
.tm-durs { display: flex; flex-wrap: wrap; }
.tm-durs button { flex: 1; padding: .4em .5em; font-size: 12.5px; }

/* ───────── Connectés ───────── */
.livepill.online { background: rgba(109, 184, 142, .2); color: #F5F3EC; }
.livepill.online b { font-family: var(--mono); }
.qcount { display: inline-flex; align-items: center; gap: .6vw; margin-top: 3vh; font-size: 1.4vw; padding: .5vw 1.1vw; border-radius: 99px; background: var(--sage); color: var(--forest); }
.qcount[hidden] { display: none; }
.qcount b { font-family: var(--serif); font-weight: 400; font-size: 2vw; line-height: 1; }
.qcount i { width: .6vw; height: .6vw; border-radius: 50%; background: var(--emerald); animation: pulse 1.8s infinite; }
.screen.dark .qcount { background: rgba(109, 184, 142, .18); color: #CFE7D6; }

/* ───────── Rapport de séance ───────── */
body.report { background: #E9E6DC; }
body.report::before { display: none; }
.rp-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 22px; background: rgba(245, 243, 236, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rp-bar .rp-t { font-family: var(--serif); font-size: 22px; }
.rp-o { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink2); cursor: pointer; }
.rp-o input { accent-color: var(--emerald); }
.rp-help { text-align: center; font-size: 12.5px; color: var(--ink3); margin: 14px 0 0; }
.rp-doc { width: 210mm; max-width: calc(100% - 24px); margin: 18px auto 60px; background: #FFFEFA; box-shadow: 0 30px 60px -30px rgba(15, 47, 34, .45); color: var(--ink); }
.rp-cover { position: relative; overflow: hidden; color: #F5F3EC; background: var(--forest-grad); min-height: 270mm; padding: 18mm 18mm 16mm; display: flex; flex-direction: column; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rp-cover .lines { position: absolute; width: 150mm; height: 150mm; right: -40mm; top: -30mm; opacity: .16; }
.rp-cover-top { display: flex; justify-content: space-between; align-items: baseline; position: relative; z-index: 1; }
.rp-cover-top .brand b { color: #F5F3EC; }
.rp-cover-top .brand em { background: none; color: #A9D9BC; -webkit-text-fill-color: #A9D9BC; }
.rp-cover-top > span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.rp-cover-mid { margin: auto 0; position: relative; z-index: 1; }
.rp-cover-mid .over { color: rgba(245, 243, 236, .6); }
.rp-cover h1 { font-family: var(--serif); font-weight: 400; font-size: 46pt; line-height: 1; margin: 6mm 0 5mm; }
.rp-cover-mid p { font-size: 13pt; opacity: .8; margin: 0; font-style: italic; font-family: var(--serif); }
.rp-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(30mm, 1fr)); gap: 4mm; position: relative; z-index: 1; }
.rp-m { border-top: 1px solid rgba(245, 243, 236, .25); padding-top: 3mm; }
.rp-m b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34pt; line-height: 1; }
.rp-m span { font-size: 9.5pt; opacity: .7; }
.rp-sec { padding: 12mm 18mm 4mm; }
.rp-sec h2 { font-family: var(--serif); font-weight: 400; font-size: 26pt; line-height: 1.05; margin: 0 0 2mm; break-after: avoid; }
.rp-sec h2 em { color: var(--emerald); }
.rp-lead { color: var(--ink3); font-size: 10.5pt; margin: 0 0 6mm; }
.rp-intro { font-family: var(--serif); font-size: 14pt; line-height: 1.45; min-height: 18mm; padding: 4mm 5mm; border-left: 3px solid var(--mint); outline: none; white-space: pre-wrap; }
.rp-intro:empty::before { content: attr(data-ph); color: var(--ink3); font-style: italic; }
.rp-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 3mm; }
.rp-top li { display: grid; grid-template-columns: 12mm 1fr auto; align-items: center; gap: 4mm; padding: 4mm 5mm; border-radius: 4mm; background: #F6F4EC; border-left: 2mm solid var(--nc); break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rp-top .rk { font-family: var(--serif); font-style: italic; font-size: 24pt; color: var(--emerald); text-align: center; }
.rp-top p { margin: 0; font-family: var(--serif); font-size: 14pt; line-height: 1.25; }
.rp-top small { display: block; color: var(--ink3); font-size: 9pt; margin-top: 1mm; }
.rp-top b { font-size: 10.5pt; color: var(--forest); white-space: nowrap; }
.rp-group { margin-bottom: 7mm; }
.rp-group h3 { display: flex; align-items: center; gap: 3mm; font-family: var(--serif); font-weight: 400; font-size: 16pt; margin: 0 0 3mm; break-after: avoid; }
.rp-group h3 i { width: 4mm; height: 4mm; border-radius: 1mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rp-group h3 span { font-family: var(--sans); font-size: 10pt; color: var(--ink3); }
.rp-notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; }
.rp-notes li { position: relative; padding: 3.5mm 4mm; border-radius: 1mm 1mm 3mm 1mm; background: var(--nc); font-size: 10.5pt; line-height: 1.35; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rp-notes p { margin: 0; padding-right: 10mm; }
.rp-notes b { position: absolute; top: 3mm; right: 3mm; font-size: 9pt; color: var(--forest); }
.rp-by { display: block; font-size: 8.5pt; color: rgba(20, 40, 30, .6); margin-top: 1.5mm; }
.rp-poll { padding: 5mm 0 7mm; border-top: 1px solid var(--line); break-inside: avoid; }
.rp-pq { display: flex; justify-content: space-between; align-items: baseline; gap: 6mm; margin-bottom: 4mm; }
.rp-pq h3 { font-family: var(--serif); font-weight: 400; font-size: 16pt; margin: 0; line-height: 1.15; }
.rp-pq span { font-size: 9pt; color: var(--ink3); white-space: nowrap; }
.rp-poll .res-n { display: none; }
.rp-people { columns: 2; column-gap: 8mm; list-style: none; padding: 0; margin: 0; font-size: 10.5pt; }
.rp-people li { padding: 1.4mm 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.rp-foot { padding: 8mm 18mm 12mm; font-size: 8.5pt; color: var(--ink3); text-align: center; }
body.report .chart, body.report .chart * { transition: none !important; }
@page { size: A4; margin: 0; }
@media print {
  body.report { background: #fff; }
  .no-print, #toasts, .demo-banner, #demo-nav { display: none !important; }
  .rp-doc { width: auto; max-width: none; margin: 0; box-shadow: none; }
  .rp-cover { min-height: 297mm; break-after: page; }
  .rp-sec { padding: 12mm 18mm 2mm; }
  * { animation: none !important; transition: none !important; }
  .chart, .tile, .tile.top, .bar .bf, .col .cf, .donut, .gauge, .legend i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media print { .rp-intro:empty { display: none; } }
@media screen and (max-width: 820px) { .rp-notes { grid-template-columns: 1fr; } .rp-cover h1 { font-size: 32pt; } }


/* ───────── Pilotage (déroulé) ───────── */
.pilot { display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(0, 1.6fr) auto; gap: 22px; align-items: center; padding: 18px 20px; margin: -6px 0 18px; border-color: rgba(43, 122, 85, .25); }
.pl-now h3 { margin: 4px 0 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.12; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-tm { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.pl-steps { list-style: none; margin: 0; padding: 2px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.pl-steps button {
  display: flex; align-items: center; gap: 8px; white-space: nowrap; border: 1px solid var(--line2); background: var(--surf); border-radius: 999px;
  padding: .4em .85em .4em .45em; font-size: 13px; color: var(--ink2); cursor: pointer; transition: all .18s;
}
.pl-steps button b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; background: rgba(20, 40, 30, .07); color: var(--ink2); }
.pl-steps button.done { color: var(--ink3); }
.pl-steps button.done b { background: var(--sage); color: var(--forest); }
.pl-steps button.on { background: var(--forest); border-color: var(--forest); color: #F5F3EC; box-shadow: 0 8px 18px -10px rgba(15, 47, 34, .7); }
.pl-steps button.on b { background: #6DB88E; color: var(--forest); }
.pl-act { display: flex; gap: 8px; align-items: center; }
.pl-act .btn.lg { padding: .85em 1.3em; }
.pl-nx { opacity: .7; font-weight: 400; margin-left: .2em; }
@media (max-width: 1180px) { .pilot { grid-template-columns: 1fr; gap: 14px; } .pl-act .btn.lg { flex: 1; } }

/* Onglet Déroulé */
.flow { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.fl { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.fl.on { border-color: transparent; box-shadow: 0 0 0 2px var(--emerald), var(--shadow); }
.fl-n { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--emerald); width: 30px; text-align: center; flex: none; }
.fl-b { flex: 1; min-width: 0; }
.fl-k { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.fl-t { font-family: var(--serif); font-size: 20px; line-height: 1.2; margin-top: 2px; }
.fl-t.todo { color: var(--ochre); font-style: italic; }
.fl-a { display: flex; gap: 4px; flex: none; }
.fl-add { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* Question affichée */
.prompt-ed { display: grid; gap: 6px; margin-bottom: 12px; }
.prompt-ed span { font-size: 12.5px; color: var(--ink2); font-weight: 500; }
.prompt-ed input { font-family: var(--serif); font-size: 19px; }
.cq { margin: 0 0 16px; }
.cq h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.12; margin: 4px 0 0; }
.cq-out { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 12px; }
.ok-big { width: 60px; height: 60px; border-radius: 50%; background: var(--forest-grad); color: #F5F3EC; display: grid; place-items: center; margin: 0 auto 14px; font-size: 26px; }

/* Écran : question et fin */
.s-col { width: 100%; display: grid; justify-items: center; gap: 2vh; }
.s-prompt { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 3.2vw; line-height: 1.08; text-align: center; max-width: 88vw; text-wrap: balance; }
.s-prompt[hidden] { display: none; }
.s-col.has-prompt .s-board { width: min(100%, calc((100vh - 15vh - 12vh) * 16 / 9)); }
.s-end { text-align: center; max-width: 80vw; }
.s-end .over { color: var(--ink3); font-size: 1.1vw; letter-spacing: .2em; }
.s-end h1 { font-family: var(--serif); font-weight: 400; font-size: 9vw; line-height: .95; margin: 2vh 0 3vh; }
.s-end h1 em { color: var(--emerald); }
.s-end p { font-size: 2vw; color: var(--ink2); margin: 0; font-family: var(--serif); font-style: italic; }
.screen.dark .s-end .over { color: rgba(245, 243, 236, .55); }
.screen.dark .s-end h1 em { color: #6DB88E; }
.screen.dark .s-end p { color: rgba(245, 243, 236, .8); }

/* Rapport : question */
.rp-q { margin: 2mm 0 5mm; padding: 4mm 6mm; border-left: 3px solid var(--emerald); background: #F1F6F2; font-family: var(--serif); font-size: 15pt; line-height: 1.25; break-after: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rp-q span { display: block; font-family: var(--sans); font-size: 9pt; color: var(--ink3); margin-top: 1.5mm; }


/* ───────── Cercles : barre latérale, sélecteur, annuaire ───────── */
.sb-c .sbc { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-c .sbc b { font-size: 11.5px; letter-spacing: .04em; color: var(--ink); margin-right: 2px; }
.sb-more { font-size: 12.5px; color: var(--emerald); padding-left: 29px; }
.sb-empty { font-size: 12.5px; color: var(--ink3); padding: 2px 10px 6px; margin: 0; line-height: 1.4; }

.cpk { position: relative; }
.cpk .input { padding-left: 2em; }
.cpk-dot { position: absolute; left: .85em; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--cc); box-shadow: inset 0 0 0 1px rgba(20, 40, 30, .15); pointer-events: none; }
.cpk-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); background: var(--surf); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); padding: 6px; max-height: 340px; overflow: auto; }
.cpk-h { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); padding: 8px 10px 4px; }
.cpk-o { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.cpk-o i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cpk-o b { font-size: 12px; letter-spacing: .04em; min-width: 40px; }
.cpk-o span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpk-o small { color: var(--ink3); font-size: 12px; }
.cpk-o.hi, .cpk-o:hover { background: #EEF6F0; }
.cpk-new { color: var(--emerald); font-weight: 500; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
.cpk-new svg { width: 15px; height: 15px; }
.code-in { text-transform: uppercase; font-family: var(--mono); font-weight: 700; letter-spacing: .1em; }
.sw-lg { gap: 8px; flex-wrap: wrap; }
.sw-lg button { width: 30px; height: 30px; border-radius: 50%; }

.dir-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.dir-search { flex: 1; min-width: 260px; display: flex; align-items: center; gap: 10px; background: var(--surf); border: 1px solid var(--line2); border-radius: 999px; padding: 0 18px; box-shadow: var(--shadow); }
.dir-search:focus-within { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(43, 122, 85, .14); }
.dir-search svg { width: 18px; height: 18px; color: var(--ink3); flex: none; }
.dir-search input { flex: 1; border: 0; background: none; outline: none; padding: .85em 0; font-size: 15.5px; }
.circles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ccard { padding: 16px 18px 14px; display: grid; gap: 8px; position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.ccard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--cc); }
.ccard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.cc-top { display: flex; justify-content: space-between; align-items: center; }
.cc-code { font-family: var(--mono); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; color: var(--cc); background: color-mix(in srgb, var(--cc) 12%, transparent); padding: .2em .6em; border-radius: 6px; }
.cc-pin { border: 0; background: none; cursor: pointer; color: var(--ink3); padding: 4px; border-radius: 8px; }
.cc-pin svg { width: 18px; height: 18px; display: block; }
.cc-pin:hover { background: rgba(20, 40, 30, .06); }
.cc-pin.on { color: var(--ochre); }
.cc-pin.on svg { fill: var(--ochre); }
.ccard h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.12; }
.cc-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink2); }
.cc-next { color: var(--emerald); font-weight: 600; }
.sect h3 .cc { font-family: var(--sans); font-size: 13px; vertical-align: middle; margin-right: 6px; }

/* ───────── Propriété et lecture seule ───────── */
.own { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink2); font-weight: 500; }
.own .av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: .02em; background: var(--sage); color: var(--forest); }
.hero .own { color: rgba(245, 243, 236, .75); }
.hero .own .av { background: rgba(245, 243, 236, .16); color: #F5F3EC; }
.ro-tag { font-size: 11.5px; font-weight: 600; color: var(--ochre); background: #FBF1DC; padding: .15em .6em; border-radius: 99px; }
.ro-bar { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 12px 16px; margin-bottom: 16px; background: #FFFBF0; border-color: rgba(183, 124, 18, .3); font-size: 14px; flex-wrap: wrap; }
body.ro .console :is(button, input, select, textarea):not(.ro-ok) { pointer-events: none; opacity: .45; }
body.ro .console .switch { pointer-events: none; }
body.ro .c-hero input { cursor: default; }
body.ro .c-hero input:hover { background: transparent; }

/* ───────── Écran clair (télévision) ───────── */
body.screen.light { background: var(--paper); color: var(--ink); }
.screen.light .s-bg { background: radial-gradient(120% 90% at 50% 120%, #EDEBE1, var(--paper) 70%); }
.screen.light .s-bg i:nth-child(1) { background: #6DB88E; opacity: .28; }
.screen.light .s-bg i:nth-child(2) { background: #CFE7D6; opacity: .7; }
.screen.light .s-bg i:nth-child(3) { background: #2B7A55; opacity: .08; }
.screen.light .s-bg::after { opacity: .18; mix-blend-mode: multiply; }
.screen.light .s-head .t { color: var(--ink); }
.screen.light .s-join { background: var(--surf); border-color: var(--line); box-shadow: var(--shadow); }
.screen.light .s-join .qr { background: #fff; }
.screen.light .s-join .code { color: var(--forest); }
.screen.light .s-join small, .screen.light .s-count { color: var(--ink3); opacity: 1; }
.screen.light .board.light { background: radial-gradient(circle, rgba(20, 40, 30, .1) 1px, transparent 1.4px) 0 0 / 26px 26px, transparent; border: 0; box-shadow: none; }
.screen.light .board .note { box-shadow: 0 .1cqw .2cqw rgba(15, 47, 34, .14), 0 1.2cqw 1.8cqw -.9cqw rgba(15, 47, 34, .5); }
.screen.light .board .col-h { color: var(--ink); }
.screen.light .s-qr .over, .screen.light .s-poll .over { color: var(--ink3); }
.screen.light .s-qr h1, .screen.light .s-poll h1 { color: var(--ink); }
.screen.light .s-qr li { color: var(--ink2); }
.screen.light .s-qr li::before { color: var(--emerald); }
.screen.light .s-qr .url { color: var(--ink3); }
.screen.light .s-qr .bigcode { color: var(--forest); }
.screen.light .s-qr .qr { background: #fff; box-shadow: 0 3vw 6vw -2.4vw rgba(15, 47, 34, .45), 0 0 0 1px var(--line); }
.screen.light .s-qr .qrbox::before { border-color: rgba(43, 122, 85, .35); }
.screen.light .s-poll .bar .bt { background: rgba(20, 40, 30, .07); }
.screen.light .s-poll .bar .bf { background: linear-gradient(90deg, #2B7A55, #6DB88E); }
.screen.light .s-poll .bar.top .bf { background: linear-gradient(90deg, #0F2F22, #2B7A55); box-shadow: 0 0 1.6vw rgba(43, 122, 85, .3); }
.screen.light .s-poll .cloud span { color: var(--emerald); }
.screen.light .s-poll .cloud span:nth-child(3n+2) { color: var(--forest); }
.screen.light .s-poll .cloud span:nth-child(3n) { color: var(--mint); }
.screen.light .s-poll .avg b { background-image: linear-gradient(180deg, #0F2F22, #2B7A55); }
.screen.light .s-poll .res-n, .screen.light .s-poll .res-hidden { color: var(--ink3); }
.screen.light .spot { background: rgba(245, 243, 236, .78); }
.screen.light .spot .note-big { box-shadow: 0 4vw 8vw -3vw rgba(15, 47, 34, .5); }
.screen.light .s-fs { background: var(--surf); color: var(--ink); border-color: var(--line2); }
.screen.light .board-empty b { color: var(--ink); }

/* ───────── Responsive ───────── */
@media (max-width: 1180px) {
  .console { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sb { display: none; }
  .mtop { display: flex; align-items: center; gap: 10px; padding: 12px 16px; position: sticky; top: 0; z-index: 20; background: rgba(245, 243, 236, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .mtop .sp { flex: 1; }
  .main { padding: 18px 14px 60px; }
  .page-head h1 { font-size: 40px; }
  .next { grid-template-columns: 1fr; padding: 22px; }
  .next .qrt { display: none; }
  .c-hero { flex-wrap: wrap; padding: 18px; }
  .c-hero .status { justify-items: start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ───────── Participant : page téléphone pleine largeur (v2) ─────────
   Le bandeau vert va jusqu'aux bords et sous l'encoche, le fond défile avec
   la page (plus de calque fixe qui laisse voir ses bords), pas d'effet
   élastique qui découvre l'arrière-plan. */
html { background: var(--paper); }
html:has(body.part) { padding-top: 0; overscroll-behavior-y: none; }
body.part {
  overscroll-behavior-y: none;
  background:
    linear-gradient(rgba(20, 40, 30, .028) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(20, 40, 30, .028) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--paper);
}
body.part::before { display: none; }
body.part .p-wrap { min-height: 100vh; min-height: 100dvh; overflow-x: clip; }
body.part .p-hero {
  margin: 0; border-radius: 0 0 28px 28px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 54px;
}

/* ───────── Écran : barre du présentateur (pilotage sans console) ───────── */
body.screen.presenter .s-fs { display: none; }
body.screen.idle { cursor: none; }
.pbar {
  position: fixed; left: 50%; bottom: 2vh; z-index: 80; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px; max-width: calc(100vw - 24px);
  border-radius: 999px; background: rgba(10, 30, 22, .9); color: #F5F3EC;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 243, 236, .14);
  box-shadow: 0 18px 40px -14px rgba(5, 20, 14, .55);
  font-family: var(--sans); font-size: 14px; line-height: 1.2;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.pbar[hidden] { display: none; }
body.idle .pbar:not(:hover):not(.open) { opacity: 0; transform: translate(-50%, 14px); pointer-events: none; }
.pbar .pb-btn, .pbar .pb-now {
  border: 0; background: rgba(245, 243, 236, .08); color: inherit; font: inherit;
  border-radius: 999px; padding: .62em 1em; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s;
}
.pbar .pb-btn:hover, .pbar .pb-now:hover { background: rgba(245, 243, 236, .18); }
.pbar .pb-btn[disabled] { opacity: .35; cursor: default; background: rgba(245, 243, 236, .05); }
.pbar .pb-next { background: var(--emerald); font-weight: 600; }
.pbar .pb-next:hover { background: #33925F; }
.pbar .pb-now { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-width: 0; max-width: 30vw; border-radius: 18px; padding: .42em 1em; }
.pbar .pb-now small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(245, 243, 236, .6); }
.pbar .pb-now span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbar .pb-empty { padding: 0 .6em 0 1em; color: rgba(245, 243, 236, .75); white-space: nowrap; }
.pbar .sep { width: 1px; height: 26px; background: rgba(245, 243, 236, .16); margin: 0 2px; flex: none; }
.pbar :focus-visible { outline: 2px solid #A9D9BC; outline-offset: 2px; }
.pb-list {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  width: min(420px, calc(100vw - 24px)); max-height: 60vh; overflow: auto;
  display: none; padding: 6px; border-radius: 18px;
  background: rgba(10, 30, 22, .95); border: 1px solid rgba(245, 243, 236, .14);
  box-shadow: 0 18px 40px -14px rgba(5, 20, 14, .55);
}
.pbar.open .pb-list { display: block; }
.pb-list button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 0; background: none; color: inherit; font: inherit; padding: .6em .8em; border-radius: 12px; cursor: pointer;
}
.pb-list button:hover { background: rgba(245, 243, 236, .1); }
.pb-list button.on { background: rgba(43, 122, 85, .55); }
.pb-list button.done { opacity: .55; }
.pb-list b { font-family: var(--mono); font-size: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(245, 243, 236, .12); flex: none; }
.pb-list span { display: flex; flex-direction: column; min-width: 0; }
.pb-list em { font-style: normal; font-family: var(--sans); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(245, 243, 236, .6); }
@media (max-width: 760px) { .pbar .pb-now { max-width: 34vw; } .pbar a.pb-btn[href*="admin"] { display: none; } }
@media print { .pbar { display: none !important; } }
body.screen.presenter #toasts { bottom: calc(2vh + 76px); }

/* ───────── Écran : mur qui défile quand il y a beaucoup de post-its ───────── */
.s-col { position: relative; }
.s-board { max-height: calc(100vh - 15vh); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; border-radius: var(--r); scrollbar-width: thin; scrollbar-color: rgba(20, 40, 30, .35) transparent; }
.s-col.has-prompt .s-board { max-height: calc(100vh - 27vh); }
.s-board::-webkit-scrollbar { width: 10px; }
.s-board::-webkit-scrollbar-thumb { background: rgba(20, 40, 30, .3); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
.s-board::-webkit-scrollbar-thumb:hover { background-color: rgba(20, 40, 30, .5); }
.screen.dark .s-board { scrollbar-color: rgba(245, 243, 236, .35) transparent; }
.screen.dark .s-board::-webkit-scrollbar-thumb { background-color: rgba(245, 243, 236, .3); }
.s-board.more { -webkit-mask-image: linear-gradient(#000 calc(100% - 7vh), transparent); mask-image: linear-gradient(#000 calc(100% - 7vh), transparent); }
.s-more {
  position: absolute; left: 50%; bottom: 1.2vh; transform: translateX(-50%); z-index: 5;
  border: 1px solid var(--line2); background: var(--surf); color: var(--ink); font: 500 max(13px, .95vw)/1 var(--sans);
  padding: .7em 1.2em; border-radius: 99px; cursor: pointer; box-shadow: var(--shadow);
}
.s-more[hidden] { display: none; }
.screen.dark .s-more { background: rgba(10, 30, 22, .9); color: #F5F3EC; border-color: rgba(245, 243, 236, .2); }
.s-more { left: auto; right: 1.2vw; transform: none; }
.fl-res { margin-top: 12px; max-width: 560px; }

/* ───────── Page de fin : lien (WhatsApp ou autre) ───────── */
.end-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 18px; text-decoration: none; }
.end-link.wa { background: #1FA855; color: #fff; border-color: transparent; }
.end-link.wa:hover { background: #18914A; }
.end-hint { margin: 8px 0 0; }
.s-elink { display: inline-flex; align-items: center; gap: 1.6vw; margin-top: 3.5vh; padding: 1.2vw 1.8vw 1.2vw 1.2vw; border-radius: 1.4vw; background: var(--surf); color: var(--ink); text-align: left; box-shadow: var(--shadow); }
.s-elink[hidden] { display: none; }
.s-elink .qr { width: 9vw; aspect-ratio: 1; }
.s-elink .qr svg { width: 100%; height: 100%; display: block; }
.s-elink b { display: block; font-size: 1.6vw; font-weight: 600; }
.s-elink span { display: block; font-size: 1.05vw; color: var(--ink3); margin-top: .4vw; }
