/* ════════════════════════════════════════════════════════════════════════════
   Sentinel — feuille de style
   ════════════════════════════════════════════════════════════════════════════

   Trois couleurs viennent de la marque et rien ne les contredit : le fond
   #0b0d0f, le texte #f2f4f5 et le cyan #17cfef, relevés directement sur la
   bannière. Le reste de la palette est construit autour, en gris neutres
   légèrement froids pour que le cyan reste la seule chose qui attire l'œil.

   Le ton des verdicts est la seule autre source de couleur. Il est défini une
   fois, en variables, et utilisé partout : une même gravité ne peut donc pas
   être orange dans un tableau et rouge dans une carte.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  /* Marque */
  --ink: #0b0d0f;
  --paper: #f2f4f5;
  --accent: #17cfef;

  /* Surfaces, du plus profond au plus proche */
  --surface-0: #0b0d0f;
  --surface-1: #101317;
  --surface-2: #151920;
  --surface-3: #1c222a;
  --surface-hover: #222831;

  /* Traits */
  --line: #232a33;
  --line-soft: #1a2027;
  --line-strong: #333c47;

  /* Texte */
  --text: #f2f4f5;
  --text-muted: #9aa4b0;
  --text-dim: #6b7683;

  /* Accent décliné */
  --accent-dim: #0f9cb8;
  --accent-glow: rgba(23, 207, 239, 0.14);
  --accent-line: rgba(23, 207, 239, 0.35);

  /* Tons sémantiques — verdicts, gravités, états de source */
  --tone-critical: #ff5f56;
  --tone-critical-bg: rgba(255, 95, 86, 0.11);
  --tone-critical-line: rgba(255, 95, 86, 0.32);

  --tone-warning: #ffa94d;
  --tone-warning-bg: rgba(255, 169, 77, 0.11);
  --tone-warning-line: rgba(255, 169, 77, 0.3);

  --tone-notice: #ffd43b;
  --tone-notice-bg: rgba(255, 212, 59, 0.1);
  --tone-notice-line: rgba(255, 212, 59, 0.28);

  --tone-ok: #51cf87;
  --tone-ok-bg: rgba(81, 207, 135, 0.1);
  --tone-ok-line: rgba(81, 207, 135, 0.28);

  --tone-unknown: #7d8896;
  --tone-unknown-bg: rgba(125, 136, 150, 0.11);
  --tone-unknown-line: rgba(125, 136, 150, 0.28);

  /* Typographie */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Rythme */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --gutter: 24px;
  --page-max: 1180px;
  --page-wide: 1400px;

  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 48px -18px rgba(0, 0, 0, 0.75);
}

