/* ══════════════════════════════════════════════════════════════════════
   CVE Oyer — interface oyer.fr (design system de music.oyer.fr)
   Nuit bleutée, bleu ciel #38bdf8, Inter. Couleurs uniquement via variables.
   Rouge = critique/danger · ambre = avertissement · vert = OK · bleu = info/action.
   ══════════════════════════════════════════════════════════════════════ */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url(/static/fonts/inter-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    color-scheme: dark;
    --bg: #080e1a; --bg-2: #0d1526;
    --surface: rgba(255,255,255,.045); --surface-2: rgba(255,255,255,.08); --surface-3: rgba(255,255,255,.13);
    --solid: #0f1a2e; --chrome: rgba(10,17,31,.78);
    --border: rgba(148,163,184,.14); --border-2: rgba(148,163,184,.28);
    --text: #f1f5f9; --text-2: #b9c5d6; --muted: #8896aa;
    --accent: #38bdf8; --accent-2: #a78bfa; --accent-ink: #04141f;
    --accent-soft: rgba(56,189,248,.14); --accent-line: rgba(56,189,248,.38);
    --ok: #4ade80; --ok-soft: rgba(74,222,128,.13);
    --warn: #fbbf24; --warn-soft: rgba(251,191,36,.13);
    --err: #fb7185; --err-soft: rgba(251,113,133,.13);
    --shadow: 0 10px 40px rgba(0,0,0,.45);
    --glow-a: rgba(56,189,248,.16); --glow-b: rgba(167,139,250,.13);
    --radius: 16px; --radius-sm: 10px;
    --ease: cubic-bezier(.32,.72,0,1); --spring: cubic-bezier(.34,1.4,.64,1);
    --safe-t: env(safe-area-inset-top,0px); --safe-b: env(safe-area-inset-bottom,0px);
    --tabbar-h: 68px;
    --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        color-scheme: light;
        --bg: #f3f6fb; --bg-2: #e8eef7; --surface: rgba(255,255,255,.72); --surface-2: rgba(15,23,42,.055);
        --surface-3: rgba(15,23,42,.1); --solid: #fff; --chrome: rgba(255,255,255,.8);
        --border: rgba(15,23,42,.09); --border-2: rgba(15,23,42,.18);
        --text: #0b1220; --text-2: #334155; --muted: #5b6b80;
        --accent: #0284c7; --accent-2: #7c3aed; --accent-ink: #fff;
        --accent-soft: rgba(2,132,199,.11); --accent-line: rgba(2,132,199,.4);
        --ok: #15803d; --ok-soft: rgba(21,128,61,.11); --warn: #b45309; --warn-soft: rgba(180,83,9,.11);
        --err: #e11d48; --err-soft: rgba(225,29,72,.09);
        --shadow: 0 10px 40px rgba(15,23,42,.12); --glow-a: rgba(56,189,248,.22); --glow-b: rgba(167,139,250,.14);
    }
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f3f6fb; --bg-2: #e8eef7; --surface: rgba(255,255,255,.72); --surface-2: rgba(15,23,42,.055);
    --surface-3: rgba(15,23,42,.1); --solid: #fff; --chrome: rgba(255,255,255,.8);
    --border: rgba(15,23,42,.09); --border-2: rgba(15,23,42,.18);
    --text: #0b1220; --text-2: #334155; --muted: #5b6b80;
    --accent: #0284c7; --accent-2: #7c3aed; --accent-ink: #fff;
    --accent-soft: rgba(2,132,199,.11); --accent-line: rgba(2,132,199,.4);
    --ok: #15803d; --ok-soft: rgba(21,128,61,.11); --warn: #b45309; --warn-soft: rgba(180,83,9,.11);
    --err: #e11d48; --err-soft: rgba(225,29,72,.09);
    --shadow: 0 10px 40px rgba(15,23,42,.12); --glow-a: rgba(56,189,248,.22); --glow-b: rgba(167,139,250,.14);
}

/* ── Base ── */
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--border-2) transparent; }
body { font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--text); background: var(--bg);
    min-height: 100vh; min-height: 100dvh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, a, input, select { -webkit-tap-highlight-color: transparent; font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: var(--solid); border: 1px solid var(--accent-line); }
.skip:focus { top: calc(8px + var(--safe-t)); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(60vmax 50vmax at 8% -10%, var(--glow-a), transparent 60%), radial-gradient(55vmax 45vmax at 100% 105%, var(--glow-b), transparent 60%); }
.num { font-variant-numeric: tabular-nums; }
.selectable, .selectable * { -webkit-user-select: text; user-select: text; }

/* ── Marque ── */
.logo-tile { position: relative; flex: none; display: block; overflow: hidden; background: #0b1220;
    box-shadow: 0 0 0 1px rgba(148,163,184,.16), 0 6px 18px rgba(0,0,0,.35); }
