/* ============================================================
   ChainGuard — design system v2
   Sobre, dense, premium. Une seule couleur d'accent (mint).
   ============================================================ */

:root {
  --bg-0: #07090D;
  --bg-1: #0C1016;
  --bg-2: #121820;
  --bg-3: #1A222C;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #EDF1F7;
  --text-2: #9AA6B8;
  --text-3: #65728A;
  --accent: #5CE1B6;
  --accent-dim: rgba(92, 225, 182, 0.14);
  --accent-ink: #06110E;
  --blue: #7AA2FF;
  --ok: #3DDC97;
  --ok-dim: rgba(61, 220, 151, 0.14);
  --warn: #F5B544;
  --warn-dim: rgba(245, 181, 68, 0.14);
  --bad: #FF5C73;
  --bad-dim: rgba(255, 92, 115, 0.14);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --container: 1120px;
  --nav-h: 64px;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

body {
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(92, 225, 182, 0.3); }

a { color: inherit; }
button { font: inherit; color: inherit; }
code { font-family: var(--font-mono); }
ul, ol { list-style: none; }
/* Prevent iOS auto-zoom on input focus (triggered when font-size < 16px) */
input, select, textarea { font-size: max(16px, 1em) !important; }
/* Prevent double-tap zoom on interactive elements only */
a, button, [role="button"], label { touch-action: manipulation; }
svg { display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section[id], #checker { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* ---------- Fond ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 85%);
}

.bg-halo {
  position: absolute;
  top: -320px;
  left: 50%;
  width: 1100px;
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(92, 225, 182, 0.18), rgba(92, 225, 182, 0.05) 45%, transparent 70%);
  filter: blur(20px);
}

/* ---------- Typo utilitaires ---------- */

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

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--text-2);
  font-size: 1.02rem;
  max-width: 560px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head .section-sub { margin: 0 auto; }

.card-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.sub-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-2);
  margin: 26px 0 12px;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: translateY(0) scale(0.985); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(92, 225, 182, 0.25);
  background: #6ff0c6;
}

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

.btn-ghost:hover {
  background: var(--bg-3);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn-sm { height: 38px; padding: 0 16px; font-size: 0.85rem; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-icon { padding: 0 14px; }
.btn-icon svg { width: 17px; height: 17px; }

/* Spinner + état .loading sur le bouton Analyser */

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(6, 17, 14, 0.25);
  border-top-color: var(--accent-ink);
  animation: spin 0.8s linear infinite;
}

#analyzeBtn.loading { pointer-events: none; opacity: 0.85; }
#analyzeBtn.loading .btn-spinner { display: block; }
#analyzeBtn.loading .btn-arrow { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cartes ---------- */

.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover { border-color: var(--line-strong); }

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 13, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex: none;
}

.logo-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 0;
  margin: 0 auto;
}

.nav-link {
  display: block;
  padding: 6px 9px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-link.active { color: var(--text); background: var(--accent-dim); }

.btn-nav { flex: none; }

/* ---------- Toggle de langue FR / EN ---------- */

.lang-select {
  appearance: none;
  flex: none;
  height: 32px;
  padding: 0 24px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-1);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.lang-select:hover { color: var(--text); border-color: var(--text-3); }
.lang-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.lang-select-footer { margin-left: 4px; }

select.lang-select { display: none !important; }

.lang-drop { position: relative; }

.lang-drop-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-1);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  outline: none;
}
.lang-drop-toggle:hover,
.lang-drop-toggle[aria-expanded="true"] {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.lang-drop-toggle svg { opacity: 0.6; }

.lang-drop-list {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 136px;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 4px;
  z-index: 999;
  list-style: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.lang-drop-list[hidden] { display: none; }

.lang-drop-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 7px;
  transition: background 0.1s, color 0.1s;
  background: none;
  border: none;
  cursor: pointer;
}
.lang-drop-opt:hover { background: var(--accent-dim); color: var(--text); }
.lang-drop-opt.is-active { color: var(--accent); font-weight: 700; }

.footer-bottom-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Hero ---------- */

.hero { padding: 72px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 24px;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  animation: dot-pulse 2s var(--ease) infinite;
}

@keyframes dot-pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-sub {
  color: var(--text-2);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 28px;
}

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text-2);
}

.trust-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---------- Checker card ---------- */

.checker-card {
  padding: 26px 26px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 60%), var(--bg-1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 30px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(92, 225, 182, 0.04);
}

.checker-card:hover { border-color: var(--line); }

.checker-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.checker-label {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
}

.badge-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
}

/* ---------- Objectif de la vérification (obligatoire) ---------- */

.intent-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-0);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.intent-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  text-align: left;
  font-size: 13.5px;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.intent-option + .intent-option { border-top: 1px solid var(--line); }
