/* ============================================================
   proximapool — feuille de style unique
   Reprise du design system de l'ancien front (web/ancien-front) :
   variables, thèmes clair/sombre, composants. Changements :
   - aucune police distante (Inter / JetBrains Mono si installées
     localement, sinon polices système) ;
   - plus aucun style inline : ce que l'ancien front mettait dans
     style="" est devenu une classe (section « AJOUTS » en fin) ;
   - calculateur de rentabilité supprimé (aucun prix publié).
   ============================================================ */

/* ---- Polices auto-hébergées (OFL 1.1, voir fonts/LICENCES.md) ----
   Sous-ensemble latin, axes variables wght : Inter pour le texte et les
   chiffres (chiffres tabulaires), JetBrains Mono pour le code, les clés
   et les txid. Aucune requête externe. */
@font-face {
  font-family: "Inter PP";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono PP";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---- Spacing (4px base) ---- */
  --sp-2xs: 4px;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;
  --sp-4xl: 96px;

  /* ---- Radius ---- */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* ---- Typography ---- */
  --font-ui: "Inter PP", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono PP", "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", "Fira Code", Menlo, Consolas, monospace;
  /* Valeurs chiffrées : Inter en chiffres tabulaires (alignés), 1 sans empattement, a simple */
  --font-num: var(--font-ui);
  --num-features: "tnum" 1, "cv11" 1, "ss01" 1, "zero" 0;

  /* ---- Z-index ---- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 500;
  --z-toast: 600;
  --z-cmd: 700;

  /* ---- Transitions ---- */
  --t-fast: 150ms ease;
  --t-normal: 250ms ease;
  --t-slow: 400ms ease;
}

/* ---- LIGHT MODE (default) ---- */
:root, [data-theme="light"] {
  --bg: #F8F9FB;
  --surface-1: #FFFFFF;
  --surface-2: #F3F4F8;
  --surface-3: #EBECF1;
  --surface-4: #E2E4EA;
  --elevated: #FFFFFF;

  --text-1: #1A1C23;
  --text-2: #5A5E6E;
  --text-3: #8B8E9E;
  --text-disabled: #B0B3C0;
  --text-inv: #F8F9FB;

  --border-subtle: rgba(0,0,0,0.06);
  --border-default: rgba(0,0,0,0.1);
  --border-strong: rgba(0,0,0,0.18);
  --border-active: rgba(13,148,136,0.4);

  --primary-50: #F0FDFA;
  --primary-100: #CCFBF1;
  --primary-200: #99F6E4;
  --primary-300: #5EEAD4;
  --primary-400: #2DD4BF;
  --primary-500: #14B8A6;
  --primary-600: #0D9488;
  --primary-700: #0F766E;
  --primary-800: #115E59;
  --primary-900: #134E4A;
  --primary: #0D9488;
  --primary-dim: rgba(13,148,136,0.1);

  --accent: #D97706;
  --accent-dim: rgba(217,119,6,0.1);

  --success: #059669;
  --success-dim: rgba(5,150,105,0.1);
  --warning: #D97706;
  --warning-dim: rgba(217,119,6,0.1);
  --danger: #DC2626;
  --danger-dim: rgba(220,38,38,0.1);
  --info: #2563EB;
  --info-dim: rgba(37,99,235,0.1);

  --chart-1: #0D9488;
  --chart-2: #2563EB;
  --chart-3: #7C3AED;
  --chart-4: #D97706;
  --chart-grid: rgba(0,0,0,0.04);
  --chart-axis: rgba(0,0,0,0.2);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 20px rgba(13,148,136,0.1);

  --overlay: rgba(0,0,0,0.4);
  --backdrop: 12px;
  color-scheme: light;
}
/* ---- DARK MODE ---- */
[data-theme="dark"] {
  --bg: #0A0B0E;
  --surface-1: #111318;
  --surface-2: #16181F;
  --surface-3: #1C1E26;
  --surface-4: #22242E;
  --elevated: #282A35;

  --text-1: #F0F1F4;
  --text-2: #A0A3B1;
  --text-3: #6B6E7E;
  --text-disabled: #4A4D5A;
  --text-inv: #0A0B0E;

  --border-subtle: rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.1);
  --border-strong: rgba(255,255,255,0.18);
  --border-active: rgba(45,212,191,0.4);

  --primary-50: #F0FDFA;
  --primary-100: #CCFBF1;
  --primary-200: #99F6E4;
  --primary-300: #5EEAD4;
  --primary-400: #2DD4BF;
  --primary-500: #14B8A6;
  --primary-600: #0D9488;
  --primary-700: #0F766E;
  --primary-800: #115E59;
  --primary-900: #134E4A;
  --primary: #2DD4BF;
  --primary-dim: rgba(45,212,191,0.15);

  --accent: #F59E0B;
  --accent-dim: rgba(245,158,11,0.15);

  --success: #34D399;
  --success-dim: rgba(52,211,153,0.15);
  --warning: #FBBF24;
  --warning-dim: rgba(251,191,36,0.15);
  --danger: #F87171;
  --danger-dim: rgba(248,113,113,0.15);
  --info: #60A5FA;
  --info-dim: rgba(96,165,250,0.15);

  --chart-1: #2DD4BF;
  --chart-2: #60A5FA;
  --chart-3: #A78BFA;
  --chart-4: #F59E0B;
  --chart-grid: rgba(255,255,255,0.04);
  --chart-axis: rgba(255,255,255,0.15);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(45,212,191,0.12);

  --overlay: rgba(0,0,0,0.7);
  --backdrop: 16px;
  color-scheme: dark;
}
/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--t-normal), color var(--t-normal);
}

a { color: var(--primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--primary-300); }

::selection { background: var(--primary-dim); color: var(--text-1); }

/* Anneau de focus : sans changer le rayon de l'élément (l'ancien
   « border-radius » ici déformait les boutons au clavier). */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-lg); }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 var(--sp-lg); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: 64px;
  background: color-mix(in srgb, var(--surface-1) 80%, transparent);
  backdrop-filter: blur(var(--backdrop));
  -webkit-backdrop-filter: blur(var(--backdrop));
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--primary); }
  50% { opacity: 0.7; box-shadow: 0 0 20px var(--primary); }
}

.logo-sub {
  font-weight: 400;
  font-size: 13px;
  color: var(--text-3);
  margin-left: 2px;
}

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

.nav-item {
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--t-fast);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-ui);
}

.nav-item:hover { color: var(--text-1); background: var(--surface-2); }
.nav-item.active { color: var(--primary); background: var(--primary-dim); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.theme-toggle:hover { color: var(--text-1); border-color: var(--border-default); }

/* Language toggle */
.lang-toggle {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: var(--font-ui);
}
.lang-toggle:hover { color: var(--text-1); }

/* Mobile menu button */
.menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: var(--sp-4xl) 0 var(--sp-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--primary-dim) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: var(--sp-md);
  position: relative;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--primary-300), var(--primary), var(--info));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto var(--sp-xl);
  position: relative;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  border: none;
  font-family: var(--font-ui);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-500);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { background: var(--primary-400); transform: translateY(-1px); box-shadow: 0 0 30px rgba(45,212,191,0.25); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-default);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--border-strong); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding: 8px 16px;
}
.btn-ghost:hover { color: var(--text-1); background: var(--surface-2); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ============================================================
   LIVE STATS TICKER (below hero)
   ============================================================ */
.ticker-bar {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-1);
  padding: var(--sp-sm) 0;
}

