#workflow[data-mode="dossier"] {
  --wf-navy: #081c3c;
  --wf-ink: #15233a;
  --wf-muted: #596675;
  --wf-line: #dce1e7;
  --wf-gold: #dcaf6a;
  --wf-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --wf-sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 75vh;
  width: 100%;
  margin: 0;
  padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, #f9f6ef 0, #fff 55%, #f6f8fb 100%);
  color: var(--wf-ink);
  font: normal 1rem/1.6 var(--wf-sans);
  overflow-wrap: break-word;
}

.wf-shell {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}
.wf-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(24px, 3.5vw, 42px);
}
.wf-progress li {
  min-width: 0;
  color: var(--wf-muted);
  font-size: .79rem;
  line-height: 1.3;
}
.wf-progress li::before {
  content: "";
  display: block;
  height: 4px;
  margin-bottom: 9px;
  border-radius: 20px;
  background: #dce1e7;
}
.wf-progress .wf-done::before,
.wf-progress [aria-current="step"]::before { background: var(--wf-gold); }
.wf-progress [aria-current="step"] { font-weight: 750; color: var(--wf-navy); }
.wf-sheet {
  width: min(100%, 820px);
  margin-inline: auto;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--wf-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(7, 27, 52, .09);
}
.wf-heading { margin: 0 0 27px; }
.wf-heading h1,
.wf-card h2,
.wf-price {
  color: var(--wf-navy);
  font-family: var(--wf-serif);
  font-weight: 400;
  letter-spacing: -.045em;
}
.wf-heading h1 {
  margin: 0 0 18px;
  font-size: clamp(2.55rem, 5vw, 4.8rem);
  line-height: .98;
}
.wf-heading > .wf-lead {
  max-width: 65ch;
  margin: 0 0 1rem;
  font-size: 1.08rem;
  color: var(--wf-muted);
}
.wf-eyebrow,
.wf-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 19px;
  color: #795722;
  font: 700 .73rem/1.3 var(--wf-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.wf-eyebrow::before,
.wf-heading .eyebrow::before {
  content: "";
  flex: 0 0 32px;
  height: 1px;
  background: var(--wf-gold);
}
.wf-test,
.wf-provider,
.wf-notice {
  border-radius: 12px;
  padding: 12px 15px;
  font: normal .92rem/1.5 var(--wf-sans);
}
.wf-test {
  display: inline-block;
  margin: 0;
  color: #634c28;
  background: #fbf4e8;
}
.wf-card,
.wf-stage,
.wf-end-actions {
  min-width: 0;
  padding: 24px 0 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--wf-line);
}
.wf-card h2 {
  max-width: 36ch;
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.12;
}
.wf-card > .wf-test { margin: 14px 0; }
.wf-card h3 {
  margin: 0 0 6px;
  color: var(--wf-navy);
  font: 700 1.05rem/1.35 var(--wf-sans);
}
.wf-card p,
.wf-stage p { margin: 0 0 12px; }
.wf-card p:last-child,
.wf-heading > p:last-child { margin-bottom: 0; }
.wf-card ul { padding-inline-start: 1.3rem; }
.wf-stage { color: var(--wf-muted); }
.wf-stage h2 { font-size: 1.5rem; }
.wf-meta { color: var(--wf-muted); font: 500 .9rem/1.5 var(--wf-sans); }
.wf-quote { border-color: var(--wf-gold); }
.wf-card .wf-price { margin: 14px 0 6px; font-size: clamp(1.85rem, 4vw, 2.8rem); line-height: 1.12; }
.wf-total { color: var(--wf-muted); font: 600 1rem/1.5 var(--wf-sans); }