.intent-option:hover { background: var(--bg-2); color: var(--text); }
.intent-option:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.intent-radio {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  position: relative;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.intent-radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent-ink);
  transform: scale(0);
  transition: transform 0.18s var(--ease);
}
.intent-text { flex: 1; min-width: 0; }
.intent-text strong { font-weight: 600; color: var(--text); }
.intent-arrow { flex: none; width: 16px; height: 16px; color: var(--text-3); opacity: 0; transform: translateX(-4px); transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), color 0.18s var(--ease); }
.intent-option:hover .intent-arrow { opacity: 0.7; transform: translateX(0); }
.intent-option.is-selected { background: var(--accent-dim); color: var(--text); }
.intent-option.is-selected .intent-radio { border-color: var(--accent); background: var(--accent); }
.intent-option.is-selected .intent-radio::after { transform: scale(1); }
.intent-option.is-selected .intent-arrow { opacity: 1; transform: translateX(0); color: var(--accent); }
.intent-group.is-missing { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(255, 92, 115, 0.14); animation: shake-x 0.4s var(--ease); }

.input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  transition: color 0.2s var(--ease);
}

.input-wrap:focus-within .input-icon { color: var(--accent); }

#addressInput {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

#addressInput::placeholder { color: var(--text-3); }

#addressInput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

@keyframes shake-x {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

#addressInput.shake {
  animation: shake-x 0.35s var(--ease);
  border-color: var(--bad);
  box-shadow: 0 0 0 3px var(--bad-dim);
}

.status-line {
  min-height: 1.3em;
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--text-2);
}

.status-line.error { color: var(--bad); }

.checker-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.checker-foot li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.checker-foot li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

/* ---------- Zone d'analyse ---------- */

.analysis-wrap { max-width: calc(960px + 48px); }

/* Scan */

.scan-section {
  display: none;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 32px;
  margin-top: 24px;
}

.scan-section.visible {
  display: grid;
  animation: panel-in 0.45s var(--ease) both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.scan-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.scanner {
  position: relative;
  width: 170px;
  height: 170px;
  margin-bottom: 12px;
  color: var(--accent);
}

.scanner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(92, 225, 182, 0.45);
  animation: ring-out 3s var(--ease) infinite;
}

.scanner-ring-2 { animation-delay: 1s; }
.scanner-ring-3 { animation-delay: 2s; }

@keyframes ring-out {
  0% { transform: scale(0.3); opacity: 0; }
  20% { opacity: 0.9; }
  100% { transform: scale(1.05); opacity: 0; }
}

.scanner-sweep {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(92, 225, 182, 0.35), rgba(92, 225, 182, 0.08) 22%, transparent 38%);
  mask-image: radial-gradient(circle, transparent 24%, #000 26%);
  -webkit-mask-image: radial-gradient(circle, transparent 24%, #000 26%);
  animation: spin 2.4s linear infinite;
}

.scanner-hex {
  position: absolute;
  width: 64px;
  height: 64px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 10px rgba(92, 225, 182, 0.45));
}

.scanner-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 50%;
  transform-origin: top center;
  background: linear-gradient(to bottom, rgba(92, 225, 182, 0.9), transparent);
  animation: spin 2.4s linear infinite;
}

.scan-elapsed {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.scan-elapsed-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.scan-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.scan-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.scan-head .live-tag { margin-left: auto; }

.scan-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ok);
  padding: 4px 10px 4px 8px;
  border: 1px solid rgba(61, 220, 151, 0.3);
  border-radius: 999px;
  background: var(--ok-dim);
}

.scan-status {
  font-size: 0.9rem;
  color: var(--text-2);
  min-height: 1.4em;
}

.scan-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
}

.scan-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-3);
  transition: color 0.25s var(--ease);
}

.scan-step-dot {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  position: relative;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.scan-step.active { color: var(--text); }

.scan-step.active .scan-step-dot {
  border-color: var(--accent);
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

.scan-step.done { color: var(--text-2); }

.scan-step.done .scan-step-dot {
  border-color: var(--ok);
  background: var(--ok-dim);
}

.scan-step.done .scan-step-dot::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 7px;
  border-right: 1.5px solid var(--ok);
  border-bottom: 1.5px solid var(--ok);
  transform: rotate(45deg);
}

.scan-log {
  height: 180px;
  overflow-y: auto;
  padding: 12px 14px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-3) transparent;
}

.log-line {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: baseline;
  color: var(--text-2);
  animation: log-in 0.25s var(--ease) both;
}

@keyframes log-in {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

.log-time { color: var(--text-3); font-variant-numeric: tabular-nums; }
.log-msg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-state { font-weight: 600; letter-spacing: 0.04em; }

.log-pending .log-state { color: var(--text-3); }
.log-pending .log-state::after { content: ""; animation: dots 1.2s steps(4, end) infinite; }
.log-ok .log-state { color: var(--ok); }
.log-warn .log-state { color: var(--warn); }
.log-bad .log-state { color: var(--bad); }
.log-info .log-state { color: var(--blue); }
.log-bad .log-msg { color: var(--text); }

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

.scan-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--bg-3);
  overflow: hidden;
}

.scan-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(92, 225, 182, 0.5);
  transition: width 0.5s var(--ease);
}

/* Reveal */

.reveal-section {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 48px 24px;
  margin-top: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(92, 225, 182, 0.04), transparent);
}

.reveal-section.visible {
  display: flex;
  animation: panel-in 0.45s var(--ease) both;
}

.reveal-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 6px;
}

.reveal-icon svg { width: 28px; height: 28px; }

.reveal-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.reveal-text {
  color: var(--text-2);
  font-size: 0.95rem;
  max-width: 420px;
  margin-bottom: 10px;
}

