/* Rotor Popote : styles. Chaque thème ne change que des variables. */
:root, [data-theme="nvg"] {
  --b:#050a07; --t:#d9ffe6; --m:#6fa585; --a:#3cff8f; --a-ink:#03140a; --s1:#0b140f; --s2:#11221a; --bd:#1b3527;
  --fh:"Oxanium",system-ui,sans-serif; --hero:linear-gradient(140deg,#0f2a1c,#0a1811); --ht:#d9ffe6;
  --glow:radial-gradient(120% 40% at 50% 0,#3cff8f14,transparent 60%); --bal:#3cff8f; --balglow:0 0 18px #3cff8f66;
  --bad:#ff6b6b; --ok:#3cff8f; --warn:#ffd166;
}
[data-theme="alat"] {
  --b:#16180f; --t:#efe8d2; --m:#a29d84; --a:#e8b44a; --a-ink:#1c1606; --s1:#1f2216; --s2:#2b2f1e; --bd:#343924;
  --fh:"Saira Condensed",system-ui,sans-serif; --hero:linear-gradient(135deg,#4b5320,#2e3416); --ht:#f5efd9;
  --glow:none; --bal:#f5efd9; --balglow:none; --bad:#ff7a59; --ok:#b5d46a; --warn:#e8b44a;
}
[data-theme="hz"] {
  --b:#0b1220; --t:#eaf2ff; --m:#8195b3; --a:#4cc3ff; --a-ink:#04121d; --s1:#111b2e; --s2:#17253d; --bd:#1f2f4c;
  --fh:"Rajdhani",system-ui,sans-serif; --hero:linear-gradient(180deg,#2a8be0 0 54%,#fff 54% 55%,#7a4a24 55% 100%); --ht:#fff;
  --glow:none; --bal:#fff; --balglow:0 2px 10px #0006; --bad:#ff6b81; --ok:#5be3a1; --warn:#ffcf5c;
}
[data-theme="beacon"] {
  --b:#0d0d0f; --t:#f3f3f4; --m:#8d8d94; --a:#ff3b3b; --a-ink:#fff; --s1:#17171a; --s2:#222226; --bd:#2a2a2f;
  --fh:"Chakra Petch",system-ui,sans-serif; --hero:linear-gradient(135deg,#1c1c20,#121214); --ht:#fff;
  --glow:radial-gradient(70% 25% at 85% 0,#ff3b3b22,transparent 70%); --bal:#fff; --balglow:none;
  --bad:#ff5c5c; --ok:#4ade80; --warn:#fbbf24;
}

[data-theme="tigre"] {
  --b:#121416; --t:#eef0f2; --m:#8c949c; --a:#ff8a1f; --a-ink:#1a0d00; --s1:#1a1d20; --s2:#24282c; --bd:#2e3338;
  --fh:"Chakra Petch",system-ui,sans-serif; --hero:linear-gradient(135deg,#3b4148,#1d2125); --ht:#fff;
  --glow:radial-gradient(90% 30% at 0 0,#ff8a1f1c,transparent 70%); --bal:#ff8a1f; --balglow:none; --bad:#ff5c5c; --ok:#7bd88f; --warn:#ffcc4d;
}
[data-theme="sable"] {
  --b:#1a1410; --t:#f4e9da; --m:#a8957f; --a:#e07a4b; --a-ink:#1e0c03; --s1:#231b15; --s2:#2f251d; --bd:#3b2f25;
  --fh:"Saira Condensed",system-ui,sans-serif; --hero:linear-gradient(160deg,#c8a272,#8a5a35); --ht:#1e140c;
  --glow:none; --bal:#1e140c; --balglow:none; --bad:#ff6b5a; --ok:#9fcf7a; --warn:#f2c14e;
}
[data-theme="glacier"] {
  --b:#0c1418; --t:#e6f6fb; --m:#86a3ad; --a:#7fe3f2; --a-ink:#04181c; --s1:#122027; --s2:#182b33; --bd:#21373f;
  --fh:"Rajdhani",system-ui,sans-serif; --hero:linear-gradient(140deg,#dff6fb,#9fd3e0); --ht:#08262d;
  --glow:radial-gradient(100% 35% at 50% 0,#7fe3f215,transparent 70%); --bal:#08262d; --balglow:none; --bad:#ff7088; --ok:#4fd6a5; --warn:#ffd166;
}
[data-theme="cockpit"] {
  --b:#0a0a08; --t:#f2ead6; --m:#948b73; --a:#ffb000; --a-ink:#1a1200; --s1:#13120e; --s2:#1d1b15; --bd:#2a271d;
  --fh:"Oxanium",system-ui,sans-serif; --hero:radial-gradient(120% 120% at 100% 100%,#2b2410,#11100b); --ht:#f2ead6;
  --glow:none; --bal:#ffb000; --balglow:0 0 16px #ffb00055; --bad:#ff5f45; --ok:#8be06e; --warn:#ffb000;
}
[data-theme="crepuscule"] {
  --b:#120f1c; --t:#f6eefa; --m:#9b8fb0; --a:#ff9e6b; --a-ink:#200d03; --s1:#1a1628; --s2:#231e35; --bd:#2f2843;
  --fh:"Rajdhani",system-ui,sans-serif; --hero:linear-gradient(170deg,#3a2c6b 0%,#b5577a 62%,#ff9e6b 100%); --ht:#fff;
  --glow:none; --bal:#fff; --balglow:0 2px 12px #0005; --bad:#ff6b8a; --ok:#7ee2b8; --warn:#ffd36b;
}
[data-theme="camo"] {
  --b:#0f130d; --t:#e4ecd9; --m:#8d9a80; --a:#b6e33b; --a-ink:#141c02; --s1:#161c13; --s2:#1f271a; --bd:#2a3423;
  --fh:"Saira Condensed",system-ui,sans-serif;
  --hero:radial-gradient(circle at 20% 30%,#4a5a2e 0 18%,transparent 19%),radial-gradient(circle at 70% 70%,#2c3a1c 0 22%,transparent 23%),radial-gradient(circle at 85% 20%,#5d6b3a 0 12%,transparent 13%),radial-gradient(circle at 40% 85%,#3e4a26 0 15%,transparent 16%),#34401f;
  --ht:#f0f5e6; --glow:none; --bal:#f0f5e6; --balglow:0 2px 10px #0008; --bad:#ff6b5a; --ok:#b6e33b; --warn:#ffd166;
}

* { box-sizing: border-box; min-width: 0; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--b); color: var(--t); font: 16px/1.5 "Inter", system-ui, sans-serif;
  overflow-x: clip; overscroll-behavior-y: none;
}
body::before { content: ""; position: fixed; inset: 0; background: var(--glow); pointer-events: none; z-index: 0; }
#app { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: var(--fh); line-height: 1.1; margin: 0; letter-spacing: .01em; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
a { color: var(--a); }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--m); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.neg { color: var(--bad) !important; }
.pos { color: var(--ok); }
[hidden] { display: none !important; }

/* En-tête */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 16px) 18px 8px; position: sticky; top: 0; z-index: 5;
  background: linear-gradient(var(--b) 70%, transparent); }
.brand { display: flex; align-items: center; gap: 9px; font: 700 20px/1 var(--fh); letter-spacing: .03em; text-transform: uppercase; }
.brand svg { width: 30px; height: 30px; color: var(--a); flex: none; }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--s2); border: 1px solid var(--bd); display: grid; place-items: center;
  font: 600 14px "Inter"; color: var(--a); cursor: pointer; }

main { flex: 1; padding: 6px 16px calc(96px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.lbl { font-size: 14px; font-weight: 600; color: var(--m); margin: 6px 2px -6px; display: flex; justify-content: space-between; align-items: baseline; }

/* Cartes */
.card { background: var(--s1); border: 1px solid var(--bd); border-radius: 18px; padding: 16px; }
.card.tight { padding: 0; overflow: hidden; }
.hero { border-radius: 22px; padding: 18px; background: var(--hero); color: var(--ht); position: relative; overflow: hidden; }
.hero small { font-size: 14px; opacity: .85; }
.hero .big { display: block; font: 700 clamp(40px, 13vw, 52px)/1.05 var(--fh); margin: 2px 0 10px; color: var(--bal); text-shadow: var(--balglow); white-space: nowrap; }
.hero .big.neg { color: var(--bad); }
.hero .row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; opacity: .92; position: relative; }
.hero > svg { position: absolute; right: -20px; bottom: -24px; width: 140px; opacity: .16; }
[data-theme="alat"] .hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 7px; background: repeating-linear-gradient(45deg,#e8b44a 0 10px,#1c1f12 10px 20px); }
[data-theme="beacon"] .hero { border: 1px solid #ff3b3b55; }
[data-theme="beacon"] .hero .big::after { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #ff3b3b;
  margin-left: 12px; vertical-align: middle; box-shadow: 0 0 12px #ff3b3b; animation: bl 1.4s infinite; }
@keyframes bl { 50% { opacity: .15; } }

/* Produits */
.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.prod { background: var(--s1); border: 1px solid var(--bd); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px;
  text-align: left; cursor: pointer; transition: transform .12s, border-color .12s; position: relative; min-height: 124px; }
.prod:active { transform: scale(.96); }
.prod:hover { border-color: var(--a); }
.prod .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--s2); display: grid; place-items: center; color: var(--a); }
.prod .ic svg { width: 26px; height: 26px; }
.prod b { font-weight: 600; font-size: 16px; }
.prod em { font: 700 18px var(--fh); font-style: normal; color: var(--a); white-space: nowrap; }
.prod .stock { position: absolute; top: 12px; right: 12px; font-size: 12px; color: var(--m); }
.prod[disabled] { opacity: .45; cursor: not-allowed; }
.prod.pulse { animation: pulse .5s; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--a); } 100% { box-shadow: 0 0 0 16px transparent; } }

/* Listes */
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--bd); }
.item:first-child { border-top: 0; }
.item .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--s2); display: grid; place-items: center; color: var(--a); flex: none; }
.item .ic svg { width: 20px; height: 20px; }
.item .grow { flex: 1; display: flex; flex-direction: column; }
.item .grow span:last-child { font-size: 13px; color: var(--m); }
.item .amt { font: 600 16px var(--fh); white-space: nowrap; }
.item.cancelled { opacity: .45; text-decoration: line-through; }
.empty { padding: 22px 16px; text-align: center; color: var(--m); font-size: 14px; }

/* Boutons et champs */
.btn { appearance: none; border: 1px solid var(--bd); background: var(--s2); color: var(--t); border-radius: 14px; padding: 11px 16px; min-height: 46px;
  font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.pri { background: var(--a); border-color: var(--a); color: var(--a-ink); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: transparent; }
.btn.okb { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: transparent; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 11px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, .prod:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .tab:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; color: var(--m); font-weight: 500; }
input, select, textarea { background: var(--b); border: 1px solid var(--bd); border-radius: 12px; padding: 11px 13px; font-size: 16px; min-height: 46px; width: 100%; }
textarea { min-height: 80px; resize: vertical; }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--a); }
form { display: flex; flex-direction: column; gap: 12px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--bd); background: var(--s2); border-radius: 99px; padding: 7px 14px; cursor: pointer; font-weight: 600; font-size: 14px; }
.chip.on { background: var(--a); color: var(--a-ink); border-color: var(--a); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Navigation */
nav.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: color-mix(in srgb, var(--s1) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--bd); padding-bottom: env(safe-area-inset-bottom); }
nav.bar .in { max-width: 560px; margin: 0 auto; display: flex; }
.tab { flex: 1; appearance: none; border: 0; background: none; color: var(--m); padding: 9px 2px 10px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11.5px; font-weight: 600; cursor: pointer; position: relative; min-height: 58px; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--a); }
.tab.on::before { content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--a); }
.badge { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff;
  font-size: 11px; line-height: 18px; text-align: center; }