.wf-card > summary,
.wf-letter-detail > summary {
  width: fit-content;
  max-width: 100%;
  padding: 9px 0;
  color: var(--wf-navy);
  cursor: pointer;
  font-weight: 700;
}
.wf-card > summary:hover,
.wf-letter-detail > summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.wf-card[open] > summary,
.wf-letter-detail[open] > summary { margin-bottom: 8px; }
.wf-recovery { margin-block: 0 12px; padding-top: 0; border-top: 0; }
.wf-recovery > summary { font-size: .94rem; }
.wf-card + .wf-recovery { margin-block: 22px 0; padding-top: 12px; border-top: 1px solid var(--wf-line); }
#reprendre { scroll-margin-block-start: 6rem; }
.wf-next { margin-block: 16px 0; color: var(--wf-muted); }
.wf-estimate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-block: 16px 0; }
.wf-estimate-actions .wf-primary { margin: 0; }
.wf-estimate-actions .wf-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.wf-secondary.wf-revise { padding: 6px 0; margin: 2px 0 0; background: transparent; border: 0; min-height: 44px; width: auto; font-size: .9rem; text-decoration: underline; text-underline-offset: .2em; }
.wf-letter-detail { margin-top: 16px; }
.wf-code,
.wf-letter {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 14px 16px;
  border: 1px solid var(--wf-line);
  border-radius: 12px;
  background: #f7f8fa;
}
.wf-code { color: var(--wf-navy); font: 600 1rem/1.6 ui-monospace, Menlo, monospace; user-select: all; }
.wf-letter { margin: 0; font: normal .95rem/1.65 var(--wf-sans); }
.wf-values {
  display: grid;
  grid-template-columns: minmax(8rem, .8fr) minmax(0, 1.5fr);
  gap: 6px 16px;
  margin: 14px 0;
}
.wf-values dt { font-weight: 700; }
.wf-values dd { margin: 0; overflow-wrap: anywhere; }
.wf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 18px;
  margin: 22px 0 16px;
}
.wf-field {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 7px;
  margin: 14px 0;
}
.wf-grid > .wf-field { margin: 0; }
.wf-field[hidden] { display: none; }
.wf-field > span { color: var(--wf-navy); font-weight: 700; }
.wf-field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #939da9;
  border-radius: 12px;
  background: #fff;
  color: var(--wf-ink);
  font: inherit;
  line-height: 1.35;
}
.wf-field textarea { min-height: 110px; resize: vertical; }
.wf-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 13px 0;
  color: var(--wf-ink);
}
.wf-check input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 3px 0 0;
  accent-color: var(--wf-navy);
}
.wf-primary,
.wf-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  max-width: 100%;
  margin: 12px 8px 0 0;
  padding: 12px 24px;
  border: 1px solid var(--wf-gold);
  border-radius: 999px;
  color: var(--wf-navy);
  background: var(--wf-gold);
  font: 750 .98rem/1.3 var(--wf-sans);
  text-align: center;
  cursor: pointer;
}
.wf-secondary { border-color: var(--wf-navy); background: white; }
.wf-primary:hover:enabled { background: #e7bd77; }
.wf-secondary:hover:enabled { background: #f5f7fa; }
.wf-primary:disabled,
.wf-secondary:disabled { opacity: .6; cursor: default; }
#workflow[data-mode="dossier"] :focus-visible { outline: 3px solid #8a621f; outline-offset: 3px; }
.wf-link {
  color: var(--wf-navy);
  text-decoration: underline;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
.wf-link:hover { text-decoration-thickness: 2px; }
.wf-file { margin-top: 18px; border-top: 1px solid var(--wf-line); padding-top: 18px; }
.wf-file p { margin: 5px 0 8px; }
.wf-file-message:empty { display: none; }
.wf-upload,
.wf-doc,
.wf-proof-links,
.wf-end-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.wf-upload { align-items: end; }
.wf-upload [hidden] { display: none; }
.wf-upload > .wf-field { flex: 1 1 16rem; margin: 0; }
.wf-upload :is(.wf-primary, .wf-secondary),
.wf-end-actions :is(.wf-primary, .wf-secondary) { margin: 0; }
.wf-upload .wf-field input { padding: 6px; }
.wf-file input::file-selector-button {
  min-height: 36px;
  margin-right: 7px;
  padding: 6px 12px;
  border: 0;
  border-radius: 7px;
  background: #edf0f4;
  color: var(--wf-navy);
  font: 650 .86rem/1.3 var(--wf-sans);
  cursor: pointer;
}
.wf-doc { justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--wf-line); }
.wf-proof-links { gap: 8px 22px; }
.wf-good { font-weight: 650; color: #1e6a3c; }
.wf-provider,
.wf-notice { background: #eef4fb; color: #29415f; }
.wf-provider { margin-block: 18px; }
.wf-notice {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto 18px;
  border: 1px solid #bfccd9;
}
.wf-notice:empty { display: none; }
.wf-notice[data-kind="error"] { background: #fff0ee; color: #8b2b20; border-color: #e7ada7; }
.wf-notice[data-kind="success"] { background: #eef8f1; color: #1e6a3c; border-color: #accab5; }
.wf-assist {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 24px auto 0;
  color: var(--wf-muted);
  text-align: center;
}
.wf-assist p { margin: 0; }
.wf-assist .wf-link { padding-block: 7px; font-weight: 650; }

@media (max-width: 640px) {
  .wf-shell { width: calc(100% - 24px); }
  .wf-progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
    margin-bottom: 20px;
  }
  .wf-progress li { font-size: .78rem; }
  .wf-progress li::before { margin-bottom: 4px; }
  .wf-sheet { padding: 24px 18px; border-radius: 20px; }
  .wf-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .wf-card, .wf-stage, .wf-end-actions { margin-top: 19px; padding-top: 19px; }
  .wf-recovery { margin: 0 0 8px; padding: 0; }
  .wf-primary, .wf-secondary { width: 100%; margin-right: 0; }
  .wf-end-actions { align-items: stretch; flex-direction: column; }
  .wf-assist { margin-top: 18px; }
  .wf-notice { width: calc(100% - 24px); }
  .wf-values { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .wf-values dd { margin-bottom: 8px; }
}