.btn-reveal { animation: reveal-glow 2s var(--ease) infinite; }

@keyframes reveal-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(92, 225, 182, 0.45); }
  60% { box-shadow: 0 0 0 14px rgba(92, 225, 182, 0); }
}

/* Résultat */

.result-section {
  display: none;
  margin-top: 24px;
}

.result-section.visible {
  display: block;
  animation: panel-in 0.5s var(--ease) both;
}

/* Bannière de conclusion selon l'objectif (score >= 70) */
.intent-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: var(--r-md);
  background: var(--ok-dim);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  animation: item-in 0.5s var(--ease) both;
}
.intent-banner-icon { flex: none; width: 22px; height: 22px; color: var(--ok); }
.intent-banner-icon svg { width: 22px; height: 22px; }
.intent-banner-text { flex: 1; min-width: 0; }

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 4px 16px;
}

.result-id {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.addr {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text);
  padding: 7px 11px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  word-break: break-all;
}

.label-chip {
  display: none;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid;
}

.label-chip:not(:empty) { display: inline-flex; }
.label-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.label-ok { color: var(--ok); border-color: rgba(61, 220, 151, 0.35); background: var(--ok-dim); }
.label-warn { color: var(--warn); border-color: rgba(245, 181, 68, 0.35); background: var(--warn-dim); }
.label-bad { color: var(--bad); border-color: rgba(255, 92, 115, 0.35); background: var(--bad-dim); }

.result-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-3);
}

.link-ext {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.link-ext svg { width: 13px; height: 13px; }
.link-ext:hover { text-decoration: underline; }

.result-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.result-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

/* Score card + jauge */

.score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px 26px;
}

.gauge {
  position: relative;
  width: 240px;
  margin-bottom: 6px;
}

.gauge svg { width: 100%; height: auto; overflow: visible; }

.gauge-track,
.gauge-fill {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
}

.gauge-track { stroke: var(--bg-3); }

.gauge-fill {
  stroke: var(--accent);
  transition: stroke-dashoffset 1.2s var(--ease), stroke 0.4s var(--ease);
}

.gauge-fill.g-bien { stroke: var(--ok); filter: drop-shadow(0 0 8px rgba(61, 220, 151, 0.45)); }
.gauge-fill.g-moyen { stroke: var(--warn); filter: drop-shadow(0 0 8px rgba(245, 181, 68, 0.45)); }
.gauge-fill.g-faible { stroke: var(--bad); filter: drop-shadow(0 0 8px rgba(255, 92, 115, 0.45)); }

.gauge-center {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}

.score-number {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.score-max {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-3);
}

.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  margin-top: 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--text-2);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.verdict-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.verdict-badge.v-bien { color: var(--ok); border-color: rgba(61, 220, 151, 0.4); background: var(--ok-dim); }
.verdict-badge.v-moyen { color: var(--warn); border-color: rgba(245, 181, 68, 0.4); background: var(--warn-dim); }
.verdict-badge.v-faible { color: var(--bad); border-color: rgba(255, 92, 115, 0.4); background: var(--bad-dim); }

.verdict-summary {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-2);
  max-width: 280px;
}

/* Catégories */

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cat-row { animation: item-in 0.4s var(--ease) both; }

@keyframes item-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.cat-name { color: var(--text); font-weight: 500; }

.cat-score {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cat-max { color: var(--text-3); font-weight: 400; }

.cat-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-3);
  overflow: hidden;
}

.cat-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 1s var(--ease);
}

.cat-ok .cat-score { color: var(--ok); }
.cat-ok .cat-bar-fill { background: var(--ok); }
.cat-warn .cat-score { color: var(--warn); }
.cat-warn .cat-bar-fill { background: var(--warn); }
.cat-bad .cat-score { color: var(--bad); }
.cat-bad .cat-bar-fill { background: var(--bad); }

/* Métriques */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--line-strong);
  border-radius: var(--r-md);
  animation: item-in 0.4s var(--ease) both;
  transition: border-color 0.2s var(--ease);
}

.metric:hover { border-color: var(--line-strong); }

.metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.metric-value {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.metric-note {
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--text-3);
}

.metric-note:empty { display: none; }

.metric-ok { border-left-color: var(--ok); }
.metric-ok .metric-value { color: var(--ok); }
.metric-warn { border-left-color: var(--warn); }
.metric-warn .metric-value { color: var(--warn); }
.metric-bad { border-left-color: var(--bad); }
.metric-bad .metric-value { color: var(--bad); }

/* Flags */

.flags-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flag {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--line);
  animation: item-in 0.4s var(--ease) both;
}

.flag-icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}

.flag-icon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.flag-ok .flag-icon { color: var(--ok); background: var(--ok-dim); }
.flag-warn .flag-icon { color: var(--warn); background: var(--warn-dim); }
.flag-danger .flag-icon { color: var(--bad); background: var(--bad-dim); }
.flag-danger { border-color: rgba(255, 92, 115, 0.3); }

.flag-body { min-width: 0; }
.flag-text { font-size: 0.9rem; font-weight: 500; line-height: 1.45; }
.flag-detail { margin-top: 3px; font-size: 0.8rem; color: var(--text-3); line-height: 1.5; }
.flag-detail:empty { display: none; }