.ticker-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2xl);
  flex-wrap: wrap;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: 13px;
  color: var(--text-2);
}

.ticker-item .label { color: var(--text-3); text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; }
.ticker-item .value { font-family: var(--font-mono); font-weight: 500; color: var(--text-1); font-size: 14px; }
.ticker-item .unit { font-size: 12px; color: var(--text-3); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section { padding: var(--sp-3xl) 0; }
.section-header { margin-bottom: var(--sp-xl); }
.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-xs);
}
.section-header p { color: var(--text-2); font-size: 16px; }
.section-header .section-title {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.section-header .section-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}

.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stats-grid-2 { grid-template-columns: repeat(2, 1fr); }

.stat-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  transition: all var(--t-fast);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

.stat-card .stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: var(--sp-xs);
}

.stat-card .stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-card .stat-unit {
  font-size: 14px;
  color: var(--text-3);
  font-weight: 400;
  margin-left: 4px;
}

.stat-card .stat-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: var(--sp-xs);
}

.stat-card .stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-top: var(--sp-xs);
}

.stat-card .stat-trend.up { color: var(--success); }
.stat-card .stat-trend.down { color: var(--danger); }

.stat-card .stat-trend .arrow { font-size: 10px; }

/* Sparkline in stat card */
.stat-sparkline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  opacity: 0.3;
}

/* ============================================================
   CHARTS
   ============================================================ */
.chart-container {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-md);
}

.chart-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
}

.chart-range {
  display: flex;
  gap: 2px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 2px;
}

.chart-range button {
  padding: 4px 12px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: var(--font-ui);
}

.chart-range button:hover { color: var(--text-1); }
.chart-range button.active { background: var(--surface-3); color: var(--text-1); }

.chart-area {
  width: 100%;
  height: 280px;
  position: relative;
}

.chart-area svg {
  width: 100%;
  height: 100%;
}

.chart-tooltip {
  position: absolute;
  display: none;
  background: var(--surface-3);
  border: 1px solid var(--border-default);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-1);
  pointer-events: none;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   TABLES
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 64px;
  background: var(--surface-1);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-2);
}

.data-table tr:hover td { background: var(--surface-2); }
.data-table tr:last-child td { border-bottom: none; }

.data-table .mono { font-family: var(--font-mono); font-size: 13px; }
.data-table .right { text-align: right; }

/* ============================================================
   BADGES & STATUS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
}

.badge-success { background: var(--success-dim); color: var(--success); }
.badge-warning { background: var(--warning-dim); color: var(--warning); }
.badge-danger { background: var(--danger-dim); color: var(--danger); }
.badge-info { background: var(--info-dim); color: var(--info); }
.badge-neutral { background: var(--surface-3); color: var(--text-3); }

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.online { background: var(--success); }
.status-dot.offline { background: var(--danger); }
.status-dot.degraded { background: var(--warning); }

/* ============================================================
   WALLET SEARCH (Hero interaction)
   ============================================================ */
.wallet-search {
  max-width: 560px;
  margin: var(--sp-xl) auto 0;
  position: relative;
}

.wallet-search input {
  width: 100%;
  padding: 16px 56px 16px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-default);
  background: var(--surface-1);
  color: var(--text-1);
  font-size: 15px;
  font-family: var(--font-mono);
  transition: all var(--t-fast);
  box-shadow: var(--shadow-md);
}

.wallet-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim), var(--shadow-md);
}

.wallet-search input::placeholder {
  color: var(--text-3);
  font-family: var(--font-ui);
}

.wallet-search .search-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  width: 44px;
  border-radius: var(--r-md);
  background: var(--primary-500);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

.wallet-search .search-btn:hover { background: var(--primary-400); }

.wallet-search .search-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  margin-top: var(--sp-sm);
}

/* ============================================================
   START MINING WIZARD
   ============================================================ */
.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-xl);
  overflow-x: auto;
  padding-bottom: var(--sp-xs);
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
  position: relative;
}

.wizard-step::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--border-subtle);
  margin-left: var(--sp-sm);
}
.wizard-step:last-child::after { display: none; }

.wizard-step.active { color: var(--primary); }
.wizard-step.completed { color: var(--success); }

.wizard-step .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-3);
  color: var(--text-3);
}

.wizard-step.active .step-num { background: var(--primary); color: #fff; }
.wizard-step.completed .step-num { background: var(--success); color: #fff; }

/* Option cards for wizard */
.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.option-card {
  padding: var(--sp-lg);
  border: 2px solid var(--border-subtle);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: center;
  background: var(--surface-1);
}

.option-card:hover { border-color: var(--border-default); background: var(--surface-2); }
.option-card.selected { border-color: var(--primary); background: var(--primary-dim); }

.option-card .option-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-sm);
  font-size: 24px;
}

.option-card.selected .option-icon { background: var(--primary); }

.option-card .option-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}

.option-card .option-desc {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}

/* Command output */
.command-output {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  padding: var(--sp-md) var(--sp-lg);
  margin-top: var(--sp-md);
  position: relative;
  overflow-x: auto;
}

.command-output code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-1);
  white-space: pre-wrap;
  word-break: break-all;
}

.command-output .copy-btn {
  position: absolute;
  top: var(--sp-xs);
  right: var(--sp-xs);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-default);
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: var(--font-ui);
}

.command-output .copy-btn:hover { color: var(--text-1); border-color: var(--primary); }
.command-output .copy-btn.copied { color: var(--success); border-color: var(--success); }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.feature-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  transition: all var(--t-fast);
}

.feature-card:hover { border-color: var(--border-default); box-shadow: var(--shadow-md); }

.feature-card .feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-md);
  font-size: 20px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--sp-xs);
}

.feature-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================================
   BLOCKS TABLE
   ============================================================ */
.block-hash {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  cursor: pointer;
  transition: color var(--t-fast);
}
.block-hash:hover { color: var(--primary); }

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.form-group input, .form-group select {
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-default);
  background: var(--surface-2);
  color: var(--text-1);
  font-size: 14px;
  font-family: var(--font-mono);
  transition: all var(--t-fast);
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.form-group .input-hint {
  font-size: 11px;
  color: var(--text-3);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-2xl) 0;
  margin-top: var(--sp-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-xl);
}

.footer-brand .logo { margin-bottom: var(--sp-sm); }
.footer-brand p { font-size: 13px; color: var(--text-3); max-width: 300px; }

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: var(--sp-sm);
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  padding: 4px 0;
  transition: color var(--t-fast);
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-3);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--sp-lg);
  right: var(--sp-lg);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.toast {
  background: var(--surface-3);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-1);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  animation: toast-in 300ms ease;
  max-width: 360px;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }

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

@keyframes toast-out {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-4px); }
}

/* ============================================================
   COMMAND PALETTE (⌘K)
   ============================================================ */
.cmd-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(var(--backdrop));
  -webkit-backdrop-filter: blur(var(--backdrop));
  z-index: var(--z-cmd);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.cmd-overlay.open { display: flex; }

.cmd-box {
  width: 640px;
  max-width: 90vw;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl, 0 16px 48px rgba(0,0,0,0.6));
  overflow: hidden;
}

.cmd-input-wrap {
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.cmd-input-wrap .cmd-icon { color: var(--text-3); }

.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-1);
  font-size: 16px;
  font-family: var(--font-ui);
  outline: none;
}

.cmd-input::placeholder { color: var(--text-3); }

