/* ═══════════════════════════════════════════════════════════
   TARA Institut — Documents officiels & vérification
   Un seul parti pris : le bordereau sur papier sécurisé (filet or, guilloché),
   tamponné par le registre. Le reste reste sobre.
═══════════════════════════════════════════════════════════ */

:root {
  --doc-ink:    #14205A;
  --doc-paper:  #FDFCF7;
  --doc-gold:   #B08A3E;
  --doc-ok:     #0E7A4F;
  --doc-bad:    #C21F1F;
  --doc-warn:   #B45309;
  --doc-night:  #0A1131;
}

/* ─────────────────────────────────────────────
   AVERTISSEMENT « faux documents »
───────────────────────────────────────────── */
.docs-warning {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 62ch;
  padding: var(--space-4) var(--space-5);
  border: 1px solid rgba(180, 83, 9, 0.28);
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.07);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.docs-warning svg { flex-shrink: 0; margin-top: 1px; color: var(--doc-warn); }
.docs-warning b { color: var(--text-primary); }

.docs-warning a {
  color: var(--color-navy);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-theme="dark"] .docs-warning svg { color: #FBBF24; }
[data-theme="dark"] .docs-warning a   { color: #A5B4FC; }

/* ─────────────────────────────────────────────
   BORDEREAU (papier sécurisé)
───────────────────────────────────────────── */
.vslip {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  border-radius: 6px;
  color: var(--doc-ink);
  background:
    url('../../images/guilloche-navy.svg') right -140px top -140px / 340px no-repeat,
    var(--doc-paper);
  box-shadow:
    inset 0 0 0 7px var(--doc-paper),
    inset 0 0 0 8px rgba(176, 138, 62, 0.75),
    0 40px 90px rgba(3, 7, 30, 0.45);
}

.vslip::before { /* le motif reste discret sous le texte */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(200deg, rgba(253, 252, 247, 0.55), var(--doc-paper) 46%);
  pointer-events: none;
}

.vslip > * { position: relative; }

/* Formulaire */
.vform__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.02em;
  color: var(--doc-ink);
}

.vform__label {
  display: block;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  font-size: 0.86rem;
  font-weight: var(--weight-semibold);
  color: #3B4470;
}

.vform__input {
  width: 100%;
  min-height: 58px;
  padding: 0 var(--space-4);
  border: 1.5px solid rgba(20, 32, 90, 0.28);
  border-radius: 6px;
  background: #fff;
  color: var(--doc-ink);
  font: inherit;
  font-size: 1.3rem;
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.vform__input::placeholder { color: #A3A9C2; font-weight: var(--weight-medium); }

.vform__input:focus {
  outline: none;
  border-color: var(--doc-ink);
  box-shadow: 0 0 0 4px rgba(20, 32, 90, 0.12);
}

.vform__hint {
  margin-top: var(--space-2);
  font-size: 0.8rem;
  color: #5E6687;
}

.vform__submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-5);
}

.vform__or {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-block: var(--space-5);
  color: #5E6687;
  font-size: 0.82rem;
}

.vform__or::before,
.vform__or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(176, 138, 62, 0.45);
}

.vscan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.vscan__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  border: 1px solid rgba(20, 32, 90, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--doc-ink);
  font-size: 0.88rem;
  font-weight: var(--weight-semibold);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}

.vscan__btn:hover { border-color: var(--doc-ink); background: #fff; }
.vscan__btn svg { color: var(--color-red); }

.vscan__btn:focus-visible,
.vscan__btn:focus-within {
  outline: 2px solid var(--doc-ink);
  outline-offset: 2px;
}

.vscan__msg:not(:empty) {
  margin-top: var(--space-3);
  font-size: 0.86rem;
  color: #3B4470;
}

.vcamera {
  position: relative;
  margin-top: var(--space-4);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #000;
}

.vcamera[hidden] { display: none; }
.vcamera video { width: 100%; height: 100%; object-fit: cover; }

.vcamera__frame {
  position: absolute;
  inset: 16% 24%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.38);
}