/* Contributions */

.contrib-list {
  display: flex;
  flex-direction: column;
}

.contrib {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  animation: item-in 0.4s var(--ease) both;
}

.contrib:last-child { border-bottom: none; }

.contrib-delta {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}

.contrib-delta.pos { color: var(--ok); }
.contrib-delta.neg { color: var(--bad); }
.contrib-delta.zero { color: var(--text-3); }

.contrib-label { color: var(--text); min-width: 0; }

.contrib-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  white-space: nowrap;
}

.contrib-total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  border-bottom: none;
}

.contrib-total .contrib-delta { font-size: 1.05rem; color: var(--text); }
.contrib-total .contrib-label { font-weight: 600; }

.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---------- Stats strip ---------- */

.stats-strip { padding: 56px 0 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-1);
  overflow: hidden;
}

.stats li {
  padding: 24px 26px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats li:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}

.stat-label { font-size: 0.86rem; color: var(--text-2); }

/* ---------- Sections ---------- */

.section { padding: 112px 0 0; }
/* Les ancres de la nav tiennent compte du padding haut de la section :
   le titre de la section arrive juste sous la barre de navigation. */
.section[id] { scroll-margin-top: calc(var(--nav-h) + 24px - 112px); }
#chains { padding-top: 56px; scroll-margin-top: calc(var(--nav-h) + 24px - 56px); }

/* Timeline */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  top: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 10%, var(--line-strong) 90%, transparent);
}

.timeline-step { position: relative; padding-top: 0; }

.timeline-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 1px solid rgba(92, 225, 182, 0.45);
  background: var(--bg-0);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 0 0 6px var(--bg-0), 0 0 20px rgba(92, 225, 182, 0.18);
}

.timeline-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.timeline-text { font-size: 0.9rem; color: var(--text-2); }

.timeline-text code,
.faq-a code {
  font-size: 0.82em;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--accent-dim);
  color: var(--accent);
}

/* Cas d'usage */

.usecase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.usecase-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.usecase-card .btn { align-self: flex-start; margin-top: auto; }

.flow {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 18px 16px;
  margin-bottom: 24px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: none;
  width: 96px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

.flow-node svg {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
}

.flow-node-accent svg {
  background: var(--accent-dim);
  border-color: rgba(92, 225, 182, 0.4);
  color: var(--accent);
}

.flow-node-accent { color: var(--accent); }

.flow-link {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--line-strong);
  margin-bottom: 24px;
  overflow: hidden;
}

.flow-pulse {
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
  animation: flow-move 2.2s linear infinite;
}

.flow-link:nth-of-type(4) .flow-pulse { animation-delay: 1.1s; }

@keyframes flow-move {
  from { transform: translateX(-30px); }
  to { transform: translateX(160px); }
}

.usecase-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.usecase-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.usecase-text { font-size: 0.93rem; color: var(--text-2); margin-bottom: 18px; }

.check-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 26px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-dim);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 4px;
  height: 7px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
}

/* Méthodologie */

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
}

.seg-bar {
  display: flex;
  gap: 3px;
  height: 36px;
  margin-bottom: 14px;
}

.seg {
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-ink);
  border-radius: 6px;
  min-width: 0;
}

.seg:first-child { border-radius: 10px 6px 6px 10px; }
.seg:last-child { border-radius: 6px 10px 10px 6px; }

.seg-1 { background: var(--accent); }
.seg-2 { background: #3fb892; }
.seg-3 { background: #2a8c70; }
.seg-4 { background: #1d6352; color: var(--text); }

.seg-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seg-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
}

.seg-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}

.seg-pts {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
}

.thresholds {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thresholds li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-2);
}

.thresholds strong { color: var(--text); letter-spacing: 0.06em; font-size: 0.85rem; }

.threshold-badge {
  display: inline-block;
  min-width: 68px;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid;
}

.t-bien { color: var(--ok); border-color: rgba(61, 220, 151, 0.35); background: var(--ok-dim); }
.t-moyen { color: var(--warn); border-color: rgba(245, 181, 68, 0.35); background: var(--warn-dim); }
.t-faible { color: var(--bad); border-color: rgba(255, 92, 115, 0.35); background: var(--bad-dim); }

.method-note {
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--bad-dim);
  border: 1px solid rgba(255, 92, 115, 0.25);
  font-size: 0.84rem;
  color: var(--text);
}

.signals-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.signals-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 10px 10px 0;
  border-bottom: 1px solid var(--line-strong);
}

.signals-table td {
  padding: 10px 10px 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
}

.signals-table td:nth-child(2) { color: var(--text-2); }
.signals-table td:last-child, .signals-table th:last-child { text-align: right; padding-right: 0; }
.signals-table tr:last-child td { border-bottom: none; }

.impact {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid;
}

.impact-block { color: var(--bad); border-color: rgba(255, 92, 115, 0.35); background: var(--bad-dim); }
.impact-strong { color: var(--warn); border-color: rgba(245, 181, 68, 0.35); background: var(--warn-dim); }
.impact-mid { color: var(--text-2); border-color: var(--line-strong); background: var(--bg-2); }
.impact-bonus { color: var(--ok); border-color: rgba(61, 220, 151, 0.35); background: var(--ok-dim); }

