@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/fonts/sora-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/fonts/sora-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2"); }
/* Layout : « Vigie », un poste de veille. Téléphone : colonne unique, barre d'onglets flottante, fiches qui montent du bas.
   Ordinateur (≥ 980 px) : menu latéral fixe, contenu centré, fiches en tiroir à droite. Bandeau d'accueil marine traversé d'un faisceau de phare. */
:root {
  --bg: #f2f4f9; --surface: #ffffff; --surface-2: #f6f7fb; --line: #e1e5ef; --line-2: #eef1f7; --ink: #0c1330; --muted: #5a6382;
  --accent: #2f5bea; --accent-2: #2147c8; --accent-soft: #e9eeff; --on-accent: #ffffff;
  --navy: #0b1634; --navy-2: #142757; --beam: #ffb547; --hero-ink: #eef2ff; --hero-muted: #aab6dc;
  --ok: #1d8a4e; --ok-soft: #e2f4ea; --part: #b26a06; --part-soft: #fdf0db;
  --ko: #c8382c; --ko-soft: #fde6e3; --na: #687089; --na-soft: #eef0f5;
  --lv0: #22958a; --lv0-soft: #dcf3f0; --lv1: #c07a0e; --lv1-soft: #fdf0db; --lv2: #d03a3a; --lv2-soft: #fde4e4;
  --ico-s: 88%; --ico-l: 95%; --ico-f: 40%;
  --shadow-sm: 0 1px 2px rgba(12,19,48,.05);
  --shadow: 0 1px 2px rgba(12,19,48,.04), 0 10px 28px -12px rgba(12,19,48,.14);
  --shadow-lg: 0 30px 70px -18px rgba(12,19,48,.35);
  --f-title: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #080d1c; --surface: #111930; --surface-2: #0d1428; --line: #222c48; --line-2: #1a2340; --ink: #e8ecf8; --muted: #95a0c0;
  --accent: #7f9cff; --accent-2: #a3b8ff; --accent-soft: #1a2754; --on-accent: #081030;
  --navy: #0d1a3f; --navy-2: #182c64;
  --ok: #4fcb85; --ok-soft: #12301f; --part: #eaab4c; --part-soft: #36270f;
  --ko: #f38275; --ko-soft: #3b1917; --na: #98a1bb; --na-soft: #1e2639;
  --lv0: #5fd3c6; --lv0-soft: #0f302c; --lv1: #eaab4c; --lv1-soft: #36270f; --lv2: #f58080; --lv2-soft: #3d1a1d;
  --ico-s: 45%; --ico-l: 21%; --ico-f: 76%;
  --shadow-sm: none; --shadow: 0 1px 0 rgba(255,255,255,.02); --shadow-lg: 0 30px 70px -18px rgba(0,0,0,.7);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #080d1c; --surface: #111930; --surface-2: #0d1428; --line: #222c48; --line-2: #1a2340; --ink: #e8ecf8; --muted: #95a0c0;
  --accent: #7f9cff; --accent-2: #a3b8ff; --accent-soft: #1a2754; --on-accent: #081030;
  --navy: #0d1a3f; --navy-2: #182c64;
  --ok: #4fcb85; --ok-soft: #12301f; --part: #eaab4c; --part-soft: #36270f;
  --ko: #f38275; --ko-soft: #3b1917; --na: #98a1bb; --na-soft: #1e2639;
  --lv0: #5fd3c6; --lv0-soft: #0f302c; --lv1: #eaab4c; --lv1-soft: #36270f; --lv2: #f58080; --lv2-soft: #3d1a1d;
  --ico-s: 45%; --ico-l: 21%; --ico-f: 76%;
  --shadow-sm: none; --shadow: 0 1px 0 rgba(255,255,255,.02); --shadow-lg: 0 30px 70px -18px rgba(0,0,0,.7);
  color-scheme: dark; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 760px; margin: 0 auto; padding-block: 14px 150px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--f-title); text-wrap: balance; margin: 0; letter-spacing: -.02em; }