.cmd-results {
  max-height: 400px;
  overflow-y: auto;
  padding: var(--sp-xs) 0;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 10px var(--sp-lg);
  cursor: pointer;
  transition: background var(--t-fast);
}

.cmd-item:hover, .cmd-item.selected { background: var(--surface-3); }

.cmd-item .cmd-item-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.cmd-item .cmd-item-label { font-size: 14px; color: var(--text-1); }
.cmd-item .cmd-item-desc { font-size: 12px; color: var(--text-3); margin-left: auto; }

.cmd-footer {
  padding: var(--sp-sm) var(--sp-lg);
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  gap: var(--sp-md);
}

.cmd-footer kbd {
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--surface-3);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .option-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .stats-grid, .stats-grid-3, .stats-grid-2 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ticker-inner { gap: var(--sp-md); }
  .main-nav { display: none; }
  .menu-btn { display: flex; }
  .chart-area { height: 200px; }
  .wizard-steps { display: none; }
  .container, .container-narrow { padding: 0 var(--sp-md); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.fade-in {
  animation: fadeIn 400ms ease;
}

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

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: var(--sp-3xl) var(--sp-lg);
  color: var(--text-3);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: var(--sp-md);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: var(--sp-xs);
}

.empty-state p {
  font-size: 14px;
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================================
   NETWORK BANNER
   ============================================================ */
.network-banner {
  margin: var(--sp-lg) 0;
  padding: var(--sp-md) var(--sp-lg);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  align-items: center;
}
.network-banner .nb-line {
  flex: 1 1 auto;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.network-banner .nb-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
}
.network-banner .nb-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-1);
}
.network-banner .nb-value.warn {
  color: var(--warning);
}
.network-banner .nb-status {
  font-size: 12px;
  color: var(--text-3);
  margin-left: auto;
  white-space: nowrap;
}

/* FAQ section */
.faq-section {
  margin-top: var(--sp-3xl);
}
.faq-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--sp-lg);
  color: var(--text-1);
}
.faq-item {
  margin-bottom: var(--sp-md);
  padding: var(--sp-md);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
}
.faq-item .faq-q {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-1);
  margin-bottom: var(--sp-2xs);
  cursor: pointer;
}
.faq-item .faq-a {
  font-size: 13px;
  color: var(--text-2);
  display: none;
  margin-top: var(--sp-2xs);
  line-height: 1.6;
}
.faq-item.open .faq-a {
  display: block;
}

/* ============================================================
   AJOUTS proximapool (2026-10-28)
   ============================================================ */
[hidden] { display: none !important; }

/* Bilingue : le texte statique est écrit deux fois (lang="fr" / lang="en"),
   la langue active est celle de <html lang>. */
html[lang="fr"] body [lang="en"] { display: none !important; }
html[lang="en"] body [lang="fr"] { display: none !important; }

html, body { overflow-x: hidden; }
img, canvas, svg { max-width: 100%; }
code, kbd, pre { font-family: var(--font-mono); }
.mono { font-family: var(--font-mono); }
.break { overflow-wrap: anywhere; word-break: break-all; }
.muted { color: var(--text-3); }
.dim { color: var(--text-2); }
.small { font-size: 13px; }
.xsmall { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-sm { margin-top: var(--sp-sm); } .mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); } .mt-xl { margin-top: var(--sp-xl); } .mt-2xl { margin-top: var(--sp-2xl); }
.mb-sm { margin-bottom: var(--sp-sm); } .mb-md { margin-bottom: var(--sp-md); } .mb-lg { margin-bottom: var(--sp-lg); }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-sm); align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: var(--sp-sm); align-items: center; justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-md); }
.surface-band { background: var(--surface-1); }
main { min-height: 60vh; }

/* ---- En-tête : liens au lieu de boutons, menu mobile ---- */
a.nav-item { display: inline-block; }
a.nav-item:hover { color: var(--text-1); }
.nav-cta { margin-left: var(--sp-xs); }
.site-header .logo:hover { color: var(--text-1); }
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-btn { display: flex; }
  .main-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: 64px; left: 0; right: 0;
    padding: var(--sp-sm) var(--sp-md) var(--sp-md);
    background: var(--surface-1); border-bottom: 1px solid var(--border-default);
    box-shadow: var(--shadow-lg); z-index: var(--z-dropdown);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .main-nav.open .nav-item { padding: 12px 16px; }
  .nav-cta { margin: var(--sp-xs) 0 0; }
}
@media (max-width: 420px) {
  .logo-sub { display: none; }
  .header-actions { gap: 4px; }
  .lang-toggle { padding: 6px 8px; }
}

/* ---- Bandeaux ---- */
.banner { padding: 10px 0; font-size: 13px; border-bottom: 1px solid var(--border-subtle); }
.banner .container { display: flex; gap: var(--sp-sm); align-items: center; flex-wrap: wrap; }
.banner-warn { background: var(--warning-dim); color: var(--text-1); }
.banner-info { background: var(--info-dim); color: var(--text-1); }
.banner-danger { background: var(--danger-dim); color: var(--text-1); }
.banner strong { font-weight: 600; }

/* ---- Encarts ---- */
.notice {
  padding: var(--sp-md) var(--sp-lg); border-radius: var(--r-md);
  border: 1px solid var(--border-subtle); background: var(--surface-2);
  font-size: 14px; color: var(--text-2); line-height: 1.6;
}
.notice .notice-title { display: block; color: var(--text-1); margin-bottom: 4px; font-weight: 600; }
.notice-warn { background: var(--warning-dim); border-color: color-mix(in srgb, var(--warning) 35%, transparent); }
.notice-warn .notice-title { color: var(--warning); }
.notice-info { background: var(--info-dim); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.notice-info .notice-title { color: var(--info); }
.notice-danger { background: var(--danger-dim); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.notice-danger .notice-title { color: var(--danger); }
.notice-success { background: var(--success-dim); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.notice-success .notice-title { color: var(--success); }
.notice ul, .notice ol { padding-left: var(--sp-lg); margin-top: var(--sp-xs); }
.notice li { margin: 2px 0; }
.notice code { font-size: 12px; overflow-wrap: anywhere; }

/* ---- Cartes génériques ---- */
.card {
  background: var(--surface-1); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); padding: var(--sp-lg);
}
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: var(--sp-sm); }
.card + .card { margin-top: var(--sp-md); }
.tag {
  display: inline-block; padding: 1px 8px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  background: var(--primary-dim); color: var(--primary); vertical-align: middle;
}
.tag-muted { background: var(--surface-3); color: var(--text-3); }

/* ---- Paires clé / valeur ---- */
.kv { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 6px var(--sp-md); font-size: 14px; }
.kv dt { color: var(--text-3); }
.kv dd { color: var(--text-1); font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 6px; } }

/* ---- Tableaux ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--r-lg); background: var(--surface-1); }
.data-table th { position: static; white-space: nowrap; }
.data-table td.empty { text-align: center; padding: 40px 16px; color: var(--text-3); }
.data-table td.empty .empty-title { font-size: 15px; font-weight: 500; color: var(--text-2); }
.data-table td.empty .empty-sub { font-size: 13px; margin-top: 4px; }
.data-table a.mono { color: var(--primary); }
.reported { color: var(--text-3); }
@media (max-width: 600px) {
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 8px 10px; }
}
.pager { display: flex; gap: var(--sp-xs); align-items: center; justify-content: flex-end; margin-top: var(--sp-sm); flex-wrap: wrap; font-size: 13px; color: var(--text-3); }

/* ---- Statuts de blocs ---- */
.badge-pending { background: var(--info-dim); color: var(--info); }