/* À propos */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-text { color: var(--text-2); font-size: 0.98rem; margin-bottom: 14px; }
.about-text:last-child { margin-bottom: 0; }

.principles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.principle {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 4px;
  padding: 20px 22px;
}

.principle svg {
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
}

.principle h3 {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 700;
}

.principle p { font-size: 0.88rem; color: var(--text-2); }

/* FAQ */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.2s var(--ease);
}

.faq-item:hover, .faq-item[open] { border-color: var(--line-strong); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] .faq-q::after { transform: rotate(225deg); margin-top: 4px; }

.faq-a {
  padding: 0 22px 20px;
  font-size: 0.92rem;
  color: var(--text-2);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 120px;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 56px;
}

.footer-brand { max-width: 380px; }

.footer-disclaimer {
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--text-3);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover { color: var(--text); }
.footer-muted { font-size: 0.9rem; color: var(--text-3); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 0.82rem;
  color: var(--text-3);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 100;
  transform: translateX(-50%) translateY(16px);
  padding: 12px 20px;
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

.timeline-step.reveal:nth-child(2) { transition-delay: 0.08s; }
.timeline-step.reveal:nth-child(3) { transition-delay: 0.16s; }
.timeline-step.reveal:nth-child(4) { transition-delay: 0.24s; }
.principle.reveal:nth-child(2) { transition-delay: 0.08s; }
.principle.reveal:nth-child(3) { transition-delay: 0.16s; }


/* ====================================================================
   Multi-chaînes (v3) : badges, sélecteur, section Blockchains, modal
   ==================================================================== */

/* Logo de chaîne (SVG injecté par app.js, viewBox 0 0 32 32) */
.chain-logo {
  display: inline-flex;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  overflow: hidden;
}
.chain-logo svg { width: 100%; height: 100%; display: block; }

/* Badge de chaîne (checker, scan, résultat) */
.chain-badge {
  display: none;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  white-space: nowrap;
  line-height: 1;
}
.chain-badge:not(:empty) { display: inline-flex; }
.chain-badge .chain-logo { width: 16px; height: 16px; }
.chain-badge .chain-sub { color: var(--text-3); }

/* Bouton de sélection de chaîne (carte checker) */
.chain-select {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 14px 0 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-2);
  cursor: pointer;
  max-width: 100%;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.chain-select .chain-badge {
  display: inline-flex;
  height: 28px;
  border: none;
  background: transparent;
  padding-left: 14px;
  padding-right: 8px;
  color: inherit;
}
.chain-select .chain-badge:empty::before { content: "Ethereum"; }
.chain-select-action {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0 4px 0 8px;
  border-left: 1px solid var(--line);
  line-height: 1;
  white-space: nowrap;
}
.chain-select:hover .chain-select-action { color: var(--accent-ink); }
.chain-select:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chain-select:hover .chain-select-chevron { color: var(--accent-ink); }
.chain-select-chevron {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--text-3);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.chain-select:focus-visible {
  border-color: var(--accent);
  outline: none;
}
.chain-select:hover .chain-select-chevron { color: var(--accent); transform: translateY(1px); }
.chain-select.is-auto .chain-badge::after {
  content: "· détecté";
  color: var(--text-3);
  margin-left: 2px;
}
.chain-select.is-open .chain-select-chevron { transform: rotate(180deg); }

/* ---------- Section Blockchains supportées ---------- */

.chains-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.chain-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 16px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}
.chain-tile:hover {
  border-color: var(--line-strong);
  background: var(--bg-2);
  transform: translateY(-2px);
}
.chain-tile .chain-logo {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}
.chain-tile-name {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}
.chain-tile-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
/* ---------- Modal sélecteur de blockchain ---------- */

[hidden] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* svh = smallest viewport height, stable even when iOS toolbar shows/hides */
  padding: 12vh 16px 24px;
  padding: 12svh 16px 24px;
  touch-action: none;
  overscroll-behavior: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: modal-fade 0.2s var(--ease) both;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: calc(88vh - 24px);
  max-height: calc(88svh - 24px);
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: modal-in 0.22s var(--ease) both;
  overflow: hidden;
}

@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Fermeture animée : ajouté par closeChainModal, masquage effectif après 200 ms. */
.modal.is-closing .modal-backdrop { animation: modal-fade-out 0.2s var(--ease) both; }
.modal.is-closing .modal-panel { animation: modal-out 0.2s var(--ease) both; }
@keyframes modal-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes modal-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(8px) scale(0.98); }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
}
.modal-head h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.modal-hint {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--text-2);
  min-height: 1.2em;
}
.modal-hint:empty { display: none; }

.modal-close {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.modal-close svg { width: 14px; height: 14px; }
.modal-close:hover { border-color: var(--line-strong); color: var(--text); }

.modal-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px 14px;
}

