:root{--bg:#f5f2ec;--panel:#fff;--text:#26342f;--muted:#75827b;--line:#e3ded5;--dark:#26342f;--dark2:#31423b;--green:#5f8f72;--green2:#e6f1e9;--peach:#d27d63;--peach2:#fff0ea;--amber:#d99032;--amber2:#fff6df;--red:#c95252;--red2:#fdeaea;--lav:#ece8f6;--shadow:0 12px 34px rgba(38,52,47,.08);--r:18px}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;min-height:100%;-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit}.hidden{display:none!important}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:230px;background:var(--dark);color:#fff;padding:28px 18px 20px;display:flex;flex-direction:column;z-index:20}.brand{font-size:27px;font-weight:850;letter-spacing:-1px}.brand span,.brand-large span{color:#d99a7d}.family-label{font-size:11px;letter-spacing:1.6px;color:#93a59d;margin:4px 0 28px}#sideNav{display:grid;gap:7px}#sideNav button{border:0;background:transparent;color:#dce5e1;text-align:left;border-radius:12px;padding:12px 13px;cursor:pointer;font-weight:600}#sideNav button:hover,#sideNav button.active{background:#3b5148;color:#fff}.sync-line{margin-top:auto;font-size:12px;color:#b9c7c1;display:flex;align-items:center;gap:8px}.sync-line i{width:9px;height:9px;border-radius:50%;background:#d99151}.sync-line i.online{background:#62c784}.main{margin-left:230px;min-height:100vh}.topbar{height:86px;padding:19px 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(220,215,205,.8);background:rgba(245,242,236,.92);position:sticky;top:0;z-index:10;backdrop-filter:blur(12px)}.topbar h1{margin:0;font-size:28px;letter-spacing:-.6px}.mobile-brand{display:none}.profile-switch{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:6px 9px}.profile-switch select{border:0;background:transparent;color:var(--text);font-weight:700;outline:none}.mini-avatar{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:var(--green);color:#fff;font-weight:800}.content{padding:24px 28px 42px;max-width:1500px;margin:auto}.grid{display:grid;gap:14px}.grid.metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:18px;box-shadow:0 1px 1px rgba(38,52,47,.02)}.card.soft-green{background:var(--green2);border-color:#c8dfd0}.card.soft-peach{background:var(--peach2);border-color:#f0d0c3}.card.soft-amber{background:var(--amber2);border-color:#eddda8}.card.soft-lav{background:var(--lav);border-color:#dcd4ef}.metric-label{font-size:12px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.5px}.metric-value{font-size:28px;font-weight:850;margin:6px 0 3px;letter-spacing:-.6px}.metric-sub{font-size:13px;color:var(--muted)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 10px}.section-head h2{font-size:19px;margin:0}.section-head p{margin:3px 0 0;color:var(--muted);font-size:13px}.btn{border:1px solid #d9d4ca;background:#fff;color:var(--text);padding:10px 14px;border-radius:11px;font-weight:700;cursor:pointer}.btn:hover{filter:brightness(.98)}.btn.primary{background:var(--green);border-color:var(--green);color:#fff}.btn.danger{background:var(--red2);border-color:#efc5c5;color:#9d3939}.btn.ghost{background:transparent}.btn.small{padding:7px 9px;border-radius:9px;font-size:13px}.quick-task{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(130px,.7fr) minmax(160px,.9fr) minmax(170px,.9fr) auto;gap:8px}.field{display:grid;gap:6px}.field label{font-size:12px;color:var(--muted);font-weight:700}.input,input,select,textarea{width:100%;border:1px solid #d9d4ca;background:#fff;color:var(--text);padding:10px 11px;border-radius:10px;outline:none}input:focus,select:focus,textarea:focus{border-color:#78a98a;box-shadow:0 0 0 3px rgba(120,169,138,.13)}textarea{min-height:86px;resize:vertical}.task-list{display:grid;gap:9px}.task{display:grid;grid-template-columns:6px 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px}.task .bar{align-self:stretch;border-radius:5px;background:var(--green)}.task.orange .bar{background:var(--amber)}.task.red .bar{background:var(--red)}.task-title{font-weight:800}.task-meta{font-size:12px;color:var(--muted);margin-top:4px}.task-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.empty{padding:24px;text-align:center;color:var(--muted);border:1px dashed #d9d4ca;border-radius:14px;background:rgba(255,255,255,.45)}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:13px}.tab{border:1px solid var(--line);background:#fff;padding:9px 13px;border-radius:10px;font-weight:700;cursor:pointer}.tab.active{background:var(--dark);border-color:var(--dark);color:#fff}.calendar-wrap{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr);gap:15px}.calendar{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}.cal-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line)}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr)}.weekday{font-size:11px;text-transform:uppercase;font-weight:800;color:var(--muted);text-align:center;padding:10px 4px;background:#faf9f6}.day{min-height:88px;border-top:1px solid #f0ece4;border-right:1px solid #f0ece4;padding:8px;cursor:pointer;position:relative;background:#fff}.day:nth-child(7n){border-right:0}.day.out{color:#b9b7b1;background:#fbfaf8}.day.today .daynum{background:var(--dark);color:#fff}.day.selected{box-shadow:inset 0 0 0 2px var(--green)}.daynum{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;font-weight:800;font-size:13px}.dots{display:flex;gap:4px;margin-top:10px;flex-wrap:wrap}.dot{width:7px;height:7px;border-radius:50%;background:var(--green)}.dot.orange{background:var(--amber)}.dot.red{background:var(--red)}.dot.event{background:#7b71ad}.calendar-side{display:grid;gap:10px;align-content:start}.list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #eee9e1}.list-row:last-child{border-bottom:0}.money-pos{color:#33714d;font-weight:800}.money-neg{color:#b64b4b;font-weight:800}.progress{height:12px;border-radius:999px;background:#ebe7df;overflow:hidden}.progress>i{display:block;height:100%;background:var(--green);border-radius:inherit}.project-card{display:grid;gap:11px}.project-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.project-name{font-size:17px;font-weight:850}.project-pct{font-weight:850;color:var(--green)}.course-add{display:grid;grid-template-columns:1.5fr .8fr .6fr auto;gap:8px}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{border:1px solid #ddd7cc;background:#fff;border-radius:999px;padding:7px 10px;font-size:13px;cursor:pointer}.grocery{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #eee9e1}.grocery.done .grocery-name{text-decoration:line-through;color:#a7a49e}.check{width:22px;height:22px}.meal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.meal{padding:16px;border-radius:14px;background:#fff;border:1px solid var(--line)}.meal b{display:block;color:var(--muted);font-size:12px;text-transform:uppercase;margin-bottom:6px}.notice{border-radius:14px;padding:13px 15px;background:var(--amber2);border:1px solid #ead99d;color:#6c5b33}.notice.red{background:var(--red2);border-color:#efc2c2;color:#843a3a}.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#f5f2ec,#ece8df)}.login-card{width:min(620px,100%);text-align:center}.brand-large{font-size:34px;font-weight:900;letter-spacing:-1.3px}.login-card h1{font-size:30px;margin:24px 0 6px}.login-card p{color:var(--muted);margin:0 0 24px}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.profile-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px 20px 18px;display:grid;justify-items:center;gap:14px;cursor:pointer;box-shadow:var(--shadow)}.profile-card:hover{transform:translateY(-2px)}.avatar{width:82px;height:82px;border-radius:22px;display:grid;place-items:center;color:#fff;font-size:32px;font-weight:850}.avatar.johann{background:#3d8873}.avatar.ange{background:#d17f67}.login-card small{color:#8b958f}.bottom-nav{display:none}.sheet{position:fixed;inset:0;background:rgba(24,32,29,.42);z-index:100;display:flex;align-items:flex-end}.sheet-card{width:100%;background:#fff;border-radius:22px 22px 0 0;padding:10px 16px 26px}.sheet-handle{width:44px;height:5px;background:#d1cec8;border-radius:99px;margin:0 auto 10px}.sheet-card button{width:100%;border:0;background:transparent;text-align:left;padding:14px 10px;font-weight:750;font-size:16px;border-bottom:1px solid #eee9e1}dialog{border:0;border-radius:20px;width:min(560px,calc(100% - 28px));padding:0;box-shadow:0 24px 80px rgba(0,0,0,.22)}dialog::backdrop{background:rgba(26,34,31,.46);backdrop-filter:blur(2px)}#modalBody{padding:22px;display:grid;gap:13px}#modalBody h2{margin:0 0 4px}.modal-actions{padding:14px 22px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);background:#26342f;color:#fff;padding:11px 15px;border-radius:11px;opacity:0;pointer-events:none;transition:.2s;z-index:300;max-width:90%;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.split{display:flex;justify-content:space-between;align-items:center;gap:10px}.muted{color:var(--muted)}.strong{font-weight:800}.top-gap{margin-top:14px}
@media(max-width:1050px){.grid.metrics{grid-template-columns:repeat(2,1fr)}.quick-task{grid-template-columns:1fr 1fr}.quick-task .wide{grid-column:span 2}.calendar-wrap{grid-template-columns:1fr}.course-add{grid-template-columns:1fr 1fr}.course-add .course-item{grid-column:span 2}}
@media(max-width:760px){body{padding-bottom:76px}.sidebar{display:none}.main{margin-left:0}.topbar{height:72px;padding:13px 15px}.topbar h1{font-size:21px}.mobile-brand{display:block;font-size:11px;font-weight:800;color:var(--muted);letter-spacing:.5px}.profile-switch{padding:5px 6px}.profile-switch select{max-width:105px}.content{padding:14px 13px 24px}.grid.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric-value{font-size:23px}.card{padding:14px;border-radius:15px}.grid.two{grid-template-columns:1fr}.quick-task{grid-template-columns:1fr}.quick-task .wide{grid-column:auto}.section-head{margin-top:17px}.bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);padding:7px 4px max(7px,env(safe-area-inset-bottom));z-index:60;box-shadow:0 -6px 24px rgba(31,42,38,.06)}.bottom-nav button{border:0;background:transparent;color:#7a857f;display:grid;justify-items:center;gap:2px;font-size:10px;padding:3px}.bottom-nav button b{font-size:20px;line-height:22px}.bottom-nav button.active{color:var(--green)}.task{grid-template-columns:5px 1fr}.task-actions{grid-column:2;justify-content:flex-start}.calendar-wrap{display:block}.calendar-side{margin-top:12px}.day{min-height:58px;padding:5px}.weekday{padding:8px 2px;font-size:9px}.daynum{width:24px;height:24px;font-size:11px}.dots{margin-top:6px}.meal-grid{grid-template-columns:1fr}.course-add{grid-template-columns:1fr}.course-add .course-item{grid-column:auto}.profile-grid{gap:10px}.profile-card{padding:19px 10px 15px}.avatar{width:68px;height:68px}.login-card h1{font-size:26px}.row-actions .btn{flex:1}.hide-mobile{display:none}.list-row{align-items:flex-start}.cal-head{padding:11px}.toast{bottom:90px}.modal-actions{position:sticky;bottom:0;background:#fff}}
@media(max-width:420px){.grid.metrics{grid-template-columns:1fr}.profile-grid{grid-template-columns:1fr 1fr}.metric-value{font-size:25px}}

/* V2.1.1 dashboard harmonisation */
.dashboard-top{margin-top:0}.task-columns{align-items:start}.task-panel{background:rgba(255,255,255,.48);border:1px solid var(--line);border-radius:16px;padding:12px}.task-panel-title{display:flex;align-items:center;justify-content:space-between;margin:1px 2px 9px;font-weight:850}.task-panel-title small{font-size:11px;color:var(--muted);font-weight:700}.compact-head{margin-bottom:8px}.compact-card{padding:13px}.finance-head{margin-top:26px}.clickable-task{cursor:pointer;transition:.16s ease}.clickable-task:hover{border-color:#cfc9bf;transform:translateY(-1px)}.task{padding:9px 10px;gap:9px;border-radius:12px}.task-main{min-width:0}.task-head{display:flex;align-items:center;gap:8px;justify-content:space-between}.task-title{font-size:14px;line-height:1.25}.task-meta{font-size:11px;margin-top:3px}.priority-badge{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;background:var(--green);color:#fff;padding:3px 7px;font-size:10px;font-weight:800;line-height:1.1}.priority-badge.orange{background:var(--amber)}.priority-badge.red{background:var(--red)}.task-details{margin-top:8px;padding:9px 10px;background:#f7f5f0;border:1px solid #e9e4dc;border-radius:9px;white-space:pre-wrap;font-size:12px;line-height:1.4;color:#4f5b55}.done-task{opacity:.94}.done-list .task .bar{background:#8a9690}.done-list .task-actions{gap:5px}.done-list .btn.small{padding:6px 8px}.money-mask{letter-spacing:2px}
@media(max-width:760px){.task-panel{padding:10px}.task-columns{gap:12px}.task{grid-template-columns:5px minmax(0,1fr);padding:9px}.task-actions{margin-top:2px}.priority-badge{font-size:9px;padding:3px 6px}.task-title{font-size:13px}.task-meta{font-size:10.5px}.finance-head{margin-top:22px}}

/* V2.1.2 dashboard compact + deadlines */
.task-panel{padding:10px 12px}.task-panel-title{justify-content:center;text-align:center;gap:10px;padding:2px 0 8px;font-size:16px}.task-panel-title small{display:none}.task-list{gap:7px}.task{min-height:0;padding:8px 9px;gap:8px}.task .bar{width:5px}.task-head{min-height:22px}.task-title{font-size:13px}.task-meta{font-size:10.5px;line-height:1.3}.priority-badge{font-size:9px;padding:3px 6px;max-width:150px;text-align:center}.task-actions{align-items:center}.task-actions .btn.small{padding:6px 8px;font-size:11px}.quick-task{grid-template-columns:minmax(180px,1.45fr) minmax(115px,.65fr) minmax(155px,.85fr) minmax(160px,.85fr) minmax(160px,.85fr) auto}.quick-hint{margin-top:7px;color:var(--muted);font-size:11px}.done-list .task{background:#fbfaf7}.task-details{font-size:11.5px;padding:8px 9px}
@media(max-width:1050px){.quick-task{grid-template-columns:1fr 1fr}.quick-task .wide{grid-column:span 2}}
@media(max-width:760px){.task-panel-title{font-size:15px}.task{padding:8px}.priority-badge{font-size:8.5px;max-width:125px}.task-meta{font-size:10px}.quick-task{grid-template-columns:1fr}.quick-task .wide{grid-column:auto}.quick-hint{font-size:10px}}

/* V2.1.3 courses quick-select + advanced reminders */
.quick-course-head{align-items:center}.quick-course-chips{margin-top:9px;gap:7px}.quick-chip{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;background:#fff;overflow:hidden}.quick-chip .chip{border:0;border-radius:0;margin:0;background:transparent}.quick-remove{border:0;border-left:1px solid var(--line);background:#fff;color:var(--muted);padding:5px 8px;cursor:pointer;font-weight:800}.quick-remove:hover{background:#f7efec;color:var(--red)}.reminder-builder{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}.reminder-builder.top-gap{grid-template-columns:minmax(80px,.55fr) minmax(120px,.8fr) auto}.reminder-list{display:flex;flex-direction:column;gap:6px}.reminder-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#f8f7f4;font-size:12px}
@media(max-width:760px){.quick-course-head{align-items:flex-start}.reminder-builder,.reminder-builder.top-gap{grid-template-columns:1fr}.quick-chip .chip{font-size:11px}}

/* V2.1.4 finances intelligentes */
.grid.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.finance-timeline .list-row{padding:9px 2px}.finance-timeline .list-row+.list-row{border-top:1px solid var(--line)}
@media(max-width:900px){.grid.three{grid-template-columns:1fr}}
/* V2.1.7 - Suggestions / contrats */
.suggestion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.suggestion-card{display:flex;flex-direction:column;gap:11px}.suggestion-head{align-items:flex-start}.suggestion-head h3{margin:7px 0 4px;font-size:18px}.suggestion-cost{font-weight:800;font-size:18px;white-space:nowrap}.suggestion-status{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:800;background:#eef1ef;color:#56615c}.suggestion-status.proposed{background:#fff2d7;color:#8a6420}.suggestion-status.accepted{background:#e3f2ea;color:#2d7657}.suggestion-status.refused{background:#f8e5e3;color:#a24a42}.suggestion-status.draft{background:#ececf5;color:#666783}.suggestion-desc{white-space:pre-wrap;line-height:1.5}.suggestion-meta{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted)}.suggestion-conditions{border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:#faf9f6}.suggestion-conditions summary{cursor:pointer;font-weight:700}.suggestion-conditions div{margin-top:7px;white-space:pre-wrap;line-height:1.45}.suggestion-actions{margin-top:auto;flex-wrap:wrap}.modal-grid{gap:10px}
@media(max-width:850px){.suggestion-grid{grid-template-columns:1fr}.suggestion-actions .btn{flex:1 1 auto}}

/* V2.1.8 - refonte interface familiale */
:root{--bg:#f3f6f8;--panel:#fff;--text:#172536;--muted:#6f7c89;--line:#e5eaf0;--dark:#203447;--dark2:#294358;--green:#4c9a80;--green2:#e6f5ef;--peach:#e29a75;--peach2:#fff0e7;--amber:#d99b42;--amber2:#fff5de;--red:#c85c5c;--red2:#fdeaea;--lav:#eee9ff;--shadow:0 14px 36px rgba(31,49,67,.08);--r:22px}
html,body{background:linear-gradient(180deg,#eef3f7 0,#f7f8fa 360px,#f3f6f8 100%);color:var(--text)}
.sidebar{background:rgba(255,255,255,.97);color:var(--text);border-right:1px solid var(--line);box-shadow:8px 0 28px rgba(31,49,67,.04)}
.brand{color:#203447}.brand span,.brand-large span{color:#4c8cb7}.family-label{color:#91a0ab}
#sideNav button{color:#5f6f7c}#sideNav button:hover,#sideNav button.active{background:#eaf2f8;color:#244d6b}
.sync-line{color:#7f8d98}.topbar{background:rgba(245,248,250,.86);border-bottom:1px solid rgba(221,228,234,.75)}
.card{border-color:#e7ebef;border-radius:22px;box-shadow:0 8px 28px rgba(33,50,66,.055)}
.btn{border-color:#dfe5ea;border-radius:13px;box-shadow:0 3px 10px rgba(31,49,67,.04)}.btn.primary{background:#397d69;border-color:#397d69}
.content{max-width:1380px}
.home-hero{--orb-x:64%;--orb-y:24%;height:255px;position:relative;overflow:hidden;border-radius:30px;background:linear-gradient(160deg,#4c8fd0 0%,#7eb7df 48%,#e6c99d 100%);box-shadow:0 20px 50px rgba(55,94,127,.2);isolation:isolate;transition:background 1.2s ease}
.home-hero[data-phase="dawn"]{background:linear-gradient(165deg,#596fa4 0%,#db9c87 56%,#f1c890 100%)}.home-hero[data-phase="sunset"]{background:linear-gradient(165deg,#465b91 0%,#d98678 54%,#efbd86 100%)}.home-hero[data-phase="night"]{background:linear-gradient(165deg,#132139 0%,#233b62 55%,#425b78 100%)}
.home-hero:after{content:"";position:absolute;inset:auto 0 0;height:42%;background:linear-gradient(180deg,transparent,rgba(255,255,255,.13));z-index:-1}
.hero-content{position:relative;z-index:5;height:100%;display:flex;align-items:flex-start;justify-content:space-between;padding:28px 30px;color:#fff}.hero-copy{display:grid;gap:3px;text-shadow:0 2px 12px rgba(20,42,63,.18)}.hero-date{text-transform:uppercase;letter-spacing:2px;font-weight:800;font-size:12px;opacity:.9}.hero-time{font-size:55px;line-height:1;font-weight:900;letter-spacing:-2.5px;margin-top:12px}.hero-greeting{font-size:16px;font-weight:700;opacity:.94}
.weather-chip{display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid rgba(255,255,255,.38);background:rgba(255,255,255,.18);backdrop-filter:blur(12px);border-radius:22px;box-shadow:inset 0 1px 0 rgba(255,255,255,.2)}.weather-chip>div:last-child{display:grid;gap:1px}.weather-chip b{font-size:13px}.weather-chip span{font-size:11px;opacity:.85}.weather-temp{font-size:31px;font-weight:900;letter-spacing:-1.5px}
.hero-orb{position:absolute;left:var(--orb-x);top:var(--orb-y);width:58px;height:58px;border-radius:50%;transform:translate(-50%,-50%);z-index:2;transition:left 30s linear,top 30s linear,background .5s;pointer-events:none}.hero-orb[data-kind="sun"]{background:radial-gradient(circle at 38% 38%,#fff7ba 0 15%,#ffd45c 35%,#f4a93c 74%);box-shadow:0 0 20px 7px rgba(255,211,90,.42),0 0 80px 25px rgba(255,213,96,.18)}.hero-orb[data-kind="moon"]{width:48px;height:48px;background:radial-gradient(circle at 35% 30%,#fff 0 12%,#e9eef5 35%,#bbc8d9 100%);box-shadow:0 0 30px rgba(226,237,255,.35)}
.hero-cloud{position:absolute;width:115px;height:30px;border-radius:40px;background:rgba(255,255,255,.46);filter:blur(.4px);opacity:0;z-index:1;transition:opacity .5s}.hero-cloud:before,.hero-cloud:after{content:"";position:absolute;border-radius:50%;background:inherit}.hero-cloud:before{width:48px;height:48px;left:17px;top:-21px}.hero-cloud:after{width:61px;height:61px;right:13px;top:-31px}.cloud-a{left:13%;top:35%;animation:cloudFloat 18s ease-in-out infinite}.cloud-b{right:10%;top:63%;transform:scale(.7);animation:cloudFloat 23s ease-in-out infinite reverse}.home-hero.cloudy .hero-cloud{opacity:.8}.home-hero.wet .hero-cloud{opacity:.92;background:rgba(225,232,239,.67)}
.hero-rain{position:absolute;inset:0;z-index:1;opacity:0;background-image:repeating-linear-gradient(105deg,transparent 0 18px,rgba(255,255,255,.34) 19px 20px,transparent 21px 34px);background-size:70px 70px;animation:rainMove 1.1s linear infinite}.home-hero.wet .hero-rain{opacity:.28}.sky-stars{position:absolute;inset:0;opacity:0;background-image:radial-gradient(circle at 12% 22%,#fff 0 1px,transparent 1.5px),radial-gradient(circle at 35% 13%,#fff 0 1px,transparent 1.5px),radial-gradient(circle at 67% 31%,#fff 0 1.2px,transparent 1.6px),radial-gradient(circle at 84% 17%,#fff 0 1px,transparent 1.5px),radial-gradient(circle at 75% 55%,#fff 0 1px,transparent 1.5px);z-index:1}.home-hero.night .sky-stars{opacity:.72}
@keyframes cloudFloat{50%{transform:translateX(18px)}}@keyframes rainMove{to{background-position:-30px 70px}}
.week-strip{position:relative;z-index:7;margin:-42px 22px 24px;display:grid;grid-template-columns:repeat(7,1fr);background:rgba(255,255,255,.97);border:1px solid rgba(225,230,236,.9);border-radius:27px;padding:10px;box-shadow:0 18px 38px rgba(31,50,68,.11);backdrop-filter:blur(16px)}.week-day{position:relative;border:0;background:transparent;color:var(--text);border-radius:19px;min-height:88px;display:grid;justify-items:center;align-content:center;gap:2px;cursor:pointer}.week-day span{font-size:11px;font-weight:800;text-transform:capitalize;color:#687785}.week-day b{font-size:24px;line-height:1.1}.week-day small{min-height:14px;font-size:9px;color:#89949e}.week-day i{width:5px;height:5px;border-radius:50%;background:#e39b7a;position:absolute;bottom:7px}.week-day.active{background:#315d7d;color:#fff;box-shadow:0 8px 20px rgba(49,93,125,.23)}.week-day.active span,.week-day.active small{color:#e6f1f8}
.dashboard-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:4px 0 26px}.action-card{min-height:142px;text-align:left;border:1px solid #e6eaee;border-radius:23px;background:#fff;padding:16px;display:grid;grid-template-columns:1fr auto;grid-template-areas:"icon label" "value value" "sub sub";align-items:start;gap:6px;box-shadow:0 10px 28px rgba(31,49,67,.065);cursor:pointer;color:var(--text);transition:.18s ease}.action-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(31,49,67,.09)}.action-card .action-icon{grid-area:icon;width:43px;height:43px;display:grid;place-items:center;border-radius:14px;font-size:21px;font-weight:900}.action-card .action-label{grid-area:label;align-self:center;justify-self:end;font-size:11px;text-transform:uppercase;letter-spacing:.7px;font-weight:850;color:#71808c}.action-card strong{grid-area:value;font-size:25px;line-height:1.1;margin-top:5px;letter-spacing:-.7px;overflow:hidden;text-overflow:ellipsis}.action-card small{grid-area:sub;color:#83909a;font-weight:650}.action-card.mint .action-icon{background:#dcf4ec;color:#267c65}.action-card.peach .action-icon{background:#ffeadf;color:#bd6843}.action-card.blue .action-icon{background:#e2eef9;color:#3d729a}.action-card.lav .action-icon{background:#eee8ff;color:#7058b0}
.dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:22px;align-items:start}.home-section-head{margin-top:0}.home-task-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:10px;box-shadow:0 10px 28px rgba(31,49,67,.055)}.home-task-card .task{border:0;border-bottom:1px solid #edf0f2;border-radius:14px;box-shadow:none}.home-task-card .task:last-of-type{border-bottom:0}.home-more{width:100%;border:0;background:#f4f7f9;border-radius:13px;padding:11px;color:#4d6678;font-weight:800;cursor:pointer}
.home-side-stack{display:grid;gap:11px}.home-next-card{background:#fff;border:1px solid var(--line);border-radius:22px;min-height:94px;padding:16px;display:flex;align-items:center;gap:13px;box-shadow:0 10px 28px rgba(31,49,67,.055);cursor:pointer}.home-next-card:hover{transform:translateY(-1px)}.home-next-card>div{display:grid;gap:4px;min-width:0}.home-next-card b{font-size:15px}.home-next-card small{color:var(--muted);line-height:1.35}.home-next-icon{width:47px;height:47px;flex:0 0 47px;border-radius:16px;display:grid;place-items:center;background:#e4f0f8;color:#3a7298;font-size:21px;font-weight:900}.home-next-card.suggestion .home-next-icon{background:#eee8ff;color:#745bb5}
.finance-slim{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.finance-slim>div{background:#fff;border:1px solid var(--line);border-radius:19px;padding:15px 17px;display:grid;gap:5px;box-shadow:0 8px 24px rgba(31,49,67,.045)}.finance-slim span{font-size:11px;text-transform:uppercase;letter-spacing:.5px;font-weight:800;color:var(--muted)}.finance-slim b{font-size:19px}
@media(max-width:1000px){.dashboard-main-grid{grid-template-columns:1fr}.dashboard-actions{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){body{background:#f5f7f9;padding-bottom:78px}.topbar{position:fixed;left:0;right:0;top:0;height:64px;background:transparent;border:0;padding:10px 13px;pointer-events:none}.topbar>div:first-child{display:none}.profile-switch{pointer-events:auto;background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.34);backdrop-filter:blur(11px);box-shadow:none;color:#fff}.profile-switch select{color:#fff;text-shadow:0 1px 5px rgba(0,0,0,.18)}.profile-switch select option{color:var(--text)}.mini-avatar{background:rgba(255,255,255,.25)!important}.content{padding:0 13px 26px}.home-hero{width:calc(100% + 26px);margin-left:-13px;height:270px;border-radius:0 0 34px 34px;box-shadow:0 18px 40px rgba(55,94,127,.16)}.hero-content{padding:78px 20px 28px}.hero-date{font-size:11px;letter-spacing:1.6px}.hero-time{font-size:48px;margin-top:9px}.hero-greeting{font-size:14px}.weather-chip{padding:9px 11px;border-radius:18px;gap:8px}.weather-temp{font-size:27px}.weather-chip b{font-size:11px}.weather-chip span{font-size:9px}.hero-orb{width:48px;height:48px}.week-strip{margin:-30px 5px 21px;padding:7px;border-radius:25px;overflow:hidden}.week-day{min-height:79px;border-radius:18px}.week-day b{font-size:21px}.week-day span{font-size:9px}.week-day small{font-size:8px;white-space:nowrap}.dashboard-actions{display:flex;overflow-x:auto;gap:10px;margin:0 -13px 24px;padding:2px 13px 10px;scroll-snap-type:x proximity;scrollbar-width:none}.dashboard-actions::-webkit-scrollbar{display:none}.action-card{flex:0 0 142px;min-height:142px;scroll-snap-align:start;padding:14px;border-radius:21px}.action-card strong{font-size:22px}.dashboard-main-grid{gap:17px}.home-task-card{border-radius:21px;padding:8px}.home-next-card{border-radius:20px}.finance-slim{display:flex;overflow-x:auto;margin:0 -13px;padding:1px 13px 8px;scrollbar-width:none}.finance-slim>div{flex:0 0 165px;border-radius:18px}.section-head h2{font-size:22px;letter-spacing:-.5px}.section-head p{font-size:11px}.bottom-nav{border-top:0;box-shadow:0 -8px 28px rgba(30,47,64,.08);border-radius:20px 20px 0 0}.bottom-nav button.active{color:#315d7d}}
@media(max-width:430px){.hero-time{font-size:43px}.weather-chip{max-width:145px}.weather-chip>div:last-child{max-width:78px}.weather-chip b,.weather-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.week-strip{margin-left:0;margin-right:0}.week-day small{display:none}.week-day{min-height:70px}.dashboard-actions{gap:9px}.action-card{flex-basis:132px}}

@media(max-width:760px){
body:not(.dashboard-mode) .topbar{position:sticky;left:auto;right:auto;top:0;height:72px;background:rgba(245,248,250,.94);border-bottom:1px solid var(--line);padding:13px 15px;pointer-events:auto}
body:not(.dashboard-mode) .topbar>div:first-child{display:block}
body:not(.dashboard-mode) .topbar h1{display:block;color:var(--text)}
body:not(.dashboard-mode) .mobile-brand{display:block}
body:not(.dashboard-mode) .profile-switch{background:#fff;border-color:var(--line);color:var(--text);backdrop-filter:none}
body:not(.dashboard-mode) .profile-switch select{color:var(--text);text-shadow:none}
body:not(.dashboard-mode) .mini-avatar{color:#fff}
body:not(.dashboard-mode) .content{padding:14px 13px 24px}
}
/* V2.1.9 - accueil familial premium */
.section-kicker{display:block;margin-bottom:4px;font-size:10px;line-height:1;font-weight:900;letter-spacing:1.35px;color:#86a0b2}
.family-glance{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;margin:-4px 2px 18px;padding:14px 16px;border:1px solid rgba(220,228,234,.92);border-radius:20px;background:rgba(255,255,255,.84);backdrop-filter:blur(14px);box-shadow:0 10px 26px rgba(31,49,67,.055)}
.family-glance-main{display:flex;align-items:center;gap:11px;min-width:0}.family-glance-main>div,.family-glance-next{display:grid;gap:2px;min-width:0}.family-glance b{font-size:13px}.family-glance small{font-size:10.5px;color:#7c8994;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.glance-dot{width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:#52a787;box-shadow:0 0 0 5px rgba(82,167,135,.12)}
.family-glance-next{text-align:right;padding-left:18px;border-left:1px solid #e7edf1}.family-glance-next span{font-size:9px;text-transform:uppercase;letter-spacing:.8px;font-weight:900;color:#8a98a3}
.dashboard-actions{margin-top:0}
.action-card{position:relative;overflow:hidden;border-color:rgba(225,231,236,.94);background:linear-gradient(145deg,#fff 0%,#fbfcfd 100%)}.action-card:before{content:"";position:absolute;width:90px;height:90px;border-radius:50%;right:-28px;top:-35px;opacity:.32;filter:blur(2px)}.action-card.mint:before{background:#b7ead9}.action-card.peach:before{background:#ffd5c0}.action-card.blue:before{background:#c8def2}.action-card.lav:before{background:#d9cffc}
.action-card .action-icon{position:relative;z-index:1;font-size:22px;box-shadow:inset 0 1px 0 rgba(255,255,255,.65)}.action-card strong,.action-card small,.action-card .action-label{position:relative;z-index:1}
.home-task-card,.other-task-card{overflow:hidden;background:linear-gradient(180deg,#fff 0%,#fcfdfe 100%);border:1px solid #e6ebef;border-radius:24px;padding:9px;box-shadow:0 10px 28px rgba(31,49,67,.05)}
.other-tasks-section{margin-top:28px}.other-task-card .task{border:0;border-bottom:1px solid #edf1f3;border-radius:13px;background:transparent;box-shadow:none}.other-task-card .task:last-of-type{border-bottom:0}.other-task-card .task:hover{background:#f8fafb}.other-task-card .priority-badge{opacity:.82}
.home-task-card .task:hover{background:#f8fafb}.home-task-card .task,.other-task-card .task{transition:background .15s ease}
.finance-head{margin-top:30px}.finance-slim>div{position:relative;overflow:hidden;background:linear-gradient(150deg,#fff,#fafcfd)}.finance-slim>div:after{content:"";position:absolute;width:55px;height:55px;border-radius:50%;right:-18px;bottom:-23px;background:#e8f0f6;opacity:.8}
.home-next-card{position:relative;overflow:hidden}.home-next-card:after{content:"";position:absolute;width:70px;height:70px;border-radius:50%;right:-28px;bottom:-32px;background:#e8f2f8;opacity:.6}.home-next-card.suggestion:after{background:#eee8ff}.home-next-card>*{position:relative;z-index:1}
.week-strip{box-shadow:0 18px 45px rgba(31,50,68,.13)}
@media(min-width:761px){.home-hero{height:275px}.hero-time{font-size:61px}.dashboard-actions{gap:15px}.action-card{min-height:150px}.other-tasks-section .section-head{margin-top:0}}
@media(max-width:760px){.section-kicker{font-size:9px}.family-glance{grid-template-columns:1fr;margin:-3px 0 17px;padding:12px 13px;border-radius:18px}.family-glance-next{grid-template-columns:auto 1fr auto;align-items:center;text-align:left;padding:10px 0 0;border-left:0;border-top:1px solid #e8edf1}.family-glance-next span{font-size:8px}.family-glance-next b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.other-tasks-section{margin-top:23px}.other-task-card{border-radius:20px;padding:7px}.home-task-card{border-radius:20px}.section-head{align-items:flex-end}.section-head h2{font-size:21px}.action-card{box-shadow:0 10px 24px rgba(31,49,67,.07)}}
/* V2.2.0 */
.dashboard-mode .content{max-width:1280px}
.dashboard-mode .action-card{grid-template-columns:1fr;grid-template-areas:"icon" "label" "value" "sub";gap:4px;min-height:148px;padding:15px 17px;border-radius:20px}
.action-card .action-label{justify-self:start;letter-spacing:.8px;font-size:10px;margin-top:5px}
.action-icon svg{width:24px;height:24px}
.dashboard-mode .action-card:before{width:130px;height:130px;right:-60px;top:-65px}
.task-count{display:inline-grid;place-items:center;vertical-align:middle;font-size:12px;min-width:25px;height:25px;padding:0 6px;border-radius:9px;background:#e8eff5;color:#315d7d}
.other-task-card .task{grid-template-columns:5px minmax(0,1fr)}
.dashboard-mode .home-task-card .task,.dashboard-mode .other-task-card .task{padding:12px 9px}
.dashboard-mode .task-title{font-size:14px}
.dashboard-mode .task-meta{font-size:11px}
.dashboard-mode .home-hero{box-shadow:0 12px 36px #263e6026}
.dashboard-mode .family-glance{box-shadow:none}
@media(max-width:760px){.dashboard-mode .dashboard-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0 0 20px;padding:0;gap:10px;overflow:visible}.dashboard-mode .action-card{min-height:112px;grid-template-columns:38px minmax(0,1fr);grid-template-areas:"icon label" "icon value" "sub sub";padding:12px;column-gap:9px;align-items:center}.dashboard-mode .action-icon{width:38px;height:38px;border-radius:12px}.dashboard-mode .action-card strong{font-size:20px;margin:0}.dashboard-mode .action-label{margin:0}.dashboard-mode .action-card small{padding-top:4px}.dashboard-mode .home-hero{height:235px}.dashboard-mode .hero-content{padding-top:67px}.dashboard-mode .week-strip{margin-bottom:15px}.dashboard-mode .family-glance{margin-bottom:13px}.dashboard-mode .other-tasks-section{margin-top:20px}}
@media(prefers-reduced-motion:reduce){.hero-orb,.hero-cloud,.hero-rain{animation:none;transition:none}}
/* V2.2.1 - tableau de bord familial (palette Budget : vert foncé dominant) */
:root{--hb-dark:#2d6150;--hb-dark2:#245041;--hb-light:#e4f2ea;--hb-beige:#f7f0dd;--hb-rose:#fbe7e4;--hb-violet:#8a6fd0;--hb-violet2:#efeafb;--hb-blue:#4a8ed8;--hb-blue2:#e6f0fb;--hb-line:#e6ebe8}
.nav-ic{width:20px;height:20px;flex:0 0 20px;vertical-align:-4px}
#sideNav button{display:flex;align-items:center;gap:10px}#sideNav button.active{background:var(--hb-light);color:var(--hb-dark)}
.sheet-card button{display:flex;align-items:center;gap:12px}.sheet-card button .nav-ic{color:var(--hb-dark)}
.btn.primary{background:var(--hb-dark);border-color:var(--hb-dark)}.tab.active{background:var(--hb-dark);border-color:var(--hb-dark)}
.hb-svg{width:20px;height:20px;flex:0 0 auto}
.hb-card{position:relative;background:#fff;border:1px solid var(--hb-line);border-radius:22px;padding:16px;margin:0 0 14px;box-shadow:0 8px 24px rgba(30,60,48,.06)}
.hb-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.hb-head-title{display:flex;align-items:center;gap:11px;min-width:0}.hb-head h2{margin:0;font-size:17px;letter-spacing:-.2px}.hb-head p{margin:2px 0 0;font-size:12px;color:var(--muted)}.hb-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.hb-ic{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:var(--hb-light);color:var(--hb-dark)}.hb-ic.cart{background:var(--hb-beige);color:#8b6a24}.hb-ic.rdv{background:var(--hb-violet2);color:var(--hb-violet)}.hb-ic.euro{background:var(--hb-light);color:var(--hb-dark)}.hb-ic.tasks{background:var(--hb-rose);color:#b2554b}
.hb-link{display:inline-flex;align-items:center;gap:2px;border:0;background:transparent;color:var(--hb-dark);font-weight:800;font-size:13px;padding:8px 4px;cursor:pointer;min-height:36px}.hb-link .hb-chev{width:16px;height:16px}
.hb-add{display:inline-flex;align-items:center;gap:4px;min-height:36px}.hb-add .hb-svg{width:16px;height:16px}
.hb-round{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;border:0;background:var(--hb-dark);color:#fff;cursor:pointer}.hb-round.ghost{background:#f2f5f3;color:var(--hb-dark)}
.hb-empty{padding:16px 12px;text-align:center;color:var(--muted);font-size:13px;background:#f8faf9;border-radius:14px}
.hb-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;padding-top:6px;border-top:1px solid #eef2f0;font-size:12px;color:var(--muted)}.hb-card-foot .hb-link{margin-left:auto}
/* Ma semaine */
.hb-week{margin-top:-40px;z-index:6;margin-left:14px;margin-right:14px;box-shadow:0 16px 40px rgba(30,60,48,.12)}
.hb-week-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.hb-day{display:grid;justify-items:center;gap:3px;padding:8px 2px 7px;border:1px solid transparent;border-radius:14px;background:#f7f9f8;cursor:pointer;color:var(--text);min-height:74px}
.hb-day span{font-size:11px;text-transform:capitalize;color:var(--muted);font-weight:700}.hb-day b{font-size:17px}
.hb-day.is-today{background:var(--hb-light)}.hb-day.is-today b{color:var(--hb-dark)}
.hb-day.is-selected{background:var(--hb-dark);color:#fff;border-color:var(--hb-dark)}.hb-day.is-selected span,.hb-day.is-selected b{color:#fff}.hb-day.is-selected .hb-dots{background:#fff;border-radius:8px;padding:2px 3px}
.hb-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:3px;min-height:9px;max-width:100%}.hb-dots em{font-size:9px;font-style:normal;font-weight:800;color:var(--muted)}
.hb-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);flex:0 0 7px}.hb-dot.orange{background:var(--amber)}.hb-dot.red{background:var(--red)}.hb-dot.rdv{background:var(--hb-violet)}.hb-dot.evt{background:var(--hb-blue)}.hb-dot.green{background:var(--green)}
.dot.event{background:var(--hb-violet)}.dot.evt{background:var(--hb-blue)}
.hb-legend{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:10px;font-size:11px;color:var(--muted)}.hb-legend span{display:inline-flex;align-items:center;gap:5px}
.hb-day-panel{margin-top:12px;padding:12px;border-radius:16px;background:#f7f9f8;border:1px solid #e9eeeb;display:grid;gap:6px}
.hb-day-panel-head{display:flex;align-items:center;justify-content:space-between}.hb-x{border:0;background:transparent;color:var(--muted);width:34px;height:34px;display:grid;place-items:center;cursor:pointer}.hb-x .hb-svg{width:18px;height:18px}
.hb-day-item{display:grid;grid-template-columns:8px 52px minmax(0,1fr);align-items:center;gap:9px;width:100%;text-align:left;border:0;background:#fff;border-radius:12px;padding:10px;cursor:pointer;color:var(--text)}
.hb-day-time{font-size:12px;font-weight:800;color:var(--hb-dark)}.hb-day-label{display:grid;gap:2px;min-width:0}.hb-day-label b{font-size:14px;overflow:hidden;text-overflow:ellipsis}.hb-day-label small{font-size:11px;color:var(--muted)}
.hb-panel-btn{justify-self:start;margin-top:4px}
/* Tâches */
.hb-task-list{display:grid;gap:8px}
.hb-task{display:grid;grid-template-columns:5px minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px;border:1px solid #edf1ef;border-radius:15px;background:#fff}
.hb-task.is-late{background:#fff8f7;border-color:#f3dcd8}
.hb-bar{align-self:stretch;border-radius:5px;background:var(--green)}.hb-task.orange .hb-bar{background:var(--amber)}.hb-task.red .hb-bar{background:var(--red)}
.hb-task-main{min-width:0;cursor:default}.hb-task-main[onclick]{cursor:pointer}
.hb-task-title{font-weight:800;font-size:14.5px;line-height:1.3}.hb-note-flag{margin-left:6px;font-size:10px;font-weight:700;color:var(--muted)}
.hb-task-tags{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:6px}
.hb-when{font-size:11px;font-weight:800;border-radius:999px;padding:3px 8px;background:#f1f4f2;color:#56645d}.hb-when.late{background:var(--hb-rose);color:#b2443b}.hb-when.today{background:var(--hb-light);color:var(--hb-dark)}
.hb-owner{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:800;border-radius:999px;padding:3px 8px 3px 6px}.hb-owner .hb-svg{width:13px;height:13px}
.hb-owner.johann{background:#e3f0ec;color:#2f7563}.hb-owner.ange{background:#fbeae3;color:#b26246}.hb-owner.commun{background:var(--hb-beige);color:#7f6322}
.hb-task-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.hb-task-actions .btn.small{min-height:36px;padding:7px 12px;font-size:13px}
.hb-more{width:100%;margin-top:8px;border:1px dashed #d5ddd9;background:#fafcfb;border-radius:13px;padding:10px;font-weight:800;color:var(--hb-dark);cursor:pointer}
.hb-task-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.hb-task-summary>div{display:grid;justify-items:center;gap:1px;padding:9px 6px;border-radius:13px;background:#f5f8f6}.hb-task-summary b{font-size:20px}.hb-task-summary span{font-size:11px;color:var(--muted);font-weight:700}.hb-task-summary .late{background:var(--hb-rose)}.hb-task-summary .late b{color:#b2443b}.hb-task-summary .today{background:var(--hb-light)}.hb-task-summary .today b{color:var(--hb-dark)}
/* Courses + RDV */
.hb-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.hb-pair .hb-card{margin-bottom:14px}
.hb-course-list{display:grid}.hb-course{display:flex;align-items:center;gap:11px;padding:9px 2px;border-bottom:1px solid #f0f3f1;cursor:pointer;min-height:44px}.hb-course:last-child{border-bottom:0}.hb-course .check{flex:0 0 22px;accent-color:var(--hb-dark)}.hb-course span{display:flex;align-items:baseline;gap:7px;min-width:0}.hb-course b{font-size:14px;font-weight:700}.hb-course small{color:var(--muted);font-size:12px}.hb-course.done b{text-decoration:line-through;color:#a6aca9}
.hb-next{display:flex;align-items:center;gap:13px;width:100%;text-align:left;border:0;background:var(--hb-violet2);border-radius:16px;padding:12px;cursor:pointer;color:var(--text)}
.hb-next-date{display:grid;justify-items:center;min-width:54px;padding:6px 4px;border-radius:12px;background:#fff;color:var(--hb-violet)}.hb-next-date b{font-size:22px;line-height:1.1;color:var(--text)}.hb-next-date small{font-size:10px;font-weight:800;text-transform:uppercase}
.hb-next-info{display:grid;gap:2px;min-width:0}.hb-next-info b{font-size:15px}.hb-next-info small{font-size:12px;color:var(--muted)}
.hb-next-mini{display:flex;justify-content:space-between;gap:10px;width:100%;border:0;background:transparent;border-bottom:1px solid #f0f3f1;padding:10px 2px;text-align:left;cursor:pointer;color:var(--text);font-size:13px}.hb-next-mini span{color:var(--muted);white-space:nowrap}.hb-next-mini b{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Budget */
.hb-budget-main{display:grid;gap:3px;padding:14px 16px;border-radius:16px;background:var(--hb-dark);color:#fff}.hb-budget-main span{font-size:12px;opacity:.85;font-weight:700}.hb-budget-main b{font-size:30px;letter-spacing:-.8px}.hb-budget-main.neg{background:#a6493f}
.hb-budget-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.hb-budget-row>div{display:grid;gap:2px;padding:11px 13px;border-radius:14px}.hb-budget-row span{font-size:11px;font-weight:700;color:var(--muted)}.hb-budget-row b{font-size:17px}.hb-budget-row .in{background:var(--hb-light)}.hb-budget-row .in b{color:var(--hb-dark)}.hb-budget-row .out{background:var(--hb-rose)}.hb-budget-row .out b{color:#a6493f}
/* Onglet Tâches */
.hb-tasks-top{flex-wrap:wrap;margin-bottom:6px}.hb-tasks-top .tabs{margin-bottom:0}.hb-tasks-summary{margin:6px 0 14px}
.hb-group-title{display:flex;align-items:center;gap:8px;margin-bottom:10px}.hb-group-title h2{margin:0;font-size:16px}.hb-task-group.late .hb-group-title h2{color:#b2443b}
.hb-done-group summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none}.hb-done-group summary::-webkit-details-marker{display:none}.hb-done-group summary h2{margin:0;font-size:16px}.hb-done-group .done-list{margin-top:12px}
/* Courses : listes */
.course-tabs{margin-bottom:10px}.tab-count{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:4px;padding:0 5px;border-radius:7px;background:rgba(0,0,0,.07);font-size:11px}.tab.active .tab-count{background:rgba(255,255,255,.22)}
.course-add-v221{grid-template-columns:1.5fr .8fr .8fr .5fr auto}
.grocery-actions{flex-wrap:nowrap;align-items:center}.list-badge{border:1px solid #d9e6df;background:var(--hb-light);color:var(--hb-dark);border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}.list-badge.big{background:var(--hb-beige);border-color:#ecdfb9;color:#7f6322}
@media(min-width:900px){.hb-week{margin-left:22px;margin-right:22px}.hb-card{padding:20px}}
@media(max-width:1050px){.course-add-v221{grid-template-columns:1fr 1fr}.course-add-v221 .course-item{grid-column:span 2}}
@media(max-width:760px){.bottom-nav{grid-template-columns:repeat(6,1fr)}.bottom-nav button b{display:grid;place-items:center;height:22px}.bottom-nav .nav-ic{width:22px;height:22px}.bottom-nav button{font-size:10px;min-height:48px}
.hb-card{padding:14px;border-radius:20px;margin-bottom:12px}.hb-week{margin:-34px 8px 12px}.hb-day{min-height:68px;padding:7px 1px 6px}.hb-day b{font-size:16px}
.hb-pair{grid-template-columns:1fr;gap:0}.hb-task{grid-template-columns:5px minmax(0,1fr);padding:10px}.hb-task-actions{grid-column:2;justify-content:flex-start}.hb-task-actions .btn.small{flex:1;min-height:40px}
.course-add-v221{grid-template-columns:1fr 1fr}.course-add-v221 .course-item{grid-column:span 2}.grocery{grid-template-columns:auto minmax(0,1fr) auto}}
@media(max-width:400px){.hb-tasks .hb-head{flex-wrap:wrap}.hb-tasks .hb-head-actions{width:100%;justify-content:space-between}.hb-week-days{gap:3px}.hb-day span{font-size:10px}.hb-budget-main b{font-size:26px}}

/* ===== V2.3.0 Budget ===== */
.bd-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.bd-month{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:18px;color:#26342f}
.bd-card{background:#fff;border:1px solid #e3ded5;border-radius:16px;margin-bottom:12px;overflow:hidden;border-left:6px solid #9aa8a0}
.bd-head{display:flex;align-items:center;gap:10px;width:100%;background:none;border:0;padding:14px 14px 8px;text-align:left;font:inherit;cursor:pointer;color:inherit}
.bd-head2{display:flex;align-items:center;justify-content:space-between;padding:14px 14px 8px}
.bd-title{font-weight:700;flex:1;color:#26342f}
.bd-total{font-weight:800;font-size:17px}
.bd-caret{color:#75827b;width:14px}
.bd-prev{padding:0 14px 12px}
.bd-pv{display:flex;justify-content:space-between;gap:8px;padding:3px 0;font-size:14px;color:#44524b}
.bd-pv small{color:#75827b;margin-left:4px}
.bd-none{padding:6px 14px 12px;color:#75827b;font-size:13px}
.bd-prev .bd-none{padding:0}
.bd-scroll{overflow-x:auto;padding:0 6px 6px}
.bd-table{width:100%;border-collapse:collapse;font-size:11.5px;table-layout:auto}
.bd-table th{font-weight:600;color:#5b6a63;text-align:right;padding:6px 3px;white-space:nowrap;font-size:10.5px}
.bd-table td{text-align:right;padding:8px 3px;border-top:1px solid rgba(0,0,0,.06);white-space:nowrap}
.bd-table .bd-l{text-align:left;white-space:normal;min-width:70px}
.bd-table td.bd-l{display:table-cell}
.bd-table td.bd-l>span{vertical-align:middle}
.bd-table .bd-d{color:#5b6a63;font-size:12px}
.bd-table tfoot td{font-weight:700;border-top:2px solid rgba(0,0,0,.12)}
.bd-table tbody tr{cursor:pointer}
.bd-zero{color:#b4bcb7}
.bd-off{opacity:.5}
.bd-off em,.bd-table em{font-style:normal;color:#75827b;font-size:11px}
.bd-add{margin:2px 14px 14px}
.bd-chk{width:20px;height:20px;border-radius:6px;border:2px solid #8aa596;background:#fff;color:#fff;font-size:13px;line-height:1;margin-right:8px;vertical-align:middle;padding:0;cursor:pointer}
.bd-chk.on{background:#2f6f4f;border-color:#2f6f4f}
.bd-rev{border-left-color:#3d8a5f;background:linear-gradient(#fff,#fff)}.bd-rev .bd-head,.bd-revp .bd-head{background:#e6f3ea}
.bd-revp{border-left-color:#8fcaa5}
.bd-prel{border-left-color:#e08a78}.bd-prel .bd-head{background:#fdebe6}
.bd-cour{border-left-color:#e3c35a}.bd-cour .bd-head{background:#fbf3d9}
.bd-dep{border-left-color:#9a86d4}.bd-dep .bd-head{background:#eee9fa}
.bd-bals{border-left-color:#26342f}
.bd-bal-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:0 12px 14px}
.bd-bal{background:#f5f2ec;border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:2px;min-width:0}
.bd-bal small{color:#5b6a63}.bd-bal b{font-size:15px}.bd-bal span{font-size:11px;color:#75827b}.bd-bal .bd-est{color:#2f6f4f}
.bd-goals,.bd-bilan{border-left-color:#26342f}
.bd-goal{display:flex;align-items:center;justify-content:space-between;padding:6px 14px}
.bd-goal label{display:flex;gap:10px;align-items:center;flex:1}
.bd-goal.done span{text-decoration:line-through;color:#75827b}
.bd-x{background:none;border:0;font-size:20px;color:#75827b;cursor:pointer}
.bd-goal-add{display:flex;gap:8px;padding:8px 14px 14px}.bd-goal-add input{flex:1;min-width:0}
.bd-bilan .bd-table{min-width:0}
.bd-sum td{font-weight:700;background:#f5f2ec}
.bd-rest td{font-weight:800;background:#26342f;color:#fff}
.bd-f3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.bd-modal-acts{display:flex;gap:8px;margin-top:8px}
.bd-cash{display:flex;gap:8px;align-items:center;margin:6px 0}
@media(max-width:400px){.bd-table{font-size:12px}.bd-f3{grid-template-columns:1fr}}
.bd-goal label{justify-content:flex-start;text-align:left}.bd-goal input[type=checkbox]{width:20px;height:20px;flex:none;margin:0}.bd-goal label span{flex:1;text-align:left}