.vcamera__stop {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
}

/* ─────────────────────────────────────────────
   HERO DE LA PAGE
───────────────────────────────────────────── */
.vhero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6.5rem);
  color: #fff;
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(35, 51, 160, 0.45), transparent 70%),
    linear-gradient(160deg, #111A5E 0%, var(--doc-night) 62%, #070B22 100%);
  scroll-margin-top: var(--navbar-height);
}

.vhero__rosette,
.vcommit__rosette {
  position: absolute;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  background: url('../../images/guilloche-light.svg') center / contain no-repeat;
  opacity: 0.11;
  pointer-events: none;
}

.vhero__rosette { right: -260px; top: 50%; transform: translateY(-50%); }

.vhero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 450px);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.vhero--result .vhero__grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 400px);
  align-items: start;
}

.vhero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.85rem;
  font-weight: var(--weight-medium);
}

.vhero__badge svg { color: #E9C77B; }

.vhero__title {
  margin-top: var(--space-6);
  max-width: 15ch;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  font-weight: var(--weight-extrabold);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}

.vhero__text {
  margin-top: var(--space-6);
  max-width: 52ch;
  color: rgba(241, 245, 249, 0.76);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
}

.vhero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-8);
  color: rgba(241, 245, 249, 0.88);
  font-size: 0.92rem;
}

.vhero__facts li { display: inline-flex; align-items: center; gap: var(--space-2); }
.vhero__facts svg { color: #E9C77B; }

/* Résultat : le bordereau tamponné est le seul « papier » ; le formulaire passe au second plan */
.vhero--result .vslip--form {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.vhero--result .vslip--form::before { display: none; }
.vhero--result .vform__title { color: #fff; font-size: 1.15rem; }

.vhero--result .vform__label,
.vhero--result .vform__hint,
.vhero--result .vform__or,
.vhero--result .vscan__msg { color: rgba(241, 245, 249, 0.72); }

.vhero--result .vform__or::before,
.vhero--result .vform__or::after { background: rgba(255, 255, 255, 0.18); }

.vhero--result .vscan__btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.vhero--result .vscan__btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.45); }
.vhero--result .vscan__btn svg { color: #FF8A8A; }

.vslip__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(176, 138, 62, 0.45);
}

.vslip__head img { width: 40px; height: 40px; }

.vslip__org {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: 1rem;
}

.vslip__meta { font-size: 0.82rem; color: #5E6687; }

.vslip__status {
  display: flex;
  align-items: center;
  gap: var(--space-5) var(--space-8);
  margin-top: var(--space-6);
}

.vslip__status > div { flex: 1; min-width: 0; }

.vslip__stamp,
.vslip__icon { order: 2; flex-shrink: 0; }

.vslip__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--tone);
  hyphens: auto; /* « Demonstrationsmuster » ne passe plus sous le tampon */
  overflow-wrap: break-word;
}

.vslip__text {
  margin-top: var(--space-3);
  max-width: 54ch;
  color: #3B4470;
  line-height: 1.65;
}

.vslip--ok       { --tone: var(--doc-ok); }
.vslip--revoked  { --tone: var(--doc-bad); }
.vslip--specimen { --tone: var(--doc-ink); }
.vslip--unknown  { --tone: var(--doc-warn); }

.doc-stamp {
  width: 190px;
  color: var(--tone);
  font-family: var(--font-heading);
  transform: rotate(-8deg);
  mix-blend-mode: multiply;
  animation: doc-stamp-in 520ms cubic-bezier(0.2, 0.9, 0.25, 1.25) 250ms both;
}

@keyframes doc-stamp-in {
  from { opacity: 0; transform: rotate(-16deg) scale(1.6); }
  to   { opacity: 0.94; transform: rotate(-8deg) scale(1); }
}

.vslip__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--tone);
  border-radius: 50%;
  color: var(--tone);
}