/* Sous-onglets admin */
.seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; border: 1px solid var(--bd); background: var(--s1); border-radius: 99px; padding: 8px 14px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--m); position: relative; }
.seg button.on { background: var(--a); color: var(--a-ink); border-color: var(--a); }
.seg .badge { position: static; display: inline-block; margin-left: 6px; }

/* Stats */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--s1); border: 1px solid var(--bd); border-radius: 16px; padding: 12px 14px; }
.kpi span { font-size: 13px; color: var(--m); display: block; }
.kpi b { font: 700 24px/1.2 var(--fh); white-space: nowrap; }
.kpi small { font-size: 12px; color: var(--m); display: block; line-height: 1.35; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 18px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: 11px; color: var(--m); }
.bars i { display: block; width: 100%; max-width: 32px; background: var(--a); border-radius: 6px 6px 2px 2px; min-height: 2px; position: relative; }
.bars i::before { content: attr(data-v); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-style: normal; color: var(--t); font-size: 11px; padding-bottom: 2px; white-space: nowrap; }
.lead { display: flex; flex-direction: column; gap: 8px; }
.lead .r { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.lead .r .bar { grid-column: 2 / 4; height: 6px; border-radius: 3px; background: var(--s2); overflow: hidden; margin-top: -4px; }
.lead .r .bar i { display: block; height: 100%; background: var(--a); }

/* Mème */
.meme img { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #000; }
.meme .cap { padding: 12px 16px; }
.meme .cap b { display: block; }
.memes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.memes button { aspect-ratio: 1; border: 1px solid var(--bd); border-radius: 12px; overflow: hidden; padding: 0; background: var(--s2); cursor: pointer; }
.memes img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drop { border: 2px dashed var(--bd); border-radius: 16px; padding: 22px; text-align: center; color: var(--m); cursor: pointer; display: block; }
.drop img { max-width: 100%; max-height: 300px; border-radius: 10px; display: block; margin: 0 auto; }

/* Membres (admin) */
.mem { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--bd); cursor: pointer; }
.mem:first-child { border-top: 0; }
.mem .av { width: 40px; height: 40px; font-size: 13px; }
.mem .who b { display: block; }
.mem .who span { font-size: 13px; color: var(--m); }
.role { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; background: var(--s2); color: var(--a); margin-left: 6px; vertical-align: 2px; }

/* Feuille modale, toast */
.sheet-bg { position: fixed; inset: 0; background: #0009; z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: var(--s1); border: 1px solid var(--bd); border-bottom: 0; border-radius: 24px 24px 0 0; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; animation: up .2s ease-out; }
.sheet .grab { width: 42px; height: 5px; border-radius: 3px; background: var(--bd); margin: -6px auto 2px; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; background: var(--t); color: var(--b);
  padding: 10px 10px 10px 16px; border-radius: 14px; font-weight: 600; font-size: 15px; display: flex; gap: 12px; align-items: center; box-shadow: 0 10px 30px #0008;
  width: max-content; max-width: calc(100vw - 32px); animation: up .2s; }
.toast.err { background: var(--bad); color: #fff; }
.toast button { border: 0; background: var(--b); color: var(--t); border-radius: 10px; padding: 7px 12px; font-weight: 700; cursor: pointer; }

/* Écran de connexion */
.auth { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 22px calc(32px + env(safe-area-inset-bottom)); gap: 22px; }
.auth .logo { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.auth .logo svg { width: 92px; height: 92px; color: var(--a); }
.auth h1 { font-size: 42px; text-transform: uppercase; letter-spacing: .04em; }
.auth .switch { text-align: center; font-size: 15px; }
.auth .switch button { background: none; border: 0; color: var(--a); font-weight: 600; cursor: pointer; padding: 8px; }
.note { border-radius: 14px; padding: 12px 14px; background: var(--s2); font-size: 14px; border: 1px solid var(--bd); }
.note.warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.note.err { border-color: color-mix(in srgb, var(--bad) 45%, transparent); color: var(--bad); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { padding: 9px 12px; border-top: 1px solid var(--bd); text-align: left; }
th { color: var(--m); font-weight: 600; font-size: 13px; border-top: 0; }
td.r, th.r { text-align: right; }
.scroll { overflow-x: auto; }

.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.themes button { border: 2px solid var(--bd); border-radius: 14px; padding: 10px; cursor: pointer; text-align: left; font-weight: 600; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.themes button.on { border-color: var(--a); }
.themes .sw { display: flex; gap: 4px; }
.themes .sw i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #fff3; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- PC / grand écran : barre latérale, contenu large ---------- */
@media (min-width: 900px) {
  #app { max-width: none; margin: 0; padding-left: 232px; }
  .top { padding: 22px 32px 10px; max-width: 1240px; z-index: 11; background: none; pointer-events: none; }
  .top > * { pointer-events: auto; }
  main { padding: 8px 32px 48px; max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 20px; align-content: start; }
  main > * { grid-column: 1 / -1; }
  main.home > .hero { grid-column: 1; }
  main.home > .note { grid-column: 1 / -1; }
  nav.bar { top: 0; right: auto; width: 232px; border-top: 0; border-right: 1px solid var(--bd); padding: 92px 14px 20px; }
  nav.bar .in { flex-direction: column; gap: 4px; }
  .tab { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 15px; min-height: 48px; }
  .tab.on { background: var(--s2); }
  .tab.on::before { top: 12px; bottom: 12px; left: 0; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .badge { position: static; margin-left: auto; }
  .top .brand { position: fixed; top: 24px; left: 22px; }
  .top { justify-content: flex-end; }
  .prods { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 24px; border-bottom: 1px solid var(--bd); max-width: 600px; }
  .sheet .grab { display: none; }
  .toast { bottom: 28px; }
  .memes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #at { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  #at > * { grid-column: 1 / -1; }
  #at > .half { grid-column: auto; }
  .bars { height: 200px; }
}
@media (min-width: 900px) { .meme img { max-height: 460px; } }

/* Notes des memes */
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; }
.stars { display: flex; gap: 2px; }
.stars button { appearance: none; border: 0; background: none; padding: 6px 3px; color: var(--bd); cursor: pointer; min-height: 40px; }
.stars button.on { color: var(--a); }
.stars button:focus-visible { outline: 2px solid var(--a); outline-offset: 1px; border-radius: 6px; }
.stars:hover button { color: var(--a); }
.stars button:hover ~ button { color: var(--bd); }
.sheet { position: relative; touch-action: pan-y; }
.sheet .grab { width: 54px; height: 6px; }
.sheet .x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bd); background: var(--s2);
  color: var(--t); font-size: 16px; cursor: pointer; display: grid; place-items: center; z-index: 1; }
.sheet > .x + * { padding-right: 44px; }

/* Paris en cafés */
.bets { display: flex; flex-direction: column; gap: 10px; }
main.paris > .bets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.bet { cursor: pointer; transition: border-color .12s; }
.bet:hover { border-color: var(--a); }
.bet:focus-visible, .opt:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }
.bet h3 { font: 600 16px/1.3 "Inter"; margin: 0 0 10px; }
.pbin { display: flex; align-items: center; gap: 10px; }
.pbin .ob { flex: 1; }
.pbin > b { font: 700 30px/1 var(--fh); color: var(--a); white-space: nowrap; }
.obars { display: grid; gap: 6px; }
.ob { position: relative; border-radius: 10px; background: var(--s2); min-height: 34px; overflow: hidden; display: flex; align-items: center; gap: 8px; padding: 4px 10px; font-size: 14px; font-weight: 600; }
.ob i { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--c, var(--a)) 30%, transparent); border-right: 2px solid var(--c, var(--a)); }
.ob span { position: relative; flex: 1; }
.ob em { position: relative; font: 700 17px var(--fh); font-style: normal; white-space: nowrap; }
.ob.win { box-shadow: 0 0 0 1px var(--ok) inset; }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--m); margin-top: 10px; }
.pmeta b { color: var(--t); font-weight: 600; }
.ptag { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 8px; background: var(--s2); }
.ptag.wait { color: var(--warn); }
.ptag.ok { color: var(--ok); }
.ptag.ko { color: var(--bad); }
.ptag.me { background: var(--a); color: var(--a-ink); }
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--bd); background: var(--s2); border-radius: 14px; padding: 10px 14px; cursor: pointer; text-align: left; min-height: 52px; }
.opt.on { border-color: var(--a); box-shadow: 0 0 0 1px var(--a) inset; }
.opt.win { border-color: var(--ok); }
.opt[disabled] { cursor: default; opacity: .7; }
.opt span { flex: 1; font-weight: 600; }
.opt small { display: block; font-size: 12px; font-weight: 500; color: var(--m); }
.opt em { font: 700 20px var(--fh); font-style: normal; color: var(--a); white-space: nowrap; }
.stake { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.stp { display: flex; align-items: center; gap: 6px; }
.stp .btn { width: 46px; padding: 0; font-size: 22px; }
.stp output { font: 700 28px var(--fh); min-width: 66px; text-align: center; }
.gain { display: flex; justify-content: space-between; gap: 10px; background: var(--s1); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 10px; }
.gain b { color: var(--ok); font: 700 19px var(--fh); white-space: nowrap; }
#newbet svg { width: 20px; height: 20px; flex: none; }
.card > h3 + .pmeta, .card .pmeta + h3 { margin-top: 6px; }