/* ---- Valeurs secondaires dans les cartes de stats ---- */
.stat-card .stat-value.small-value { font-size: 20px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 4px var(--sp-md); font-family: var(--font-mono); font-size: 13px; color: var(--text-2); margin-top: var(--sp-xs); }
.stat-row b { color: var(--text-3); font-weight: 500; font-family: var(--font-ui); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-right: 4px; }
.info-tip { cursor: help; border-bottom: 1px dotted var(--text-3); }

/* ---- Champs à copier ---- */
.copy-field {
  display: flex; align-items: stretch; border: 1px solid var(--border-default);
  border-radius: var(--r-md); background: var(--surface-2); overflow: hidden;
}
.copy-field code { flex: 1; padding: 10px 14px; font-size: 13px; color: var(--text-1); overflow-wrap: anywhere; word-break: break-all; min-width: 0; }
.copy-field button {
  flex: none; border: none; border-left: 1px solid var(--border-default); background: var(--surface-3);
  color: var(--text-2); padding: 0 14px; font: 600 12px var(--font-ui); cursor: pointer;
}
.copy-field button:hover { color: var(--text-1); }
.copy-field button.copied { color: var(--success); }
.secret-label { font-size: 13px; font-weight: 600; color: var(--text-1); margin: var(--sp-md) 0 6px; }
.secret-help { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.command-output { padding-right: 88px; }
.command-output pre { margin: 0; white-space: pre-wrap; word-break: break-all; font-size: 13px; color: var(--text-1); }
@media (max-width: 480px) { .command-output { padding: 40px var(--sp-sm) var(--sp-sm); } }

/* ---- Formulaires ---- */
.form-group input[aria-invalid="true"] { border-color: var(--danger); }
.form-group input.valid { border-color: var(--success); }
.form-msg { font-size: 12px; min-height: 1.2em; color: var(--text-3); }
.form-msg.err { color: var(--danger); }
.form-msg.ok { color: var(--success); }
.form-inline { display: flex; gap: var(--sp-sm); flex-wrap: wrap; align-items: flex-end; }
.form-inline .form-group { flex: 1 1 220px; min-width: 0; }
.form-group input, .form-group select, .form-group textarea { width: 100%; min-width: 0; }
.form-group textarea {
  padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--border-default);
  background: var(--surface-2); color: var(--text-1); font-size: 13px; font-family: var(--font-mono);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-1); cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary-600); flex: none; }
.btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }

/* ---- Captcha ALTCHA (auto-hébergé, aucun tiers) ---- */
.captcha {
  display: flex; align-items: center; gap: var(--sp-sm); padding: 12px 16px;
  border: 1px solid var(--border-default); border-radius: var(--r-md); background: var(--surface-2);
  max-width: 460px; font-size: 14px; cursor: pointer;
}
.captcha input { width: 20px; height: 20px; accent-color: var(--primary-600); flex: none; }
.captcha .captcha-state { margin-left: auto; font-size: 12px; color: var(--text-3); text-align: right; }
.captcha.done { border-color: var(--success); }
.captcha.fail { border-color: var(--danger); }

/* ---- Assistant Start Mining ---- */
.wizard-panel h3 { margin-bottom: var(--sp-md); font-size: 18px; }
.wizard-nav { margin-top: var(--sp-lg); display: flex; justify-content: space-between; gap: var(--sp-sm); flex-wrap: wrap; }
.machine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-md); align-items: stretch; }
.machine-card { text-align: left; font: inherit; color: inherit; }
.machine-card .option-label { font-size: 15px; }
.machine-detail { margin-top: var(--sp-lg); }
.machine-detail ol { padding-left: var(--sp-lg); }
.machine-detail ol > li { margin: var(--sp-md) 0; color: var(--text-2); font-size: 14px; }
.live-box { padding: var(--sp-lg); border-radius: var(--r-lg); border: 1px solid var(--border-default); background: var(--surface-1); }
.live-box .live-title { font-size: 17px; font-weight: 600; display: flex; gap: var(--sp-xs); align-items: center; color: var(--text-1); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--primary); animation: spin 1s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .machine-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .wizard-steps { display: flex; flex-wrap: wrap; }
  .wizard-step::after { width: 12px; margin-left: 6px; }
  .wizard-step { padding: 6px 4px; }
}

/* ---- Graphiques canvas ---- */
.chart-box { position: relative; width: 100%; height: 260px; }
.chart-box canvas { display: block; width: 100%; height: 100%; }
.chart-box .chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 14px; text-align: center; padding: var(--sp-md); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px var(--sp-md); font-size: 12px; color: var(--text-2); margin-top: var(--sp-xs); }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.chart-tooltip { white-space: nowrap; }
.chart-header { flex-wrap: wrap; gap: var(--sp-xs); }
@media (max-width: 768px) { .chart-box { height: 200px; } }

/* ---- Texte long (FAQ, CGU, API) ---- */
.prose { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.prose h2 { font-size: 22px; color: var(--text-1); margin: var(--sp-xl) 0 var(--sp-sm); letter-spacing: -0.01em; }
.prose h3 { font-size: 17px; color: var(--text-1); margin: var(--sp-lg) 0 var(--sp-xs); }
.prose p, .prose ul, .prose ol, .prose pre, .prose table { margin-bottom: var(--sp-sm); }
.prose ul, .prose ol { padding-left: var(--sp-lg); }
.prose code { font-size: 13px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.prose pre { background: var(--surface-2); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: var(--sp-md); overflow-x: auto; font-size: 13px; white-space: pre-wrap; word-break: break-all; }
.prose pre code { background: none; padding: 0; }
.prose strong { color: var(--text-1); }
.prose .formula { font-family: var(--font-mono); background: var(--surface-2); padding: var(--sp-sm) var(--sp-md); border-radius: var(--r-md); display: block; overflow-x: auto; color: var(--text-1); font-size: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th, .prose td { border-bottom: 1px solid var(--border-subtle); padding: 6px 8px; text-align: left; }
.toc { display: flex; flex-wrap: wrap; gap: var(--sp-xs); margin-bottom: var(--sp-lg); }
.toc a { padding: 6px 12px; border-radius: var(--r-full); background: var(--surface-2); border: 1px solid var(--border-subtle); font-size: 13px; color: var(--text-2); }
.toc a:hover { color: var(--primary); }

/* FAQ : <details> natif, mêmes couleurs que l'ancien accordéon */
details.faq-item > summary { list-style: none; font-weight: 600; font-size: 15px; color: var(--text-1); cursor: pointer; display: flex; gap: var(--sp-xs); }
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary::before { content: "+"; color: var(--primary); font-family: var(--font-mono); width: 1em; flex: none; }
details.faq-item[open] > summary::before { content: "−"; }
details.faq-item .faq-a { display: block; margin-top: var(--sp-xs); font-size: 14px; }
details.faq-item .faq-a p + p, details.faq-item .faq-a p + ul, details.faq-item .faq-a ul + p { margin-top: var(--sp-xs); }
details.faq-item .faq-a ul { padding-left: var(--sp-lg); }
.faq-group-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: var(--sp-xl) 0 var(--sp-sm); }

/* Bloc repliable générique */
details.fold { border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: var(--sp-sm) var(--sp-md); background: var(--surface-1); }
details.fold > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-1); }
details.fold[open] > summary { margin-bottom: var(--sp-sm); }