.vslip__alert {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-4);
  border-radius: 6px;
  background: rgba(194, 31, 31, 0.07);
  color: #5A1414;
  font-size: 0.9rem;
  line-height: 1.55;
}

.vslip__alert svg { flex-shrink: 0; color: var(--doc-bad); margin-top: 1px; }

.vslip__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(176, 138, 62, 0.45);
}

.vslip__details dt { font-size: 0.8rem; color: #5E6687; }

.vslip__details dd {
  margin-top: 3px;
  font-weight: var(--weight-semibold);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.vslip__holder,
.vslip__wide { grid-column: 1 / -1; }

.vslip__holder dd {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.15;
}

.vslip__num { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

.vslip__actions:not(:empty) {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* ─────────────────────────────────────────────
   ÉTAPES
───────────────────────────────────────────── */
.vsection__title {
  max-width: 24ch;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: var(--weight-extrabold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.vsteps { padding-block: clamp(3.5rem, 7vw, 6rem); }

.vsteps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.vsteps__list li { position: relative; }

.vsteps__list li:not(:last-child)::after { /* fil qui relie les étapes */
  content: '';
  position: absolute;
  top: 22px;
  left: 60px;
  right: calc(var(--space-8) * -1 + 12px);
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px);
}

.vsteps__num {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-navy);
  border-radius: 50%;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: var(--weight-bold);
}

[data-theme="dark"] .vsteps__num { border-color: #A5B4FC; color: #A5B4FC; }

.vsteps__list h3 {
  margin-top: var(--space-5);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.vsteps__list p {
  margin-top: var(--space-2);
  max-width: 34ch;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   VISIONNEUSE DES DOCUMENTS
───────────────────────────────────────────── */
.vdocs {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--bg-surface-2);
  scroll-margin-top: var(--navbar-height);
}

.vdocs__head p {
  margin-top: var(--space-4);
  max-width: 60ch;
  color: var(--text-secondary);
  line-height: 1.7;
}

.dviewer { margin-top: clamp(2rem, 4vw, 3rem); }

.dviewer__tabs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  border-bottom: 1px solid var(--border-mid);
  scrollbar-width: none;
}

.dviewer__tab {
  flex-shrink: 0;
  display: grid;
  gap: 2px;
  padding: var(--space-3) var(--space-5) var(--space-4);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  color: var(--text-secondary);
  text-align: left;
  transition: color var(--duration-fast), border-color var(--duration-fast);
}

.dviewer__tab:hover { color: var(--text-primary); }

.dviewer__tab[aria-selected="true"] {
  color: var(--text-primary);
  border-bottom-color: var(--color-red);
}

.dviewer__tab:focus-visible { outline: 2px solid var(--color-navy); outline-offset: -2px; border-radius: 4px; }

.dviewer__tab-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: var(--weight-bold);
}

.dviewer__tab-sub { font-size: 0.8rem; font-style: italic; color: var(--text-secondary); }

.dviewer__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(2rem, 4vw, 3rem);
}

.dviewer__panel[hidden] { display: none; }
.dviewer__panel:focus-visible { outline: none; }

.dviewer__stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background:
    url('../../images/guilloche-navy.svg') center / 115% no-repeat,
    linear-gradient(180deg, rgba(26, 37, 121, 0.05), rgba(26, 37, 121, 0.02));
}

[data-theme="dark"] .dviewer__stage {
  background:
    url('../../images/guilloche-light.svg') center / 115% no-repeat,
    rgba(255, 255, 255, 0.03);
}

.dsheet {
  position: relative;
  width: min(100%, 470px);
}

.dsheet[hidden] { display: none; }

.dsheet__zoom {
  display: block;
  width: 100%;
  cursor: zoom-in;
  border-radius: 2px;
}

.dsheet__zoom img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 30px 60px rgba(13, 27, 62, 0.22), 0 2px 6px rgba(13, 27, 62, 0.12);
}

.dsheet__zoom:focus-visible { outline: 3px solid var(--color-red); outline-offset: 4px; }

.dsheet__pin {
  position: absolute;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.74rem;
  font-weight: var(--weight-bold);
  box-shadow: 0 0 0 2.5px #fff, 0 0 0 4px var(--doc-gold), 0 6px 14px rgba(13, 27, 62, 0.3);
  pointer-events: none;
}

.dviewer__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.dviewer__text {
  margin-top: var(--space-3);
  color: var(--text-secondary);
  line-height: 1.65;
}

.dviewer__variants {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: var(--space-5);
  padding: 4px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
}

.dviewer__variant {
  padding: 7px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: var(--weight-semibold);
  transition: background var(--duration-fast), color var(--duration-fast);
}

.dviewer__variant:hover { color: var(--text-primary); }

.dviewer__variant[aria-pressed="true"] {
  background: var(--color-navy);
  color: #fff;
}

.dviewer__variant:focus-visible { outline: 2px solid var(--color-red); outline-offset: 2px; }

.dviewer__pins {
  display: grid;
  gap: var(--space-4);
  margin-block: var(--space-6);
}

.dviewer__pins li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.dviewer__pin-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: var(--weight-bold);
  box-shadow: 0 0 0 2px var(--doc-gold);
}

