/* Liste de Noël : impression deux encres (rouge, vert sapin) sur papier */
:root {
  --paper: #F3EEE2;
  --paper-2: #EAE3D3;
  --red: #D7322A;
  --red-ink: #B8241D;
  --green: #12613F;
  --ink: #1C2620;
  --ink-2: color-mix(in srgb, var(--ink) 62%, var(--paper));
  --ink-3: color-mix(in srgb, var(--ink) 38%, var(--paper));
  --rule: color-mix(in srgb, var(--ink) 22%, var(--paper));
  --poster: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--poster); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }

/* Typo */
.poster {
  font-family: var(--poster); font-weight: 850; font-stretch: 125%; text-transform: uppercase;
  line-height: .9; letter-spacing: -.01em; font-size: clamp(38px, 11vw, 76px);
}
.poster.md { font-size: clamp(28px, 7.5vw, 44px); }
.red { color: var(--red); }
.green { color: var(--green); }
.kicker, .meta, .mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.meta { color: var(--ink-2); }
.dim { opacity: .7; }

/* Bandeau tricoté */
.tricot { height: 33px; background: url(/tricot.svg) repeat-x 0 0 / 48px 33px; image-rendering: pixelated; }

/* Boutons */
.btn {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: 1.5px solid currentColor; background: transparent; border-radius: 0; padding: 11px 14px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: background .12s, color .12s;
}
.btn.fill { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn.fill:hover { background: var(--red-ink); border-color: var(--red-ink); }
.btn.line { color: var(--green); }
.btn.line:hover { background: var(--green); color: var(--paper); }
.btn.invert { background: var(--paper); border-color: var(--paper); color: var(--red); }
.textlink { border: 0; background: none; padding: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; color: inherit; }

/* ---------- 1. Porte rouge ---------- */
.gate { background: var(--red); color: var(--paper); min-height: 100dvh; display: grid; place-items: center; padding: 40px 20px; }
.gate-inner { width: 100%; max-width: 380px; text-align: center; }
.stamp-wrap { position: relative; width: 192px; margin: 0 auto 36px; transform: rotate(-3deg); }
.stamp {
  width: 192px; height: 240px; padding: 6px; color: var(--ink);
  background: radial-gradient(circle, var(--red) 4.6px, var(--paper) 5px) -6px -6px / 12px 12px;
}
.stamp-body { height: 100%; background: var(--paper); padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.stamp img { width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: 50% 35%; display: block; }
.stamp-foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.postmark { position: absolute; width: 104px; right: -58px; bottom: -26px; color: var(--ink); opacity: .78; transform: rotate(14deg); mix-blend-mode: multiply; }
.gate .kicker { margin-bottom: 12px; opacity: .85; }
.gate .poster { font-size: clamp(34px, 10vw, 48px); margin-bottom: 28px; }
.gate form { display: grid; gap: 12px; }
.gate input {
  background: transparent; border: 0; border-bottom: 1.5px solid var(--paper); border-radius: 0; color: var(--paper);
  font-family: var(--mono); font-size: 18px; text-align: center; padding: 10px 0; outline: none; letter-spacing: .04em;
}
.gate input::placeholder { color: color-mix(in srgb, var(--paper) 60%, var(--red)); }
.gate .btn { padding: 15px; font-size: 13px; }
.gate-msg { font-family: var(--mono); font-size: 12px; min-height: 18px; margin-top: 14px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- 2. Qui es-tu (vert) ---------- */
.who { background: var(--green); color: var(--paper); min-height: 100dvh; display: grid; place-items: center; padding: 40px 20px; }
.who-inner { width: 100%; max-width: 420px; }
.who .poster { margin: 10px 0 18px; }
.warn { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--red); color: var(--paper); padding: 5px 9px; margin-bottom: 18px; }
.who-list { border-top: 1.5px solid var(--paper); margin-bottom: 16px; }
.who-item {
  width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0;
  border-bottom: 1.5px solid var(--paper); padding: 14px 0; color: var(--paper); text-align: left;
}
.who-item .name { font-weight: 850; font-stretch: 125%; text-transform: uppercase; font-size: 30px; line-height: 1; }
.who-item .mono { opacity: .7; }
.who-item.taken { opacity: .35; cursor: default; }

/* ---------- 3. En-tête des pages internes ---------- */
.mast { max-width: 760px; margin: 0 auto; padding: 22px 16px 0; }
.mast-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.mast .meta { margin-top: 12px; }
.mast-row > div { min-width: 0; }
.switch.poster { font-size: clamp(24px, 7.2vw, 56px); }
.switch { border: 0; background: none; padding: 0; text-align: left; display: block; color: var(--red); }
.switch .chev { display: inline-block; width: .32em; height: .32em; border-right: .12em solid currentColor; border-bottom: .12em solid currentColor; transform: translateY(-.28em) rotate(45deg); margin-left: .25em; }
.total { border: 1.5px solid var(--ink); background: var(--paper); padding: 8px 10px; text-align: right; display: grid; gap: 4px; flex: none; }
.total .mono { font-size: 10px; color: var(--ink-2); }
.total b { font-family: var(--mono); font-size: 17px; font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; }

.wrap { max-width: 760px; margin: 0 auto; padding: 18px 16px 48px; }
.rule { border: 0; border-top: 1.5px solid var(--ink); margin: 0; }

/* Bandeaux d'info */
.notice { font-family: var(--mono); font-size: 12px; line-height: 1.5; letter-spacing: .02em; padding: 11px 12px; margin-bottom: 14px; border: 1.5px solid currentColor; }
.notice.red { color: var(--red); }
.notice.green { color: var(--green); }
.notice .row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* Barre de filtres */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1.5px solid var(--ink); }
.tabs { display: flex; gap: 16px; }
.tab { border: 0; background: none; padding: 2px 0; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1.5px solid transparent; }
.tab.on { color: var(--ink); border-color: var(--ink); }
.tab sup { font-size: 9px; }
.bar-right { display: flex; gap: 14px; align-items: center; }
.sort { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); display: inline-flex; gap: 4px; align-items: center; }
.sort select { appearance: none; -webkit-appearance: none; border: 0; background: none; padding: 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sommaire de la famille ---------- */
.family { list-style: none; margin: 0; padding: 0; }
.family li { border-bottom: 1px solid var(--rule); }
.family a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 0; text-decoration: none; color: inherit; }
.family .name { font-weight: 850; font-stretch: 125%; text-transform: uppercase; font-size: 30px; line-height: 1; }
.family .stats { grid-column: 1; }
.family .go { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--mono); font-size: 18px; color: var(--red); }
.family .me .name::after { content: " (toi)"; font-family: var(--mono); font-size: 12px; font-weight: 400; font-stretch: 100%; text-transform: uppercase; color: var(--ink-2); letter-spacing: .04em; }
.bar-fill { height: 6px; background: var(--paper-2); margin-top: 8px; grid-column: 1; }
.bar-fill i { display: block; height: 100%; background: var(--green); }