/* Comparatif honnête */
.compare-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-md); }
.compare-list li { background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: var(--sp-lg); font-size: 14px; color: var(--text-2); }
.compare-list li strong { display: block; color: var(--text-1); font-size: 15px; margin-bottom: 4px; }
@media (max-width: 768px) { .compare-list { grid-template-columns: 1fr; } }

/* Page d'API : essai en direct */
.api-route { margin: var(--sp-lg) 0; }
.api-route .route { font-family: var(--font-mono); font-size: 14px; color: var(--text-1); display: flex; gap: var(--sp-xs); align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.api-route .verb { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--primary-dim); color: var(--primary); }
.api-route .verb.post { background: var(--accent-dim); color: var(--accent); }
.api-out { max-height: 360px; overflow: auto; }

/* Mobile 360 px */
.hero-cta { flex-wrap: wrap; }
.hero .hero-note { font-size: 13px; color: var(--text-3); margin-top: var(--sp-md); position: relative; }
.hero-cta.mt { margin-top: var(--sp-xl); }
@media (max-width: 480px) {
  .hero { padding: var(--sp-2xl) 0 var(--sp-xl); }
  .section { padding: var(--sp-2xl) 0; }
  .stat-card .stat-value { font-size: 22px; }
  .grid-2 { grid-template-columns: 1fr; }
  .network-banner { padding: var(--sp-sm) var(--sp-md); }
  .network-banner .nb-line { min-width: 0; }
  .network-banner .nb-status { margin-left: 0; white-space: normal; }
  .footer-bottom { flex-direction: column; gap: var(--sp-xs); align-items: flex-start; }
  .toast-container { left: var(--sp-md); right: var(--sp-md); }
  .wallet-search input { font-size: 13px; padding-right: 52px; }
  .section-header h2 { font-size: 22px; }
}

/* Impression du récapitulatif des secrets : rien d'autre que le bloc résultat */
@media print {
  .site-header, .site-footer, .banner, .wizard-steps, .wizard-nav, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Lien d'évitement, icônes, cartes-boutons */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: var(--z-toast); background: var(--surface-1); color: var(--primary); padding: 8px 12px; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }
.ico { display: inline-flex; align-items: center; justify-content: center; }
ol.wizard-steps { list-style: none; }
button.option-card { width: 100%; font-family: var(--font-ui); color: var(--text-1); }
.option-card .option-desc code { font-size: 11px; }
.toast.fade-out { animation: toast-out 300ms ease forwards; }

/* ============================================================
   PREMIUM (2026-10-29)
   Couche de finition : mêmes couleurs, même structure. Polices
   auto-hébergées, chiffres tabulaires, boutons et champs soignés,
   cartes en profondeur, tableaux à en-têtes collants, transitions
   entre pages (View Transitions) avec repli sans animation.
   ============================================================ */
:root, [data-theme="light"] {
  --text-3: #6B7080;            /* était #8B8E9E : 3,3:1 → 4,9:1 sur blanc (AA) */
  --card-bg: var(--surface-1);
  --card-border: rgba(16,24,40,0.08);
  --card-border-strong: rgba(16,24,40,0.14);
  --card-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 2px 8px -2px rgba(16,24,40,0.05);
  --card-shadow-hover: 0 2px 4px rgba(16,24,40,0.05), 0 12px 28px -8px rgba(16,24,40,0.14);
  --hi: rgba(255,255,255,0.75);  /* reflet intérieur haut */
  --glass: rgba(255,255,255,0.72);
  --zebra: rgba(16,24,40,0.022);
  --row-hover: rgba(13,148,136,0.06);
  --th-bg: #F6F7FA;
  --success-ink: #047857; --warning-ink: #B45309; --danger-ink: #B91C1C; --info-ink: #1D4ED8;
  --btn-grad: linear-gradient(180deg, #11A394 0%, var(--primary-600) 45%, var(--primary-700) 100%);
  --btn-ink: #FFFFFF;
  --btn-glow: 0 6px 16px -6px rgba(13,148,136,0.55);
  --ring: var(--primary-600);
}
[data-theme="dark"] {
  --text-3: #8A8E9F;            /* était #6B6E7E : 3,6:1 → 5,6:1 sur #111318 (AA) */
  --card-bg: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0) 60%), var(--surface-1);
  --card-border: rgba(255,255,255,0.075);
  --card-border-strong: rgba(255,255,255,0.13);
  --card-shadow: 0 1px 2px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.035);
  --card-shadow-hover: 0 1px 2px rgba(0,0,0,0.4), 0 14px 32px -10px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
  --hi: rgba(255,255,255,0.08);
  --glass: rgba(28,30,38,0.6);
  --zebra: rgba(255,255,255,0.018);
  --row-hover: rgba(45,212,191,0.06);
  --th-bg: #15171D;
  --success-ink: var(--success); --warning-ink: var(--warning); --danger-ink: var(--danger); --info-ink: var(--info);
  --btn-grad: linear-gradient(180deg, #5EEAD4 0%, var(--primary-400) 40%, var(--primary-500) 100%);
  --btn-ink: #042F2E;
  --btn-glow: 0 6px 20px -6px rgba(45,212,191,0.5);
  --ring: var(--primary-300);
}

/* ---- Typographie ---- */
body {
  font-feature-settings: "cv11" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.006em;
}
h1, h2, h3 { letter-spacing: -0.022em; }
code, kbd, pre, .mono { font-variant-ligatures: none; }
.section-header h2 { font-weight: 650; letter-spacing: -0.028em; }
.hero h1 { font-weight: 750; letter-spacing: -0.04em; font-size: 56px; }
.hero h1 .gradient { background-image: linear-gradient(120deg, var(--primary-400) 0%, var(--primary) 40%, var(--info) 100%); padding-bottom: .06em; }
@media (max-width: 768px) { .hero h1 { font-size: 38px; } }
@media (max-width: 480px) { .hero h1 { font-size: 32px; } }

/* Chiffres : Inter en chiffres tabulaires (alignés en colonne, même largeur
   pour chaque chiffre), unités plus petites et plus discrètes. */
