@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/source-serif-4-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root, :root[data-theme="light"] {
  --paper: #f6f7f9;
  --surface: #ffffff;
  --ink: #1b2533;
  --ink-2: #4a5566;
  --ink-3: #737f90;
  --rule: #e1e5eb;
  --wash: #eef1f6;
  --accent: #2456c4;
  --accent-ink: #ffffff;
  --accent-soft: #e6edfb;
  --alert: #c5321f;
  --alert-soft: #fbeae7;
  --ok: #17794d;
  --ok-soft: #e3f4ec;
  --warn: #93610a;
  --warn-soft: #fbf1dc;
  --shadow: 0 1px 2px rgba(27, 37, 51, .06);
  --pop: 0 6px 18px rgba(16, 24, 40, .12);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1216;
  --surface: #171b21;
  --ink: #e8eaee;
  --ink-2: #a9b0bb;
  --ink-3: #7f8896;
  --rule: #272c34;
  --wash: #1f242b;
  --accent: #7ea6ff;
  --accent-ink: #0d1524;
  --accent-soft: #1b2638;
  --alert: #ff8f7e;
  --alert-soft: #33201e;
  --ok: #6fd3a2;
  --ok-soft: #16302a;
  --warn: #ecc06a;
  --warn-soft: #30291a;
  --shadow: none;
  --pop: 0 16px 40px rgba(0, 0, 0, .55);
}
:root[data-theme="dark"] .thumb img { filter: brightness(.9); }
:root[data-theme="dark"] .site-head { background: #13171c; }
:root[data-theme="dark"] .head-search input[type=search] { background: var(--wash); }
:root[data-theme="dark"] .sev-critical, :root[data-theme="dark"] .urgency-critical { color: #1a0c0a; }
:root[data-theme="dark"] .quiz-options button { background: var(--wash); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol { margin: 0; padding: 0; }
h1, h2, h3, li { overflow-wrap: anywhere; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
table, time, .stat, .kicker { font-variant-numeric: tabular-nums; }
main { overflow-wrap: anywhere; }
table { overflow-wrap: normal; }
ol { list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--mono); }

/* En-tête et menus */
html { scroll-padding-top: 84px; }
.site-head { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--rule); }
.head-in { position: relative; display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { font: 700 23px/1 var(--serif); letter-spacing: -0.015em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.burger { display: none; }
.menu { display: flex; align-items: center; flex: 1; gap: 14px; min-width: 0; }
.menu-groups { display: flex; gap: 2px; }
.menu-group { position: relative; height: 36px; }
.menu-group > summary { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 5px; font: 500 15px/1.2 var(--sans); color: var(--ink); list-style: none; white-space: nowrap; }
.menu-group > summary::-webkit-details-marker { display: none; }
.menu-group > summary::before { content: none !important; }
.menu-group > summary::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .12s; }
.menu-group[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.menu-group > summary:hover, .menu-group[open] > summary { background: var(--wash); }
.menu-group > summary.is-active { color: var(--accent); }
.menu-panel { position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; display: flex; gap: 26px; width: max-content; max-width: 680px; padding: 14px; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; box-shadow: var(--pop); }
.menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.menu-panel-right, .menu-groups .menu-group:last-child .menu-panel { left: auto; right: 0; }
.menu-col { min-width: 170px; }
.menu-col + .menu-col { padding-left: 26px; border-left: 1px solid var(--rule); }
.menu-title { font: 600 12px/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--accent); padding: 4px 10px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); }
.menu-col a { display: block; padding: 7px 10px; border-radius: 7px; font-size: 15px; }
.menu-col a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.menu-col a[aria-current] { color: var(--accent); font-weight: 600; }
.menu-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.head-search input[type=search] { width: 150px; margin: 0; padding: 7px 11px; font-size: 14px; background: var(--paper); }
.tool-link { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.head-account { padding: 8px 14px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); font: 500 14px var(--sans); white-space: nowrap; }
.head-account:hover { filter: brightness(1.08); text-decoration: none; }
.area-bar { background: var(--accent-soft); border-bottom: 1px solid var(--rule); }
.area-in { display: flex; align-items: center; gap: 22px; min-height: 46px; }
.area-in strong { color: var(--accent); white-space: nowrap; }
.area-in nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.area-in nav::-webkit-scrollbar { display: none; }
.area-in nav a { padding: 6px 12px; border-radius: 7px; font-size: 14.5px; white-space: nowrap; }
.area-in nav a:hover { background: var(--surface); text-decoration: none; }
.area-in nav a[aria-current] { background: var(--surface); color: var(--accent); font-weight: 600; }
.member-shell { padding-top: 24px; }

@media (max-width: 1320px) {
  .head-in { gap: 14px; }
  .head-search input[type=search] { width: 116px; }
}
@media (max-width: 1180px) {
  .head-in { min-height: 56px; justify-content: space-between; gap: 12px; }
  .brand { font-size: 21px; }
  .burger { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-right: -8px; padding: 0; background: none; border: 0; color: var(--ink); }
  .burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .15s, background .15s; }
  .burger span { position: relative; }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -7px; }
  .burger span::after { top: 7px; }
  .menu-open .burger span { background: transparent; }
  .menu-open .burger span::before { background: var(--ink); transform: translateY(7px) rotate(45deg); }
  .menu-open .burger span::after { background: var(--ink); transform: translateY(-7px) rotate(-45deg); }

  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 8px; max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 18px; background: var(--surface); border-bottom: 1px solid var(--rule); box-shadow: var(--pop); }
  .menu-open .menu { display: flex; }
  .menu-groups { flex-direction: column; }
  .menu-group { position: static; height: auto; border-bottom: 1px solid var(--rule); }
  .menu-group > summary { justify-content: space-between; min-height: 50px; padding: 0 4px; font-size: 17px; border-radius: 0; background: none !important; }
  .menu-panel { position: static; display: block; width: auto; max-width: none; padding: 0 0 10px; background: none; border: 0; box-shadow: none; }
  .menu-col { min-width: 0; }
  .menu-col + .menu-col { padding-left: 0; border-left: 0; }
  .menu-panel::before { content: none; }
  .menu-title { padding: 12px 8px 6px; margin-bottom: 2px; }
  .menu-col a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 16px; }
  .menu-tools { flex-wrap: wrap; margin: 6px 0 0; gap: 10px; }
  .head-search { flex-basis: 100%; }
  .head-search input[type=search] { width: 100%; min-height: 46px; font-size: 16px; }
  .tool-link { display: inline-flex; align-items: center; min-height: 44px; }
  .lang-menu { border: 0; }
  .lang-menu > summary { min-height: 44px; font-size: 15px; gap: 8px; }
  .lang-menu[open] { flex-basis: 100%; }
  .head-account { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; }
  .area-in { gap: 4px 10px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 2px; min-height: 0; }
  .area-in strong { font-size: 14px; flex-basis: 100%; }
  .area-in nav { margin: 0 -16px; padding: 0 16px 6px; flex: 1; }
  .area-in nav a { display: inline-flex; align-items: center; min-height: 40px; }
}

