/* City Hub — "Urban Pulse" design (Stitch), hand-written so pages stay light:
   one stylesheet, one self-hosted font, one cached SVG icon sprite. */
@font-face{font-family:Geist;font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/geist-latin.woff2) format("woff2")}
:root{
  --bg:#f8fafc;--white:#fff;--sc-low:#eff4ff;--sc:#e6eeff;--sc-high:#dce9ff;--sv:#d5e3fc;
  --ink:#0d1c2e;--ink-2:#434656;--outline:#737688;--outline-2:#c3c5d9;
  --primary:#003ec7;--primary-2:#0052ff;--on-primary-2:#dfe3ff;--primary-dark:#0038b6;
  --amber:#f59e0b;--amber-ink:#935e06;--amber-soft:#ffb95f;--amber-deep:#653e00;
  --red:#ba1a1a;--red-soft:#ffdad6;
  --sh1:0 4px 20px rgba(0,0,0,.04);--sh3:0 8px 24px rgba(0,0,0,.08);
  --r:.25rem;--r-lg:.5rem;--r-xl:.75rem;--r-2xl:1.5rem;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/24px Geist,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased;padding-bottom:96px}
@media(min-width:768px){body{padding-bottom:0}}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
h1,h2,h3,p{margin:0}
button{font:inherit;cursor:pointer}
.i{width:24px;height:24px;flex:none;fill:currentColor;display:inline-block;text-align:center;line-height:24px;font-size:20px}
.i-sm{width:16px;height:16px;font-size:14px;line-height:16px}
.i-md{width:20px;height:20px}
.sr{position:absolute;left:-9999px}
.muted{color:var(--ink-2)}
.clamp1{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.noscroll{scrollbar-width:none}.noscroll::-webkit-scrollbar{display:none}

/* type scale */
.t-display{font-size:24px;line-height:32px;font-weight:600}
@media(min-width:768px){.t-display{font-size:48px;line-height:56px;font-weight:700;letter-spacing:-.02em}}
.t-hl{font-size:24px;line-height:32px;font-weight:600}
@media(min-width:768px){.t-hl{font-size:32px;line-height:40px;letter-spacing:-.01em}}
.t-hm{font-size:20px;line-height:28px;font-weight:600}
.t-bl{font-size:18px;line-height:28px}
.t-lm{font-size:14px;line-height:20px;font-weight:500;letter-spacing:.01em}
.t-ls{font-size:12px;line-height:16px;font-weight:600}

/* layout */
.wrap{max-width:1280px;margin:0 auto;padding:0 20px}
@media(min-width:768px){.wrap{padding:0 24px}}
main.wrap{padding-top:96px;padding-bottom:32px}
@media(min-width:768px){main.wrap{padding-top:112px}}
.section{margin-bottom:32px}
.sec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.sec-head h2{font-size:20px;line-height:28px;font-weight:600}
.see-all{display:flex;align-items:center;gap:4px;color:var(--primary);font-size:14px;font-weight:500}
.see-all:hover{text-decoration:underline}
.grid{display:grid;gap:16px}
@media(min-width:768px){.md-2{grid-template-columns:repeat(2,1fr)}.md-3{grid-template-columns:repeat(3,1fr)}}

/* header */
.glass{background:rgba(255,255,255,.8);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
.topnav{position:fixed;top:0;left:0;right:0;z-index:50;box-shadow:var(--sh1)}
.topnav .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px}
.brand{font-size:20px;line-height:28px;font-weight:700;color:var(--primary);white-space:nowrap}
.links{display:none;align-items:center;gap:32px}
.links a{position:relative;color:var(--ink-2);font-size:14px;font-weight:500;line-height:20px}
.links a:hover,.links a.on{color:var(--primary)}
.links a.on::after{content:"";position:absolute;left:50%;bottom:-6px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--primary)}
.links a.urgent{color:var(--red)}.links a.urgent.on::after{background:var(--red)}
.tools{display:flex;align-items:center;gap:4px;color:var(--primary)}
.icon-btn{display:flex;padding:8px;border-radius:999px;color:var(--primary)}
.icon-btn:hover{background:var(--sc)}
.city select{font:500 14px/20px Geist,system-ui,sans-serif;color:var(--ink);background:var(--white);border:1px solid var(--outline-2);border-radius:999px;padding:6px 10px;max-width:42vw}
@media(min-width:768px){.links{display:flex}}

