:root {
  --bg: #eef1f6;
  --page-bg: #eef1f6;
  --surface: #ffffff;
  --border: #d4dbe5;
  --border-light: #e8edf3;
  --text: #1a2332;
  --muted: #5c6b7e;
  --accent: #1563a8;
  --accent-dark: #0f4d85;
  --accent-soft: #e8f2fb;
  --success: #1a7f4b;
  --success-bg: #e8f5ee;
  --warn: #9a6700;
  --warn-bg: #fef9e7;
  --error: #b42318;
  --error-bg: #fef3f2;
  --header-bg: #1563a8;
  --header-bg-from: #1563a8;
  --header-bg-to: #0f4d85;
  --radius: 4px;
  --radius-sm: 4px;
  --shadow: 0 1px 3px rgba(26, 35, 50, 0.08), 0 4px 16px rgba(26, 35, 50, 0.06);
  --transition: 0.2s ease;
  --font: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--page-bg, var(--bg));
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ── Compliance strip (banque, immo, etc.) ── */
.site-compliance {
  background: #1a2332;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.6875rem;
  text-align: center;
  padding: 0.35rem 1rem;
  letter-spacing: 0.02em;
}

[data-skin="banque"] .site-compliance { background: #0f1a2e; }
[data-skin="assurance"] .site-compliance { background: #1f3810; }
[data-skin="location_auto"] .site-compliance { background: #3d2814; }

.site-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Top bar ── */
.site-topbar {
  background: linear-gradient(135deg, var(--header-bg-from, var(--header-bg)) 0%, var(--header-bg-to, var(--header-bg)) 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.site-topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.site-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.logo-bank .site-logo-icon { border-radius: 50%; font-family: Georgia, serif; }
.logo-immo .site-logo-icon { border-radius: 4px 4px 8px 4px; }
.logo-rh .site-logo-icon { border-radius: 3px; font-size: 0.95rem; }
.logo-credit .site-logo-icon { transform: rotate(0deg); font-size: 0.85rem; }
.logo-assurance .site-logo-icon { border-radius: 50%; background: rgba(255,255,255,0.2); }
.logo-auto .site-logo-icon { border-radius: 2px; }
.logo-id .site-logo-icon { border-radius: 8px; }
.logo-pro .site-logo-icon { border-radius: 4px; font-size: 0.9rem; }

.site-logo-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-logo-tag {
  display: block;
  font-size: 0.6875rem;
  opacity: 0.82;
  font-weight: 400;
}

.site-logo-agency {
  display: block;
  font-size: 0.625rem;
  opacity: 0.75;
  font-weight: 500;
  font-style: italic;
}

.site-nav {
  display: none;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.875rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-nav a:hover { color: #fff; }

.site-user {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  font-size: 0.8125rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-user-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7a0;
}

/* ── Sub bar ── */
.site-subbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}

.site-subbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.site-breadcrumb span { color: var(--text); font-weight: 600; }

.site-subbar-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.site-secure {
  font-size: 0.6875rem;
  color: var(--success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-secure::before {
  content: '🔒';
  font-size: 0.625rem;
}

.site-ref {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  white-space: nowrap;
}

/* ── Body layout ── */
.site-body {
  flex: 1;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 1.25rem;
  align-items: start;
}

.site-sidebar {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar-block {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-block:last-child { border-bottom: none; }

.sidebar-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.sidebar-ref {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.sidebar-deadline {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--warn);
}

.sidebar-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.45rem 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--muted);
}

.sidebar-steps li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 1px;
  background: #fff;
}

.sidebar-steps li.done { color: var(--text); }
.sidebar-steps li.done::before {
  content: '✓';
  border-color: var(--success);
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sidebar-steps li.active {
  color: var(--text);
  font-weight: 600;
}

.sidebar-steps li.active::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.sidebar-help-text {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}

.sidebar-help-contact {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.sidebar-help-phone {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.site-main { min-width: 0; }

.site-context {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}

.context-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  font-size: 0.8125rem;
}

.context-card--muted {
  background: #fafbfc;
}

.context-card h4 {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.context-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-light);
}

.context-row:last-child { border-bottom: none; }
.context-row span:first-child { color: var(--muted); }
.context-row span:last-child { font-weight: 600; text-align: right; }

.context-val--warn {
  color: var(--warn) !important;
  font-weight: 700 !important;
}

.context-trust {
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.45;
  padding: 0 0.25rem;
}

.context-trust p { margin: 0 0 0.2rem; }

/* ── Action banner ── */
.action-banner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #fff8e6;
  border: 1px solid #f0d878;
  border-left: 4px solid var(--warn);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.action-banner-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--warn);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-banner strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text);
}

.action-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.card-focus {
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.1), 0 8px 24px rgba(26, 35, 50, 0.06);
}

/* ── Site footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem;
  text-align: center;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.65rem;
}

.site-footer-links a {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
}

.site-footer-links a:hover { color: var(--accent); }

.site-footer-note {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.5;
}


/* ── Progress ── */
.wizard-progress {
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
}

.step-breadcrumb {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.step-breadcrumb span:last-child {
  font-weight: 600;
  color: var(--text);
}

.progress-track {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition);
  width: 0%;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.card-success { text-align: center; }

.muted { color: var(--muted); font-size: 0.9375rem; }
.center { text-align: center; }

/* ── Trust ── */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  line-height: 1.3;
}

.trust-hero { margin-bottom: 1.25rem; }

.trust-kicker {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  margin-bottom: 0.65rem;
}

.trust-hero h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.trust-intro {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.trust-points {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  background: #fafbfc;
}

.trust-point-num {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.trust-doc-checklist {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.trust-doc-checklist-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.trust-doc-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text);
}

.trust-doc-list li { margin: 0.2rem 0; }

.trust-note {
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--warn-bg);
  border: 1px solid #f5e6a8;
  border-left: 3px solid var(--warn);
  border-radius: var(--radius);
}

.btn-cta-main {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── Form ── */
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font: inherit;
  margin-bottom: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input::placeholder, textarea::placeholder {
  color: #9aa5b4;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea { min-height: 96px; resize: vertical; }

.field-group { margin-bottom: 0.15rem; }

.doc-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fafbfc;
  margin-bottom: 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text);
}

.doc-check input {
  width: auto;
  margin: 0.2rem 0 0;
  accent-color: var(--accent);
}

/* ── Documents ── */
.doc-slot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin-bottom: 0.85rem;
  background: #fafbfc;
}

.doc-slot.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.doc-slot.has-img {
  border-color: #86c9a8;
  background: var(--success-bg);
}

.doc-slot-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.doc-slot-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border-light);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.doc-slot.has-img .doc-slot-num {
  background: #c6e9d4;
  color: var(--success);
}

.doc-slot label {
  margin: 0;
  font-size: 0.9375rem;
}

.doc-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.doc-capture-tip {
  font-size: 0.875rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.doc-reassurance {
  background: #f0f7f4;
  border: 1px solid #c8e6d4;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
}

.doc-reassurance p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #1f4d38;
}

.doc-preview-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border);
  display: none;
}