/* ---------- Liste de cadeaux ---------- */
.list { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.gift { border-bottom: 1px solid var(--rule); padding: 18px 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.thumb { width: 76px; height: 76px; background: #fff; display: grid; place-items: center; overflow: hidden; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.thumb .num { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.gift-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.gift h3 { font-size: 18px; font-weight: 700; font-stretch: 100%; line-height: 1.2; letter-spacing: -.005em; }
.price { font-family: var(--mono); font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gift .ref { margin-top: 4px; }
.flags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.flag { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.flag.wish { color: var(--red); }
.flag.secret { color: var(--green); }
.shops { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
.shops a { font-family: var(--mono); font-size: 12px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.shops a b { font-weight: 600; }
.shops a.best { color: var(--green); text-decoration-color: var(--green); }
.state { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; margin-top: 12px; line-height: 1.5; }
.state.mine { color: var(--green); }
.state.shared { color: var(--ink); }
.state .part { color: var(--red); font-weight: 600; }
.actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.actions .btn { flex: 1 1 0; }
.actions .textlink { color: var(--ink-2); }
.comments-link { margin-top: 12px; color: var(--ink-2); }

/* Pris par quelqu'un : barré comme sur une liste papier */
.gift.taken h3 { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; color: var(--ink-2); }
.gift.taken .thumb, .gift.taken .shops, .gift.taken .price { opacity: .45; }
.gift.taken .state { color: var(--ink-2); }
/* Retiré par la personne */
.gift.gone { opacity: .5; }
.gift.gone h3 { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.gift.gone .state { color: var(--red); opacity: 1; }

.add { width: 100%; margin-top: 18px; padding: 16px; border: 1.5px dashed var(--ink); background: none; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.add.secret { border-color: var(--green); color: var(--green); }

.foot { text-align: center; padding-bottom: env(safe-area-inset-bottom); }
.foot p { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 16px 0 24px; }

@media (min-width: 640px) {
  .gift { grid-template-columns: 96px 1fr; gap: 18px; }
  .thumb { width: 96px; height: 96px; }
  .actions .btn { flex: 0 0 auto; }
}

/* ================= Appli ================= */
.screen { position: relative; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }

/* Oli */
.gate-oli { width: 66px; margin: 34px auto 0; }
.foot .oli-line { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 18px 0 6px; }
.foot .oli-line .px { width: 58px; }
.foot .oli-line p { padding: 0 0 8px; }
.empty-oli { text-align: center; padding: 40px 0 10px; }
.empty-oli .px { width: 72px; margin: 0 auto 14px; }

/* Qui es-tu, avec les personnages */
.who-item .left { display: flex; align-items: center; gap: 14px; }
.who-item .px { width: 42px; }
.who-item:disabled { opacity: .35; cursor: default; }

/* Sommaire */
.family a { grid-template-columns: 56px 1fr auto; column-gap: 14px; }
.family .px { width: 56px; grid-row: 1 / span 3; align-self: center; }
.family .name, .family .stats, .family .bar-fill { grid-column: 2; }
.family .go { grid-column: 3; grid-row: 1 / span 3; }

/* En-tête d'une liste */
.list-head { display: flex; align-items: flex-end; gap: 12px; }
.list-head .px { width: 54px; flex: none; margin-bottom: 2px; }
.back { border: 0; background: none; padding: 0; margin-bottom: 10px; color: var(--ink-2); }
.owner-note { font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--green); margin: 14px 0 0; }

/* Cadeau : compléments */
.gift .edit-row { display: flex; gap: 16px; margin-top: 12px; }
.gift .edit-row .textlink { color: var(--ink-2); }
.flag.changed { color: var(--red); }
.state .who-mini { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.who-mini .px { width: 20px; display: inline-block; }
.thumb { cursor: default; }

/* Commentaires */
.comments { margin-top: 12px; border-top: 1px dashed var(--rule); padding-top: 10px; display: grid; gap: 10px; }
.comment { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: 14px; }
.comment .px { width: 24px; }
.comment .by { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.comment .by button { border: 0; background: none; padding: 0 0 0 6px; color: var(--ink-3); font: inherit; text-decoration: underline; }
.comment-form { display: flex; gap: 8px; }
.comment-form input { flex: 1; min-width: 0; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; padding: 8px 0; font-size: 16px; outline: none; border-radius: 0; }

/* Fenêtre du bas */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; justify-items: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(28, 38, 32, .45); animation: fade .18s; }
.sheet-panel {
  position: relative; width: 100%; max-width: 520px; max-height: 92dvh; overflow: auto; background: var(--paper);
  border-top: 1.5px solid var(--ink); padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .22s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 640px) { .sheet { align-items: center; } .sheet-panel { border: 1.5px solid var(--ink); } }
.sheet h2 { margin-bottom: 8px; }
.sheet .lead { font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--ink-2); margin-bottom: 18px; }
.sheet-actions { display: grid; gap: 8px; margin-top: 18px; }
.sheet-actions .btn { padding: 15px; }
.sheet-actions .btn.line.ink { color: var(--ink); }

.picks { border-top: 1.5px solid var(--ink); }
.pick { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid var(--rule); text-align: left; }
.pick .px { width: 32px; }
.pick .label { font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: 18px; }
.pick .sub { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--ink-2); font-weight: 400; font-stretch: 100%; letter-spacing: .03em; }
.pick .box { margin-left: auto; width: 20px; height: 20px; border: 1.5px solid var(--ink); display: grid; place-items: center; }
.pick[aria-pressed="true"] .box { background: var(--green); border-color: var(--green); }
.pick[aria-pressed="true"] .box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: translateY(-1px) rotate(-45deg); }
.pick .q { width: 32px; height: 32px; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; border: 1.5px dashed var(--ink); }
.split { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; text-transform: uppercase; padding: 12px 0 0; }
.split b { color: var(--red); }

.totals { border-top: 1.5px solid var(--ink); }
.trow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.trow .sub { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--ink-2); }
.trow span:last-child { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.tbig { display: flex; justify-content: space-between; padding: 14px 0 0; font-family: var(--mono); text-transform: uppercase; font-size: 13px; }
.tbig b { font-size: 20px; color: var(--red); }
.sheet .label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin: 18px 0 6px; }

/* Formulaire d'ajout */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 4px; }
.field > span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.field input, .field textarea {
  border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; border-radius: 0; padding: 8px 0;
  font-size: 16px; outline: none; width: 100%; resize: none;
}
.field input:focus, .field textarea:focus { border-color: var(--red); }
.paste { display: flex; gap: 8px; align-items: flex-end; }
.paste .field { flex: 1; }
.paste .btn { padding: 10px 12px; }
.hint { font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--ink-2); }
.hint.red { color: var(--red); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.img-pick { display: flex; gap: 12px; align-items: center; }
.img-pick .thumb { width: 72px; height: 72px; border: 1px solid var(--rule); }
.img-pick .acts { display: grid; gap: 6px; justify-items: start; }
.shop-rows { display: grid; gap: 6px; }
.shop-row { display: grid; grid-template-columns: 1fr 84px 24px; gap: 8px; align-items: end; }
.shop-row input { border: 0; border-bottom: 1px solid var(--rule); background: transparent; padding: 6px 0; font-size: 15px; outline: none; border-radius: 0; min-width: 0; }
.shop-row .x { border: 0; background: none; font-family: var(--mono); color: var(--ink-3); font-size: 16px; padding: 4px 0; }
.toggle { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: none; border: 0; padding: 4px 0; }
.toggle .box { width: 20px; height: 20px; border: 1.5px solid var(--red); display: grid; place-items: center; }
.toggle[aria-pressed="true"] .box { background: var(--red); }
.toggle[aria-pressed="true"] .box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: translateY(-1px) rotate(-45deg); }

.add { margin-top: 18px; }
.add.mine { border-color: var(--red); color: var(--red); }

/* Admin (Vincent) */
.admin-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.admin-row .left { display: flex; gap: 10px; align-items: center; }
.admin-row .px { width: 28px; }

/* Message flottant */
.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--paper); padding: 11px 14px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  max-width: calc(100% - 32px); text-align: center; animation: toastUp .2s;
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(20px); opacity: 0; } }
@keyframes toastUp { from { transform: translate(-50%, 12px); opacity: 0; } }
.shake { animation: shake .35s; }
@keyframes shake { 25%, 75% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* Questions anonymes */
.q-link { margin: 12px 18px 0 0; color: var(--ink-2); }
.qa { margin-top: 12px; border-top: 1px dashed var(--rule); padding-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.qa > .q-link { margin-top: 0; justify-self: start; }
.qa-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; font-size: 14px; line-height: 1.4; }
.qa-q, .qa-a, .qa-wait { margin: 0; }
.qa-k { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.qa-a { background: rgba(18, 97, 63, .08); padding: 7px 9px; }
.qa-a .qa-k { color: var(--green); }
.qa-wait { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.qa-mini { border: 0; background: none; padding: 0 0 0 6px; color: var(--ink-3); font-family: var(--mono); font-size: 11px; text-transform: uppercase; text-decoration: underline; }
.qa-hint { margin: -4px 0 0; font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--ink-2); }
.q-form { display: flex; gap: 8px; align-items: end; }
.q-form .btn { flex: 0 0 auto; padding-left: 12px; padding-right: 12px; }
.q-form input { flex: 1; min-width: 0; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; padding: 8px 0; font-size: 16px; outline: none; border-radius: 0; }
.flag.q { color: var(--paper); background: var(--red); padding: 2px 6px; }
.q-count { color: var(--red); font-weight: 600; }
.notice.q-notice { display: flex; justify-content: space-between; gap: 10px; color: var(--green); text-decoration: none; }

/* ===== Version groupes (noel.sofloa.com) ===== */
.lead { font-family: var(--mono); font-size: 13px; line-height: 1.55; color: var(--ink-2); margin: 14px 0 0; }
.label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin: 18px 0 8px; display: flex; align-items: center; gap: 6px; }
.textlink.red { color: var(--red); }
.px.icon { image-rendering: pixelated; }

/* Petit « ? » d'aide */
.help-q {
  display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; vertical-align: middle;
  border: 1.5px solid currentColor; border-radius: 50%; background: none; font-family: var(--mono); font-size: 11px; font-weight: 600;
  line-height: 1; color: var(--ink-2); flex: 0 0 auto; letter-spacing: 0; text-transform: none;
}
.poster .help-q { width: 24px; height: 24px; font-size: 13px; transform: translateY(-4px); }
.help-q:hover { color: var(--red); }

/* Propulsé par Sofloa */
.powered { margin: 0; }
.foot .powered { padding: 0 0 18px; }
.powered a { color: var(--ink-2); text-decoration: none; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.powered a:hover { color: var(--red); }

/* Accueil du site */
.land { padding-top: 34px; }
.land .poster { font-size: clamp(48px, 15vw, 96px); margin-top: 12px; }
.land-faces { display: flex; gap: 6px; margin: 26px 0 8px; }
.land-faces .px { width: 44px; }
.join { margin-top: 18px; }
.join-row { display: flex; gap: 8px; }
.join-row input {
  flex: 1; min-width: 0; border: 1.5px solid var(--ink); background: transparent; border-radius: 0; padding: 12px 14px;
  font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; outline: none;
}
.join-row input:focus { border-color: var(--red); }
.join-row .btn { padding: 0 20px; }
.join .hint { margin-top: 8px; }
.big-cta { display: block; text-align: center; padding: 16px; margin-top: 18px; text-decoration: none; }
.my-groups { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.my-groups a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.my-groups .px { width: 30px; }
.my-groups .name { font-weight: 850; font-stretch: 125%; text-transform: uppercase; font-size: 18px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-groups .go { font-family: var(--mono); color: var(--red); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 10px; }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); font-weight: 600; color: var(--red); font-size: 13px; padding-top: 2px; }
.steps b { font-weight: 850; font-stretch: 125%; text-transform: uppercase; font-size: 16px; }
.steps span { font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--ink-2); }

/* Création */
.wiz { padding-top: 22px; }
.wiz .back { display: inline-block; margin-bottom: 18px; text-decoration: none; }
.wiz .poster.md { margin: 10px 0 6px; }
.wiz .field { margin-top: 18px; }
.wiz-dots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.wiz-dots span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding-top: 6px; border-top: 3px solid var(--rule); }
.wiz-dots span.on { color: var(--red); border-top-color: var(--red); }
.icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.icon-pick { aspect-ratio: 1; display: grid; place-items: center; background: none; border: 1.5px solid var(--rule); padding: 6px; }
.icon-pick .px { width: 100%; max-width: 42px; }
.icon-pick[aria-pressed="true"] { border-color: var(--red); background: rgba(215, 50, 42, .08); }
.choice { display: grid; gap: 8px; margin: 14px 0 18px; }
.choice-card { text-align: left; background: none; border: 1.5px solid var(--rule); padding: 12px 14px; display: grid; gap: 4px; }
.choice-card b { font-weight: 850; font-stretch: 125%; text-transform: uppercase; font-size: 16px; }
.choice-card span { font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--ink-2); }
.choice-card[aria-pressed="true"] { border-color: var(--red); background: rgba(215, 50, 42, .06); }
.choice-card[aria-pressed="true"] b { color: var(--red); }
.img-pick .thumb { display: grid; place-items: center; overflow: hidden; }
.img-pick .thumb img { width: 100%; height: 100%; object-fit: cover; }
.wiz-people { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.wiz-people button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid var(--rule); text-align: left; }
.wiz-people .px { width: 34px; }
.wiz-people .name { flex: 1; font-weight: 850; font-stretch: 125%; text-transform: uppercase; font-size: 18px; }
.wiz-people .mono { color: var(--green); }
.recap { margin-top: 22px; border: 1.5px solid var(--ink); padding: 14px; display: grid; gap: 8px; }
.recap > div:first-child { display: flex; align-items: center; gap: 10px; }
.recap > div:first-child .px { width: 32px; }
.recap b { font-weight: 850; font-stretch: 125%; text-transform: uppercase; font-size: 20px; }
.recap-faces { display: flex; flex-wrap: wrap; gap: 4px; }
.recap-faces .px { width: 30px; }
.wiz-nav { display: flex; gap: 8px; margin-top: 22px; }
.wiz-nav .btn { flex: 1; padding: 15px; }
.wiz-nav .btn.line.ink, .group-actions .btn.line.ink { color: var(--ink); }
.wiz > .hint.red { margin-top: 14px; min-height: 16px; }
.card-preview { display: block; width: 100%; border: 1.5px solid var(--ink); margin: 18px 0 14px; }
.invite-code { display: flex; align-items: baseline; justify-content: space-between; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 10px 0; margin-bottom: 8px; }
.invite-code b { font-family: var(--mono); font-size: 26px; letter-spacing: .14em; color: var(--red); }

