/* security.rudwolf.fr · direction « Fiche technique » (datasheet de composant). */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
}

:root {
  --bg: #0e1116;
  --rail: #0b0e12;
  --raise: #161d26;
  --line: #222a34;
  --line-2: #2a3340;
  --fg: #e6edf3;
  --mut: #8b98a7;
  --dim: #7c8895;
  --amber: #e0a63a;
  --ok: #3fb950;
  --warn: #d29922;
  --alert: #e5534b;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: "Inter", system-ui, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--line-2) var(--bg); }
body {
  margin: 0; min-height: 100vh;
  display: grid; grid-template-columns: 216px minmax(0, 1fr);
  background: var(--bg); color: var(--fg);
  font: 14px/1.5 var(--sans);
  font-variant-numeric: tabular-nums;
  caret-color: var(--amber);
}
::selection { background: var(--amber); color: var(--bg); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--bg); border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ---------- Rail ---------- */
.rail {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 22px;
  padding: 22px 16px 18px; background: var(--rail); border-right: 1px solid var(--line);
}
.rail-head { display: flex; flex-direction: column; gap: 18px; }
.brand {
  font: 500 13px/1 var(--mono); letter-spacing: .02em; color: var(--fg); text-decoration: none;
  padding: 2px 2px;
}
.brand b { color: var(--amber); font-weight: 500; }
.rail-list { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rail-list .sec-t { margin-bottom: 6px; }
.fiches { overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.fiches li + li { margin-top: 2px; }
.fiche-link {
  display: grid; grid-template-columns: 1fr auto; gap: 1px 8px;
  width: 100%; padding: 7px 8px; text-align: left;
  background: none; border: 1px solid transparent; border-radius: 3px;
  color: var(--fg); font: inherit; cursor: pointer;
}
.fiche-link:hover { background: var(--raise); }
.fiche-link[aria-current="true"] { background: var(--raise); border-color: var(--line-2); }
.fiche-link[aria-current="true"] .fl-id { color: var(--amber); }
.fl-id { font: 500 11px/1.5 var(--mono); color: var(--mut); letter-spacing: .03em; }
.fl-v { font: 500 11px/1.5 var(--mono); text-align: right; color: var(--mut); }
.fl-v.error, .fl-v.alert { color: var(--alert); } .fl-v.ok { color: var(--ok); } .fl-v.running { color: var(--amber); } .fl-v.warn { color: var(--warn); }
.fl-t {
  grid-column: 1 / -1; font: 13px/1.4 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fl-m { grid-column: 1 / -1; font-size: 11px; color: var(--dim); }
.fiches-empty { color: var(--mut); font-size: 12.5px; padding: 6px 2px; }
.ref.rail-foot { margin-top: auto; font-family: var(--sans); text-wrap: balance; }

/* ---------- Boutons, champs ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--amber); border-radius: 3px;
  background: var(--amber); color: #15110a;
  font: 600 13px/1.2 var(--sans); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary:hover { background: #ebb653; border-color: #ebb653; }
.btn-primary:active { background: #c98f27; }
.btn-primary:disabled { background: transparent; border-color: var(--line-2); color: var(--dim); cursor: not-allowed; }
.btn-primary[aria-pressed="true"] { background: transparent; color: var(--amber); }

.field { margin-top: 14px; }
.field:first-of-type { margin-top: 10px; }
label { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--mut); }
input[type=text], input[type=password], select {
  width: 100%; padding: 9px 11px;
  background: var(--rail); color: var(--fg);
  border: 1px solid var(--line-2); border-radius: 3px;
  font: 14px/1.3 var(--mono);
  transition: border-color .15s;
}
select { font-family: var(--sans); appearance: none; padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat; }
input[type=text]::placeholder { color: var(--dim); }
input[type=text]:hover, input[type=password]:hover, select:hover { border-color: #3a4552; }
input[type=text]:focus, input[type=password]:focus, select:focus { outline: none; border-color: var(--amber); }
input[aria-invalid="true"] { border-color: var(--alert); }
.hint { margin-top: 5px; font-size: 12px; color: var(--mut); }
.state { min-height: 18px; margin-top: 5px; font: 12px/1.5 var(--mono); color: var(--mut); }
#ports-state:empty { display: none; }
.state.ok { color: var(--ok); }
.state.alert { color: var(--alert); }
.check {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  margin: 18px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px;
  color: var(--fg); font-size: 13px; cursor: pointer;
}
.check:hover { border-color: var(--line-2); }
.check input { margin: 2px 0 0; width: 15px; height: 15px; accent-color: var(--amber); }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.actions .hint { margin: 0; }
.msg { margin-top: 12px; padding: 8px 11px; border: 1px solid var(--alert); border-radius: 3px; color: var(--alert); font: 12.5px/1.5 var(--mono); }

/* ---------- Fiche ---------- */
.main { min-width: 0; padding: 26px 34px 48px; }
.fiche { max-width: 1180px; }
.hd {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 2px solid var(--amber);
}
.hd h1 { font: 600 22px/1.25 var(--mono); letter-spacing: -.01em; overflow-wrap: anywhere; }
.meta { margin-top: 5px; font: 12px/1.5 var(--mono); color: var(--mut); }
.meta .sep { color: var(--dim); padding: 0 .55em; }
.meta.prose { font-family: var(--sans); font-size: 12.5px; }
.meta .it { white-space: nowrap; }
.hd-verdict { text-align: right; }
.ref { margin-top: 7px; font: 11px/1.5 var(--mono); color: var(--dim); }

/* filet de tête qui balaie pendant l'analyse */
.hd.running::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--bg) 0 10px, transparent 10px 40px);
  animation: sweep 1.2s linear infinite;
}
@keyframes sweep { to { background-position: 40px 0; } }

/* progression d'un scan réseau : une barre par phase (ambre plein = faite, pointillés = en cours) */
.phase-bar { margin-top: 14px; }
.pb-t { font: 12px/1.5 var(--mono); color: var(--mut); }
.pb-t b { font-weight: 500; color: var(--amber); }
.pb-list { list-style: none; margin: 7px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pb-seg { font: 11px/1.4 var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-seg::before { content: ""; display: block; height: 4px; margin-bottom: 5px; border-radius: 1px; background: var(--line-2); }
.pb-seg.done { color: var(--mut); }
.pb-seg.done::before { background: var(--amber); }
.pb-seg.now { color: var(--amber); }
.pb-seg.now::before {
  background: repeating-linear-gradient(90deg, var(--amber) 0 10px, transparent 10px 20px) 0 0 / 20px 4px;
  animation: pb-sweep 1s linear infinite;
}
.pb-n { font-weight: 600; }
@keyframes pb-sweep { to { background-position: 20px 0; } }

.badge {
  display: inline-block; padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 3px;
  font: 500 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--mut);
}
.badge.alert { border-color: var(--alert); color: var(--alert); }
.badge.ok { border-color: var(--ok); color: var(--ok); }
.badge.warn { border-color: var(--warn); color: var(--warn); }
.badge.running { border-color: var(--amber); color: var(--amber); }
.badge.error { border-color: var(--alert); background: rgba(229, 83, 75, .12); color: var(--alert); }

.grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; margin-top: 22px; }
.grid.single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
#scan-form .col { gap: 0; }
.sec-t {
  display: flex; align-items: baseline; gap: 8px;
  padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
  font: 500 11px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .09em; color: var(--mut);
}
.count { font-family: var(--mono); color: var(--dim); letter-spacing: 0; }
.tag { margin-left: auto; font: 11px/1.4 var(--mono); text-transform: none; letter-spacing: 0; color: var(--ok); }

.scroll-x { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font: 13px/1.45 var(--mono); }
th {
  text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line);
  font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--dim);
}
td { padding: 7px 8px; border-bottom: 1px solid var(--raise); vertical-align: top; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.empty { color: var(--mut); font-family: var(--sans); font-size: 13px; padding: 12px 8px; }
.kv th { width: 32%; padding: 8px 8px; border-bottom: 1px solid var(--raise); font-size: 11px; color: var(--mut); vertical-align: top; }
.kv td { overflow-wrap: anywhere; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .alert { color: var(--alert); } .mut { color: var(--mut); } .dimt { color: var(--dim); }

/* ---------- Brochage ---------- */
.pins-t .pins-legend { margin-left: auto; display: flex; gap: 14px; font-family: var(--mono); text-transform: none; letter-spacing: 0; }
.pins-legend span { width: 46px; text-align: center; }
.pin {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 46px 46px; align-items: center; gap: 0 10px;
  padding: 6px 0; font: 12px/1.4 var(--mono);
}
.pin.wide { grid-template-columns: 52px minmax(0, 1fr) 9.5rem; }
.pin .p { color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track { position: relative; height: 10px; background: var(--raise); border: 1px solid var(--line); overflow: hidden; }
.fill {
  position: absolute; inset: 0; transform-origin: left center;
  background: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 10px);
}
.fill.dim { background: repeating-linear-gradient(90deg, #3a4552 0 6px, transparent 6px 10px); }
.fill.alert { background: repeating-linear-gradient(90deg, var(--alert) 0 6px, transparent 6px 10px); }
.fill.none { background: none; }
.mark { justify-self: center; width: 9px; height: 9px; border: 1px solid var(--dim); }
.mark.on { background: var(--amber); border-color: var(--amber); }
.mark.sh.on { background: var(--mut); border-color: var(--mut); }
.pin .lbl { justify-self: end; white-space: nowrap; }
.pins-note { margin-top: 8px; font-size: 12px; color: var(--dim); }
.pins.draw .fill { animation: draw .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes draw { from { transform: scaleX(0); } }

/* ---------- Shodan ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { padding: 0 6px; border: 1px solid var(--line-2); border-radius: 3px; font-size: 12px; }
.chip.alert { border-color: var(--alert); color: var(--alert); }

/* ---------- v2 : TLS, CVE, en-têtes ---------- */
.tag.dimt { color: var(--dim); } .tag.warn { color: var(--warn); }
#d-tls .kv + .scroll-x { margin-top: 10px; }
td .sub { display: block; margin-top: 1px; font: 11.5px/1.4 var(--mono); color: var(--dim); overflow-wrap: anywhere; }
td .sub.warn { color: var(--warn); } td .sub.dimt { color: var(--dim); }
#d-grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.cve td:first-child a, .cve td:nth-child(2), .cve td:nth-child(3), .tls-p td:first-child, .hdr td:first-child { white-space: nowrap; }
.cve td:last-child { min-width: 13em; } /* statut du tri OSV : le détail passe à la ligne */
.cve .chip { font-size: 11px; }
a.ext { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a.ext:hover { text-decoration-color: var(--amber); }
.sub-h { margin: 16px 0 4px; font: 500 11px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .09em; color: var(--mut); }
.xpl li { padding: 6px 0; border-bottom: 1px solid var(--raise); font: 12.5px/1.5 var(--mono); overflow-wrap: anywhere; }
.xpl li:last-child { border-bottom: 0; }
.v2-block { margin-top: 26px; }
.hdr th, .hdr td { white-space: nowrap; }
/* force du mot de passe (pwstrength.js, 26/11/2026) */
.pw-meter { display: flex; gap: 3px; margin: 10px 0 6px; }
.pw-meter span { flex: 1; height: 6px; border-radius: 2px; background: var(--raise); }
.pw-meter span.on.alert { background: var(--alert); }
.pw-meter span.on.warn { background: var(--warn); }
.pw-meter span.on.ok { background: var(--ok); }
.pw-lvl { margin: 4px 0; font: 12.5px/1.5 var(--mono); color: var(--mut); }
.pw-list { margin: 8px 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.pw-list li { margin: 3px 0; }
.pw-list.dim li { color: var(--mut); }
.pw-ref { border-top: 1px solid var(--line); padding: 8px 0; }
.pw-ref p { margin: 0 0 4px; font-size: 13px; }
.pw-ref ul { margin: 0; padding: 0; list-style: none; font: 12px/1.55 var(--mono); }
.pw-ref .sub { display: block; margin-top: 4px; color: var(--dim); font-size: 11.5px; }
#d-breach th, #d-breach td { white-space: normal; } /* fuites : noms et listes longs */
#d-breach td:nth-child(1) { min-width: 9em; overflow-wrap: anywhere; }
#d-breach th:nth-child(2), #d-breach td:nth-child(2) { white-space: nowrap; }
#d-breach td:nth-child(4) { min-width: 8.5em; }
#d-tech td:nth-child(4), #d-tech td:last-child { white-space: normal; min-width: 14em; }
details.more { margin-top: 8px; border-top: 0; padding-top: 0; }
details.more[open] > summary { margin-bottom: 6px; }
.hv { margin-top: 12px; }
.hv-h { font: 500 12.5px/1.5 var(--mono); }
.hv .kv th { width: 26%; text-transform: none; letter-spacing: 0; }
.hv .kv td { font-size: 12px; }
.sd-st { margin: 0 0 6px; font: 12.5px/1.5 var(--mono); color: var(--mut); overflow-wrap: anywhere; }
.sd-st.warn { color: var(--warn); }

/* ---------- Constats ---------- */
.cons-wrap { margin-top: 26px; }
.cons li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 10px;
  padding: 9px 12px; margin-top: 6px; background: var(--rail); border: 1px solid var(--line); border-radius: 3px;
  font: 13.5px/1.5 var(--sans);
}
.cons li.f-alert { border-color: rgba(229, 83, 75, .45); }
.cons .lv { font: 600 12.5px/1.6 var(--mono); }
.cons .f-alert .lv { color: var(--alert); }
.cons .f-ok .lv { color: var(--ok); }
.cons .f-info .lv { color: var(--mut); }
.cons .tx { color: var(--fg); overflow-wrap: anywhere; }
.cons .proof {
  grid-column: 2; display: flex; gap: 10px; color: var(--dim); font: 12px/1.5 var(--mono); overflow-wrap: anywhere;
}
.cons .proof b { flex: none; font-weight: 500; color: var(--mut); }
.cons .f-none { grid-template-columns: 1fr; color: var(--mut); font-family: var(--sans); font-size: 13px; }

details { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 12px; }
summary { cursor: pointer; font-size: 12.5px; color: var(--mut); width: fit-content; }
summary:hover { color: var(--fg); }
pre {
  margin: 10px 0 0; padding: 14px; max-height: 60vh; overflow: auto;
  background: var(--rail); border: 1px solid var(--line); border-radius: 3px;
  font: 12.5px/1.55 var(--mono); white-space: pre-wrap; color: var(--fg);
}

/* ---------- Aperçu du formulaire ---------- */
.preview .lead { margin: 8px 0 6px; font: 13px/1.5 var(--mono); }
.preview .pin.wide { grid-template-columns: 88px minmax(0, 1fr) 9.5rem; }
.preview .lead b { color: var(--amber); font-weight: 500; }
.preview p.note { margin-top: 10px; font-size: 12.5px; color: var(--mut); max-width: 60ch; }
.preview .plist li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--raise); font: 12.5px/1.5 var(--mono); }
.preview .plist li:last-child { border-bottom: 0; }
.preview .plist b { width: 64px; flex: none; color: var(--mut); font-weight: 500; }

/* ---------- Rail : navigation entre pages ---------- */
.rail-head a.btn-primary { text-decoration: none; }
.rail-nav { display: flex; flex-direction: column; }
.rail-nav .sec-t { margin-bottom: 6px; }
.rail-nav .fiche-link { text-decoration: none; }
.rail-nav .fiche-link + .fiche-link { margin-top: 2px; }
.rail-nav .fiche-link[aria-current="page"] { background: var(--raise); border-color: var(--line-2); }
.rail-nav .fiche-link[aria-current="page"] .fl-t { color: var(--amber); }
.rail-about {
  width: fit-content; padding: 2px; font-size: 12.5px; color: var(--mut);
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
.rail-about:hover { color: var(--fg); text-decoration-color: var(--mut); }

/* ---------- Page « À propos » (catalogue des scans) ---------- */
.about .hd .ref { margin-top: 0; align-self: flex-end; }
.about .hd .meta { display: flex; flex-wrap: wrap; }
.lede { max-width: 70ch; margin: 18px 0 24px; font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.about code { font: 12px/1.5 var(--mono); }

/* onglets : la ligne de base se prolonge après le dernier onglet */
.tabs { display: flex; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.tabs::after { content: ""; flex: 1 0 12px; border-bottom: 1px solid var(--line); }
.tabs [role="tab"] {
  flex: none; display: inline-flex; align-items: baseline; gap: 8px;
  padding: 10px 15px 9px; background: none; cursor: pointer;
  border: 1px solid transparent; border-bottom-color: var(--line); border-radius: 3px 3px 0 0;
  color: var(--mut); font: 500 13px/1.3 var(--sans);
  transition: color .15s, background-color .15s;
}
.tabs [role="tab"]:hover { color: var(--fg); }
.tabs [role="tab"][aria-selected="true"] {
  padding-top: 9px; background: var(--rail); color: var(--fg);
  border-color: var(--line); border-top: 2px solid var(--amber); border-bottom-color: var(--rail);
}
.tabs [role="tab"]:focus-visible { outline-offset: -3px; }
.tabs .count { font-size: 11px; }

.tab-frame { padding: 20px 22px 22px; background: var(--rail); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 3px 3px; }
html:not(.js-tabs) .tab-frame { border-top: 1px solid var(--line); border-radius: 3px; }
html:not(.js-tabs) .tabpanel + .tabpanel { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
/* panneau fermé mais trouvable par Ctrl+F : le navigateur le masque lui-même */
.tabpanel[hidden="until-found"] { display: block !important; }
.panel-t { margin-bottom: 4px; font: 600 16px/1.3 var(--sans); }
.js-tabs .panel-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ctx { margin-bottom: 10px; font: 12px/1.5 var(--mono); color: var(--mut); }
.ctx .sep { color: var(--dim); padding: 0 .55em; }

/* tableau de spécifications : prose en Inter, références et commandes en mono */
.spec { font: 14px/1.55 var(--sans); }
.spec thead th { white-space: nowrap; }
.spec tbody td, .spec tbody th { padding: 12px 10px; border-bottom: 1px solid var(--raise); vertical-align: top; text-align: left; }
.spec tbody tr:has(+ .lim-row) > * { border-bottom-color: transparent; }
.spec .c-ref { width: 6%; white-space: nowrap; font: 500 12px/1.75 var(--mono); color: var(--mut); }
.spec .c-nm { width: 13%; font: 600 14px/1.45 var(--sans); text-transform: none; letter-spacing: 0; color: var(--fg); }
.spec .c-nm .ph { display: block; margin-top: 3px; font: 400 11px/1.4 var(--mono); color: var(--dim); }
.spec .c-do { width: 30%; }
.spec .c-not { width: 25%; color: var(--mut); }
.spec .c-cmd { width: 26%; }
.spec-later .c-do { width: 52%; }
/* chantiers terminés : grisés, mention « fait » en vert ; en partie : ambre (26/11/2026) */
.spec-later tr.done td, .spec-later tr.done th { color: var(--dim); }
.spec-later tr.done .c-nm .ph { color: var(--ok); }
.spec-later .c-nm .ph.part { color: var(--warn); }
.c-cmd code {
  display: block; padding: 6px 9px; background: var(--bg); border: 1px solid var(--line); border-radius: 3px;
  color: var(--fg); white-space: normal; overflow-x: auto; scrollbar-width: thin;
}
.c-cmd code .a { white-space: nowrap; }
.c-cmd code + code { margin-top: 4px; }
.c-cmd .cmd-note { display: block; margin-top: 5px; font-size: 12px; color: var(--dim); }
.spec tbody .lim-row td { padding: 0 10px 14px; }
.lim {
  padding: 8px 12px; background: var(--bg); border: 1px solid rgba(229, 83, 75, .45); border-radius: 3px;
  font-size: 13.5px; line-height: 1.55;
}
.lim b { margin-right: 10px; font: 600 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--alert); }
.lim .lift { display: block; margin-top: 2px; color: var(--mut); }

.sub-t { margin-top: 26px; }
.about .kv td { font: 14px/1.55 var(--sans); }
.about .kv th { width: 19%; }
.about .kv th, .about .kv td { padding-left: 10px; padding-right: 10px; }
.note { max-width: 75ch; margin-top: 14px; font-size: 13.5px; color: var(--mut); }
.about-foot { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mut); }
.about-foot a, .note a { color: var(--fg); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.about-foot a:hover { text-decoration-color: var(--mut); }

/* onglets en écran étroit : ils passent à la ligne, tous visibles */
@media (max-width: 600px) {
  .tabs { flex-wrap: wrap; gap: 4px; overflow: visible; margin-bottom: 8px; }
  .tabs::after { display: none; }
  .tabs [role="tab"] { border: 1px solid var(--line); border-radius: 3px; padding: 7px 11px; }
  .tabs [role="tab"][aria-selected="true"] { padding-top: 6px; border-color: var(--line-2); border-top: 2px solid var(--amber); }
  .js-tabs .tab-frame { border-top: 1px solid var(--line); border-radius: 3px; }
}

/* tableau empilé : une ligne = un bloc, libellés des colonnes répétés */
@media (max-width: 1000px) {
  .spec thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .spec, .spec tbody { display: block; }
  .spec tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; padding: 14px 0; border-bottom: 1px solid var(--raise); }
  .spec tbody tr:has(+ .lim-row) { border-bottom-color: transparent; padding-bottom: 6px; }
  .spec tbody td, .spec tbody th { display: block; width: auto; padding: 0; border: 0; }
  .spec .c-ref, .spec .c-nm, .spec .c-do, .spec .c-not, .spec .c-cmd { width: auto; }
  .spec .c-do, .spec .c-not, .spec .c-cmd { grid-column: 1 / -1; }
  .spec .c-do::before, .spec .c-not::before, .spec .c-cmd::before {
    display: block; margin: 10px 0 3px; font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--dim);
  }
  .spec .c-do::before { content: "Fait"; }
  .spec .c-not::before { content: "Ne fait pas"; }
  .spec .c-cmd::before { content: "Commande"; }
  .spec.k-appel .c-cmd::before { content: "Appel"; }
  .spec.k-preuve .c-cmd::before { content: "Preuve"; }
  .spec-later .c-do::before { content: "Apportera"; }
  .spec-later .c-not::before { content: "Prérequis ou coût"; }
  .spec tbody .lim-row { padding-top: 0; }
  .spec tbody .lim-row .c-pad { display: none; }
  .spec tbody .lim-row td { grid-column: 1 / -1; padding: 0; }
}

/* ---------- Écran étroit ---------- */
@media (max-width: 820px) {
  body { display: block; }
  .rail {
    position: static; height: auto; gap: 14px; padding: 16px 16px 12px;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .rail-head { flex-direction: row; align-items: center; justify-content: space-between; }
  .fiches { display: flex; gap: 6px; overflow-x: auto; margin: 0; padding: 0 0 6px; }
  .fiches li + li { margin-top: 0; }
  .fiches li { flex: none; width: 180px; }
  .fiche-link { border-color: var(--line); }
  .rail-foot { display: none; }
  .main { padding: 20px 16px 40px; }
  .grid, #d-grid2 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hd-verdict { text-align: left; }
  .hd h1 { font-size: 19px; }
  .tab-frame { padding: 14px 12px 16px; }
  .rail-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .rail-nav .sec-t { display: none; }
  .rail-nav .fiche-link + .fiche-link { margin-top: 0; }
  .rail-nav .fiche-link { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hd.running::after, .pins.draw .fill, .pb-seg.now::before { animation: none; }
}

/* Bilan (feu à 3 états, 25/11/2026) : sous l'en-tête, avant le détail ; couleur = état seulement (State Only Rule) */
.bilan {
  margin-top: 18px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 22px; align-items: start;
  padding: 13px 14px; background: var(--rail); border: 1px solid var(--line); border-radius: 3px;
}
.bilan.alert { border-color: rgba(229, 83, 75, .45); }
.bilan.warn { border-color: rgba(210, 153, 34, .45); }
.bilan.ok { border-color: rgba(63, 185, 80, .45); }
.bl-s { display: flex; align-items: center; gap: 10px; font: 600 15px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--mut); }
.bl-m { width: 12px; height: 12px; flex: none; background: var(--dim); }
.bilan.alert .bl-s { color: var(--alert); } .bilan.alert .bl-m { background: var(--alert); }
.bilan.warn .bl-s { color: var(--warn); } .bilan.warn .bl-m { background: var(--warn); }
.bilan.ok .bl-s { color: var(--ok); } .bilan.ok .bl-m { background: var(--ok); }
.bl-r { list-style: none; margin: 0; padding: 0; font: 13.5px/1.5 var(--sans); color: var(--fg); overflow-wrap: anywhere; }
.bl-r li + li { margin-top: 3px; }
.bl-r .more, .bl-r.none { color: var(--mut); }
.bl-f { margin-top: 7px; font: 12px/1.5 var(--mono); color: var(--mut); }
.bl-f .sep { color: var(--dim); padding: 0 .55em; }
.bl-f .it { white-space: nowrap; }
@media (max-width: 820px) { .bilan { grid-template-columns: minmax(0, 1fr); } }

/* Exports (26/11/2026) : boutons discrets sous le verdict */
.hd-act { display: flex; justify-content: flex-end; gap: 6px; margin-top: 9px; }
.btn-ghost {
  padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 3px; background: transparent; color: var(--mut);
  font: 500 11px/1.4 var(--mono); letter-spacing: .05em; text-decoration: none; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
/* J1 : bouton « Scan interne » sous « Nouveau scan » (26/11/2026) */
.rail-head .btn-internal { padding: 8px 10px; font-size: 12px; margin-top: -8px; }
.btn-ghost:disabled { color: var(--dim); border-color: var(--line); cursor: wait; }
#d-listen td:nth-child(4), #d-listen td:last-child { white-space: normal; min-width: 12em; }
#d-pc td:first-child, #d-pc td:nth-child(5), #d-pc td:last-child { white-space: normal; }
#d-pc td:last-child { min-width: 14em; }
@media (max-width: 820px) { .rail-head .btn-internal { margin-top: 0; } }
@media (max-width: 820px) { .hd-act { justify-content: flex-start; } }
.print-only, td .sub.print-only { display: none; } /* td .sub est plus précis que .print-only seul */

/* ---------- PDF : impression du navigateur, charte du site en inspiration, sur fond clair ----------
   Correction de Rodolphe (26/11/2026) : un PDF noir ne s'imprime pas ; on garde polices, accent ambre, filets
   et structure, sur papier blanc. Couleurs de texte : contraste sur blanc de 4,5 au moins (calculé : texte 16,6,
   ambre 5,1, ok 5,1, avertissement 4,9, alerte 5,4, gris 6,4 et 5,3).
   Boîtes de marge : texte fixe ici, texte propre à la fiche écrit par app.js (style#print-page). */
@page {
  size: A4; margin: 17mm 12mm 15mm;
  @top-left { content: "security.rudwolf.fr"; font: 500 9pt "IBM Plex Mono", monospace; color: #9a6200; vertical-align: bottom; padding-bottom: 3mm; }
  @top-right { font: 9pt "IBM Plex Mono", monospace; color: #57606a; vertical-align: bottom; padding-bottom: 3mm; }
  @bottom-left { font: 8pt "IBM Plex Mono", monospace; color: #656d76; vertical-align: top; padding-top: 3mm; }
  @bottom-right { content: counter(page) " / " counter(pages); font: 8pt "IBM Plex Mono", monospace; color: #656d76; vertical-align: top; padding-top: 3mm; }
}
@media print {
  :root {
    --bg: #ffffff; --rail: #f6f8fa; --raise: #e6e9ed; --line: #d0d7de; --line-2: #bfc7d0;
    --fg: #1b1f24; --mut: #57606a; --dim: #656d76;
    --amber: #9a6200; --ok: #1a7f37; --warn: #9a6700; --alert: #cf222e;
  }
  html, body { background: #fff; color: var(--fg); }
  /* les couleurs d'état, barres et pastilles s'impriment même sans « Graphiques d'arrière-plan » */
  .main { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { display: block; min-height: 0; }
  .rail, #new-scan, #d-phases, #d-export, #sec-report { display: none !important; }
  .main { padding: 0; }
  .fiche { max-width: none; }
  .print-only, td .sub.print-only { display: block; }
  .scroll-x { overflow: visible; }
  table { font-size: 11px; }
  .hdr th, .hdr td, .cve td:first-child a, .cve td:nth-child(2), .cve td:nth-child(3), .tls-p td:first-child { white-space: normal; }
  .cve td:last-child { min-width: 0; }
  tr, .cons li, .bilan, .hv, .pins, .sd-st, #sd-none { break-inside: avoid; }
  .sec-t, summary { break-after: avoid; }
  summary { list-style: none; cursor: default; }
  summary::-webkit-details-marker { display: none; }
  .pins.draw .fill { animation: none; }
}