.dviewer__pins b {
  display: block;
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
}

.dviewer__pins li > span:last-child {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

[data-theme="dark"] .dsheet__pin,
[data-theme="dark"] .dviewer__pin-num,
[data-theme="dark"] .dviewer__variant[aria-pressed="true"] { background: #2333A0; }

/* Agrandissement */
.dzoom {
  width: min(92vw, 860px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #fff;
  overflow: auto;
}

.dzoom::backdrop { background: rgba(5, 9, 28, 0.82); }
.dzoom img { display: block; width: 100%; height: auto; }

.dzoom__close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px -54px 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 17, 49, 0.85);
  color: #fff;
  z-index: 1;
}

/* ─────────────────────────────────────────────
   ENGAGEMENT
───────────────────────────────────────────── */
.vcommit {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 7rem);
  background: linear-gradient(160deg, #111A5E, var(--doc-night));
  color: #fff;
}

.vcommit__rosette { left: -320px; bottom: -420px; }

.vcommit__inner { position: relative; }

.vcommit__title {
  max-width: 20ch;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: var(--weight-extrabold);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.vcommit__text {
  margin-top: var(--space-5);
  max-width: 58ch;
  color: rgba(241, 245, 249, 0.76);
  font-size: 1.05rem;
  line-height: 1.7;
}

.vcommit .docs-warning {
  margin-top: var(--space-8);
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(251, 191, 36, 0.35);
  color: rgba(241, 245, 249, 0.82);
}

.vcommit .docs-warning svg { color: #FBBF24; }
.vcommit .docs-warning b { color: #fff; }
.vcommit .docs-warning a { color: #fff; }

.vcommit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

/* ─────────────────────────────────────────────
   BANDEAU ACCUEIL
───────────────────────────────────────────── */
.docs-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--bg-base);
}

.docs-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.docs-band__title {
  max-width: 16ch;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: var(--weight-black);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  text-wrap: balance;
}

.docs-band__text {
  margin-top: var(--space-5);
  max-width: 50ch;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.docs-band__facts {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.docs-band__facts li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-primary);
  font-weight: var(--weight-medium);
}

.docs-band__facts svg { flex-shrink: 0; color: var(--color-navy); }
[data-theme="dark"] .docs-band__facts svg { color: #A5B4FC; }

.docs-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block: var(--space-8) var(--space-6);
}

.docs-band__visual {
  position: relative;
  aspect-ratio: 1 / 1.02;
}

.docs-band__rosette {
  position: absolute;
  inset: -6%;
  background: url('../../images/guilloche-navy.svg') center / contain no-repeat;
  opacity: 0.16;
}

[data-theme="dark"] .docs-band__rosette { background-image: url('../../images/guilloche-light.svg'); opacity: 0.1; }

.docs-band__sheet {
  position: absolute;
  left: 8%;
  top: 4%;
  width: 62%;
  height: auto;
  border-radius: 2px;
  transform: rotate(-3deg);
  box-shadow: 0 36px 70px rgba(13, 27, 62, 0.24), 0 2px 6px rgba(13, 27, 62, 0.12);
}

.docs-phone {
  position: absolute;
  right: 4%;
  bottom: 3%;
  width: 36%;
  aspect-ratio: 9 / 18.5;
  padding: 3.2%;
  border-radius: 34px;
  background: linear-gradient(160deg, #1D2440, #05081A);
  box-shadow: 0 30px 60px rgba(5, 8, 26, 0.4), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  transform: rotate(4deg);
}

.docs-phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: #11151F;
}

/* Le vrai QR code du spécimen, recadré dans le viseur */
.docs-phone__qr {
  position: absolute;
  left: 18%;
  top: 26%;
  width: 64%;
  aspect-ratio: 1;
  background-size: 800% auto;
  background-position: 81.5% 88.6%;
  border-radius: 4px;
}

.docs-phone__frame {
  position: absolute;
  left: 12%;
  top: calc(26% - 6%);
  width: 76%;
  aspect-ratio: 1;
  background:
    linear-gradient(#fff, #fff) left top / 22% 3px, linear-gradient(#fff, #fff) left top / 3px 22%,
    linear-gradient(#fff, #fff) right top / 22% 3px, linear-gradient(#fff, #fff) right top / 3px 22%,
    linear-gradient(#fff, #fff) left bottom / 22% 3px, linear-gradient(#fff, #fff) left bottom / 3px 22%,
    linear-gradient(#fff, #fff) right bottom / 22% 3px, linear-gradient(#fff, #fff) right bottom / 3px 22%;
  background-repeat: no-repeat;
}

.docs-phone__bar {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 7%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 6px;
  border-radius: 12px;
  background: #fff;
  color: var(--doc-ink);
  font-size: clamp(0.6rem, 0.9vw, 0.7rem);
  font-weight: var(--weight-bold);
  line-height: 1.25;
  text-align: center;
}

.docs-phone__bar svg { color: var(--doc-ok); flex-shrink: 0; }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1020px) {
  .vhero__grid,
  .vhero--result .vhero__grid,
  .dviewer__panel,
  .docs-band__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vhero__grid > .vslip--form { max-width: 560px; }
  .vhero__title { max-width: 18ch; }
  .docs-band__visual { max-width: 560px; width: 100%; margin-inline: auto; }
}

@media (max-width: 760px) {
  .vsteps__list { grid-template-columns: 1fr; gap: var(--space-6); }
  .vsteps__list li { padding-left: 64px; }
  .vsteps__num { position: absolute; left: 0; top: 0; }
  .vsteps__list h3 { margin-top: 8px; }
  .vsteps__list li:not(:last-child)::after {
    top: 52px;
    bottom: calc(var(--space-6) * -1 + 6px);
    left: 22px;
    right: auto;
    width: 1px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--border-strong) 0 6px, transparent 6px 12px);
  }
}

@media (max-width: 560px) {
  .dsheet__pin { width: 20px; height: 20px; font-size: 0.66rem; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--doc-gold), 0 4px 10px rgba(13, 27, 62, 0.3); }
  .vslip__status { flex-direction: column; align-items: flex-start; }
  .vslip__stamp, .vslip__icon { order: 0; }
  .doc-stamp { width: 160px; }
  .vslip__details { grid-template-columns: 1fr; }
  .vscan { grid-template-columns: 1fr; }
  .vscan__btn { flex-direction: row; justify-content: center; }
  .vhero__facts { gap: var(--space-2) var(--space-5); }
}

@media (prefers-reduced-motion: reduce) {
  .doc-stamp { animation: none; opacity: 0.94; }
}
