/* Design repris de la démo « Feroce · App patient (démo) » du 3 nov 2026 (V3, 3 piliers).
   Police Inter hébergée chez nous (aucun appel à Google depuis une page patient). */
@font-face{font-family:Inter;font-weight:400;font-display:swap;src:url(/static/fonts/inter-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:500;font-display:swap;src:url(/static/fonts/inter-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:600;font-display:swap;src:url(/static/fonts/inter-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:700;font-display:swap;src:url(/static/fonts/inter-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:800;font-display:swap;src:url(/static/fonts/inter-latin-800-normal.woff2) format("woff2")}

:root{--ink:#1C1A1D;--muted:#6B6568;--sub:#5F5A5D;--line:#ECE8EA;--line2:#D9D4D6;--soft:#F7F5F6;--chip:#F3F1F2;
  --orange:#FF5812;--orange-ink:#C23F08;--orange-dark:#9E3306;--orange-bg:#FFF1EA;--orange-bg2:#FFEDE4;--orange-light:#FF8A5C;
  --green:#23825A;--green-dark:#17603F;--green-bg:#EAF6EF;--green-line:#BFE3CE;--blue:#3550A8;--blue-bg:#EEF1FB;
  --amber:#B25E00;--amber-bg:#FFF3E0;--red:#A1281F;--red-bg:#FDECEC}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#FFFFFF;color:var(--ink);font-family:Inter,"Helvetica Neue",Arial,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--orange-ink)}
.screen{max-width:430px;margin:0 auto;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.screen.gray{background:var(--soft)}
.body{flex:1;padding:max(56px,env(safe-area-inset-top)) 20px 20px;display:flex;flex-direction:column;gap:14px}
.body.pad24{padding-left:24px;padding-right:24px;gap:20px}
.body.with-nav{padding-bottom:110px}
.grow{flex-grow:1}
h1{margin:0;font-size:26px;font-weight:700;line-height:1.25}
h1.xl{font-size:30px;line-height:1.2}
h1.quest{font-size:27px;font-weight:800;line-height:1.2;letter-spacing:-.4px}
.lead{margin:0;font-size:15px;color:var(--sub);line-height:1.5}
.lead16{margin:0;font-size:16px;color:var(--sub);line-height:1.5}
.small{font-size:13px;color:var(--muted);line-height:1.45}
.tiny{font-size:12.5px;color:var(--muted);text-align:center}
.center{text-align:center}
.wm{font-size:15px;font-weight:700;letter-spacing:.5px}.wm span{color:var(--orange)}
.label{font-size:12px;font-weight:700;letter-spacing:.8px;color:var(--muted);text-transform:uppercase}
.err{background:var(--red-bg);color:var(--red);border-radius:14px;padding:12px 14px;font-size:14px;font-weight:600}
.demo{background:var(--ink);color:#fff;text-align:center;font-size:12.5px;padding:6px}

/* boutons */
.btn{display:flex;align-items:center;justify-content:center;width:100%;background:var(--ink);color:#fff;text-decoration:none;border:none;
  font:inherit;font-weight:600;font-size:16px;padding:16px;border-radius:999px;min-height:52px;cursor:pointer}
.btn.orange{background:var(--orange);color:var(--ink);font-weight:700}
.btn.green{background:var(--green);color:#fff;font-weight:700;box-shadow:0 4px 0 var(--green-dark)}
.btn.outline{background:#fff;color:var(--ink);border:1.5px solid var(--ink)}
.btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--line2);font-size:14px;min-height:44px;padding:10px}
.btn.white{background:#fff;color:var(--red);font-weight:700;min-height:48px;font-size:15px}
.btn.line-white{background:transparent;border:1.5px solid #fff;color:#fff;min-height:48px;font-size:15px}
.btn.sm{width:auto;align-self:flex-start;min-height:44px;padding:0 18px;font-size:14px}
.link{display:block;background:none;border:none;font:inherit;font-size:14px;font-weight:600;color:var(--orange-ink);text-decoration:none;text-align:center;padding:10px;cursor:pointer}

/* champs */
.field{display:flex;flex-direction:column;gap:8px}
.field label,.flabel{font-size:14px;font-weight:600}
input[type=text],input[type=password],input[type=number],input[type=email],input[type=date],input[type=time],input:not([type]),select,textarea{
  font:inherit;font-size:17px;padding:14px 16px;border:1.5px solid var(--line2);border-radius:14px;color:var(--ink);background:#fff;min-height:52px;width:100%}
input.code{font-size:18px;letter-spacing:2px;text-transform:uppercase}
input:focus,select:focus,textarea:focus{outline:3px solid rgba(255,88,18,.3);border-color:var(--orange)}
.row{display:flex;gap:10px}.row>*{flex:1;min-width:0}

/* entête écran secondaire */
.back{width:44px;height:44px;border-radius:22px;background:var(--chip);display:flex;align-items:center;justify-content:center;color:var(--ink);flex-shrink:0;text-decoration:none}
.steprow{display:flex;align-items:center;gap:12px}
.topbar{background:#fff;border-bottom:1px solid var(--line);padding:max(52px,env(safe-area-inset-top)) 16px 12px;display:flex;align-items:center;gap:12px}
.topbar .back{background:none}
.topbar b{display:block;font-size:15px;font-weight:700}.topbar small{display:block;font-size:12.5px;color:var(--muted)}
.fbadge{width:36px;height:36px;border-radius:10px;background:var(--orange);color:#fff;font-weight:800;font-size:17px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.pad16{padding:16px;display:flex;flex-direction:column;gap:12px;flex:1}

/* cartes */
.card{border:1px solid var(--line);border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:10px;background:#fff}
.card.r18{border-radius:18px}
.card .hd{display:flex;justify-content:space-between;align-items:center}
.card.orange{border:1.5px solid var(--orange);background:#FFF7F3}
.card.soft{background:var(--soft);border:none}
.invite{background:var(--orange-bg2);border-radius:24px;padding:20px;display:flex;gap:14px;align-items:center}
.av{width:52px;height:52px;border-radius:26px;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:17px;flex-shrink:0}
.av.sm{width:40px;height:40px;font-size:13px}
.av.peach{background:var(--orange-bg2);color:var(--orange-ink);font-weight:700;width:44px;height:44px;font-size:15px}
.invite b,.who b{display:block;font-size:15px;font-weight:600}.invite small,.who small{font-size:13.5px;color:var(--sub)}
.check{display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.45}
.check svg{flex-shrink:0;margin-top:1px}
.toggle{border:1px solid var(--line);border-radius:20px;padding:16px 18px;display:flex;align-items:center;gap:14px;cursor:pointer}
.toggle span{flex:1;display:flex;flex-direction:column;gap:3px}
.toggle b{font-size:15px;font-weight:600}.toggle small{font-size:13px;color:var(--muted);line-height:1.4}
.toggle input{width:24px;height:24px;accent-color:var(--ink);margin:10px;flex-shrink:0}

/* sources */
.src{border:1px solid var(--line);border-radius:20px;padding:16px;display:flex;align-items:center;gap:14px}
.src .ic{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.src div.t{display:flex;flex-direction:column;gap:3px;flex:1}.src b{font-size:15px;font-weight:600}.src small{font-size:13px;color:var(--sub)}
.soon{font-size:12px;font-weight:700;color:var(--muted);background:var(--chip);border-radius:999px;padding:8px 12px;white-space:nowrap}

/* revue */
.kv{display:flex;justify-content:space-between;align-items:center;gap:8px}
.kv b{font-size:15px;font-weight:600}.kv span{font-size:14px;color:var(--sub)}
.new{font-size:11.5px;font-weight:700;color:var(--orange-ink);background:var(--orange-bg2);padding:4px 8px;border-radius:6px}
.over{font-size:13px;color:var(--orange-ink);font-weight:600}

/* accueil 3 piliers */
.hello{display:flex;justify-content:space-between;align-items:center}
.hello small{display:block;font-size:13px;color:var(--muted)}
.hero{background:var(--ink);color:#fff;border-radius:22px;padding:18px;display:flex;flex-direction:column;gap:6px}
.hero .k{font-size:12px;font-weight:700;letter-spacing:1px;color:var(--orange-light)}
.hero b{font-size:18px;font-weight:700}.hero span.s{font-size:13.5px;color:#D9D4D6}
.hero .go{margin-top:8px;align-self:flex-start;background:var(--orange);color:var(--ink);text-decoration:none;font-weight:700;font-size:14px;padding:0 18px;border-radius:999px;min-height:44px;display:flex;align-items:center}
.pillar{text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:18px;padding:16px;display:flex;align-items:center;gap:14px}
.pillar .ic{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.pillar div{display:flex;flex-direction:column;gap:3px;flex:1}.pillar b{font-size:15.5px;font-weight:700}.pillar small{font-size:13px;color:var(--sub)}
.ic.o{background:var(--orange-bg);color:var(--orange-ink)}.ic.g{background:var(--green-bg);color:var(--green)}.ic.b{background:var(--blue-bg);color:var(--blue)}.ic.k{background:var(--ink);color:#fff}
.foot2{display:flex;justify-content:space-between;align-items:center;padding:2px 4px 0;font-size:14px}
.foot2 b{font-weight:600}.foot2 span{color:var(--muted)}

/* nav du bas */
.nav{position:fixed;left:0;right:0;bottom:0;border-top:1px solid var(--line);background:#fff;padding:8px 12px max(28px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;max-width:430px;margin:0 auto}
.nav a{display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--muted);text-decoration:none;font-size:11.5px;padding:6px 0;min-height:44px}
.nav a.on{color:var(--orange-ink);font-weight:600}

/* plan & coach */
.bar{height:8px;border-radius:4px;background:var(--chip);overflow:hidden}.bar i{display:block;height:8px;background:var(--orange)}
.ok{color:var(--green);font-weight:600}
.goal{display:flex;gap:10px;align-items:center;font-size:14px}
.goal .gc{width:18px;height:18px;border-radius:6px;border:2px solid var(--line2);flex-shrink:0}
.test{display:flex;gap:10px;align-items:center;padding-top:10px;border-top:1px solid var(--line)}
.test div{flex:1}.test b{display:block;font-size:14.5px;font-weight:600}.test small{font-size:12.5px;color:var(--muted)}
.tb{border:none;border-radius:10px;padding:9px 14px;background:#FFE9E9;color:#B42F2F;font:inherit;font-size:13px;font-weight:600;text-decoration:none;cursor:pointer;white-space:nowrap}
.tb.dark{background:var(--ink);color:#fff}.tb.okc{background:var(--green-bg);color:var(--green);cursor:default}
.inline{display:inline;margin:0}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chipb{background:var(--orange-bg);border:1px solid #FFD3BF;border-radius:999px;font:inherit;font-size:13px;font-weight:600;color:var(--orange-dark);padding:0 12px;min-height:36px;display:flex;align-items:center}
.minis{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.minis label{font-size:12.5px;font-weight:600;color:var(--sub);display:flex;flex-direction:column;gap:6px}
.minis input{font-size:16px;padding:10px 12px;min-height:46px}

/* check-in (style Quest) */
.progress{display:flex;align-items:center;gap:14px}
.progress .x{width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:var(--muted);flex-shrink:0}
.progress .pb{flex:1;height:14px;border-radius:7px;background:var(--chip);overflow:hidden}.progress .pb i{display:block;height:14px;border-radius:7px;background:var(--orange)}
.qtag{font-size:13px;font-weight:700;letter-spacing:1px;color:var(--orange-ink)}
.opt{display:block;position:relative}
.opt input{position:absolute;opacity:0;pointer-events:none}
.opt span{display:block;text-align:left;font-size:17px;font-weight:600;padding:18px;border-radius:18px;min-height:60px;background:#fff;border:2px solid var(--line);box-shadow:0 4px 0 var(--line);cursor:pointer}
.opt input:checked+span{background:var(--orange-bg);border-color:var(--orange);box-shadow:0 4px 0 var(--orange)}
.opt input:focus-visible+span{outline:3px solid rgba(255,88,18,.4)}
.opts{display:flex;flex-direction:column;gap:12px}
.qblock{display:flex;flex-direction:column;gap:14px;padding:6px 0 18px;border-bottom:1px solid var(--line)}
.qblock:last-of-type{border-bottom:none}

/* résultats (Safety / RedFlag) */
.res{border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:8px}
.res .k{font-size:12px;font-weight:700;letter-spacing:.8px}
.res b{font-size:17px;font-weight:700;line-height:1.3}.res span{font-size:14px;line-height:1.45}
.res.green{background:var(--green-bg);border:1px solid var(--green-line)}.res.green .k{color:#1C6B49}.res.green span{color:#2E4A3C}
.res.amber{background:var(--amber-bg);border:1px solid #F5D9AE}.res.amber .k{color:#8A4A00}.res.amber span{color:#5A3A12}
.res.red{background:var(--red);color:#fff;border-radius:20px;padding:18px;gap:10px}.res.red .k{color:#FFD6D2}.res.red span{color:#FFE9E7}.res.red b{font-size:19px}
.legend{display:flex;gap:8px}.legend span{flex:1;border-radius:10px;padding:8px;font-size:12px;font-weight:600;text-align:center}
.lg-g{background:var(--green-bg);color:#1C6B49}.lg-o{background:var(--amber-bg);color:#8A4A00}.lg-r{background:var(--red-bg);color:var(--red)}
.ans{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;font-size:14.5px;gap:10px}
.ans b{font-size:13.5px;font-weight:700}.ans b.g{color:var(--green)}.ans b.a{color:var(--amber)}.ans b.r{color:var(--red)}

/* récompense */
.reward{align-items:center;text-align:center;gap:22px;padding-top:96px}
.medal{width:150px;height:150px;border-radius:75px;background:var(--orange-bg);display:flex;align-items:center;justify-content:center}
.medal div{width:108px;height:108px;border-radius:54px;background:var(--orange);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 0 var(--orange-ink)}
.bign{font-size:52px;font-weight:800;color:var(--orange-ink);line-height:1}
.stat{border:2px solid var(--line);border-radius:18px;padding:12px 16px;display:flex;flex-direction:column;gap:2px;min-width:120px}
.stat small{font-size:12px;font-weight:700;color:var(--muted);letter-spacing:1px}.stat b{font-size:22px;font-weight:800}

/* santé / clinique */
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tile{border:1px solid var(--line);border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:4px}
.tile span{font-size:13px;color:var(--muted)}.tile b{font-size:22px;font-weight:700}.tile small{font-size:12px;color:var(--muted)}
.who{display:flex;align-items:center;gap:14px}.who div{flex:1}
.visit{display:flex;gap:14px;align-items:center}
.date{width:48px;text-align:center;display:flex;flex-direction:column}.date i{font-style:normal;font-size:11px;font-weight:700;color:var(--orange-ink)}.date b{font-size:20px;font-weight:700}
.visit b{display:block;font-size:15px;font-weight:600}.visit small{font-size:13px;color:var(--muted)}
.menu a{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none;font-size:15px;font-weight:600}
.menu a:last-child{border-bottom:none}

.card.who{flex-direction:row;align-items:center;gap:14px}
.statrow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.statrow .stat{min-width:0;padding:12px}
.statrow .stat b{font-size:19px}
a.av{text-decoration:none}
/* Moments anti-abandon (nov 2026) */
.chk{display:inline-flex}.chk input{position:absolute;opacity:0;width:1px;height:1px}
.chk span{border:1.5px solid var(--line2);border-radius:999px;padding:10px 14px;font-size:14px;font-weight:600;cursor:pointer;background:#fff}
.chk input:checked+span{background:var(--orange-bg);border-color:var(--orange);color:var(--orange-dark)}
.chk input:focus-visible+span{outline:3px solid rgba(255,88,18,.3)}
.wbars{display:flex;align-items:flex-end;gap:6px;height:110px}.wbars div{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10.5px;color:var(--muted)}
.wbars i{display:block;width:100%;border-radius:6px 6px 2px 2px;background:var(--orange-light)}.wbars div:last-child i{background:var(--orange)}
.metric{display:flex;flex-direction:column;gap:2px}.metric b{font-size:22px;font-weight:800}.metric span{font-size:12.5px;color:var(--sub)}
.alertc{border-left:4px solid var(--orange);background:#FFF7F3;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:4px}
.alertc b{font-size:14.5px}.alertc span{font-size:13.5px;color:var(--sub);line-height:1.45}
.alertc.red{border-color:var(--red);background:var(--red-bg)}
.ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:14px;line-height:1.45}
/* Chat */
.chatwrap{padding-bottom:180px!important}
.chatnote{font-size:12.5px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;line-height:1.45}
.bubble{max-width:85%;padding:12px 14px;border-radius:18px;font-size:15px;line-height:1.45;white-space:pre-wrap}
.bubble.feroce{background:#fff;border:1px solid var(--line);align-self:flex-start;border-bottom-left-radius:6px}
.bubble.patient{background:var(--ink);color:#fff;align-self:flex-end;border-bottom-right-radius:6px}
.bubble.alert{background:#FDECEC;border-color:#F3CFCC;color:#8E1B1B;font-weight:600}
.chatactions{display:flex;gap:8px;flex-wrap:wrap}
.chatbar{position:fixed;left:50%;transform:translateX(-50%);bottom:76px;width:min(430px,100%);display:flex;gap:8px;padding:10px 16px;background:var(--soft);border-top:1px solid var(--line)}
.chatbar input{flex:1;min-width:0}
/* Bouton flottant "Ask Feroce" */
.askfab{position:fixed;left:50%;transform:translateX(-50%);bottom:88px;z-index:5;display:flex;align-items:center;gap:8px;background:var(--ink);color:#fff;text-decoration:none;font-weight:700;font-size:15px;padding:12px 20px;border-radius:999px;box-shadow:0 6px 18px rgba(28,26,29,.25)}
.askfab svg{color:var(--orange-light)}
/* Accueil "empowerment" */
.win{background:linear-gradient(135deg,#1C1A1D 0%,#3A2A22 100%);color:#fff;border-radius:24px;padding:20px;display:flex;flex-direction:column;gap:10px}
.win .k{font-size:12px;font-weight:700;letter-spacing:1px;color:var(--orange-light)}
.winrow{display:flex;align-items:flex-end;gap:14px}
.win .big{font-size:38px;font-weight:800;line-height:1;letter-spacing:-1px;white-space:nowrap}
.winrow span{font-size:14px;color:#E6E0DC;line-height:1.35}.winrow span b{color:#fff}
.win p{margin:0;font-size:15px;color:#F3EEEB}
.miles{display:flex;gap:8px}
.miles span{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;padding:6px 12px;border-radius:999px;border:1.5px solid rgba(255,255,255,.35);color:#E6E0DC}
.miles span.on{background:var(--orange);border-color:var(--orange);color:var(--ink)}
.winstats{display:flex;justify-content:space-between;font-size:13.5px;color:#E6E0DC;border-top:1px solid rgba(255,255,255,.15);padding-top:10px}
.winstats span{display:flex;align-items:center;gap:6px}
.task{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--ink);background:#fff;border:1.5px solid var(--line);border-radius:18px;padding:14px 16px;box-shadow:0 3px 0 var(--line)}
.task .ic{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.task div{display:flex;flex-direction:column;gap:2px;flex:1}.task b{font-size:15.5px}.task small{font-size:13px;color:var(--sub)}
.task .pts{font-size:13px;font-weight:800;color:var(--orange-ink);background:var(--orange-bg);padding:5px 10px;border-radius:999px}
.task.done{box-shadow:none;background:#F3FAF6;border-color:#CDE9DA}
.moment{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:var(--ink);background:#FFF7F3;border:1.5px solid #FFD3BF;border-radius:18px;padding:14px 16px}
.moment .k{font-size:11.5px;font-weight:700;letter-spacing:.8px;color:var(--orange-ink)}
.moment b{font-size:15.5px}.moment span:last-child{font-size:13px;color:var(--sub)}
/* Accueil v2 : chiffre seul sur sa ligne, barre d'étapes */
.wintop{display:flex;justify-content:space-between;align-items:center}
.wintop .since{font-size:12.5px;color:#E6E0DC;background:rgba(255,255,255,.1);padding:4px 10px;border-radius:999px}
.win .big{font-size:40px;margin:2px 0 4px}
.track{position:relative;height:10px;border-radius:5px;background:rgba(255,255,255,.18);margin-top:4px}
.track i{position:absolute;left:0;top:0;bottom:0;border-radius:5px;background:var(--orange)}
.track .tick{position:absolute;top:-3px;width:16px;height:16px;margin-left:-8px;border-radius:8px;background:#3A2A22;border:2px solid rgba(255,255,255,.5)}
.track .tick.on{background:var(--orange);border-color:#fff}
.track .tick:last-child{margin-left:-14px}
.trackl{position:relative;height:16px;font-size:12px;font-weight:700;color:#BDB4AF}
.trackl span{position:absolute;transform:translateX(-50%)}.trackl span:last-child{transform:translateX(-90%)}
.trackl span.on{color:#fff}
.miles{display:none}
/* Bouton Ask au centre de la barre */
.nav a.ask span{display:flex;align-items:center;justify-content:center;width:46px;height:46px;margin-top:-22px;border-radius:23px;background:var(--orange);color:var(--ink);box-shadow:0 4px 12px rgba(255,88,18,.35)}
.nav a.ask{color:var(--ink);font-weight:600}
.nav{grid-template-columns:repeat(5,minmax(0,1fr))}
.found{display:flex;gap:12px;align-items:flex-start;padding:8px 0;border-top:1px solid var(--line);cursor:pointer}
.found:first-of-type{border-top:0}
.found input{width:20px;height:20px;margin-top:2px;accent-color:var(--orange);flex-shrink:0}
.found span{display:flex;flex-direction:column}.found b{font-size:15px}.found small{font-size:13px;color:var(--sub)}
input[type=file]{font-size:14px}

/* ---------- Check-in personnalisé ---------- */
.ci .memo{margin:0;font-size:15px;color:var(--muted);background:var(--soft,#F6F4F1);border-radius:12px;padding:10px 12px}
.ci .quest .soft{display:block;font-size:14px;font-weight:500;color:var(--muted);margin-top:4px}
.ci .row3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ci .row3 .opt span{text-align:center;padding:14px 8px;font-size:15px;min-height:0}
.ci .follow{display:none}
.ci:has(input[name=treatment][value=missed]:checked) .f-why,
.ci:has(input[name=treatment][value=problem]:checked) .f-why,
.ci:has(input[name=treatment][value=stopped]:checked) .f-why,
.ci:has(input[name=treatment][value=stopped]:checked) .f-stopped{display:flex}
.ci:has(input[name=stomach]:checked:not([value=none])) .f-stomach{display:flex}
.win-row{align-self:stretch;background:#EAF7EF;color:#14532D;font-weight:600;border-radius:14px;padding:12px 14px}

/* ---------- Pénurie FDA ---------- */
.supply{display:flex;flex-direction:column;gap:4px;border-radius:14px;padding:12px 14px;font-size:14px;line-height:1.45;text-align:left}
.supply.short{background:#FDECEC;border:1.5px solid #E5484D;color:#7A1414}
.supply.ok{background:#EAF7EF;border:1.5px solid #59B37A;color:#14532D}
.supply small{font-size:12px;opacity:.8}
.task.sess{align-items:flex-start}.task.sess form{flex:1}

/* ---------- Mes visites / réservation ---------- */
.visits .vbig{display:flex;gap:14px;align-items:center}
.visits .vbig .date{width:58px;height:62px;border-radius:14px;background:var(--orange-bg);display:flex;flex-direction:column;align-items:center;justify-content:center}
.visits .vbig .date i{font-style:normal;font-size:12px;font-weight:700;color:var(--orange-ink)}
.visits .vbig .date b{font-size:24px}
.visits .vbig small{display:block;color:var(--muted);font-size:13px}
.slotform{gap:14px}
.sday{display:flex;flex-direction:column;gap:8px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{position:relative}
.chip input{position:absolute;opacity:0;pointer-events:none}
.chip span{display:flex;flex-direction:column;align-items:center;padding:9px 14px;border-radius:12px;border:2px solid var(--line);background:#fff;font-weight:700;font-size:15px;cursor:pointer}
.chip span small{font-weight:500;font-size:11px;color:var(--muted)}
.chip input:checked+span{border-color:var(--orange);background:var(--orange-bg)}
.chip input:focus-visible+span{outline:3px solid rgba(255,88,18,.4)}
.src .conn{display:block;margin-top:4px;font-weight:600;color:#1E7A3F}
.src .conn.exporting{color:var(--orange-ink)}.src .conn.failed{color:#B42318}
.fwrap{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:0 4px 6px}
.nav{grid-template-columns:repeat(5,minmax(0,1fr));padding-left:6px;padding-right:6px}.nav a{font-size:11px}

/* Visits : bande de jours + créneaux du jour choisi (sans JS) */
.dpick{position:absolute;opacity:0;pointer-events:none}
.dstrip{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.dstrip::-webkit-scrollbar{display:none}
.dstrip label{flex:0 0 auto;width:58px;padding:8px 0;border-radius:14px;border:2px solid var(--line);background:#fff;display:flex;flex-direction:column;align-items:center;cursor:pointer}
.dstrip i{font-style:normal;font-size:12px;color:var(--muted);font-weight:600}
.dstrip b{font-size:20px;line-height:1.2}
.dstrip small{font-size:11px;color:var(--muted)}
.dpanel{display:none;flex-direction:column;gap:8px}
.slotform .part{font-size:13px;font-weight:700;color:var(--muted);margin-top:4px}
.tgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.tgrid .chip span{padding:10px 0;font-size:15px}
/* Chat : entrée « Prepare your next appointment » */
.prepcard{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:16px;background:var(--orange-bg);border:2px solid var(--orange);color:inherit;text-decoration:none}
.prepcard.soft{background:#fff;border-color:var(--line)}
.prepcard span{flex:1;display:flex;flex-direction:column;gap:2px}
.prepcard small{color:var(--muted);font-size:13px}
.prepcard i{font-style:normal;font-size:24px;color:var(--orange)}
#d0:checked~.dstrip .dl0{border-color:var(--orange);background:var(--orange-bg)}
#d0:checked~.dp0{display:flex}
#d1:checked~.dstrip .dl1{border-color:var(--orange);background:var(--orange-bg)}
#d1:checked~.dp1{display:flex}
#d2:checked~.dstrip .dl2{border-color:var(--orange);background:var(--orange-bg)}
#d2:checked~.dp2{display:flex}
#d3:checked~.dstrip .dl3{border-color:var(--orange);background:var(--orange-bg)}
#d3:checked~.dp3{display:flex}
#d4:checked~.dstrip .dl4{border-color:var(--orange);background:var(--orange-bg)}
#d4:checked~.dp4{display:flex}
#d5:checked~.dstrip .dl5{border-color:var(--orange);background:var(--orange-bg)}
#d5:checked~.dp5{display:flex}
#d6:checked~.dstrip .dl6{border-color:var(--orange);background:var(--orange-bg)}
#d6:checked~.dp6{display:flex}
#d7:checked~.dstrip .dl7{border-color:var(--orange);background:var(--orange-bg)}
#d7:checked~.dp7{display:flex}
#d8:checked~.dstrip .dl8{border-color:var(--orange);background:var(--orange-bg)}
#d8:checked~.dp8{display:flex}
#d9:checked~.dstrip .dl9{border-color:var(--orange);background:var(--orange-bg)}
#d9:checked~.dp9{display:flex}

/* Accueil : Ask Feroce intégré (clavier + voix) */
.askcard{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:12px}
.askhead{display:flex;gap:10px;align-items:center}.askhead small{display:block;color:var(--muted);font-size:13px}
.askhead .fbadge{width:34px;height:34px;border-radius:10px;background:var(--orange);color:#fff;display:grid;place-items:center;font-weight:800;flex:none}
.askrow{display:flex;gap:8px;align-items:center}
.askrow input[name=text]{flex:1;min-width:0}
.micb,.sendb{flex:none;width:46px;height:46px;border-radius:23px;border:0;display:grid;place-items:center;cursor:pointer;font-size:20px;font-weight:700}
.micb{background:var(--orange-bg);color:var(--orange-ink)}.micb.rec{background:#C62828;color:#fff;animation:pulse 1.2s infinite}
.sendb{background:var(--ink);color:#fff}
@keyframes pulse{50%{box-shadow:0 0 0 8px rgba(198,40,40,.15)}}
.askchips{display:flex;flex-direction:column;gap:6px}.askchips .chipb{width:100%;text-align:left}
.asklink{color:var(--orange-ink);font-weight:600;text-decoration:none}
.chatbar .micb{width:42px;height:42px}
.bubble .speak{display:block;margin-top:8px;background:none;border:0;padding:0;color:var(--orange-ink);font-weight:600;font-size:13px;cursor:pointer}

/* Accueil : assistant au centre, « Today » en bande horizontale, saisie toujours visible */
.body.with-nav:has(.composer){padding-bottom:170px}
.feed{display:flex;flex-direction:column;gap:8px}
.feed .fhead{display:flex;align-items:center;gap:8px}
.feed .fbadge{width:28px;height:28px;border-radius:9px;background:var(--orange);color:#fff;display:grid;place-items:center;font-weight:800;font-size:14px}
.feed .bubble{max-width:90%}
.qchips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:2px -20px 0;padding:0 20px 2px}
.qchips::-webkit-scrollbar{display:none}
.qchips .chipb{white-space:nowrap}
.todayk{margin-top:6px}
.strip{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 -20px;padding:2px 20px 8px;align-items:stretch}
.strip::-webkit-scrollbar{display:none}
.strip>*{flex:0 0 80%;scroll-snap-align:start}
.strip>.tiles{display:contents}
.strip .tile{flex:0 0 46%;scroll-snap-align:start}
.strip>.link{flex:0 0 auto;align-self:center}
.composer{position:fixed;left:50%;transform:translateX(-50%);bottom:84px;width:min(430px,100%);display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px 16px;background:linear-gradient(rgba(255,255,255,0),#fff 30%)}
.composer input[name=text]{flex:1;min-width:0;border-radius:999px;padding-left:18px;box-shadow:0 4px 16px rgba(0,0,0,.08)}
.composer .micstate{flex-basis:100%;text-align:center}
.composer .micstate:empty{display:none}
.memrow{flex-direction:row!important;align-items:center;justify-content:space-between;gap:12px}

.chall{display:flex;flex-direction:column;gap:3px;text-decoration:none;color:var(--ink);background:#1F1A1C;color:#fff;border-radius:18px;padding:14px 16px}
.chall .k{font-size:11.5px;font-weight:800;letter-spacing:.8px;color:#FF8A57}.chall small{color:#CFC8CB;font-size:13px}
.chall.done{background:#F3FAF6;color:var(--ink);border:1.5px solid #CDE9DA}.chall.done .k{color:#2E7D5B}.chall.done small{color:var(--muted)}
.bubble.cheer{background:#FFF8E6;border:1px solid #F5DC9B;align-self:flex-start}
.feedlinks{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.wins{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center}
.wins b{display:block;font-size:20px}.wins small{color:var(--muted);font-size:12px}
.linkbox{width:100%;font-size:13px}
.chk.tick span::before{content:"☐ "}.chk.tick input:checked+span::before{content:"☑ "}
/* Rappel quotidien (Web Push) */
.remind{margin:2px 0}
.remind-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;font-weight:600}
.remind-row select{padding:6px 8px;border-radius:10px;border:1.5px solid var(--line);font:inherit}
.remind-on{width:100%;border:1.5px dashed var(--line);background:#fff;border-radius:14px;padding:12px;font:inherit;font-weight:700;cursor:pointer}
.linkbtn{background:none;border:0;color:var(--muted);text-decoration:underline;font:inherit;font-size:13px;cursor:pointer}
/* Chat v42 : ma journée, actions de la semaine, réponses rapides, Feroce écrit… */
.myday{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;margin-bottom:10px}
.mdhead{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px}
.mdhead span{font-size:12px;font-weight:700;color:var(--orange-ink)}
.mdgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.mdt{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;background:var(--soft);border-radius:12px;padding:8px 4px}
.mdt .mdi{font-size:18px}.mdt b{font-size:17px;line-height:1.1}.mdt b i{font-style:normal;font-size:11px;color:var(--muted);font-weight:600}
.mdt small{font-size:11px;color:var(--muted)}
.mdbar{display:block;width:80%;height:4px;background:#E7E1DE;border-radius:4px;overflow:hidden;margin-top:3px}
.mdbar span{display:block;height:100%;background:var(--orange);transition:width .5s}
.mdch{margin-top:10px;padding:10px 12px;border-radius:12px;background:var(--orange-bg);display:flex;flex-direction:column;gap:2px}
.mdch span{font-size:11px;font-weight:700;letter-spacing:.3px;color:var(--orange-dark);text-transform:uppercase}
.mdch b{font-size:14px}.mdch.done{background:#E7F5EA}.mdch.done span{color:#1E7A3A}
.mdch.pop{animation:pop .5s ease}@keyframes pop{50%{transform:scale(1.03)}}
.todo2{display:flex;gap:8px;margin-bottom:8px}
.t2{flex:1;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;text-decoration:none;color:inherit;min-width:0}
.t2 .t2i{font-size:20px}.t2 span{display:flex;flex-direction:column;min-width:0}.t2 b{font-size:14px}
.t2 small{font-size:11px;color:var(--muted)}.t2 em{margin-left:auto;font-style:normal;font-weight:700;font-size:12px;color:var(--orange-ink)}
.thread{display:flex;flex-direction:column;gap:10px}
.qreplies{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;margin-top:8px}
.qreplies .chipb{cursor:pointer}
.bubble.typing{display:flex;gap:4px;align-items:center;padding:14px 16px}
.bubble.typing i{width:7px;height:7px;border-radius:50%;background:#B9B1AD;animation:blink 1.2s infinite}
.bubble.typing i:nth-child(2){animation-delay:.2s}.bubble.typing i:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
#chatsend:disabled{opacity:.6}
/* Niveaux */
.lvlup{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;padding:24px;background:rgba(28,26,29,.55);display:flex;align-items:center;justify-content:center;z-index:50}
.lvlbox{background:#fff;border-radius:24px;padding:24px 22px;text-align:center;display:flex;flex-direction:column;gap:8px;align-items:center;width:min(340px,100%);animation:pop .5s ease}
.lvlbox small{font-size:11px;font-weight:700;letter-spacing:.6px;color:var(--orange-dark)}
.lvlbox h2{margin:0;font-size:24px}.lvlbox p{margin:0}.lvlbox form{width:100%}.lvlbox .btn{width:100%}
.lvlconf{font-size:22px;letter-spacing:6px}
.lvlemo{font-size:44px;line-height:1}.lvlemo.sm{font-size:26px}
.lvlnow{flex-direction:row!important;align-items:center;gap:14px}.lvlnow>div{display:flex;flex-direction:column;gap:3px;flex:1}
.lvlnow small{font-size:11px;font-weight:700;color:var(--orange-dark);letter-spacing:.4px}.lvlnow b{font-size:22px}
.lvlnow .bar{margin-top:4px}
.lvllist{display:flex;flex-direction:column;gap:8px}
.lvlrow{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 14px;opacity:.65}
.lvlrow.on{opacity:1}.lvlrow.cur{border-color:var(--orange);box-shadow:0 0 0 2px var(--orange-bg)}
.lvlrow>div{display:flex;flex-direction:column;gap:2px;flex:1}.lvlrow small{font-size:11px;color:var(--muted)}
.lvlrow span{font-size:13.5px}.lvlrow a{font-size:13px;font-weight:700;color:var(--orange-ink)}
.lvlrow em{font-style:normal;font-size:11px;font-weight:700;color:var(--orange-dark);white-space:nowrap}
.earnrow{display:flex;justify-content:space-between;font-size:14px;padding:4px 0;border-top:1px solid var(--line)}
.earnrow b{color:var(--orange-ink)}
.repgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:10px 0}
.repgrid div{background:var(--soft);border-radius:12px;padding:10px;display:flex;flex-direction:column}
.repgrid b{font-size:22px}.repgrid small{font-size:12px;color:var(--muted)}
.lvllink{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:inherit;min-width:0}
.lvllink .bar{width:100%}
@media print{.topbar,.navbar,nav,[data-print]{display:none!important}}
/* Accueil patient (onboarding) */
.welcome .progress{display:flex;align-items:center;gap:10px}.welcome .progress .pb{flex:1}
.wintro{display:flex;flex-direction:column;gap:14px;align-items:center;text-align:center;padding-top:30px}
.wintro .btn{width:100%}
.fbadge.big{width:64px;height:64px;font-size:30px;border-radius:18px}
.wpts{background:var(--orange-bg);color:var(--orange-dark);font-weight:700;border-radius:999px;padding:6px 14px;font-size:14px}
.qsub{display:block;font-size:14px;margin-bottom:8px}
.opts.row{flex-direction:row;flex-wrap:wrap}.opts.row .opt{flex:1 1 40%}
.scanbox{margin:4px 0 6px}
.scanbtn{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;border:2px dashed #FFC4A8;background:#FFF7F2;border-radius:18px;padding:20px 14px;cursor:pointer}
.scanbtn input{position:absolute;width:1px;height:1px;opacity:0}.scanic{font-size:30px}
.scanbtn small{color:var(--muted);font-size:12.5px}.scanbtn.busy{opacity:.6}
.suplist{display:flex;flex-direction:column;gap:8px}
.suprow{display:grid;grid-template-columns:1fr 84px 78px;gap:6px}
.suprow input,.suprow select{min-width:0}
.skipf{display:flex;justify-content:center}
.linkbtn{background:none;border:0;color:var(--muted);text-decoration:underline;font:inherit;cursor:pointer}
/* Profil santé : ce qui manque */
.profnow{flex-direction:row!important;align-items:center;gap:14px}.profnow>div:last-child{display:flex;flex-direction:column;gap:4px}
.ring{--p:0;width:72px;height:72px;flex:0 0 72px;border-radius:50%;display:grid;place-items:center;
  background:conic-gradient(var(--orange) calc(var(--p)*1%),#EFE9E6 0)}
.ring b{width:56px;height:56px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:17px}
.profrow{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 14px;text-decoration:none;color:inherit}
.profrow .pi{font-size:24px}.profrow .pt{display:flex;flex-direction:column;gap:2px;flex:1}
.profrow small{font-size:12.5px;color:var(--muted);line-height:1.35}
.profrow em{font-style:normal;font-weight:700;font-size:13px;color:var(--orange-ink);white-space:nowrap}
.profrow.done{opacity:.6}
.profcard{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.profcard .ring{width:48px;height:48px;flex-basis:48px}.profcard .ring b{width:38px;height:38px;font-size:13px}
.nudgec{align-self:flex-start;max-width:85%}
/* Chat encadré : la page ne défile plus, seule la conversation défile */
.myday.slim{padding:10px;margin-bottom:8px}
.myday.slim .mdgrid{grid-template-columns:repeat(5,1fr);gap:4px}
.myday.slim .mdt{padding:6px 2px;gap:0}.myday.slim .mdi{font-size:15px}.myday.slim .mdt b{font-size:15px}
.myday.slim .mdt small{font-size:10px}.myday.slim .mdt.lv{text-decoration:none;color:inherit;background:var(--orange-bg)}
.myday.slim .mdch{margin-top:8px;padding:7px 10px;flex-direction:row;align-items:baseline;gap:8px}
.myday.slim .mdch span{white-space:nowrap;font-size:10px}.myday.slim .mdch b{font-size:13px}
.threadbox{height:calc(100dvh - 560px);min-height:200px;overflow-y:auto;overscroll-behavior:contain;
  background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px;scroll-behavior:smooth}
.threadbox .bubble.feroce{background:var(--soft)}
.earlier{align-self:center;font-size:13px;font-weight:600;color:var(--orange-ink);padding:4px 10px}
.chatnote.mini{font-size:11.5px;padding:8px 10px;margin:0 0 4px;background:var(--soft);border:0}
.chatwrap{padding-bottom:150px!important}

/* Accueil v2 (9 nov 2026) : fond blanc chaud, panneau noir qui défile, « What did you eat? », coach en barre noire. */
.screen:has(.hcar){background:#FAF6F3}
.hcar{background:#141215;color:#F6F3F1;border-radius:28px;position:relative;overflow:hidden}
.hcar-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;scroll-behavior:smooth;outline:none}
.hcar-track::-webkit-scrollbar{display:none}
.hslide{flex:0 0 100%;scroll-snap-align:start;min-height:268px;padding:22px 22px 40px;display:flex;flex-direction:column;gap:12px}
.hk{font-size:11.5px;font-weight:800;letter-spacing:1.3px;color:#FF7A40}
.hbig{font-size:58px;font-weight:800;letter-spacing:-2.4px;line-height:.95}.hbig small{font-size:20px;letter-spacing:0;margin-left:8px}
.hh{font-size:23px;font-weight:800;line-height:1.2}
.hsub{margin:0;font-size:13.5px;color:#CFC8CB;line-height:1.45}.hsub.c{text-align:center}.hsub b{color:#fff}
.htrack{position:relative;height:10px;border-radius:5px;background:#2E2A2F;margin:6px 0}
.htrack i{display:block;height:10px;border-radius:5px;background:var(--orange)}
.htrack span{position:absolute;top:-3px;width:4px;height:16px;border-radius:2px;background:#4A444B;transform:translateX(-2px)}.htrack span.on{background:#fff}
.hpill{display:flex;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:14px;background:#221F23;font-size:13px;color:#CFC8CB}.hpill b{color:#FF7A40}
.hrings{display:flex;justify-content:space-around;gap:6px}
.hring{display:flex;flex-direction:column;align-items:center;gap:8px;color:#fff;text-decoration:none;font-size:12.5px;font-weight:700}
.hring button{all:unset;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:8px}
.hring button:focus-visible,.hring:focus-visible{outline:3px solid #FF7A40;outline-offset:4px;border-radius:12px}
.rg{--c:var(--orange);width:84px;height:84px;border-radius:50%;background:conic-gradient(var(--c) calc(var(--p)*1%),#2E2A2F 0);display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}
.rg::before{content:"";position:absolute;inset:9px;border-radius:50%;background:#141215}
.rg b,.rg small{position:relative}.rg b{font-size:19px}.rg small{font-size:10.5px;color:#B3ACAF;font-weight:600}
.rg.w{--c:#fff}.rg.m{--c:#FFB38F}
.htags{display:flex;gap:8px}.htags span{padding:6px 10px;border-radius:999px;background:#221F23;font-size:12px;font-weight:700}
.hbtn{margin-top:auto;min-height:48px;border-radius:24px;background:#fff;color:var(--ink);display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-weight:800;font-size:15px}
.hbtn span{color:var(--orange-ink)}.hbtn.o{background:var(--orange)}.hbtn.o span{color:var(--ink)}
.hvisit{display:flex;gap:14px;align-items:center}.hvisit div{display:flex;flex-direction:column;gap:3px}.hvisit b{font-size:18px}.hvisit small{font-size:13px;color:#CFC8CB}
.hdate{width:66px;height:72px;border-radius:18px;background:var(--orange);color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none}
.hdate small{font-size:12px;font-weight:800}.hdate b{font-size:28px;line-height:1}
.hlvl{display:flex;gap:14px;align-items:center;color:#fff;text-decoration:none}.hlvl div{display:flex;flex-direction:column}.hlvl b{font-size:26px}.hlvl small{font-size:13px;color:#CFC8CB}
.hbadge{width:64px;height:64px;border-radius:20px;background:#2A1A12;display:flex;align-items:center;justify-content:center;font-size:30px}
.hstreak{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#FF7A40}
.hdots{position:absolute;left:0;right:0;bottom:14px;display:flex;justify-content:center;gap:4px}
.hdots button{width:24px;height:24px;border:0;padding:0;background:none;cursor:pointer;display:flex;align-items:center;justify-content:center}
.hdots button::before{content:"";width:8px;height:8px;border-radius:4px;background:#4A444B;transition:width .3s}
.hdots button[aria-current]::before{width:22px;background:var(--orange)}
.eat{background:#fff;border:1px solid #EDE6E1;border-radius:24px;padding:16px;display:flex;flex-direction:column;gap:12px}
.eathead{display:flex;justify-content:space-between;align-items:center}.eathead h2{margin:0;font-size:17px;font-weight:800}
.eatbig{display:flex;gap:10px}.eatsnap{flex:1.25;display:flex;flex-direction:column;gap:6px}
.eatb{flex:1;border:1px solid #EDE6E1;border-radius:20px;background:#FAF6F3;color:var(--ink);padding:14px;display:flex;flex-direction:column;gap:5px;text-decoration:none;cursor:pointer}
.eatb.o{background:var(--orange);border-color:var(--orange)}.eatb span{font-size:22px}.eatb b{font-size:15px}.eatb small{font-size:12px;font-weight:600;color:var(--sub)}.eatb.o small{color:var(--ink)}
.eatb:focus-within{outline:3px solid rgba(255,88,18,.4)}
.small.b{font-weight:700}
.eatchips{display:flex;flex-wrap:wrap;gap:8px}
.fchip{font:inherit;font-size:13.5px;font-weight:700;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid #FFD3BD;background:#FFF4EE;color:var(--ink);cursor:pointer}
.eattoast{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:var(--ink);color:#fff;font-size:13px;font-weight:600}
.eattoast span{width:22px;height:22px;border-radius:11px;background:var(--orange);color:var(--ink);display:flex;align-items:center;justify-content:center;font-weight:800;flex:none}
.eatlast{display:flex;align-items:center;gap:12px}.eatlast div{display:flex;flex-direction:column}.eatlast b{font-size:14.5px}.eatlast small{font-size:12.5px;color:var(--sub)}
.eatlast .ck{width:28px;height:28px;border-radius:14px;background:var(--orange);display:flex;align-items:center;justify-content:center;font-weight:800;flex:none}
.feed.lite:not(:has(*)){display:none}
.composer.dock{left:50%;bottom:92px;width:min(406px,calc(100% - 24px));padding:8px 8px 8px 10px;border-radius:26px;background:var(--ink);box-shadow:0 8px 24px rgba(28,26,29,.18)}
.composer.dock .fbadge{width:34px;height:34px;border-radius:11px;font-size:16px;color:var(--ink)}
.composer.dock input{flex:1;min-width:0;background:transparent;border:0;color:#fff;font-size:15px}
.composer.dock input::placeholder{color:#B3ACAF}
.composer.dock input:focus{outline:none}
.composer.dock .micb{background:#2E2A2F;color:#fff}.composer.dock .sendb{background:var(--orange);color:var(--ink)}
.composer.dock .micstate{flex-basis:100%;color:#CFC8CB}
@media (prefers-reduced-motion:reduce){.hcar-track{scroll-behavior:auto}}
.eatgal{font-size:12.5px;font-weight:700;color:var(--orange-ink);text-align:center;padding:8px 4px;min-height:36px;cursor:pointer;border-radius:12px}
.eatgal:focus-within{outline:3px solid rgba(255,88,18,.4)}
.composer.dock input{cursor:pointer}
/* Chat ouvert depuis l'accueil : monte du bas, croix pour revenir */
@keyframes sheetup{from{transform:translateY(100%)}to{transform:none}}
.screen.sheet{animation:sheetup .32s cubic-bezier(.2,.8,.2,1)}
.screen.sheet.closing{transition:transform .25s ease-in;transform:translateY(100%)}
.sheethead{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid var(--line);border-radius:22px 22px 0 0;padding:max(22px,env(safe-area-inset-top)) 16px 12px;display:flex;align-items:center;gap:12px}
.sheethead .grab{position:absolute;top:8px;left:50%;width:40px;height:5px;margin-left:-20px;border-radius:3px;background:var(--line2)}
.sheethead div{flex:1;display:flex;flex-direction:column}.sheethead b{font-size:15px}.sheethead small{font-size:12.5px;color:var(--muted)}
.sheetx{width:44px;height:44px;border-radius:22px;background:var(--chip);color:var(--ink);display:flex;align-items:center;justify-content:center;font-size:26px;line-height:1;text-decoration:none;flex:none}
@media (prefers-reduced-motion:reduce){.screen.sheet{animation:none}.screen.sheet.closing{transition:none}}
/* Accueil : la barre noire ouvre le chat (pas de micro ici) */
a.composer.dock{text-decoration:none;color:#fff;align-items:center;gap:10px}
.composer.dock .askph{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#CFC8CB;font-size:15px}
.composer.dock .sendb{display:flex;align-items:center;justify-content:center}
.eatlink{color:inherit;text-decoration:none}
/* Chat : champ en pilule, micro à côté de la flèche, comme les apps de chat */
.chatbar.pill{padding:8px 12px 10px;align-items:center}
.chatbar.pill input{border-radius:24px;min-height:46px;padding:0 16px}
.chatbar.pill .micb{width:44px;height:44px;border-radius:22px;border:0;background:var(--chip);color:var(--ink);display:flex;align-items:center;justify-content:center;flex:none;cursor:pointer}
.chatbar.pill .micb.rec{background:#C62828;color:#fff}
.chatbar.pill .sendb{width:44px;height:44px;border-radius:22px;border:0;background:var(--orange);color:var(--ink);font-size:20px;font-weight:800;flex:none;cursor:pointer}
.chatbar.pill .sendb:disabled{opacity:.5}
.chatbarwrap .micstate{position:fixed;left:50%;transform:translateX(-50%);bottom:136px;width:min(430px,100%);padding:0 18px;text-align:center}
.chatbarwrap .micstate:empty{display:none}
/* Ask my care team (10 nov 2026) */
.qform{display:flex;flex-direction:column;gap:10px}
.qform textarea{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:14px;padding:12px;font:inherit;font-size:15px;resize:vertical}
.qsoon{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.qsoon label{display:flex;gap:10px;align-items:center;min-height:40px;padding:0 12px;border:1px solid var(--line);border-radius:12px;font-size:14.5px;background:#fff}
.qsoon label:has(input:checked){border-color:var(--orange);background:#FFF4EE}
.qsent{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border-radius:18px;background:var(--ink);color:#fff;margin-bottom:12px}
.qsent span{font-size:13.5px;color:#CFC8CB}
.qrow{display:flex;flex-direction:column;gap:6px}.qrow.fresh{border-color:var(--orange)}
.qmeta{display:flex;justify-content:space-between;font-size:12.5px;color:var(--sub)}
.qst{font-weight:700}.qst.answered{color:var(--orange-ink)}
.qtxt{margin:0;font-size:14.5px}
.qans{background:#FFF4EE;border-radius:12px;padding:10px 12px}.qans p{margin:4px 0 0;font-size:14.5px}
.carebtn{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:16px;background:#fff;border:1px solid var(--line);text-decoration:none;color:var(--ink);font-weight:700;font-size:14.5px}
.carebtn small{display:block;font-weight:500;color:var(--sub);font-size:12.5px}
/* Check-up du matin et du soir dans le panneau noir */
.hform{display:flex;flex-direction:column;gap:10px;margin:0}
.hchips{display:flex;flex-wrap:wrap;gap:8px}
.hchip input,.hpick input{position:absolute;opacity:0;pointer-events:none}
.hchip span{display:inline-flex;align-items:center;min-height:38px;padding:0 13px;border-radius:999px;background:#221F23;border:1px solid #3A353B;font-size:13.5px;font-weight:700;cursor:pointer}
.hchip input:checked+span{background:var(--orange);border-color:var(--orange);color:var(--ink)}
.hchip input:focus-visible+span,.hpick input:focus-visible+span{outline:3px solid #FF7A40;outline-offset:2px}
.hlink{color:#FF7A40;font-size:13px;font-weight:700;text-decoration:none}.hlink.big{padding:12px;border-radius:14px;background:#221F23;font-size:14px}.hlink b{color:#fff}
.hpick{border:0;margin:0;padding:0;display:flex;gap:8px;flex-wrap:wrap}
.hpick legend{font-size:13px;color:#CFC8CB;margin-bottom:6px;padding:0}
.hpick label{flex:1;position:relative}
.hpick span{display:flex;justify-content:center;align-items:center;min-height:40px;border-radius:12px;background:#221F23;border:1px solid #3A353B;font-size:13.5px;font-weight:700;cursor:pointer}
.hpick.five span{font-size:22px}
.hpick input:checked+span{background:var(--orange);border-color:var(--orange);color:var(--ink)}
.hin{background:#221F23;border:1px solid #3A353B;border-radius:12px;color:#fff;font:inherit;font-size:14px;padding:10px 12px}
.hin::placeholder{color:#8F888C}
.hsub small{color:#8F888C}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.hslide .hbtn{margin-top:4px}
.habform{display:flex;flex-direction:column;gap:12px}
.habset{border:1px solid var(--line);display:flex;flex-direction:column;gap:10px;margin:0}
.habset legend{padding:0 4px;font-size:15px}.habset legend small{color:var(--sub);font-weight:500}
.habchips{display:flex;flex-wrap:wrap;gap:8px}
.habchip input{position:absolute;opacity:0;pointer-events:none}
.habchip span{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid #FFD3BD;background:#FFF4EE;font-size:14px;font-weight:700;cursor:pointer}
.habchip input:checked+span{background:var(--orange);border-color:var(--orange)}
.habchip input:focus-visible+span{outline:3px solid rgba(255,88,18,.45);outline-offset:2px}
.habother{border:1px solid var(--line);border-radius:12px;padding:10px 12px;font:inherit;font-size:14.5px}
.eathab{color:var(--orange-ink);font-weight:700;text-decoration:none}
.hcar input.hin{background:#221F23;border:1px solid #3A353B;color:#fff;min-height:44px;box-shadow:none}
.hcar button.hbtn{border:0;font:inherit;font-weight:800;font-size:15px;cursor:pointer;width:100%}
/* Chat : raccourcis en une ligne de pastilles (11 nov 2026, les tuiles se chevauchaient) */
.quick2{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -16px 10px;padding:2px 16px}
.quick2::-webkit-scrollbar{display:none}
.q2{flex:none;display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 14px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--ink);text-decoration:none;font-size:14px;font-weight:700;white-space:nowrap}
.q2 span{font-size:17px;line-height:1}
.q2 em{font-style:normal;font-size:12px;font-weight:800;color:var(--orange-ink)}
.q2:focus-visible{outline:3px solid rgba(255,88,18,.45);outline-offset:2px}
/* Chat ouvert en feuille : plein écran, pas de menu du bas, barre d'écriture tout en bas */
.screen.sheet .chatbar{bottom:0;padding-bottom:max(12px,env(safe-area-inset-bottom));background:#fff}
.screen.sheet .chatbarwrap .micstate{bottom:84px}
/* Réponses rapides : une seule ligne qui défile, juste au-dessus de la barre d'écriture */
.qreplies{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:8px;overflow-x:auto;scrollbar-width:none;margin:8px -16px 0;padding:0 16px 4px}
.qreplies::-webkit-scrollbar{display:none}
.qreplies .chipb{flex:none;white-space:nowrap;width:auto}
/* Jour de piqûre */
.hrow2{display:flex;gap:8px}.hrow2 .hbtn{flex:1}
.hcar button.hbtn.ghost{background:#221F23;color:#fff;border:1px solid #3A353B}
.hskip summary{cursor:pointer;color:#CFC8CB;font-size:13.5px;font-weight:700;min-height:36px;display:flex;align-items:center}
.hskip[open]{display:flex;flex-direction:column;gap:10px}
/* Démo : « Behind the scenes » */
.behind{display:flex;flex-direction:column;gap:6px;margin:0 0 14px;padding:14px 16px;border-radius:18px;background:#141215;color:#F6F3F1;border:1px dashed #FF7A40}
.behind b{font-size:14px;color:#FF7A40}
.behind ol{margin:0;padding-left:20px;font-size:13.5px;line-height:1.5;color:#E6E0E2}
.behind a{color:#fff;font-weight:700;font-size:13.5px}
.behind small{color:#8F888C;font-size:11.5px}
#thread .behind{margin:6px 0 10px}
.howsteps{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-direction:column;gap:12px}
.howsteps li{display:flex;gap:14px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px}
.howsteps span{flex:none;width:34px;height:34px;border-radius:17px;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}
.howsteps li:nth-child(odd) span{background:var(--orange);color:var(--ink)}
.howsteps b{font-size:15.5px}.howsteps p{margin:4px 0 0;font-size:14px;color:var(--sub);line-height:1.45}
/* Les 2 questions du jour + objectif du jour */
.hq{font-size:15.5px;font-weight:800;color:#fff;margin-bottom:8px;line-height:1.3}
.hpick.wrap{flex-wrap:wrap}.hpick.wrap label{flex:1 1 45%}
.hh.sm{font-size:17px}.hpts{font-size:13px;color:#FF7A40;font-weight:800}
/* Check-in du jour (v73) */
.daily{gap:18px;padding-bottom:40px}
.daily .dbars{flex:1;display:flex;gap:6px}.daily .dbars i{flex:1;height:8px;border-radius:4px;background:var(--chip)}
.daily .dbars i.cur{background:var(--orange-bg)}.daily .dbars i.on{background:var(--orange)}
.daily .dstep{display:flex;flex-direction:column;gap:14px}
.daily .dcard{background:#141215;color:#F6F3F1;border-radius:28px;padding:22px;display:flex;flex-direction:column;gap:12px}
.daily .dcard .quest{color:#F6F3F1}
.daily .dtag{align-self:flex-start;padding:6px 12px;border-radius:14px;background:#2A2226;color:#FF7A40;font-size:13px;font-weight:800}
.daily .dhard{border:0;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.daily .dhard legend{font-size:16px;font-weight:800;margin-bottom:10px}
.daily .dchips{display:flex;flex-wrap:wrap;gap:8px}
.daily .dchip{position:relative}.daily .dchip input{position:absolute;opacity:0;pointer-events:none}
.daily .dchip span{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:22px;border:2px solid var(--line);background:#fff;font-weight:700;cursor:pointer}
.daily .dchip input:checked+span{border-color:var(--orange);background:var(--orange-bg)}
.daily .dchip input:focus-visible+span{outline:3px solid rgba(255,88,18,.4)}
.daily .dnav{display:flex;gap:10px}.daily .dnav .btn{flex:1}
.daily .dnav .btn:disabled{opacity:.45;cursor:default}
.daily:not(.js) .dnav [data-next],.daily:not(.js) .dnav [data-back]{display:none}
.nav.two{grid-template-columns:repeat(2,minmax(0,1fr))}
