/* Hallmark · v2.0.0 · theme: ink (by request) · ink: paper · genre: editorial · redesign: full · shape: Workbench · hero: Settled · nav: bar · footer: colophon · signature: six-axis diagnostic radar */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V4 · weakest: S, lead with FlowScore’s own six-axis report rather than a generic illustration */
/* Hallmark · waive 22 · ink and greys at zero chroma · the Ink theme uses monochrome paper and type */
/* Hallmark · waive 79 · /admin is a tool screen · its empty state needs no marketing hero */
/* Hallmark · reworded "Où se perd le temps dans votre entreprise ?" to "Pré-audit de votre entreprise" · name the task directly */
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fdfdfa;
  --well: #f5f5f1;
  --line: #deded7;
  --control-line: #85857f;
  --ink: #141414;
  --body-ink: #303030;
  --muted: #555550;
  --accent: #006c69;
  --accent-soft: #d7efea;
  --accent-ink: #084542;
  --radar-fill: #006c692b;
  --error: #8a3229;
  --score-low: #a42520;
  --score-mid: #925300;
  --score-high: #16683d;
  --font-body: "Epilogue", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  --radius-control: 10px;
  --radius-well: 12px;
  --radius-pill: 999px;
  --gutter: clamp(18px, 5vw, 64px);
  --column-gap: clamp(24px, 5vw, 64px);
  font-family: var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-synthesis: none; line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { min-width: 0; overflow-wrap: break-word; font-family: var(--font-display); line-height: 1.1; font-weight: 650; }
h1, h2 { text-wrap: balance; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--accent); }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#question-title:focus, #result-title:focus { outline: none; }
::selection { background: var(--accent-soft); color: var(--accent-ink); }

.shell { width: min(1120px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--ink); }
.top .shell, .foot .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 12px;
}
.wordmark {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.05em;
  text-decoration: none;
  white-space: nowrap;
}
.mark { display: grid; width: 28px; height: 28px; place-items: center; color: var(--paper); background: var(--ink); border-radius: 7px; }
.mark svg { width: 19px; height: 19px; }
.navlinks, .foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.navlinks a, .foot nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
.top .navlinks { margin-inline-start: auto; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}
.button.small { min-height: 44px; padding-inline: 12px; font-size: 14px; white-space: nowrap; }
a.button { text-decoration: none; }
.button.outline { color: var(--ink); border-color: var(--control-line); background: var(--paper); }
.button:hover:not(:disabled) { background: var(--body-ink); }
.button.outline:hover:not(:disabled) { background: var(--well); border-color: var(--ink); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { background: var(--well); color: var(--muted); border-color: var(--line); }
.button svg, .iconbox svg { width: 19px; height: 19px; flex: none; }
.text-button { min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: .22em; }
a.text-button { display: inline-flex; align-items: center; }
.text-button:hover, .navlinks a:hover, .foot nav a:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: var(--column-gap);
  align-items: center;
  padding-block: clamp(56px, 7vw, 104px) clamp(56px, 5vw, 72px);
}
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.65rem); line-height: 1.04; letter-spacing: -.045em; }
.hero h1 span { display: block; }
.hero .lede { max-width: 36ch; margin-top: 20px; color: var(--body-ink); font-size: 18px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.hero .actions { margin-top: 28px; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}
.meta li { padding-inline-end: 12px; border-inline-end: 1px solid var(--line); }
.meta li:last-child { padding-inline-end: 0; border: 0; }
.preview {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 28px);
  border-radius: var(--radius-well);
  background: var(--well);
}
.preview-top, .preview-score { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.preview-top { padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.preview-top h2 { font-size: 17px; }
.example { padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--muted); font-size: 12px; }
.radar { display: block; width: 100%; height: auto; }
.preview .radar { max-width: 450px; margin: 12px auto; }
.radar .ring, .radar .spoke { fill: none; stroke: var(--control-line); stroke-opacity: .55; stroke-width: 1; }
.radar text { fill: var(--body-ink); font-size: 13.5px; font-weight: 600; }
.radar .shape { fill: var(--radar-fill); stroke: var(--accent); stroke-width: 2; }
.radar polyline.shape { fill: none; }
.radar .dot { fill: var(--accent); stroke: var(--paper); stroke-width: 1.5; }
.preview-score { padding-top: 16px; border-top: 1px solid var(--line); }
.preview-score small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.preview-score strong {
  display: block;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.055em;
  line-height: 1;
}
.preview-score strong span, .preview-key { color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: normal; }

.axes-section, .callout .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: var(--column-gap);
  align-items: start;
  padding-block: clamp(44px, 5vw, 64px);
}
.axes-section { border-top: 1px solid var(--ink); }
.section-head h2, .callout h2 { max-width: 17ch; font-size: clamp(1.95rem, 3.3vw, 2.75rem); letter-spacing: -.03em; }
.section-head p { max-width: 45ch; margin-top: 16px; }
.section-head p, .axis-list p, .callout p, .panel p { color: var(--body-ink); }
.axis-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--ink); }
.axis-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 4px 20px;
  align-items: baseline;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.axis-list h3 { font-size: 17px; line-height: 1.35; }