/* ── Socle ────────────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-0);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 620;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
}
h2 {
  font-size: clamp(21px, 2.6vw, 27px);
}
h3 {
  font-size: 17px;
}
h4 {
  font-size: 14px;
}

p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.14s ease;
}
a:hover {
  color: #6be0f7;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

code,
kbd,
pre,
.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  font-variant-ligatures: none;
}

code {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1px 5px;
  color: #b9e9f5;
}

pre {
  margin: 0;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.65;
  color: #c3ccd6;
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -50px;
  z-index: 100;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.16s ease;
}
.skip-link:focus {
  top: 12px;
  color: var(--ink);
}

/* ── Mise en page ─────────────────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.shell--wide {
  max-width: var(--page-wide);
}

main {
  flex: 1 0 auto;
}

.section {
  padding: 72px 0;
}
.section--tight {
  padding: 44px 0;
}
.section--alt {
  background: var(--surface-1);
  border-block: 1px solid var(--line-soft);
}

.section-head {
  max-width: 660px;
  margin-bottom: 40px;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 12px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
}

.muted {
  color: var(--text-muted);
}
.dim {
  color: var(--text-dim);
}
.small {
  font-size: 13px;
}
.tiny {
  font-size: 12px;
}
.nowrap {
  white-space: nowrap;
}
.center {
  text-align: center;
}
.right {
  text-align: right;
}

.stack > * + * {
  margin-top: var(--stack-gap, 16px);
}
.stack--sm {
  --stack-gap: 10px;
}
.stack--lg {
  --stack-gap: 28px;
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.row--between {
  justify-content: space-between;
}
.row--end {
  justify-content: flex-end;
}
.row--top {
  align-items: flex-start;
}

.grid {
  display: grid;
  gap: 20px;
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ── En-tête ──────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 13, 15, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 640;
  font-size: 16px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand:hover {
  color: var(--text);
}
.brand img {
  width: 26px;
  height: 26px;
  display: block;
}
.brand__mark {
  font-family: var(--font-mono);
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  transition: color 0.14s ease, background 0.14s ease;
}
.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.site-nav a[aria-current='page'] {
  color: var(--text);
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 38px;
  height: 34px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface-1);
    border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 16px;
    display: none;
  }
  .site-nav[data-open='true'] {
    display: flex;
  }
  .site-nav a {
    padding: 11px 12px;
  }
}

/* ── Boutons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 560;
  line-height: 1;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.1s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: #4fdcf5;
  border-color: #4fdcf5;
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--accent-line);
  color: var(--text);
}

.btn--quiet {
  background: var(--surface-2);
  color: var(--text-muted);
  border-color: var(--line);
}
.btn--quiet:hover {
  background: var(--surface-3);
  color: var(--text);
}

.btn--danger {
  background: transparent;
  color: var(--tone-critical);
  border-color: var(--tone-critical-line);
}
.btn--danger:hover {
  background: var(--tone-critical-bg);
  color: var(--tone-critical);
}

.btn--lg {
  font-size: 15px;
  padding: 13px 24px;
}
.btn--sm {
  font-size: 13px;
  padding: 7px 12px;
}
.btn--block {
  width: 100%;
}

.btn--discord {
  background: #5865f2;
  color: #fff;
  border-color: #5865f2;
}
.btn--discord:hover {
  background: #6b76f5;
  border-color: #6b76f5;
  color: #fff;
}

/* ── Cartes ───────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card--flush {
  padding: 0;
  overflow: hidden;
}
.card--raised {
  box-shadow: var(--shadow-soft);
}
.card--accent {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-glow), transparent 90px), var(--surface-1);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.card__head h2,
.card__head h3 {
  font-size: 15px;
  font-weight: 600;
}
.card__body {
  padding: 22px;
}
.card__foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface-0);
}

.card h3 + p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Étiquettes et badges ─────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-muted);
  white-space: nowrap;
}

.badge--critical {
  color: var(--tone-critical);
  background: var(--tone-critical-bg);
  border-color: var(--tone-critical-line);
}
.badge--warning {
  color: var(--tone-warning);
  background: var(--tone-warning-bg);
  border-color: var(--tone-warning-line);
}
.badge--notice {
  color: var(--tone-notice);
  background: var(--tone-notice-bg);
  border-color: var(--tone-notice-line);
}
.badge--ok {
  color: var(--tone-ok);
  background: var(--tone-ok-bg);
  border-color: var(--tone-ok-line);
}
.badge--unknown {
  color: var(--tone-unknown);
  background: var(--tone-unknown-bg);
  border-color: var(--tone-unknown-line);
}
.badge--accent {
  color: var(--accent);
  background: var(--accent-glow);
  border-color: var(--accent-line);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-muted);
}

/* ── Encarts ──────────────────────────────────────────────────────────────── */

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--text-dim);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  padding: 14px 18px;
  font-size: 14px;
}
.note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 600;
}
.note p {
  color: var(--text-muted);
}

.note--info {
  border-left-color: var(--accent);
}
.note--critical {
  border-left-color: var(--tone-critical);
  background: var(--tone-critical-bg);
}
.note--warning {
  border-left-color: var(--tone-warning);
  background: var(--tone-warning-bg);
}
.note--ok {
  border-left-color: var(--tone-ok);
  background: var(--tone-ok-bg);
}

/* ── Formulaires ──────────────────────────────────────────────────────────── */

.field {
  display: block;
  margin-bottom: 18px;
}
.field:last-child {
  margin-bottom: 0;
}