main.wrap { padding-top: 30px; padding-bottom: 64px; min-height: 55vh; }

/* Thèmes, CVE et sources liées */
.topics { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 14px; margin-bottom: 4px; }
.topics::-webkit-scrollbar { display: none; }
.topics a { flex: none; padding: 5px 12px; border-radius: 4px; font-size: 13.5px; color: var(--ink-2); background: var(--wash); }
.topics a:hover { text-decoration: none; color: var(--accent); }
.topics a[aria-current] { background: var(--accent); color: var(--accent-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 5px 6px; margin-top: 8px; align-items: center; }
.tag, .cve-tag { font: 500 12px/1.3 var(--sans); padding: 3px 8px; border-radius: 3px; background: var(--wash); color: var(--ink-2); }
.tag:hover, .cve-tag:hover { text-decoration: none; color: var(--accent); }
.cve-tag { font-family: var(--mono); }
.sev-critical { background: var(--alert); color: var(--surface); }
.sev-high { background: var(--alert-soft); color: var(--alert); }
.sev-medium { background: var(--warn-soft); color: var(--warn); }
.sev-low { background: var(--ok-soft); color: var(--ok); }
.also { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; flex-basis: 100%; }
.also a { color: var(--accent); }
.head-links { display: inline-flex; gap: 14px; }
.callout-alert { background: var(--alert-soft); }
.callout-alert strong { color: var(--alert); }
.cve-score { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 10px 0 14px; }
.cve-score strong { font: 700 42px/1 var(--serif); }
.cve-desc { max-width: 76ch; color: var(--ink-2); margin-bottom: 12px; }
.cve-note { font-size: 13px; color: var(--ink-3); margin-top: 18px; }
.cve-row td:first-child { white-space: nowrap; }

/* Fiches d'action et CVE */
.action-tag { font: 600 12.5px/1.3 var(--sans); padding: 3px 9px; border-radius: 3px; background: var(--accent-soft); color: var(--accent); }
.action-tag:hover { text-decoration: none; filter: brightness(.97); }
.alert-action { display: inline-block; margin-top: 4px; font: 500 12.5px var(--sans); color: var(--accent); }
.sheet { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 18px 20px; margin-bottom: 14px; }
.sheet h2 { font: 700 20px/1.25 var(--serif); margin-bottom: 8px; }
.sheet h3 { font: 600 14px/1.3 var(--sans); margin: 16px 0 4px; }
.sheet .hint { margin: 8px 0 10px; }
.sheet-facts { border-top: 2px solid var(--ok); }
.sheet-analysis { border-top: 2px solid var(--warn); }
.fact-list { margin: 6px 0 0; padding-left: 18px; }
.fact-list li { margin: 5px 0; overflow-wrap: anywhere; }
.urgency { display: inline-block; font-weight: 600; padding: 4px 11px; border-radius: 8px; background: var(--wash); }
.urgency-critical { background: var(--alert); color: var(--surface); }
.urgency-high { background: var(--alert-soft); color: var(--alert); }
.urgency-medium { background: var(--warn-soft); color: var(--warn); }
.urgency-low { background: var(--ok-soft); color: var(--ok); }
.original { margin: 8px 0; font-size: 14px; color: var(--ink-2); }
.original summary { font: 500 14px var(--sans); }
.glossary dt { font-weight: 600; margin-top: 8px; }
.glossary dd { margin: 0; color: var(--ink-2); }
.stack-group { border: 0; padding: 0; margin: 0 0 14px; }
.stack-group legend { font: 600 13px var(--sans); color: var(--accent); padding: 0; margin-bottom: 6px; }
.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 14px; }

