:root {
  --bg: #0f0f13;
  --bg2: #18181f;
  --bg3: #22222c;
  --border: #2e2e3a;
  --accent: #6c63ff;
  --accent-hover: #5a52e0;
  --accent-dim: rgba(108, 99, 255, 0.15);
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --success: #4ade80;
  --error: #f87171;
  --radius: 12px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 16px 80px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}
.logo span { color: var(--accent); }
.tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Card */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  padding: 32px;
}

/* Drop zone */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.dropzone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.dz-icon { font-size: 40px; margin-bottom: 12px; }
.dz-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.dz-sub { font-size: 13px; color: var(--text-muted); }

/* File list */
.file-list { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}
.file-icon { font-size: 20px; flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; }
.file-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-size { font-size: 12px; color: var(--text-muted); }
.file-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s;
  flex-shrink: 0;
}
.file-remove:hover { color: var(--error); }

/* Progress bar */
.file-progress {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.file-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.2s;
  border-radius: 2px;
}

/* Options section */
.options { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }

.field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.required-star { color: #ef4444; margin-left: 2px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 80px; }
.field select { appearance: none; cursor: pointer; }

.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

/* Toggle */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.toggle-label { font-size: 14px; }
.toggle-sub { font-size: 12px; color: var(--text-muted); }
.toggle {
  width: 40px;
  height: 22px;
  background: var(--border);
  border-radius: 11px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle.on { background: var(--accent); }
.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle.on::after { transform: translateX(18px); }

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  margin-top: 24px;
}
.btn:hover:not(:disabled) { background: var(--accent-hover); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Overall progress */
.overall-progress {
  margin-top: 20px;
  display: none;
}
.overall-progress.visible { display: block; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.progress-bar-wrap {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s;
  border-radius: 3px;
}

/* Result */
.result {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: none;
  text-align: center;
}
.result.visible { display: block; }
.result-icon { font-size: 32px; margin-bottom: 10px; }
.result-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.result-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.result-link-box {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}
.result-link {
  flex: 1;
  font-size: 13px;
  color: var(--accent);
  word-break: break-all;
  text-align: left;
}
.copy-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.copy-btn:hover { background: var(--accent-dim); }

/* Download page */
.dl-card { text-align: center; }
.dl-sender {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.dl-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.dl-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.dl-message {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 20px;
  text-align: left;
}
.dl-files {
  text-align: left;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dl-file {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}
.dl-file-info { flex: 1; min-width: 0; }
.dl-file-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dl-file-size { font-size: 12px; color: var(--text-muted); }
.dl-file-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--accent);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.dl-file-btn:hover { background: var(--accent-dim); }

/* Password prompt */
.password-section {
  margin-bottom: 20px;
  display: none;
}
.password-section.visible { display: block; }

/* Expiry badge */
.expiry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Alert */
.alert {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 16px;
}
.alert-error { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.3); color: var(--error); }
.alert-success { background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.3); color: var(--success); }
.alert-warning { background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.3); color: #b45309; }

/* Trust chain */
.cert-trust-section { margin: 24px 0; }
.cert-trust-chain { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.trust-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 14px; border-radius: 8px; font-size: 13px;
}
.trust-item--ok      { background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.25); }
.trust-item--pending { background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.25); }
.trust-icon  { font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.trust-label { font-weight: 600; color: var(--text); }
.trust-value { color: var(--muted); font-size: 12px; margin-top: 2px; }
.btn--secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--secondary:hover { background: var(--surface); }

/* OTS verification help */
.cert-ots-help {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 8px;
  font-size: 13px;
}
.cert-ots-help-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.cert-ots-help-steps {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.cert-ots-help-steps strong { color: var(--text); }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* Utils */
.hidden { display: none !important; }
.mt8 { margin-top: 8px; }
.text-muted { color: var(--text-muted); font-size: 13px; }

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 40px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ── Certificate / Verify page ─────────────────────────────────────────────── */

.cert-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.cert-badge--deposit  { background: rgba(108,99,255,0.2); color: var(--accent); }
.cert-badge--receipt  { background: rgba(74,222,128,0.15); color: var(--success); }

.cert-header { margin-bottom: 24px; }
.cert-title  { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.cert-subtitle { font-size: 13px; color: var(--text-muted); }

.cert-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.cert-field-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 3px; }
.cert-field-value  { font-size: 14px; word-break: break-all; }
.cert-mono { font-family: 'Courier New', monospace; font-size: 13px; }
.cert-hash-wrap { word-break: break-all; }

.cert-section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-muted); margin-bottom: 12px; margin-top: 4px;
}