.modal-search {
  position: relative;
  flex: 1;
  min-width: 0;
}
.modal-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.modal-search input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.modal-search input::placeholder { color: var(--text-3); }
.modal-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.modal-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.seg-group {
  display: inline-flex;
  flex: none;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
}
.seg-btn {
  height: 32px;
  padding: 0 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.seg-btn:hover { color: var(--text); }
.seg-btn.is-active { background: var(--bg-3); color: var(--text); }

.chain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 4px 24px 20px;
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chain-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease), opacity 0.18s var(--ease);
}
.chain-option .chain-logo { width: 32px; height: 32px; }
.chain-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chain-name {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chain-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--text-3);
}
.chain-option:hover,
.chain-option:focus-visible {
  border-color: var(--accent);
  background: var(--bg-3);
  transform: translateY(-1px);
  outline: none;
}
.chain-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.chain-option.is-selected .chain-sub { color: var(--accent); }
/* Confirmation du choix avant fermeture animée du modal. */
.chain-option.is-chosen {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent) inset;
  animation: chosen-pop 0.26s var(--ease);
}
.chain-option.is-chosen .chain-sub { color: var(--accent); }
@keyframes chosen-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.025); }
  100% { transform: scale(1); }
}
.chain-option.is-incompatible {
  opacity: 0.35;
  cursor: not-allowed;
}
.chain-option.is-incompatible:hover {
  border-color: var(--line);
  background: var(--bg-2);
  transform: none;
}
.chain-grid-empty {
  grid-column: 1 / -1;
  padding: 28px 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-3);
}

.modal-foot {
  padding: 12px 24px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-0);
}
.modal-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-3);
}
.modal-note::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  opacity: 0.5;
}

