@import"https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;600&display=swap";:root{--bg: #f4f6f5;--surface: #ffffff;--sunk: #eaeeec;--line: #d5dcd9;--fg: #17211d;--muted: #5b6964;--accent: #1d5c48;--accent-soft: #dcebe5;--on-accent: #ffffff;--red: #b02a2a;--red-soft: #f7e3e1;--ok: #1f7a45;--ok-soft: #ddf1e4;--f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, "Segoe UI", sans-serif;--f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", "Roboto Mono", Consolas, monospace;color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg: #0f1513;--surface: #161e1b;--sunk: #1d2723;--line: #2c3833;--fg: #e6ece9;--muted: #97a5a0;--accent: #6cc4a2;--accent-soft: #1d3a30;--on-accent: #0b1712;--red: #ef8a80;--red-soft: #3a1d1b;--ok: #72d39a;--ok-soft: #173225;color-scheme:dark}}:root[data-theme=dark]{--bg: #0f1513;--surface: #161e1b;--sunk: #1d2723;--line: #2c3833;--fg: #e6ece9;--muted: #97a5a0;--accent: #6cc4a2;--accent-soft: #1d3a30;--on-accent: #0b1712;--red: #ef8a80;--red-soft: #3a1d1b;--ok: #72d39a;--ok-soft: #173225;color-scheme:dark}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--f-body);font-size:15px;line-height:1.45;-webkit-tap-highlight-color:transparent}h1,h2,h3{font-family:var(--f-display);font-weight:700;margin:0;letter-spacing:-.01em}h1{font-size:1.25rem}h2{font-size:1.2rem}h3{font-size:.8rem;font-family:var(--f-body);font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:8px;display:flex;gap:8px;align-items:baseline;justify-content:space-between}h3 .aide{text-transform:none;letter-spacing:0;font-weight:500}button,input,select{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.num{font-family:var(--f-mono);font-variant-numeric:tabular-nums}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.aide{color:var(--muted);font-size:13px;margin:6px 0 0}.aide.erreur{color:var(--red)}svg{width:18px;height:18px;flex:none}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.actions.fin{justify-content:flex-end;margin-top:16px}.btn{border:1px solid var(--line);background:var(--surface);min-height:44px;padding:8px 14px;border-radius:9px;cursor:pointer;display:inline-flex;gap:6px;align-items:center;justify-content:center;white-space:nowrap;color:var(--fg)}.btn:hover:not(:disabled){border-color:var(--accent)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:600}.btn.danger{color:var(--red);border-color:var(--red)}.btn.ghost{border-color:transparent;background:transparent}.btn.icone{padding:8px;width:44px}.btn.grand{min-height:52px;font-size:16px;padding:10px 20px}.btn.sm{min-height:32px;padding:4px 10px;font-size:13px}.pill{display:inline-flex;align-items:center;font-size:13px;font-weight:600;padding:2px 10px;border-radius:999px}.pill.ok{background:var(--ok-soft);color:var(--ok)}.pill.err{background:var(--red-soft);color:var(--red)}.gagne{color:var(--ok)}.perd{color:var(--red)}.theme{display:inline-flex;background:var(--sunk);border-radius:8px;padding:3px;gap:2px}.theme button{border:0;background:transparent;padding:6px 10px;border-radius:6px;cursor:pointer;color:var(--muted);font-size:13px}.theme button[aria-pressed=true]{background:var(--surface);color:var(--fg);box-shadow:0 1px 2px #0000001f}.banner{position:fixed;left:50%;transform:translate(-50%);top:12px;background:var(--fg);color:var(--bg);padding:10px 14px;border-radius:8px;display:flex;gap:12px;align-items:center;box-shadow:0 6px 20px #00000040;z-index:40;max-width:calc(100% - 32px)}.banner .btn{color:var(--fg)}.app{padding-bottom:calc(88px + env(safe-area-inset-bottom))}.barre{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top))}.marque{display:flex;align-items:center;gap:10px;min-width:0}.marque h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logo{width:28px;height:38px;border-radius:5px;background:var(--accent);color:var(--on-accent);display:grid;place-items:center;font-family:var(--f-display);font-weight:700;font-size:13px;flex:none;box-shadow:inset 0 0 0 2px var(--accent),inset 0 0 0 3px var(--on-accent)}main{padding:0 16px}@media(max-width:560px){.barre .etiquette{display:none}.barre .btn{padding:8px;width:44px}}.feuille{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}.feuille th,.feuille td{padding:10px 6px;text-align:center;border-bottom:1px solid var(--line)}.feuille .col-num{width:52px;color:var(--muted);font-weight:500;font-size:13px}.feuille thead th{font-weight:600;background:var(--sunk)}.feuille .nom{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}@media(max-width:420px){.feuille th,.feuille td{padding-left:3px;padding-right:3px}.feuille .nom{font-size:13px}.feuille .col-num{width:44px}}.ligne-totaux th,.ligne-totaux td{background:var(--surface);font-size:18px;font-weight:600;border-top:2px solid var(--fg);border-bottom:0}.ligne-totaux th{font-size:12px;text-transform:uppercase;letter-spacing:.06em}.ligne-totaux td.meilleur{color:var(--accent);background:var(--accent-soft)}.ligne-donne{cursor:pointer}.ligne-donne:hover td,.ligne-donne:hover th{background:var(--sunk)}.ligne-donne td{font-size:15px}.feuille tbody tr:last-child>*{border-bottom:0}.ligne-donne td.preneur{font-weight:700;box-shadow:inset 0 0 0 2px var(--accent);border-radius:6px}.lien-donne{border:0;background:none;padding:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;width:100%;line-height:1.2;color:inherit}.lien-donne .n{font-weight:600;color:var(--fg)}.lien-donne .contrat{font-size:11px;color:var(--muted)}.vide{color:var(--muted);text-align:center;padding:24px 8px}.pied{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-top:24px;color:var(--muted);font-size:12px}.barre-bas{position:fixed;left:0;right:0;bottom:0;padding:12px 16px;padding-bottom:max(12px,env(safe-area-inset-bottom));background:linear-gradient(to top,var(--bg) 70%,transparent);display:flex;justify-content:center;z-index:10}.barre-bas .btn{width:100%;max-width:480px}.voile{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;z-index:30;display:flex;align-items:flex-end;justify-content:center}@media(min-width:640px){.voile{align-items:center;padding:24px}}.boite{background:var(--surface);border-radius:14px;padding:20px;width:min(420px,calc(100% - 32px));margin:auto}.boite p{margin:8px 0 0}.champ{display:flex;align-items:center;gap:10px;margin-top:10px}.champ span{width:20px;color:var(--muted);text-align:right}.champ input{flex:1;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:8px 12px;background:var(--bg)}.feuillet{background:var(--surface);width:100%;max-width:560px;max-height:100%;height:100%;display:flex;flex-direction:column}@media(min-width:640px){.feuillet{height:auto;max-height:calc(100vh - 48px);border-radius:14px;overflow:hidden}}.feuillet-tete{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 8px 16px;padding-top:max(8px,env(safe-area-inset-top));border-bottom:1px solid var(--line)}.feuillet-corps{overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:18px;flex:1}.feuillet-pied{border-top:1px solid var(--line);padding:12px 16px;padding-bottom:max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px;background:var(--surface)}.feuillet-pied .actions{flex-wrap:nowrap}.feuillet-pied .actions .primary{flex:1}.preneurs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.preneurs button{min-height:52px;border:1px solid var(--line);background:var(--bg);border-radius:10px;cursor:pointer;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 10px}.preneurs button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.onglets{display:grid;grid-template-columns:1fr 1fr;background:var(--sunk);border-radius:10px;padding:4px;gap:4px}.onglets button{border:0;background:transparent;min-height:40px;border-radius:7px;cursor:pointer;color:var(--muted);display:inline-flex;gap:6px;align-items:center;justify-content:center;font-weight:500}.onglets button[aria-selected=true]{background:var(--surface);color:var(--fg);box-shadow:0 1px 2px #0000001f}.choix{display:grid;gap:6px}.choix button{min-height:44px;border:1px solid var(--line);background:var(--bg);border-radius:9px;cursor:pointer;padding:0 6px;font-weight:500}.choix button[aria-checked=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:600}.choix+.points,.aide+.points{margin-top:10px}h3+.aide{margin-top:0}.points{display:flex;gap:8px;align-items:stretch}.points input{flex:1;min-width:0;min-height:52px;text-align:center;font-size:24px;font-weight:600;border:1px solid var(--line);border-radius:10px;background:var(--bg)}.points input[aria-invalid=true]{border-color:var(--red)}.points .btn.icone{width:52px;min-height:52px}.btn.signe{min-width:96px;font-weight:600}.btn.signe.gagne{background:var(--ok-soft);border-color:var(--ok);color:var(--ok)}.btn.signe.perd{background:var(--red-soft);border-color:var(--red);color:var(--red)}.liste{width:100%;min-height:44px;border:1px solid var(--line);border-radius:9px;background:var(--bg);padding:0 10px}.resultat{min-height:44px;display:flex;flex-direction:column;justify-content:center;gap:2px}.resultat-ligne{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}.resultat-ligne b{font-size:17px}.resultat-detail{color:var(--muted);font-size:12px}@media(min-width:700px){.barre{padding:16px 24px}main{padding:0 24px}.feuille th,.feuille td{padding:14px 8px}.feuille .col-num{width:72px}.feuille .nom{font-size:17px}.ligne-donne td{font-size:20px}.lien-donne .n{font-size:17px}.lien-donne .contrat{font-size:12px}.ligne-totaux td{font-size:26px}.ligne-totaux th{font-size:13px}.barre-bas{padding-left:24px;padding-right:24px}.barre-bas .btn{max-width:640px}}