/* Apprendre, lab et outils */
.path { display: grid; gap: 10px; margin-bottom: 18px; }
.path-step { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px; transition: border-color .12s; }
.path-step:hover { border-color: var(--accent); text-decoration: none; }
.path-step strong { display: block; font: 700 18px/1.3 var(--serif); }
.path-step small { color: var(--ink-2); font-size: 14px; }
.path-num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.path-done { margin-left: auto; }
.lesson { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 18px; margin-bottom: 12px; }
.lesson h2 { font: 700 19px/1.25 var(--serif); margin-bottom: 6px; }
.lesson p { color: var(--ink-2); }
code { font: 400 .92em var(--mono); background: var(--wash); padding: 1px 5px; border-radius: 4px; }
.next-step { margin-top: 20px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.service { display: block; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 16px; transition: border-color .12s; }
.service:hover { border-color: var(--accent); text-decoration: none; }
.service strong { display: block; font: 700 18px/1.3 var(--serif); margin-bottom: 4px; }
.service span { color: var(--ink-2); font-size: 14.5px; }
.quiz-item { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px; margin-bottom: 12px; }
.quiz-q { font-weight: 600; margin-bottom: 8px; }
.quiz-options { display: grid; gap: 6px; }
.quiz-options button { text-align: left; background: var(--paper); border: 1px solid var(--rule); color: var(--ink); padding: 10px 12px; font: 400 15px var(--sans); }
.quiz-options button:hover:enabled { border-color: var(--accent); }
.quiz-options button.is-right { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.quiz-options button.is-wrong { background: var(--alert-soft); border-color: var(--alert); color: var(--alert); }
.quiz-options button:disabled { cursor: default; }
.quiz-why { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }
.quiz-result { font-weight: 600; }
.scenario { margin: 0 0 10px; padding: 12px; background: var(--wash); border-radius: 8px; font: 400 13px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.py-status { color: var(--ink-2); font-size: 14.5px; }
.py-ex { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 16px; margin-bottom: 14px; }
.py-ex h2 { font: 700 19px/1.25 var(--serif); margin-bottom: 4px; }
.py-ex p { color: var(--ink-2); margin-bottom: 8px; }
.py-out { margin: 10px 0 0; padding: 10px 12px; background: var(--wash); border-radius: 8px; font: 400 13px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.py-out.is-ok { background: var(--ok-soft); color: var(--ok); }
.py-out.is-ko { background: var(--alert-soft); color: var(--alert); }
.gen-out { display: block; min-height: 46px; padding: 11px; margin: 10px 0; background: var(--wash); border-radius: 8px; overflow-wrap: anywhere; }
.gen-out.pre { white-space: pre-wrap; }
.m-card input[type=file] { display: block; width: 100%; max-width: 100%; }
.tools-group { font: 700 22px/1.25 var(--serif); margin: 22px 0 12px; scroll-margin-top: 80px; }
.m-card[id] { scroll-margin-top: 80px; }
.tool-help { border-top: 1px solid var(--rule); padding: 9px 0; }
.tool-help:first-of-type { border-top: 0; padding-top: 0; }
.tool-help summary { cursor: pointer; font-weight: 500; }
.tool-help .guide { margin-top: 8px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.tool-grid select { margin-bottom: 8px; }
.tool-result { margin: 10px 0 0; padding: 10px 12px; background: var(--wash); border-left: 3px solid var(--rule); border-radius: 6px; overflow-wrap: anywhere; }
.tool-result:empty { display: none; }
.tool-result[data-level=ok] { border-left-color: var(--ok); }
.tool-result[data-level=warn] { border-left-color: var(--warn); }
.tool-result[data-level=alert] { border-left-color: var(--alert); }
.tool-result strong { display: block; }
.tool-result ul { margin: 6px 0 0; padding-left: 18px; font-size: 14.5px; }
.tool-result .gen-out { margin: 6px 0 0; background: var(--surface); }
.cvss-score { font: 700 30px/1.1 var(--serif); }
.meter { height: 8px; border-radius: 99px; background: var(--wash); overflow: hidden; margin: 10px 0 6px; }
.meter span { display: block; height: 100%; width: 0; background: var(--alert); transition: width .15s; }
.hint-list { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.guide { padding-left: 20px; margin: 0; }
.guide li { margin: 6px 0; color: var(--ink-2); }
input[type=range] { display: block; width: 100%; margin-top: 8px; accent-color: var(--accent); }
main input#str-in { font-size: 16px; }

/* Images */
.thumb { position: relative; margin: 0 0 12px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--accent-soft); border-radius: 6px; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback { position: absolute; left: 14px; right: 14px; bottom: 11px; color: var(--accent); font: 600 17px/1.15 var(--serif); }
.thumb-fallback::before { content: ""; display: block; width: 26px; height: 3px; margin-bottom: 9px; background: var(--accent); }

/* Une */
.kicker { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font: 400 12.5px/1.3 var(--mono); color: var(--ink-3); margin-bottom: 7px; }
.kicker .src { color: var(--ink); font-weight: 500; }

.front { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 0 32px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.lead h1 { font: 700 clamp(32px, 4.1vw, 50px)/1.08 var(--serif); letter-spacing: -0.018em; margin-bottom: 16px; text-wrap: balance; }
.standfirst { font: 400 19px/1.5 var(--serif); color: var(--ink-2); max-width: 62ch; }
.lead-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.lead-more h2 { font: 600 20px/1.24 var(--serif); letter-spacing: -0.006em; margin-bottom: 6px; }
.lead-more p:not(.kicker) { color: var(--ink-2); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.seconds { border-left: 1px solid var(--rule); padding-left: 32px; }
.second { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.second:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.second h2 { font: 600 21px/1.22 var(--serif); letter-spacing: -0.008em; }

.alerts { border-left: 1px solid var(--rule); padding-left: 32px; }
.alerts h2 { font: 600 13px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--alert); padding-bottom: 12px; border-bottom: 2px solid var(--alert); }
.alerts li { padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; line-height: 1.35; font-weight: 500; }
.alerts li:last-child { border-bottom: 0; }
.alerts li .kicker { margin: 5px 0 0; font-size: 11.5px; font-weight: 400; }

.block { padding-top: 30px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--accent); padding-bottom: 8px; margin-bottom: 20px; }
.block-head h2 { font: 700 24px/1.1 var(--serif); letter-spacing: -0.01em; }
.block-head a { font-size: 14px; color: var(--ink-2); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.item h3 { font: 600 20px/1.24 var(--serif); letter-spacing: -0.006em; margin-bottom: 6px; }
.item p:not(.kicker) { color: var(--ink-2); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Pages de liste */
.page-head { padding-bottom: 18px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.page-head h1 { font: 700 clamp(32px, 4vw, 44px)/1.1 var(--serif); letter-spacing: -0.016em; }
.page-head p { color: var(--ink-2); margin-top: 6px; max-width: 70ch; }
.meta-line { font: 400 13px var(--mono); color: var(--ink-3) !important; }
.crumb { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.filters { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.filters a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 208px; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.row-thumb .thumb { margin: 4px 0 0; }
.row-thumb .thumb-fallback { font-size: 15px; }
.row-time { display: flex; flex-direction: column; font: 400 12.5px/1.5 var(--mono); color: var(--ink-3); padding-top: 4px; }
.row h2 { font: 600 23px/1.22 var(--serif); letter-spacing: -0.008em; margin-bottom: 6px; max-width: 34em; }
.row p { color: var(--ink-2); max-width: 74ch; }
.row .row-src { font: 500 12.5px var(--mono); color: var(--ink); margin-top: 8px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 24px; font-size: 15px; }
.pager a:last-child { text-align: right; }
.pager-pos { font: 400 13px var(--mono); color: var(--ink-3); }
.count { font: 400 13px var(--mono); color: var(--ink-3); margin: 8px 0; }
.empty { color: var(--ink-2); padding: 28px 0; }
.more { text-decoration: underline; text-underline-offset: 3px; }

.legal { max-width: 68ch; }
.legal h2 { font: 700 21px/1.2 var(--serif); margin: 26px 0 6px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-2); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Tableaux */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font: 600 12px/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.strong { font-weight: 600; }
.mono-cell { font: 400 13px/1.6 var(--mono); color: var(--ink-2); white-space: nowrap; }
.empty-cell { color: var(--ink-3); }
.actions { white-space: nowrap; text-align: right; padding-right: 0; }
.actions form { display: inline-block; margin: 0 0 0 14px; }
.inline-form { display: inline-flex !important; gap: 8px; align-items: center; }
.inline-form input { width: 180px; padding: 5px 8px; font-size: 14px; }

/* Formulaires */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 20px 22px; margin: 16px 0 26px; }
.panel h2 { font: 700 20px/1.2 var(--serif); margin-bottom: 14px; }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 14px; }
input[type=text], input[type=url], input[type=password], input[type=search], input[type=email], select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 9px 11px; font: 400 15px var(--sans);
  color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 5px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input.mono { font-family: var(--mono); font-size: 14px; }
textarea.code-input { font: 400 13.5px/1.55 var(--mono); resize: vertical; tab-size: 2; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
button { font: 500 15px var(--sans); cursor: pointer; border-radius: 5px; }
button[type=submit], .big-search button, .btn-primary { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 8px; padding: 9px 20px; font: 500 15px var(--sans); }
button[type=submit]:hover, .big-search button:hover, .btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
button:disabled { opacity: .55; cursor: wait; }
.btn-line { display: inline-block; margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); padding: 7px 14px; font: 500 14px var(--sans); cursor: pointer; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-danger { background: transparent; color: var(--alert); border: 1px solid var(--alert); padding: 7px 14px; font-size: 14px; }
.btn-danger:hover { background: var(--alert-soft); }
.btn-text, .btn-text-danger { background: none; border: 0; padding: 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.btn-text-danger { color: var(--alert); }
.big-search { display: flex; gap: 10px; margin: 0 0 20px; }
.big-search input { margin: 0; flex: 1; }
.toolbar { margin: 0 0 12px; display: flex; justify-content: flex-end; }
.notice { padding: 10px 14px; margin-bottom: 16px; font-size: 15px; border: 1px solid; }
.notice-error { border-color: var(--alert); color: var(--alert); background: var(--alert-soft); border-radius: 6px; }
.notice-ok { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); border-radius: 6px; }

/* Dépôt de projets */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--rule); margin: 4px 0 16px; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 8px 0; color: var(--ink-2); font-size: 15px; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--accent); }
.dropzone { border: 2px dashed var(--rule); border-radius: 6px; padding: 28px 20px; text-align: center; background: var(--paper); margin-bottom: 14px; transition: background-color .12s, border-color .12s; }
.dropzone.is-over { border: 2px solid var(--accent); background: var(--accent-soft); }
.dropzone-title { font: 600 19px/1.3 var(--serif); }
.dropzone-hint { font-size: 14px; color: var(--ink-3); margin: 4px 0 14px; }
.dropzone-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.file-summary { font: 400 13px var(--mono); color: var(--ink-2); margin-bottom: 14px; }
progress { display: block; width: 100%; height: 4px; margin-bottom: 14px; accent-color: var(--accent); }
.file-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: var(--wash); font-size: 13.5px; border-radius: 10px 10px 0 0; border: 1px solid var(--rule); border-bottom: 0; }
.file-actions { display: flex; gap: 8px; }
.code-view { margin: 0; padding: 16px; max-height: 70vh; overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 0 0 10px 10px; font: 400 13.5px/1.6 var(--mono); tab-size: 2; }
.danger-zone { margin-top: 24px; }

/* Espace membres */
summary { cursor: pointer; font: 700 20px/1.2 var(--serif); }
details[open] > summary { margin-bottom: 14px; }
.head-actions { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.head-actions > div, .m-head > div { min-width: 0; max-width: 100%; }
.head-actions form { margin: 0; }
.narrow { max-width: 480px; }
.section-intro { color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
.cell-sub { color: var(--ink-2); font-size: 14px; }
.tags a { font: 400 13px var(--mono); color: var(--ink-2); margin-right: 6px; }
.badge { display: inline-block; font: 500 12px/1.3 var(--sans); padding: 2px 7px; background: var(--wash); color: var(--ink-2); border-radius: 4px; white-space: nowrap; }
.badge-wait, .badge-proposed { background: var(--warn-soft); color: var(--warn); }
.badge-accepted, .badge-vis-members { background: var(--ok-soft); color: var(--ok); }
.badge-rejected { background: var(--alert-soft); color: var(--alert); }
.badge-vis-restricted, .badge-role-contributeur { background: var(--accent-soft); color: var(--accent); }
.badge-vis-private, .badge-role-admin { background: var(--warn-soft); color: var(--warn); }
.badge-role-createur { background: var(--accent); color: var(--accent-ink); }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.update, .comment { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.update-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.update-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.update-actions form, .comment form { margin: 0; }
.comment-form { margin-top: 16px; }
.comment-form textarea { margin-bottom: 10px; }
.visibility { border: 0; padding: 0; margin: 0 0 16px; }
.visibility legend { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 6px; }
.choice { display: flex; gap: 8px; align-items: baseline; font-weight: 400; margin-bottom: 6px; }
.choice input { margin: 0; accent-color: var(--accent); }
.trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.access-field { margin: 10px 0 0; }
.source-group:first-of-type { padding-top: 6px; }

/* Coquille de l'espace membres : une application sobre, pas une suite de cartes */
.member-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); align-items: start; min-height: calc(100vh - 65px); padding: 0; border-bottom: 1px solid var(--rule); }
.member-main { min-width: 0; width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 36px 56px; }
.side { position: sticky; top: 65px; display: flex; flex-direction: column; height: calc(100vh - 65px); overflow-y: auto; padding: 16px 12px 12px; background: var(--surface); border-right: 1px solid var(--rule); }
.side form { margin: auto 0 0; padding-top: 12px; }
.side-user { display: flex; gap: 10px; align-items: center; padding: 4px 8px 14px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); }
.side-user:hover { text-decoration: none; }
.side-user strong { display: block; overflow-wrap: anywhere; line-height: 1.25; font-size: 14.5px; font-weight: 600; }
.side-user small { color: var(--ink-3); font-size: 12.5px; }
.side nav { display: flex; flex-direction: column; gap: 1px; }
.side-title { font: 600 11px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding: 16px 10px 7px; }
.side nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.side nav a span { flex: 1; }
.side nav a:hover { background: var(--wash); color: var(--ink); text-decoration: none; }
.side nav a[aria-current] { background: var(--wash); color: var(--ink); font-weight: 600; }
.side nav a[aria-current]::before { content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side nav a[aria-current] .ico { color: var(--accent); }
.side-count { min-width: 20px; padding: 1px 6px; border-radius: 4px; background: var(--alert); color: var(--surface); font: 600 11.5px/1.5 var(--sans); text-align: center; }
.side-exit { margin-top: 12px; border-top: 1px solid var(--rule); border-radius: 0 !important; padding-top: 14px !important; }
.side-logout { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; background: none; border: 0; border-radius: 6px; color: var(--ink-3); font-size: 14px; }
.side-logout:hover { background: var(--wash); color: var(--ink); }
.is-admin .side-title:first-child { color: var(--accent); padding-top: 12px; }
.ico { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 6px; background: var(--wash); border: 1px solid var(--rule); color: var(--ink-2); font: 600 14px var(--sans); }
.m-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.m-head h1 { font: 600 25px/1.2 var(--sans); letter-spacing: -0.012em; overflow-wrap: anywhere; }
.m-head p { color: var(--ink-2); margin-top: 3px; font-size: 15px; }
.m-head-user { display: flex; gap: 14px; align-items: center; }
.m-head-user .avatar { width: 48px; height: 48px; font-size: 20px; }
.m-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 18px 20px; margin-bottom: 16px; }
.m-card h2, .m-card h3, .m-card > summary { font: 600 15.5px/1.3 var(--sans); margin-bottom: 12px; }
.m-card > summary { margin-bottom: 0; }
.m-card[open] > summary { margin-bottom: 14px; }
.m-flush { padding: 0; overflow: hidden; }
.m-card-title { padding: 13px 18px; margin: 0 !important; border-bottom: 1px solid var(--rule); }
.m-pad { padding: 16px 18px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
.hint { font-size: 13px; color: var(--ink-3); margin: -8px 0 12px; }
.hint-below { margin: 6px 0 12px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; transition: border-color .12s; }
.stat:hover { border-color: var(--ink-3); text-decoration: none; }
.stat span { font-size: 13px; color: var(--ink-2); }
.stat strong { font: 600 26px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.stat small { font-size: 12.5px; color: var(--ink-3); }
.stat-hot strong { color: var(--warn); }
.callout { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent); color: var(--ink); border-radius: 6px; padding: 11px 16px; margin-bottom: 14px; font-size: 15px; }
.callout strong { color: var(--accent); white-space: nowrap; }
.callout-link:hover { text-decoration: none; filter: brightness(.98); }
.feed-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; margin: 0 -10px; border-radius: 6px; }
.feed-row:hover { background: var(--wash); text-decoration: none; }
.feed-text { color: var(--ink-2); }
.feed-text strong { color: var(--ink); overflow-wrap: anywhere; }
.feed-row time, .user-row time { font: 400 12.5px var(--mono); color: var(--ink-3); white-space: nowrap; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.pills { gap: 18px; border-bottom: 1px solid var(--rule); }
.pills a { padding: 8px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14.5px; color: var(--ink-2); }
.pills a:hover { text-decoration: none; color: var(--ink); }
.pills a[aria-current] { border-bottom-color: var(--accent); color: var(--ink); font-weight: 600; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.p-card { display: flex; flex-direction: column; gap: 7px; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 15px 16px; transition: border-color .12s; }
.p-card:hover { border-color: var(--ink-3); text-decoration: none; }
.p-card-top { display: flex; gap: 6px; flex-wrap: wrap; }
.p-card-title { font: 600 16px/1.3 var(--sans); overflow-wrap: anywhere; }
.p-card-desc { color: var(--ink-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.p-card-foot { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--ink-2); }
.p-card-foot .avatar { width: 24px; height: 24px; font-size: 11.5px; }
.p-card-foot time { margin-left: auto; font: 400 12.5px var(--mono); color: var(--ink-3); }
.link-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.link-row { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; transition: border-color .12s; }
.link-row:hover { border-color: var(--ink-3); }
.link-main { display: block; padding: 13px 16px 8px; }
.link-main:hover { text-decoration: none; }
.link-main strong { display: block; overflow-wrap: anywhere; }
.link-url { display: block; font: 400 13px var(--mono); color: var(--accent); overflow-wrap: anywhere; }
.link-notes { display: block; font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.link-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 0 16px 12px; font-size: 13.5px; }
.link-meta form { margin: 0; }
.link-edit { margin-left: auto; }
.link-by { color: var(--ink-3); }
.user-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto 70px; gap: 12px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--rule); }
.user-row:last-child { border-bottom: 0; }
.user-row time { text-align: right; }
.user-flags { display: flex; gap: 4px; }
a.user-row:hover { background: var(--wash); text-decoration: none; }
.user-id strong { display: block; overflow-wrap: anywhere; }
.user-id small { color: var(--ink-3); font-size: 12.5px; }
.request { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.request:last-child { border-bottom: 0; }
.request-reason { color: var(--ink-2); margin: 6px 0; }
.ban-row { display: flex; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.ban-row form { margin: 0 0 0 auto; }
.ban-reason { color: var(--ink-2); overflow-wrap: anywhere; }
.ban-form { margin-top: 12px; }
.mobile-only { display: none; }
.member-main .block { padding-top: 22px; }
.member-main .update, .member-main .comment { padding: 12px 0; }

/* Catégories */
.cat { display: inline-block; padding: 1px 7px; border: 1px solid var(--rule); border-radius: 4px; font: 500 12px/1.5 var(--sans); color: var(--ink-2); white-space: nowrap; }
a.cat:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.item-cats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.tag-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag-bar a { padding: 3px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); font-size: 13.5px; color: var(--ink-2); }
.tag-bar a small { color: var(--ink-3); font-size: 12px; }
.tag-bar a:hover { border-color: var(--ink-3); color: var(--ink); text-decoration: none; }
.tag-bar a[aria-current] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.tag-picker { border: 0; padding: 0; margin: 0 0 16px; }
.tag-picker legend { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 8px; }
.tag-options { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag-option { margin: 0; cursor: pointer; }
.tag-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.tag-option span { display: inline-block; padding: 4px 11px; border: 1px solid var(--rule); border-radius: 6px; font-weight: 400; font-size: 14px; color: var(--ink-2); }
.tag-option span:hover { border-color: var(--ink-3); }
.tag-option input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.tag-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.tag-new { margin-bottom: 0; }

/* Forum */
.forum-cat, .forum-topic { display: grid; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--rule); }
.forum-cat { grid-template-columns: minmax(0, 1fr) 70px 70px 90px; }
.forum-topic { grid-template-columns: auto minmax(0, 1fr) 70px 110px; }
.forum-cat:last-child, .forum-topic:last-child { border-bottom: 0; }
.forum-cat:hover, .forum-topic:hover { background: var(--wash); text-decoration: none; }
.forum-cat-text strong, .forum-topic-text strong { display: flex; gap: 6px; align-items: center; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.forum-topic-text .ico { width: 14px; height: 14px; color: var(--ink-3); }
.forum-cat-text small, .forum-topic-text small { display: block; color: var(--ink-2); font-size: 13.5px; }
.forum-cat-num { text-align: right; }
.forum-cat-num strong { display: block; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.forum-cat-num small { color: var(--ink-3); font-size: 12px; }
.forum-cat-last { text-align: right; font: 400 12.5px/1.4 var(--mono); color: var(--ink-3); }
.forum-cat-last small { display: block; font: 400 12.5px var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-topic.is-removed { opacity: .6; }
.forum-rules h2 { margin-bottom: 8px; }
.forum-rules ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.forum-rules li { margin: 3px 0; }
.posts { display: grid; gap: 10px; margin-bottom: 14px; }
.post { display: grid; grid-template-columns: 170px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; scroll-margin-top: 90px; }
.post:target { border-color: var(--accent); }
.post-author { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-right: 1px solid var(--rule); font-size: 14px; min-width: 0; }
.post-author strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.post-author small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 12.5px; }
.post-main { padding: 12px 18px 12px; min-width: 0; }
.post-meta { font: 400 12.5px var(--mono); color: var(--ink-3); margin-bottom: 8px; }
.post-body p { margin-bottom: 8px; }
.post-body p:last-child { margin-bottom: 0; }
.post-code { margin: 8px 0; padding: 12px 14px; max-height: 420px; overflow: auto; background: var(--wash); border: 1px solid var(--rule); border-radius: 6px; font: 400 13px/1.55 var(--mono); }
.post-code code { background: none; padding: 0; }
.post-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin-top: 12px; font-size: 13.5px; }
.post-actions form { margin: 0; }
.post-actions .btn-text, .post-actions .btn-text-danger { font: 400 13.5px var(--sans); text-decoration: none; color: var(--ink-3); }
.post-actions .btn-text:hover { color: var(--ink); }
.post-actions .btn-text-danger:hover { color: var(--alert); }
.post-report { flex-basis: 100%; }
.post-report > summary { display: inline; font: 400 13.5px var(--sans); color: var(--ink-3); margin: 0; }
.post-report > summary::before { content: none !important; }
.post-report form { margin-top: 10px; padding: 12px; background: var(--wash); border-radius: 6px; max-width: 420px; }
.post-removed { color: var(--ink-3); font-style: italic; }
.post.is-removed { background: var(--paper); }
.is-staff-view { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--alert); color: var(--ink-2); }
.reply-box textarea { margin-top: 0; }
.staff-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--warn); border-radius: 6px; }
.staff-bar form { margin: 0; }
.staff-bar .btn-line, .staff-bar .btn-danger { padding: 5px 10px; font-size: 13.5px; }
.staff-label { display: inline-flex; gap: 6px; align-items: center; margin-right: 6px; font-size: 13.5px; font-weight: 600; color: var(--warn); }
.staff-label .ico { width: 15px; height: 15px; }
.staff-move { display: inline-flex; gap: 6px; margin-left: auto !important; }
.staff-move select { width: auto; margin: 0; padding: 4px 8px; font-size: 13.5px; }
.notice-info { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); border-radius: 6px; }

/* Administration */
.todo-row { display: flex; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--rule); }
.todo-row:last-child { border-bottom: 0; }
.todo-row:hover { background: var(--wash); text-decoration: none; }
.todo-row .ico { color: var(--alert); }
.todo-row strong { font-variant-numeric: tabular-nums; }
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 18px; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: var(--wash); text-decoration: none; }
.list-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row time { font: 400 12.5px var(--mono); color: var(--ink-3); white-space: nowrap; }
.list-excerpt { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filter-bar input[type=search] { flex: 1 1 240px; width: auto; margin: 0; }
.filter-bar select { width: auto; margin: 0; }
.row-form { display: flex; gap: 10px; align-items: flex-end; }
.row-form label { flex: 1; margin: 0; }
.report-body { margin: 8px 0; padding: 10px 12px; background: var(--wash); border-radius: 6px; font-size: 14.5px; }
.report-list { list-style: none; margin: 0 0 8px; padding: 0; font-size: 13.5px; color: var(--ink-2); }
.report-list li { margin: 3px 0; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; margin: 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.switch-row input { margin-top: 4px; width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.switch-row strong { display: block; font-weight: 500; font-size: 15px; }
.switch-row small { color: var(--ink-2); font-size: 13.5px; font-weight: 400; }
.switch-row + button { margin-top: 14px; }
.after-field { margin-top: 10px; }

.content-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.content-row:last-child { border-bottom: 0; }
.content-row small { display: block; color: var(--ink-3); font-size: 12.5px; }
.content-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.content-actions form { margin: 0; }
.log-target { max-width: 280px; overflow-wrap: anywhere; color: var(--ink-2); font-size: 14px; }
.btn-small { padding: 3px 9px; font-size: 13px; }

.mention { padding: 0 3px; border-radius: 3px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.mention-me { background: var(--accent); color: var(--accent-ink); }
.mention-list { list-style: none; margin: -6px 0 12px; padding: 4px; max-width: 320px; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; box-shadow: var(--pop); }
.mention-list li { padding: 7px 10px; border-radius: 4px; font-size: 14.5px; cursor: pointer; overflow-wrap: anywhere; }
.mention-list li[aria-selected=true], .mention-list li:hover { background: var(--accent-soft); color: var(--accent); }
.head-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 4px; background: var(--alert); color: var(--surface); font: 600 11.5px/1.55 var(--sans); text-align: center; }
.mention-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.mention-row:last-child { border-bottom: 0; }
.mention-row:hover { background: var(--wash); text-decoration: none; }
.mention-row strong { font-weight: 600; }
.mention-row time { font: 400 12.5px var(--mono); color: var(--ink-3); white-space: nowrap; }

.error-box { max-width: 520px; margin: 40px auto; }
.error-box h1 { font: 600 26px/1.2 var(--sans); margin-bottom: 8px; }
.error-box p { color: var(--ink-2); margin-bottom: 10px; }

.step-list { list-style: decimal; }

/* Connexion et inscription */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 980px; margin: 12px auto 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.auth-aside { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 36px 38px; background: #10151f; color: #e8ecf3; }
.auth-brand { font: 700 22px/1 var(--serif); color: #fff; }
.auth-brand:hover { text-decoration: none; }
.auth-pitch { font: 600 25px/1.3 var(--serif); letter-spacing: -0.01em; color: #fff; margin-bottom: 22px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15px; color: #c4ccd9; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; }
.auth-points .ico { margin-top: 3px; color: #7ea6ff; }
.auth-note { font-size: 13.5px; line-height: 1.5; color: #8b95a6; }
.auth-main { padding: 40px 44px 34px; min-width: 0; }
.auth-main h1 { font: 600 26px/1.2 var(--sans); letter-spacing: -0.012em; margin-bottom: 6px; }
.auth-lead { color: var(--ink-2); margin-bottom: 22px; font-size: 15px; }
.auth-form label { margin: 0 0 6px; font-size: 14px; font-weight: 500; }
.auth-form input[type=text], .auth-form input[type=password], .auth-form input[type=email], .auth-form textarea { margin: 0 0 16px; padding: 10px 12px; font-size: 15.5px; border-color: var(--rule); background: var(--paper); }
.auth-form .field-hint { margin: -11px 0 16px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.auth-form .field-error { color: var(--alert); }
.auth-form button[type=submit] { width: 100%; padding: 11px; margin-top: 6px; font-weight: 600; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.label-row a { font-size: 13.5px; color: var(--accent); }
.pw-field { position: relative; }
.pw-field input { padding-right: 76px !important; }
.pw-toggle { position: absolute; right: 6px; top: 6px; height: 32px; padding: 0 9px; background: none; border: 0; font-size: 13px; color: var(--ink-2); }
.pw-toggle:hover { color: var(--accent); }
.pw-meter { display: flex; gap: 8px; align-items: center; margin: -9px 0 6px; }
.pw-meter span { position: relative; flex: 1; height: 4px; border-radius: 2px; background: var(--wash); overflow: hidden; }
.pw-meter span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--alert); }
.pw-meter[data-level=ok] span::after { width: 65%; background: var(--warn); }
.pw-meter[data-level=strong] span::after { width: 100%; background: var(--ok); }
.pw-meter small { min-width: 60px; text-align: right; font-size: 12.5px; color: var(--ink-2); }
.auth-small { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.auth-switch { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14.5px; }
.auth-switch a { color: var(--accent); font-weight: 500; }

/* Pied de page */
.site-footer { background: var(--surface); border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.footer-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; padding-top: 24px; padding-bottom: 36px; }
.footer-name { font: 700 20px var(--serif); color: var(--ink); margin-bottom: 6px; }
.site-footer p { max-width: 62ch; margin-bottom: 4px; }
.site-footer nav { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.site-footer .quiet { color: var(--ink-3); margin-top: 10px; font-size: 13px; }

@media (max-width: 1040px) {
  .front { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .alerts { grid-column: 1 / -1; border-left: 0; padding-left: 0; margin-top: 28px; }
  .alerts ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .member-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .member-main { padding: 18px 20px 36px; }
  .side { position: sticky; top: 56px; z-index: 20; height: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--rule); overflow: visible; }
  .side-user, .side form, .side-title { display: none; }
  .side nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 2px; padding: 6px 12px; scrollbar-width: none; }
  .side nav::-webkit-scrollbar { display: none; }
  .side nav a { flex: none; white-space: nowrap; min-height: 42px; padding: 0 11px; }
  .side nav a span { flex: none; }
  .side nav a[aria-current]::before { left: 8px; right: 8px; top: auto; bottom: 0; width: auto; height: 2px; border-radius: 0; }
  .side-exit { margin: 0; padding-top: 0 !important; border-top: 0; border-radius: 6px !important; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forum-cat { grid-template-columns: minmax(0, 1fr) 62px; }
  .forum-cat .forum-cat-num:nth-of-type(3), .forum-cat .forum-cat-last { display: none; }
  .forum-topic { grid-template-columns: auto minmax(0, 1fr) 60px; }
  .forum-topic .forum-cat-last { display: none; }
  .auth { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .auth-aside { order: 2; padding: 22px 24px; gap: 16px; }
  .auth-brand, .auth-note { display: none; }
  .auth-pitch { font-size: 19px; margin-bottom: 12px; }
  .auth-points { font-size: 14px; gap: 7px; }
  .auth-main { padding: 26px 24px 22px; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .user-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .user-row time { display: none; }
  .feed-row { grid-template-columns: auto minmax(0, 1fr); }
  .feed-row time { display: none; }
  .front, .lead-more, .grid, .grid-4, .form-row, .form-row-3, .alerts ol { grid-template-columns: minmax(0, 1fr); }
  .seconds { border-left: 0; padding-left: 0; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
  .standfirst { font-size: 17px; }
  .lead-more article + article { margin-top: 18px; }
  main.wrap { padding-top: 20px; padding-bottom: 44px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .row-thumb { grid-row: 1; }
  .row-thumb .thumb { margin: 0 0 8px; }
  .row-time { flex-direction: row; gap: 8px; padding: 0; }
  .row h2 { font-size: 20px; }
  .footer-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .site-footer nav { align-items: flex-start; }
  .panel { padding: 16px; }
  .big-search { flex-direction: column; }
}

/* Téléphone */
@media (max-width: 720px) {
  html { -webkit-tap-highlight-color: transparent; scroll-padding-top: 118px; }
  body { font-size: 16px; }

  summary { min-height: 44px; display: flex; align-items: center; gap: 8px; }
  summary::before { content: "+"; color: var(--accent); font-weight: 400; }
  details[open] > summary::before { content: "\2212"; }
  summary::-webkit-details-marker { display: none; }

  input[type=text], input[type=url], input[type=password], input[type=search], input[type=email], select, textarea { font-size: 16px; min-height: 46px; }
  button[type=submit], .big-search button, .btn-primary, .btn-line, .btn-danger { min-height: 46px; padding: 11px 18px; }
  .btn-text, .btn-text-danger { min-height: 44px; }
  .m-head .btn-primary { width: 100%; text-align: center; }

  /* Actualités : image à droite, comme une appli d'info, pour lire plus d'articles par écran */
  .lead h1 { font-size: 28px; }
  .standfirst { font-size: 16.5px; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .item, .second, .lead-more article { display: grid; grid-template-columns: minmax(0, 1fr) 104px; column-gap: 12px; align-content: start; }
  .item > a:first-child, .second > a:first-child, .lead-more article > a:first-child { grid-column: 2; grid-row: 1 / span 3; }
  .item > :not(a:first-child), .second > :not(a:first-child), .lead-more article > :not(a:first-child) { grid-column: 1; }
  .item .thumb, .second .thumb, .lead-more .thumb { aspect-ratio: 1; margin: 0; }
  .thumb-fallback { left: 8px; right: 8px; bottom: 7px; font-size: 13px; }
  .thumb-fallback::before { width: 16px; height: 2px; margin-bottom: 5px; }
  .item h3, .second h2, .lead-more h2 { font-size: 17px; line-height: 1.25; margin-bottom: 0; }
  .item p:not(.kicker), .lead-more p:not(.kicker) { display: none; }
  .grid, .grid-4 { gap: 0; }
  .item { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .item:last-child { border-bottom: 0; }
  .second { padding: 14px 0; margin: 0; }
  .lead-more { margin-top: 18px; padding-top: 4px; }
  .lead-more article { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .lead-more article + article { margin-top: 0; }
  .lead-more article:last-child { border-bottom: 0; }
  .seconds { margin-top: 0; padding-top: 0; border-top: 0; }
  .alerts li { padding: 12px 0; font-size: 15px; }
  .block { padding-top: 22px; }
  .block-head { margin-bottom: 4px; }
  .block-head a { display: inline-flex; align-items: center; min-height: 44px; }

  .row { grid-template-columns: minmax(0, 1fr) 96px; gap: 2px 12px; padding: 14px 0; }
  .row-time { grid-column: 1 / -1; grid-row: 1; flex-direction: row; gap: 8px; padding: 0; }
  .row > div { grid-column: 1; grid-row: 2; }
  .row-thumb { grid-column: 2; grid-row: 2; }
  .row-thumb .thumb { aspect-ratio: 1; margin: 2px 0 0; }
  .row h2 { font-size: 17px; line-height: 1.25; margin-bottom: 4px; }
  .row p:not(.row-src) { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.45; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 4px; padding: 0 16px; white-space: nowrap; }
  .filters::-webkit-scrollbar { display: none; }
  .filters a { display: inline-flex; align-items: center; min-height: 44px; }
  .page-head { padding-bottom: 10px; margin-bottom: 8px; }
  .page-head h1 { font-size: 28px; }
  .pager { font-size: 16px; }
  .pager a { display: inline-flex; align-items: center; min-height: 44px; }
  .pager a:last-child { justify-content: flex-end; }

  .footer-in { gap: 14px; padding-top: 18px; padding-bottom: 24px; }
  .site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .site-footer nav a { display: flex; align-items: center; min-height: 44px; }
  .site-footer .quiet { margin-top: 0; font-size: 14px; }

  .topics { margin: 0 -16px 2px; padding: 0 16px 10px; }
  .topics a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; }
  .item .tags, .lead-more .tags { grid-column: 1 / -1; }
  .item .tag { display: none; }
  .also a { display: inline-block; padding: 4px 0; }

  /* Espace membres */
  .member-main { padding: 14px 16px 28px; }
  .side nav a .ico { display: none; }
  .side nav a { min-height: 44px; padding: 0 12px; }
  .m-head { margin-bottom: 12px; }
  .m-head h1 { font-size: 25px; }
  .stats { gap: 10px; margin-bottom: 12px; }
  .stat { padding: 12px 14px; }
  .stat strong { font-size: 25px; }
  .m-card { padding: 14px 16px; margin-bottom: 12px; }
  .m-flush { padding: 0; }
  .m-card-title { padding: 12px 14px; }
  .forum-cat, .forum-topic, .user-row, .list-row, .todo-row { padding-left: 14px; padding-right: 14px; }
  .list-row { grid-template-columns: minmax(0, 1fr) auto; }
  .list-row .cell-sub { display: none; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post-author { flex-direction: row; align-items: center; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .post-author small { display: none; }
  .post-author div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .post-main { padding: 10px 14px; }
  .post-actions { gap: 0 18px; }
  .post-actions .btn-text, .post-actions .btn-text-danger, .post-report > summary { display: inline-flex; align-items: center; min-height: 44px; }
  .post-report > summary { min-height: 44px; }
  .staff-move { margin-left: 0 !important; width: 100%; }
  .staff-move select { flex: 1; min-height: 44px; }
  .filter-bar select { flex: 1 1 40%; }
  .filter-bar button { flex: 1 1 100%; }
  .row-form { flex-direction: column; align-items: stretch; }
  .tag-option span { padding: 8px 12px; }
  .tag-bar { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px; scrollbar-width: none; white-space: nowrap; }
  .tag-bar::-webkit-scrollbar { display: none; }
  .tag-bar a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; }
  .auth-form input[type=text], .auth-form input[type=password], .auth-form input[type=email] { min-height: 46px; }
  .pw-toggle { top: 7px; }
  .feed-row { min-height: 56px; }
  .user-row { min-height: 56px; }
  .pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .file-actions { width: 100%; }
  .file-actions > * { flex: 1; text-align: center; }
  .update-actions { gap: 6px 16px; }
  .code-view { font-size: 12.5px; max-height: 55vh; }
  .choice { min-height: 44px; align-items: center; }
  .choice input { width: 20px; height: 20px; flex: none; }
  .tabs button { min-height: 44px; }
  .dropzone { padding: 18px 14px; }
  .dropzone-title { font-size: 17px; }
  .mobile-only { display: block; margin-bottom: 12px; }
  .mobile-only button { width: 100%; }

  .crumb a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 350px) {
  .wrap { padding: 0 12px; }
  .member-main { padding: 12px 12px 24px; }
  .filters { margin: 0 -12px 4px; padding: 0 12px; }
  .topics { margin: 0 -12px 2px; padding: 0 12px 10px; }
  .area-in nav { margin: 0 -12px; padding: 0 12px 6px; }
  .tag-bar { margin: 0 -12px 12px; padding: 0 12px; }
}

/* Écrans tactiles, quelle que soit l'orientation : l'iPhone zoome sur tout champ en dessous de 16 px */
@media (pointer: coarse) {
  input, select, textarea, .staff-move select, textarea.code-input { font-size: 16px !important; }
  button[type=submit], .big-search button, .btn-primary, .btn-line, .btn-danger, .staff-bar .btn-line, .staff-bar .btn-danger { min-height: 44px; }
  .btn-text, .btn-text-danger { display: inline-flex; align-items: center; min-height: 40px; }
  .action-tag, .alert-action, .tag, .cve-tag, .cat { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 11px; }
  .brand { display: inline-flex; align-items: center; min-height: 44px; }
  .pw-toggle { top: 1px; height: 44px; }
  .site-footer .quiet { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; }
  .tags { gap: 8px; }
  summary { display: flex; align-items: center; min-height: 44px; }
  .post { scroll-margin-top: 124px; }
}

/* Téléphone à l'horizontale : deux barres fixes prendraient un tiers de l'écran */
@media (max-height: 500px) {
  .side { position: static; }
  .site-head { position: static; }
  html { scroll-padding-top: 12px; }
}

/* Chiffres publics */
.site-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.site-stats li { min-width: 0; border-left: 1px solid var(--rule); }
.site-stats li:first-child { border-left: 0; }
.site-stats a, .doc .site-stats a { display: block; height: 100%; padding: 16px 18px; color: var(--ink); text-decoration: none; }
.site-stats li:first-child a { padding-left: 0; }
.site-stats strong { display: block; font: 700 30px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.site-stats span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.site-stats a:hover span { color: var(--accent); }
.doc .site-stats { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.doc .page-head + section h2 { margin-top: 22px; padding-top: 0; border-top: 0; }
.doc .site-stats li { margin: 0; }
@media (max-width: 640px) {
  .site-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-stats li:nth-child(odd) { border-left: 0; }
  .site-stats li:nth-child(odd) a { padding-left: 0; }
  .site-stats li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}

/* Guide des fuites de données */
.doc { max-width: 780px; }
.doc-date { font: 400 13px var(--mono); color: var(--ink-3); margin-top: 10px !important; }
.doc h2 { font: 700 26px/1.2 var(--serif); letter-spacing: -0.01em; margin: 38px 0 12px; padding-top: 16px; border-top: 1px solid var(--rule); scroll-margin-top: 80px; }
.doc h3 { font: 600 17px/1.3 var(--sans); margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { margin: 8px 0 0; padding-left: 20px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li { margin: 6px 0; }
.doc p a, .doc li a, .doc td a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc strong { color: var(--ink); }
.doc .notice-error, .doc .notice-error strong { color: var(--alert); }
.doc .notice-error { margin-bottom: 18px; }
.doc-key { padding: 16px 20px; background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--accent); border-radius: 6px; }
.doc-key h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: 20px; }
.doc-toc { margin: 16px 0 0; }
.doc-src { margin-top: 8px !important; font-size: 13.5px; color: var(--ink-3) !important; }
.doc-service { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.doc-service:last-of-type { border-bottom: 0; }
.doc-service h3 { margin: 0 0 4px; }
.doc-law { margin-top: 12px; }
.doc-law td { vertical-align: top; color: var(--ink-2); }
.doc-law td:nth-child(2) { white-space: nowrap; color: var(--ink); font-weight: 500; }
.doc-law td:nth-child(3) { white-space: nowrap; }
.doc-sources h3 { font-size: 15px; }
.doc-sources ul { list-style: none; padding: 0; }
.doc-sources li { font-size: 14.5px; margin: 4px 0; }
@media (max-width: 640px) {
  .doc h2 { font-size: 23px; }
  .doc-law, .doc-law tbody, .doc-law tr, .doc-law td { display: block; }
  .doc-law thead { display: none; }
  .doc-law tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .doc-law td { padding: 2px 0; border: 0; white-space: normal !important; }
}