.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 560;
  color: var(--text);
  margin-bottom: 6px;
}
.field__label span.dim {
  font-weight: 400;
  font-size: 12px;
}

.field__help {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.5;
}

.field__error {
  font-size: 12.5px;
  color: var(--tone-critical);
  margin-top: 6px;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='number'],
input[type='search'],
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface-0);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color 0.14s ease, background 0.14s ease;
}
input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: var(--surface-1);
  outline: none;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

textarea {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  min-height: 160px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}
.checkbox input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

/* Saisie de PIN : gros, espacé, monospace, parce qu'on recopie six chiffres. */
.pin-input {
  font-family: var(--font-mono);
  font-size: 28px;
  letter-spacing: 0.42em;
  text-align: center;
  padding: 14px 12px 14px 24px;
  font-weight: 500;
}

.choice-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice__box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  transition: border-color 0.14s ease, background 0.14s ease;
  height: 100%;
}
.choice:hover .choice__box {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.choice input:checked + .choice__box {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.choice input:focus-visible + .choice__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.choice input:disabled + .choice__box {
  opacity: 0.4;
  cursor: not-allowed;
}
.choice__emoji {
  font-size: 20px;
  line-height: 1;
}
.choice__text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 570;
}
.choice__text span {
  font-size: 11.5px;
  color: var(--text-dim);
}

/* ── Tableaux ─────────────────────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 560px;
}

thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-dim);
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-0);
  white-space: nowrap;
}

tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--surface-2);
}

td.num,
th.num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.table-empty {
  padding: 52px 24px;
  text-align: center;
  color: var(--text-muted);
}
.table-empty strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 6px;
}

/* ── Statistiques ─────────────────────────────────────────────────────────── */

.stat {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.stat__value {
  font-size: 30px;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── Jauge de score ───────────────────────────────────────────────────────── */

.gauge {
  --gauge-value: 0;
  --gauge-color: var(--tone-unknown);
}

.gauge__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.gauge__title {
  font-size: 13px;
  font-weight: 560;
  color: var(--text-muted);
}
.gauge__number {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  color: var(--gauge-color);
  font-variant-numeric: tabular-nums;
}
.gauge__number sup {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 2px;
}

.gauge__track {
  height: 7px;
  border-radius: 4px;
  background: var(--surface-3);
  overflow: hidden;
}
.gauge__fill {
  height: 100%;
  width: calc(var(--gauge-value) * 1%);
  background: var(--gauge-color);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gauge__note {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 10px;
  line-height: 1.5;
}

.gauge--critical {
  --gauge-color: var(--tone-critical);
}
.gauge--warning {
  --gauge-color: var(--tone-warning);
}
.gauge--notice {
  --gauge-color: var(--tone-notice);
}
.gauge--ok {
  --gauge-color: var(--tone-ok);
}
.gauge--unknown {
  --gauge-color: var(--tone-unknown);
}

/* ── Répartition des gravités ─────────────────────────────────────────────── */

.severity-bar {
  display: flex;
  height: 7px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-3);
}
.severity-bar span {
  display: block;
  height: 100%;
}
.severity-bar .sv-critical {
  background: var(--tone-critical);
}
.severity-bar .sv-high {
  background: #ff8a5c;
}
.severity-bar .sv-medium {
  background: var(--tone-warning);
}
.severity-bar .sv-low {
  background: var(--tone-notice);
}
.severity-bar .sv-info {
  background: var(--tone-unknown);
}

.severity-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.severity-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.severity-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: block;
}

/* ── Copie ────────────────────────────────────────────────────────────────── */

.copyfield {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  overflow: hidden;
}
.copyfield__value {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}
.copyfield__btn {
  flex-shrink: 0;
  border: 0;
  border-left: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 550;
  padding: 0 16px;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}
.copyfield__btn:hover {
  background: var(--surface-3);
  color: var(--text);
}
.copyfield__btn[data-copied='true'] {
  background: var(--tone-ok-bg);
  color: var(--tone-ok);
}

.pin-display {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  line-height: 1;
  padding: 6px 0;
}

/* ── Étapes numérotées ────────────────────────────────────────────────────── */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: var(--accent-glow);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li strong {
  display: block;
  font-size: 15px;
  font-weight: 590;
  margin-bottom: 4px;
}
.steps li p {
  color: var(--text-muted);
  font-size: 14px;
}

.steps--flow {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ── Listes descriptives ──────────────────────────────────────────────────── */

.deflist {
  display: grid;
  gap: 0;
  margin: 0;
}
.deflist > div {
  display: grid;
  grid-template-columns: minmax(130px, 34%) 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.deflist > div:last-child {
  border-bottom: 0;
}
.deflist dt {
  color: var(--text-dim);
}
.deflist dd {
  margin: 0;
  color: var(--text);
  word-break: break-word;
}
.deflist dd.mono {
  font-size: 12.5px;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .deflist > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* ── Liste à puces sobre ──────────────────────────────────────────────────── */

.ticklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 14px;
}
.ticklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
}
.ticklist li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}
.ticklist--ok li::before {
  background: var(--tone-ok);
}
.ticklist--no li::before {
  background: var(--tone-critical);
}

/* ── Dépliants ────────────────────────────────────────────────────────────── */

details.disclose {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
  overflow: hidden;
}
details.disclose + details.disclose {
  margin-top: 10px;
}
details.disclose > summary {
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 560;
  font-size: 14.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.14s ease;
}
details.disclose > summary:hover {
  background: var(--surface-2);
}
details.disclose > summary::-webkit-details-marker {
  display: none;
}
details.disclose > summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.16s ease;
}
details.disclose[open] > summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}
details.disclose > .disclose__body {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Accueil : la scène d'ouverture ───────────────────────────────────────── */

.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

/*
   Une nappe cyan très diffuse derrière le titre. C'est la seule ornementation
   de la page : elle donne une profondeur au noir sans introduire de forme que
   le lecteur devrait interpréter.
*/
.hero::before {
  content: '';
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 620px;
  background: radial-gradient(ellipse at center, rgba(23, 207, 239, 0.13), transparent 66%);
  pointer-events: none;
}

/* Grille technique, presque invisible, qui rappelle la nature de l'outil. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 78%);
  opacity: 0.5;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.hero .lead {
  font-size: clamp(16px, 2vw, 18.5px);
  margin-top: 22px;
  max-width: 620px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero__note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ── Cartes de jeu ────────────────────────────────────────────────────────── */

.game-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.game-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.game-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--game-accent, var(--accent));
  opacity: 0.75;
}
.game-card__head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.game-card__emoji {
  font-size: 24px;
  line-height: 1;
}
.game-card h3 {
  font-size: 15.5px;
}
.game-card p {
  font-size: 13.5px;
  color: var(--text-muted);
}
.game-card__identity {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ── Tarifs ───────────────────────────────────────────────────────────────── */

.price-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  padding: 26px 24px;
  position: relative;
}
.price-card--featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-glow), transparent 140px), var(--surface-1);
  box-shadow: var(--shadow-lift);
}

