:root {
  --primary: #1e3a8a;
  --primary-mid: #1e40af;
  --primary-light: #3b82f6;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --danger: #dc2626;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --gradient: linear-gradient(135deg, #1e3a8a 0%, #1e40af 40%, #3b82f6 70%, #06b6d4 100%);
}

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

/* ── Background image avec animation zoom/dezoom ────────── */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -40px;
  z-index: -1;
  background:
    linear-gradient(160deg, rgba(15,23,42,0.86) 0%, rgba(30,41,59,0.62) 45%, rgba(30,58,138,0.38) 100%),
    url('https://images.unsplash.com/photo-1586472003620-73184ff05c4a?w=1920&q=80&auto=format&fit=crop') center/cover no-repeat;
  animation: bgPan 30s ease-in-out infinite alternate;
}

@keyframes bgBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes bgPan {
  0% { transform: translate(0, 0) scale(1.05); }
  100% { transform: translate(-20px, -10px) scale(1.05); }
}

/* ── Navigation ─────────────────────────────────────────── */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.navbar-brand img,
.navbar-brand svg {
  height: 80px;
  width: auto;
}

.navbar-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

.navbar-links a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-links a:hover { color: var(--primary); }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(30,64,175,0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30,64,175,0.45);
}

.btn-secondary {
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  border: 2px solid var(--primary-light);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background: var(--white);
  border-color: var(--primary);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  border-radius: var(--radius);
}

.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  background: transparent;
  color: var(--white);
  padding: 3rem 2rem 1rem;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.92;
  max-width: 550px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.hero .btn-primary:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.hero .btn-secondary {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}
.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.7);
}

/* ── Sections ───────────────────────────────────────────── */

.section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--white);
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

.section-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ── Steps ──────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  transition: transform 0.3s;
}
.step:hover { transform: translateY(-4px); }

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.step p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ── Features ───────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature {
  padding: 1.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.feature p {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* ── Cards ──────────────────────────────────────────────── */

.card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 2rem;
}

/* ── Forms ──────────────────────────────────────────────── */

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

/* ── Activity Picker ────────────────────────────────────── */

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.15s;
  border: 1px solid transparent;
}

.activity-item:hover { background: var(--gray-50); }

.activity-item.selected {
  background: rgba(59,130,246,0.1);
  border-color: var(--primary-light);
}

.activity-item input[type="checkbox"] {
  accent-color: var(--primary);
}