.logo-tile img { width: 100%; height: 100%; }
.logo-sm { width: 34px; height: 34px; border-radius: 10px; }
.logo-md { width: 44px; height: 44px; border-radius: 13px; }
body.busy .logo-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .15; } 50% { opacity: .9; } }

/* ── Boutons, champs ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
    border-radius: 12px; font-weight: 600; font-size: 14.5px; white-space: nowrap;
    transition: transform .18s var(--spring), background .2s, opacity .2s, box-shadow .2s; }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn .i { width: 18px; height: 18px; }
.btn-primary { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2)));
    box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-soft { background: var(--surface-2); color: var(--text); }
.btn-danger-soft { background: var(--err-soft); color: var(--err); }
.btn-ghost { color: var(--muted); }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; }
.btn-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; color: var(--muted);
    transition: background .2s, color .2s, transform .18s var(--spring); }
.btn-icon:active { transform: scale(.9); }
@media (hover: hover) { .btn-soft:hover { background: var(--surface-3); } .btn-icon:hover { background: var(--surface-2); color: var(--text); }
    .btn-primary:hover { box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 50%, transparent); } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span:first-child { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
input[type="text"], input[type="search"], input[type="password"] { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px;
    background: var(--surface-2); border: 1px solid transparent; color: var(--text); font-size: 16px;
    transition: border-color .2s, background .2s, box-shadow .2s; }
input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
input::placeholder { color: var(--muted); opacity: .8; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.card h2, .section-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-label .i, .card h2 .i { width: 15px; height: 15px; }
.section-label a { text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--accent); font-weight: 600; }

/* ── Étiquettes de sévérité (le rouge est réservé au critique) ── */
.tag { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; height: 22px; padding: 0 9px; border-radius: 11px;
    background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag .i { width: 12px; height: 12px; }
.tag.accent { background: var(--accent-soft); color: var(--accent); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn, .tag.high { background: var(--warn-soft); color: var(--warn); }
.tag.err, .tag.critical { background: var(--err-soft); color: var(--err); }
.tag.medium { background: var(--accent-soft); color: var(--accent); }
.tag.low, .tag.unknown { background: var(--surface-2); color: var(--text-2); }
.tag.official { background: var(--ok-soft); color: var(--ok); letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.dot.err { background: var(--err); box-shadow: 0 0 0 4px var(--err-soft); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }

.banner { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 14px; border-radius: 12px; font-size: 13.5px; font-weight: 500; }
.banner .i { width: 18px; height: 18px; }
.banner-warn { background: var(--warn-soft); color: var(--warn); }
.banner-err { background: var(--err-soft); color: var(--err); }
.banner-ok { background: var(--ok-soft); color: var(--ok); }
.banner-info { background: var(--accent-soft); color: var(--text); }
.banner-info .i { color: var(--accent); }

.pop { animation: pop .4s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }

/* ── Structure ── */
#app { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; }
.sidebar { display: none; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--safe-t)) 16px 10px;
    background: var(--chrome); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border-bottom: 1px solid var(--border); }
.topbar .brandline { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar h1 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.topbar-spacer { flex: 1; }
main { padding: 18px 16px calc(var(--tabbar-h) + 40px + var(--safe-b)); max-width: 1080px; margin: 0 auto; animation: view-in .35s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }
.page-head { margin-bottom: 18px; }
.page-head h2 { font-size: 22px; letter-spacing: -.02em; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }

.tabbar { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--safe-b)); width: min(440px, calc(100% - 24px));
    height: var(--tabbar-h); display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 6px; background: var(--chrome);
    border: 1px solid var(--border-2); border-radius: 24px; backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); box-shadow: var(--shadow); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 18px; color: var(--muted);
    font-size: 11px; font-weight: 600; transition: color .2s, background .3s var(--ease), transform .18s var(--spring); }
.tab:active { transform: scale(.92); }
.tab[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.tab[aria-current="page"] .i { transform: translateY(-1px) scale(1.12); fill: var(--accent-soft); stroke-width: 2.1; }
.tab .i { transition: transform .3s var(--spring); }

/* ── Cartes de chiffres ── */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
    transition: transform .25s var(--spring), border-color .2s; }
.stat:active { transform: scale(.97); }
@media (hover: hover) { .stat:hover { border-color: var(--accent-line); transform: translateY(-2px); } }
.stat .lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat b { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12.5px; color: var(--muted); }
.stat.critical { border-color: color-mix(in srgb, var(--err) 35%, transparent); background: linear-gradient(180deg, var(--err-soft), var(--surface)); }
.stat.critical b, .stat.critical .lbl { color: var(--err); }
.stat.critical.zero { border-color: var(--border); background: var(--surface); }
.stat.critical.zero b, .stat.critical.zero .lbl { color: var(--text); }
.stat.high b { color: var(--warn); }