h1 { font-size: 27px; font-weight: 700; line-height: 1.15; }
h2 { font-size: 18px; font-weight: 650; line-height: 1.25; }
h3 { font-size: 15.5px; font-weight: 650; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.label { font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.mono { font-family: var(--f-mono); font-size: 12px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.tight { gap: 7px; }
.row { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1 1 0; min-width: 0; }
.banner { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.banner::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--beam); box-shadow: 0 0 0 4px rgba(255,181,71,.2); flex: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 15px; font-weight: 600; font-size: 14px; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: var(--on-accent); border-color: transparent; box-shadow: 0 8px 20px -10px var(--accent); }
.btn.danger { color: var(--ko); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); padding-inline: 4px; }
.btn.block { width: 100%; }
button.card { text-align: left; transition: transform .14s, box-shadow .14s, border-color .14s; }
@media (hover: hover) { button.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: 0 2px 4px rgba(12,19,48,.04), 0 18px 36px -16px rgba(12,19,48,.22); } }
button.card:active { transform: scale(.99); }
.item { width: 100%; display: flex; gap: 14px; align-items: flex-start; }
.item .t { font-weight: 600; }
.meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 2px 12px; flex-wrap: wrap; align-items: center; }
.list { display: flex; flex-direction: column; }
.card.list { padding-block: 4px; }
.li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border: 0; border-top: 1px solid var(--line-2); width: 100%; text-align: left; background: none; }
.list > .li:first-child { border-top: 0; }
button.li { transition: opacity .12s; } button.li:active { opacity: .6; }
.li .go { margin-left: auto; color: var(--muted); font-size: 18px; }
.mod { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ico { --h: 225; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: hsl(var(--h) var(--ico-s) var(--ico-l)); color: hsl(var(--h) 68% var(--ico-f)); }
.ico svg { width: 20px; height: 20px; }
.ico.sm { width: 32px; height: 32px; border-radius: 10px; } .ico.sm svg { width: 17px; height: 17px; }
.ico.lg { width: 52px; height: 52px; border-radius: 16px; } .ico.lg svg { width: 26px; height: 26px; }
.bar { height: 6px; background: var(--na-soft); border-radius: 99px; overflow: hidden; display: flex; }
.bar span { display: block; height: 100%; }
.bar span + span { margin-left: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; padding: 3px 10px 3px 8px; border-radius: 99px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-ok { background: var(--ok-soft); color: var(--ok); } .p-part { background: var(--part-soft); color: var(--part); }
.p-ko { background: var(--ko-soft); color: var(--ko); } .p-na { background: var(--na-soft); color: var(--na); }
.p-acc { background: var(--accent-soft); color: var(--accent); }
.lv0 { background: var(--lv0-soft); color: var(--lv0); } .lv1 { background: var(--lv1-soft); color: var(--lv1); } .lv2 { background: var(--lv2-soft); color: var(--lv2); }
.kv { font-family: var(--f-title); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -.02em; }

/* Bandeau d'accueil */
.hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; padding: 18px 18px 20px; background: linear-gradient(160deg, var(--navy-2), var(--navy) 60%); color: var(--hero-ink); box-shadow: var(--shadow-lg); }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0;
  background: conic-gradient(from 0deg at 90% -6%, rgba(255,181,71,0) 0deg 196deg, rgba(255,181,71,.20) 214deg, rgba(255,181,71,.05) 234deg, rgba(255,181,71,0) 250deg 360deg); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: auto -30% -60% auto; width: 420px; height: 420px; background: radial-gradient(circle, rgba(97,132,255,.35), transparent 65%); }
