/* ============================================================
   BoardScan — Feuille de style
   Conforme au WeBoard Design System v1.0 (juin 2026)
   Teal unique #00848B, Source Sans 3, grille 4 px,
   radius 6 px (12 max), pas de dégradés.
   ============================================================ */

:root {
  --teal: #00848B;
  --teal-hover: #00686E;
  --teal-press: #004B50;
  --teal-tint: #E6F4F5;
  --black: #0A0A0A;
  --charcoal: #1F2326;
  --grey: #6B7176;
  --grey-300: #CDD1D3;
  --grey-50: #F7F8F8;
  --white: #FFFFFF;
  --moss: #3D7A4D;
  --gold: #B8893A;
  --burgundy: #8A2E2E;
  --shadow-1: 0 1px 2px rgba(10, 10, 10, 0.06);
  --shadow-2: 0 2px 8px rgba(10, 10, 10, 0.08);
  --shadow-3: 0 8px 24px rgba(10, 10, 10, 0.10);
  --radius: 6px;
  --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--charcoal);
  background: var(--grey-50);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Structure ---------- */

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.wordmark {
  font-weight: 600;
  font-size: 20px;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark img { height: 28px; display: block; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--black);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 12px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}

p.lede { font-size: 18px; color: var(--charcoal); margin-bottom: 24px; }
.muted { color: var(--grey); }
.small { font-size: 14px; }

/* Barre gauche — signature header */
.barre {
  border-left: 4px solid var(--teal);
  padding-left: 16px;
}

/* ---------- Cartes & sections ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-1);
}

.tinted {
  background: var(--teal-tint);
  border: none;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-hover); }
.btn-primary:active { background: var(--teal-press); }
.btn-primary:disabled { background: var(--grey-300); cursor: not-allowed; }
.btn-secondary {
  background: var(--white);
  color: var(--charcoal);
  border: 1px solid var(--grey-300);
}
.btn-secondary:hover { border-color: var(--grey); }
.btn-ghost {
  background: none;
  color: var(--teal);
  padding: 12px 8px;
  font-weight: 600;
}
.btn-ghost:hover { color: var(--teal-hover); }
.btn-block { display: block; width: 100%; }

/* ---------- Progression ---------- */

.progress-wrap {
  position: sticky;
  top: 0;
  background: var(--grey-50);
  padding: 12px 0 16px;
  z-index: 10;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}
.progress-bar {
  height: 4px;
  background: var(--grey-300);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar > div {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ---------- Options de réponse ---------- */

.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.option:hover { border-color: var(--teal); }
.option.selected {
  border-color: var(--teal);
  background: var(--teal-tint);
}
.option .tick {
  flex: 0 0 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid var(--grey-300);
  border-radius: 50%;
}
.option.selected .tick {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: inset 0 0 0 3px var(--white);
}
.option.checkbox .tick { border-radius: 3px; }
.option .opt-hint { display: block; font-size: 14px; color: var(--grey); }

.q-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  margin: 24px 0 12px;
}
.q-label:first-of-type { margin-top: 0; }

/* ---------- Formulaire ---------- */

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  color: var(--charcoal);
  background: var(--white);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-tint);
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--grey);
  margin: 16px 0 24px;
}
.consent input { margin-top: 3px; }

/* Honeypot — invisible pour les humains */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Restitution ---------- */

.score-hero {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 24px 0 8px;
}
.score-hero .num {
  font-size: 72px;
  font-weight: 600;
  line-height: 1;
  color: var(--teal);
}
.score-hero .denom { font-size: 24px; color: var(--grey); }

.archetype-name {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
}

.dim-row { margin-bottom: 16px; }
.dim-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.dim-bar {
  height: 8px;
  background: var(--grey-50);
  border: 1px solid var(--grey-300);
  border-radius: 4px;
  overflow: hidden;
}
.dim-bar > div { height: 100%; border-radius: 4px; }
.lvl-low > div { background: var(--burgundy); }
.lvl-mid > div { background: var(--gold); }
.lvl-high > div { background: var(--moss); }

.reco {
  border-left: 4px solid var(--teal);
  padding: 4px 0 4px 16px;
  margin-bottom: 20px;
}
.reco h3 { margin-bottom: 4px; }

.locked-zone { position: relative; }
.locked-blur { filter: blur(7px); pointer-events: none; user-select: none; }
.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lock-overlay .card {
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-3);
  margin: 0;
}

.instance-map { list-style: none; }
.instance-map li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-50);
  font-size: 15px;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-on { background: var(--teal-tint); color: var(--teal-press); }
.badge-mid { background: #F5EEDF; color: var(--gold); }
.badge-off { background: var(--grey-50); color: var(--grey); border: 1px solid var(--grey-300); }

/* ---------- Radar ---------- */

.radar-wrap { display: flex; justify-content: center; margin: 16px 0 8px; }
.radar-wrap svg { max-width: 100%; height: auto; }

.legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 8px;
}
.legend span::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  margin-right: 6px;
}
.legend .l-score::before { background: var(--teal); }
.legend .l-target::before { background: var(--grey-300); }

/* ---------- Navigation bas d'écran ---------- */

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
}

/* ---------- Pro teaser ---------- */

.pro-price {
  font-size: 32px;
  font-weight: 600;
  color: var(--black);
}
.pro-list { list-style: none; margin: 16px 0; }
.pro-list li {
  padding: 6px 0 6px 24px;
  position: relative;
}
.pro-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 600;
}

/* ---------- Messages ---------- */

.notice {
  font-size: 14px;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 12px;
}
.notice-error { background: #F7ECEC; color: var(--burgundy); }
.notice-ok { background: var(--teal-tint); color: var(--teal-press); }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--grey-300);
  margin-top: 64px;
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--grey);
}
footer.site .tagline {
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}
footer.site a { color: var(--teal); text-decoration: none; }

/* ---------- Écrans ---------- */

.screen { display: none; }
.screen.active { display: block; animation: rise 0.25s ease; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Impression (rapport PDF) ---------- */

@media print {
  body { background: var(--white); }
  header.site, footer.site, .nav-row, .no-print, .progress-wrap { display: none; }
  .card { box-shadow: none; border: 1px solid var(--grey-300); page-break-inside: avoid; }
  .shell { padding: 0; max-width: none; }
}

/* ---------- Mobile ---------- */

@media (max-width: 540px) {
  .card { padding: 20px; }
  .shell { padding: 16px 16px 64px; }
  .score-hero .num { font-size: 56px; }
}