/* Aide */
.helpwrap { padding-top: 22px; }
.helpwrap .back { display: inline-block; margin-bottom: 14px; text-decoration: none; }
.helpwrap .btn { display: block; text-align: center; padding: 15px; text-decoration: none; }
.faq { margin-top: 22px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: 850; font-stretch: 125%; text-transform: uppercase; font-size: 17px; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--red); }
.faq details[open] summary::after { content: "−"; }
.faq p { font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--ink-2); padding: 0 0 16px; }

/* Porte du groupe */
.gate-home { display: inline-block; margin-bottom: 26px; color: var(--paper); opacity: .8; text-decoration: none; }
.gate-icon { width: 120px; height: 120px; margin: 0 auto 30px; background: var(--paper); display: grid; place-items: center; transform: rotate(-3deg); padding: 14px; }
.gate-icon .px { width: 100%; }
.gate-admin { margin-top: 18px; background: none; border: 0; color: var(--paper); opacity: .75; text-decoration: underline; }
.who-help { font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--ink-2); margin-top: 18px; }
.who .warn { display: inline-flex; align-items: center; gap: 8px; }
.who .warn .help-q { color: inherit; }

/* Sommaire du groupe */
.group-head { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.group-head .poster { overflow-wrap: anywhere; }
.group-icon { width: 46px; flex: 0 0 auto; }
.group-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.group-actions .btn { flex: 1 1 0; padding: 12px 10px; text-align: center; text-decoration: none; white-space: nowrap; }
.add-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.add-row .add { margin-top: 0; flex: 1; }
.actions .help-q { align-self: center; }
.owner-note .help-q { margin-left: 4px; }
.admin-acts { display: flex; gap: 12px; }
.admin-row { gap: 10px; }
.admin-row .mono { font-size: 11px; }

/* Atelier de perso */
.bld-top { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.bld-face { width: 108px; height: 120px; flex: 0 0 auto; background: var(--paper-2); display: grid; place-items: center; border: 1px solid var(--rule); }
.bld-big { width: 86px; }
.bld-side { flex: 1; display: grid; gap: 10px; justify-items: start; min-width: 0; }
.bld-side .field { width: 100%; }
.bld-name { font-weight: 850; font-stretch: 125%; text-transform: uppercase; font-size: 24px; }
.bld-presets { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.bld-preset { flex: 0 0 auto; width: 50px; height: 56px; padding: 4px; background: none; border: 1px solid var(--rule); display: grid; place-items: center; }
.bld-preset .px { width: 38px; }
.bld-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 32px; height: 32px; border: 1.5px solid var(--rule); padding: 0; border-radius: 50%; }
.sw[aria-pressed="true"] { outline: 2px solid var(--red); outline-offset: 2px; border-color: var(--ink); }
.chip { background: none; border: 1.5px solid var(--rule); padding: 6px 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.chip[aria-pressed="true"] { border-color: var(--red); color: var(--red); background: rgba(215, 50, 42, .06); }
a.btn { text-decoration: none; display: block; text-align: center; }
.linkline { word-break: break-all; text-transform: none; letter-spacing: 0; }
.hint a { color: var(--red); }
.who .who-help { color: color-mix(in srgb, var(--paper) 72%, var(--green)); }
.who .textlink { color: var(--paper); }
.group-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 10px; }
.group-head .poster { overflow-wrap: normal; word-break: normal; font-size: clamp(34px, 10vw, 72px); }
.group-head .poster.long { font-size: clamp(26px, 7.4vw, 56px); }
.group-icon { width: 38px; }

/* Code perdu, code à 6 chiffres, réponse visible */
.textlink.small { font-size: 11px; margin-top: 10px; color: var(--ink-2); }
.code-input {
  width: 100%; border: 1.5px solid var(--ink); background: transparent; border-radius: 0; padding: 14px; outline: none;
  font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: .4em; text-align: center;
}
.code-input:focus { border-color: var(--red); }
.answer-box { display: grid; gap: 4px; background: rgba(18, 97, 63, .08); padding: 10px 12px; margin-bottom: 6px; }
.answer-box .mono { color: var(--green); font-size: 11px; }
.answer-box b { font-size: 20px; font-weight: 850; font-stretch: 125%; }
.gate-hint { font-family: var(--mono); font-size: 11px; line-height: 1.5; opacity: .8; margin-top: 4px; max-width: 300px; margin-inline: auto; }
