/* =========================================================================
   Opération Reprise · Portail de crise FRIGELIA
   Un outil interne de réponse à incident : clair, sobre, une seule couleur
   d'accent (l'indigo FRIGELIA), aucun dégradé décoratif.
   Les interventions d'ØMBRA et le canal de l'Insider sont sombres.
   ========================================================================= */

:root {
  --accent: #3100ff;
  --accent-700: #2600c4;
  --accent-50: #f2efff;
  --accent-100: #e3ddff;

  --bg: #f1f2f5;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --border: #e3e5ea;
  --border-strong: #cfd3da;
  --text: #15171c;
  --text-2: #4f5562;
  --text-3: #858b97;

  --ok: #0d7a4e; --ok-50: #e9f6ef; --ok-200: #bfe3cf;
  --danger: #c0283f; --danger-50: #fdecee;

  --omb-bg: #05060a; --omb-red: #ff2e4d; --omb-steel: #c6cbd4; --omb-dim: #5b6472;

  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 12px 32px rgba(16, 24, 40, .08);
  --r: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#app { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------------- Boutons, champs, messages ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 7px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-700); border-color: var(--accent-700); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-100); }
.btn:disabled { cursor: default; opacity: .75; }
.btn svg { width: 16px; height: 16px; }
.btn.block { width: 100%; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; color: #c9ced8; border-color: #2c303b; }
.btn.ghost:hover { background: #1a1d25; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.input {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 7px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-family: var(--mono); font-size: 14.5px; letter-spacing: .3px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 10px 13px; resize: none; line-height: 1.45; font-size: 12.5px; word-break: break-all; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-100); }
.input::placeholder { color: var(--text-3); letter-spacing: 0; }
.vmsg { min-height: 20px; margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.vmsg.bad { color: var(--danger); }
.shake { animation: shake .32s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.loading { margin: auto; display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 13px; }

/* ---------------- Écran d'accès ---------------- */
.gate { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; gap: 18px; }
.gate-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 32px 32px 24px; }
.gate-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.gate-brand img { width: 38px; height: 38px; border-radius: 9px; }
.gate-brand b { display: block; font-size: 15px; letter-spacing: 1.6px; }
.gate-brand span { display: block; font-size: 12px; color: var(--text-3); margin-top: -2px; }
.gate h1 { font-size: 22px; font-weight: 650; letter-spacing: -.2px; }
.gate-lead { color: var(--text-3); font-size: 13px; margin: 4px 0 24px; }
.gate label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.gate .btn.block { margin-top: 12px; }
.gate-resume { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 14px; }
.gate-resume summary { cursor: pointer; font-size: 12.5px; color: var(--text-2); list-style: none; }
.gate-resume summary::-webkit-details-marker { display: none; }
.gate-resume summary:hover { color: var(--accent); }
.gate-resume[open] summary { margin-bottom: 10px; }
.gate-resume .btn { margin-top: 8px; height: 36px; }
.gate-foot { font-size: 12px; color: var(--text-3); }

/* ---------------- Barre d'application ---------------- */
.appbar {
  height: 56px; background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; padding: 0 20px; position: sticky; top: 0; z-index: 30;
}
.appbar .mark { width: 26px; height: 26px; border-radius: 6px; }
.appbar .pname { font-weight: 600; font-size: 14px; letter-spacing: -.1px; }
.appbar .inc { font-family: var(--mono); font-size: 11px; color: var(--text-3); border: 1px solid var(--border); border-radius: 5px; padding: 2px 7px; }
.appbar .sev { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--danger); background: var(--danger-50); border-radius: 20px; padding: 2px 9px 2px 8px; }
.appbar .sev i { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
.appbar .spacer { flex: 1; }
.appbar .site { font-size: 12.5px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.appbar .site .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-50); }
.appbar .sep { width: 1px; height: 26px; background: var(--border); }
.appbar .clock { text-align: right; min-width: 92px; }
.appbar .clock .t { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.appbar .clock .t.warn { color: var(--danger); }
.appbar .clock .l { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .7px; }
.more { position: relative; }
.iconbtn { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; color: var(--text-2); }
.iconbtn:hover { background: var(--surface-2); }
.iconbtn svg { width: 18px; height: 18px; }
.menu { position: absolute; right: 0; top: 40px; min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow); padding: 5px; z-index: 40; }
.menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 13px; text-align: left; }
.menu button:hover { background: var(--surface-2); }
.menu svg { width: 16px; height: 16px; color: var(--text-3); }

/* ---------------- Mise en page ---------------- */
.shell { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px 20px 12px; display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
.ttl { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .8px; }
.foot { text-align: center; font-size: 11.5px; color: var(--text-3); padding: 14px 16px 22px; }

/* Plan de reprise */
.runbook .head { padding: 16px 16px 14px; border-bottom: 1px solid var(--border); }
.runbook .bar { height: 4px; background: var(--surface-2); border-radius: 4px; margin: 12px 0 6px; overflow: hidden; }
.runbook .bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .6s ease; }
.runbook .pct { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.steps { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.step { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border-radius: 7px; text-align: left; transition: background .12s; }
.step:hover { background: var(--surface-2); }
.step .ico { width: 18px; height: 18px; flex-shrink: 0; }
.step .ico svg { width: 18px; height: 18px; }
.step .tx { display: flex; flex-direction: column; min-width: 0; }
.step .n { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; }
.step .t { font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.done .ico { color: var(--ok); }
.step.current .ico { color: var(--accent); }
.step.current .t { color: var(--text); font-weight: 600; }
.step.on { background: var(--accent-50); }
.jour-sep { margin: 8px 10px 4px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 10.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .8px; }
.step.on .t { color: var(--accent-700); }

/* Fiche incident */
.facts { padding: 16px; }
.facts.org { padding-bottom: 12px; }
.orgbtn { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; text-align: left; transition: border-color .12s, background .12s; }
.orgbtn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.orgbtn img { width: 68px; height: 46px; object-fit: cover; object-position: center; border-radius: 4px; background: #fff; border: 1px solid var(--border); }
.orgbtn span { font-size: 13px; font-weight: 600; }
.orgbtn small { display: block; font-size: 11.5px; font-weight: 400; color: var(--text-3); }
.lightbox.org { background: rgba(240, 241, 245, .97); cursor: zoom-out; }
.lightbox.org img { background: #fff; border-radius: 10px; box-shadow: 0 10px 40px rgba(16, 24, 40, .18); max-height: calc(100vh - 80px); }
.lightbox.org .lb-hint { color: #8b909b; }
.facts dl { display: grid; grid-template-columns: 74px 1fr; gap: 9px 10px; margin-top: 12px; font-size: 12.5px; }
.facts dt { color: var(--text-3); }
.facts dd { color: var(--text-2); }

/* ---------------- Étape ---------------- */
.main .pad { padding: 34px 44px 40px; }
.mission { animation: enter .22s ease; max-width: 760px; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.eyebrow .k { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .8px; }
.eyebrow .st { font-size: 11.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 1px 9px; }
.eyebrow .st.ok { color: var(--ok); background: var(--ok-50); border-color: var(--ok-200); }
h1.title { font-size: 27px; font-weight: 650; letter-spacing: -.4px; line-height: 1.25; }
.from { display: flex; align-items: center; gap: 11px; margin: 16px 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.from .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-50); color: var(--accent-700); font-size: 11.5px; font-weight: 700; letter-spacing: .5px; flex-shrink: 0; }
.from .av { position: relative; overflow: hidden; }
.from .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.from .who b { display: block; font-size: 13.5px; font-weight: 600; }
.from .who span { display: block; font-size: 12px; color: var(--text-3); margin-top: -1px; }

.prose { font-size: 15px; line-height: 1.65; color: #2a2e37; }
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose b { font-weight: 650; color: var(--text); }
.prose .scene { margin: 18px 0; padding: 14px 18px; background: #f6f5fd; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; color: #262a33; }
.prose .mine { margin: 18px 0 0; padding: 12px 16px; border: 1px solid var(--accent-100); border-radius: 8px; background: var(--surface); font-weight: 600; color: var(--text); }
.prose .mine span { display: block; font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 2px; }
.prose .mine + .mine { margin-top: 10px; }
.prose .mine.secret { font-weight: 400; color: #2a2e37; background: #fbfaff; border-style: dashed; border-color: #b9aaff; }
.prose .mine.secret span { color: var(--accent-700); }
.prose code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }

.section-label { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .8px; margin: 30px 0 10px; }

/* Objectifs : une liste à cocher, propre à chaque site */
.obj { list-style: none; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.obj li + li { border-top: 1px solid var(--border); }
.obj .row { width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; text-align: left; font-size: 14px; color: var(--text); transition: background .12s; }
.obj .row:hover { background: var(--surface-2); }
.obj .cb { width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; flex-shrink: 0; transition: background .12s, border-color .12s; }
.obj .cb svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.obj .row.on .cb { background: var(--accent); border-color: var(--accent); }
.obj .row.on .cb svg { opacity: 1; }
.obj .row.on > span:last-child { color: var(--text-3); }

/* Ressources */
.res { border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.res a { display: flex; align-items: center; gap: 13px; padding: 11px 14px; color: var(--text); transition: background .12s; }
.res a + a { border-top: 1px solid var(--border); }
.res a:hover { background: var(--surface-2); }
.res .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); flex-shrink: 0; }
.res .ic svg { width: 18px; height: 18px; }
.res .tx { flex: 1; min-width: 0; }
.res .tx b { display: block; font-size: 13.5px; font-weight: 600; }
.res .tx span { display: block; font-size: 12px; color: var(--text-3); }
.res .go { color: var(--text-3); }
.res .go svg { width: 16px; height: 16px; }
.res a:hover .go { color: var(--accent); }

/* Validation */
.validate { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--border); }
.validate label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.vrow { display: flex; gap: 10px; max-width: 520px; }
.vrow .btn { min-width: 110px; }

.unlocked { margin-top: 32px; border: 1px solid var(--ok-200); background: var(--ok-50); border-radius: var(--r); padding: 18px 22px 20px; animation: enter .3s ease; }
.unlocked .h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--ok); margin-bottom: 10px; }
.unlocked .h svg { width: 18px; height: 18px; }
.unlocked .prose { font-size: 14.5px; color: #24372d; }
.unlocked .prose .scene { background: rgba(255, 255, 255, .7); border-left-color: var(--ok); }
.unlocked + .btn { margin-top: 18px; }
.bilan { margin-top: 22px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.bilan-h { padding: 9px 14px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.bilan table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bilan td { padding: 7px 14px; border-top: 1px solid var(--border); }
.bilan tr:first-child td { border-top: 0; }
.bilan td.n { color: var(--text-3); width: 80px; }
.bilan td.t { text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.wait { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--text-3); }
.wait svg { width: 16px; height: 16px; }

/* Message vocal (répondeur, message enregistré) */
.voice { display: flex; align-items: center; gap: 13px; margin: 18px 0; padding: 12px 16px 12px 12px; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); }
.voice[hidden] { display: none; }
.voice .vplay { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--accent); color: #fff; transition: background .15s, transform .1s; }
.voice .vplay:hover { background: var(--accent-700); }
.voice .vplay:active { transform: scale(.96); }
.voice .vplay svg { width: 16px; height: 16px; margin-left: 2px; }
.voice.on .vplay svg { margin-left: 0; }
.voice .vbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.voice .vtop { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; line-height: 1.3; }
.voice .vtop b { font-size: 13px; font-weight: 600; color: var(--text); }
.voice .vtop span { font-size: 12px; color: var(--text-3); }
.voice .vbar { height: 4px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; overflow: hidden; }
.voice .vbar span { display: block; height: 100%; width: 0; background: var(--accent); }
.voice .vtime { font-family: var(--mono); font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.unlocked .voice { border-color: var(--ok-200); }
.unlocked .voice .vplay { background: var(--ok); }
.unlocked .voice .vbar span { background: var(--ok); }

/* Dossier d'enquête : photos et journaux */
.evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.ph { margin: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); cursor: zoom-in; transition: border-color .15s, box-shadow .15s; }
.ph:hover, .ph:focus-visible { border-color: var(--border-strong); box-shadow: var(--shadow-sm); outline: none; }
.ph .img { display: block; aspect-ratio: 4 / 3; background: var(--surface-2); }
.ph .img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph figcaption { padding: 8px 12px 10px; font-size: 12px; line-height: 1.4; color: var(--text-3); font-style: normal; }
.ph figcaption b { display: block; font-size: 12.5px; color: var(--text); }
.doc { margin: 16px 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.doc-h { padding: 8px 14px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.doc pre { margin: 0; padding: 12px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: #22252c; white-space: pre; overflow-x: auto; }
.lightbox { position: fixed; inset: 0; z-index: 92; background: rgba(8, 9, 12, .93); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; animation: fade .15s ease; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 130px); border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox figcaption { margin-top: 12px; font-size: 13px; color: #d4d8e0; }
.lightbox figcaption b { color: #fff; margin-right: 8px; }
.lightbox .lb-hint { position: absolute; bottom: 14px; font-size: 11.5px; color: #7d8492; }

/* Scanner de fichiers */
.modal-card.wide { max-width: 620px; }
.scan-h { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.scan-h svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.scan-h p { margin: 0; }
.scan-list { list-style: none; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.scan-list > li + li { border-top: 1px solid var(--border); }
.scan-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.scan-row .fi { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.scan-row .fi svg { width: 18px; height: 18px; }
.scan-row .fn { flex: 1; font-family: var(--mono); font-size: 13px; word-break: break-all; }
.scan-row .btn { height: 32px; padding: 0 12px; font-size: 12.5px; }
.sbadge { font-size: 11.5px; font-weight: 600; border-radius: 20px; padding: 2px 10px; white-space: nowrap; }
.sbadge.ok { color: var(--ok); background: var(--ok-50); }
.sbadge.warn { color: #9a5b00; background: #fff4e0; }
.sbadge.danger { color: var(--danger); background: var(--danger-50); }
.scan-res { padding: 0 12px 12px 40px; }
.scan-res ul { margin: 0; padding-left: 16px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.scan-list > li.danger { background: #fffafb; }
.scan-list > li.ok { background: #f7fcf9; }

/* ---------------- Fenêtres et notifications ---------------- */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(15, 17, 23, .45); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { width: 100%; max-width: 460px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 22px 24px; animation: enter .18s ease; }
.modal-card h3 { font-size: 16px; font-weight: 650; margin-bottom: 6px; }
.modal-card p { font-size: 13.5px; color: var(--text-2); margin-bottom: 14px; }
.modal-card .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(16px); opacity: 0; pointer-events: none;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow); z-index: 90; transition: transform .25s ease, opacity .25s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------------- Canal de l'Insider ---------------- */
.insider { position: fixed; inset: 0; z-index: 95; background: rgba(5, 6, 9, .94); display: grid; place-items: center; padding: 20px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.ins-card { width: 100%; max-width: 520px; background: #0e1015; border: 1px solid #232733; border-radius: 12px; padding: 28px 30px 24px; color: #b9bfcb; font-size: 14px; line-height: 1.65; }
.ins-card .ins-k { font-family: var(--mono); font-size: 11px; color: var(--omb-red); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.ins-card h2 { color: #f2f4f8; font-size: 20px; font-weight: 650; margin-bottom: 14px; }
.ins-card p { margin-bottom: 12px; }
.ins-card b { color: #f2f4f8; }
.ins-card .btn { margin-top: 10px; height: 36px; }
.ins-card .ins-m { margin: 0 0 14px; padding-left: 20px; }
.ins-card .ins-m li { margin-bottom: 10px; }
.ins-card .ins-m li::marker { color: var(--omb-red); font-weight: 700; }
.ins-card .ins-f { font-size: 12.5px; color: #828a98; border-top: 1px solid #232733; padding-top: 12px; }

/* ---------------- Irruption d'ØMBRA ---------------- */
.ombra { position: fixed; inset: 0; z-index: 100; display: none; background: var(--omb-bg); color: var(--omb-steel); font-family: var(--mono); align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 30px; }
.ombra.show { display: flex; animation: fade .2s; }
.ombra .sig { font-size: 72px; color: var(--omb-red); line-height: 1; margin-bottom: 26px; }
.ombra .m { font-size: 19px; max-width: 640px; line-height: 1.6; color: #fff; }
.ombra .x { margin-top: 30px; font-size: 12px; color: var(--omb-dim); }
body.glitch #app { animation: glitch 1.4s steps(3) 1; }
@keyframes glitch {
  0% { transform: translate(0); filter: none; }
  20% { transform: translate(-3px, 1px); filter: hue-rotate(40deg) contrast(1.4); }
  40% { transform: translate(3px, -1px); filter: invert(.1); }
  60% { transform: translate(-2px, 2px); }
  100% { transform: none; filter: none; }
}

/* ---------------- Petits écrans ---------------- */
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; padding: 16px; }
  .side { position: static; }
  .facts { display: none; }
  .main .pad { padding: 24px 20px 28px; }
  .appbar { gap: 10px; padding: 0 12px; }
  .appbar .pname, .appbar .inc, .appbar .sep { display: none; }
}
@media (max-width: 560px) {
  .evidence { grid-template-columns: 1fr; }
  .appbar .sev, .appbar .site { display: none; }
  h1.title { font-size: 23px; }
  .vrow { flex-direction: column; }
}