.price-card__tag {
  position: absolute;
  top: -10px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--ink);
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 600;
}

.price-card h3 {
  font-size: 16px;
}
.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 18px 0 4px;
}
.price-card__amount {
  font-size: 38px;
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1;
}
.price-card__period {
  font-size: 13.5px;
  color: var(--text-dim);
}
.price-card__blurb {
  font-size: 13.5px;
  color: var(--text-muted);
  min-height: 40px;
  margin-bottom: 18px;
}
.price-card .ticklist {
  flex: 1;
  margin-bottom: 22px;
  font-size: 13.5px;
}
.price-card__cta {
  margin-top: auto;
}

/* ── Dashboard ────────────────────────────────────────────────────────────── */

.dash {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 32px var(--gutter) 72px;
}

.dash-side {
  position: sticky;
  top: 84px;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 22px;
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.14s ease, color 0.14s ease;
}
.dash-nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}
.dash-nav a.is-active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 560;
}
.dash-nav svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}

.quota-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
  padding: 15px 16px;
  font-size: 13px;
}
.quota-card__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 9px;
}
.quota-card__bar {
  height: 5px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
  margin: 9px 0 8px;
}
.quota-card__bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.quota-card__bar span[data-full='true'] {
  background: var(--tone-warning);
}
.quota-card__meta {
  font-size: 11.5px;
  color: var(--text-dim);
}