.stat-card .stat-value, .ticker-item .value, .network-banner .nb-value, .stat-row,
.data-table td.right, .data-table td.right.mono, .num, .pager, time, .step-num,
.chart-legend, .kv dd {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: var(--num-features);
}
.kv dd { font-family: var(--font-mono); }
.data-table td.right.mono { font-size: 13.5px; font-weight: 500; color: var(--text-1); }
.data-table td.right.mono.reported, .data-table td.right.mono.muted { color: var(--text-3); font-weight: 400; }
.stat-card .stat-value { font-size: 30px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.15; }
.stat-card .stat-value.small-value { font-size: 21px; letter-spacing: -0.02em; }
.ticker-item .value { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.network-banner .nb-value { font-size: 15px; font-weight: 550; letter-spacing: -0.01em; }
.u, .stat-card .stat-unit, .ticker-item .unit {
  color: var(--text-3); font-weight: 500; letter-spacing: 0; font-family: var(--font-ui);
}
.stat-card .stat-value .u, .stat-card .stat-unit { font-size: 0.5em; vertical-align: 0.06em; }
.stat-card .stat-unit { margin-left: 6px; }
.stat-card .stat-value .u { margin-left: 1px; }
.ticker-item .value .u { font-size: 11px; margin-left: 2px; }
.ticker-item .unit { font-size: 11px; margin-left: -4px; }
.network-banner .nb-value .u, .data-table .u, .kv dd .u, .stat-row .u { font-size: 0.82em; }
.stat-card .stat-unit .u { font-size: 1em; margin: 0; }
.stat-card .stat-label { color: var(--text-3); letter-spacing: 0.07em; font-size: 11px; }

/* ---- En-tête et navigation ---- */
.site-header {
  view-transition-name: site-header;
  background: color-mix(in srgb, var(--surface-1) 78%, transparent);
  backdrop-filter: blur(var(--backdrop)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--backdrop)) saturate(1.6);
  border-bottom-color: var(--card-border);
  box-shadow: 0 1px 0 var(--hi) inset;
}
.logo { font-weight: 650; letter-spacing: -0.03em; }
.main-nav { gap: 2px; }
.nav-item {
  position: relative; padding: 8px 14px; border-radius: 9px;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-item:hover { background: color-mix(in srgb, var(--text-1) 5%, transparent); }
.nav-item.active { color: var(--text-1); background: color-mix(in srgb, var(--primary) 9%, transparent); }
[data-theme="dark"] .nav-item.active { color: var(--primary-200); }
.nav-ind {
  position: absolute; left: 12px; right: 12px; bottom: -14px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-400), var(--primary), var(--info));
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 60%, transparent);
  view-transition-name: nav-ind;
  pointer-events: none;
}
.nav-cta { margin-left: 10px; }
@media (max-width: 1100px) {
  .main-nav.open { background: color-mix(in srgb, var(--surface-1) 96%, transparent); border-bottom-color: var(--card-border); }
  .main-nav.open .nav-item { border-radius: 10px; }
  .nav-ind { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; view-transition-name: none; }
}

/* Boutons-icônes de l'en-tête (thème, langue, menu) : même gabarit 36 px */
.theme-toggle, .lang-toggle, .menu-btn {
  height: 36px; min-width: 36px; border-radius: 10px;
  border: 1px solid var(--card-border-strong);
  background: var(--glass);
  color: var(--text-2);
  box-shadow: inset 0 1px 0 var(--hi), 0 1px 2px rgba(16,24,40,0.05);
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
}
.lang-toggle { padding: 0 11px; font-size: 12px; letter-spacing: 0.04em; display: inline-flex; align-items: center; }
.theme-toggle:hover, .lang-toggle:hover, .menu-btn:hover { color: var(--text-1); border-color: var(--border-strong); background: var(--surface-1); }
.theme-toggle:active, .lang-toggle:active, .menu-btn:active { transform: scale(0.96); }
/* Icônes : jamais compressées (le max-width:100% générique écrasait le SVG
   du bouton de thème en deux points). */
.ico { line-height: 0; flex: none; }
.ico svg, .btn svg, .search-btn svg, .search-lead { display: block; flex: none; max-width: none; }
.theme-toggle .ico svg { width: 18px; height: 18px; }

/* ---- Boutons ---- */
.btn {
  position: relative; min-height: 40px; padding: 0 18px; gap: 8px;
  border-radius: 11px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; letter-spacing: -0.006em; line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, filter 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { min-height: 48px; padding: 0 26px; font-size: 15px; border-radius: 13px; }
.btn-primary, .wallet-search .search-btn {
  background: var(--btn-grad);
  color: var(--btn-ink);
  border-color: color-mix(in srgb, var(--primary-700) 70%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -1px 0 rgba(0,0,0,0.10), 0 1px 2px rgba(16,24,40,0.12), var(--btn-glow);
}
[data-theme="dark"] .btn-primary, [data-theme="dark"] .wallet-search .search-btn { border-color: rgba(94,234,212,0.55); }
.btn-primary:hover, .wallet-search .search-btn:hover {
  background: var(--btn-grad);
  color: var(--btn-ink);
  filter: brightness(1.07) saturate(1.05);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), inset 0 -1px 0 rgba(0,0,0,0.10), 0 2px 4px rgba(16,24,40,0.12), 0 10px 24px -8px color-mix(in srgb, var(--primary) 70%, transparent);
}
.btn-primary:active, .wallet-search .search-btn:active {
  transform: translateY(0); filter: brightness(0.96);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.18), 0 1px 1px rgba(16,24,40,0.1);
}
.btn-secondary {
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  color: var(--text-1);
  border-color: var(--card-border-strong);
  box-shadow: inset 0 1px 0 var(--hi), 0 1px 2px rgba(16,24,40,0.05);
}
.btn-secondary:hover { background: var(--surface-1); border-color: var(--border-strong); transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--hi), var(--card-shadow-hover); }
[data-theme="dark"] .btn-secondary:hover { background: var(--surface-3); }
.btn-secondary:active { transform: translateY(0); box-shadow: inset 0 1px 3px rgba(0,0,0,0.12); }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, var(--text-1) 6%, transparent); }
.btn-danger {
  background: linear-gradient(180deg, #E5484D, #C62828); color: #fff; border-color: rgba(120,20,20,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 1px 2px rgba(16,24,40,0.12), 0 6px 16px -6px rgba(220,38,38,0.5);
}
.btn-danger:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:focus-visible, .theme-toggle:focus-visible, .lang-toggle:focus-visible, .menu-btn:focus-visible,
.copy-field button:focus-visible, .command-output .copy-btn:focus-visible, .search-btn:focus-visible {
  outline: 2px solid var(--ring); outline-offset: 2px;
}
.btn[disabled], .btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.45; cursor: not-allowed; transform: none !important; filter: grayscale(0.35) !important;
  box-shadow: none !important;
}

/* ---- Recherche par adresse (accueil) : bouton intégré au champ ---- */
.wallet-search { max-width: 600px; }
.search-field {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 5px 5px 16px;
  border-radius: 16px;
  border: 1px solid var(--card-border-strong);
  background: var(--surface-1);
  box-shadow: inset 0 1px 0 var(--hi), 0 1px 2px rgba(16,24,40,0.05), 0 10px 30px -12px rgba(16,24,40,0.18);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
[data-theme="dark"] .search-field { background: var(--surface-2); box-shadow: inset 0 1px 0 var(--hi), 0 10px 30px -12px rgba(0,0,0,0.7); }
.search-field:hover { border-color: var(--border-strong); }
.search-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-dim), 0 10px 30px -12px rgba(16,24,40,0.2);
}
.search-field .search-lead { color: var(--text-3); }
.search-field:focus-within .search-lead { color: var(--primary); }
.wallet-search .search-field input,
.wallet-search .search-field input:focus {
  flex: 1 1 auto; width: auto; min-width: 0; height: 44px;
  padding: 0 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none;
  font-size: 14px; letter-spacing: 0;
  text-overflow: ellipsis;
}
.wallet-search .search-btn {
  position: static; inset: auto; flex: none;
  width: 44px; height: 44px; border-radius: 12px; border-width: 1px; border-style: solid;
}
.wallet-search .search-hint { margin-top: 10px; }
@media (max-width: 480px) {
  .search-field { padding-left: 12px; gap: 6px; }
  .search-field .search-lead { display: none; }
  .wallet-search .search-field input { font-size: 13px; }
}

