:root{--bg:#f4f6f3;--surface:#fff;--surface-2:#f0f3ef;--text:#1c2a23;--muted:#62716a;--line:#dde4df;--primary:#1f4d3a;--primary-2:#2f6f55;--primary-soft:#e2eee7;--on-primary:#fff;--warm:#9a6a14;--warm-soft:#faf0d9;--danger:#b0372d;--danger-soft:#fbe6e3;--ok:#2c7a54;--chart-1:#1f4d3a;--chart-2:#6aa58a;--chart-3:#b9892f;--chart-4:#7b8a83;--shadow:0 1px 2px #14281e0f, 0 4px 14px #14281e0d;--radius:16px;--nav-h:64px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--bg:#0e1511;--surface:#16201b;--surface-2:#1c2823;--text:#e5eee8;--muted:#98a9a0;--line:#27352d;--primary:#5fb88c;--primary-2:#7cc9a2;--primary-soft:#1e3a2d;--on-primary:#0b1812;--warm:#e0b45a;--warm-soft:#33290f;--danger:#ee8479;--danger-soft:#3a1d1a;--ok:#6fcf9f;--chart-1:#5fb88c;--chart-2:#3d7a5d;--chart-3:#e0b45a;--chart-4:#8da096;--shadow:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Noto Sans,sans-serif;font-size:16px;line-height:1.45}h1,h2,h3,h4{margin:0;line-height:1.2}h1{font-size:1.35rem}h2{font-size:1.1rem}h3{font-size:1rem}p{margin:0 0 .5rem}a{color:var(--primary)}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:3px solid var(--primary-2);outline-offset:2px}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.muted{color:var(--muted)}.small{font-size:.85rem}.center{text-align:center}.row{align-items:center;gap:10px;display:flex}.row.wrap{flex-wrap:wrap}.row.between{justify-content:space-between}.grow{flex:auto;min-width:0}.stack{flex-direction:column;gap:12px;display:flex}.stack-sm{flex-direction:column;gap:6px;display:flex}.grid{gap:12px;display:grid}.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.pad-top{padding-top:6px}.app{min-height:100dvh}.main{max-width:760px;padding:14px 14px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom));margin:0 auto}.topbar{justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px;display:flex}.topbar .brand{align-items:center;gap:10px;min-width:0;display:flex}.logo{background:var(--primary);width:34px;height:34px;color:var(--on-primary);border-radius:10px;flex:none;place-items:center;display:grid}.page-title{font-size:1.3rem;font-weight:700}.page-sub{color:var(--muted);font-size:.9rem}.nav{z-index:20;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);display:flex;position:fixed;bottom:0;left:0;right:0}.nav a{min-height:var(--nav-h);color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.72rem;font-weight:600;text-decoration:none;display:flex}.nav a svg{width:24px;height:24px}.nav a[aria-current=page]{color:var(--primary)}.nav a[aria-current=page] .nav-pill{background:var(--primary-soft)}.nav-pill{border-radius:999px;place-items:center;padding:3px 16px;display:grid}.nav .nav-extra{display:none}@media (width>=900px){.app{grid-template-columns:250px 1fr;display:grid}.nav{border-top:0;border-right:1px solid var(--line);flex-direction:column;align-self:start;gap:4px;height:100dvh;padding:20px 12px;position:sticky;top:0}.nav a{border-radius:12px;flex-direction:row;flex:none;justify-content:flex-start;gap:12px;min-height:48px;padding:0 14px;font-size:.98rem}.nav a[aria-current=page]{background:var(--primary-soft)}.nav a[aria-current=page] .nav-pill{background:0 0}.nav-pill{padding:0}.nav .nav-extra{display:flex}.nav .nav-brand{align-items:center;gap:10px;padding:4px 14px 18px;font-weight:700;display:flex}.main{width:100%;max-width:980px;padding:28px 32px 48px}.topbar .gear-mobile{display:none}.grid.desk-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.desk-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.desk-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.nav .nav-brand{display:none}@media (width>=900px){.nav .nav-brand{display:flex}}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.card>.card-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;display:flex}.card.soft{background:var(--primary-soft);box-shadow:none;border-color:#0000}.card.warm{background:var(--warm-soft);box-shadow:none;border-color:#0000}.card.danger{background:var(--danger-soft);box-shadow:none;border-color:#0000}.hero{background:linear-gradient(135deg, var(--primary), var(--primary-2));color:var(--on-primary);border-radius:var(--radius);padding:18px}:root[data-theme=dark] .hero{color:#eaf5ef;background:linear-gradient(135deg,#1e4636,#2a6049)}.hero .muted{color:inherit;opacity:.8}.hero .progress{background:#ffffff40}.hero .progress>span{background:#fff}.hero-day{font-size:2.2rem;font-weight:800;line-height:1}.stat{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px}.stat .v{font-size:1.55rem;font-weight:800;line-height:1.1}.stat .l{color:var(--muted);margin-top:2px;font-size:.82rem}.stat .h{color:var(--muted);margin-top:4px;font-size:.78rem}.progress{background:var(--surface-2);border-radius:999px;height:10px;overflow:hidden}.progress>span{background:var(--primary);border-radius:999px;height:100%;transition:width .35s;display:block}.progress.warm>span{background:var(--warm)}.progress.thin{height:6px}.prog-row{flex-direction:column;gap:6px;display:flex}.prog-row .top{justify-content:space-between;gap:8px;font-size:.92rem;display:flex}.badge{background:var(--surface-2);color:var(--muted);white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:2px 10px;font-size:.78rem;font-weight:600;display:inline-flex}.badge.ok{background:var(--primary-soft);color:var(--primary)}.badge.warm{background:var(--warm-soft);color:var(--warm)}.badge.danger{background:var(--danger-soft);color:var(--danger)}.btn{border:1px solid var(--line);background:var(--surface);cursor:pointer;min-height:46px;color:var(--text);border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:0 18px;font-weight:600;text-decoration:none;display:inline-flex}.btn:hover{background:var(--surface-2)}.btn.primary{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}.btn.primary:hover{background:var(--primary-2)}.btn.danger{color:var(--danger);border-color:var(--danger);background:0 0}.btn.ghost{background:0 0;border-color:#0000}.btn.sm{border-radius:10px;min-height:38px;padding:0 12px;font-size:.9rem}.btn.block{width:100%}.btn:disabled{opacity:.5;cursor:not-allowed}.icon-btn{cursor:pointer;width:44px;height:44px;color:var(--text);background:0 0;border:1px solid #0000;border-radius:12px;place-items:center;display:inline-grid}.icon-btn:hover{background:var(--surface-2)}.icon-btn svg{width:22px;height:22px}.field{flex-direction:column;gap:6px;display:flex}.field>label,.field>.lab{font-size:.88rem;font-weight:600}.field .hint{color:var(--muted);font-size:.8rem}.field .err{color:var(--danger);font-size:.82rem;font-weight:600}.input,select.input,textarea.input{border:1px solid var(--line);background:var(--surface);border-radius:12px;width:100%;min-height:46px;padding:10px 12px}textarea.input{resize:vertical;min-height:96px}.input[aria-invalid=true]{border-color:var(--danger)}.form{flex-direction:column;gap:14px;display:flex}.form .actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.check{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:14px;align-items:flex-start;gap:12px;min-height:52px;padding:12px;display:flex}.check.on{background:var(--primary-soft);border-color:#0000}.check input{width:24px;height:24px;accent-color:var(--primary);flex:none;margin:0}.check .t{flex:auto}.check .t .s{color:var(--muted);font-size:.82rem}.seg{background:var(--surface-2);border-radius:12px;gap:2px;padding:3px;display:inline-flex}.seg button{cursor:pointer;min-height:38px;color:var(--muted);background:0 0;border:0;border-radius:10px;padding:0 14px;font-weight:600}.seg button[aria-pressed=true],.seg button[aria-selected=true]{background:var(--surface);color:var(--primary);box-shadow:var(--shadow)}.tabs{scrollbar-width:none;gap:6px;margin-bottom:12px;padding-bottom:4px;display:flex;overflow-x:auto}.tabs::-webkit-scrollbar{display:none}.tabs button{border:1px solid var(--line);background:var(--surface);cursor:pointer;min-height:40px;color:var(--muted);white-space:nowrap;border-radius:999px;flex:none;padding:0 14px;font-weight:600}.tabs button[aria-selected=true]{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}.list{flex-direction:column;gap:8px;display:flex}.item{border:1px solid var(--line);background:var(--surface);border-radius:14px;align-items:flex-start;gap:10px;padding:12px;display:flex}.item.done .ttl{color:var(--muted);text-decoration:line-through}.item .ttl{word-break:break-word;font-weight:600}.item .sub{color:var(--muted);word-break:break-word;font-size:.84rem}.item .acts{flex:none;gap:2px;display:flex}.item input[type=checkbox]{width:24px;height:24px;accent-color:var(--primary);flex:none;margin-top:2px}.empty{text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:14px;padding:22px 12px}.empty strong{color:var(--text);margin-bottom:4px;display:block}.bloc{border:1px solid var(--line);background:var(--surface);border-radius:14px;flex-direction:column;gap:10px;padding:14px;display:flex}.bloc.fait{background:var(--primary-soft);border-color:#0000}.bloc.partiel{background:var(--warm-soft);border-color:#0000}.bloc.non{background:var(--surface-2)}.bloc .time{font-variant-numeric:tabular-nums;color:var(--primary);font-weight:700}.bloc .time.unset{color:var(--muted);font-weight:600}.statuts{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.statuts button{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:10px;min-height:42px;font-size:.88rem;font-weight:600}.statuts button[aria-pressed=true].s-fait{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}.statuts button[aria-pressed=true].s-partiel{background:var(--warm);border-color:var(--warm);color:#fff}:root[data-theme=dark] .statuts button[aria-pressed=true].s-partiel{color:#1a1305}.statuts button[aria-pressed=true].s-non{background:var(--muted);border-color:var(--muted);color:var(--surface)}.cal{-webkit-user-select:none;user-select:none}.cal-head{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.cal-grid{grid-template-columns:repeat(7,1fr);gap:4px;display:grid}.cal-dow{text-align:center;color:var(--muted);padding-bottom:2px;font-size:.72rem;font-weight:700}.cal-day{aspect-ratio:1;background:var(--surface-2);cursor:pointer;min-height:40px;color:var(--text);border:2px solid #0000;border-radius:10px;padding:0;font-size:.9rem;font-weight:600}.cal-day.empty-cell{visibility:hidden;cursor:default}.cal-day.regulier{background:var(--primary);color:var(--on-primary)}.cal-day.difficile{background:var(--warm-soft);color:var(--warm);border-color:var(--warm)}.cal-day.futur,.cal-day.avant{color:var(--muted);border-color:var(--line);background:0 0;border-style:dashed}.cal-day.today{box-shadow:0 0 0 2px var(--text) inset}.cal-day.selected{border-color:var(--text)}.legend{color:var(--muted);flex-wrap:wrap;gap:12px;margin-top:10px;font-size:.78rem;display:flex}.legend i{vertical-align:-1px;border-radius:4px;width:12px;height:12px;margin-right:6px;display:inline-block}.datenav{align-items:center;gap:6px;display:flex}.datenav .label{text-align:center;text-transform:capitalize;flex:1;font-weight:700}.overlay{z-index:50;background:#08120d8c;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:100%;max-width:560px;max-height:92dvh;padding:18px 16px calc(18px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;animation:.2s up;overflow-y:auto}.sheet .sheet-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px;display:flex}@media (width>=700px){.overlay{align-items:center}.sheet{border-radius:22px}}@keyframes up{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}.toasts{z-index:60;left:12px;right:12px;bottom:calc(var(--nav-h) + 12px + env(safe-area-inset-bottom));pointer-events:none;flex-direction:column;align-items:center;gap:8px;display:flex;position:fixed}@media (width>=900px){.toasts{bottom:20px;left:262px}}.toast{pointer-events:auto;background:var(--text);color:var(--bg);border-radius:12px;max-width:520px;padding:12px 16px;font-weight:600;animation:.2s up;box-shadow:0 6px 24px #00000040}.toast.err{background:var(--danger);color:#fff}.banner{background:var(--warm-soft);color:var(--text);border-radius:14px;align-items:flex-start;gap:10px;padding:12px 14px;font-size:.92rem;display:flex}.banner.danger{background:var(--danger-soft)}.banner.info{background:var(--primary-soft)}.chart{width:100%;height:220px}.chart.tall{height:280px}.chart text{fill:var(--muted);font-size:11px}.kv{grid-template-columns:1fr auto;gap:4px 12px;font-size:.95rem;display:grid}.kv dt{color:var(--muted)}.kv dd{text-align:right;margin:0;font-weight:700}table.tbl{border-collapse:collapse;width:100%;font-size:.88rem}.tbl th,.tbl td{text-align:left;border-bottom:1px solid var(--line);padding:8px 6px}.tbl th{color:var(--muted);font-size:.78rem;font-weight:600}.tbl td.num,.tbl th.num{text-align:right;font-variant-numeric:tabular-nums}.scroll-x{overflow-x:auto}.link-card{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:14px;align-items:center;gap:12px;min-height:64px;padding:14px;text-decoration:none;display:flex}.link-card:hover{background:var(--surface-2)}.link-card .ic{background:var(--primary-soft);width:42px;height:42px;color:var(--primary);border-radius:12px;flex:none;place-items:center;display:grid}.link-card .ic svg{width:22px;height:22px}.chip-row{flex-wrap:wrap;gap:6px;display:flex}details.fold>summary{cursor:pointer;align-items:center;min-height:40px;font-weight:600;display:flex}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
