/* MAGLOGIS — design system (tokens + composants)
   Thème clair par défaut, thème sombre via prefers-color-scheme ou [data-theme="dark"]. */
/* Layout: progiciel shell — dark navy sidebar (nav + user block at its foot), top bar, scrolling workspace, floating right drawers */
:root{
  --bg:#FFFFFF; --surface:#FFFFFF; --surface-2:#EEF2F8; --surface-3:#E5EAF3; --line:#DCE2EC; --line-2:#C9D2E1;
  --fg:#111C33; --muted:#5A6781; --faint:#8592AA;
  --brand:#0C468F; --brand-hover:#0A3B79; --brand-soft:#E4ECF8; --brand-ink:#FFFFFF;
  --accent:#FF5D12; --accent-soft:#FFEADF; --accent-ink:#B23A00;
  --ok:#14804A; --ok-soft:#DFF3E8; --warn:#9A6400; --warn-soft:#FBEFD2; --bad:#C0261A; --bad-soft:#FCE3E0; --info:#0C468F; --info-soft:#E4ECF8;
  --side:#0A1B3D; --side-2:#102552; --side-line:#1B3263; --side-fg:#C6D1E8; --side-faint:#7F90B5; --side-active:#183A7A;
  --shadow:0 1px 2px rgba(17,28,51,.06),0 4px 16px rgba(17,28,51,.06);
  --shadow-lg:0 12px 48px rgba(10,27,61,.22),0 2px 8px rgba(10,27,61,.10);
  --sans:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  --r:8px; --logo-bg:transparent;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0A1120; --surface:#111A2D; --surface-2:#16213A; --surface-3:#1C2946; --line:#243250; --line-2:#30406A;
  --fg:#E5EAF4; --muted:#9AA6C0; --faint:#6F7C99;
  --brand:#6F9DF0; --brand-hover:#87AEF4; --brand-soft:#18284A; --brand-ink:#0A1120;
  --accent:#FF7A3D; --accent-soft:#3A2214; --accent-ink:#FFB08A;
  --ok:#4CC28A; --ok-soft:#12301F; --warn:#E8B04A; --warn-soft:#33270F; --bad:#F2776B; --bad-soft:#3A1816; --info:#6F9DF0; --info-soft:#18284A;
  --side:#060D1B; --side-2:#0C1730; --side-line:#172648; --side-fg:#C6D1E8; --side-faint:#6F80A6; --side-active:#152C5C;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 4px 16px rgba(0,0,0,.25); --shadow-lg:0 12px 48px rgba(0,0,0,.5);
  --logo-bg:#FFFFFF; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0A1120; --surface:#111A2D; --surface-2:#16213A; --surface-3:#1C2946; --line:#243250; --line-2:#30406A;
  --fg:#E5EAF4; --muted:#9AA6C0; --faint:#6F7C99;
  --brand:#6F9DF0; --brand-hover:#87AEF4; --brand-soft:#18284A; --brand-ink:#0A1120;
  --accent:#FF7A3D; --accent-soft:#3A2214; --accent-ink:#FFB08A;
  --ok:#4CC28A; --ok-soft:#12301F; --warn:#E8B04A; --warn-soft:#33270F; --bad:#F2776B; --bad-soft:#3A1816; --info:#6F9DF0; --info-soft:#18284A;
  --side:#060D1B; --side-2:#0C1730; --side-line:#172648; --side-fg:#C6D1E8; --side-faint:#6F80A6; --side-active:#152C5C;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 4px 16px rgba(0,0,0,.25); --shadow-lg:0 12px 48px rgba(0,0,0,.5);
  --logo-bg:#FFFFFF; color-scheme:dark}

*{box-sizing:border-box}
[hidden]{display:none!important}
/* scrollbars — thin, rounded, themed */
:root{--sb-thumb:color-mix(in srgb,var(--fg) 22%,transparent);--sb-thumb-hover:color-mix(in srgb,var(--fg) 38%,transparent);--sb-track:transparent}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:var(--sb-track)}
::-webkit-scrollbar-thumb{background:var(--sb-thumb);border-radius:999px;border:3px solid transparent;background-clip:padding-box;min-height:40px}
::-webkit-scrollbar-thumb:hover{background:var(--sb-thumb-hover);background-clip:padding-box;border:2px solid transparent}
::-webkit-scrollbar-corner{background:transparent}
.side ::-webkit-scrollbar-thumb,.login-brand ::-webkit-scrollbar-thumb{background:rgba(160,185,235,.22);background-clip:padding-box}
.side ::-webkit-scrollbar-thumb:hover{background:rgba(160,185,235,.4);background-clip:padding-box}
.tbl-wrap::-webkit-scrollbar,.map::-webkit-scrollbar,.tabs::-webkit-scrollbar{height:8px}
@supports not selector(::-webkit-scrollbar){*{scrollbar-width:thin;scrollbar-color:var(--sb-thumb) transparent}.side *{scrollbar-color:rgba(160,185,235,.25) transparent}}
html,body{height:100%}
body{background:var(--bg);color:var(--fg);font-family:var(--sans);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
.mono{font-family:var(--mono);font-size:.9em;letter-spacing:-.01em}
.num{font-variant-numeric:tabular-nums}
.muted{color:var(--muted)} .faint{color:var(--faint)}
h1,h2,h3,h4{margin:0;line-height:1.2;text-wrap:balance}
svg.i{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
svg.i.sm{width:15px;height:15px}

/* ---------- Login ---------- */
.login{min-height:100%;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
.login.setup{grid-template-columns:minmax(260px,340px) minmax(0,1fr)}
@media (max-width:900px){.login,.login.setup{grid-template-columns:1fr}.login-brand{display:none}}
.login-brand{position:relative;overflow:hidden;background:var(--side);color:#fff;padding-block:40px;padding-left:max(48px,env(safe-area-inset-left,0px));padding-right:48px;display:flex;flex-direction:column;justify-content:space-between;gap:32px}
.login-brand canvas{position:absolute;inset:0;width:100%;height:100%;opacity:.9}
.login-brand>*{position:relative}
.lb-logo{display:flex;align-items:center;gap:12px}
.lb-logo .tile{width:46px;height:46px;border-radius:10px;background:#fff;display:grid;place-items:center}
.lb-logo .tile img{width:32px}
.lb-logo b{font-size:22px;letter-spacing:-.01em}.lb-logo b span{color:var(--accent)}
.lb-logo small{display:block;font-size:12px;color:#A9B8D8}
.lb-copy h1{font-size:clamp(28px,3.2vw,40px);font-weight:600;letter-spacing:-.02em;max-width:18ch}
.lb-copy h1 em{font-style:normal;color:#FF8A52}
.lb-copy p{color:#B5C3E0;max-width:46ch;margin:14px 0 0;font-size:15px}
.lb-points{display:grid;gap:12px;margin-top:28px}
.lb-points div{display:flex;gap:12px;align-items:flex-start;color:#D7E0F2;font-size:14px}
.lb-points svg{color:#FF8A52;margin-top:1px}
.lb-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:#8FA1C7}
.lb-countries{display:flex;gap:6px;flex-wrap:wrap}
.lb-countries span{border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:2px 9px;font-size:11.5px;color:#D7E0F2}
.login-form{display:flex;align-items:center;justify-content:center;padding-block:40px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.lf{width:min(420px,100%);display:flex;flex-direction:column;gap:18px}
.lf-top{display:flex;justify-content:space-between;align-items:center}
.lf-top img{height:48px;background:var(--logo-bg);border-radius:8px;padding:2px 6px}
.lf-top .r{display:flex;gap:8px;align-items:center}
.lf h2{font-size:24px;font-weight:600;letter-spacing:-.01em}
.lf .sub{color:var(--muted);margin-top:4px}
.field{display:flex;flex-direction:column;gap:6px}
.field>label,.lbl{font-size:12.5px;font-weight:500;color:var(--fg)}
.field .hint{font-size:12px;color:var(--muted)}
.input,.select,.textarea{width:100%;background:var(--surface);border:1px solid var(--line-2);border-radius:7px;padding:9px 12px;min-height:40px;transition:border-color .15s,box-shadow .15s}
.textarea{min-height:90px;resize:vertical}
.input:focus,.select:focus,.textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.input-wrap{position:relative}
.input-wrap .input{padding-left:38px}
.input-wrap>svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--faint)}
.input-wrap .eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:0;background:none;color:var(--muted);padding:6px;border-radius:6px}
.row-between{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.check{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);cursor:pointer}
.check input[type=checkbox],.cb{appearance:none;-webkit-appearance:none;margin:0;width:18px;height:18px;flex:none;border:1.5px solid var(--line-2);border-radius:5px;background:var(--surface) center/12px 12px no-repeat;cursor:pointer;transition:background-color .15s,border-color .15s,box-shadow .15s;display:inline-grid}
.check input[type=checkbox]:hover{border-color:var(--brand)}
.check input[type=checkbox]:checked{background-color:var(--brand);border-color:var(--brand);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
.check input[type=checkbox]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--brand-soft),0 0 0 1px var(--brand)}
.check input[type=checkbox]:disabled{opacity:.45;cursor:not-allowed}
.check:has(input:checked){color:var(--fg)}
.radio-cards input[type=radio]{appearance:none;-webkit-appearance:none;margin:2px 0 0;width:18px;height:18px;flex:none;border:1.5px solid var(--line-2);border-radius:50%;background:var(--surface);cursor:pointer;transition:border-color .15s,box-shadow .15s}
.radio-cards input[type=radio]:checked{border:5px solid var(--brand)}
.radio-cards input[type=radio]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--brand-soft)}
a.link,button.link{color:var(--brand);text-decoration:none;font-weight:500;background:none;border:0;padding:0;font-size:13px}
a.link:hover,button.link:hover{text-decoration:underline}
.divider{display:flex;align-items:center;gap:12px;color:var(--faint);font-size:12px;text-transform:uppercase;letter-spacing:.06em}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line)}
.demo-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media (max-width:420px){.demo-list{grid-template-columns:1fr}}
.demo{display:flex;gap:10px;align-items:center;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:8px 10px;transition:border-color .15s,background .15s}
.demo:hover{border-color:var(--brand);background:var(--brand-soft)}
.demo b{display:block;font-size:13px;font-weight:600}
.demo>div span{display:block;font-size:11.5px;color:var(--muted)}
.lf-legal{font-size:11.5px;color:var(--faint);text-align:center}
.pick{display:grid;gap:10px}
.pick button{display:flex;gap:12px;align-items:center;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:12px 14px}
.pick button:hover{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.pick b{display:block;font-weight:600}.pick div span{font-size:12.5px;color:var(--muted)}
.pick .chev{margin-left:auto;color:var(--faint)}
.org-ico{width:38px;height:38px;border-radius:8px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);flex:none}

/* ---------- Shell ---------- */
#root{height:100%}
.app{display:grid;grid-template-columns:256px minmax(0,1fr);height:100%;min-height:100%}
.side{height:100%;position:sticky;top:0}
.side{background:var(--side);color:var(--side-fg);display:flex;flex-direction:column;min-height:0;padding-left:env(safe-area-inset-left,0px)}
.side-head{display:flex;align-items:center;gap:10px;padding:16px 16px 12px}
.side-head .tile{width:34px;height:34px;border-radius:8px;background:#fff;display:grid;place-items:center;flex:none}
.side-head .tile img{width:24px}
.side-head b{color:#fff;font-size:17px;letter-spacing:-.01em}.side-head b span{color:var(--accent)}
.side-head small{display:block;color:var(--side-faint);font-size:11px}
.org-switch{margin:4px 12px 8px;display:flex;align-items:center;gap:10px;background:var(--side-2);border:1px solid var(--side-line);border-radius:8px;padding:8px 10px;color:var(--side-fg);text-align:left}
.org-switch:hover{border-color:#2A4580}
.org-switch b{display:block;color:#fff;font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.org-switch span{display:block;font-size:11px;color:var(--side-faint)}
.org-switch>div{min-width:0;flex:1}
.nav{flex:1;overflow-y:auto;padding:4px 10px 10px;display:flex;flex-direction:column;gap:1px}
.nav-h{font-size:10.5px;text-transform:uppercase;letter-spacing:.09em;color:var(--side-faint);padding:14px 10px 6px}
.nav button{display:flex;align-items:center;gap:11px;width:100%;border:0;background:none;color:var(--side-fg);padding:8px 10px;border-radius:7px;text-align:left;font-size:13.5px;position:relative}
.nav button:hover{background:var(--side-2);color:#fff}
.nav button.on{background:var(--side-active);color:#fff;font-weight:500}
.nav button.on::before{content:"";position:absolute;left:-10px;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:var(--accent)}
.nav .badge{margin-left:auto;background:var(--accent);color:#fff;font-size:11px;font-weight:600;border-radius:999px;padding:0 7px;line-height:18px}
.nav .ro{margin-left:auto;font-size:10px;color:var(--side-faint);border:1px solid var(--side-line);border-radius:4px;padding:0 5px}
.side-foot{border-top:1px solid var(--side-line);padding:10px;position:relative}
.user-btn{display:flex;align-items:center;gap:10px;width:100%;background:none;border:0;border-radius:8px;padding:8px;color:var(--side-fg);text-align:left}
.user-btn:hover,.user-btn[aria-expanded="true"]{background:var(--side-2)}
.user-btn>div{min-width:0;flex:1}
.user-btn b{display:block;color:#fff;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-btn>div span{display:block;font-size:11.5px;color:var(--side-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.avatar{border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:600;flex:none;overflow:hidden;position:relative}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatar .dot{position:absolute;right:0;bottom:0;width:30%;height:30%;border-radius:50%;background:var(--ok);border:2px solid var(--side)}

.main{display:flex;flex-direction:column;min-width:0;min-height:0}
.top{height:60px;flex:none;display:flex;align-items:center;gap:12px;background:var(--surface);border-bottom:1px solid var(--line);padding-left:20px;padding-right:max(20px,env(safe-area-inset-right,0px))}
.burger{display:none;border:0;background:none;padding:6px;border-radius:6px}
.crumbs{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);min-width:0;white-space:nowrap;overflow:hidden}
.crumbs b{color:var(--fg);font-weight:600;overflow:hidden;text-overflow:ellipsis}
.search{margin-left:auto;position:relative;width:min(320px,32vw)}
.search .input{min-height:36px;padding-left:36px;background:var(--surface-2);border-color:transparent}
.search>svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:var(--faint)}
.search kbd{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-family:var(--mono);font-size:10.5px;color:var(--faint);border:1px solid var(--line-2);border-radius:4px;padding:0 5px;background:var(--surface)}
.tbtn{border:1px solid var(--line);background:var(--surface);border-radius:8px;height:36px;min-width:36px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 10px;color:var(--fg);position:relative;font-size:13px;white-space:nowrap}
.tbtn:hover{border-color:var(--line-2);background:var(--surface-2)}
.tbtn .cnt{position:absolute;top:-5px;right:-5px;background:var(--accent);color:#fff;font-size:10.5px;font-weight:700;border-radius:999px;min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px;border:2px solid var(--surface)}
.flag{width:20px;height:14px;border-radius:2px;flex:none;overflow:hidden;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.post-chip{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;border-radius:999px;padding:5px 11px;background:var(--ok-soft);color:var(--ok);font-weight:500;white-space:nowrap}
.post-chip i{width:7px;height:7px;border-radius:50%;background:currentColor}
.content{flex:1;overflow-y:auto;min-height:0}
.page{max-width:1400px;margin:0 auto;padding-block:24px 40px;padding-left:24px;padding-right:max(24px,env(safe-area-inset-right,0px));display:flex;flex-direction:column;gap:20px}
.ph{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ph h1{font-size:22px;font-weight:600;letter-spacing:-.015em}
.ph p{margin:4px 0 0;color:var(--muted)}
.ph .acts{display:flex;gap:8px;flex-wrap:wrap}
.cbanner{display:flex;gap:10px;align-items:flex-start;background:var(--warn-soft);color:var(--warn);border-radius:8px;padding:10px 14px;font-size:13px}
.cbanner b{color:var(--fg)}

@media (max-width:900px){
  .app{grid-template-columns:minmax(0,1fr)}
  .side{position:fixed;inset:0 auto 0 0;width:min(284px,86vw);z-index:60;transform:translateX(-102%);transition:transform .22s ease;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
  .side.open{transform:none;box-shadow:var(--shadow-lg)}
  .burger{display:inline-flex}
  .search{display:none}
  .top{padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px));gap:8px}
  .top .hide-sm{display:none}
  .page{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:16px 32px}
}
.scrim{position:fixed;inset:0;background:rgba(6,13,27,.45);z-index:55;opacity:0;pointer-events:none;transition:opacity .2s}
.scrim.on{opacity:1;pointer-events:auto}

/* ---------- Components ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line-2);background:var(--surface);color:var(--fg);border-radius:7px;padding:0 14px;height:38px;font-weight:500;font-size:13.5px;white-space:nowrap;transition:background .15s,border-color .15s}
.btn:hover{background:var(--surface-2)}
.btn.primary{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.btn.primary:hover{background:var(--brand-hover)}
.btn.accent{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.danger{color:var(--bad);border-color:var(--bad-soft);background:var(--surface)}
.btn.danger:hover{background:var(--bad-soft)}
.btn.ghost{border-color:transparent;background:none}
.btn.ghost:hover{background:var(--surface-2)}
.btn.sm{height:30px;padding:0 10px;font-size:12.5px}
.btn.block{width:100%;height:42px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.card{background:var(--surface);border:1px solid var(--line);border-radius:10px}
.card-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}
.card-h h3{font-size:14.5px;font-weight:600}
.card-h .sub{font-size:12.5px;color:var(--muted)}
.card-b{padding:16px}
.grid{display:grid;gap:16px}
.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-main{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
@media (max-width:1180px){.g4{grid-template-columns:repeat(2,minmax(0,1fr))}.g-main{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){.g3,.g2{grid-template-columns:minmax(0,1fr)}}
@media (max-width:480px){.g4{grid-template-columns:minmax(0,1fr)}}
.kpi{padding:16px;display:flex;flex-direction:column;gap:6px}
.kpi .k-l{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}
.kpi .k-l svg{color:var(--faint)}
.kpi .k-v{font-size:26px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.kpi .k-d{font-size:12px;color:var(--muted)}
.kpi .k-d b{font-weight:600}.up{color:var(--ok)}.down{color:var(--bad)}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;padding:2px 9px;border-radius:999px;background:var(--surface-3);color:var(--muted);white-space:nowrap;line-height:20px}
.chip i{width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.chip.ok{background:var(--ok-soft);color:var(--ok)} .chip.warn{background:var(--warn-soft);color:var(--warn)} .chip.bad{background:var(--bad-soft);color:var(--bad)} .chip.info{background:var(--info-soft);color:var(--info)} .chip.acc{background:var(--accent-soft);color:var(--accent-ink)}
.tag{display:inline-flex;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;padding:1px 7px;border-radius:4px;border:1px solid var(--line-2);color:var(--muted)}
.tag.exp{color:var(--brand);border-color:color-mix(in srgb,var(--brand) 35%,transparent)}
.tag.imp{color:var(--ok);border-color:color-mix(in srgb,var(--ok) 35%,transparent)}
.tag.trn{color:var(--accent-ink);border-color:color-mix(in srgb,var(--accent) 40%,transparent)}
.tbl-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:13.5px}
th{text-align:left;font-weight:500;font-size:12px;color:var(--muted);background:var(--surface-2);padding:9px 14px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:11px 14px;border-bottom:1px solid var(--line);vertical-align:middle;white-space:nowrap}
tbody tr:last-child td{border-bottom:0}
tbody tr.click{cursor:pointer}
tbody tr.click:hover td{background:var(--surface-2)}
td.r,th.r{text-align:right}
td .sub{display:block;font-size:12px;color:var(--muted)}
.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}
.toolbar .input,.toolbar .select{min-height:34px;width:auto;padding:6px 10px}
.toolbar .input-wrap .input{padding-left:34px}
.seg{display:inline-flex;background:var(--surface-2);border-radius:8px;padding:3px;gap:2px}
.seg button{border:0;background:none;border-radius:6px;padding:5px 11px;font-size:12.5px;color:var(--muted);font-weight:500}
.seg button.on{background:var(--surface);color:var(--fg);box-shadow:var(--shadow)}
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);overflow-x:auto}
.tabs button{border:0;background:none;padding:10px 14px;font-weight:500;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;display:inline-flex;gap:8px;align-items:center}
.tabs button.on{color:var(--brand);border-bottom-color:var(--brand)}
.tabs .n{font-size:11px;background:var(--surface-3);border-radius:999px;padding:0 7px;color:var(--muted)}
.pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 16px;border-top:1px solid var(--line);font-size:12.5px;color:var(--muted)}
.pager .pg{display:flex;gap:4px;align-items:center}
.pager .pg button{min-width:32px;height:32px;border:1px solid var(--line);background:var(--surface);border-radius:7px;color:var(--fg);font-size:12.5px;display:inline-flex;align-items:center;justify-content:center;padding:0 8px}
.pager .pg button.on{background:var(--brand);border-color:var(--brand);color:var(--brand-ink);font-weight:600}
.pager .pg button:disabled{opacity:.4;cursor:not-allowed}
.pager select{min-height:30px;padding:3px 6px;border-radius:6px;border:1px solid var(--line-2);background:var(--surface);font-size:12.5px}
.empty{text-align:center;padding:40px 20px;color:var(--muted)}
.empty .ic{width:44px;height:44px;border-radius:12px;background:var(--surface-2);display:grid;place-items:center;margin:0 auto 12px;color:var(--faint)}
.empty b{display:block;color:var(--fg);font-size:15px;margin-bottom:4px}
.kv{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:8px 16px;font-size:13.5px}
.kv dt{color:var(--muted)} .kv dd{margin:0;text-align:right;min-width:0;overflow-wrap:anywhere}
.list{display:flex;flex-direction:column}
.li{display:flex;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}
.li:last-child{border-bottom:0}
.li>.grow{flex:1;min-width:0}
.li b{font-weight:600;font-size:13.5px}
.li .sub{display:block;font-size:12.5px;color:var(--muted)}
.li.click{cursor:pointer}.li.click:hover{background:var(--surface-2)}
.ico-b{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;flex:none;background:var(--surface-2);color:var(--muted)}
.ico-b.acc{background:var(--accent-soft);color:var(--accent-ink)} .ico-b.ok{background:var(--ok-soft);color:var(--ok)} .ico-b.info{background:var(--brand-soft);color:var(--brand)} .ico-b.bad{background:var(--bad-soft);color:var(--bad)}
.next{display:flex;gap:12px;align-items:flex-start;background:var(--brand-soft);border-radius:10px;padding:14px 16px}
.next .ico-b{background:var(--brand);color:var(--brand-ink)}
.next b{display:block;font-size:14px}
.next p{margin:2px 0 0;font-size:13px;color:var(--muted)}
.next .acts{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
.ro-note{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);background:var(--surface-2);border-radius:999px;padding:4px 11px}

/* stepper */
.phases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width:760px){.phases{grid-template-columns:minmax(0,1fr)}}
.phase{border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:var(--surface)}
.phase.cur{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.phase-h{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.phase-h b{font-size:13px;font-weight:600}
.phase-h span{font-size:12px;color:var(--muted)}
.ticks{display:flex;gap:4px;margin-bottom:10px}
.ticks i{flex:1;height:5px;border-radius:3px;background:var(--surface-3)}
.ticks i.d{background:var(--ok)} .ticks i.c{background:var(--accent)}
.phase .cur-step{font-size:12.5px;color:var(--fg);display:flex;gap:6px;align-items:center}
.steps{display:flex;flex-direction:column;gap:2px;margin-top:4px}
.steps div{display:flex;gap:8px;align-items:center;font-size:12.5px;color:var(--muted);padding:3px 0}
.steps div .n{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:10.5px;font-weight:600;background:var(--surface-3);color:var(--muted);flex:none}
.steps div.d .n{background:var(--ok);color:#fff}
.steps div.c{color:var(--fg);font-weight:600}
.steps div.c .n{background:var(--accent);color:#fff}
.steps div.dec .n{border-radius:4px;transform:rotate(45deg)}
.steps div.dec .n span{transform:rotate(-45deg)}

/* timeline */
.tl{list-style:none;margin:0;padding:0}
.tl li{display:grid;grid-template-columns:20px minmax(0,1fr);gap:12px;padding-bottom:16px;position:relative}
.tl li::before{content:"";position:absolute;left:9px;top:20px;bottom:0;width:2px;background:var(--line)}
.tl li:last-child::before{display:none}
.tl .dot{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:var(--surface-3);color:var(--muted)}
.tl .dot svg{width:11px;height:11px;stroke-width:2.5}
.tl .dot.ok{background:var(--ok-soft);color:var(--ok)} .tl .dot.bad{background:var(--bad-soft);color:var(--bad)} .tl .dot.acc{background:var(--accent-soft);color:var(--accent-ink)} .tl .dot.info{background:var(--brand-soft);color:var(--brand)}
.tl b{font-weight:600;font-size:13.5px}
.tl p{margin:2px 0 0;font-size:13px;color:var(--muted)}
.tl time{font-family:var(--mono);font-size:11.5px;color:var(--faint)}

/* drawer — floating, detached from top, bottom and right edges */
.drawer-scrim{position:fixed;inset:0;background:rgba(6,13,27,.38);z-index:80;opacity:0;transition:opacity .2s}
.drawer-scrim.on{opacity:1}
.drawer{position:fixed;z-index:81;top:calc(14px + env(safe-area-inset-top,0px));bottom:calc(14px + env(safe-area-inset-bottom,0px));right:calc(14px + env(safe-area-inset-right,0px));width:min(520px,calc(100vw - 28px));background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg);display:flex;flex-direction:column;transform:translateX(calc(100% + 28px));transition:transform .26s cubic-bezier(.2,.8,.2,1)}
.drawer.on{transform:none}
.drawer.wide{width:min(680px,calc(100vw - 28px))}
.dw-h{display:flex;gap:12px;align-items:flex-start;padding:18px 20px 14px;border-bottom:1px solid var(--line)}
.dw-h h3{font-size:16.5px;font-weight:600}
.dw-h p{margin:3px 0 0;font-size:13px;color:var(--muted)}
.dw-h .x{margin-left:auto;border:0;background:none;border-radius:8px;padding:6px;color:var(--muted)}
.dw-h .x:hover{background:var(--surface-2);color:var(--fg)}
.dw-b{flex:1;overflow-y:auto;padding:18px 20px;display:flex;flex-direction:column;gap:16px}
.dw-f{display:flex;gap:8px;justify-content:flex-end;padding:14px 20px;border-top:1px solid var(--line);background:var(--surface-2);border-radius:0 0 14px 14px;flex-wrap:wrap}
.fgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:520px){.fgrid{grid-template-columns:1fr}}
.fgrid .full{grid-column:1/-1}
.radio-cards{display:grid;gap:8px}
.radio-cards label{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line-2);border-radius:8px;padding:10px 12px;cursor:pointer}
.radio-cards label:has(input:checked){border-color:var(--brand);background:var(--brand-soft)}

.radio-cards b{display:block;font-size:13.5px}.radio-cards span{font-size:12.5px;color:var(--muted)}
.sw{position:relative;display:inline-flex;align-items:center;gap:10px;cursor:pointer;font-size:13.5px}
.sw input{position:absolute;opacity:0;width:1px;height:1px}
.sw .t{width:36px;height:20px;border-radius:999px;background:var(--line-2);position:relative;transition:background .15s;flex:none}
.sw .t::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.sw input:checked+.t{background:var(--brand)}
.sw input:checked+.t::after{transform:translateX(16px)}
.sw input:focus-visible+.t{outline:2px solid var(--accent);outline-offset:2px}
.drop{border:1.5px dashed var(--line-2);border-radius:10px;padding:22px;text-align:center;color:var(--muted);background:var(--surface-2)}
.drop b{color:var(--fg)}
.alert{display:flex;gap:10px;border-radius:8px;padding:10px 12px;font-size:13px}
.alert.info{background:var(--info-soft);color:var(--fg)} .alert.info svg{color:var(--brand)}
.alert.warn{background:var(--warn-soft);color:var(--fg)} .alert.warn svg{color:var(--warn)}
.alert.bad{background:var(--bad-soft);color:var(--fg)} .alert.bad svg{color:var(--bad)}

/* popover menus */
.pop{position:fixed;z-index:90;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);min-width:240px;padding:6px;color:var(--fg)}
.pop-h{padding:10px 10px 8px;border-bottom:1px solid var(--line);margin-bottom:4px;display:flex;gap:10px;align-items:center}
.pop-h b{display:block;font-size:13.5px}.pop-h span{display:block;font-size:12px;color:var(--muted)}
.pop button.mi{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;padding:8px 10px;border-radius:7px;text-align:left;font-size:13.5px;color:var(--fg)}
.pop button.mi:hover{background:var(--surface-2)}
.pop button.mi svg{color:var(--muted)}
.pop button.mi.danger{color:var(--bad)} .pop button.mi.danger svg{color:var(--bad)}
.pop button.mi .kb{margin-left:auto;font-size:11.5px;color:var(--faint)}
.pop hr{border:0;border-top:1px solid var(--line);margin:4px 0}
.notif{width:min(380px,calc(100vw - 24px));padding:0}
.notif .nh{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line)}
.notif .nh b{font-size:14px}
.notif .li{padding:11px 14px}

/* toast */
.toasts{position:fixed;z-index:100;bottom:calc(18px + env(safe-area-inset-bottom,0px));right:calc(18px + env(safe-area-inset-right,0px));display:flex;flex-direction:column;gap:8px;align-items:flex-end;pointer-events:none;width:min(400px,calc(100vw - 36px))}
.toast{display:flex;gap:10px;align-items:center;border:1px solid var(--side-line);background:var(--side);color:#fff;border-radius:10px;padding:11px 14px;box-shadow:var(--shadow-lg);font-size:13.5px;pointer-events:auto;animation:tin .22s ease;width:100%}
.toast svg{color:#5BD49A}.toast.warn svg{color:#FFB38C}
@keyframes tin{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}

/* supervision */
.posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.post{border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:14px;display:flex;flex-direction:column;gap:8px;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.post:hover{border-color:var(--line-2);box-shadow:var(--shadow)}
.post .ph2{display:flex;justify-content:space-between;align-items:center;gap:8px}
.post b{font-size:14px;font-weight:600}
.post .meta{font-size:12.5px;color:var(--muted)}
.post .row{display:flex;gap:12px;font-size:12.5px;color:var(--muted);border-top:1px solid var(--line);padding-top:8px}
.post .row b{font-size:12.5px;color:var(--fg)}
.st{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600}
.st i{width:8px;height:8px;border-radius:50%}
.st.online{color:var(--ok)}.st.online i{background:var(--ok);box-shadow:0 0 0 3px var(--ok-soft)}
.st.idle{color:var(--warn)}.st.idle i{background:var(--warn)}
.st.offline{color:var(--bad)}.st.offline i{background:var(--bad)}
.st.disabled{color:var(--faint)}.st.disabled i{background:var(--faint)}
.post.disabled{opacity:.6}
.acl td{padding:8px 10px}
.acl select{min-height:30px;padding:4px 8px;font-size:12.5px;border-radius:6px;border:1px solid var(--line-2);background:var(--surface)}
.lv-0{color:var(--faint)} .lv-1{color:var(--brand)} .lv-2{color:var(--accent-ink)} .lv-3{color:var(--ok)}

/* corridor */
.map{overflow-x:auto;background:var(--surface-2);border-radius:10px}
.map svg{display:block;min-width:720px;width:100%;height:auto}
.bars{display:flex;flex-direction:column;gap:12px}
.bar-row{display:grid;grid-template-columns:minmax(0,180px) minmax(0,1fr) 54px;gap:12px;align-items:center;font-size:13px}
.bar-row .track{height:10px;border-radius:5px;background:var(--surface-3);overflow:hidden}
.bar-row .track i{display:block;height:100%;border-radius:5px;background:var(--brand)}
.bar-row .track i.acc{background:var(--accent)}
.bar-row .v{text-align:right;font-variant-numeric:tabular-nums;font-weight:500}
.offers{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.offer{border:1px solid var(--line);border-radius:10px;padding:14px;background:var(--surface);display:flex;flex-direction:column;gap:8px}
.offer h4{font-size:14.5px;font-weight:600}
.profile-head{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
@media (max-width:600px){#guide span{display:none}#guide{padding:0 14px}}
.toasts{bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
#guide{position:fixed;z-index:70;display:flex;align-items:center;gap:8px;border-radius:999px;background:var(--accent);color:#fff;padding:0 16px;height:44px;font-weight:600;font-size:13.5px;border:0;box-shadow:var(--shadow-lg)}
/* ---------- demo strip ---------- */
.demo-strip{display:flex;gap:8px;align-items:center;justify-content:center;text-align:center;font-size:12px;color:var(--warn);background:var(--warn-soft);border-radius:8px;padding:6px 12px}
.page>.demo-strip{margin-bottom:-6px}
.pub .demo-strip{border-radius:0;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.h4{font-size:13px;font-weight:600;margin:0 0 8px}
.sel-row td{background:var(--brand-soft)!important}
.chip-check{border:1px solid var(--line-2);border-radius:999px;padding:4px 11px;color:var(--fg)}
.circuit{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.qr{display:block;flex:none;border-radius:6px;box-shadow:0 0 0 1px var(--line)}
.d-src{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.d-src li{display:flex;gap:10px;align-items:flex-start;font-size:13.5px}
/* ---------- public site ---------- */
.pub{min-height:100%;background:var(--bg);display:flex;flex-direction:column}
.pub main{flex:1}
.pub-in{max-width:1200px;margin:0 auto;padding-left:max(24px,env(safe-area-inset-left,0px));padding-right:max(24px,env(safe-area-inset-right,0px))}
@media (max-width:600px){.pub-in{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}}
.pub-top{position:sticky;top:env(safe-area-inset-top,0px);z-index:40;background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.pub-bar{display:flex;align-items:center;gap:16px;height:68px}
.pub-logo{border:0;background:var(--logo-bg);border-radius:8px;padding:2px 6px;display:flex}
.pub-logo img{height:40px}
.pub-nav{display:flex;gap:2px;margin-left:12px}
.pub-nav button{border:0;background:none;color:var(--muted);font-weight:500;padding:8px 12px;border-radius:7px;font-size:14px}
.pub-nav button:hover{color:var(--fg);background:var(--surface-2)}
.pub-acts{margin-left:auto;display:flex;gap:8px;align-items:center}
@media (max-width:1000px){.pub-nav{display:none}}
@media (max-width:600px){.pub-acts .seg,.pub-acts .lang,.pub-acts #thp{display:none}.pub-acts .btn{padding:0 10px;font-size:13px;height:34px}.pub-bar{gap:8px}.pub-logo img{height:32px}}
.pub-hero{position:relative;overflow:hidden;background:var(--side);color:#fff}
.pub-hero canvas{position:absolute;inset:0;width:100%;height:100%}
.pub-hero-in{position:relative;padding-block:72px 64px;display:flex;flex-direction:column;gap:18px;align-items:flex-start}
.eyebrow{font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#FF9A6A}
.pub-hero h1{font-size:clamp(32px,4.6vw,56px);font-weight:600;letter-spacing:-.025em;line-height:1.05;max-width:16ch;margin:0}
.pub-hero p{margin:0;max-width:60ch;color:#C3CFE8;font-size:16.5px;line-height:1.55}
.hs{width:min(760px,100%);background:#fff;border-radius:14px;padding:10px;box-shadow:0 20px 60px rgba(0,0,0,.35);display:flex;flex-direction:column;gap:8px;color:#111C33;margin-top:8px}
.hs .seg{background:#EEF2F8;align-self:flex-start}.hs .seg button{color:#5A6781}.hs .seg button.on{background:#fff;color:#111C33}
.hs-row{display:flex;gap:8px}.hs .input{background:#fff;border-color:#DCE2EC;color:#111C33;min-height:46px}.hs .btn{height:46px;padding:0 22px}
@media (max-width:600px){.hs-row{flex-direction:column}}
.hero-ctas{display:flex;gap:10px;flex-wrap:wrap}
.hero-ctas .btn{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.22);color:#fff}
.hero-ctas .btn:hover{background:rgba(255,255,255,.16)}
.pub-sec{padding-block:56px}
.pub-sec.alt{background:var(--surface-2)}
:root:not([data-theme="dark"]) .pub-sec.alt{background:#F7F9FC}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .pub-sec.alt{background:var(--surface)}}
:root[data-theme="dark"] .pub-sec.alt{background:var(--surface)}
.pub-h{margin-bottom:22px}.pub-h h2{font-size:clamp(22px,2.6vw,30px);font-weight:600;letter-spacing:-.015em}.pub-h p{margin:6px 0 0;color:var(--muted);max-width:62ch}
.pub-sec .ph h1{font-size:clamp(24px,3vw,34px)}
.journey{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;counter-reset:j}
@media (max-width:1000px){.journey{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:520px){.journey{grid-template-columns:repeat(2,minmax(0,1fr))}}
.journey li{border:1px solid var(--line);border-radius:10px;padding:12px;font-size:13px;font-weight:500;background:var(--surface);display:flex;flex-direction:column;gap:6px}
.journey li span{font-family:var(--mono);font-size:11.5px;color:var(--accent-ink);font-weight:600}
.svc{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
@media (max-width:1000px){.svc{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.svc{grid-template-columns:minmax(0,1fr)}}
.svc-c{border:1px solid var(--line);border-radius:12px;padding:18px;background:var(--surface);display:flex;flex-direction:column;gap:8px}
.svc-c b{font-size:15px}.svc-c p{margin:0;color:var(--muted);font-size:13.5px;line-height:1.5}
.mk{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.mk-c{border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--surface);display:flex;flex-direction:column;gap:6px;text-align:left;transition:border-color .15s,box-shadow .15s}
.mk-c:hover{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.mk-c b{font-size:15px}
.pub-2{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:32px}
@media (max-width:900px){.pub-2{grid-template-columns:minmax(0,1fr)}}
.pub-foot{background:var(--side);color:#C6D1E8;padding-block:28px}
.pub-foot .pub-in{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;align-items:center}
.sg-steps{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}
.sg-steps span{display:inline-flex;gap:8px;align-items:center;font-size:13px;color:var(--muted);padding:6px 12px;border-radius:999px;border:1px solid var(--line)}
.sg-steps span i{font-style:normal;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;background:var(--surface-3)}
.sg-steps span.c{color:var(--fg);border-color:var(--brand);font-weight:600}.sg-steps span.c i{background:var(--accent);color:#fff}
.sg-steps span.d i{background:var(--ok);color:#fff}
/* ===== Site public v2 — blanc pur, typographie Archivo, diaporama plein écran ===== */
.pub{--pub-font:"Archivo","IBM Plex Sans",system-ui,sans-serif;font-family:var(--pub-font);background:var(--bg)}
.pub h1,.pub h2,.pub h3{font-family:var(--pub-font)}
.pub-top{background:var(--surface);backdrop-filter:none;border-bottom:1px solid var(--line)}
.pub-bar{height:72px}
.pub-nav button{font-size:15px;color:var(--fg);font-weight:500}
.pub-bar .pub-nav{margin-left:auto}.pub-bar .pub-acts{margin-left:20px;padding-left:20px;border-left:1px solid var(--line)}
@media (max-width:1000px){.pub-bar .pub-acts{margin-left:auto;padding-left:0;border-left:0}}
.pub-nav button:hover{background:none;color:var(--brand)}
.lang{display:inline-flex;border:1px solid var(--line-2);border-radius:6px;overflow:hidden}
.lang button{border:0;background:var(--surface);padding:6px 10px;font-size:12.5px;font-weight:600;color:var(--muted)}
.lang button.on{background:var(--fg);color:var(--surface)}
.btn.lg{height:48px;padding:0 22px;font-size:15px;border-radius:6px}
.pub .btn{border-radius:6px;font-family:var(--pub-font)}
.pub .demo-strip{background:var(--surface);color:var(--muted);border-bottom:1px solid var(--line);font-size:12px;padding-block:6px}
.pub .demo-strip svg{color:var(--accent)}
/* slider */
.sl{position:relative;height:clamp(600px,calc(100vh - 72px),900px);overflow:hidden;background:#06142E;color:#fff;isolation:isolate}
.sl-s{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .9s ease,visibility 0s .9s}
.sl-s.on{opacity:1;visibility:visible;transition:opacity .9s ease}
.sl-bg{position:absolute;inset:0;width:100%;height:100%;display:block}
.sl-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sl-s.on .sl-bg,.sl-s.on .sl-img{animation:kb 9s ease-out both}
@keyframes kb{from{transform:scale(1.06)}to{transform:scale(1)}}
.sl-s::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,14,34,.86) 0%,rgba(4,14,34,.62) 38%,rgba(4,14,34,.12) 72%,rgba(4,14,34,0) 100%),linear-gradient(0deg,rgba(4,14,34,.55) 0%,rgba(4,14,34,0) 40%);z-index:1}
.sl-c{position:absolute;z-index:2;left:0;right:0;top:32px;bottom:150px;display:flex;align-items:center}
.sl-c>.pub-in{width:100%}
.sl-c .pub-in{display:flex;flex-direction:column;align-items:flex-start;gap:clamp(12px,2.2vh,22px)}
.sl-k{font-size:15px;font-weight:500;color:#FFB28D;display:flex;gap:10px;align-items:center}
.sl-k::before{content:"";width:28px;height:2px;background:var(--accent)}
.sl-h{font-size:clamp(36px,min(4.8vw,7.6vh),72px);font-weight:700;font-stretch:104%;letter-spacing:-.022em;line-height:1.04;max-width:17ch;margin:0;text-wrap:balance}
.sl-p{font-size:clamp(16px,1.35vw,19px);line-height:1.55;max-width:52ch;color:#D5DEEF;margin:0}
.sl .btn:not(.accent){background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.35);color:#fff}
.sl .btn:not(.accent):hover{background:rgba(255,255,255,.2)}
.sl-nav{position:absolute;z-index:3;left:0;right:0;bottom:84px}
.sl-nav .pub-in{display:flex;align-items:center;gap:24px}
.sl-dots{display:flex;gap:10px;flex:1;max-width:520px}
.sl-dot{flex:1;border:0;background:none;padding:10px 0;cursor:pointer;text-align:left;color:#9FB0D0;font-size:13px;font-family:var(--pub-font)}
.sl-dot i{display:block;height:2px;background:rgba(255,255,255,.25);margin-bottom:10px;overflow:hidden}
.sl-dot i b{display:block;height:100%;width:0;background:#fff}
.sl-dot.on{color:#fff}.sl-dot.on i b{animation:prog var(--dur,7s) linear forwards}
.sl-dot.done i b{width:100%}
.sl.paused .sl-dot.on i b{animation-play-state:paused}
@keyframes prog{to{width:100%}}
.sl-arr{display:flex;gap:8px;margin-left:auto}
.sl-arr button{width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(4,14,34,.3);color:#fff;display:grid;place-items:center}
.sl-arr button:hover{background:rgba(255,255,255,.15)}
.sl-credit{position:absolute;z-index:3;right:max(24px,env(safe-area-inset-right,0px));top:16px;font-size:11.5px;color:rgba(255,255,255,.55)}
@media (max-width:700px){.sl{height:auto;min-height:640px}.sl-dot span{display:none}.sl-c{bottom:130px;top:24px}.sl-nav{bottom:62px}.sl-arr button{width:40px;height:40px}.sl-s::after{background:linear-gradient(0deg,rgba(4,14,34,.92) 0%,rgba(4,14,34,.55) 55%,rgba(4,14,34,.25) 100%)}}
@media (prefers-reduced-motion:reduce){.sl-s.on .sl-bg,.sl-s.on .sl-img{animation:none}.sl-dot.on i b{animation:none;width:100%}}
/* checker band */
.ckb{position:relative;z-index:4;margin-top:-64px}
.ckb .pub-in{display:grid;grid-template-columns:minmax(0,1fr)}
.ck{background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 30px 80px rgba(6,20,46,.16),0 2px 6px rgba(6,20,46,.06);overflow:hidden}
.ck-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:28px 32px 20px}
.ck-t{font-size:24px;font-weight:700;font-stretch:108%;letter-spacing:-.015em;margin:0}
.ck-sub{margin:6px 0 0;font-size:15px;color:var(--muted)}
.ck-demo{display:inline-flex;gap:6px;align-items:center;font-size:12.5px;color:var(--muted);white-space:nowrap}.ck-demo svg{color:var(--accent)}
.ck-bar{display:flex;align-items:stretch;margin:0 32px;border:1px solid var(--line-2);border-radius:10px;background:var(--surface)}
.ck-seg{position:relative;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:12px 18px;min-height:76px;border-right:1px solid var(--line);cursor:pointer;transition:background .15s}
.ck-seg:last-child{border-right:0}.ck-seg:hover{background:var(--surface-2)}.ck-seg:focus-within{background:var(--brand-soft);box-shadow:inset 0 -2px 0 var(--brand)}
.ck-fixed{cursor:default;min-width:170px}.ck-fixed:hover{background:none}
.ck-grow{flex:1;min-width:0}
.ck-arrow+.ck-seg{padding-left:32px}
.ck-lbl{font-size:12px;font-weight:600;color:var(--muted)}
.ck-val{display:flex;gap:8px;align-items:center;font-size:17px}.ck-val b{font-weight:600}
.ck-sel{appearance:none;-webkit-appearance:none;border:0;background:none;padding:0 26px 0 0;margin:0;font-family:var(--pub-font);font-size:17px;font-weight:600;color:var(--fg);width:100%;cursor:pointer;outline:none;text-overflow:ellipsis}
.ck-sel option{font-weight:400;color:#111C33;background:#fff}
.ck-hint{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.ck-seg>svg{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.ck-arrow{display:grid;place-items:center;width:0;position:relative;z-index:1}
.ck-arrow svg{position:absolute;width:30px;height:30px;padding:6px;border-radius:50%;background:var(--surface);border:1px solid var(--line-2);color:var(--brand)}
.ck-sum{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:24px 32px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ck-k{padding:16px 16px 16px 0;display:flex;flex-direction:column;gap:2px}.ck-k+.ck-k{padding-left:20px;border-left:1px solid var(--line)}
.ck-k b{font-size:24px;font-weight:700;font-stretch:108%;font-variant-numeric:tabular-nums;line-height:1.1}.ck-k span{font-size:13px;color:var(--muted)}
.ck-k.warn b{color:var(--warn)}.ck-k.ok b{color:var(--ok)}
.ck-alert{display:flex;gap:10px;align-items:flex-start;margin:16px 32px 0;padding:12px 14px;border-radius:8px;background:var(--warn-soft);font-size:14px}.ck-alert svg{color:var(--warn);margin-top:2px}
.ck-body{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:40px;padding:24px 32px 8px}
.ck-body h3{font-size:14px;font-weight:700;margin:0 0 12px}
.ck-docs ol{list-style:none;margin:0;padding:0}
.ck-docs li{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(0,auto);gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}
.ck-docs li:last-child{border-bottom:0}
.ck-ico{width:28px;height:28px;border-radius:6px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center}
.ck-dn{font-size:15px;font-weight:500}.ck-is{font-size:13.5px;text-align:right;color:var(--fg)}.ck-is small{display:block;font-size:12px;color:var(--muted)}
.ck-side{display:flex;flex-direction:column;gap:24px}
.ck-reg{margin:0 0 6px;font-size:15px;font-weight:600}.ck-note{margin:0;font-size:13.5px;color:var(--muted);line-height:1.5}
.ck-side ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.ck-side li{font-size:15px;padding-left:16px;position:relative}.ck-side li::before{content:"";position:absolute;left:0;top:8px;width:6px;height:6px;border-radius:50%;background:var(--accent)}
.ck-foot{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:18px 32px;margin-top:16px;border-top:1px solid var(--line);background:var(--surface)}
.ck-src{font-size:13px;color:var(--muted);flex:1;min-width:220px}.ck-acts{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width:900px){.ck-bar{flex-direction:column}.ck-seg{border-right:0;border-bottom:1px solid var(--line)}.ck-seg:last-child{border-bottom:0}.ck-arrow{display:none}.ck-sum{grid-template-columns:repeat(2,minmax(0,1fr))}.ck-k:nth-child(3){padding-left:0;border-left:0}.ck-k:nth-child(n+3){border-top:1px solid var(--line)}.ck-body{grid-template-columns:minmax(0,1fr);gap:24px}.ckb{margin-top:-40px}}
@media (max-width:600px){.ck-head,.ck-body,.ck-foot{padding-left:18px;padding-right:18px}.ck-bar,.ck-sum,.ck-alert{margin-left:18px;margin-right:18px}.ck-head{flex-direction:column}.ck-docs li{grid-template-columns:28px minmax(0,1fr)}.ck-is{grid-column:2;text-align:left}}
/* sections */
.h-sec{padding-block:96px 24px}
.pub{--tint:#F4F6F9}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .pub{--tint:#0E1628}}
:root[data-theme="dark"] .pub{--tint:#0E1628}
.h-sec.tint{background:var(--tint);padding-block:96px;margin-top:96px}
.h-sec.tint+.h-sec{padding-top:96px}
.h-sec.tint .qrv{background:var(--surface)}
.h-sec.tint .who-l li,.h-sec.tint .dt td{border-bottom-color:var(--line-2)}
.h-head{max-width:760px;margin-bottom:40px}
.h-head h2,.trust h2,.h-end h2{font-size:clamp(28px,3.2vw,44px);font-weight:700;font-stretch:110%;letter-spacing:-.02em;line-height:1.08;margin:0;text-wrap:balance}
.h-head p{font-size:18px;line-height:1.55;color:var(--muted);margin:14px 0 0;max-width:62ch}
.op{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:48px;align-items:center}
@media (max-width:900px){.op{grid-template-columns:minmax(0,1fr)}}
.op-map{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.map-svg{display:block;width:100%;height:auto;max-height:620px}
.map-land{fill:var(--surface-2);stroke:var(--line-2);stroke-width:.7}
.map-hi{fill:var(--brand-soft);stroke:var(--brand);stroke-width:1.2}
.map-sea{fill:none;stroke:var(--brand);stroke-width:2.2;stroke-dasharray:7 7}
.map-road{fill:none;stroke:var(--accent);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.map-l{font-family:var(--pub-font);font-size:22px;font-weight:600;fill:var(--fg)}
.map-pulse{fill:var(--accent);opacity:.22;animation:pulse 2.4s ease-out infinite}
@keyframes pulse{0%{transform:scale(.6);opacity:.4}100%{transform:scale(1.8);opacity:0}}
@media (prefers-reduced-motion:reduce){.map-pulse{animation:none}}
.op-ref b{display:block;font-size:22px;font-weight:700;font-stretch:108%;font-variant-numeric:tabular-nums}
.op-ref span{color:var(--muted);font-size:15px}
.op-now{margin:22px 0;padding:16px 18px;border-left:3px solid var(--accent);background:var(--surface)}
.op-now span{display:block;font-size:13px;color:var(--accent-ink);font-weight:600}.op-now b{display:block;font-size:17px;margin-top:4px}.op-now small{color:var(--muted);font-size:14px}
.op-list{list-style:none;margin:0;padding:0}
.op-list li{display:flex;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font-size:15px}
.op-dot{width:24px;height:24px;border-radius:50%;border:1.5px solid var(--line-2);display:grid;place-items:center;flex:none;color:#fff}
.op-list li.ok .op-dot{background:var(--ok);border-color:var(--ok)}.op-list li.cur .op-dot{border-color:var(--accent);box-shadow:inset 0 0 0 5px var(--surface),inset 0 0 0 12px var(--accent)}
.op-st{margin-left:auto;font-size:13px;color:var(--muted)}.op-list li.cur .op-st{color:var(--accent-ink);font-weight:600}
.jl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;margin-top:64px}
.jl-g{min-width:0;padding-right:12px}
@media (max-width:860px){.jl{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:480px){.jl{grid-template-columns:minmax(0,1fr)}}
.pub main{overflow-x:clip}
.jl-h{font-size:15px;font-weight:700;padding-bottom:12px;border-bottom:2px solid var(--fg)}
.jl-stops{display:flex;flex-direction:column;gap:14px;padding-top:20px}
.jl-s{display:flex;align-items:center;gap:12px}
.jl-dot{width:12px;height:12px;border-radius:50%;background:var(--surface);border:2px solid var(--fg)}
.jl-s.d .jl-dot{background:var(--fg)}.jl-s.c .jl-dot{background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 5px var(--accent-soft)}
.jl-t{font-size:15px;line-height:1.3;color:var(--muted)}.jl-s.c .jl-t{color:var(--fg);font-weight:600}.jl-s.d .jl-t{color:var(--fg)}
.who-tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);overflow-x:auto}
.who-tabs button{border:0;background:none;padding:0 0 14px;font-family:var(--pub-font);font-size:17px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.who-tabs button.on{color:var(--fg);border-bottom-color:var(--accent)}
.who-p{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:56px;padding-top:36px;align-items:start}
@media (max-width:860px){.who-p{grid-template-columns:minmax(0,1fr);gap:28px}}
.who-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.who-l li{display:flex;gap:14px;font-size:18px;line-height:1.45;padding:16px 0;border-bottom:1px solid var(--line)}
.who-l li svg{color:var(--accent);margin-top:4px}
.dt{width:100%;border-collapse:collapse;font-size:14.5px;font-family:var(--pub-font)}
.dt th{background:none;text-align:left;font-weight:600;font-size:12.5px;color:var(--muted);padding:0 12px 10px 0;border-bottom:1px solid var(--fg)}
.dt td{padding:14px 12px 14px 0;border-bottom:1px solid var(--line);white-space:normal;vertical-align:top}
.dt td small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.dt .r{text-align:right;padding-right:0}
.dt-click tbody tr{cursor:pointer}.dt-click tbody tr:hover td{color:var(--brand)}
.dt-note{font-size:12.5px;color:var(--faint);margin:10px 0 0}
.vf{font-size:13px;color:var(--warn);font-weight:500}.vf.ok{color:var(--ok)}
.dir{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px}
.dir h3{font-size:18px;font-weight:700;margin:0 0 16px}
@media (max-width:900px){.dir{grid-template-columns:minmax(0,1fr)}}
.trust{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:64px;align-items:start}
@media (max-width:900px){.trust{grid-template-columns:minmax(0,1fr);gap:32px}}
.tr{margin:28px 0 0}.tr dt{font-size:19px;font-weight:600;padding-top:20px;border-top:1px solid var(--line)}.tr dd{margin:8px 0 20px;color:var(--muted);font-size:16px;line-height:1.55;max-width:56ch}
.qrv{display:flex;gap:24px;align-items:center;flex-wrap:wrap;border:1px solid var(--line);border-radius:10px;padding:24px;margin-top:8px}
.qrv-f{flex:1;min-width:220px;display:flex;flex-direction:column;gap:8px}.qrv-f label{font-size:13px;font-weight:600;color:var(--muted)}
.qrv-row{display:flex;gap:8px}.qrv-row .input{font-variant-numeric:tabular-nums;min-height:44px}.qrv-f p{margin:0;font-size:12.5px;color:var(--faint)}
.h-end{padding-block:110px;text-align:left}
.h-end .pub-in{padding-top:0}
.h-end p{font-size:18px;color:var(--muted);margin:14px 0 28px;max-width:58ch}
.h-ctas{display:flex;gap:12px;flex-wrap:wrap}
.pub-foot{position:relative;overflow:hidden;isolation:isolate;background:#0A1B3D;color:#A9B8D8;padding-block:64px 28px}
.pub-foot::before{content:"";position:absolute;inset:0;z-index:-1;background-image:repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 1px,transparent 1px 7px);mask-image:linear-gradient(180deg,#000 0%,transparent 70%);-webkit-mask-image:linear-gradient(180deg,#000 0%,transparent 70%)}
.pf-motif{position:absolute;z-index:-1;right:0;top:0;height:100%;width:62%;max-width:none;mask-image:linear-gradient(90deg,transparent 0%,#000 45%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 45%)}
.pf-land{fill:rgba(255,255,255,.025);stroke:rgba(140,175,240,.12);stroke-width:1}
.pf-hi{fill:rgba(111,157,240,.06);stroke:rgba(140,175,240,.2);stroke-width:1.2}
.pf-sea{fill:none;stroke:rgba(140,180,255,.25);stroke-width:2;stroke-dasharray:6 7}
.pf-road{fill:none;stroke:#FF5D12;stroke-width:3;stroke-linecap:round;opacity:.45}
.pf-logo{display:flex;align-items:center;gap:10px}.pf-logo .tile{width:40px;height:40px;border-radius:8px;background:#fff;display:grid;place-items:center}.pf-logo .tile img{width:28px}
.pf-logo b{font-size:22px;color:#fff;font-weight:700;letter-spacing:-.01em}.pf-logo b span{color:#FF5D12}
.pub-foot .pub-in{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:32px;align-items:start}
@media (max-width:800px){.pub-foot .pub-in{grid-template-columns:1fr 1fr}}
.pf-brand p{margin:14px 0 0;font-size:14px;max-width:30ch}
.pf-col{display:flex;flex-direction:column;gap:9px;font-size:14px}.pf-col b{color:#fff;font-size:14px;margin-bottom:4px}
.pub-foot .pf-legal{display:block;margin-top:48px;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);font-size:12.5px;color:#7F90B5}
@media (max-width:800px){.pf-motif{width:100%;opacity:.5}}
.pub-sec.alt{background:var(--bg)!important}
.proto-tag{font-size:10.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--accent-ink);background:var(--accent-soft);border-radius:4px;padding:2px 7px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
/* V1.0 */
.v1-states{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12.5px}
.v1-states>span:not(.faint){padding:3px 10px;border-radius:999px;border:1px solid var(--line);color:var(--muted);background:var(--surface)}
.v1-states>span.d{color:var(--ok);border-color:transparent;background:var(--ok-soft)}
.v1-states>span.c{color:#fff;background:var(--brand);border-color:var(--brand);font-weight:600}
.v1-states svg.i{width:14px;height:14px;color:var(--faint)}
.v1-exit{color:var(--bad)}
.v1-legend{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:12.5px;padding:2px 2px 0}
.dw-b .sg-steps span{font-size:12.5px;padding:5px 10px}
.dw-b label.li{display:flex;align-items:center;gap:12px}
.alert.ok{background:var(--ok-soft);color:var(--fg)} .alert.ok svg{color:var(--ok)}

/* GovTech — Cabinet du Ministre */
.demo-h{font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);margin:14px 0 8px}
.demo-h:first-child{margin-top:0}
.demo-mob{margin-top:10px;width:100%;border-style:dashed}
.demo-mob svg.i{width:22px;height:22px;color:var(--brand);flex:none}
.g-steps{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;counter-reset:s}
.g-steps>div{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted);padding-top:8px;border-top:3px solid var(--line)}
.g-steps>div i{font-style:normal;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:600;background:var(--surface-2,var(--line));color:var(--muted)}
.g-steps>div span{display:flex;flex-direction:column;line-height:1.3}
.g-steps>div small{color:var(--faint);font-size:11px}
.g-steps>div.d{border-color:var(--ok)}.g-steps>div.d i{background:var(--ok);color:#fff}
.g-steps>div.c{border-color:var(--accent);color:var(--fg);font-weight:600}.g-steps>div.c i{background:var(--accent);color:#fff}
.g-steps>div.x{border-color:var(--bad)}.g-steps>div.x i{background:var(--bad);color:#fff}
@media (max-width:760px){.g-steps{grid-auto-flow:row}}
.g-two{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
@media (max-width:760px){.g-two{grid-template-columns:1fr}}
.g-pieces{display:flex;flex-wrap:wrap;gap:8px}
.g-pieces span{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:8px;padding:6px 10px;font-size:12.5px;background:var(--surface)}
.g-pieces span small{color:var(--faint);margin-left:4px}.g-pieces span em{color:var(--faint);font-style:normal}
.g-pieces span.add{border-color:var(--accent)}
.g-tl{display:flex;flex-direction:column;border-left:2px solid var(--line);margin-left:6px}
.g-tl>div{position:relative;padding:0 0 14px 18px;display:flex;flex-direction:column;gap:2px;font-size:13px}
.g-tl>div::before{content:"";position:absolute;left:-6px;top:4px;width:10px;height:10px;border-radius:50%;background:var(--surface);border:2px solid var(--brand)}
.g-tl>div>.mono{font-size:11px}
.g-tl .sub{font-size:12px}
.g-qrcard{display:flex;gap:14px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:12px}
.g-qrcard>div:last-child{display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:var(--muted)}
.g-qrcard b{color:var(--fg);font-size:14px}
.g-qr{width:96px;height:96px;flex:none;background:#fff;border-radius:6px;padding:4px;border:1px solid var(--line)}
.g-qr.sm{width:72px;height:72px}
.g-qr svg{width:100%;height:100%;display:block}
.g-ver{border:1px solid var(--line);border-radius:10px;padding:14px;margin-top:12px;display:flex;flex-direction:column;gap:10px}
.g-ver-h{display:flex;gap:10px;align-items:center}
.g-ver-h>div{display:flex;flex-direction:column}.g-ver-h span{font-size:12px;color:var(--muted)}
.g-ver-h svg.i{width:28px;height:28px;flex:none}
.g-ver.ok{border-color:var(--ok);background:var(--ok-soft)}.g-ver.ok .g-ver-h svg{color:var(--ok)}
.g-ver.bad{border-color:var(--bad);background:var(--bad-soft)}.g-ver.bad .g-ver-h svg{color:var(--bad)}
.g-ver .kv{margin:0}
.g-ou{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px dashed var(--line)}
.g-ou:last-child{border-bottom:0}
.g-ou .grow{display:flex;flex-direction:column}

/* Application mobile citoyen */
.mob-stage{min-height:100vh;display:flex;gap:48px;align-items:center;justify-content:center;padding:32px 24px;background:var(--bg)}
.mob-side{max-width:360px;display:flex;flex-direction:column;gap:10px}
.mob-side h2{margin:14px 0 0;font-size:26px;letter-spacing:-.01em}
.mob-side p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}
.mob-checks{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.mob-checks div{display:flex;gap:10px;font-size:13px;align-items:baseline}
.mob-checks b{font-size:11.5px;color:var(--brand);min-width:84px}
.phone{position:relative;width:390px;height:800px;border-radius:48px;background:#0b1220;padding:12px;box-shadow:0 30px 60px -20px rgba(12,30,60,.45),0 0 0 1px rgba(255,255,255,.06) inset;flex:none;display:flex;flex-direction:column}
.phone>.ph-scr,.phone>.ph-bar,.phone>.ph-tabs{background:var(--surface)}
.ph-notch{position:absolute;top:22px;left:50%;transform:translateX(-50%);width:110px;height:30px;border-radius:20px;background:#0b1220;z-index:3}
.ph-bar{border-radius:38px 38px 0 0;height:54px;display:flex;justify-content:space-between;align-items:flex-end;padding:0 28px 6px;font-size:12.5px;font-weight:600;color:var(--fg)}
.ph-scr{flex:1;overflow-y:auto;scrollbar-width:none}
.ph-scr::-webkit-scrollbar{display:none}
.ph-tabs{border-radius:0 0 38px 38px;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);padding:6px 10px 18px}
.ph-tabs button{position:relative;background:none;border:0;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;color:var(--faint);padding:6px 0;cursor:pointer}
.ph-tabs button svg.i{width:22px;height:22px}
.ph-tabs button.on{color:var(--brand);font-weight:600}
.ph-tabs button i{position:absolute;top:2px;right:24%;font-style:normal;background:var(--accent);color:#fff;font-size:10px;min-width:16px;height:16px;border-radius:8px;display:grid;place-items:center}
.m-h{position:sticky;top:0;z-index:2;background:var(--surface);display:flex;align-items:center;gap:8px;padding:8px 16px 10px;border-bottom:1px solid var(--line)}
.m-h b{font-size:16px}.m-h button{background:none;border:0;padding:4px;margin-left:-6px;color:var(--fg);cursor:pointer}
.m-pad{padding:14px 16px 20px;display:flex;flex-direction:column;gap:12px}
.m-hello{display:flex;flex-direction:column;padding:4px 0}
.m-hello span{color:var(--muted);font-size:13px}.m-hello b{font-size:21px}.m-hello small{color:var(--faint);font-size:12px}
.m-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.m-actions button{border:0;border-radius:14px;padding:16px 12px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;font-weight:600;font-size:13.5px;cursor:pointer;background:var(--brand);color:#fff;text-align:left}
.m-actions button:last-child{background:var(--info-soft);color:var(--brand)}
.m-actions svg.i{width:22px;height:22px}
.m-sec{margin:6px 0 0;font-size:13px;color:var(--muted);font-weight:600}
.m-card{border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:6px;cursor:pointer;background:var(--surface)}
.m-card>div{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted)}
.m-card b{font-size:14px;line-height:1.35}.m-card small{color:var(--faint);font-size:12px}
.m-card.draft{border-style:dashed}
.m-alert{display:flex;gap:10px;align-items:center;background:var(--warn-soft);border-radius:12px;padding:12px;cursor:pointer}
.m-alert>div{flex:1;display:flex;flex-direction:column;font-size:13px}.m-alert span{color:var(--muted);font-size:12px}
.m-alert svg.i{color:var(--warn)}
.m-alert.bad{background:var(--bad-soft)}.m-alert.bad svg.i{color:var(--bad)}
.m-st{border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.m-st b{font-size:15px;line-height:1.35}
.m-st dl{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;margin:4px 0 0;font-size:12.5px;width:100%}
.m-st dt{color:var(--faint)}.m-st dd{margin:0;text-align:right}
.m-tl{display:flex;flex-direction:column;border-left:2px solid var(--line);margin-left:4px}
.m-tl>div{position:relative;padding:0 0 12px 14px;display:flex;flex-direction:column;gap:2px;font-size:13px}
.m-tl>div::before{content:"";position:absolute;left:-5px;top:4px;width:8px;height:8px;border-radius:50%;background:var(--brand)}
.m-tl span{font-size:11.5px;color:var(--muted)}.m-tl small{font-size:12px;color:var(--faint)}
.m-note{font-size:11.5px;color:var(--faint);margin:0;display:flex;gap:6px;align-items:flex-start;line-height:1.45}
.m-note svg.i{width:14px;height:14px;color:var(--ok);flex:none}
.m-full{width:100%;justify-content:center}
.m-doc{display:flex;gap:12px;align-items:center;border:1px solid var(--ok);background:var(--ok-soft);border-radius:12px;padding:12px;cursor:pointer}
.m-doc>div{flex:1;display:flex;flex-direction:column;gap:4px;font-size:13px}.m-doc span{font-size:12px;color:var(--muted);display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.m-doc>svg.i:first-child{width:26px;height:26px;color:var(--ok)}
.m-box{background:var(--surface-2,var(--bg));border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:4px;font-size:13px}
.m-box span{color:var(--muted);font-size:12.5px}
.m-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.m-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
.m-steps span{font-size:11px;color:var(--faint);border-top:3px solid var(--line);padding-top:6px}
.m-steps span.d{border-color:var(--ok);color:var(--muted)}.m-steps span.c{border-color:var(--accent);color:var(--fg);font-weight:600}
.m-piece{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.m-piece>div{display:flex;flex-direction:column;font-size:13px}.m-piece small{color:var(--faint);font-size:11.5px}
.m-piece.ok{border-color:var(--ok);background:var(--ok-soft)}
.m-err{background:var(--bad-soft);color:var(--fg);border-radius:10px;padding:10px 12px;font-size:12.5px;border-left:3px solid var(--bad)}
.m-cam{height:210px;border-radius:16px;background:linear-gradient(160deg,#16243a,#0b1220);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#c9d4e5;font-size:12px}
.m-cam-f{width:120px;height:120px;border:3px solid rgba(255,255,255,.85);border-radius:16px;box-shadow:0 0 0 999px rgba(0,0,0,.0)}
.m-login{padding:60px 24px 24px;display:flex;flex-direction:column;gap:14px;text-align:center}
.m-login img{width:64px;height:64px;margin:0 auto}
.m-login h3{margin:0;font-size:24px}.m-login p{margin:-8px 0 18px;color:var(--muted)}
.m-login .field{text-align:left}
.m-act{border:1px solid var(--line);border-radius:10px;padding:16px;background:#fff;color:#14223a;display:flex;flex-direction:column;gap:8px;font-size:12.5px;line-height:1.5}
.m-act-h{text-align:center;display:flex;flex-direction:column;border-bottom:1px solid #dde3ec;padding-bottom:8px}
.m-act-h small{font-size:9.5px;letter-spacing:.08em;color:#55627a}
.m-act h4{margin:4px 0 0;text-align:center;font-size:13px;letter-spacing:.04em}
.m-act p{margin:0}
.m-act-f{display:flex;gap:12px;align-items:center;border-top:1px solid #dde3ec;padding-top:10px}
.m-act-f>div:last-child{display:flex;flex-direction:column}.m-act-f small{color:#55627a;font-size:10.5px}
@media (max-width:860px){.mob-stage{flex-direction:column;gap:20px;padding:16px}.mob-side{max-width:390px;width:100%}.phone{width:min(390px,100%);height:760px}}
@media (max-width:520px){.mob-stage{padding:0;gap:0;display:block;background:var(--surface)}.mob-side{padding:10px 12px;max-width:none;flex-direction:row;align-items:center;gap:10px;border-bottom:1px solid var(--line)}.mob-side h2,.mob-side p,.mob-checks{display:none}.mob-side .check{margin:0!important;font-size:12px}.phone{width:100%;height:calc(100vh - 58px);border-radius:0;padding:0;box-shadow:none;background:var(--surface)}.ph-notch,.ph-bar{display:none}.ph-tabs{border-radius:0;padding-bottom:10px}}
.demo-tabs{display:flex;gap:4px;padding:3px;background:var(--surface-2,var(--bg));border:1px solid var(--line);border-radius:10px;margin-bottom:10px}
.demo-tabs button{flex:1 1 0;min-width:0;border:0;background:none;border-radius:7px;padding:7px 6px;font:inherit;font-size:12.5px;font-weight:500;color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;line-height:1.2;text-align:center}
.demo-tabs button span{flex:none;font-size:11px;min-width:18px;height:18px;border-radius:9px;display:grid;place-items:center;background:var(--line);color:var(--muted)}
.demo-tabs button.on{background:var(--surface);color:var(--fg);box-shadow:0 1px 2px rgba(12,30,60,.12)}
.demo-tabs button.on span{background:var(--brand);color:#fff}
@media (max-width:520px){.demo-tabs button{font-size:11.5px;padding:7px 3px}}
