:root{--rose:#C2315A;--rose-d:#9C2446;--rose-l:#FBE4EA;--line:#F3DDE3;--mint:#DDF0E6;--mint-line:#D5EBDF;--green:#1F5B45;--ink:#2A1420;--muted:#6B5560;--bg:#FFF8F9;--white:#fff}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#F6E9EC;color:var(--ink);font-family:Manrope,"Noto Sans Arabic",system-ui,sans-serif;font-size:15px;line-height:1.45}
[dir=rtl] body{font-family:"Noto Sans Arabic",Manrope,system-ui,sans-serif}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#app{max-width:430px;margin:0 auto;min-height:100dvh;background:var(--bg);box-shadow:0 0 40px rgba(194,49,90,.08)}
.screen{min-height:100dvh;display:flex;flex-direction:column}
.pad{padding:0 20px 24px}
.stack{display:flex;flex-direction:column;gap:14px}
.grow{flex:1}
.bottom{margin-top:auto;display:flex;flex-direction:column;gap:6px;padding-top:8px}
h1{margin:0;font-size:24px;line-height:1.2;font-weight:800;letter-spacing:-.4px}
h1 em{font-style:normal;color:var(--rose)}
.h-home{font-size:21px;line-height:1.22;text-align:center}
.muted{color:var(--muted);margin:2px 0 0;font-size:14px}
.note{margin:0;font-size:12px;color:var(--muted)}
.center{text-align:center}
a{color:var(--rose);font-weight:700;text-decoration:none}
a:hover{color:var(--rose-d)}
.logo{font-family:Anton,Impact,sans-serif;font-size:18px;color:var(--rose);letter-spacing:.5px}
.logo-white{color:#fff;font-size:26px}
.ic{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.chev{width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.chev.flip{transform:scaleX(-1)}
[dir=rtl] .chev{transform:scaleX(-1)}
[dir=rtl] .chev.flip{transform:none}

/* Accueil */
.hero{position:relative;height:330px;overflow:hidden;flex-shrink:0}
#home{background:linear-gradient(180deg,#FFF8F9 0%,#FDEBF0 60%,#FBE0E8 100%)}
.hero-bg{width:100%;height:100%;object-fit:cover;display:block}
.hero-shade{position:absolute;inset:0 0 auto 0;height:110px;background:linear-gradient(180deg,rgba(42,20,32,.55),rgba(42,20,32,0))}
.lang{position:absolute;inset-inline-end:14px;top:14px;display:flex;gap:4px;background:rgba(255,255,255,.92);border-radius:22px;padding:4px;z-index:2}
.lang button{border:0;background:transparent;font-weight:700;font-size:13px;min-width:44px;height:36px;border-radius:18px}
.lang button.on{background:var(--rose);color:#fff}
.hero-wave{position:absolute;left:0;bottom:-1px;width:100%;height:40px;display:block}
.hero-wave path{fill:var(--bg)}
.hero-doc{position:absolute;left:-46px;bottom:0;width:330px;height:auto;display:block}
.doc-card{position:absolute;right:12px;bottom:40px;background:#fff;border-radius:20px;padding:12px 16px 14px;box-shadow:0 8px 24px rgba(42,20,32,.22);text-align:start}
.doc-logo{font-size:24px;border-bottom:1.500px solid var(--rose);padding-bottom:4px;margin-bottom:6px}
.doc-card::after{content:"";display:block;width:34px;height:3px;border-radius:2px;background:var(--rose);margin-top:8px}
.eyebrow{font-size:11px;font-weight:800;color:var(--rose);letter-spacing:.6px}
.doc-name{font-weight:800;font-size:16px;line-height:1.15}
#home .pad{padding-top:10px}
.cta-sanaa{display:flex;align-items:center;gap:8px;background:linear-gradient(135deg,#D23A68 0%,#B5264F 100%);color:#fff;border:0;border-radius:52px;padding:10px 12px 10px 10px;box-shadow:0 12px 28px rgba(194,49,90,.38);text-align:start;width:100%}
.cta-sanaa img{width:60px;height:60px;border-radius:50%;object-fit:cover;border:3px solid #fff;flex-shrink:0}
.cta-text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.cta-langs{align-self:flex-start;margin-top:4px;font-size:11.500px;font-weight:600;background:rgba(255,255,255,.2);border-radius:12px;padding:3px 10px;white-space:nowrap}
.cta-mic{width:44px;height:44px;border-radius:50%;border:2px solid #fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 0 0 4px rgba(255,255,255,.18)}
.cta-wave{width:32px;height:26px;fill:none;stroke:#fff;stroke-width:2.200;stroke-linecap:round;flex-shrink:0}
[dir=rtl] .cta-wave{transform:scaleX(-1)}
.duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tile{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px 10px;text-align:start;min-height:68px;box-shadow:0 4px 14px rgba(194,49,90,.08)}
.tile-text{flex:1;font-size:14px;line-height:1.25;font-weight:600}
.tile-text b{font-weight:800;color:var(--rose-d)}
.chev.rose{stroke:var(--rose)}
.row-ic.big{width:48px;height:48px;border-radius:14px}
.cta-text b{font-size:18px;font-weight:800;white-space:nowrap;letter-spacing:-.2px}
.cta-text small{font-size:12.500px;color:#FFE3EB}
.links{display:flex;justify-content:center;gap:22px;margin:-8px 0}
.link{background:none;border:0;color:var(--rose);font-weight:700;font-size:14px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.row{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px 14px;text-align:start;width:100%;box-shadow:0 4px 14px rgba(194,49,90,.08)}
.row.mint{border-color:var(--mint-line)}
.row-ic{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.row-ic .ic{width:20px;height:20px}
.row-ic.pink{background:var(--rose-l);color:var(--rose)}
.row-ic.green{background:var(--mint);color:var(--green)}
.row-text{display:flex;flex-direction:column;gap:2px;flex:1}
.row-text b{font-size:15px;font-weight:800}
.row-text small{font-size:13px;color:var(--muted)}

/* Barre */
.bar{display:flex;align-items:center;gap:12px;padding:12px 18px 8px 18px}
.logo-btn{background:none;border:0;min-height:44px;padding:0 4px}
.back{width:44px;height:44px;border:1px solid var(--line);background:#fff;border-radius:50%;box-shadow:0 2px 8px rgba(194,49,90,.10);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.back .chev{width:22px;height:22px;stroke:var(--ink)}
.bar-title{flex:1;font-weight:800;font-size:16px;display:flex;flex-direction:column}
.bar-title small{font-weight:400;font-size:12px;color:var(--muted)}

/* Boutons */
.btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;width:100%;background:var(--rose);color:#fff;border:0;border-radius:28px;font-weight:800;font-size:16px;box-shadow:0 10px 26px rgba(194,49,90,.35);padding:0 18px}
.btn:disabled{opacity:.55;box-shadow:none;cursor:default}
.btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none}
.round{width:64px;height:64px;border-radius:50%;border:0;background:var(--rose);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 26px rgba(194,49,90,.35)}
.round[aria-pressed=true]{background:#fff;color:var(--muted);border:1px solid var(--line);box-shadow:none}
.round.sm{width:44px;height:44px;background:#fff;border:1px solid var(--line);box-shadow:none;display:inline-flex}
.round.sm .chev{stroke:var(--ink)}
.pill[aria-pressed=true]{background:var(--rose);border-color:var(--rose);color:#fff}
.pill{min-height:48px;padding:0 18px;border-radius:24px;border:1px solid var(--line);background:#fff;font-weight:700;font-size:14px}

/* Sanaa */
.portrait{height:min(46dvh,390px);border-radius:28px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(194,49,90,.10);display:flex;justify-content:center;align-items:flex-end;padding-top:10px}
.portrait img{height:100%;width:auto;display:block}
.checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.checks li{position:relative;padding-inline-start:30px;font-size:14px}
.checks li::before{content:"";position:absolute;inset-inline-start:2px;top:5px;width:12px;height:6px;border-left:2.200px solid var(--rose);border-bottom:2.200px solid var(--rose);transform:rotate(-45deg)}
.orb-wrap{display:flex;flex-direction:column;align-items:center;gap:8px}
.orb{width:104px;height:104px;border-radius:50%;background:var(--rose-l);display:flex;align-items:center;justify-content:center}
.orb img{width:82px;height:82px;border-radius:50%;object-fit:cover;border:3px solid #fff}
.orb.live{animation:pulse 1.800s ease-in-out infinite}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(194,49,90,.28)}50%{box-shadow:0 0 0 14px rgba(194,49,90,0)}}
@media (prefers-reduced-motion:reduce){.orb.live{animation:none}}
.status{font-size:13px;font-weight:700;color:var(--green);background:var(--mint);border-radius:14px;padding:5px 12px;min-height:30px;text-align:center}
.status.warn{color:#7A1B38;background:var(--rose-l)}
.bubbles{display:flex;flex-direction:column;gap:8px;max-height:30dvh;overflow-y:auto}
.bubble{max-width:86%;border-radius:18px;padding:10px 14px;font-size:14px;line-height:1.4}
.bubble.sanaa{align-self:flex-start;background:#fff;border:1px solid var(--line);border-end-start-radius:4px}
.bubble.me{align-self:flex-end;background:var(--mint);color:#173F31;border-end-end-radius:4px}
.card{background:#fff;border-radius:20px;padding:14px 16px;box-shadow:0 8px 24px rgba(194,49,90,.10);display:flex;flex-direction:column;gap:9px}
.card-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.card-head small{font-size:12px;color:var(--muted)}
.kv{display:flex;justify-content:space-between;gap:12px;font-size:14px}
.kv span{color:var(--muted);flex-shrink:0}
.kv b{font-weight:700;text-align:end}
.typebar{display:flex;gap:8px}
.typebar input{flex:1;min-width:0;height:48px;border-radius:24px;border:1px solid #E9CDD5;background:#fff;padding:0 16px}
.typebar button{width:48px;height:48px;border-radius:50%;border:0;background:var(--rose);color:#fff;display:flex;align-items:center;justify-content:center}
.typebar .ic{width:20px;height:20px}
.controls{margin-top:auto;display:flex;align-items:center;justify-content:space-between;padding-top:6px}
#chat[data-mode=text] #muteBtn,#chat[data-mode=text] #timer{visibility:hidden}
.typebar.hint input{border-color:var(--rose);box-shadow:0 0 0 3px var(--rose-l)}
.timer{font-weight:800;font-variant-numeric:tabular-nums;color:var(--muted)}

/* Soins */
.list{display:flex;flex-direction:column;gap:8px}
.list button{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:0 16px;min-height:56px;font-weight:800;font-size:16px;text-align:start;width:100%}
.info{margin:0;background:var(--mint);color:#173F31;border-radius:16px;padding:12px 14px;font-size:13px}
.info.big{font-size:16px;font-weight:700;margin-bottom:14px}

/* Agenda */
.weekhead{display:flex;justify-content:space-between;align-items:center;gap:8px}
.weekhead span{display:flex;gap:6px}
.days{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.days button{background:#fff;border:1px solid var(--line);border-radius:16px;height:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.days button small{font-size:12px;font-weight:700}
.days button b{font-size:20px;font-weight:800}
.days button.on{background:var(--rose);border-color:var(--rose);color:#fff}
.days button:disabled{background:#F3ECEE;border-color:#F3ECEE;color:var(--muted);cursor:default}
.slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-height:46px}
.slots button{background:#fff;border:1px solid var(--mint-line);border-radius:14px;height:46px;font-weight:700}
.slots button.on{background:var(--rose);border-color:var(--rose);color:#fff;font-weight:800}
.slots button:disabled{background:#F3ECEE;border-color:#F3ECEE;color:var(--muted);text-decoration:line-through;cursor:default}
.slots p{grid-column:1/-1;margin:0;color:var(--muted);font-size:14px}
.form{display:flex;flex-direction:column;gap:12px}
.field{display:flex;flex-direction:column;gap:6px;border:0;padding:0;margin:0}
.field label,.field legend{font-size:13px;font-weight:700;padding:0}
.field input,.field select{height:50px;border-radius:14px;border:1px solid #E9CDD5;background:#fff;padding:0 14px;width:100%}
input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #7FB8A0;outline-offset:2px}
.chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:6px}
.chips button{height:46px;border-radius:14px;border:1px solid var(--mint-line);background:#fff;font-weight:700;font-size:14px}
.chips button.on{background:var(--rose);border-color:var(--rose);color:#fff}
.error{margin:0;color:#9C2446;background:var(--rose-l);border-radius:12px;padding:10px 12px;font-size:14px;font-weight:700}
.when{display:flex;justify-content:space-between;align-items:baseline;font-size:20px;font-weight:800}
.when b:first-child{color:var(--rose)}
.say{display:flex;align-items:flex-end;gap:10px}
.say img{width:48px;height:48px;border-radius:50%;object-fit:cover;flex-shrink:0}
.say p{margin:0;background:#fff;border:1px solid var(--line);border-radius:20px;border-end-start-radius:6px;padding:12px 14px;font-size:14px}

/* Accueil — nouvelle version */
#home{background:linear-gradient(180deg,#FFF6F8 0%,#FBE3EB 100%)}
#home .hero-wave path{fill:#FFF6F8}
.hero-top{justify-content:flex-end}
.doc-card{bottom:30px;padding:12px 16px 14px;border-radius:20px}
.doc-logo{font-size:24px;padding-bottom:6px;margin-bottom:8px;border-bottom:2px solid var(--rose)}
.doc-name{font-size:17px}
.home-body{align-items:stretch}
.duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tile{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px 10px;text-align:start;min-height:68px;box-shadow:0 6px 18px rgba(194,49,90,.08)}
.tile .row-ic{width:38px;height:38px;border-radius:50%}
.tile-text{flex:1;font-size:14px;line-height:1.25}
.tile-text b{font-weight:800}
.row.wide{border-radius:18px;box-shadow:0 6px 18px rgba(194,49,90,.08)}
.row.wide .row-ic{width:44px;height:44px;border-radius:50%}
.row.wide .row-text b{font-weight:800;font-size:16px}
.chev.rose{stroke:var(--rose)}
#home .links{margin:-4px 0}
/* Retour et logo cliquable */
.back{width:44px;height:44px;border-radius:50%;background:#fff;border:1px solid var(--line);box-shadow:0 4px 12px rgba(194,49,90,.12)}
.bar{gap:12px;padding:12px 18px 10px 16px}
.logo-btn{background:none;border:0;min-height:44px;padding:0 4px;cursor:pointer}

@media (max-width:379px){.cta-text b{font-size:15px}.cta-sanaa img{width:50px;height:50px}.cta-wave{width:24px}}

.svc{display:flex;flex-wrap:wrap;gap:8px}
.svc button{min-height:44px;padding:0 14px;border-radius:22px;border:1px solid var(--rose);background:#fff;color:var(--rose-d);font-weight:700;font-size:14px}