/* Corps verrouillé pendant l'ouverture du modal */
body.modal-open { overflow: hidden; }

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .hero-grid { gap: 40px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .chains-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 24px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-copy { display: contents; }
  .hero-copy .status-pill { order: 1; margin-bottom: 10px; }
  .hero-copy .hero-title { order: 2; }
  .hero-copy .trust-list { order: 3; margin-bottom: 20px; }
  .checker-card { order: 4; }
  .hero-copy .hero-sub { order: 5; margin-top: 20px; margin-bottom: 0; }
  .scan-section { grid-template-columns: 1fr; padding: 24px; }
  .scan-visual { flex-direction: row; justify-content: flex-start; gap: 18px; }
  .scanner { width: 110px; height: 110px; margin-bottom: 0; }
  .scanner-hex { width: 44px; height: 44px; }
  .scan-elapsed-label { display: none; }
  .scan-steps { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .result-grid-2 { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(2) { border-right: none; }
  .stats li:nth-child(1), .stats li:nth-child(2) { border-bottom: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .timeline::before { display: none; }
  .usecase-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .section { padding-top: 88px; }
  .section[id] { scroll-margin-top: calc(var(--nav-h) + 24px - 88px); }
  #chains { padding-top: 40px; scroll-margin-top: calc(var(--nav-h) + 24px - 40px); }
}

@media (max-width: 640px) {
  #top { scroll-margin-top: 0; }
  .container { padding: 0 16px; }
  .chains-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .chain-tile { padding: 14px 12px 12px; }
  .chain-tile .chain-logo { width: 32px; height: 32px; }
  .checker-head { flex-wrap: wrap; gap: 8px; }
  .modal { padding: 12px; align-items: flex-end; }
  .modal-panel {
    max-height: calc(100vh - 80px);
    max-height: calc(100svh - 48px);
    border-radius: var(--r-lg);
  }
  .modal-head { padding: 18px 18px 12px; }
  .modal-tools { flex-direction: column; align-items: stretch; padding: 0 18px 12px; }
  .seg-group { align-self: flex-start; }
  .chain-grid { grid-template-columns: 1fr 1fr; padding: 4px 18px 16px; max-height: 55vh; }
  .modal-foot { padding: 10px 18px 14px; }
  .scan-head { flex-wrap: wrap; gap: 8px; }
  .btn-nav { display: none; }
  .nav-inner { justify-content: space-between; }
  .nav-inner { gap: 12px; }
  .lang-select { height: 28px; font-size: 11px; }
  .hero-title { font-size: 2.1rem; }
  .checker-card { padding: 20px 18px 18px; }
  .input-row { flex-direction: column; }
  .btn-icon { width: 100%; }
  .card { padding: 20px 18px; }
  .scan-section { padding: 18px; }
  .scan-log { height: 150px; font-size: 11.5px; }
  .log-line { grid-template-columns: 58px 1fr auto; gap: 8px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats li { border-right: none; border-bottom: 1px solid var(--line); }
  .stats li:last-child { border-bottom: none; }
  .timeline { grid-template-columns: 1fr; }
  .flow-node { width: 76px; font-size: 10px; }
  .flow-node svg { width: 38px; height: 38px; padding: 9px; }
  .usecase-card { padding: 22px 18px; }
  .usecase-card .btn { align-self: stretch; }
  .signals-table { font-size: 0.82rem; }
  .signals-table td:nth-child(2) { display: none; }
  .signals-table th:nth-child(2) { display: none; }
  .result-actions .btn { width: 100%; }
  .result-head { flex-direction: column; align-items: flex-start; }
  .contrib { grid-template-columns: 48px 1fr; }
  .contrib-cat { display: none; }
  .site-footer { margin-top: 80px; }
  .footer-inner { padding-top: 48px; padding-bottom: 44px; }
  .footer-cols { grid-template-columns: 1fr; gap: 0; }
  .footer-col { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .footer-col:last-child { border-bottom: none; }
  .footer-bottom { padding: 24px 0; }
  .section-head { margin-bottom: 36px; }
  .gauge { width: 200px; }
  .score-number { font-size: 2.6rem; }
}

/* ---------- Mouvement réduit ---------- */

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

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════
   BLACKLIST TRACKER
   ═══════════════════════════════════════════ */

/* Stats bar */
.bl-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.bl-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 120px;
}
.bl-stat-token {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}
.bl-stat-count {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--text-0);
  line-height: 1;
}
.bl-stat-label {
  font-size: 0.75rem;
  color: var(--text-2);
}
.bl-stat-sep {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}
.bl-stat-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-left: auto;
}
.bl-sync-status {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  width: fit-content;
}
.bl-syncing { background: rgba(255,200,50,.12); color: #ffc832; }
.bl-ok      { background: rgba(92,225,182,.12); color: var(--accent); }
.bl-last-update { font-size: 0.7rem; color: var(--text-2); }

/* Progress bars */
.bl-progress-wrap {
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bl-progress-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bl-progress-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  width: 36px;
  flex-shrink: 0;
}
.bl-progress-track {
  flex: 1;
  height: 6px;
  background: var(--bg-2);
  border-radius: 99px;
  overflow: hidden;
}
.bl-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.5s ease;
}
.bl-progress-pct {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

/* Checker */
.bl-checker {
  margin: 2rem 0;
  padding: 1.75rem;
}
.bl-checker-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-0);
  margin: 0 0 1rem;
}
.bl-checker-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.bl-addr-input {
  flex: 1;
  min-width: 240px;
  padding: 0.75rem 1rem;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-0);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.bl-addr-input:focus { border-color: var(--accent); }
.bl-check-btn { padding: 0.75rem 1.5rem; flex-shrink: 0; }

.bl-result {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bl-result-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bl-result-token {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  width: 36px;
  flex-shrink: 0;
}
.bl-result-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  border-radius: 8px;
}
.bl-bad  { background: rgba(239,68,68,.15);  color: #f87171; }
.bl-good { background: rgba(92,225,182,.12); color: var(--accent); }
.bl-error {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #f87171;
}

/* List */
.bl-list-wrap { margin: 2rem 0; }
.bl-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.bl-list-tabs {
  display: flex;
  gap: 0.5rem;
}
.bl-tab {
  padding: 0.4rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s;
}
.bl-tab.active, .bl-tab:hover {
  background: rgba(92,225,182,.12);
  border-color: var(--accent);
  color: var(--accent);
}
.bl-list-total {
  font-size: 0.75rem;
  color: var(--text-2);
}
.bl-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-1);
}
.bl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.bl-table th {
  padding: 0.6rem 1rem;
  text-align: left;
  color: var(--text-2);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.bl-table td {
  padding: 0.5rem 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.bl-table tr:last-child td { border-bottom: none; }
.bl-table tr:hover td { background: var(--bg-2); }
.bl-table td:first-child { color: var(--text-2); font-size: 0.7rem; width: 48px; }
.bl-addr {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-0);
  word-break: break-all;
}
.bl-pagination {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}
.bl-page-btn {
  padding: 0.4rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.bl-page-btn:hover { border-color: var(--accent); color: var(--accent); }
.bl-page-info { font-size: 0.75rem; color: var(--text-2); }

@media (max-width: 640px) {
  .bl-stats { flex-direction: column; align-items: flex-start; }
  .bl-stat-sep { width: 100%; height: 1px; }
  .bl-stat-meta { margin-left: 0; }
  .bl-checker-row { flex-direction: column; }
  .bl-addr-input { min-width: 0; width: 100%; }
  .bl-check-btn { width: 100%; }
}

/* ── Blacklist page extras ── */
.hero-sm { padding: 48px 0 24px; }
.hero-grid-sm { grid-template-columns: 1fr; max-width: 680px; }
.bl-checker-sub {
  font-size: 0.82rem;
  color: var(--text-2);
  margin: -0.5rem 0 1rem;
}
.bl-sync-note {
  font-size: 0.75rem;
  color: var(--text-2);
  margin: 0.25rem 0 0;
  font-style: italic;
}
/* ── Chain selector ── */
.bl-chain-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 1.75rem;
}
.bl-chain-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.bl-chain-btn:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--text);
}
.bl-chain-btn.active {
  border-color: var(--accent);
  background: rgba(52,211,153,0.1);
  color: var(--accent);
}
.bl-chain-logo {
  display: inline-flex;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
}
.bl-chain-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 640px) {
  .bl-chain-btn { padding: 6px 12px; font-size: 0.76rem; gap: 5px; }
  .bl-chain-logo { width: 15px; height: 15px; }
}

.bl-source-info {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  color: var(--text-2);
  line-height: 1.5;
}
.bl-source-info svg { flex-shrink: 0; margin-top: 1px; }
.bl-source-info code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--bg-2);
  padding: 0 4px;
  border-radius: 4px;
}