/* mobile bottom bar */
.bottomnav{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;justify-content:space-around;align-items:center;padding:8px 16px;background:var(--white);border-radius:12px 12px 0 0;box-shadow:0 -4px 24px rgba(0,0,0,.08)}
.bottomnav a{display:flex;flex-direction:column;align-items:center;padding:4px 14px;border-radius:999px;color:var(--ink-2);font-size:12px;line-height:16px;font-weight:600}
.bottomnav a.on{background:var(--primary-2);color:var(--on-primary-2)}
.bottomnav a.urgent{color:var(--red)}.bottomnav a.urgent.on{background:var(--red);color:#fff}
@media(min-width:768px){.bottomnav{display:none}}

/* badges */
.badge{display:inline-flex;align-items:center;gap:4px;padding:4px 12px;border-radius:999px;font-size:12px;line-height:16px;font-weight:600;white-space:nowrap}
.b-primary{background:var(--primary);color:#fff;box-shadow:0 4px 6px rgba(0,0,0,.1)}
.b-red{background:var(--red);color:#fff;box-shadow:0 4px 6px rgba(0,0,0,.1)}
.b-amber{background:var(--amber-soft);color:var(--amber-deep);box-shadow:0 4px 6px rgba(0,0,0,.1)}
.area-tag{position:absolute;top:8px;left:8px;z-index:2;padding:2px 8px;border-radius:var(--r);background:var(--primary);color:#fff;font-size:12px;line-height:16px;font-weight:600}
.area-tag.pill{top:16px;left:16px;padding:4px 12px;border-radius:999px;font-size:14px;line-height:20px;font-weight:500}
.status{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:999px;font-size:12px;line-height:16px;font-weight:600;white-space:nowrap}
.dot{width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}
.s-open,.s-closing{background:rgba(245,158,11,.2);color:var(--amber-ink)}
.s-open .dot,.s-closing .dot{background:var(--amber);animation:pulse 2s infinite}
.s-duty{background:var(--red);color:#fff}
.s-closed,.s-unknown{background:var(--sc);color:var(--ink-2)}
@keyframes pulse{50%{opacity:.4}}
@media(prefers-reduced-motion:reduce){.dot{animation:none!important}}
.line-open,.line-closing{color:var(--amber)}
.line-duty{color:var(--red)}
.line-closed,.line-unknown{color:var(--ink-2)}
.line{display:flex;align-items:center;gap:8px;font-size:14px;line-height:20px;font-weight:500}
.line .dot{background:currentColor}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 16px;border-radius:999px;border:0;font-size:14px;line-height:20px;font-weight:500;transition:background .2s}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-dark)}
.btn-soft{background:var(--sc);color:var(--primary)}.btn-soft:hover{background:var(--sc-high)}
.btn-outline{background:var(--white);color:var(--ink);border:1px solid var(--outline-2)}.btn-outline:hover{background:var(--sc-low)}
.btn-red{background:var(--red);color:#fff}
.btn-block{width:100%}
.btn-lg{padding:12px 24px;font-size:16px;line-height:24px}

/* cards */
.card{background:var(--white);border-radius:var(--r-xl);box-shadow:var(--sh1);overflow:hidden;transition:box-shadow .3s,transform .3s}
.card:hover{box-shadow:var(--sh3)}
.media{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;background:linear-gradient(135deg,#dfe3ff,#b7c4ff)}
.media img{width:100%;height:100%;object-fit:cover}
.media .ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:rgba(0,62,199,.35)}
.media .ph .i{width:64px;height:64px;font-size:48px;line-height:64px}

/* "À la une" carousel */
.rail{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:16px}
.feature{position:relative;flex:none;width:300px;scroll-snap-align:start;border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--sh1);background:var(--white);transition:transform .3s}
.feature:hover{transform:translateY(-4px)}
@media(min-width:768px){.feature{width:400px}}
.feature .media::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.6),transparent)}
.feature .badge{position:absolute;top:16px;left:16px;z-index:2}
.feature .txt{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:16px;color:#fff}
.feature .txt h3{margin-bottom:4px}
.feature .txt p{color:rgba(255,255,255,.8)}
.g-news{background:linear-gradient(135deg,#0052ff,#001452)}
.g-urgent{background:linear-gradient(135deg,#d93a3a,#5c0a0a)}
.g-event{background:linear-gradient(135deg,#ffb95f,#905a00)}
.g-works{background:linear-gradient(135deg,#5c5f61,#233144)}
.feature .ph{color:rgba(255,255,255,.25)}

/* category tiles */
.cats{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
@media(min-width:768px){.cats{grid-template-columns:repeat(5,1fr)}}
.cat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px;background:var(--white);border-radius:var(--r-xl);box-shadow:var(--sh1);text-align:center;font-size:14px;line-height:20px;font-weight:500;transition:all .2s}
.cat:hover{background:var(--sc);transform:translateY(-4px)}
.circle{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:var(--sv);color:var(--ink);flex:none}
.circle.on,.cat:first-child .circle{background:var(--primary-2);color:var(--on-primary-2)}
.cat small{font-size:12px;line-height:16px;font-weight:600;color:var(--amber-ink)}

/* health cards (horizontal) */
.hcard{display:flex;flex-direction:column;background:var(--white);border:1px solid var(--sv);border-radius:var(--r-xl);box-shadow:var(--sh1);overflow:hidden;transition:box-shadow .3s}
.hcard:hover{box-shadow:var(--sh3)}
.hcard.is-duty{border:2px solid var(--red)}
.hcard .media{width:100%}
.hcard .body{display:flex;flex-direction:column;justify-content:space-between;gap:16px;padding:16px;flex:1;min-width:0}
.title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:4px}
.addr{display:flex;align-items:flex-start;gap:4px;color:var(--ink-2)}
.addr .i{margin-top:4px}
@media(min-width:768px){.hcard{flex-direction:row}.hcard .media{width:40%;aspect-ratio:auto;min-height:100%}}

/* event cards */
.ecard .body{padding:16px}
.ecard .date{color:var(--primary);margin-bottom:4px}
.ecard h3{margin-bottom:8px}

/* service rows */
.svc{display:flex;align-items:center;gap:16px;padding:16px;background:var(--white);border-radius:var(--r-xl);box-shadow:var(--sh1);transition:background .2s}
.svc:hover{background:var(--sc)}
.svc .circle{background:var(--primary-2);color:var(--on-primary-2)}
.svc p{font-size:14px;line-height:20px;color:var(--ink-2)}

/* neighbourhood tiles */
.hood{position:relative;display:block;aspect-ratio:4/3;border-radius:var(--r-xl);overflow:hidden;background:linear-gradient(135deg,#0052ff,#233144)}
.hood img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.hood:hover img{transform:scale(1.05)}
.hood::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.4);transition:background .3s}
.hood:hover::after{background:rgba(0,0,0,.5)}
.hood h3{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;color:#fff;text-align:center;padding:16px}

/* listing page */
.page-head{margin-bottom:24px}
.page-head p{margin-top:8px;color:var(--ink-2)}
.filters{display:flex;flex-wrap:wrap;gap:12px;padding:4px 0 24px}
.chip{display:inline-flex;align-items:center;gap:8px;flex:none;padding:10px 20px;border:1px solid var(--outline-2);border-radius:999px;background:var(--white);color:var(--ink);font-size:16px;line-height:24px;box-shadow:var(--sh1)}
.chip:hover{background:var(--sc-low)}
.chip.on{background:var(--primary);border-color:var(--primary);color:#fff}
.chip .dot{background:var(--amber)}
.dropdown{position:relative;flex:none}
.dropdown summary{list-style:none;cursor:pointer}.dropdown summary::-webkit-details-marker{display:none}
.dropdown .menu{position:absolute;z-index:20;top:52px;left:0;min-width:220px;padding:8px;background:var(--white);border-radius:var(--r-xl);box-shadow:var(--sh3)}
.dropdown .menu a{display:block;padding:8px 12px;border-radius:var(--r-lg)}
.dropdown .menu a:hover,.dropdown .menu a.on{background:var(--sc);color:var(--primary)}
.lgrid{display:grid;gap:24px}
@media(min-width:640px){.lgrid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.lgrid{grid-template-columns:repeat(3,1fr);gap:48px}}
.lcard{display:flex;flex-direction:column}
.lcard.is-duty{outline:2px solid var(--red)}
.lcard .body{display:flex;flex-direction:column;gap:12px;padding:24px 24px 16px;flex:1}
.lcard .desc{color:var(--ink-2)}
.lcard .acts{display:flex;gap:16px;margin:0 24px;padding:16px 0 24px;border-top:1px solid var(--sv)}
.lcard .acts .btn{flex:1;padding:12px 16px;font-size:16px}
.empty{padding:24px;border-radius:var(--r-xl);background:var(--white);box-shadow:var(--sh1);color:var(--ink-2)}

/* detail page */
html{overflow-x:hidden}
.hero{position:relative;margin:-32px calc(50% - 50vw) 0;height:260px;border-radius:0 0 var(--r-2xl) var(--r-2xl);overflow:hidden;background:linear-gradient(135deg,#dfe3ff,#0052ff)}
@media(min-width:768px){.hero{margin-top:-48px;height:420px}}
.hero img{width:100%;height:100%;object-fit:cover}
.hero .ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.5)}
.hero .ph .i{width:120px;height:120px;font-size:96px;line-height:120px}
.hero .area-tag{top:24px;left:24px}
.dhead{display:flex;flex-direction:column;gap:16px;padding:24px 0;border-bottom:1px solid var(--sv);margin-bottom:32px}
.dhead h1{font-size:32px;line-height:40px;font-weight:600;letter-spacing:-.01em}
@media(min-width:768px){.dhead{flex-direction:row;justify-content:space-between;align-items:center}.dhead h1{font-size:40px;line-height:48px}}
.dhead .meta{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:8px}
.solid-status{padding:4px 16px;border-radius:999px;font-size:14px;line-height:20px;font-weight:600;color:#fff;background:var(--amber)}
.solid-status.s-duty{background:var(--red)}.solid-status.s-closed,.solid-status.s-unknown{background:var(--outline)}
.dacts{display:flex;flex-wrap:wrap;gap:12px}
.dacts .btn{padding:12px 24px;font-size:16px}
.dacts .btn-soft{color:var(--ink)}
.dacts .btn-primary{box-shadow:var(--sh3)}
.dgrid{display:grid;gap:32px}
@media(min-width:1024px){.dgrid{grid-template-columns:2fr 1fr;align-items:start}}
.panel{background:var(--white);border-radius:var(--r-2xl);box-shadow:var(--sh1);padding:24px}
@media(min-width:768px){.panel{padding:32px}}
.panel h2{display:flex;align-items:center;gap:12px;margin-bottom:20px;font-size:24px;line-height:32px;font-weight:600}
.stack{display:grid;gap:32px}
.hours{width:100%;border-collapse:collapse}
.hours td{padding:14px 0;border-bottom:1px solid var(--sv)}
.hours tr:last-child td{border-bottom:0}
.hours td:last-child{text-align:right}
.hours .today td{color:var(--primary);font-weight:500}
.hours .closed td{color:var(--outline)}
.mapbox{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;height:180px;margin:20px 0;border-radius:var(--r-xl);background:repeating-linear-gradient(45deg,#eff4ff 0 12px,#e6eeff 12px 24px);color:var(--primary)}
.mapbox .i{width:40px;height:40px}

/* news */
.article{max-width:760px}
.article .kick{color:var(--primary);margin-bottom:8px}
.article .lead{margin:12px 0;color:var(--ink-2)}
.article .figure{margin:24px 0;border-radius:var(--r-xl);overflow:hidden}
.article .text p{margin:0 0 16px;font-size:18px;line-height:28px}

/* pharmacie de garde block */
.urgent-box{border-radius:var(--r-xl);overflow:hidden;background:var(--white);border:2px solid var(--red);box-shadow:var(--sh1)}
.urgent-box .head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 16px;background:var(--red);color:#fff}
.urgent-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--red-soft)}
.urgent-row:last-child{border-bottom:0}
.day-title{margin:24px 0 8px;text-transform:capitalize}
.alert{display:flex;align-items:center;gap:12px;margin-bottom:24px;padding:12px 16px;border-radius:var(--r-xl);background:#fff4e0;color:var(--amber-deep);box-shadow:var(--sh1)}

/* footer */
.foot{background:var(--white);border-top:1px solid var(--sv);padding:32px 0}
.foot .wrap{display:flex;flex-direction:column;align-items:center;gap:16px}
.foot nav{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;font-size:14px;line-height:20px;font-weight:500;color:var(--ink-2)}
.foot nav a:hover{color:var(--primary)}
.foot .sos{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;font-size:14px;color:var(--ink-2)}
.foot .sos a{color:var(--red);font-weight:600}
@media(min-width:768px){.foot .wrap{flex-direction:row;justify-content:space-between}}

/* messages */
.msgs{display:grid;gap:8px;margin-bottom:24px}
.msg{padding:12px 16px;border-radius:var(--r-xl);background:var(--sc);color:var(--primary);font-weight:500}
.msg.error{background:var(--red-soft);color:var(--red)}

/* forms */
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px;min-width:0}
.field label{font-size:14px;line-height:20px;font-weight:500}
.field .opt{color:var(--outline);font-weight:400}
.field input:not([type=checkbox]),.field select,.field textarea{width:100%;font:inherit;color:var(--ink);background:var(--white);border:1px solid var(--outline-2);border-radius:1rem;padding:12px 14px;outline:0;transition:border-color .2s,box-shadow .2s}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(0,62,199,.12)}
.field.has-error input,.field.has-error select{border-color:var(--red)}
.field.check{flex-direction:row;align-items:center;gap:10px}
.field.check input{width:20px;height:20px;accent-color:var(--primary)}
.help{font-size:13px;line-height:18px;color:var(--ink-2)}
.err{font-size:13px;line-height:18px;color:var(--red);font-weight:500}
.err.box{padding:12px 16px;margin-bottom:16px;border-radius:var(--r-xl);background:var(--red-soft)}
.two{display:grid;gap:0 16px}
@media(min-width:640px){.two{grid-template-columns:1fr 1fr}}

/* auth pages */
.auth{display:grid;gap:24px;max-width:1040px;margin:0 auto}
@media(min-width:900px){.auth{grid-template-columns:5fr 6fr;align-items:stretch}}
.auth-side{display:flex;flex-direction:column;gap:20px;padding:32px;border-radius:var(--r-2xl);background:linear-gradient(160deg,#0052ff,#001452);color:#fff}
.auth-side .circle{background:rgba(255,255,255,.15);color:#fff}
.auth-side ul,.auth-side ol{display:grid;gap:14px;margin:0;padding:0 0 0 20px}
.auth-side ul{list-style:none;padding:0}
.auth-side li{display:flex;gap:10px;align-items:flex-start;color:rgba(255,255,255,.9)}
.auth-side ol li{display:list-item}
.auth-side .note{display:flex;gap:10px;margin-top:auto;padding:14px;border-radius:var(--r-xl);background:rgba(255,255,255,.12);font-size:14px;line-height:20px}
.auth-card{padding:32px;background:var(--white);border-radius:var(--r-2xl);box-shadow:var(--sh1)}
.auth-card h1{margin-bottom:4px}
.auth-card form{margin-top:24px}
.auth-card .btn-lg{margin-top:8px}
.switch{margin-top:20px;text-align:center;color:var(--ink-2)}
.switch a{color:var(--primary);font-weight:600}

/* dashboard */
.dash-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px}
.dash-head .dacts form{display:flex}
.stat{display:flex;align-items:center;gap:16px;padding:20px;background:var(--white);border-radius:var(--r-xl);box-shadow:var(--sh1)}
.stat b{font-size:28px;line-height:32px}
.stat p{font-size:14px;color:var(--ink-2)}
.hours-edit{display:grid;gap:8px}
.hrow{display:grid;grid-template-columns:90px 1fr;gap:6px 12px;align-items:center;padding:8px 0;border-bottom:1px solid var(--sv)}
.hrow span{display:flex;align-items:center;gap:6px;grid-column:2}
.hrow i{font-style:normal;color:var(--outline)}
.hrow input{flex:1;min-width:0;font:inherit;padding:8px 10px;border:1px solid var(--outline-2);border-radius:var(--r-lg);background:var(--white)}
@media(min-width:640px){.hrow{grid-template-columns:110px 1fr 1fr}.hrow span{grid-column:auto}}
.verified{display:inline-flex;align-items:center;gap:4px;color:var(--primary);font-size:14px;font-weight:600}

/* language switch */
.lang{display:flex;padding:3px;border:1px solid var(--outline-2);border-radius:999px;background:var(--white)}
.lang button{font:600 13px/18px inherit;min-width:34px;padding:5px 8px;border:0;border-radius:999px;background:none;color:var(--ink-2)}
.lang button.on{background:var(--primary);color:#fff}

/* right-to-left (Arabic) */
[dir=rtl] body{font-family:"Geeza Pro","Noto Sans Arabic","Segoe UI",Tahoma,system-ui,sans-serif}
[dir=rtl] .flip,[dir=rtl] .see-all .i,[dir=rtl] .chip .i-md:last-child{transform:scaleX(-1)}
[dir=rtl] .area-tag{left:auto;right:8px}
[dir=rtl] .area-tag.pill{right:16px}
[dir=rtl] .feature .badge{left:auto;right:16px}
[dir=rtl] .hero .area-tag{right:24px}
[dir=rtl] .dropdown .menu{left:auto;right:0}
[dir=rtl] .auth-side ol{padding:0 20px 0 0}
[dir=rtl] .hours td:last-child{text-align:left}
[dir=rtl] .t-display,[dir=rtl] .t-hl{letter-spacing:0}

/* ---- resident features ---- */
/* first visit: pick a language */
.lang-pick{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;padding:16px;border-radius:var(--r-xl);background:var(--white);box-shadow:var(--sh3)}
.lang-pick p{font-weight:600}
.lang-pick div{display:flex;gap:10px;flex:1;min-width:240px}
.lang-pick button{flex:1;padding:14px;border:0;border-radius:999px;background:var(--primary);color:#fff;font:600 18px/24px inherit}
.lang-pick button+button{background:var(--sc);color:var(--primary)}
.lang-pick div{flex-wrap:wrap}

/* red "pharmacie de garde maintenant" bar, on every page */
.duty-info{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.duty-info span{display:flex;flex-direction:column;min-width:0}
.duty-info small{font-size:12px;line-height:16px;opacity:.85}
.duty-info b{font-size:17px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.duty-call{display:flex;align-items:center;gap:6px;flex:none;padding:12px 18px;border-radius:999px;background:#fff;color:var(--red);font-weight:700}

/* compact place cards: no empty picture, call first */
.lcard.compact .body{padding-top:20px}
.name-row{display:flex;align-items:center;gap:12px}
.name-row .desc{font-size:14px;line-height:20px}
.big-status{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;padding:6px 14px;border-radius:999px;font-size:15px;line-height:22px;font-weight:700}
.big-status.s-open,.big-status.s-closing{background:rgba(245,158,11,.18);color:var(--amber-ink)}
.big-status.s-open .dot,.big-status.s-closing .dot{background:var(--amber);animation:pulse 2s infinite}
.big-status.s-duty{background:var(--red);color:#fff}
.big-status.s-closed,.big-status.s-unknown{background:var(--sc);color:var(--ink-2)}
.big-status.s-closed .dot,.big-status.s-unknown .dot{background:var(--outline)}
.phone{font-size:18px;line-height:24px;font-weight:600;letter-spacing:.02em}
[dir=rtl] .phone{text-align:right}
.lcard .acts .btn.grow{flex:1}
.lcard .acts .btn.square{flex:none;width:52px;padding:12px 0}
.btn-wa{background:#128c4a;color:#fff}.btn-wa:hover{background:#0f7a40}
.circle.big{width:64px;height:64px;margin-bottom:12px}
.circle.big .i{width:32px;height:32px}
.dhead.no-hero{padding-top:8px}
.dhead .dacts{align-self:stretch}
@media(max-width:767px){.dhead .dacts .btn{flex:1 1 100%}}

/* report form choices */
.choices{display:grid;gap:8px;margin:20px 0}
.choice{display:flex;align-items:center;gap:10px;padding:12px 16px;border:1px solid var(--outline-2);border-radius:var(--r-xl);background:var(--white);cursor:pointer}
.choice input{width:20px;height:20px;accent-color:var(--primary)}

/* practical info */
.info{display:flex;flex-direction:column;gap:10px}
.info h3{display:flex;align-items:center;gap:10px}
.info .btn{align-self:flex-start}
.sos-big{display:flex;align-items:center;gap:14px;padding:18px 20px;border-radius:var(--r-xl);background:var(--white);box-shadow:var(--sh1);font-size:18px;font-weight:600}
.sos-big .i{color:var(--red)}
.sos-big b{margin-inline-start:auto;color:var(--red);font-size:26px}
.foot .sos{gap:8px}
.foot .sos-btn{padding:6px 12px;border-radius:999px;background:var(--red-soft);color:var(--red);font-weight:500}
.foot .sos-btn b{font-weight:800}

/* five items in the bottom bar */
.bottomnav{padding:8px 6px}
.bottomnav a{padding:4px 8px;min-width:0;flex:1;max-width:84px}
.bottomnav a span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}

/* Arabic reads better a little larger */
[dir=rtl] body{font-size:17px;line-height:27px}
[dir=rtl] .t-lm,[dir=rtl] .btn,[dir=rtl] .links a{font-size:15px}
[dir=rtl] .t-ls,[dir=rtl] .bottomnav a{font-size:13px}
@media(max-width:767px){.tools .city{display:none}}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.stats .stat{flex-direction:column;align-items:flex-start;gap:8px;padding:14px}
.stats .circle{width:36px;height:36px}.stats .circle .i{width:20px;height:20px}
.stats .stat b{font-size:24px;line-height:28px}.stats .stat p{font-size:12px;line-height:16px}
@media(min-width:768px){.stats{gap:16px}.stats .stat{flex-direction:row;align-items:center;padding:20px}.stats .stat p{font-size:14px}}

/* wizard: owner fiche step by step */
.steps{display:flex;gap:6px;list-style:none;margin:0 0 24px;padding:0;overflow-x:auto;scrollbar-width:none}
.steps li{flex:1 0 auto}
.steps a,.steps li>span{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:var(--white);box-shadow:var(--sh1);color:var(--ink-2);font-size:14px;font-weight:500;white-space:nowrap}
.steps .n{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--sc);color:var(--primary);font-size:13px;font-weight:700}
.steps .done a{color:var(--ink)}.steps .done .n{background:#dcfce7;color:#15803d}
.steps .on a,.steps .on>span{background:var(--primary);color:#fff}.steps .on .n{background:#fff;color:var(--primary)}
@media(max-width:767px){.steps li:not(.on) .l{display:none}}
.step-form{display:grid;gap:16px;max-width:760px}
.step-nav{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.locate{padding:16px;border-radius:var(--r-xl);background:var(--sc-low);margin-bottom:16px}
.locate .help{margin:8px 0}
.or{display:flex;align-items:center;gap:12px;margin:12px 0;color:var(--outline);font-size:13px}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--outline-2)}
.photo-preview{max-height:220px;border-radius:12px;margin:8px 0 12px}
.checklist{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.checklist li{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:var(--r-xl);background:var(--bg)}
.checklist li span{flex:1;font-weight:500}
.checklist .ok .i{color:#15803d}.checklist .todo .i{color:var(--amber)}
.msg.warn{background:#fff4e0;color:var(--amber-deep);display:flex;align-items:center;gap:8px;margin-bottom:16px}
.rv{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600}
.rv-draft{background:var(--sc);color:var(--primary)}.rv-pending{background:#fff4e0;color:var(--amber-deep)}
.rv-rejected{background:var(--red-soft);color:var(--red)}.rv-approved{background:#dcfce7;color:#15803d}
.checked{display:flex;align-items:center;gap:6px;color:#15803d;font-size:13px;font-weight:500}

/* espace équipe */
.trow{display:grid;gap:12px;padding:16px;border-radius:var(--r-xl);background:var(--white);box-shadow:var(--sh1)}
.trow .top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.trow .acts{display:flex;gap:8px;flex-wrap:wrap}
.trow .acts form{display:flex;flex:1 1 140px}.trow .acts .btn{flex:1}
.trow.is-duty{outline:2px solid var(--red)}
.tlist{display:grid;gap:12px}
@media(min-width:900px){.tlist.two-col{grid-template-columns:1fr 1fr}}
.note-form{display:flex;gap:8px;flex:1 1 100%}
.note-form input{flex:1;min-width:0;padding:10px 12px;border:1px solid var(--outline-2);border-radius:var(--r-xl);font:inherit}

/* red duty bar, part of the fixed header while a duty shift runs */
.duty-bar{background:var(--red);color:#fff}
.duty-bar .wrap{display:flex;align-items:center;gap:12px;padding-top:8px;padding-bottom:8px}
.duty-info small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.duty-info .go{opacity:.8;margin-inline-start:auto}
.duty-info:hover b{text-decoration:underline}
.pulse{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;background:rgba(255,255,255,.18);animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(255,255,255,.5)}70%{box-shadow:0 0 0 10px rgba(255,255,255,0)}100%{box-shadow:0 0 0 0 rgba(255,255,255,0)}}
@media(prefers-reduced-motion:reduce){.pulse{animation:none}}
.has-duty main.wrap{padding-top:160px}
@media(min-width:768px){.has-duty main.wrap{padding-top:176px}}
@media(max-width:420px){.duty-call span{display:none}.duty-call{padding:12px}}