.axis-list p { font-size: 15px; }
.callout { background: var(--well); border-top: 1px solid var(--line); }
.callout .button { margin-top: 16px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); }
.foot .shell { padding-block: 20px; }
.foot .wordmark { font-size: 18px; color: var(--ink); }
.foot .mark { width: 25px; height: 25px; }

.quiz {
  width: min(720px, calc(100% - var(--gutter) * 2));
  min-height: 65vh;
  margin-inline: auto;
  padding-block: clamp(32px, 6vw, 72px);
}
.chapter-progress { margin-bottom: 24px; }
.chapters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}
.chapters li {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  min-height: 28px;
  padding-top: 4px;
  border-top: 3px solid var(--line);
  color: var(--muted);
}
.chapters li[aria-current] { border-color: var(--ink); color: var(--ink); font-weight: 700; }
.chapters .chapter-done { border-color: var(--accent); color: var(--accent-ink); }
.chapter-name { overflow-wrap: anywhere; }
.chapters svg { width: 14px; height: 14px; flex: none; }
.chapter-summary { display: none; font-size: 12px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: clip; clip-path: inset(50%); white-space: nowrap; }
.progress-wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; font-size: 14px; margin-bottom: 12px; }
.progress-wrap span:first-child { font-weight: 600; }
.progress-wrap span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.score-meter { background: var(--line); border-radius: var(--radius-pill); overflow: clip; }
.score-meter span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.quiz h1, .report h1, .admin h1 { font-size: 2.5rem; letter-spacing: -.03em; margin-bottom: 12px; }
.subtitle { color: var(--muted); margin: 0 0 24px; }
.options, .hours-options { border: 0; padding: 0; margin: 0; min-width: 0; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quiz-instruction { margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--control-line);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  text-align: start;
  line-height: 1.35;
}
.option:not(:disabled):hover { background: var(--well); border-color: var(--ink); }
.option.saved, .option.pending { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.option-label { flex: 1; min-width: 0; overflow-wrap: break-word; }
.option > svg { width: 16px; height: 16px; flex: none; }
.option.neutral { min-height: 44px; font-size: 14px; }
.iconbox { color: var(--muted); }
.consent input { width: 18px; height: 18px; accent-color: var(--accent); }
.step-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.quiet-button { padding: 0; border: 0; background: none; color: var(--ink); }
#step-status:not(:empty) { margin: 0 0 12px; }
#step-status:empty { margin: 0; }
.number-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.field { display: grid; gap: 8px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.field input, .number-wrap input {
  min-width: 0;
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--control-line);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  font-size: 16px;
}
.number-wrap input { width: 140px; }
.access { max-width: 520px; }
.access form, .admin-access form { max-width: 400px; }
.access .status:empty, .admin-access .status:empty { margin: 0; }
.access .text-button { margin-top: 8px; }

.report, .admin { padding-block: clamp(32px, 5vw, 64px); min-height: 65vh; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px 20px; margin-bottom: 24px; }
.report-head .subtitle { margin: 0; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.panel { padding: clamp(16px, 2.5vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-well); }
.panel h2 { font-size: 1.375rem; letter-spacing: -.025em; margin-bottom: 12px; }
.report-grid:first-of-type .panel { background: var(--well); }
.report .radar { max-width: 430px; margin: auto; }
.score-hero { font-size: 2.75rem; letter-spacing: -.045em; line-height: 1; font-weight: 700; margin: 8px 0 16px; font-variant-numeric: tabular-nums; }
.score-hero span:not(.score-value) { font-size: 1rem; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.score-low { color: var(--score-low); }
.score-mid { color: var(--score-mid); }
.score-high { color: var(--score-high); }
.panel .score-coverage { color: var(--muted); font-size: 14px; }
.score-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 14px; margin: 12px 0 4px; }
.score-row strong { text-align: end; font-variant-numeric: tabular-nums; }
.score-meter { display: block; height: 4px; }
.report ul { margin: 8px 0 0; padding-left: 20px; }
.report .band { margin-bottom: 12px; }
.reco { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 8px 16px; border-top: 1px solid var(--line); padding-block: 12px; }
.reco h3 { font-size: 16px; margin-bottom: 4px; }
.reco:last-child { padding-bottom: 0; }
.tag { display: inline-block; width: fit-content; height: max-content; padding: 4px 8px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; background: var(--well); color: var(--body-ink); }
.tag.high { background: var(--accent-soft); color: var(--accent-ink); }
details summary { font-weight: 600; }
details p { margin-top: 8px; }
.consent { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 12px 0; line-height: 1.4; }
.consent input { flex: 0 0 18px; margin: 4px 0 0; }
#share-form { margin-top: 8px; }
#share-form .button { margin-top: 12px; }
.admin-access { margin-top: 24px; }
.admin-access ul { padding-inline-start: 20px; overflow-wrap: anywhere; }
.admin-access li small { color: var(--muted); margin-inline-start: 8px; }
.status { margin-top: 12px; color: var(--accent-ink); font-weight: 600; }
.status.error { color: var(--error); }
.admin-list { display: grid; gap: 12px; margin-bottom: 16px; }
.admin-record { overflow-wrap: anywhere; }
.admin-record time { display: block; color: var(--muted); font-size: 13px; }
.admin-record > div { margin-top: 12px; }
.skip { position: absolute; inset: 8px auto auto 8px; translate: 0 -160%; padding: 12px; background: var(--paper); z-index: 5; }
.skip:focus { translate: 0 0; }

@media (max-width: 800px) {
  .hero, .axes-section, .callout .shell { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero { padding-block: 44px; }
  .preview { width: min(100%, 560px); }
  .hero h1 { font-size: clamp(2.5rem, 8vw, 3.85rem); }
  .section-head h2, .callout h2 { max-width: 23ch; }
  .section-head p { max-width: 45ch; margin-top: 12px; }
  .report-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 550px) {
  .chapters li { min-height: 16px; }
  .chapter-name { position: absolute; width: 1px; height: 1px; overflow: clip; clip-path: inset(50%); white-space: nowrap; }
  .chapter-summary { display: block; }
  .top .shell { column-gap: 8px; }
  .top .navlinks { display: none; }
  .wordmark { font-size: 20px; }
  .top .button.small { padding-inline: 8px; font-size: 13px; }
  .hero .lede { font-size: 16px; margin-top: 16px; }
  .hero .actions { margin-top: 20px; }
  .meta { margin-top: 12px; gap: 4px 8px; }
  .meta li { padding-inline-end: 0; border: 0; }
  .axis-list li, .options, .reco { grid-template-columns: minmax(0, 1fr); }
  .options:has(.neutral + .neutral) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .options:has(.neutral + .neutral) .option:not(.neutral) { grid-column: 1 / -1; }
  .options .option.neutral { gap: 4px; padding-inline: 8px; }
  .quiz h1, .report h1, .admin h1 { font-size: 2rem; }
  .option { min-height: 56px; }
  .foot nav { column-gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .button:active:not(:disabled), .skip:focus { transform: none; }
}
@media print {
  body { background: none; color: var(--ink); }
  .shell { width: 100%; }
  .top, .foot, .report .actions, .no-print, .skip { display: none !important; }
  .report { padding: 0; }
  .report-head { display: block; margin-bottom: 6mm; }
  .report h1 { font-size: 25pt; }
  .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3mm; }
  .panel { padding: 3mm; break-inside: avoid; }
  .report-grid:first-of-type .panel { background: none; }
  .reco { break-inside: avoid; }
  .score-value, .score-meter, .radar, .tag { print-color-adjust: exact; }
}