.dash-main {
  min-width: 0;
}

.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.dash-head h1 {
  font-size: 25px;
}
.dash-head p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
  max-width: 620px;
}

@media (max-width: 900px) {
  .dash {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .dash-side {
    position: static;
  }
  .dash-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 4px;
  }
  .dash-nav a {
    white-space: nowrap;
  }
}

/* ── Rapport de scan ──────────────────────────────────────────────────────── */

.verdict-banner {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  background: var(--surface-1);
  position: relative;
  overflow: hidden;
}
.verdict-banner::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--verdict-color, var(--tone-unknown));
}
.verdict-banner__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.verdict-banner__verdict {
  font-size: clamp(24px, 3.5vw, 33px);
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--verdict-color, var(--text));
  line-height: 1.1;
}
.verdict-banner__meaning {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 600px;
}

.verdict-banner--critical {
  --verdict-color: var(--tone-critical);
  background: linear-gradient(100deg, var(--tone-critical-bg), transparent 60%), var(--surface-1);
}
.verdict-banner--warning {
  --verdict-color: var(--tone-warning);
  background: linear-gradient(100deg, var(--tone-warning-bg), transparent 60%), var(--surface-1);
}
.verdict-banner--notice {
  --verdict-color: var(--tone-notice);
  background: linear-gradient(100deg, var(--tone-notice-bg), transparent 60%), var(--surface-1);
}
.verdict-banner--ok {
  --verdict-color: var(--tone-ok);
  background: linear-gradient(100deg, var(--tone-ok-bg), transparent 60%), var(--surface-1);
}
.verdict-banner--unknown {
  --verdict-color: var(--tone-unknown);
}

.finding {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
  overflow: hidden;
}
.finding + .finding {
  margin-top: 12px;
}
.finding[data-suppressed='true'] {
  opacity: 0.72;
}

.finding__summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  transition: background 0.14s ease;
}
.finding__summary:hover {
  background: var(--surface-2);
}
.finding__summary::-webkit-details-marker {
  display: none;
}

.finding__severity {
  width: 3px;
  align-self: stretch;
  border-radius: 2px;
  background: var(--tone-unknown);
  flex-shrink: 0;
}
.finding[data-severity='critical'] .finding__severity {
  background: var(--tone-critical);
}
.finding[data-severity='high'] .finding__severity {
  background: #ff8a5c;
}
.finding[data-severity='medium'] .finding__severity {
  background: var(--tone-warning);
}
.finding[data-severity='low'] .finding__severity {
  background: var(--tone-notice);
}
.finding[data-severity='info'] .finding__severity {
  background: var(--tone-unknown);
}

.finding__main {
  flex: 1;
  min-width: 0;
}
.finding__title {
  font-size: 14.5px;
  font-weight: 570;
  margin-bottom: 5px;
}
.finding__plain {
  font-size: 13.5px;
  color: var(--text-muted);
}
.finding__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.finding__chevron {
  color: var(--text-dim);
  font-family: var(--font-mono);
  flex-shrink: 0;
  transition: transform 0.16s ease;
}
.finding[open] .finding__chevron {
  transform: rotate(45deg);
  color: var(--accent);
}

.finding__body {
  padding: 4px 20px 20px 37px;
  border-top: 1px solid var(--line-soft);
  margin-top: -1px;
}

.finding__block {
  margin-top: 18px;
}
.finding__block h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 500;
}
.finding__block p {
  font-size: 13.5px;
  color: var(--text-muted);
}
.finding__block ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
  display: grid;
  gap: 5px;
}

.evidence-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 5px;
}
.evidence-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-0);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 7px 10px;
  word-break: break-all;
}

/* ── Journal des versions ─────────────────────────────────────────────────── */

