@font-face{font-family:'Montserrat';font-weight:400;font-display:swap;src:url(../fonts/montserrat-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Montserrat';font-weight:500;font-display:swap;src:url(../fonts/montserrat-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Montserrat';font-weight:600;font-display:swap;src:url(../fonts/montserrat-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Montserrat';font-weight:700;font-display:swap;src:url(../fonts/montserrat-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Playfair Display';font-weight:600;font-display:swap;src:url(../fonts/playfair-display-latin-600-normal.woff2) format('woff2')}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#f4f6fa;font-family:'Montserrat',system-ui,sans-serif;color:#1f2430;font-size:15px;padding-bottom:calc(76px + env(safe-area-inset-bottom))}
[hidden]{display:none!important}
h1,h2{font-family:'Playfair Display',Georgia,serif;font-weight:600;color:#12306b;margin:0}
.top{background:#0b1f47;color:#fff;padding:calc(14px + env(safe-area-inset-top)) 18px 18px;border-radius:0 0 22px 22px}
.top small{opacity:.8;font-size:12.5px}.top h1{color:#fff;font-size:24px;margin:2px 0 0}
.wrap{padding:14px;display:flex;flex-direction:column;gap:12px;max-width:560px;margin:0 auto}
.card{background:#fff;border:1px solid #e3e7ef;border-radius:16px;padding:16px}
.card h2{font-size:17px;margin-bottom:8px}
.muted{color:#5b6475;font-size:13px}
.big{font-size:26px;font-weight:700;color:#12306b}
.btn{display:block;width:100%;border:0;border-radius:999px;background:#d9182b;color:#fff;font:700 15px 'Montserrat',system-ui;padding:15px;cursor:pointer;margin-top:12px}
.btn.sec{background:#fff;color:#12306b;border:1.5px solid #12306b}
.btn.go{background:#12306b}
.btn:disabled{opacity:.55}
.chip{display:inline-block;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700;background:#eef1f7;color:#5b6475}
.chip.ok{background:#e1f5e8;color:#127a3a}.chip.late{background:#fff4dc;color:#7a5200}.chip.miss{background:#fde3e6;color:#b01223}.chip.just{background:#e6eefc;color:#12306b}
.msg{border-radius:12px;padding:12px 14px;font-weight:600;font-size:14px;margin-top:12px}
.msg.ok{background:#e1f5e8;color:#127a3a}.msg.bad{background:#fde3e6;color:#b01223}.msg.info{background:#eef3ff;color:#12306b}
label{display:block;font-size:13px;font-weight:600;margin:12px 0 4px}
input,select,textarea{width:100%;border:1px solid #c9d0de;border-radius:10px;padding:12px;font:inherit;background:#fff}
.nav{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #e3e7ef;display:flex;padding:6px 6px calc(6px + env(safe-area-inset-bottom));z-index:10}
.nav button{flex:1;border:0;background:none;font:600 11.5px 'Montserrat',system-ui;color:#5b6475;padding:8px 2px;border-radius:12px;display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer}
.nav button svg{width:22px;height:22px}
.nav button[aria-current=page]{color:#d9182b}
.day{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #eef1f7}
.day:last-child{border:0}
.day .d{width:54px;flex:none;font-weight:700;color:#12306b;font-size:13px}.day .d small{display:block;font-weight:500;color:#8a93a6}
.day.today .d{color:#d9182b}
.day .t{flex:1;font-size:14px}.day .t small{display:block;color:#5b6475;font-size:12px}
.wkn{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.wkn button{border:1px solid #d3dbe9;background:#fff;color:#12306b;border-radius:10px;width:40px;height:36px;font-size:18px;font-weight:700}
.wkn b{font-size:14px;color:#12306b;text-align:center}
.row{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #eef1f7;font-size:14px}.row:last-child{border:0}
.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px;background:#0b1f47}
.login .c{background:#fff;border-radius:22px;padding:28px 24px;width:100%;max-width:400px}
.login img{height:40px;margin-bottom:12px}
.login h1{font-size:24px;margin-bottom:4px}
.badgebox{display:flex;justify-content:center;transform-origin:top center}
.ovl{position:fixed;inset:0;background:rgba(11,31,71,.6);display:grid;place-items:end center;z-index:30}
.ovl .sheet{background:#fff;border-radius:22px 22px 0 0;padding:20px 18px calc(20px + env(safe-area-inset-bottom));width:100%;max-width:560px}
.ovl video{width:100%;border-radius:12px;margin-top:10px}
.sig{display:flex;justify-content:space-between;align-items:center}
.link{background:none;border:0;color:#12306b;font:600 13px 'Montserrat',system-ui;padding:0;cursor:pointer;text-decoration:underline}

/* Carte de badge (85,6 x 54 mm) */
.bc{width:85.6mm;height:54mm;box-sizing:border-box;border-radius:3.5mm;overflow:hidden;background:#fff;border:1px solid #cfd7e6;display:flex;flex-direction:column;font-family:Montserrat,Arial,sans-serif;color:#0b1f47;break-inside:avoid}
.bc-h{background:#0b1f47;color:#fff;padding:2.2mm 4mm;display:flex;justify-content:space-between;align-items:center;font-size:8.5pt;letter-spacing:.08em}
.bc-h span{font-size:6.5pt;letter-spacing:.04em;opacity:.85;text-transform:uppercase}
.bc-b{flex:1;display:flex;gap:3mm;padding:3mm 4mm 1mm;min-height:0}
.bc-i{flex:1;min-width:0;display:flex;flex-direction:column;gap:.8mm}
.bc-ini{width:11mm;height:11mm;border-radius:50%;background:#12306b;color:#fff;display:grid;place-items:center;font-weight:700;font-size:9pt;margin-bottom:1mm}
.bc-n{font-weight:700;font-size:10.5pt;line-height:1.15}
.bc-m{font-size:8.5pt;color:#d9182b;font-weight:700}
.bc-s{font-size:7pt;color:#5b6475}
.bc-q{width:26mm;display:flex;flex-direction:column;align-items:center;gap:.6mm}
.bc-q svg{width:24mm;height:24mm}
.bc-q code{font-size:6.5pt;letter-spacing:.06em;font-weight:700}
.bc-f{font-size:5.8pt;color:#8a93a6;text-align:center;padding:0 4mm 2mm}

/* L'application reste fixe : pas de zoom au clic dans un champ ni au double toucher (le pincement reste possible) */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;touch-action:manipulation}
body{overflow-x:hidden}
input,select,textarea{font-size:16px!important}
.ms-gate-skip{display:block;width:100%;margin-top:10px;border:0;background:none;color:#5b6475;font-weight:600;font-size:13px;padding:10px;cursor:pointer;border-radius:10px;font-family:inherit}
.ms-gate{position:fixed;inset:0;z-index:300;background:rgba(11,31,71,.82);display:grid;align-items:end;padding:0;backdrop-filter:blur(3px);font-family:'Montserrat',sans-serif}
.ms-gate-box{background:#fff;border-radius:22px 22px 0 0;padding:24px 20px calc(20px + env(safe-area-inset-bottom));width:100%;color:#1f2430}
.ms-gate-box h2{margin:0 0 8px;font-family:'Playfair Display',serif;font-size:24px;color:#12306b;font-weight:600}
.ms-gate-box>p{margin:0 0 16px;font-size:13.5px;line-height:1.55;color:#5b6475}
.ms-gate-row{display:flex;gap:12px;align-items:center;padding:12px 14px;border:1px solid #e6eaf2;border-radius:12px;margin-bottom:10px;font-size:13px}
.ms-gate-row b{display:block;font-size:13.5px;color:#12306b}.ms-gate-row span{color:#5b6475;font-size:12px}
.ms-gate-row i{margin-left:auto;font-style:normal;font-weight:700;font-size:12px;padding:3px 10px;border-radius:999px;background:#eef1f7;color:#5b6475;white-space:nowrap}
.ms-gate-row.ok i{background:#e2f5e9;color:#127a3a}.ms-gate-row.no i{background:#fde8ea;color:#c4121f}
.ms-gate-help{background:#fff8e6;border:1px solid #f1dc9a;border-radius:12px;padding:12px 14px;font-size:12.5px;line-height:1.55;color:#5c4400;margin:4px 0 14px}
.ms-gate-box .ms-btn,.ms-gate-box [data-go]{width:100%;padding:13px 16px;font-size:14px;border:0;border-radius:999px;background:#d9182b;color:#fff;font-weight:700;font-family:inherit;cursor:pointer}
.card h2{font-family:'Montserrat',sans-serif;font-weight:700;font-size:16px}

/* ---------- Application employé (téléphone) ---------- */
body{padding-bottom:calc(78px + env(safe-area-inset-bottom));-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none}
.top{display:flex;align-items:center;justify-content:space-between;gap:14px}
.top .who{min-width:0}.top small{display:block;overflow-wrap:anywhere}
.av{width:46px;height:46px;border-radius:50%;background:#1d3f87;color:#fff;display:grid;place-items:center;font-weight:700;font-size:15px;flex:none;overflow:hidden;border:2px solid rgba(255,255,255,.35);padding:0;cursor:pointer}
.av img{width:100%;height:100%;object-fit:cover;display:block}
.av.lg{width:92px;height:92px;font-size:28px;border:3px solid #fff;box-shadow:0 2px 10px rgba(11,31,71,.18);cursor:default}
.state{display:inline-block;border-radius:999px;padding:3px 11px;font-size:12px;font-weight:700;background:#eef1f7;color:#5b6475;margin-bottom:8px}
.state.in{background:#e1f5e8;color:#127a3a}.state.pause{background:#fff4dc;color:#7a5200}.state.done{background:#e6eefc;color:#12306b}
.btn.alt{background:#fff;color:#12306b;border:1.5px solid #12306b}
.btn.amber{background:#e0a800;color:#2b1d00}
.btn.sm{display:inline-block;width:auto;padding:9px 18px;font-size:13px;margin-top:8px}
.tl{margin:12px 0 0;padding:0;list-style:none;border-left:2px solid #e3e7ef}
.tl li{position:relative;padding:2px 0 12px 16px;font-size:14px}
.tl li::before{content:"";position:absolute;left:-6px;top:6px;width:10px;height:10px;border-radius:50%;background:#12306b}
.tl li.p::before{background:#e0a800}.tl li.o::before{background:#d9182b}.tl li.n::before{background:#c9d0de}
.tl small{display:block;color:#5b6475;font-size:12px}
.al{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #eef1f7}.al:last-child{border:0}
.al i{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#e6eefc;color:#2c5bb5;font-style:normal;font-weight:800}
.al.warn i{background:#fff3d1;color:#8a6100}.al.urgent i{background:#fde8ea;color:#c4121f}.al.ok i{background:#e1f5e8;color:#127a3a}
.al b{display:block;font-size:14px;color:#12306b}.al span{display:block;color:#5b6475;font-size:12.5px;line-height:1.45;margin-top:2px}
.alh{display:flex;justify-content:space-between;align-items:center}
.alh h2{margin:0}.cnt{background:#d9182b;color:#fff;border-radius:999px;font-size:12px;font-weight:700;min-width:22px;height:22px;display:inline-grid;place-items:center;padding:0 6px}
.prof{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:6px}
.prof h2{margin:10px 0 2px;font-size:19px}
.prof .mat{color:#d9182b;font-weight:700;font-size:13px}
.kv{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #eef1f7;font-size:14px}.kv:last-child{border:0}
.kv span{color:#5b6475;flex:none}.kv b{font-weight:600;text-align:right;overflow-wrap:anywhere;min-width:0}
.kv input{width:auto;flex:1;text-align:right;border:0;border-bottom:1px dashed #c9d0de;border-radius:0;padding:2px 0;background:none}
.tog{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #eef1f7;font-size:14px}.tog:last-child{border:0}
.tog small{display:block;color:#5b6475;font-size:12px}
.tog i{font-style:normal;font-weight:700;font-size:12px;padding:3px 10px;border-radius:999px;background:#eef1f7;color:#5b6475;white-space:nowrap}
.tog i.ok{background:#e1f5e8;color:#127a3a}.tog i.no{background:#fde8ea;color:#b01223}
.toast{position:fixed;left:14px;right:14px;top:calc(12px + env(safe-area-inset-top));z-index:120;background:#0b1f47;color:#fff;border-radius:14px;padding:13px 16px;font-size:13.5px;font-weight:600;box-shadow:0 10px 30px rgba(0,0,0,.25);animation:tin .25s ease}
@keyframes tin{from{transform:translateY(-14px);opacity:0}to{transform:none;opacity:1}}
.desk{min-height:100vh;display:grid;place-items:center;padding:24px;background:#0b1f47}
.desk .c{background:#fff;border-radius:24px;padding:34px;max-width:420px;text-align:center}
.desk svg{width:190px;height:190px;margin:16px auto 6px;display:block}
.desk h1{font-size:24px}
.upd{position:fixed;left:14px;right:14px;bottom:calc(86px + env(safe-area-inset-bottom));z-index:60}
.nav button span.dot{position:absolute;top:4px;margin-left:16px;width:9px;height:9px;border-radius:50%;background:#d9182b}
.nav button{position:relative}

/* v1.1 : icônes de pointage, demandes rangées, modales, photo sur le badge */
.btn{display:flex;align-items:center;justify-content:center;gap:10px;box-sizing:border-box}
.btn .ic{flex:none}
.btn.out{background:#0b1f47}
.bc-ini.bc-ph{width:14mm;height:14mm;overflow:hidden;background:#e6eefc}
.bc-ini img{width:100%;height:100%;object-fit:cover;display:block}
.bal .big{font-size:38px;font-weight:700;color:#12306b;line-height:1.1;margin:4px 0 12px}
.bal .big span{font-size:15px;font-weight:600;color:#5b6475}
.bal3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.bal3 div{background:#f4f6fa;border-radius:12px;padding:10px 6px;text-align:center}
.bal3 b{display:block;font-size:20px;color:#12306b}.bal3 small{font-size:11px;color:#5b6475}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.two .btn{margin:0;flex-direction:column;gap:6px;padding:14px 8px;font-size:13px;border-radius:18px;line-height:1.2}
.rq{display:flex;align-items:center;gap:12px;width:100%;background:none;border:0;border-bottom:1px solid #eef1f7;padding:12px 0;text-align:left;font:inherit;color:inherit;cursor:pointer}
.rq:last-child{border:0}
.rq i{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#e6eefc;color:#12306b}
.rq i.abs{background:#fff4dc;color:#7a5200}
.rq div{flex:1;min-width:0}.rq b{display:block;font-size:14px;color:#12306b}.rq small{color:#5b6475;font-size:12.5px}
.rq>svg{color:#a3abbb;flex:none}
.chip.wait{background:#fff4dc;color:#7a5200}
.sheet{position:relative;max-height:88vh;overflow:auto}
.sheet .x{position:absolute;right:12px;top:10px;width:34px;height:34px;border:0;border-radius:50%;background:#eef1f7;color:#12306b;font-size:22px;line-height:1;cursor:pointer;margin:0;padding:0;display:block}
.sheet h2{padding-right:40px}
.sheet label{display:block;font-size:13px;font-weight:600;margin:12px 0 4px}
.sheet input{width:100%;box-sizing:border-box}

/* cloche et logo dans l'en-tête */
.top .lg2{width:38px;height:38px;border-radius:10px;flex:none;border:0;padding:0;background:none;cursor:pointer}
.top .lg2 img{width:100%;height:100%;border-radius:10px;display:block}
.top .who{flex:1}
.bell{position:relative;width:42px;height:42px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center;flex:none;padding:0;cursor:pointer}
.bell b{position:absolute;top:-2px;right:-2px;min-width:18px;height:18px;border-radius:9px;background:#d9182b;color:#fff;font-size:11px;display:grid;place-items:center;padding:0 4px;border:2px solid #0b1f47;box-sizing:content-box}
.bell b[hidden]{display:none}
.top{gap:10px}

/* connexion : même fond animé que l'espace admin */
.login{position:relative;overflow:hidden;min-height:100vh;min-height:100svh;background:linear-gradient(120deg,#08183a,#0b1f47,#1b4aa3,#0b1f47);background-size:300% 300%;animation:ms-shift 16s ease infinite}
@keyframes ms-shift{50%{background-position:100% 50%}}
@keyframes ms-float{50%{transform:translateY(28px) scale(1.05)}}
@keyframes ms-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
.login .orb{position:absolute;border-radius:50%;opacity:.18;animation:ms-float 12s ease-in-out infinite;pointer-events:none}
.login .orb.a{width:420px;height:420px;background:#d9182b;right:-120px;top:-100px}
.login .orb.b{width:300px;height:300px;background:#4d7bd6;left:8%;bottom:-140px;animation-delay:-5s}
.login .sl{position:absolute;right:12%;top:10%;width:3px;height:70%;background:rgba(255,255,255,.22);transform:rotate(32deg);pointer-events:none}
.login .c{position:relative;z-index:2;animation:ms-rise .8s cubic-bezier(.2,.7,.2,1) both;max-height:calc(100svh - 24px);overflow:auto}
.brand{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.brand .tile{width:64px;height:64px;border-radius:16px;flex:none}
.brand b{display:block;font-size:15px;letter-spacing:.14em;color:#12306b}.brand span{font-size:13px;letter-spacing:.08em;color:#5b6475}
.pwr{position:relative}.pwr input{padding-right:46px}
.eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;background:transparent;border-radius:10px;display:grid;place-items:center;cursor:pointer;color:#5b6475;margin:0;padding:0}
@media (prefers-reduced-motion:reduce){.login,.login .orb,.login .c{animation:none}}
a.btn{text-decoration:none;text-align:center;box-sizing:border-box}

/* v1.4 : plein écran sur tous les téléphones, cloche, profil, chargement, actualiser, plantage */
html{background:linear-gradient(#0b1f47 0 50%,#fff 50% 100%);overscroll-behavior:none;min-height:100%}
body{min-height:100vh;min-height:100dvh}
.nav::after{content:"";position:absolute;left:0;right:0;top:100%;height:80px;background:#fff}
.top{padding-top:calc(16px + env(safe-area-inset-top));padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
.top h1{font-size:clamp(19px,6vw,24px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bell b{top:-5px;right:-5px;min-width:16px;height:16px;font-size:10px;padding:0 3px;border-width:2px}
.wrap{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
@media (max-width:359px){.nav button{font-size:10.5px}.two{grid-template-columns:1fr}.bal3 b{font-size:17px}.big{font-size:22px}}
@media (min-width:600px){.wrap{max-width:620px}.nav{justify-content:center}.nav button{max-width:120px}}
/* profil */
.prof{padding:22px 16px 18px}
.avw{position:relative;display:inline-block}
.cam{position:absolute;right:-2px;bottom:-2px;width:34px;height:34px;border-radius:50%;border:3px solid #fff;background:#d9182b;color:#fff;display:grid;place-items:center;padding:0;margin:0;cursor:pointer}
.prof .sub{color:#5b6475;font-size:13.5px;margin-top:2px}.prof .sub .mat{font-weight:700;color:#d9182b}
.ri{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:13px 0;border-bottom:1px solid #eef1f7;font-size:14px}.ri:last-child{border:0}
.ri>span{color:#8a93a6;font-size:12.5px;font-weight:600;flex:none;padding-top:2px}
.ri>div{text-align:right;font-weight:600;color:#1f2430;min-width:0;overflow-wrap:anywhere}
.ri small{display:block;font-weight:500;color:#5b6475;font-size:12px;margin-top:2px}.ri em{font-style:normal;color:#a3abbb;font-weight:500}
.ed{display:inline-block;margin-left:10px;border:0;background:#eef1f7;color:#12306b;border-radius:999px;padding:4px 12px;font:700 12px 'Montserrat',system-ui;cursor:pointer}
.out2{color:#b01223;border-color:#e8b8be}
/* chargement */
.pbar{position:fixed;left:0;right:0;top:0;height:3px;z-index:500;background:transparent;overflow:hidden;opacity:0;transition:opacity .2s}
.pbar.on{opacity:1}.pbar i{display:block;height:100%;width:35%;background:#d9182b;animation:pb 1s ease-in-out infinite}
@keyframes pb{0%{transform:translateX(-100%)}100%{transform:translateX(300%)}}
.ldr{display:flex;flex-direction:column;align-items:center;gap:16px;padding:8px 0 4px}
.ldr img{width:72px;height:72px;border-radius:18px;animation:br 1.6s ease-in-out infinite}
@keyframes br{0%,100%{transform:scale(.94);opacity:.7}50%{transform:scale(1);opacity:1}}
.ldr .bar{width:120px;height:4px;border-radius:2px;background:#e3e7ef;overflow:hidden}.ldr .bar i{display:block;height:100%;width:40%;background:#d9182b;animation:pb 1.1s ease-in-out infinite}
.sk{height:14px;border-radius:7px;background:linear-gradient(90deg,#eef1f7,#f7f8fb,#eef1f7);background-size:200% 100%;animation:sh 1.2s linear infinite;margin:10px 0}
@keyframes sh{to{background-position:-200% 0}}
/* actualiser (tirer vers le bas) */
.ptr{position:fixed;left:50%;top:calc(70px + env(safe-area-inset-top));margin-left:-20px;width:40px;height:40px;border-radius:50%;background:#fff;box-shadow:0 4px 14px rgba(11,31,71,.2);display:grid;place-items:center;z-index:60;opacity:0;transform:translateY(-30px);pointer-events:none;color:#12306b}
.ptr svg{transition:transform .1s}.ptr.spin svg{animation:rot .8s linear infinite}
@keyframes rot{to{transform:rotate(360deg)}}
/* plantage */
.crash{text-align:center;padding:26px 18px}
.crash .ico{width:64px;height:64px;border-radius:50%;background:#fde8ea;color:#b01223;display:grid;place-items:center;margin:0 auto 12px;font-size:30px;font-weight:700}
.crash h2{font-size:20px}.crash p{color:#5b6475;font-size:14px;line-height:1.5;margin:8px 0 4px}
.errbar{position:fixed;left:12px;right:12px;bottom:calc(88px + env(safe-area-inset-bottom));z-index:150;background:#0b1f47;color:#fff;border-radius:14px;padding:12px 14px;font-size:13.5px;display:flex;align-items:center;gap:12px}
.errbar button{margin:0 0 0 auto;width:auto;flex:none;padding:8px 16px;font-size:13px}

/* v1.5 : pointage en deux tuiles, pause visible */
.sitebar{display:flex;align-items:center;gap:12px;background:#f4f6fa;border-radius:14px;padding:10px 12px;margin:2px 0 12px}
.sitebar>i{flex:none;width:36px;height:36px;border-radius:50%;background:#e6eefc;color:#12306b;display:grid;place-items:center}
.sitebar b{display:block;font-size:14px;color:#12306b}.sitebar small{display:block;color:#5b6475;font-size:12.5px;line-height:1.35}
.sitebar div{flex:1;min-width:0}
.pt2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pt{display:flex;flex-direction:column;align-items:center;gap:4px;border:2px solid #e3e7ef;background:#fff;color:#5b6475;border-radius:20px;padding:16px 8px;font:inherit;cursor:pointer;margin:0;width:auto}
.pt svg{width:34px;height:34px}.pt b{font-size:15px}.pt small{font-size:12px;font-weight:600}
.pt.in:not([disabled]){background:#d9182b;border-color:#d9182b;color:#fff}
.pt.out:not([disabled]){background:#0b1f47;border-color:#0b1f47;color:#fff}
.pt.done{background:#e1f5e8!important;border-color:#bfe6cd!important;color:#127a3a!important}
.pt[disabled]:not(.done){opacity:.45}
.pt:active:not([disabled]){transform:scale(.97)}
.brk{display:flex;align-items:center;gap:12px;border-radius:16px;padding:10px 12px;margin-top:12px}
.brk.on{background:#fff4dc;color:#7a5200}.brk>i{flex:none;width:36px;height:36px;border-radius:50%;background:#ffe3a0;display:grid;place-items:center}
.brk div{flex:1;min-width:0}.brk b{display:block;font-size:14px}.brk small{font-size:12.5px}
.brk .btn{margin:0;flex:none;width:auto}
.brkb{margin-top:12px}
.pz{display:inline-flex;align-items:center;gap:6px;background:#fff4dc;color:#7a5200;border-radius:999px;padding:4px 11px;font-size:12.5px;font-weight:700;margin-top:8px}
.pz svg{width:15px;height:15px}.pz.sm{padding:2px 9px;font-size:11.5px;margin-top:5px}
.pz2{color:#7a5200!important}
.tbar{position:relative;height:8px;border-radius:4px;background:#eef1f7;margin-top:7px;overflow:hidden}
.tbar .w{position:absolute;inset:0;background:#c9d6f0;border-radius:4px}
.tbar .p{position:absolute;top:0;bottom:0;background:#e0a800;border-radius:4px}
.day .t b{font-size:14.5px;color:#1f2430}

/* v1.6 : relevé du mois, badge en grand */
.sheet.full{max-height:92vh;min-height:60vh}
.rts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.rt{background:#f4f6fa;border-radius:14px;padding:12px}.rt b{display:block;font-size:22px;color:#12306b}.rt small{color:#5b6475;font-size:12px;line-height:1.3;display:block}
.rt.g{background:#e1f5e8}.rt.g b{color:#127a3a}.rt.o{background:#fff4dc}.rt.o b{color:#7a5200}.rt.r{background:#fde8ea}.rt.r b{color:#b01223}
.rl{margin-top:14px}.rr{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #eef1f7}.rr:last-child{border:0}
.rr .d{width:40px;flex:none;font-weight:700;color:#12306b;font-size:13px}.rr .d small{display:block;color:#8a93a6;font-weight:500}
.rr .t{flex:1;min-width:0;font-size:13.5px}.rr .t small{display:block;color:#5b6475;font-size:12px}
.bst{display:flex;align-items:center;justify-content:space-between;margin:12px 0 0}.bst small{color:#5b6475}
.bigcard{position:fixed;inset:0;z-index:600;background:#fff;display:grid;place-items:center;overflow:hidden}
.bigcard .bg{transform-origin:center}.bigcard .x{position:absolute;right:14px;top:calc(14px + env(safe-area-inset-top));width:40px;height:40px;border:0;border-radius:50%;background:#eef1f7;color:#12306b;font-size:24px;z-index:2;margin:0;padding:0;cursor:pointer}
.hist .row{display:flex;padding:9px 0;border-bottom:1px solid #eef1f7}.hist .row:last-child{border:0}

/* 1.7 : scan, contrôle responsable, formation, documents */
.scanv{position:relative;aspect-ratio:1;max-height:56vh;margin:0 auto 12px;border-radius:20px;overflow:hidden;background:#0b1f47}
.scanv video{width:100%;height:100%;object-fit:cover;display:block}
.scanv i{position:absolute;width:34px;height:34px;border:4px solid #fff;border-radius:6px;opacity:.9}
.scanv i:nth-of-type(1){left:14px;top:14px;border-right:0;border-bottom:0}.scanv i:nth-of-type(2){right:14px;top:14px;border-left:0;border-bottom:0}
.scanv i:nth-of-type(3){left:14px;bottom:14px;border-right:0;border-top:0}.scanv i:nth-of-type(4){right:14px;bottom:14px;border-left:0;border-top:0}
.scok{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;padding:16px 10px;border-radius:16px;background:#e9f7ee;color:#0d6b33}
.scok svg{width:34px;height:34px}.scok b{font-size:17px}.scok span{font-size:13.5px}
.scn .sep{height:1px;background:#eef1f7;margin:16px 0}
.leadres{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.leadres .ph{width:128px;height:128px;border-radius:50%;overflow:hidden;background:#e6eefc;color:#12306b;display:grid;place-items:center;font-size:40px;font-weight:700;margin-bottom:6px}
.leadres .ph img{width:100%;height:100%;object-fit:cover}
.leadres h3{margin:0;font-size:20px;color:#12306b}.leadres small{color:#5b6475;margin-bottom:6px}
.leadres .btn{width:100%;margin-top:12px}
.script{background:#f5f7fb;border-radius:14px;padding:14px;line-height:1.55;font-size:15px;margin-bottom:12px;white-space:normal}
.tvid{width:100%;border-radius:14px;background:#000;margin-bottom:12px;max-height:50vh}
.btn.wide{width:100%;margin:0 0 12px;flex-direction:row;gap:8px}
.opts{display:grid;gap:8px}.opt{display:flex!important;align-items:center;gap:10px;padding:12px 14px;border:1.5px solid #dfe5f1;border-radius:14px;font-weight:600;margin:0!important;cursor:pointer}
.opt input{width:20px;height:20px;margin:0;flex:none;accent-color:#d9182b}.opt:has(input:checked){border-color:#12306b;background:#f0f5ff}
.sheet textarea{width:100%;border:1.5px solid #dfe5f1;border-radius:12px;padding:12px;font:inherit;font-size:16px;resize:vertical}
.rq i.doc{background:#efe7ff;color:#4b2a9a}

/* 1.8 : en-tête posé sous la barre d'état (plus de dégradé au-dessus), fond clair partout */
html{background:#f4f6fa}
.top{margin:calc(8px + env(safe-area-inset-top)) max(10px,env(safe-area-inset-left)) 0 max(10px,env(safe-area-inset-right));padding:14px 16px;border-radius:22px}

/* Pause : bouton flouté avant l'heure, chronomètre, dépassement */
.brkb.lock{filter:blur(2.4px) saturate(.55);opacity:.75;pointer-events:none}
.brkc{display:block;margin-top:7px;font-size:12.5px;line-height:1.35;color:#5b6475;text-align:center}.brkc:empty{display:none}
.brk .tm{font-variant-numeric:tabular-nums;font-weight:800;font-size:15px}
.brk.on.over{background:#fde8ea;color:#8f0f1b}.brk.on.over>i{background:#f9c9ce}

.pzb{display:block;margin-top:8px;border:1.5px solid #12306b;background:#fff;color:#12306b;font:700 13px Montserrat,sans-serif;border-radius:999px;padding:7px 14px;cursor:pointer}
[data-sh]{max-height:38vh;overflow:auto}