/* ── Lignes de vulnérabilité ── */
.list { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.vrow { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
    content-visibility: auto; contain-intrinsic-size: auto 68px; transition: border-color .2s, transform .18s var(--spring), background .2s; }
.vrow:active { transform: scale(.985); }
@media (hover: hover) { .vrow:hover { border-color: var(--accent-line); background: var(--surface-2); } }
.vrow-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--muted); }
.vrow-ico.critical { background: var(--err-soft); color: var(--err); }
.vrow-ico.high { background: var(--warn-soft); color: var(--warn); }
.vrow-ico.medium { background: var(--accent-soft); color: var(--accent); }
.vrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vrow-id { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.vrow-title { font-size: 13.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vrow-meta { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vrow-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.vrow-score { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.cols { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); }
.stack { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-content: start; }

/* ── Sources / statut ── */
.src { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--border); }
.src:first-of-type { border-top: 0; }
.src-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.src-main b { font-size: 14px; }
.src-main small { color: var(--muted); font-size: 12.5px; }
.src-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.src-state.ok { color: var(--ok); } .src-state.err { color: var(--err); } .src-state.warn { color: var(--warn); } .src-state.mute { color: var(--muted); }
.src-state .i { width: 16px; height: 16px; }
.status-hero { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 16px; border-radius: 18px; border: 1px solid var(--accent-line);
    background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
.status-hero.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: linear-gradient(135deg, var(--ok-soft), var(--surface)); }
.status-hero.warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: linear-gradient(135deg, var(--warn-soft), var(--surface)); }
.status-hero strong { font-size: 17px; display: block; }
.status-hero small { color: var(--text-2); }
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border-2); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; }

/* ── Recherche & filtres ── */
.omnibox { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12); transition: border-color .2s, box-shadow .25s; }
.omnibox:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 30px rgba(0,0,0,.16); }
.omnibox .i { color: var(--muted); }
.omnibox input { flex: 1; min-width: 0; background: none; border: 0; box-shadow: none; min-height: 44px; padding: 0 8px; }
.omnibox input:focus { border: 0; box-shadow: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--surface-2); color: var(--text-2);
    font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background .2s, transform .18s var(--spring); }
.chip:active { transform: scale(.95); }
.chip[aria-current="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }
.chip .count { margin-left: 6px; opacity: .7; font-weight: 500; }
.filters { display: grid; gap: 8px; margin: 14px 0 16px; }
.results-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.pager span { color: var(--muted); font-size: 13.5px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .empty-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: var(--surface-2); color: var(--accent); margin-bottom: 6px; }
.empty .empty-ico .i { width: 28px; height: 28px; }
.empty strong { color: var(--text); font-size: 16px; }

/* ── Fiche ── */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); font-weight: 600; font-size: 14px; }
.back .i { width: 18px; height: 18px; }
.detail-head h2 { font-size: 26px; letter-spacing: -.03em; word-break: break-word; }
.detail-head .title { font-size: 17px; color: var(--text-2); margin: 4px 0 10px; line-height: 1.35; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.big-score { display: flex; align-items: baseline; gap: 10px; }
.big-score b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.big-score b.critical { color: var(--err); } .big-score b.high { color: var(--warn); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { min-width: 0; word-break: break-word; }
.prose { white-space: pre-line; color: var(--text-2); line-height: 1.55; word-break: break-word; }
.notice { font-size: 13px; color: var(--muted); margin-top: 10px; }
.notice.warn { color: var(--warn); }
.reflist { list-style: none; display: grid; gap: 4px; }
.reflist a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 6px; border-radius: 10px; color: var(--accent); word-break: break-all; font-size: 13.5px; }
.reflist a small { color: var(--muted); margin-left: auto; flex: none; }
@media (hover: hover) { .reflist a:hover { background: var(--accent-soft); } }
.reflist .i { width: 15px; height: 15px; }
.srcs { list-style: none; display: grid; gap: 6px; }
.srcs li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.srcs .i.ok { color: var(--ok); width: 18px; height: 18px; }
.timeline { list-style: none; display: grid; gap: 0; border-left: 2px solid var(--border-2); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 14px 16px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline small { color: var(--muted); display: block; }
details.more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--accent); font-weight: 600; font-size: 13.5px; }

/* ── Flux / API ── */
.linklist { display: flex; flex-wrap: wrap; gap: 8px; }
.linklist a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; font-weight: 600; }
.linklist .i { width: 16px; height: 16px; color: var(--accent); }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
pre { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; overflow-x: auto; }
:not(pre) > code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.prosebox h3 { font-size: 15px; margin: 18px 0 6px; } .prosebox p, .prosebox li { color: var(--text-2); margin-bottom: 8px; } .prosebox ul { padding-left: 20px; }