.cert-files { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.cert-file {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px;
}
.cert-file-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.cert-file-meta { font-size: 12px; color: var(--text-muted); }
.cert-file-hash { font-family: 'Courier New', monospace; font-size: 11px; color: var(--text-muted); word-break: break-all; margin-top: 4px; }

.cert-verify-section { margin-bottom: 24px; }
.cert-dropzone {
  border: 1.5px dashed var(--border); border-radius: 10px;
  padding: 28px 20px; text-align: center;
  font-size: 13px; color: var(--text-muted);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.cert-dropzone:hover, .cert-dropzone.drag-over {
  border-color: var(--accent); background: var(--accent-dim);
}

.cert-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

@media (max-width: 480px) {
  .card { padding: 24px 20px; }
  .field-row { flex-direction: column; gap: 14px; }
}

/* ── Options payantes (formulaire upload) ───────────────────────────────────── */
.paid-options { display: flex; flex-direction: column; gap: 8px; }
.paid-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.paid-option:hover { border-color: var(--accent); background: var(--accent-dim); }
.paid-option:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); }
.paid-option--disabled { opacity: 0.5; cursor: not-allowed; }
.paid-option--disabled:hover { border-color: var(--border); background: var(--bg3); }
.paid-option-check input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0;
}
.paid-option-body { flex: 1; min-width: 0; }
.paid-option-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.paid-option-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.paid-option-price {
  font-size: 13px; font-weight: 700; color: var(--accent);
  white-space: nowrap; flex-shrink: 0;
}
.price-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--bg3);
  border-radius: 8px;
}
.price-summary strong { color: var(--accent); font-size: 15px; }

/* ── Navigation ─────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1140px;
  padding: 0 24px;
  margin-bottom: 56px;
}
.nav-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-btn {
  background: var(--accent) !important;
  color: white !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600 !important;
}
.nav-btn:hover { background: var(--accent-hover) !important; }

/* ── Lang switcher ──────────────────────────────────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.lang-switch .lang-active {
  color: var(--text);
  font-weight: 700;
}
.lang-switch .lang-sep {
  color: var(--border);
  font-size: 11px;
}
.lang-switch .lang-opt {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.lang-switch .lang-opt:hover { color: var(--text); }

/* ── Home layout — 2 colonnes ───────────────────────────────────────────────── */
.home-wrap {
  width: 100%;
  max-width: 1140px;
  padding: 0 24px;
}
.home-layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, 540px);
  gap: 72px;
  align-items: start;
}
.home-upload .card { max-width: none; }

/* ── Colonne pitch / marketing ──────────────────────────────────────────────── */
.home-pitch { padding-top: 8px; min-width: 0; }
.pitch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.pitch-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.pitch-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.75;
}
.pitch-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 36px;
}
.pitch-features li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.pitch-feat-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.pitch-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 9px;
  text-decoration: none;
  margin-bottom: 40px;
  transition: background 0.15s;
}
.pitch-cta:hover { background: var(--accent-hover); text-decoration: none; }
.pitch-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.15s;
}
.pitch-cta-secondary:hover { color: var(--text); text-decoration: none; }
.pitch-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pitch-trust-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .pitch-trust-badge {
    white-space: normal;
  }
}

