:root{--fond:#f6f3ee;--surface:#fff;--surface-2:#efebe4;--texte:#1f1d1a;--texte-doux:#6b655c;--bordure:#ddd6cb;--accent:#2f6f62;--accent-texte:#fff;--positif:#2e7d4f;--negatif:#b4532a;--dur:#8e2a3a;--sante:#d64545;--bonheur:#e0a526;--savoir:#3f7cc7;--stress:#8d5bc1;--ombre:0 1px 3px #00000014, 0 6px 18px #0000000f;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--fond:#141412;--surface:#1d1c1a;--surface-2:#262522;--texte:#f1ede6;--texte-doux:#a8a196;--bordure:#34322e;--accent:#5fb3a1;--accent-texte:#0f1a17;--positif:#6cc28f;--negatif:#e58c63;--dur:#e0798a;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--fond:#141412;--surface:#1d1c1a;--surface-2:#262522;--texte:#f1ede6;--texte-doux:#a8a196;--bordure:#34322e;--accent:#5fb3a1;--accent-texte:#0f1a17;--positif:#6cc28f;--negatif:#e58c63;--dur:#e0798a;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--fond);color:var(--texte);-webkit-font-smoothing:antialiased;font:17px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}button,select,input{font:inherit;color:inherit}h1{letter-spacing:-.01em;margin:.2em 0;font-size:1.7rem}h2{color:var(--texte-doux);margin:1em 0 .4em;font-size:1.05rem;font-weight:600}.app{flex-direction:column;max-width:560px;min-height:100dvh;margin:0 auto;display:flex}.ecran{padding:max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));flex-direction:column;flex:1;gap:14px;display:flex}.bouton{border:1px solid var(--bordure);background:var(--surface);min-height:52px;box-shadow:var(--ombre);cursor:pointer;text-align:center;border-radius:14px;justify-content:center;align-items:center;gap:8px;padding:12px 18px;font-weight:600;display:flex}.bouton.principal{background:var(--accent);color:var(--accent-texte);border-color:#0000;font-size:1.1rem}.bouton.discret{box-shadow:none;background:0 0;font-weight:500}.bouton:disabled{opacity:.5;cursor:default}.bouton:focus-visible,.action:focus-visible,.ligne-proche:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.pile-boutons{flex-direction:column;gap:10px;display:flex}.accueil{justify-content:center}.accueil-haut{text-align:center;margin-bottom:12px}.logo{font-size:64px}.sous-titre{color:var(--texte-doux)}.note{color:var(--texte-doux);font-size:.92rem}.note.petite{text-align:center;font-size:.82rem}.alerte{background:var(--surface-2);border-left:4px solid var(--negatif);border-radius:8px;padding:10px 12px}.tirage{text-align:center;justify-content:center;align-items:center}.tirage-question{color:var(--texte-doux);font-size:1.3rem}.tirage-drapeau{font-size:120px;line-height:1}.carte-naissance{background:var(--surface);box-shadow:var(--ombre);border:1px solid var(--bordure);border-radius:20px;padding:20px}.surtitre{text-transform:uppercase;letter-spacing:.12em;color:var(--texte-doux);margin:0;font-size:.75rem}.drapeau-geant{margin-top:8px;font-size:72px;line-height:1.1}.lieu{margin:0;font-weight:600}.fait{background:var(--surface-2);border-radius:10px;padding:10px 12px}.liste-simple{margin:0;padding-left:1.1em}.champ{background:var(--surface);border:1px solid var(--bordure);border-radius:12px;flex-direction:column;gap:6px;padding:12px;display:flex}.champ.case{flex-direction:row;align-items:flex-start;gap:12px}.champ.case input{width:22px;height:22px;margin-top:2px}.champ small{color:var(--texte-doux);display:block}.champ select{border:1px solid var(--bordure);background:var(--surface-2);border-radius:10px;min-height:44px;padding:0 10px}.jeu{gap:0;height:100dvh;padding:0}.jeu-haut{padding:max(10px, env(safe-area-inset-top)) 16px 10px;background:var(--surface);border-bottom:1px solid var(--bordure)}.identite{align-items:center;gap:10px;font-weight:600;display:flex}.identite .drapeau{font-size:26px}.identite .argent{text-align:right;margin-left:auto;font-size:.95rem}.identite .argent small{color:var(--texte-doux);font-weight:400;display:block}.jauges{grid-template-columns:1fr 1fr;gap:6px 14px;margin-top:8px;display:grid}.jauge{font-size:.82rem}.jauge-entete{color:var(--texte-doux);justify-content:space-between;display:flex}.jauge-barre{background:var(--surface-2);border-radius:4px;height:7px;overflow:hidden}.jauge-barre>span{border-radius:4px;height:100%;transition:width .4s;display:block}.fil{flex-direction:column;flex:1;gap:6px;padding:10px 16px;display:flex;overflow-y:auto}.ligne-fil{background:var(--surface);border-left:4px solid var(--bordure);cursor:pointer;text-align:left;border-top:0;border-bottom:0;border-right:0;border-radius:10px;gap:10px;width:100%;padding:8px 10px;display:flex}.ligne-fil .age{color:var(--texte-doux);font-variant-numeric:tabular-nums;min-width:2.2em}.ligne-fil.positif{border-left-color:var(--positif)}.ligne-fil.negatif{border-left-color:var(--negatif)}.ligne-fil.dur{border-left-color:var(--dur)}.ligne-fil .etoile{margin-left:auto}.barre-bas{padding:8px 10px max(8px, env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--bordure);grid-template-columns:repeat(4,1fr) auto;gap:6px;display:grid}.onglet{background:var(--surface-2);cursor:pointer;border:0;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:56px;font-size:.78rem;display:flex}.onglet .icone{font-size:1.3rem}.onglet.actif{background:var(--accent);color:var(--accent-texte)}.commandes{flex-direction:column;gap:4px;display:flex}.commandes button{border:1px solid var(--bordure);background:var(--surface-2);cursor:pointer;border-radius:8px;min-width:64px;min-height:26px;font-size:.78rem}.commandes button[aria-pressed=true]{background:var(--accent);color:var(--accent-texte)}.panneau{left:0;right:0;bottom:calc(80px + env(safe-area-inset-bottom));background:var(--surface);max-width:560px;max-height:64dvh;padding:14px 16px max(16px, env(safe-area-inset-bottom));z-index:10;border-radius:20px;margin:0 auto;position:fixed;overflow-y:auto;box-shadow:0 -8px 30px #0003}.panneau-entete{justify-content:space-between;align-items:center;display:flex}.panneau-entete button{background:var(--surface-2);cursor:pointer;border:0;border-radius:10px;min-height:40px;padding:0 12px}.ressources{color:var(--texte-doux);gap:12px;margin:6px 0 10px;font-size:.82rem;display:flex}.actions{flex-direction:column;gap:8px;display:flex}.action{border:1px solid var(--bordure);background:var(--surface-2);text-align:left;cursor:pointer;border-radius:12px;align-items:center;gap:12px;min-height:54px;padding:10px 12px;display:flex}.action .icone{font-size:1.4rem}.action small{color:var(--texte-doux);font-size:.8rem;display:block}.action:disabled{opacity:.6;cursor:default}.statut{flex-wrap:wrap;gap:6px;margin-bottom:8px;display:flex}.pastille{background:var(--surface-2);border-radius:999px;padding:4px 10px;font-size:.82rem}.ligne-proche{border:1px solid var(--bordure);background:var(--surface-2);text-align:left;cursor:pointer;border-radius:12px;align-items:center;gap:10px;width:100%;min-height:52px;margin-bottom:6px;padding:8px 12px;display:flex}.ligne-proche small{color:var(--texte-doux);display:block}.ligne-proche.decede{opacity:.55}.voile{z-index:20;background:#00000073;justify-content:center;align-items:flex-end;padding:16px;display:flex;position:fixed;inset:0}.carte-decision{background:var(--surface);width:100%;max-width:528px;box-shadow:var(--ombre);margin-bottom:env(safe-area-inset-bottom);border-radius:20px;flex-direction:column;gap:10px;padding:20px;display:flex}.carte-decision p{margin:0 0 6px;font-size:1.12rem}.carte-decision.dur{border-top:5px solid var(--dur)}.lien-aide{color:var(--accent);font-size:.9rem;display:block}.toast{background:var(--texte);color:var(--fond);z-index:30;border-radius:10px;max-width:90vw;padding:10px 14px;position:fixed;bottom:110px;left:50%;transform:translate(-50%)}.bilan h1{font-size:1.5rem}.bilan .chiffres{grid-template-columns:1fr 1fr;gap:8px;display:grid}.bilan .chiffre{background:var(--surface);border:1px solid var(--bordure);border-radius:12px;padding:10px;font-size:.9rem}.bilan .moment{background:var(--surface);border-left:4px solid var(--accent);border-radius:8px;margin-bottom:6px;padding:8px 10px}.comparaison{background:var(--surface-2);border-radius:12px;padding:12px;font-weight:600}.historique-ligne{align-items:center;gap:8px;display:flex}.historique-ligne .bouton{flex:1;justify-content:flex-start}.historique-ligne .supprimer{flex:none}@media (prefers-reduced-motion:reduce){.jauge-barre>span{transition:none}}