/* ── Blacklist page header ── */
.bl-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.5rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.bl-page-header-left { flex: 1; min-width: 0; }
.bl-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.bl-page-header .section-label { margin-bottom: 0; }
.bl-page-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-0);
  margin: 0 0 0.4rem;
  line-height: 1.1;
}
.bl-page-sub {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
}
/* Stats intégrés dans le header */
.bl-page-header .bl-stats {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  gap: 1rem;
}
.bl-page-header .bl-stat-sep-status { display: none; }
.bl-page-header .bl-stat-meta { display: none; }

/* Ordinateur : stats sur la grille du header — libellé ↔ ligne « On-Chain »,
   chiffre ↔ titre (même taille, même ligne), « adresses … » ↔ sous-titre.
   Subgrid : l'alignement tient quelle que soit la chaîne (cartes masquées via [hidden]). */
@media (min-width: 641px) {
  .bl-page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 2rem;
    row-gap: 0;
  }
  .bl-page-header-left { display: contents; }
  .bl-page-header .bl-label-row  { grid-area: 1 / 1; align-self: baseline; }
  .bl-page-header .bl-page-title { grid-area: 2 / 1; }
  .bl-page-header .bl-page-sub   { grid-area: 3 / 1; }
  .bl-page-header .bl-stats {
    grid-area: 1 / 2 / 4 / 3;
    display: grid;
    grid-template-rows: subgrid;
    grid-auto-flow: column;
    column-gap: 1rem;
  }
  .bl-page-header .bl-stat-card {
    grid-row: 1 / 4;
    display: grid;
    grid-template-rows: subgrid;
    min-width: 0;
  }
  /* même ligne de base que « On-Chain · … » (polices de tailles différentes) */
  .bl-page-header .bl-stat-token { align-self: baseline; }
  .bl-page-header .bl-stat-count {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 0.4rem;
    align-self: start;
  }
  .bl-page-header .bl-stat-label { align-self: start; line-height: 1.5; }
  .bl-page-header .bl-stat-sep { grid-row: 1 / 4; height: auto; align-self: stretch; }
}

@media (max-width: 640px) {
  .bl-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0 1rem;
  }
  .bl-page-header .bl-stats {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }
  .bl-page-header .bl-stat-card {
    min-width: 0;
    flex: 1;
  }
  .bl-page-header .bl-stat-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .bl-page-header .bl-stat-sep {
    width: 1px !important;
    height: 36px !important;
    flex-shrink: 0;
  }
  .bl-page-header .bl-stat-count { font-size: 1.2rem; }
}

.bl-section { padding-top: 8px; }
@media (max-width: 640px) { .bl-section { padding-top: 4px; } }

/* ── Hamburger button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile overlay (page blur) ── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.32s, visibility 0.32s;
}
.mobile-overlay.is-open { opacity: 1; pointer-events: auto; visibility: visible; }

/* ── Mobile drawer (slides from left) ── */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(300px, 82vw);
  height: 100vh;
  height: 100dvh;
  z-index: 101;
  background: rgba(14, 16, 26, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255,255,255,0.07);
  box-shadow: 4px 0 24px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.mobile-menu-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}
.mobile-menu-brand .logo-mark { width: 22px; height: 22px; color: var(--accent); }
.mobile-menu-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }

.mobile-menu-links {
  list-style: none;
  margin: 0;
  padding: 8px 0 24px;
  flex: 1;
  overflow-y: auto;
}
.mobile-menu-links li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  position: relative;
  transition: color 0.18s, background 0.18s, padding-left 0.18s;
}
.menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.7;
  transition: opacity 0.18s;
}
.mobile-menu-links li a:hover .menu-icon,
.mobile-menu-links li a.active .menu-icon { opacity: 1; }
.mobile-menu-links li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.18s;
}
.mobile-menu-links li a:hover { color: var(--text); background: rgba(255,255,255,0.04); padding-left: 26px; }
.mobile-menu-links li a:hover::before { transform: scaleY(1); }
.mobile-menu-links li a.active { color: var(--accent); padding-left: 26px; }
.mobile-menu-links li a.active::before { transform: scaleY(1); }
.mobile-menu-links li a.tapped {
  background: rgba(92,225,182,0.1);
  color: var(--accent);
  padding-left: 28px;
  transition: none;
}
.mobile-menu-links li a.tapped::before { transform: scaleY(1); }

@media (max-width: 900px) {
  .nav-hamburger { display: flex; order: -1; }
  /* hamburger + lang-drop grouped left, logo pushed right */
  .nav-inner { justify-content: flex-start; gap: 14px; }
  .btn-nav { display: none; }
  .lang-drop { order: 0; }
  .logo { order: 1; margin-left: auto; }
  /* dropdown opens rightward so it stays on screen */
  .lang-drop-list { right: auto; left: 0; }
}

/* ── Back button ── */
.bl-back-btn {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s;
}
@media (max-width: 768px) {
  .bl-back-btn { display: inline-flex; }
}
.bl-back-btn:hover { color: var(--accent); }

/* ===== Portrait forcé : en paysage sur mobile, on fait pivoter le contenu de 90°
   pour qu'il reste affiché en mode portrait (l'écran ne "tourne" pas). ===== */
@media (orientation: landscape) and (max-width: 932px) and (max-height: 500px) {
  html { overflow: hidden; }
  body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vh;
    height: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform-origin: top left;
    transform: translateX(100vw) rotate(90deg);
  }
}