.risk-badge {
  font-size: 0.625rem;
  padding: 0.1rem 0.4rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
}
.risk-low { background: #dcfce7; color: #166534; }
.risk-medium { background: #fef9c3; color: #854d0e; }
.risk-high { background: #fed7aa; color: #9a3412; }
.risk-very_high { background: #fecaca; color: #991b1b; }

/* ── Quote Result ───────────────────────────────────────── */

.quote-result {
  background: var(--gray-50);
  border: 2px solid transparent;
  border-image: var(--gradient) 1;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.quote-price {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quote-price span {
  font-size: 1.25rem;
  font-weight: 400;
  -webkit-text-fill-color: var(--gray-500);
}

.quote-detail {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ── Success State ──────────────────────────────────────── */

.success-card {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.success-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.success-card .mono {
  font-family: 'SF Mono', Monaco, monospace;
  background: var(--gray-100);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin: 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ── CTA Banner ─────────────────────────────────────────── */

.cta-banner {
  background: rgba(17,24,39,0.9);
  backdrop-filter: blur(12px);
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
}

.cta-banner h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  padding: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.95);
  font-size: 0.8rem;
}

.footer a {
  color: white;
  text-decoration: none;
}

/* ── Stepper ────────────────────────────────────────────── */

.stepper {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  font-weight: 600;
}

.stepper-step.active { color: var(--white); }
.stepper-step.done { color: var(--accent-light); }

.stepper-step::after {
  content: "";
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.2);
  margin-left: 0.5rem;
}

.stepper-step:last-child::after { display: none; }
.stepper-step.active::after, .stepper-step.done::after { background: var(--accent); }

/* ── Wizard Steps ───────────────────────────────────────── */

.wizard-step { display: none; }
.wizard-step.active { display: block; }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero { padding: 3rem 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 3rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .navbar { padding: 1rem; }
  .navbar-links { gap: 0.6rem; }
  .stepper { flex-wrap: wrap; }
  .quote-detail { flex-direction: column; gap: 0.5rem; }
}

/* ── Navigation partagée (js/nav.js) ─────────────────────── */

.navbar-links a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.navbar-links a.nav-cta {
  background: var(--gradient); color: var(--white); padding: 0.45rem 1rem; border-radius: 50px;
  box-shadow: 0 4px 14px rgba(30,64,175,0.3); transition: transform 0.2s, box-shadow 0.2s;
}
.navbar-links a.nav-cta:hover { color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(30,64,175,0.4); }
/* Déclinaisons par espace : chantier (ciel), vigie (sarcelle) — le courtier garde le dégradé principal */
.navbar-links a.nav-cta--chantier { background: linear-gradient(135deg, #0c4a6e, #0ea5e9); box-shadow: 0 4px 14px rgba(14,165,233,0.28); }
.navbar-links a.nav-cta--chantier:hover { box-shadow: 0 6px 18px rgba(14,165,233,0.4); }
.navbar-links a.nav-cta--vigie { background: linear-gradient(135deg, #0f766e, #14b8a6); box-shadow: 0 4px 14px rgba(20,184,166,0.28); }
.navbar-links a.nav-cta--vigie:hover { box-shadow: 0 6px 18px rgba(20,184,166,0.4); }
/* Espace courant : anneau autour de son bouton */
.navbar-links a.nav-cta[aria-current="page"] { color: var(--white); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px #1e3a8a; }
.navbar .tenant-badge {
  display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
  background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200);
  border-radius: 50px; padding: 0.3rem 0.8rem; font-size: 0.75rem; font-weight: 600;
}
.navbar .tenant-badge:empty { display: none; }
.navbar-toggle { display: none; background: none; border: 1px solid var(--gray-200); border-radius: 8px; width: 40px; height: 36px; padding: 6px 8px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.navbar-toggle span { display: block; height: 2px; background: var(--gray-700); border-radius: 2px; }
@media (max-width: 720px) {
  .navbar { flex-wrap: wrap; padding: 0.75rem 1rem; }
  .navbar-brand img, .navbar-brand svg { height: 48px; }
  .navbar-toggle { display: flex; }
  .navbar-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0.25rem; padding-top: 0.75rem; }
  .navbar.open .navbar-links { display: flex; }
  .navbar-links li { border-top: 1px solid var(--gray-100); }
  .navbar-links a { display: block; padding: 0.7rem 0.25rem; }
  .navbar-links a.nav-cta { display: inline-block; margin-top: 0.4rem; }
}

/* ── Niveaux de preuve (partagés) ────────────────────────── */

.pill { display: inline-block; border-radius: 50px; padding: 0.15rem 0.7rem; font-size: 0.72rem; font-weight: 700; }
.pill.active { background: #dcfce7; color: #166534; }
.pill.expired { background: #fef3c7; color: #92400e; }
.pill.other { background: #fee2e2; color: #991b1b; }
.pill.proof-issued { background: #dbeafe; color: #1e40af; }
.pill.proof-certified { background: #dcfce7; color: #166534; }
.pill.proof-confirmed { background: #e0e7ff; color: #3730a3; }
.pill.proof-declared { background: #fef9c3; color: #854d0e; }
.pill.proof-contested { background: #fee2e2; color: #991b1b; }

/* ── Contrôle d'une décennale (js/decennale-check.js) ────── */

.dc-modes { display: flex; gap: 0.4rem; margin-bottom: 0.9rem; }
.dc-mode { background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 50px; padding: 0.35rem 0.9rem; font-size: 0.78rem; font-weight: 600; color: var(--gray-600); cursor: pointer; transition: background 0.15s, color 0.15s; }
.dc-mode[aria-pressed="true"] { background: var(--primary); color: var(--white); border-color: var(--primary); }
.dc-form { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: flex-start; }
.dc-form .cs-wrap, .dc-form > .dc-input { flex: 1; min-width: 240px; }
.dc-form .dc-input { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--gray-300); border-radius: 10px; font-size: 1rem; outline: none; transition: border-color .2s, box-shadow .2s; background: var(--white); }
.dc-form .dc-input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.dc-form .dc-submit { padding: 0.8rem 1.4rem; border-radius: 10px; font-size: 0.95rem; }
.dc-hint { font-size: 0.78rem; color: var(--gray-500); margin-top: 0.6rem; }
.dc-error { color: #b91c1c; font-size: 0.85rem; margin-top: 0.75rem; }
.dc-candidates { margin-top: 0.75rem; border: 1px solid var(--gray-200); border-radius: 10px; overflow: hidden; }
.dc-candidates button { display: block; width: 100%; text-align: left; background: white; border: none; border-bottom: 1px solid var(--gray-100); padding: 0.65rem 0.9rem; cursor: pointer; font: inherit; }
.dc-candidates button:last-child { border-bottom: none; }
.dc-candidates button:hover { background: var(--gray-50); }
.dc-candidates .n { font-weight: 600; font-size: 0.9rem; color: var(--gray-900); }
.dc-candidates .m { font-size: 0.75rem; color: var(--gray-500); }
.dc-candidates .closed-inline { color: #b91c1c; font-weight: 600; }
.dc-result { margin-top: 1.5rem; }
.dc-result.dc-in { animation: dcIn 0.35s ease-out both; }
@keyframes dcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dc-company { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; border-bottom: 1px solid var(--gray-200); padding-bottom: 1rem; margin-bottom: 1rem; }
.dc-company h2 { font-size: 1.2rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.01em; }
.dc-company .trade { font-weight: 500; color: var(--gray-500); }
.dc-company .meta { font-size: 0.82rem; color: var(--gray-500); margin-top: 0.2rem; }
.dc-company .closed { display: inline-block; background: #fef2f2; color: #b91c1c; border-radius: 50px; padding: 0.1rem 0.6rem; font-size: 0.72rem; font-weight: 700; margin-left: 0.4rem; vertical-align: middle; }
.dc-verdict-box { display: flex; gap: 0.9rem; align-items: flex-start; border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.25rem; }
.dc-verdict-box .ic { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.25rem; font-weight: 800; color: white; }
.dc-verdict-box h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.15rem; }
.dc-verdict-box p { font-size: 0.85rem; margin: 0; }
.dc-verdict-box.ok { background: #ecfdf5; color: #065f46; } .dc-verdict-box.ok .ic { background: #16a34a; }
.dc-verdict-box.ko { background: #fef2f2; color: #991b1b; } .dc-verdict-box.ko .ic { background: #dc2626; }
.dc-verdict-box.warn { background: #fffbeb; color: #92400e; } .dc-verdict-box.warn .ic { background: #d97706; }
.dc-att { border: 1px solid var(--gray-200); border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 0.75rem; background: var(--white); }
.dc-att-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.dc-att-head .num { font-weight: 700; color: var(--primary-mid); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; }
.dc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.5rem 1rem; font-size: 0.83rem; }
.dc-grid dt { color: var(--gray-500); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.dc-grid dd { color: var(--gray-900); font-weight: 600; margin: 0; word-break: break-all; }
.dc-acts { font-size: 0.8rem; color: var(--gray-700); margin-top: 0.5rem; }
.dc-docs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.6rem; }
.dc-foot { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; font-size: 0.75rem; color: var(--gray-500); }
.dc-foot-actions { display: flex; gap: 0.4rem; }
.dc-print { background: none; border: 1px solid var(--gray-300); border-radius: 8px; padding: 0.4rem 0.8rem; font-size: 0.78rem; cursor: pointer; color: var(--gray-700); }
.dc-print:hover { border-color: var(--primary-light); color: var(--primary-mid); }
.btn-xs { padding: 0.2rem 0.6rem; font-size: 0.7rem; }

/* ── Chargement : squelettes ─────────────────────────────── */

.skel { display: flex; flex-direction: column; gap: 0.55rem; padding: 0.4rem 0; }
.skel-row { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: skelShimmer 1.3s ease-in-out infinite; }
.skel-row.w60 { width: 60%; } .skel-row.w40 { width: 40%; } .skel-row.w80 { width: 80%; } .skel-row.tall { height: 22px; }
@keyframes skelShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Notifications (AB.toast) ────────────────────────────── */

.ab-toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 500; display: flex; flex-direction: column; gap: 0.5rem; max-width: min(420px, calc(100vw - 2rem)); }
.ab-toast { background: #111827; color: #fff; border-radius: 10px; padding: 0.7rem 0.9rem 0.7rem 1rem; font-size: 0.85rem; line-height: 1.4; box-shadow: 0 10px 30px rgba(0,0,0,0.3); display: flex; gap: 0.6rem; align-items: flex-start; animation: toastIn 0.25s ease-out; border-left: 4px solid #3b82f6; }
.ab-toast.ok { border-left-color: #16a34a; } .ab-toast.ko { border-left-color: #dc2626; } .ab-toast.warn { border-left-color: #d97706; }
.ab-toast.out { animation: toastOut 0.25s ease-in forwards; }
.ab-toast button { background: none; border: none; color: #9ca3af; font-size: 1.1rem; cursor: pointer; line-height: 1; margin-left: auto; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ── Apparition au défilement (vitrine) ──────────────────── */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dc-result.dc-in, .ab-toast, .skel-row { animation: none; }
}

/* ── Contrôle par document (PDF) et relecture on-chain ──── */

.dc-drop { border: 2px dashed var(--gray-300); border-radius: 12px; padding: 1.4rem 1rem; text-align: center; cursor: pointer; background: var(--gray-50); transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.dc-drop:hover, .dc-drop:focus { border-color: var(--primary-light); background: var(--white); outline: none; }
.dc-drop.over { border-color: var(--primary); background: #eff6ff; transform: scale(1.01); }
.dc-drop.busy { opacity: 0.6; pointer-events: none; }
.dc-drop-ic { font-size: 1.6rem; color: var(--primary-light); line-height: 1; margin-bottom: 0.3rem; }
.dc-drop-txt { font-size: 0.85rem; color: var(--gray-600); }
.dc-drop-txt strong { color: var(--gray-900); }
.dc-chain { font-size: 0.76rem; margin-top: 0.55rem; padding: 0.4rem 0.6rem; border-radius: 8px; }
.dc-chain.ok { background: #ecfdf5; color: #065f46; }
.dc-chain.ko { background: #fef2f2; color: #991b1b; }
.dc-chain.muted { background: var(--gray-100); color: var(--gray-600); }
.dc .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; }