.doc-slot.has-img .doc-preview-wrap { display: block; }

.doc-preview {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
  background: #fff;
}

.doc-preview-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--success);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
}

.doc-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1.75rem 1rem;
  text-align: center;
  margin-bottom: 0.85rem;
  background: #fff;
}

.doc-slot.has-img .doc-upload-zone { display: none; }

.doc-upload-icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-weight: 600;
}

.doc-upload-zone p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.doc-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Review ── */
.review-section { margin-bottom: 1.15rem; }

.review-section h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.review-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.review-row:last-child { border-bottom: none; }

.review-row span:first-child { color: var(--muted); }
.review-row span:last-child { text-align: right; word-break: break-word; font-weight: 500; }

.review-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.review-doc-chip {
  font-size: 0.8125rem;
  padding: 0.35rem 0.65rem;
  border-radius: 2px;
  background: var(--success-bg);
  border: 1px solid #b8dfc8;
  color: var(--success);
}

.review-doc-chip.missing {
  background: var(--warn-bg);
  border-color: #f0d878;
  color: var(--warn);
}

/* ── Buttons ── */
.btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition), opacity var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) { background: var(--accent-dark); }

.btn-ghost {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  width: auto;
  padding: 0.7rem 1rem;
  font-weight: 600;
}

.btn-row {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

.btn-row .btn { flex: 1; }
.btn-row .btn-ghost { flex: 0 0 auto; min-width: 100px; }

/* ── States ── */
.state-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 auto 0.85rem;
}

.state-icon--ok {
  background: var(--success-bg);
  border: 2px solid #86c9a8;
  color: var(--success);
}

.state-icon--warn {
  background: var(--warn-bg);
  border: 2px solid #f0d878;
  color: var(--warn);
}

.error {
  color: var(--error);
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  background: var(--error-bg);
  border-radius: var(--radius-sm);
  border: 1px solid #fecdca;
  margin-bottom: 0.85rem;
}

[hidden] { display: none !important; }

.loader {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 0.85rem;
  animation: spin 0.7s linear infinite;
}

.webview-banner {
  background: var(--warn-bg);
  border: 1px solid #f0d878;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.webview-banner p { margin: 0; }

/* ── Footer (legacy) ── */
.portal-footer { display: none; }

/* ── Camera (reste sombre — usage caméra) ── */
.camera-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.camera-sheet {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 8px 8px 0 0;
  padding: 1rem;
  color: var(--text);
}

.camera-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.camera-title { margin: 0; font-weight: 700; font-size: 1rem; }

.camera-close {
  background: var(--border-light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  color: var(--text);
}

.camera-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 3/4;
  max-height: 55vh;
}

.camera-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(var(--mirror, 1));
}