/* ── Section preuve (homepage) ───────────────────────────────────────────────── */
.proof-section {
  width: 100%;
  max-width: 900px;
  margin: 72px auto 0;
  padding: 0 16px;
}
.proof-section-eyebrow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.proof-section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
}
.proof-section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.975rem;
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.65;
}
.proof-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
}
.proof-step {
  background: var(--bg2);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proof-step--highlight {
  background: var(--bg3);
}
.proof-step-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.proof-step-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.proof-step-name {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text);
}
.proof-step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}
.proof-step-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  align-self: flex-start;
}
.proof-step-tag--free    { background: rgba(74, 222, 128, .12); color: #4ade80; border: 1px solid rgba(74,222,128,.25); }
.proof-step-tag--paid    { background: rgba(108, 99, 255, .12); color: var(--accent); border: 1px solid rgba(108,99,255,.25); }
.proof-step-tag--soon    { background: rgba(250, 204, 21, .1); color: #facc15; border: 1px solid rgba(250,204,21,.2); }
.proof-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.proof-bottom strong { color: var(--text); }
@media (max-width: 900px) {
  .proof-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .proof-steps { grid-template-columns: 1fr; }
  .proof-section-title { font-size: 1.3rem; }
}

/* ── Page tarifs ─────────────────────────────────────────────────────────────── */
.pricing-wrap {
  width: 100%;
  max-width: 1140px;
  padding: 0 24px 80px;
}
.pricing-hero { text-align: center; margin-bottom: 64px; }
.pricing-hero-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.pricing-hero-sub { font-size: 16px; color: var(--text-muted); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.plan-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-card--pro {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(108,99,255,0.09) 0%, var(--bg2) 60%);
}
.plan-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.plan-price { margin-bottom: 4px; }
.plan-price-amount { font-size: 42px; font-weight: 700; letter-spacing: -1.5px; }
.plan-price-per { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.plan-desc { font-size: 13px; color: var(--text-muted); margin: 8px 0 24px; line-height: 1.5; }
.plan-divider { border: none; border-top: 1px solid var(--border); margin: 0 0 20px; }
.plan-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
  margin-bottom: 28px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.4;
}
.pf-icon { flex-shrink: 0; font-size: 14px; margin-top: 1px; }
.pf-text { color: var(--text); }
.pf-muted { color: var(--text-muted); text-decoration: line-through; }
.pf-soon { color: var(--text-muted); font-style: italic; }
.plan-btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.plan-btn--primary { background: var(--accent); color: white; }
.plan-btn--primary:hover { background: var(--accent-hover); text-decoration: none; }
.plan-btn--outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.plan-btn--outline:hover { background: var(--bg3); text-decoration: none; }
.plan-btn--disabled { background: var(--bg3); border: 1px solid var(--border); color: var(--text-muted); cursor: not-allowed; opacity: 0.6; }

.pricing-section { margin-bottom: 56px; }
.pricing-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.pricing-section-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

.pack-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.pack-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
}
.pack-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pack-price { font-size: 26px; font-weight: 700; margin-bottom: 3px; }
.pack-detail { font-size: 12px; color: var(--text-muted); line-height: 1.5; flex: 1; }
.pack-buy {
  display: block;
  text-align: center;
  padding: 7px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 14px;
  transition: background 0.15s;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid var(--border);
}
.pack-buy:hover { background: var(--accent-dim); text-decoration: none; }

.boost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.boost-table th, .boost-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.boost-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); font-weight: 600; }
.boost-table tbody tr:last-child td { border-bottom: none; }
.boost-table tbody tr:hover td { background: var(--bg3); }