.release {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
}
.release:last-child {
  border-bottom: 0;
}
.release__meta {
  font-family: var(--font-mono);
  font-size: 13px;
}
.release__version {
  color: var(--accent);
  font-weight: 600;
}
.release__date {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 4px;
}
.release ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 700px) {
  .release {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ── Pied de page ─────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--surface-1);
  padding: 52px 0 32px;
  margin-top: 64px;
  font-size: 13.5px;
}

/*
    Colonnes explicites : la description large, puis quatre colonnes de liens égales, alignées à
    l'horizontale. L'ancienne formule mêlait une piste « fr » à un repeat(auto-fit), combinaison
    que le moteur de grille réduit à une seule colonne — d'où le pied de page tout en hauteur.
*/
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, minmax(0, 1fr));
  gap: 32px 40px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer-col a {
  color: var(--text-muted);
}
.footer-col a:hover {
  color: var(--text);
}

.footer-about p {
  color: var(--text-muted);
  max-width: 320px;
  margin-top: 14px;
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 12.5px;
}

.locale-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2px;
  background: var(--surface-2);
}
.locale-switch button {
  background: none;
  border: 0;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}
.locale-switch button:hover {
  color: var(--text);
}
.locale-switch button[aria-pressed='true'] {
  background: var(--surface-0);
  color: var(--accent);
}

/* ── Pages autonomes (téléchargement, connexion, erreur) ──────────────────── */

.standalone {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px var(--gutter);
  flex: 1;
}
.standalone__box {
  width: 100%;
  max-width: 520px;
}
.standalone__box--wide {
  max-width: 720px;
}

.state-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.state-icon--ok {
  color: var(--tone-ok);
  background: var(--tone-ok-bg);
  border-color: var(--tone-ok-line);
}
.state-icon--bad {
  color: var(--tone-critical);
  background: var(--tone-critical-bg);
  border-color: var(--tone-critical-line);
}
.state-icon--wait {
  color: var(--accent);
  background: var(--accent-glow);
  border-color: var(--accent-line);
}

/* ── Attente d'un scan ────────────────────────────────────────────────────── */

.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 0 7px transparent;
  }
}

/* ── Éditeur de règles ────────────────────────────────────────────────────── */

.editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1000px) {
  .editor {
    grid-template-columns: 1fr;
  }
}

.editor textarea {
  min-height: 460px;
  tab-size: 2;
}

.editor__result {
  font-size: 13px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 12px;
  display: none;
}
.editor__result[data-state='ok'] {
  display: block;
  background: var(--tone-ok-bg);
  border: 1px solid var(--tone-ok-line);
  color: var(--tone-ok);
}
.editor__result[data-state='bad'] {
  display: block;
  background: var(--tone-critical-bg);
  border: 1px solid var(--tone-critical-line);
  color: var(--tone-critical);
}
.editor__result ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
}
.editor__result code {
  background: rgba(0, 0, 0, 0.25);
  border: 0;
  color: inherit;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
}
.pager span {
  color: var(--text-dim);
  padding: 0 10px;
  font-variant-numeric: tabular-nums;
}

/* ── Impression ───────────────────────────────────────────────────────────── */

@media print {
  :root {
    --surface-0: #fff;
    --surface-1: #fff;
    --surface-2: #f7f8f9;
    --surface-3: #eceef0;
    --text: #101317;
    --text-muted: #3f4954;
    --text-dim: #6b7683;
    --line: #d6dade;
    --line-soft: #e6e9ec;
    --line-strong: #c3c9cf;
  }
  body {
    background: #fff;
    color: #101317;
    font-size: 11pt;
  }
  .site-header,
  .site-footer,
  .dash-side,
  .no-print,
  .nav-toggle {
    display: none !important;
  }
  .dash {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .card,
  .finding,
  .verdict-banner,
  .table-wrap {
    border-color: #d6dade;
    break-inside: avoid;
    box-shadow: none;
  }
  .finding__body {
    display: block !important;
  }
  details {
    open: true;
  }
  details > summary {
    list-style: none;
  }
  a {
    color: #101317;
    text-decoration: underline;
  }
  .hero::before,
  .hero::after {
    display: none;
  }
}