.camera-guide {
  position: absolute;
  inset: 10%;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  pointer-events: none;
}

.camera-guide.selfie {
  inset: 18% 22%;
  border-radius: 50%;
  border-style: solid;
}

.camera-hint {
  text-align: center;
  margin: 0.65rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

@keyframes spin { to { transform: rotate(360deg); } }

.wizard-step { animation: fadeUp 0.3s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

[data-skin="banque"] .site-compliance { background: #0a1420; }
[data-skin="locataire"] .site-compliance { background: #0f3d4f; }
[data-skin="embauche"] .site-compliance { background: #1a365d; }
[data-skin="credit"] .site-compliance { background: #062a3a; }
[data-skin="assurance"] .site-compliance { background: #1a3010; }
[data-skin="location_auto"] .site-compliance { background: #3d2814; }
[data-skin="identite"] .site-compliance { background: #0a4a7a; }
[data-skin="prestataire"] .site-compliance { background: #2d3748; }

/* ── Typographie par univers ── */
.font-bank,
.font-credit,
.font-pro { font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif; }
.font-immo,
.font-rh,
.font-assurance,
.font-auto,
.font-id { font-family: var(--font); }

/* ── Skins : bandeau d'action ── */
[data-skin="banque"] .action-banner,
[data-skin="credit"] .action-banner {
  background: #fff8e6;
  border-color: #f0d878;
  border-left-color: #c9a227;
}

[data-skin="assurance"] .action-banner {
  background: #f0f6eb;
  border-color: #c5ddb8;
  border-left-color: var(--accent);
}

[data-skin="locataire"] .action-banner {
  background: #eef6fa;
  border-color: #b8d4e3;
  border-left-color: var(--accent);
}

[data-skin="embauche"] .action-banner,
[data-skin="identite"] .action-banner {
  background: #eef3f9;
  border-color: #c5d5eb;
  border-left-color: var(--accent);
}

[data-skin="location_auto"] .action-banner {
  background: #faf6f0;
  border-color: #e0cdb8;
  border-left-color: var(--accent);
}

[data-skin="prestataire"] .action-banner {
  background: #f4f5f7;
  border-color: #d1d5db;
  border-left-color: var(--accent);
}

/* ── Skins : fond de page subtil ── */
[data-skin="banque"] .site-shell { background: linear-gradient(180deg, var(--page-bg) 0%, #e8ecf2 100%); }
[data-skin="locataire"] .site-shell { background: linear-gradient(180deg, var(--page-bg) 0%, #e5eef3 100%); }
[data-skin="assurance"] .site-shell { background: linear-gradient(180deg, var(--page-bg) 0%, #eaf0e6 100%); }
[data-skin="location_auto"] .site-shell { background: linear-gradient(180deg, var(--page-bg) 0%, #efeae4 100%); }

/* ── Skins : cartes & sidebar ── */
[data-skin="banque"] .site-sidebar,
[data-skin="banque"] .card-focus {
  border-top: 3px solid var(--accent);
}

[data-skin="banque"] .logo-bank .site-logo-icon {
  background: rgba(255,255,255,0.22);
  font-size: 1.25rem;
  font-weight: 400;
}

[data-skin="assurance"] .logo-assurance .site-logo-icon {
  background: rgba(255,255,255,0.25);
}

[data-skin="credit"] .context-card h4,
[data-skin="banque"] .context-card h4 {
  color: var(--accent);
}

[data-skin="banque"] .trust-kicker,
[data-skin="credit"] .trust-kicker {
  background: #e8eef5;
  color: var(--accent-dark);
}

[data-skin="assurance"] .trust-kicker {
  background: #e8f0e4;
  color: var(--accent);
}

[data-skin="banque"] .btn-primary,
[data-skin="credit"] .btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

[data-skin="banque"] .site-ref {
  background: #e8eef5;
  color: var(--accent-dark);
}

[data-skin="locataire"] .sidebar-deadline {
  color: #b45309;
  font-weight: 600;
}

@media (min-width: 640px) {
  .card { padding: 1.75rem 1.5rem; }
  .site-nav { display: flex; }
  .site-user { margin-left: 0; }
}

@media (min-width: 960px) {
  .site-context { display: flex; }
}

@media (max-width: 959px) {
  .site-body {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .site-sidebar {
    order: -1;
  }

  .sidebar-steps li.active::before {
    box-shadow: none;
  }
}

@media (max-width: 639px) {
  .site-topbar-inner { padding: 0.65rem 1rem; }
  .site-logo-tag { display: none; }
  .site-user { font-size: 0.75rem; padding: 0.3rem 0.55rem; }
  .site-ref { font-size: 0.6875rem; }
  .site-status-badge { font-size: 0.625rem; }
  .site-cert-strip { font-size: 0.625rem; padding: 0.4rem 0.75rem; }
}

/* ══════════════════════════════════════════════════════════════
   v17 — Polish pro par univers (logos SVG, badges, session)
   ══════════════════════════════════════════════════════════════ */

.site-logo-icon.has-svg {
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
}

.site-logo-icon.has-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-user-session {
  font-size: 0.625rem;
  opacity: 0.72;
  font-weight: 400;
}

.site-header-tools {
  display: none;
  gap: 0.65rem;
  margin-left: auto;
  font-size: 0.75rem;
}

.header-tool {
  color: rgba(255, 255, 255, 0.78);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav a.nav-active {
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  padding-bottom: 0.15rem;
}

.site-status-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.55rem;
  border-radius: 3px;
  white-space: nowrap;
}

.site-status-badge--warn {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.site-status-badge--urgent {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.site-status-badge--ok {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.sidebar-progress {
  margin-top: 0.75rem;
}

.sidebar-progress-track {
  height: 5px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
}

.sidebar-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 999px;
  transition: width 0.35s ease;
  width: 15%;
}

.sidebar-progress-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
}

.regulatory-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.regulatory-badge {
  display: inline-block;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.site-cert-strip {
  background: #f8f9fb;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  font-size: 0.6875rem;
  color: var(--muted);
  padding: 0.5rem 1rem;
  letter-spacing: 0.02em;
}

/* ── Typographies distinctes ── */
.font-bank { font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif; }
.font-credit { font-family: 'Libre Franklin', 'IBM Plex Sans', sans-serif; }
.font-pro { font-family: 'DM Sans', 'Segoe UI', sans-serif; }
.font-immo { font-family: 'Source Sans 3', 'Segoe UI', sans-serif; }
.font-rh { font-family: 'DM Sans', 'Source Sans 3', sans-serif; }
.font-assurance { font-family: 'Source Sans 3', Georgia, serif; }
.font-auto { font-family: 'Libre Franklin', 'Segoe UI', sans-serif; }
.font-id { font-family: 'IBM Plex Sans', 'Source Sans 3', sans-serif; }

/* ── Banque : mire institutionnelle ── */
[data-skin="banque"] .site-topbar {
  border-bottom: 3px solid #c9a227;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

[data-skin="banque"] .site-topbar-inner { padding-top: 0.85rem; padding-bottom: 0.85rem; }

[data-skin="banque"] .site-subbar {
  background: linear-gradient(180deg, #fff 0%, #f4f6f9 100%);
}

[data-skin="banque"] .card,
[data-skin="banque"] .card-focus {
  border-radius: 2px;
  border-top: 3px solid #c9a227;
}

[data-skin="banque"] .site-cert-strip {
  background: #0f1a2e;
  color: rgba(255, 255, 255, 0.75);
  border-color: #1e3a5f;
}

[data-skin="banque"] .regulatory-badge {
  background: #1e3a5f;
  color: rgba(255, 255, 255, 0.85);
  border-color: #2d5080;
}

/* ── Locataire : portail immo chaleureux ── */
[data-skin="locataire"] .site-topbar {
  background: linear-gradient(135deg, #1a5f7a 0%, #0d3d4f 55%, #1a5f7a 100%);
}

[data-skin="locataire"] .context-card {
  border-left: 3px solid var(--accent);
}

[data-skin="locataire"] .site-cert-strip {
  background: #e8f4f8;
  color: #0d3d4f;
}

[data-skin="locataire"] .doc-slot.active {
  border-color: #6ecfb8;
  background: linear-gradient(180deg, #fff 0%, #f0faf7 100%);
}

/* ── RH : corporate onboarding ── */
[data-skin="embauche"] .site-sidebar {
  border-top: 3px solid #3182ce;
}

[data-skin="embauche"] .site-topbar {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

[data-skin="embauche"] .card-focus {
  box-shadow: 0 1px 2px rgba(44, 82, 130, 0.08), 0 8px 24px rgba(44, 82, 130, 0.1);
}

/* ── Crédit : finance sérieux ── */
[data-skin="credit"] .site-topbar {
  background: linear-gradient(180deg, #0d4f6e 0%, #062a3a 100%);
}

[data-skin="credit"] .site-ref {
  font-family: 'IBM Plex Sans', monospace;
}

[data-skin="credit"] .context-card--muted {
  background: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);
  border-left: 3px solid var(--accent);
}

[data-skin="credit"] .site-cert-strip {
  background: #062a3a;
  color: rgba(255, 255, 255, 0.8);
}

/* ── Assurance : vert rassurant ── */
[data-skin="assurance"] .site-topbar {
  background: linear-gradient(135deg, #2d5016 0%, #1a3010 100%);
}

[data-skin="assurance"] .card,
[data-skin="assurance"] .card-focus {
  border-radius: 8px;
}

[data-skin="assurance"] .btn-primary {
  border-radius: 999px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

[data-skin="assurance"] .regulatory-badge {
  background: #e8f0e4;
  color: #2d5016;
  border-color: #c5ddb8;
}

/* ── AutoLoc : énergie location ── */
[data-skin="location_auto"] .site-topbar {
  background: linear-gradient(90deg, #7c4a1e 0%, #5c3616 50%, #7c4a1e 100%);
}

[data-skin="location_auto"] .site-topbar-inner {
  border-bottom: 2px solid #d4a574;
}

[data-skin="location_auto"] .btn-primary {
  background: linear-gradient(180deg, #7c4a1e 0%, #5c3616 100%);
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

[data-skin="location_auto"] .doc-slot.active {
  border: 2px dashed #d4a574;
  background: #faf6f0;
}

/* ── France Vérification : officiel numérique ── */
[data-skin="identite"] .site-topbar {
  background: linear-gradient(180deg, #1563a8 0%, #0a4a7a 100%);
  position: relative;
}

[data-skin="identite"] .site-topbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #002654 0%, #fff 33%, #ce1126 66%, #002654 100%);
  opacity: 0.35;
}

[data-skin="identite"] .site-compliance {
  background: #002654;
  font-weight: 500;
}

[data-skin="identite"] .card-focus {
  border: 1px solid #c5d5eb;
  box-shadow: 0 0 0 1px rgba(21, 99, 168, 0.06), 0 8px 32px rgba(21, 99, 168, 0.08);
}

[data-skin="identite"] .regulatory-badge {
  background: #eef3f9;
  color: #1563a8;
  border-color: #b8cfe8;
}

[data-skin="identite"] .site-cert-strip {
  background: #eef3f9;
  color: #0a4a7a;
  font-weight: 500;
}

/* ── Prestataire : B2B neutre ── */
[data-skin="prestataire"] .site-topbar {
  background: #2d3748;
  box-shadow: none;
  border-bottom: 1px solid #4a5568;
}

[data-skin="prestataire"] .site-subbar {
  background: #f7fafc;
}

[data-skin="prestataire"] .card {
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-skin="prestataire"] .site-user {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

/* ── Upload documents : cadre CNI pro ── */
.doc-slot.active .doc-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  transition: border-color var(--transition), background var(--transition);
}

.doc-slot.active:hover .doc-upload-zone {
  border-color: var(--accent);
  background: var(--accent-soft);
}

[data-skin="banque"] .doc-slot.active .doc-upload-zone,
[data-skin="identite"] .doc-slot.active .doc-upload-zone {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.98) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(21,99,168,0.04) 19px, rgba(21,99,168,0.04) 20px);
}

.doc-upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.65rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── Footer enrichi ── */
.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.25rem;
}

.site-footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8125rem;
}

.site-footer-links a:hover { color: var(--accent); text-decoration: underline; }

.site-footer-note {
  margin: 0.65rem 0 0;
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (min-width: 640px) {
  .site-header-tools { display: flex; }
  .site-nav { margin-left: 1.5rem; }
}

[data-skin="mission"] .site-topbar {
  background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%);
}

[data-skin="mission"] .site-shell {
  background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
}

[data-skin="mission"] .btn-primary {
  background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 100%);
  border: none;
}

[data-skin="mission"] .site-cert-strip {
  background: #4c1d95;
  color: rgba(255, 255, 255, 0.85);
}

[data-skin="livreur"] .site-topbar {
  background: #000;
}

[data-skin="livreur"] .site-topbar-inner {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

[data-skin="livreur"] .site-shell {
  background: #f6f6f6;
}

[data-skin="livreur"] .site-logo-text,
[data-skin="livreur"] .site-nav a,
[data-skin="livreur"] .site-user {
  color: #fff;
}

[data-skin="livreur"] .btn-primary {
  background: #00ccbc;
  border: none;
  color: #000;
  font-weight: 700;
  border-radius: 999px;
}

[data-skin="livreur"] .btn-primary:hover {
  background: #00b3a6;
}

[data-skin="livreur"] .site-cert-strip {
  background: #000;
  color: rgba(255, 255, 255, 0.88);
}

[data-skin="livreur"] .site-compliance {
  background: #000;
}

[data-skin="livreur"] .trust-kicker {
  background: rgba(6, 193, 103, 0.12);
  color: #047857;
  border-left: 3px solid #06c167;
}

[data-skin="livreur"] .regulatory-badge {
  border-color: rgba(6, 193, 103, 0.35);
  background: rgba(6, 193, 103, 0.08);
  color: #065f46;
}

[data-skin="livreur"] .action-banner {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  color: #fff;
}

[data-skin="livreur"] .action-banner p {
  color: rgba(255, 255, 255, 0.82);
}

[data-skin="livreur"] .doc-slot.active .doc-upload-zone {
  border-color: #06c167;
  box-shadow: 0 0 0 1px rgba(6, 193, 103, 0.25);
}

[data-skin="livreur"] .card-focus {
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.font-livreur { font-family: 'DM Sans', 'Inter', system-ui, sans-serif; }

.font-mission { font-family: 'DM Sans', 'Source Sans 3', sans-serif; }

/* ══════════════════════════════════════════════════════════════
   v19 — Hero bandeau + layouts premium par univers
   ══════════════════════════════════════════════════════════════ */

.site-hero {
  background: linear-gradient(90deg, var(--accent-soft) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border-light);
}

.site-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-hero-title {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.site-hero-subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 36rem;
}

.site-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hero-chip {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.regulatory-badge--seal {
  background: linear-gradient(180deg, #fff 0%, #f8f9fb 100%);
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.site-footer-legal {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.site-footer-entity {
  margin: 0 0 0.2rem;
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.45;
}

.site-footer-ids {
  margin: 0;
  font-size: 0.625rem;
  color: var(--muted);
  opacity: 0.85;
}

/* ── Layout banque ── */
.layout-bank .site-hero {
  background: linear-gradient(90deg, #1e3a5f 0%, #2a4a6f 100%);
  color: #fff;
  border-bottom: 3px solid #c9a227;
}

.layout-bank .site-hero-title,
.layout-bank .site-hero-subtitle { color: rgba(255,255,255,0.92); }
.layout-bank .site-hero-subtitle { opacity: 0.82; }
.layout-bank .hero-chip {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
}

.layout-bank .card-focus {
  border-radius: 2px;
  border-top: 3px solid #c9a227;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.12);
}

.layout-bank .site-sidebar {
  border-top: 3px solid #1e3a5f;
}

.layout-bank .site-footer-legal {
  border-top-color: #c9a22733;
}

/* ── Layout immo ── */
.layout-immo .site-hero {
  background: linear-gradient(135deg, #e8f4f8 0%, #d4ebe3 50%, #eef4f7 100%);
  border-bottom: 2px solid #6ecfb8;
}

.layout-immo .hero-chip {
  background: #fff;
  border-color: #b8d4e3;
  color: #1a5f7a;
}

.layout-immo .card-focus {
  border-left: 4px solid var(--accent);
}

/* ── Layout RH ── */
.layout-rh .site-hero {
  background: #f0f3f8;
  border-left: 4px solid #3182ce;
}

.layout-rh .site-topbar {
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.08);
}

.layout-rh .card {
  border-radius: 6px;
}

/* ── Layout crédit ── */
.layout-credit .site-hero {
  background: linear-gradient(180deg, #062a3a 0%, #0d4f6e 100%);
}

.layout-credit .site-hero-title,
.layout-credit .site-hero-subtitle { color: #fff; }
.layout-credit .site-hero-subtitle { opacity: 0.8; }
.layout-credit .hero-chip {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.layout-credit .context-card {
  border-left: 3px solid var(--accent);
}

/* ── Layout assurance ── */
.layout-assurance .site-hero {
  background: linear-gradient(135deg, #f0f6eb 0%, #e8f0e4 100%);
  border-radius: 0;
}

.layout-assurance .card,
.layout-assurance .card-focus {
  border-radius: 10px;
}

.layout-assurance .btn-primary {
  border-radius: 999px;
}

/* ── Layout auto ── */
.layout-auto .site-hero {
  background: linear-gradient(90deg, #7c4a1e 0%, #5c3616 100%);
}

.layout-auto .site-hero-title,
.layout-auto .site-hero-subtitle { color: #fff; }
.layout-auto .hero-chip {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.layout-auto .btn-primary {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8125rem;
}

/* ── Layout gov / identité ── */
.layout-gov .site-hero {
  background: #eef3f9;
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, #002654, #fff 33%, #ce1126 66%, #002654) 1;
}

.layout-gov .hero-chip {
  color: #1563a8;
  border-color: #b8cfe8;
  background: #fff;
}

.layout-gov .card-focus {
  box-shadow: 0 0 0 1px rgba(21,99,168,0.08), 0 8px 32px rgba(21,99,168,0.08);
}

/* ── Layout rewards / mission ── */
.layout-rewards .site-hero {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #4c1d95 100%);
}

.layout-rewards .site-hero-title,
.layout-rewards .site-hero-subtitle { color: #fff; }
.layout-rewards .hero-chip {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

/* ── Layout livreur / delivery KYC ── */
.layout-livreur .site-hero {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 55%, #063a24 100%);
}

.layout-livreur .site-hero-title,
.layout-livreur .site-hero-subtitle { color: #fff; }
.layout-livreur .site-hero-subtitle { opacity: 0.85; }

.layout-livreur .hero-chip {
  background: rgba(6, 193, 103, 0.2);
  border-color: rgba(6, 193, 103, 0.45);
  color: #d1fae5;
}

.layout-livreur .site-topbar {
  background: #000;
}

.layout-livreur .card-focus {
  border-radius: 12px;
  border-top: 3px solid #06c167;
}

.layout-livreur .btn-primary {
  background: #06c167;
  color: #000;
  font-weight: 700;
}

.site-shell[data-card-style="delivery"] .card-focus {
  border-radius: 12px;
  border-top: 3px solid #06c167;
}

.site-shell[data-card-style="delivery"] .trust-badges .trust-badge {
  border-color: rgba(6, 193, 103, 0.35);
  background: rgba(6, 193, 103, 0.08);
}

/* ── Layout pro / prestataire ── */
.layout-pro .site-hero {
  background: #f7fafc;
  border-bottom: 1px solid #e2e8f0;
}

.layout-pro .site-topbar {
  background: #2d3748;
}

.layout-pro .card {
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Card styles via data attribute */
.site-shell[data-card-style="institutional"] .card-focus {
  border-radius: 2px;
  border-top: 3px solid #c9a227;
}

.site-shell[data-card-style="rounded"] .card-focus {
  border-radius: 12px;
}

.site-shell[data-card-style="official"] .trust-kicker {
  background: #eef3f9;
  color: #0a4a7a;
}

.site-shell[data-card-style="rewards"] .trust-badges .trust-badge {
  border-color: #c4b5fd;
  background: #f5f3ff;
}

/* ══════════════════════════════════════════════════════════════
   v21 — Portail livreur multi-pages (style KYC livraison)
   ══════════════════════════════════════════════════════════════ */

.livreur-portal {
  --lv-teal: #00ccbc;
  --lv-teal-dark: #00a396;
  --lv-black: #000000;
  --lv-gray: #f3f4f6;
}

.livreur-portal .site-shell {
  background: #fff;
}

.livreur-portal .site-compliance {
  background: #111;
  font-size: 0.625rem;
  padding: 0.3rem 0.75rem;
}

.livreur-portal .site-topbar {
  background: #000;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.livreur-portal .site-logo-name {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.livreur-portal .site-logo-tag {
  opacity: 0.65;
  font-size: 0.6875rem;
}

.livreur-portal .site-subbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.livreur-portal .site-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.livreur-portal .site-breadcrumb a:hover {
  color: var(--lv-teal-dark);
}

.livreur-portal .site-hero {
  background: #000;
  border: none;
}

.livreur-portal .site-hero-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.livreur-portal .hero-chip {
  background: rgba(0, 204, 188, 0.15);
  border-color: rgba(0, 204, 188, 0.35);
  color: #99f6e4;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
}

.livreur-portal .site-sidebar {
  background: #fafafa;
  border-right: 1px solid #e5e7eb;
}

.livreur-portal .sidebar-steps li.active::before {
  background: var(--lv-teal);
  box-shadow: 0 0 0 3px rgba(0, 204, 188, 0.25);
}

.livreur-portal .sidebar-progress-fill {
  background: var(--lv-teal);
}

.livreur-portal .card,
.livreur-portal .card-focus {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: none;
}

.livreur-portal .site-context {
  background: #fafafa;
}

.livreur-portal .site-cert-strip {
  background: #111;
  font-size: 0.6875rem;
}

.livreur-portal .site-footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.livreur-portal .site-footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.livreur-portal .site-footer-links a:hover {
  color: var(--lv-teal-dark);
}

.livreur-portal .site-nav a {
  pointer-events: auto;
  font-size: 0.875rem;
  opacity: 0.85;
}

.livreur-portal .site-nav a.nav-active {
  opacity: 1;
  border-bottom-color: var(--lv-teal);
}

.livreur-portal .site-logo {
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
}

.livreur-static-view .site-main {
  max-width: none;
}

.livreur-pages {
  animation: lv-fade-in 0.25s ease;
}

@keyframes lv-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* KYC intro (écran confiance livreur) */
.lv-kyc-intro {
  margin-bottom: 1.5rem;
}

.lv-kyc-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lv-teal-dark);
  background: rgba(0, 204, 188, 0.1);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.lv-kyc-intro h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.lv-kyc-lead {
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.55;
}

.lv-kyc-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lv-kyc-trust-row span {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--lv-gray);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.lv-kyc-docs {
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: #fafafa;
}

.lv-kyc-docs h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.lv-kyc-doc-list {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.lv-kyc-doc-list li {
  margin-bottom: 0.35rem;
}

.lv-kyc-points {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.lv-kyc-points li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.lv-kyc-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--lv-teal-dark);
  font-weight: 700;
}

.lv-kyc-start {
  width: 100%;
  max-width: 320px;
  border-radius: 999px !important;
  padding: 0.85rem 1.5rem !important;
}

/* Pages statiques */
.lv-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lv-hero-card {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  border-radius: 20px;
  padding: 1.75rem;
  color: #fff;
}

.lv-hero-card h1 {
  margin: 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lv-hero-card p {
  margin: 0 0 1.25rem;
  opacity: 0.85;
  line-height: 1.5;
}

.lv-pill {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.lv-pill--warn {
  background: #fef3c7;
  color: #92400e;
}

.lv-cta {
  border-radius: 999px !important;
}

.lv-grid {
  display: grid;
  gap: 1rem;
}

.lv-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .lv-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.lv-stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.15rem;
}

.lv-stat-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.lv-stat-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lv-stat-value--warn { color: #b45309; }

.lv-stat-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.lv-section-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.lv-section--muted {
  background: #fafafa;
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
}

.lv-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lv-timeline-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.lv-timeline-item:last-child { border-bottom: none; }

.lv-timeline-item span:first-child {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #e5e7eb;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.lv-timeline-item--done span:first-child {
  background: var(--lv-teal);
  color: #000;
}

.lv-timeline-item--active span:first-child {
  background: #000;
  color: var(--lv-teal);
  box-shadow: 0 0 0 3px rgba(0, 204, 188, 0.35);
}

.lv-timeline-item p {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.lv-timeline-item a {
  color: var(--lv-teal-dark);
  font-weight: 600;
  font-size: 0.875rem;
}

.lv-link-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .lv-link-grid { grid-template-columns: 1fr 1fr; }
}

.lv-link-card {
  display: block;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lv-link-card:hover {
  border-color: var(--lv-teal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.lv-link-card strong {
  display: block;
  margin-bottom: 0.2rem;
}

.lv-link-card span {
  font-size: 0.8125rem;
  color: var(--muted);
}

.lv-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #fafafa;
  border-radius: 20px;
  border: 1px dashed #d1d5db;
}

.lv-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.lv-empty-state h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.lv-empty-steps {
  text-align: left;
  max-width: 22rem;
  margin: 1.25rem auto;
  font-size: 0.9375rem;
}

.lv-preview-cards {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.lv-preview-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  opacity: 0.7;
}

.lv-preview-card--locked { position: relative; }

.lv-preview-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.lv-preview-lock {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: #9ca3af;
}

.lv-search-bar input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.9375rem;
  background: #fafafa;
}

.lv-help-categories {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lv-help-cat {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.lv-help-cat:hover { border-color: var(--lv-teal); }

.lv-help-cat-icon { font-size: 1.5rem; }

.lv-help-cat p {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.lv-faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.lv-faq-item summary {
  padding: 0.85rem 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.lv-faq-item summary::-webkit-details-marker { display: none; }

.lv-faq-answer {
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.lv-legal-doc {
  background: #fff;
  padding: 0.5rem 0;
}

.lv-legal-updated {
  font-size: 0.8125rem;
  color: var(--muted);
}

.lv-legal-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.lv-legal-section h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.lv-contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .lv-contact-grid { grid-template-columns: 1fr 1.2fr; }
}

.lv-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lv-contact-list li {
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.lv-contact-list strong {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.lv-contact-form label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.lv-contact-form input,
.lv-contact-form select,
.lv-contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font: inherit;
}

.lv-contact-note {
  font-size: 0.8125rem;
  margin-top: 0.75rem;
}

.layout-livreur .site-hero {
  background: #000;
}

.layout-livreur .hero-chip {
  background: rgba(0, 204, 188, 0.12);
  border-color: rgba(0, 204, 188, 0.35);
  color: #5eead4;
}

.layout-livreur .card-focus {
  border-top: none;
  border-radius: 16px;
}

.layout-livreur .btn-primary {
  background: #00ccbc;
  color: #000;
  border-radius: 999px;
}

@media (max-width: 639px) {
  .livreur-portal .site-body {
    flex-direction: column;
  }

  .livreur-portal .site-sidebar,
  .livreur-portal .site-context {
    order: 2;
  }

  .livreur-portal .site-main {
    order: 1;
  }
}

[data-skin="mission"] .site-compliance { background: #4c1d95; }
[data-skin="livreur"] .site-compliance { background: #000; }
[data-skin="embauche"] .site-compliance { background: #1a365d; }

@media (min-width: 960px) {
  .layout-bank .site-main .card-focus,
  .layout-credit .site-main .card-focus,
  .layout-gov .site-main .card-focus {
    padding: 2rem 2.25rem;
  }

  .site-hero-title { font-size: 1.25rem; }
}

@media (max-width: 639px) {
  .site-hero-inner { padding: 0.85rem 1rem; }
  .site-hero-chips { width: 100%; }
}