.pricing-notice {
  background: rgba(108,99,255,0.06);
  border: 1px solid rgba(108,99,255,0.18);
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.pricing-notice strong { color: var(--text); }
.pricing-notice a { color: var(--accent); }

.badge-beta {
  display: inline-block;
  background: rgba(251,191,36,0.15);
  color: #d97706;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
}
.badge-soon {
  display: inline-block;
  background: rgba(248,113,113,0.12);
  color: var(--error);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ── Espace client ───────────────────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.auth-logo { font-size: 20px; font-weight: 700; margin-bottom: 32px; }
.auth-logo span { color: var(--accent); }
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  gap: 0;
}
.auth-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-or { text-align: center; font-size: 13px; color: var(--text-muted); margin: 4px 0; }
.auth-footer-link { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.auth-footer-link a { color: var(--accent); }

/* Dashboard */
.dash-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  width: 100%;
  max-width: 1140px;
  padding: 0 24px 80px;
  align-items: start;
}
.dash-sidebar {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 24px;
}
.dash-user-info { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.dash-user-email { font-size: 13px; font-weight: 600; margin-bottom: 4px; word-break: break-all; }
.dash-user-plan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  border-radius: 4px;
}
.plan-free { background: var(--bg3); color: var(--text-muted); }
.plan-pro { background: rgba(108,99,255,0.18); color: var(--accent); }
.plan-business { background: rgba(74,222,128,0.14); color: var(--success); }

.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a, .dash-nav button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
}
.dash-nav a:hover, .dash-nav a.active, .dash-nav button:hover {
  background: var(--bg3);
  color: var(--text);
  text-decoration: none;
}
.dash-main { display: flex; flex-direction: column; gap: 20px; }
.dash-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dash-card-title { font-size: 15px; font-weight: 600; }
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dash-stat {
  background: var(--bg3);
  border-radius: 10px;
  padding: 16px;
}
.dash-stat-value { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 3px; }
.dash-stat-label { font-size: 12px; color: var(--text-muted); }
.transfers-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.transfers-table th, .transfers-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.transfers-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}
.transfers-table tbody tr:last-child td { border-bottom: none; }
.transfers-table tbody tr:hover td { background: var(--bg3); }
.btn-delete-transfer {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  opacity: 0.4;
  transition: opacity .15s;
  padding: 2px 4px;
}
.btn-delete-transfer:hover { opacity: 1; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
}
.status-ready   { background: rgba(74,222,128,0.12); color: var(--success); }
.status-expired { background: var(--bg3); color: var(--text-muted); }
.status-pending { background: rgba(251,191,36,0.12); color: #d97706; }
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
.upgrade-banner {
  background: linear-gradient(135deg, rgba(108,99,255,0.12) 0%, rgba(108,99,255,0.04) 100%);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.upgrade-banner-text { font-size: 14px; }
.upgrade-banner-title { font-weight: 600; margin-bottom: 4px; }
.upgrade-banner-sub { color: var(--text-muted); font-size: 13px; }

/* Responsive */
@media (max-width: 1024px) {
  .home-layout { grid-template-columns: 1fr; gap: 40px; }
  .home-pitch { order: 2; }
  .home-upload { order: 1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 64px; }
  .pack-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-wrap { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
}
@media (max-width: 640px) {
  .nav { padding: 0 16px; margin-bottom: 28px; }
  .home-wrap, .pricing-wrap, .dash-wrap { padding-left: 16px; padding-right: 16px; }
  .pitch-title { font-size: 26px; }
  .pricing-hero-title { font-size: 26px; }
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-stats-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 28px 20px; }
  .nav-links a:not(.nav-btn) { display: none; }
  .lang-switch { padding-left: 0; border-left: none; }
}
@media (max-width: 400px) {
  .pack-grid { grid-template-columns: 1fr; }
  .dash-stats-grid { grid-template-columns: 1fr; }
}

/* ─── Quota bar ─────────────────────────────────────────────────────────────── */
.quota-bar { display: flex; flex-direction: column; gap: 8px; }
.quota-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.quota-label span:last-child { font-weight: 600; color: var(--text); }
.quota-track {
  width: 100%;
  height: 10px;
  background: var(--bg3);
  border-radius: 99px;
  overflow: hidden;
}
.quota-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.4s ease, background 0.3s;
}
.quota-fill--warn  { background: #f59e0b; }
.quota-fill--alert { background: #ef4444; }
.quota-reset { font-size: 12px; color: var(--text-muted); }