/* ---- Champs ---- */
.form-group input, .form-group select, .form-group textarea {
  min-height: 42px; border-radius: 11px;
  border-color: var(--card-border-strong);
  background: var(--surface-1);
  box-shadow: inset 0 1px 2px rgba(16,24,40,0.05);
}
[data-theme="dark"] .form-group input, [data-theme="dark"] .form-group select, [data-theme="dark"] .form-group textarea { background: var(--surface-2); box-shadow: inset 0 1px 2px rgba(0,0,0,0.3); }
.form-group input:hover, .form-group select:hover, .form-group textarea:hover { border-color: var(--border-strong); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-dim);
}
.form-group input[aria-invalid="true"] { border-color: var(--danger); }
.form-group input.valid { border-color: var(--success); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-3); opacity: 0.8; }
.form-group label { color: var(--text-1); font-weight: 550; }
.captcha { border-radius: 12px; border-color: var(--card-border-strong); background: var(--surface-1); box-shadow: inset 0 1px 0 var(--hi), 0 1px 2px rgba(16,24,40,0.04); }
[data-theme="dark"] .captcha { background: var(--surface-2); }
.captcha.done { border-color: var(--success); }
.captcha.fail { border-color: var(--danger); }
.copy-field { border-radius: 11px; border-color: var(--card-border-strong); background: var(--surface-2); }
.copy-field code { font-size: 12.5px; }
.copy-field button { background: var(--glass); border-left-color: var(--card-border-strong); padding: 0 16px; transition: color var(--t-fast), background-color var(--t-fast); }
.copy-field button:hover { background: var(--surface-1); color: var(--primary); }
.command-output { border-radius: 12px; border-color: var(--card-border-strong); background: var(--surface-2); box-shadow: inset 0 1px 2px rgba(16,24,40,0.04); }
.command-output .copy-btn {
  border-radius: 8px; border-color: var(--card-border-strong); background: var(--glass);
  box-shadow: inset 0 1px 0 var(--hi); font-weight: 600; min-height: 28px;
}
.command-output .copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.command-output .copy-btn.copied { color: var(--success); border-color: var(--success); }

/* ---- Cartes : profondeur, bordure 1 px semi-transparente ---- */
.stat-card, .card, .chart-container, .feature-card, .compare-list li, .live-box,
.option-card, .table-wrap, details.fold, .faq-item, .network-banner {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}
.network-banner { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface-1)); }
[data-theme="dark"] .network-banner { background: var(--card-bg); }
.stat-card, .feature-card, .compare-list li, .option-card {
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease, background-color 200ms ease;
}
.stat-card::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 55%, transparent), transparent);
  opacity: 0; transition: opacity 200ms ease;
}
.stat-card:hover, .feature-card:hover, .compare-list li:hover { border-color: var(--card-border-strong); box-shadow: var(--card-shadow-hover); }
.stat-card:hover::before { opacity: 1; }
.option-card { border-width: 1px; }
.option-card:hover { border-color: var(--border-strong); background: var(--card-bg); box-shadow: var(--card-shadow-hover); transform: translateY(-1px); }
.option-card.selected { border-color: var(--primary); background: linear-gradient(180deg, var(--primary-dim), transparent), var(--surface-1); box-shadow: 0 0 0 3px var(--primary-dim), var(--card-shadow); }
.section-header .section-icon { border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); border-radius: 9px; box-shadow: inset 0 1px 0 var(--hi); }
.notice { border-radius: 12px; }

