:root{color-scheme:light;--ink:#142345;--muted:#536382;--line:#dce5f6;--blue:#2049e7;--deep:#1736bc;--wash:#eff4ff;--white:#fff;--green:#157555;--max:1180px;--radius:20px;font-family:"Aptos","Segoe UI",system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:#f7f9ff;color:var(--ink);line-height:1.5}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #3a64ee;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.15;letter-spacing:-.035em}h1{font-size:clamp(2.1rem,4vw,3.4rem);margin-bottom:.7rem}h2{font-size:1.45rem;margin-bottom:.6rem}h3{font-size:1.15rem;margin-bottom:.4rem}p{margin-bottom:.8rem}svg{display:block}button svg{flex:none}.icon{width:22px;height:22px}.skip{position:absolute;top:-100px;background:#fff;padding:12px;z-index:9}.skip:focus{top:8px}.shell{min-height:100svh;max-width:var(--max);margin:auto;display:grid;grid-template-columns:220px minmax(0,1fr);gap:36px;padding:24px 30px 52px}.sidebar{position:sticky;top:24px;align-self:start}.brand{display:flex;align-items:center;gap:11px;font-weight:850;font-size:1.27rem;letter-spacing:-.045em;color:var(--ink);margin:8px 0 37px}.brand-mark{display:grid;place-items:center;width:40px;height:40px;background:var(--blue);color:#fff;border-radius:12px}.brand-mark .icon{width:25px;height:25px}.nav{display:grid;gap:7px}.nav button{display:flex;gap:12px;align-items:center;text-align:left;background:transparent;border:0;border-radius:12px;padding:12px 14px;color:var(--muted);font-weight:700}.nav button[aria-current=page]{color:#173abf;background:#e7eeff}.nav button:hover{background:#e7eeff}.side-note{margin-top:30px;border-top:1px solid var(--line);padding:18px 9px;font-size:.84rem;color:var(--muted)}.main{min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;margin:5px 0 23px;gap:12px}.topbar .brand{margin:0;display:none}.top-label{font-size:.88rem;font-weight:750;color:var(--muted)}.pill{display:inline-flex;align-items:center;gap:7px;border-radius:30px;padding:5px 12px;background:#e9effe;color:#29498d;font-size:.78rem;font-weight:750;white-space:nowrap}.hero{position:relative;isolation:isolate;overflow:hidden;min-height:223px;background:#193fd8;color:white;border-radius:24px;padding:31px 32px;margin-bottom:22px}.hero:after{content:"";position:absolute;z-index:-1;inset:0 0 0 auto;width:62%;background:url("./horizon.svg") no-repeat right bottom/contain}.hero>div{max-width:59%}.hero p{color:#e2eaff;font-size:1rem;margin:0}.kicker{display:block;font-size:.73rem;letter-spacing:.12em;font-weight:850;text-transform:uppercase;margin:0 0 .7rem;color:var(--deep)}.hero .kicker{color:#d0e0ff}.overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.58fr);gap:17px;align-items:start}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:0 4px 16px #18328b06}.card+.card{margin-top:15px}.step-card{border-top:3px solid var(--blue)}.muted,.help{color:var(--muted)}.help{font-size:.88rem}.step-meta{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 15px}.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:#fff;color:var(--ink);padding:10px 15px;min-height:44px;border-radius:11px;font-weight:750;text-decoration:none}.btn:hover{background:var(--wash)}.btn.primary{background:var(--blue);color:#fff;border-color:var(--blue)}.btn.primary:hover{background:var(--deep)}.btn.quiet{border-color:transparent;background:transparent;color:var(--deep)}.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.stat{background:var(--wash);border-radius:12px;padding:11px 12px}.stat strong{display:block;font-size:1.45rem;line-height:1.3}.stat small{color:var(--muted);font-size:.75rem}.progress{height:8px;background:#e6edfd;border-radius:12px;overflow:hidden}.progress span{display:block;height:100%;background:#3157ee;border-radius:12px}.section{margin-top:24px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-head h2{margin-bottom:0}.path{list-style:none;padding:0;margin:18px 0 0}.path li{position:relative;display:grid;grid-template-columns:39px 1fr;gap:12px;align-items:center;min-height:64px}.path li:not(:last-child):after{content:"";position:absolute;top:48px;left:18px;height:31px;border-left:2px dashed #bdcbe6}.foot{display:grid;place-items:center;border-radius:50%;background:#eef1f7;color:#61718e;height:38px;width:38px;z-index:1}.foot .icon{width:19px;height:19px}.foot.current{background:#e3ebff;color:#234ce0}.foot.done{background:#e4f7ef;color:var(--green)}.path strong{display:block}.path small{color:var(--muted)}.segmented{display:flex;gap:8px;overflow:auto;padding:4px 3px 8px;scrollbar-width:thin}.segmented button,.chip{min-height:42px;padding:7px 13px;border:1px solid #ccd8ee;border-radius:10px;background:#fff;color:var(--ink);font-weight:650;white-space:nowrap}.segmented button[aria-pressed=true],.chip[aria-pressed=true]{border-color:#2049e7;background:#edf2ff;color:#1737b5}.page-title{margin:5px 0 20px}.page-title h1{font-size:clamp(1.9rem,3.5vw,2.7rem)}.stack{display:grid;gap:13px}.stack .card{margin:0}.row{display:flex;justify-content:space-between;gap:15px;align-items:center}.row>div{min-width:0}.row h2,.row h3{overflow-wrap:anywhere}.empty{padding:24px;border:1px dashed #c7d5f1;border-radius:16px;color:var(--muted);background:#fff}.wizard{max-width:660px;margin:15px auto}.wizard .card{padding:26px}.wizard .progress{margin-bottom:21px}.fields{display:grid;gap:13px}.fields label{display:grid;gap:5px;font-weight:700}.fields input:not([type=checkbox]),.fields textarea,.fields select{width:100%;border:1px solid #c5d3ec;border-radius:10px;background:#fff;color:var(--ink);padding:10px 12px}.fields textarea{min-height:94px;resize:vertical}.choices{display:flex;flex-wrap:wrap;gap:8px}.companions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.companions .chip{white-space:normal;min-height:62px}.choice-line{display:flex!important;align-items:center;gap:8px;font-weight:550!important}.notice{background:#edf3ff;border-left:3px solid var(--blue);padding:11px 14px;border-radius:8px;margin:12px 0}.error{color:#a42424;font-weight:700}.toast{position:fixed;z-index:5;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 24px);padding:10px 16px;background:#152956;color:white;border-radius:10px;box-shadow:0 5px 20px #14234535}.modal{width:min(500px,calc(100% - 26px));border:1px solid var(--line);padding:24px;border-radius:20px;color:var(--ink);box-shadow:0 15px 60px #15295645}.modal::backdrop{background:#11244c80}.small{font-size:.84rem}.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:820px){.shell{grid-template-columns:165px minmax(0,1fr);gap:19px;padding-inline:17px}.overview{grid-template-columns:1fr}.hero{padding:25px}.hero>div{max-width:63%}}
@media(max-width:630px){.shell{display:block;padding:13px 14px calc(86px + env(safe-area-inset-bottom))}.sidebar>.brand,.side-note,.top-label{display:none}.topbar .brand{display:flex}.topbar{margin:0 0 14px}.nav{position:fixed;z-index:4;bottom:0;left:0;right:0;grid-template-columns:repeat(4,1fr);gap:2px;padding:6px 5px calc(7px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff}.nav button{flex-direction:column;gap:2px;justify-content:center;padding:5px 0;min-height:49px;font-size:.68rem;text-align:center}.nav .icon{width:21px;height:21px}.hero{min-height:196px;padding:21px 17px;border-radius:19px}.hero h1{font-size:2rem}.hero>div{max-width:68%}.hero:after{width:55%;background-size:auto 89%;background-position:right -28px bottom}.hero p{font-size:.89rem}.card,.wizard .card{padding:16px}.row{align-items:flex-start}.row .btn{padding:8px 10px}.toast{bottom:75px}.section-head .btn{font-size:.78rem;padding-inline:9px}.section-head h2{font-size:1.2rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}

[hidden]{display:none!important}.topbar .pill .icon{width:15px;height:15px}.nav button:focus-visible{outline-offset:0}

/* The garden path */
:root {
  --ink:#182841;--muted:#4f6079;--line:#dbe6f2;--blue:#2358da;
  --deep:#253c9d;--wash:#eff5ff;--green:#15765a;--max:1110px;
}
body {background:#f8fbff}
.brand-mark {background:linear-gradient(145deg,#6450d9,#2358da)}
.hero {background:linear-gradient(125deg,#253789,#4b3abc 63%,#315ccc);display:flex;align-items:center}
.hero:after {background:radial-gradient(circle at 78% 48%,#a4bbff55,transparent 65%);width:70%}
.garden-art {position:absolute;width:clamp(100px,24%,190px);height:auto;right:4%;top:50%;transform:translateY(-50%) rotate(6deg);filter:drop-shadow(0 12px 18px #29356622);pointer-events:none}
.plant {width:58px;height:58px;flex:none}
.chevron {width:20px;height:20px;flex:none}
.goal-banner {position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(113deg,#eef7ff,#eee9ff 68%,#dcf1f1);border:1px solid #e0e8fb;border-radius:27px;padding:clamp(20px,4vw,34px);display:grid;gap:22px}
.goal-banner:before {content:"";position:absolute;z-index:-1;width:310px;height:310px;border:1px solid #ffffffa8;border-radius:50%;right:-64px;top:-70px;box-shadow:0 0 0 28px #ffffff35,0 0 0 57px #ffffff29}
.goal-banner h1 {font-size:clamp(1.65rem,4vw,2.75rem);max-width:76%;text-wrap:pretty;overflow-wrap:anywhere}
.goal-banner .garden-art {top:42%;width:clamp(75px,23%,170px)}
.goal-picker {border-radius:999px;background:#ffffffad;color:var(--deep);font-size:.88rem;padding-inline:14px}
.garden-progress {display:flex;gap:12px;align-items:center;color:#165c49;font-variant-numeric:tabular-nums}
.garden-progress .progress {flex:1;height:10px;background:#d1dfec}
.garden-progress .progress span {background:linear-gradient(90deg,#0ba874,#17bc81)}
.progress-caption {display:flex;justify-content:space-between;gap:6px 12px;flex-wrap:wrap;color:var(--muted);font-size:.82rem;font-weight:650}
.next-panel {display:flex;justify-content:space-between;align-items:center;gap:16px;margin:16px 0 26px;padding:clamp(16px,3vw,24px);background:linear-gradient(125deg,#4d36bb,#373ec5 65%,#2059cb);color:#fff;border-radius:22px;box-shadow:0 10px 25px #443bb52b}
.next-panel h2 {margin:0;overflow-wrap:anywhere}
.next-panel .kicker {color:#eeeaff;margin-bottom:7px}
.next-panel .primary {color:#243c9b;background:#fff;border-color:#fff;border-radius:999px;flex:none}
.next-panel .primary:hover {background:#eaf0ff}
.next-panel p {margin:.4rem 0 0}
.time {display:inline-flex;align-items:center;gap:5px;font-size:.87rem;font-weight:700;margin-top:8px}
.time .icon {width:17px;height:17px}
.garden-path .section-head {margin-bottom:9px}
.stage-card,.picker-row,.chapter summary {display:flex;align-items:center;gap:13px;width:100%;text-align:left;color:var(--ink)}
.stage-card {border:1px solid #d5e9e6;border-radius:20px;background:linear-gradient(105deg,#e8f7ef,#edf6ff);padding:9px 14px;margin-bottom:12px}
.stage-card>span,.picker-row>span,.picker-row>strong,.chapter-title {flex:1;min-width:0;overflow-wrap:anywhere}
.stage-card strong,.picker-row strong,.chapter-title strong {display:block;font-size:1.07rem;line-height:1.3}
.stage-card small,.picker-row small,.chapter-title small {display:block;font-size:.8rem;color:var(--muted);font-weight:650}
.chapters {display:grid;gap:9px}
.chapter {background:white;border:1px solid var(--line);border-radius:18px}
.chapter summary {padding:13px 15px;cursor:pointer;list-style:none}
.chapter summary::-webkit-details-marker {display:none}
.chapter summary:focus-visible {outline:3px solid var(--blue);outline-offset:3px;border-radius:18px}
.chapter[open] summary .chevron {transform:rotate(180deg)}
.chapter-number {display:grid;place-items:center;min-width:42px;height:38px;padding:0 6px;background:#edf0ff;color:var(--deep);border-radius:11px;font-size:.83rem;font-weight:850}
.path {margin:0;padding:0 10px 10px}
.path li {display:block;min-height:0}
.path li:not(:last-child):after {top:calc(50% + 23px);height:calc(50% - 10px);left:32px;border-left:2px solid #d8e3ee;pointer-events:none}
.path li.done:not(:last-child):after {border-color:#35b38a}
.path-step {width:100%;display:grid;grid-template-columns:46px minmax(0,1fr) 20px;gap:12px;align-items:center;text-align:left;min-height:66px;border:1px solid transparent;background:transparent;border-radius:14px;padding:7px 9px;color:var(--ink)}
.path-step:hover {background:#f0f5ff}
.current .path-step {background:linear-gradient(105deg,#efebff,#edf4ff);border-color:#e5dfff}
.path-copy {overflow-wrap:anywhere}
.path-copy strong {line-height:1.28}
.path-copy small {font-size:.8rem}
.current .path-copy small {color:#4734a6;font-weight:780}
.foot {position:relative;width:46px;height:46px;border:2px solid #d6e0ed;background:#f0f4f8}
.foot.ready {border-color:#bad7f8;background:#edf6ff;color:#2355a3}
.foot.current {background:#5a41d4;color:#fff;border-color:#fff;box-shadow:0 0 0 2px #7965e1}
.foot.done {border-color:#43b58f}
.path-arrow {color:#596b93}
.path-arrow .icon {width:17px}
.sheet {width:min(520px,calc(100% - 26px));max-height:calc(100dvh - 30px)}
.dialog-head {display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.dialog-close {border:0;background:#edf3fc;color:#25386b;border-radius:50%;min-width:44px;padding:0;font-size:1.45rem;line-height:1}
.picker-list {display:grid;gap:7px;margin-top:12px}
.goal-list {max-height: min(52dvh, 30rem);overflow-y:auto;overscroll-behavior:contain;padding:4px}
.goal-list-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;align-items:center}
.goal-list-row .picker-row strong {overflow-wrap:anywhere}
.goal-order {display:flex}
.goal-order .btn {padding-inline:7px;min-width:36px}
.picker-row {background:#f8fbff;border:1px solid var(--line);border-radius:15px;padding:7px 10px}
.picker-row[aria-pressed=true],.picker-row:hover {background:#eef3ff;border-color:#c9d6ff}
.picker-row>.icon {color:var(--blue)}
.step-sheet {padding:0}
.step-intro {color:white;background:linear-gradient(125deg,#5940ce,#3449c9 68%,#245bcb);padding:18px 23px 21px}
.step-intro .kicker {color:#f0ebff;margin-top:9px}
.step-intro h2 {font-size:1.7rem;margin:0}
.step-intro .dialog-close {background:#fff;color:#3d3b9b}
.step-detail {padding:21px 23px}
.step-detail .primary {border-radius:999px}
.note-text {white-space:pre-wrap;overflow-wrap:anywhere}
.prerequisites {padding-left:1.25rem;color:var(--muted)}
@media(max-width:630px){
  .goal-banner {border-radius:21px;gap:16px}
  .next-panel {align-items:flex-start;flex-direction:column;border-radius:19px;margin-bottom:21px;gap:12px}
  .next-panel .primary {width:100%}
  .sheet {width:100%;max-width:none;max-height:calc(100dvh - 15px);margin:auto 0 0;border-radius:23px 23px 0 0;padding-bottom:calc(18px + env(safe-area-inset-bottom))}
  .step-sheet {padding-bottom:env(safe-area-inset-bottom)}
  .step-detail .primary {width:100%}
  .stage-card .plant {width:50px;height:50px}
}

/* Companions and celebration */
.buddy-group {margin-top:18px}
.buddy-group h3 {margin:0 0 9px;color:var(--muted);font-size:.85rem;letter-spacing:.01em}
.buddy-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.buddy-choice {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;padding:12px 5px;border:1px solid #dce5f4;border-radius:16px;background:#f8fbff;color:var(--ink)}
.buddy-choice:hover,.buddy-choice[aria-pressed=true] {border-color:#6280e5;background:#edf3ff}
.buddy-choice[aria-pressed=true] {box-shadow:0 0 0 2px #cbd7ff}
.buddy-choice strong {font-size:.94rem}
.buddy-choice small {font-size:.7rem;color:var(--muted);text-align:center;white-space:normal}
.buddy-art {width:80px;height:80px;flex:none}
.buddy-choice .buddy-art {width:72px;height:72px}
.buddy-profile {display:flex;align-items:center;gap:16px}
.buddy-profile .buddy-art {width:96px;height:96px}
.buddy-profile p {margin:3px 0 8px}
.buddy-sheet {overflow-y:auto}
.buddy-dance .buddy-body {transform-origin:50px 80px;animation:buddy-dance 1.15s ease-in-out 2}
@keyframes buddy-dance {
  0%,100% {transform:rotate(0deg) translateY(0)}
  25% {transform:rotate(-6deg) translateY(-3px)}
  50% {transform:rotate(3deg) translateY(-6px)}
  75% {transform:rotate(6deg) translateY(-3px)}
}
.success-toast {display:flex;align-items:center;gap:12px;max-width:min(420px,calc(100vw - 24px));padding:10px 18px 10px 10px;background:#fff;color:var(--ink);border:1px solid #cad9f8;box-shadow:0 8px 28px #15295635}
.success-toast .buddy-art {width:58px;height:58px}
.success-toast strong {color:#2454ca}
.celebration-dialog {padding:0;width:min(580px,calc(100% - 26px));max-height:calc(100dvh - 30px);overflow:auto}
.celebration-hero {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:26px 26px 20px;background:linear-gradient(115deg,#f0f2ff,#eef9f6)}
.celebration-copy {min-width:0}
.celebration-hero h2 {font-size:1.65rem}
.celebration-hero p {margin:0;color:var(--muted)}
.celebration-hero .buddy-art {width:110px;height:110px}
.celebration-content {padding:21px 26px 26px}
.celebration-choice {padding:13px 15px;border-radius:13px;background:#f3f6ff}
.celebration-choice span,.celebration-choice strong {display:block}
.celebration-choice span {font-size:.78rem;color:var(--muted);font-weight:700}
.celebration-choice strong {margin-top:3px}
@media(max-width:630px){
  .buddy-grid {gap:6px}
  .buddy-choice .buddy-art {width:60px;height:60px}
  .celebration-hero {padding:20px}
  .celebration-hero .buddy-art {width:82px;height:82px}
  .celebration-content {padding:18px 20px 23px}
  .celebration-content .actions .btn {width:100%}
}
@media(prefers-reduced-motion:reduce){.buddy-dance .buddy-body {animation:none}}

.companion-question {display:flex;align-items:center;gap:14px;margin-bottom:16px}
.companion-question .buddy-art {width:clamp(58px,14vw,90px);height:auto}
.companion-question h1 {font-size:clamp(1.35rem,4vw,2.1rem);margin-bottom:4px}
.companion-question .kicker {margin-bottom:3px}
.companion-question .btn {padding-inline:7px}
.buddy-body[data-mood] {transform-origin:50px 74px}
.buddy-body[data-mood=curious] {transform:rotate(-9deg) translateY(-2px)}
.buddy-body[data-mood=listen] {transform:rotate(5deg) scale(1.02,.95)}
.buddy-body[data-mood=reflect] {transform:rotate(8deg) translateY(3px)}
.buddy-body[data-mood=encourage] {transform:rotate(-4deg) scale(1,1.05)}
.buddy-body[data-mood=joy] {transform:translateY(-5px) scale(1,1.09)}
.companion-notice {position:fixed;z-index:6;bottom:24px;right:24px;width:min(380px,calc(100% - 32px));display:flex;align-items:center;gap:10px;padding:12px;background:white;color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 30px #15295635}
.companion-notice .buddy-art {width:56px;height:56px}
.companion-notice div {flex:1;min-width:0}
.companion-notice p {margin-bottom:0}
.companion-notice .btn {padding-inline:8px}
.companion-notice > .btn {align-self:flex-start}
@media(max-width:630px){.companion-notice {bottom:calc(76px + env(safe-area-inset-bottom));right:16px}}
.notebook-sections {display:grid;gap:14px}
.notebook-section h2 {margin-bottom:4px}
.notebook-entry {padding:14px 0;border-top:1px solid var(--line)}
.notebook-entry h3 {font-size:1rem;margin:2px 0 8px}
.notebook-entry .kicker {margin:0;color:var(--muted);font-size:.7rem;line-height:1.4}
.notebook-entry .note-text {margin:0 0 7px}
.notebook-entry .actions {margin-top:10px}

/* Coordinateur quotidien */
.daily-step{margin-block:1.5rem}.daily-step h2{max-width:40ch}.daily-step .actions{margin-top:1.25rem}.daily-step h3{margin-top:1.25rem}
.result-counters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.result-counters p{display:grid;gap:.5rem}.result-counters strong{font-size:2rem}.result-counters span{max-width:35ch}
.demo-notice{padding:1rem;margin-block:1rem;background:#fff8e6;border:1px solid #dfcf9b;border-radius:1rem}.demo-notice p{margin-block:.5rem}
.fields .check-row,.check-row{display:flex;align-items:flex-start;gap:.75rem}.check-row input[type=checkbox]{width:1.2rem;min-width:1.2rem;height:1.2rem;min-height:0;padding:0;margin-top:.2rem}.check-row[hidden]{display:none}
.campaign-panel{margin-block:1.5rem}.chapter>section{padding-inline:1rem}.chapter ol{padding-left:1.5rem}.chapter li{margin-block:.5rem}
@media(max-width:600px){.result-counters{grid-template-columns:1fr}.daily-step .actions>.btn{flex:1 1 40%}}
.goal-banner {background:linear-gradient(120deg,#193fd8,#1b3492);border-color:#193fd8;color:white}.goal-banner .kicker,.goal-banner .progress-caption {color:#eef4ff}