.form-stack { display: flex; flex-direction: column; gap: 14px; max-width: 380px; }
.flash { padding: 11px 14px; border-radius: 12px; margin-bottom: 12px; font-size: 14px; }
.flash.ok { background: var(--ok-soft); color: var(--ok); } .flash.err { background: var(--err-soft); color: var(--err); }
.inline-form { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.footer { margin-top: 32px; color: var(--muted); font-size: 12.5px; text-align: center; }
.footer a:hover { color: var(--accent); }

/* ── Bureau ≥ 960 px : barre latérale ── */
@media (min-width: 960px) {
    #app { display: grid; grid-template-columns: 268px minmax(0, 1fr); }
    .sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 22px; padding: 24px 16px 20px;
        border-right: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 55%, transparent); }
    .brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
    .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
    .brand-text strong { font-size: 18px; letter-spacing: -.02em; }
    .brand-text small { color: var(--muted); font-size: 12px; }
    .side-nav { display: flex; flex-direction: column; gap: 4px; }
    .nav-link { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 14px; font-weight: 600; color: var(--muted); position: relative; transition: background .2s, color .2s; }
    .nav-link:hover { background: var(--surface-2); color: var(--text); }
    .nav-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
    .nav-link[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
    .side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; color: var(--muted); padding: 0 6px; }
    .side-foot a:hover { color: var(--accent); }
    .tabbar, .mobile-only { display: none !important; }
    .topbar { padding: 22px 40px 6px; background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; position: static; }
    .topbar .brandline { display: none; }
    main { padding: 10px 40px 60px; margin: 0; }
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cols { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: start; }
    .filters { grid-template-columns: auto auto; justify-content: start; gap: 8px 28px; }
    .detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
    .detail-grid .wide { grid-column: 1 / -1; }
    .list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 959px) { .detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; } .desktop-only { display: none !important; } }
@media (pointer: coarse) { .btn-sm { min-height: 44px; } :focus-visible { outline: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (display-mode: standalone) { .side-credit { display: none; } }
@media print { .tabbar, .sidebar, .topbar, .ambient { display: none; } }

/* ── Utilitaires (la CSP interdit les styles en ligne) ── */
.sprite { position: absolute; width: 0; height: 0; }
.mt-0 { margin-top: 0 !important; } .mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; } .mt-18 { margin-top: 18px; } .mb-4 { margin-bottom: 4px; }
.m-0-10 { margin: 0 0 10px !important; } .gap-2 { gap: 2px; } .pad-s { padding: 2px 6px; } .wrap { flex-wrap: wrap; }
.start { align-items: flex-start; } .err-text { color: var(--err); } .between { justify-content: space-between; align-items: center; }
.detail-head { margin-bottom: 18px; }
/* Entrée échelonnée des lignes (35 ms, 8 max) — remplace un style en ligne */
.list > .pop:nth-child(2) { animation-delay: 35ms; } .list > .pop:nth-child(3) { animation-delay: 70ms; }
.list > .pop:nth-child(4) { animation-delay: 105ms; } .list > .pop:nth-child(5) { animation-delay: 140ms; }
.list > .pop:nth-child(6) { animation-delay: 175ms; } .list > .pop:nth-child(7) { animation-delay: 210ms; }
.list > .pop:nth-child(n+8) { animation-delay: 245ms; }
.pop { animation-delay: 0ms; }

/* ── Admin : filtre de notifications ── */
textarea { width: 100%; min-height: 96px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid transparent; color: var(--text);
    font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
select { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid transparent; color: var(--text); font-size: 16px; }
select option { background: var(--solid); color: var(--text); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.check small { color: var(--muted); }
.fieldset { border: 1px solid var(--border); border-radius: 14px; padding: 8px 14px 14px; display: grid; gap: 4px; }
.fieldset legend { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 6px; }
.notif-form { max-width: 560px; }
.wrapchips { flex-wrap: wrap; overflow: visible; max-height: 150px; overflow-y: auto; }
.wrapchips .chip { min-height: 36px; padding: 0 12px; font-size: 13px; }

.missing { background: var(--warn-soft); color: var(--warn); border-radius: 6px; padding: 0 6px; font-weight: 600; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }
.side-legal { display: flex; flex-direction: column; gap: 2px; }
.side-legal a { min-height: 32px; display: flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }

/* Pas de débordement des cartes : un contenu long (URL, bloc de code) revient à la ligne au lieu d'élargir la colonne */
.card, .detail-grid > *, .cols > *, .stack > * { min-width: 0; }
.card { overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
code { overflow-wrap: anywhere; }