/* ---- Badges ---- */
.badge {
  padding: 2px 9px; line-height: 18px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  white-space: nowrap;
}
.badge-success { color: var(--success-ink); }
.badge-warning { color: var(--warning-ink); }
.badge-danger { color: var(--danger-ink); }
.badge-info, .badge-pending { color: var(--info-ink); }
.badge-neutral { color: var(--text-2); }
.badge .status-dot { box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 18%, transparent); }
.tag { border: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.notice-success .notice-title { color: var(--success-ink); }
.notice-warn .notice-title { color: var(--warning-ink); }
.notice-danger .notice-title { color: var(--danger-ink); }
.notice-info .notice-title { color: var(--info-ink); }

/* ---- Tableaux : en-tête marqué, zébrures discrètes, survol ---- */
.table-wrap { border-radius: var(--r-lg); }
.data-table th {
  background: var(--th-bg); color: var(--text-3);
  font-size: 11px; letter-spacing: 0.07em; padding: 11px 16px;
  border-bottom: 1px solid var(--card-border);
}
.data-table td { border-bottom-color: var(--card-border); transition: background-color 120ms ease; }
.data-table tbody tr:nth-child(even) td { background: var(--zebra); }
.data-table tbody tr:hover td { background: var(--row-hover); }
.data-table td.empty, .data-table tbody tr:hover td.empty { background: transparent; }
@media (max-width: 600px) { .data-table th, .data-table td { padding: 8px 10px; } }
/* En-têtes collants sous l'en-tête du site quand le tableau tient dans son
   cadre (classe .fits posée par ui.js) ; sinon défilement horizontal du cadre. */
.data-table td.right, .data-table td.mono:not(.break) { white-space: nowrap; }
.table-wrap.fits { overflow: visible; }
.table-wrap.fits .data-table th { position: sticky; top: 64px; z-index: 2; }
.table-wrap.fits .data-table thead th:first-child { border-top-left-radius: calc(var(--r-lg) - 1px); }
.table-wrap.fits .data-table thead th:last-child { border-top-right-radius: calc(var(--r-lg) - 1px); }
.table-wrap.fits .data-table tbody tr:last-child td:first-child { border-bottom-left-radius: calc(var(--r-lg) - 1px); }
.table-wrap.fits .data-table tbody tr:last-child td:last-child { border-bottom-right-radius: calc(var(--r-lg) - 1px); }
.pager { gap: 10px; }

/* ---- Assistant Start Mining ---- */
.wizard-step .step-num { border: 1px solid var(--card-border-strong); background: var(--surface-1); box-shadow: inset 0 1px 0 var(--hi); }
.wizard-step.active .step-num { background: var(--btn-grad); color: var(--btn-ink); border-color: transparent; box-shadow: var(--btn-glow); }
.wizard-step.completed .step-num { background: var(--success); color: #fff; border-color: transparent; }
.wizard-step.active { color: var(--text-1); font-weight: 600; }

/* ---- Pastilles, palette, divers ---- */
.toc a { border-color: var(--card-border); background: var(--card-bg); box-shadow: var(--card-shadow); transition: color var(--t-fast), border-color var(--t-fast); }
.toc a:hover { border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.cmd-box { border-color: var(--card-border-strong); box-shadow: 0 24px 64px -12px rgba(0,0,0,0.45), inset 0 1px 0 var(--hi); border-radius: 18px; }
.toast { border-radius: 12px; border-color: var(--card-border-strong); background: var(--elevated); }
.ticker-bar { background: color-mix(in srgb, var(--surface-1) 85%, transparent); border-color: var(--card-border); }
.site-footer { border-top-color: var(--card-border); }

/* ============================================================
   TRANSITIONS ENTRE PAGES
   Navigateurs récents (Chrome/Edge 126+, Safari 18.2+) : View Transitions
   inter-documents, sans une ligne de JS. L'en-tête reste immobile, le
   contenu se fond et glisse légèrement, l'indicateur d'onglet se déplace
   d'un onglet à l'autre. Ailleurs : simple fondu d'entrée du contenu.
   ============================================================ */
@view-transition { navigation: auto; }
main { view-transition-name: page; }
::view-transition-group(root) { animation-duration: 220ms; }
::view-transition-old(site-header) { display: none; }
::view-transition-new(site-header) { animation: none; }
::view-transition-group(site-header) { animation: none; }
::view-transition-old(page) { animation: pp-vt-out 150ms cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(page) { animation: pp-vt-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1) 50ms both; }
::view-transition-group(nav-ind) { animation-duration: 360ms; animation-timing-function: cubic-bezier(0.3, 0.9, 0.25, 1); }
@keyframes pp-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes pp-vt-in { from { opacity: 0; transform: translateY(10px); } }

@supports not (view-transition-name: none) {
  main { animation: pp-page-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
  .nav-ind { animation: pp-ind-in 320ms cubic-bezier(0.3, 0.9, 0.25, 1) backwards; }
}
@keyframes pp-page-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes pp-ind-in { from { transform: scaleX(0.3); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  main, .nav-ind { animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .btn:hover, .option-card:hover, .btn-secondary:hover, .btn-primary:hover { transform: none; }
}
@media print {
  main, .site-header { view-transition-name: none; }
}

/* ---- Ajustements responsive (premium) ---- */
/* Tablette : deux cartes de stats par ligne au lieu d'une (768 px gaspillait la largeur). */
@media (min-width: 481px) and (max-width: 768px) {
  .stats-grid, .stats-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.stats-grid > *, .grid-2 > *, .machine-grid > *, .option-grid > * { min-width: 0; }
/* Tableaux étroits : une ligne par enregistrement et défilement horizontal du cadre,
   au lieu de colonnes écrasées mot à mot (lignes de 200 px de haut à 360 px). */
@media (max-width: 899px) {
  .data-table td, .data-table th { white-space: nowrap; }
  .data-table td.empty { white-space: normal; }
}
.data-table td:first-child { white-space: nowrap; }
/* Statut : « .card + .card » décalait la 2e carte de chaque ligne de la grille de 16 px. */
.grid-2 > .card + .card, .machine-grid > .card + .card { margin-top: 0; }
.kv dd .badge, .kv dd .tag { font-family: var(--font-ui); }
/* FAQ, API, CGU : le titre (h2 dans .prose) prenait la marge des titres de texte et
   se décalait sous son icône ; les commandes avaient un double cadre (.prose pre). */
.section-title h2, .prose .section-title h2 { margin: 0; }
.command-output pre, .prose .command-output pre { background: none; border: 0; padding: 0; margin: 0; border-radius: 0; }

/* ============================================================
   ONE-SHOT : « Commencer à miner » en un geste (start, compte, oneshot.js)
   ============================================================ */
.os-form .wizard-nav { margin-top: var(--sp-lg); }
.os-invite { text-transform: uppercase; letter-spacing: 0.06em; }
.os-boot { padding: var(--sp-md); border: 1px solid var(--border-default); border-radius: var(--r-md); background: var(--surface-2); }
.os-boot .secret-help { margin-left: 28px; line-height: 1.55; }
.os-cmd-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; color: var(--text-1); }
.os-command { display: flex; flex-wrap: wrap; gap: var(--sp-sm); align-items: center; margin-top: var(--sp-sm); padding: var(--sp-md);
  border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border-default)); border-radius: var(--r-lg); background: var(--surface-2); }
.os-command pre { flex: 1 1 320px; min-width: 0; margin: 0; background: none; border: 0; padding: 0; }
.os-command code { font-family: var(--font-mono); font-size: 15px; color: var(--text-1); white-space: pre-wrap; word-break: break-all; }
.os-copy { flex: 0 0 auto; min-width: 140px; }
@media (max-width: 480px) { .os-copy { flex: 1 1 100%; } }
.os-hint { margin-top: var(--sp-sm); font-size: 14px; color: var(--text-1); }
.os-warn { margin-top: 4px; font-size: 13px; color: var(--warning); }
.os-live { margin-top: var(--sp-sm); }
.os-steps { list-style: none; padding: 0; margin: 0 0 var(--sp-md); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-xs); }
.os-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); padding: 8px 10px; border-radius: var(--r-md);
  border: 1px solid var(--border-subtle); background: var(--surface-2); min-width: 0; }
.os-steps li > span:last-child { overflow-wrap: anywhere; }
.os-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  background: var(--surface-3); color: var(--text-3); }
.os-steps li.done { color: var(--text-1); border-color: color-mix(in srgb, var(--success) 40%, transparent); background: var(--success-dim); }
.os-steps li.done .os-dot { background: var(--success); color: #fff; }
.os-steps li.current { color: var(--text-1); border-color: color-mix(in srgb, var(--primary) 50%, transparent); background: var(--primary-dim); }
.os-steps li.current .os-dot { background: var(--primary); color: #fff; animation: os-pulse 1.6s ease-in-out infinite; }
@keyframes os-pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .os-steps li.current .os-dot { animation: none; } }
@media (max-width: 640px) { .os-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.os-ok { color: var(--success); font-variant-numeric: tabular-nums; }
.os-workers { list-style: none; padding: 0; margin: var(--sp-md) 0 0; display: grid; gap: 6px; }
.os-workers li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 10px; border-radius: var(--r-md); background: var(--surface-2);
  border: 1px solid var(--border-subtle); font-size: 13px; }
.os-workers .mono { overflow-wrap: anywhere; }
.os-w-rate { font-weight: 600; color: var(--text-1); font-variant-numeric: tabular-nums; margin-left: auto; }
.os-diag ol { margin-top: var(--sp-sm); }
.os-diag li { margin: var(--sp-sm) 0; }
.os-diag .command-output, .os-none .command-output { margin-top: 6px; padding-top: 40px; }
@media (min-width: 640px) { .os-diag .command-output, .os-none .command-output { padding-top: var(--sp-md); padding-right: 84px; } }
.os-none ol { margin: var(--sp-sm) 0 0; padding-left: var(--sp-lg); font-size: 14px; }
.os-rig { margin-top: var(--sp-md); padding: var(--sp-md); border: 1px solid var(--border-default); border-radius: var(--r-lg); background: var(--surface-1); }
.os-rig-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: var(--sp-sm); font-weight: 600; }
.os-rig .os-steps { margin-bottom: var(--sp-sm); }
.os-journal { list-style: none; padding: 0; margin: var(--sp-sm) 0 0; font-size: 14px; display: grid; gap: 4px; }
.os-journal li { padding: 6px 10px; border-left: 3px solid var(--border-default); background: var(--surface-2); border-radius: var(--r-sm); }
.os-recovery { border-color: color-mix(in srgb, var(--warning) 45%, var(--card-border-strong, var(--border-default))); }
.copy-field code.os-secret { font-size: 14px; letter-spacing: 0.01em; }

/* Espace privé (Mon compte) / vue publique (mineur) : la différence se voit d'un coup d'œil */
.space-banner { display: flex; gap: var(--sp-md); align-items: flex-start; padding: var(--sp-md) var(--sp-lg); border-radius: var(--r-lg);
  border: 1px solid var(--border-default); margin-bottom: var(--sp-lg); font-size: 14px; color: var(--text-1); }
.space-banner .space-ico { font-size: 22px; line-height: 1.2; flex: none; }
.space-banner .space-sub { display: block; color: var(--text-2); font-size: 13px; margin-top: 2px; }
.space-banner .space-warn { color: var(--warning); font-weight: 500; }
.space-private { background: var(--primary-dim); border-color: color-mix(in srgb, var(--primary) 45%, transparent); border-left-width: 4px; }
.space-private.space-readonly { background: var(--warning-dim); border-color: color-mix(in srgb, var(--warning) 45%, transparent); }
.space-public { background: var(--surface-2); border-style: dashed; }