.hero .muted { color: var(--hero-muted); }
.hero h1 { font-size: 30px; }
.brandrow { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-title); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #fff; flex: none; }
.mark svg { width: 22px; height: 22px; }
.hchip { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: var(--hero-ink); border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.hero .search input { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); color: #fff; }
.hero .search input::placeholder { color: rgba(226,232,255,.6); }
.hero .search svg { color: rgba(226,232,255,.7); }
.rings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ringc { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); border-radius: 16px; padding: 10px; color: var(--hero-ink); min-width: 0; transition: background .14s; }
@media (hover: hover) { .ringc:hover { background: rgba(255,255,255,.11); } }
.ring { position: relative; width: 52px; height: 52px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.ring .trk { stroke: rgba(255,255,255,.13); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-title); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ringc .rt { font-weight: 650; font-size: 13.5px; line-height: 1.2; }
.ringc .rs { font-size: 11.5px; color: var(--hero-muted); }

/* En-têtes de page */
.ph { display: flex; gap: 14px; align-items: center; }
.topacts { display: flex; gap: 6px; flex: none; }
.chipbtn { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-sm); }
.search { position: relative; }
.search input { padding-left: 38px; height: 44px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.back { border: 0; background: none; color: var(--accent); font-weight: 600; padding: 0; align-self: flex-start; font-size: 14px; }
.seg { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 14px; overflow-x: auto; box-shadow: var(--shadow-sm); scrollbar-width: none; }
.seg button { flex: 1 0 auto; border: 0; background: transparent; border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .14s, color .14s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.filters button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.filters button b { color: var(--ink); font-weight: 700; margin-left: 2px; }
.filters button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.filters button[aria-pressed="true"] b { color: var(--accent); }

/* Champs */
.opts { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 6px; }
.opts button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 11px; padding: 8px 2px; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; align-items: center; line-height: 1.25; min-width: 0; transition: all .12s; }
.opts button small { font-size: 10.5px; font-weight: 500; color: var(--muted); text-align: center; }
.opts button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.choice { --c: var(--na); border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 11px 12px; font-weight: 700; display: flex; flex-direction: column; gap: 1px; align-items: flex-start; text-align: left; position: relative; transition: all .12s; }
.choice::after { content: ""; position: absolute; right: 12px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); opacity: .35; }
.choice small { font-weight: 400; color: var(--muted); font-size: 12px; }
.choice[data-v="compliant"] { --c: var(--ok); } .choice[data-v="partially_compliant"] { --c: var(--part); } .choice[data-v="non_compliant"] { --c: var(--ko); }
.choice[aria-pressed="true"] { border-color: var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); }
.choice[aria-pressed="true"]::after { opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
label.f input, label.f textarea, label.f select { text-transform: none; letter-spacing: normal; font-weight: 400; }
textarea, input, select { font: inherit; font-size: 15px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; transition: border-color .12s, box-shadow .12s; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { min-height: 74px; resize: vertical; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); border-radius: 99px; padding: 4px 4px 4px 11px; font-size: 12.5px; background: var(--surface-2); display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-weight: 500; }
.chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip button { border: 0; background: none; color: var(--muted); padding: 0 6px; font-size: 15px; line-height: 1; }
.chip.add { color: var(--accent); border-style: dashed; border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: none; font-weight: 600; padding: 4px 11px; }
.picker { border: 1px solid var(--accent); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent); }
.picker .li { padding: 8px 0; }
.check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 12px; font-weight: 700; }
.check.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.late { color: var(--ko); font-weight: 600; }
.ref { font-family: var(--f-mono); font-size: 11.5px; color: var(--accent); }
.heat { display: grid; grid-template-columns: 26px repeat(4, 1fr); gap: 4px; font-size: 11px; max-width: 300px; }
.heat .c { aspect-ratio: 1.6; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; max-width: 100%; font-family: var(--f-title); }
.heat .c.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px currentColor; }
.heat .ax { display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--f-mono); font-size: 10.5px; }
.ws { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.ws span { height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; font-family: var(--f-mono); }
.ws .done { background: var(--ok-soft); color: var(--ok); } .ws .doing { background: var(--part-soft); color: var(--part); } .ws .todo { background: var(--na-soft); color: var(--na); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.sec { border-top: 1px solid var(--line); padding-top: 14px; }
.empty { text-align: center; padding: 26px 10px; color: var(--muted); }
.focus { border-radius: 22px; padding: 18px; }

/* Barre d'onglets flottante */
.tabs { position: fixed; z-index: 5; left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 5px; }
.tabs .side { display: none; }
.tabs nav { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); }
.tabs button { border: 0; background: none; padding: 4px 0 5px; font-size: 10.5px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.tabs .ti { width: 44px; height: 30px; border-radius: 11px; display: grid; place-items: center; transition: background .15s, color .15s; }
.tabs svg { width: 21px; height: 21px; }
.tabs button[aria-current="page"] { color: var(--ink); }
.tabs button[aria-current="page"] .ti { background: var(--ink); color: var(--bg); }
.fab { position: fixed; z-index: 6; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 18px; border: 0; background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: var(--on-accent); display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px var(--accent), 0 0 0 4px color-mix(in srgb, var(--bg) 70%, transparent); transition: transform .14s; }
.fab:active { transform: scale(.95); }
.fab svg { width: 24px; height: 24px; }

/* Fiches */
.sheet-bg { position: fixed; inset: 0; background: rgba(6,10,26,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 760px; border-radius: 24px 24px 0 0; max-height: 93%; overflow-y: auto; box-shadow: var(--shadow-lg);
  padding-block: 10px calc(20px + env(safe-area-inset-bottom, 0px)); padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 6px; flex: none; }
.sheethead { display: flex; gap: 12px; align-items: center; }
.ciso { font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 10px; }
.ciso b { color: var(--ink); font-weight: 600; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(160px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; gap: 10px; align-items: center;
  background: var(--navy); color: var(--hero-ink); padding: 11px 16px 11px 12px; border-radius: 14px; font-weight: 600; font-size: 14px; max-width: calc(100% - 32px); box-shadow: var(--shadow-lg); }
.toast i { width: 22px; height: 22px; border-radius: 50%; background: var(--beam); color: var(--navy); display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 800; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .sheet.anim { animation: up .24s cubic-bezier(.2,.8,.2,1); } @keyframes up { from { transform: translateY(40px); opacity: .4; } }
  .toast { animation: pop .22s cubic-bezier(.2,.8,.2,1); } @keyframes pop { from { transform: translate(-50%, 12px); opacity: 0; } }
  .view { animation: fade .22s ease-out; } @keyframes fade { from { transform: translateY(6px); } }
}
@media (min-width: 560px) { .rings { grid-template-columns: repeat(4, 1fr); } .tiles { grid-template-columns: repeat(3, 1fr); } }

/* Ordinateur : menu latéral, tiroir à droite */
@media (min-width: 980px) {
  .wrap { max-width: 880px; margin-left: max(276px, calc(50vw - 314px)); padding-bottom: 60px; padding-top: 26px; }
  .tabs { left: 16px; top: 16px; bottom: 16px; right: auto; width: 236px; border-radius: 24px; padding: 18px 12px; display: flex; flex-direction: column; gap: 20px; background: var(--surface); }
  .tabs .side { display: flex; }
  .tabs .side.brand { padding: 0 8px; color: var(--ink); }
  .tabs .side .mark { background: var(--navy); border-color: transparent; }
  .tabs nav { display: flex; flex-direction: column; gap: 3px; margin: 0; max-width: none; }
  .tabs button { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 6px 8px; font-size: 14px; border-radius: 13px; color: var(--muted); }
  .tabs .ti { width: 34px; height: 34px; border-radius: 10px; }
  .tabs button[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
  .tabs .side.foot { margin-top: auto; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface-2); font-size: 12px; color: var(--muted); }
  .fab { bottom: 28px; right: 28px; }
  .toast { bottom: 32px; }
  .hero { padding: 26px 28px 28px; } .hero h1 { font-size: 36px; }
  #listbody { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  #listbody > .empty { grid-column: 1 / -1; }
  .homegrid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
  .sheet-bg { align-items: stretch; justify-content: flex-end; }
  .sheet { max-width: 580px; height: 100%; max-height: none; border-radius: 26px 0 0 26px; padding: 24px 28px 28px; }
  .sheet::before { display: none; }
  @media (prefers-reduced-motion: no-preference) { .sheet.anim { animation: side .26s cubic-bezier(.2,.8,.2,1); } @keyframes side { from { transform: translateX(60px); opacity: .3; } } }
}
/* Application réelle */
body { margin: 0; }
[hidden] { display: none !important; }
.ro .fab { display: none; }
.espb { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: var(--na-soft); color: var(--muted); white-space: nowrap; }
.espb.VIALIS { background: hsl(222 var(--ico-s) var(--ico-l)); color: hsl(222 68% var(--ico-f)); }
.espb.SCCU { background: hsl(172 var(--ico-s) var(--ico-l)); color: hsl(172 68% var(--ico-f)); }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chip.go2 { cursor: pointer; } .chip.go2:hover { border-color: var(--accent); }
.cmp { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .cmp { grid-template-columns: repeat(2, 1fr); } }
.cmp .card { display: flex; flex-direction: column; gap: 10px; }
.cmp .kl { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.cmp .kl b { font-family: var(--f-title); font-variant-numeric: tabular-nums; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-left, 0px)); }
.gate .hero { width: 100%; max-width: 440px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--hero-muted); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.2); border-top-color: var(--beam); animation: sp 1s linear infinite; flex: none; }
@keyframes sp { to { transform: rotate(360deg); } }
.btn.light { background: #fff; color: var(--navy); border-color: transparent; }
.err { color: #ffb4a8; font-size: 13px; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.more { align-self: center; }
#gate { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; }
#gate .gate input { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); color: #fff; }
