/* ======================================================================
       DESIGN TOKENS (cohérents avec le site)
       ====================================================================== */
    :root {
      --night-950: #2b221b;
      --night-900: #3a3028;
      --night-800: #4a4036;
      --forest-700: #5a6748;
      --forest-500: #6f7d5a;
      --forest-100: #e8e2d4;
      --bronze-500: #c45c32;
      --bronze-light: #e8b39a;
      --bronze-text: #9a3f1f;
      --bronze-100: #f3d8cc;
      --cream-50: #f3ebe0;
      --cream-100: #fff8f0;
      --cream-200: #e8d9c6;
      --ink-900: #2b221b;
      --ink-700: #3f372f;
      --ink-600: #5c534c;
      --white: #fffdf9;
      --border-light: rgba(43, 34, 27, 0.16);
      --border-dark: rgba(255, 255, 255, 0.24);
      --shadow-soft: 0 24px 80px rgba(43, 34, 27, 0.10);
      --shadow-card: 0 18px 48px rgba(43, 34, 27, 0.09);
      --danger-bg: #f8ece8;
      --danger-border: #c46a54;
      --danger-text: #5c2a1e;
      --radius-sm: 12px;
      --radius-md: 20px;
      --radius-lg: 28px;
      --container: 720px;
      --container-wide: 860px;
      --font-display: "Fraunces", Georgia, serif;
      --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
      --ease: cubic-bezier(0.22, 1, 0.36, 1);
      --dur: 200ms;
    }

    *, *::before, *::after { box-sizing: border-box; }

    html {
      scroll-behavior: smooth;
      -webkit-text-size-adjust: 100%;
    }

    body {
      margin: 0;
      min-height: 100dvh;
      background: var(--cream-50);
      color: var(--ink-900);
      font-family: var(--font-body);
      font-size: 18px; /* minimum demandé */
      line-height: 1.72;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
    }

    img { display: block; max-width: 100%; height: auto; }

    a { color: inherit; }
    button, input { font: inherit; color: inherit; }
    button { cursor: pointer; border: none; background: none; }
    h1, h2, h3, p { margin: 0; }
    ul, ol { margin: 0; padding: 0; list-style: none; }
    fieldset { margin: 0; padding: 0; border: none; }

    :focus-visible {
      outline: 4px solid #e7a968;
      outline-offset: 4px;
    }

    .skip-link {
      position: fixed;
      top: 14px;
      left: 14px;
      z-index: 1000;
      padding: 10px 14px;
      border-radius: 8px;
      background: var(--white);
      color: var(--ink-900);
      font-weight: 700;
      text-decoration: none;
      transform: translateY(-160%);
      transition: transform 180ms ease;
    }
    .skip-link:focus { transform: translateY(0); }

    .container {
      width: min(calc(100% - 32px), var(--container));
      margin-inline: auto;
    }
    .container--wide {
      width: min(calc(100% - 32px), var(--container-wide));
    }

    /* ---------- Header minimal ---------- */
    .site-header {
      background: rgba(243, 235, 224, 0.92);
      color: var(--ink-900);
      border-bottom: 1px solid rgba(43, 34, 27, 0.08);
      backdrop-filter: blur(12px);
    }
    .header-inner {
      display: flex;
      min-height: 72px;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      width: min(calc(100% - 32px), 1180px);
      margin-inline: auto;
    }
    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      font-weight: 700;
      letter-spacing: -0.02em;
      text-decoration: none;
      color: var(--ink-900);
    }
    .brand-mark {
      display: grid;
      width: 40px;
      height: 40px;
      place-items: center;
      border: none;
      border-radius: 50%;
      background: var(--bronze-500);
      color: var(--cream-100);
      font-size: 0.85rem;
      font-weight: 700;
    }
    .brand em { font-style: italic; color: var(--bronze-text); }
    .header-link {
      color: var(--ink-700);
      font-size: 0.95rem;
      font-weight: 700;
      text-decoration: none;
    }
    .header-link:hover { color: var(--bronze-500); }
    .intro-photo {
      margin: 0 0 22px;
      overflow: hidden;
      border-radius: 20px;
    }
    .intro-photo img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      object-position: center 20%;
    }

    /* ---------- Boutons ---------- */
    .btn {
      display: inline-flex;
      min-height: 58px;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 24px;
      border-radius: 999px;
      border: 2px solid transparent;
      font-size: 1.05rem;
      font-weight: 700;
      line-height: 1.25;
      text-decoration: none;
      transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    }
    .btn:hover:not(:disabled) { transform: translateY(-2px); }
    .btn:disabled {
      opacity: 0.42;
      cursor: not-allowed;
      transform: none;
    }
    .btn--primary {
      background: var(--bronze-500);
      color: var(--night-950);
      box-shadow: 0 14px 32px rgba(211, 154, 99, 0.28);
    }
    .btn--primary:hover:not(:disabled) { background: #e2ac78; }
    .btn--ghost {
      background: transparent;
      color: var(--ink-700);
      border-color: var(--border-light);
    }
    .btn--ghost:hover:not(:disabled) {
      background: rgba(20, 33, 29, 0.04);
    }
    .btn--dark {
      background: var(--night-900);
      color: var(--white);
      box-shadow: 0 14px 32px rgba(14, 33, 29, 0.18);
    }
    .btn--dark:hover:not(:disabled) { background: var(--night-800); }
    .btn--block { width: 100%; }

    /* ---------- Screens ---------- */
    .screen { display: none; padding: 28px 0 56px; }
    .screen.is-active { display: block; }

    /* ---------- Intro ---------- */
    .intro-card {
      padding: 8px 0 0;
    }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin: 0 0 16px;
      color: var(--forest-700);
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.11em;
      text-transform: uppercase;
    }
    .eyebrow::before {
      content: "";
      width: 28px;
      height: 1px;
      background: currentColor;
    }
    .intro-title {
      font-family: var(--font-display);
      font-size: clamp(1.9rem, 5.5vw, 2.75rem);
      font-weight: 700;
      line-height: 1.12;
      letter-spacing: -0.03em;
      color: var(--ink-900);
      max-width: 22ch;
    }
    .intro-title::after {
      content: "";
      display: block;
      width: 58px;
      height: 3px;
      margin-top: 18px;
      border-radius: 999px;
      background: var(--bronze-500);
    }
    .intro-lead {
      margin-top: 22px;
      color: var(--ink-600);
      font-size: 1.08rem;
      max-width: 36em;
    }
    .intro-points {
      margin: 28px 0;
      display: grid;
      gap: 12px;
    }
    .intro-points li {
      display: grid;
      grid-template-columns: 34px 1fr;
      gap: 12px;
      align-items: start;
      color: var(--ink-700);
    }
    .intro-points span {
      display: grid;
      width: 34px;
      height: 34px;
      place-items: center;
      border-radius: 50%;
      background: var(--forest-100);
      color: var(--forest-700);
      font-size: 0.75rem;
      font-weight: 700;
    }
    .intro-actions { margin-top: 8px; }
    .intro-meta {
      margin-top: 14px;
      color: var(--ink-600);
      font-size: 0.95rem;
    }

    /* ---------- Progress ---------- */
    .progress-wrap {
      margin-bottom: 28px;
    }
    .progress-track {
      height: 6px;
      border-radius: 999px;
      background: rgba(20, 33, 29, 0.1);
      overflow: hidden;
    }
    .progress-fill {
      height: 100%;
      width: 0%;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--forest-700), var(--bronze-500));
      transition: width 0.35s var(--ease);
    }
    .progress-meta {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      margin-top: 10px;
      font-size: 0.92rem;
      color: var(--ink-600);
      font-weight: 700;
    }

    /* ---------- Question ---------- */
    .question-step {
      margin: 0 0 10px;
      color: var(--bronze-text);
      font-size: 0.86rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .question-title {
      font-family: var(--font-display);
      font-size: clamp(1.45rem, 4.2vw, 1.9rem);
      font-weight: 700;
      line-height: 1.25;
      letter-spacing: -0.02em;
      color: var(--ink-900);
      margin-bottom: 10px;
    }
    .question-hint {
      color: var(--ink-600);
      font-size: 1rem;
      margin-bottom: 20px;
    }
    .question-hint[hidden] { display: none; }

    .options {
      display: grid;
      gap: 12px;
      margin-top: 8px;
    }

    .option {
      position: relative;
    }
    .option input {
      position: absolute;
      opacity: 0;
      width: 1px;
      height: 1px;
      pointer-events: none;
    }
    .option-label {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      min-height: 64px;
      padding: 16px 16px;
      border: 2px solid var(--border-light);
      border-radius: var(--radius-sm);
      background: var(--white);
      cursor: pointer;
      transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
      font-size: 1.05rem;
      line-height: 1.45;
      color: var(--ink-900);
    }
    .option-label:hover {
      border-color: rgba(40, 87, 72, 0.45);
      background: #fbfaf7;
    }
    .option input:checked + .option-label {
      border-color: var(--forest-700);
      background: rgba(223, 233, 228, 0.55);
      box-shadow: 0 0 0 1px var(--forest-700);
    }
    .option input:focus-visible + .option-label {
      outline: 4px solid #e7a968;
      outline-offset: 3px;
    }
    .option-marker {
      flex-shrink: 0;
      width: 24px;
      height: 24px;
      margin-top: 2px;
      border: 2px solid rgba(20, 33, 29, 0.35);
      border-radius: 50%;
      display: grid;
      place-items: center;
      transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
    }
    .option--checkbox .option-marker {
      border-radius: 6px;
    }
    .option input:checked + .option-label .option-marker {
      border-color: var(--forest-700);
      background: var(--forest-700);
      box-shadow: inset 0 0 0 3px #fff;
    }
    .option-text { flex: 1; }

    .quiz-nav {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      margin-top: 28px;
      padding-top: 8px;
    }
    .quiz-nav .btn { min-width: 132px; }

    /* ---------- Résultats ---------- */
    .results-header {
      margin-bottom: 28px;
    }
    .results-title {
      font-family: var(--font-display);
      font-size: clamp(1.85rem, 5vw, 2.6rem);
      font-weight: 700;
      line-height: 1.12;
      letter-spacing: -0.03em;
      color: var(--ink-900);
    }
    .results-title::after {
      content: "";
      display: block;
      width: 58px;
      height: 3px;
      margin-top: 16px;
      border-radius: 999px;
      background: var(--bronze-500);
    }
    .results-lead {
      margin-top: 18px;
      color: var(--ink-600);
      font-size: 1.08rem;
      max-width: 40em;
    }

    .result-stack {
      display: grid;
      gap: 14px;
      margin-bottom: 28px;
    }

    .result-card {
      padding: 22px 20px;
      border: 1px solid rgba(20, 33, 29, 0.12);
      border-radius: 16px;
      background: var(--white);
      box-shadow: var(--shadow-card);
    }
    .result-card--priority {
      border-top: 3px solid var(--bronze-500);
      background: linear-gradient(180deg, #fffdf9 0%, var(--white) 55%);
    }
    .result-card--secondary {
      border-top: 3px solid var(--forest-500);
    }
    .result-card--caution {
      background: var(--danger-bg);
      border: 1px solid rgba(196, 106, 84, 0.45);
    }
    .result-label {
      display: block;
      margin-bottom: 8px;
      color: var(--bronze-text);
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }
    .result-card--caution .result-label {
      color: var(--danger-text);
    }
    .result-card h3 {
      font-family: var(--font-display);
      font-size: 1.35rem;
      font-weight: 700;
      line-height: 1.25;
      letter-spacing: -0.02em;
      color: var(--ink-900);
      margin-bottom: 8px;
    }
    .result-card p,
    .result-card li {
      color: var(--ink-600);
      font-size: 1.02rem;
      line-height: 1.65;
    }
    .result-card p + p { margin-top: 10px; }

    .actions-list {
      display: grid;
      gap: 10px;
      margin-top: 10px;
    }
    .actions-list li {
      position: relative;
      padding-left: 1.15rem;
    }
    .actions-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.65em;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--forest-700);
    }

    .meta-row {
      display: grid;
      gap: 12px;
    }
    @media (min-width: 640px) {
      .meta-row {
        grid-template-columns: 1fr 1fr;
      }
    }

    /* ---------- Email capture ---------- */
    .email-panel {
      margin-top: 8px;
      padding: 28px 22px;
      border: 1px solid var(--border-light);
      border-radius: var(--radius-lg);
      background:
        radial-gradient(circle at 90% 0%, rgba(77, 127, 110, 0.12), transparent 40%),
        var(--white);
      box-shadow: var(--shadow-soft);
    }
    .email-panel h2 {
      font-family: var(--font-display);
      font-size: clamp(1.4rem, 3.5vw, 1.85rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 10px;
    }
    .email-panel > p {
      color: var(--ink-600);
      margin-bottom: 20px;
      max-width: 38em;
    }

    .form-grid {
      display: grid;
      gap: 16px;
    }
    .field label {
      display: block;
      margin-bottom: 6px;
      font-weight: 700;
      font-size: 0.95rem;
      color: var(--ink-700);
    }
    .field .optional {
      font-weight: 400;
      color: var(--ink-600);
    }
    .field input[type="text"],
    .field input[type="email"] {
      width: 100%;
      min-height: 54px;
      padding: 12px 14px;
      border: 2px solid var(--border-light);
      border-radius: var(--radius-sm);
      background: var(--cream-50);
      font-size: 1.05rem;
    }
    .field input:focus {
      outline: none;
      border-color: var(--forest-700);
      box-shadow: 0 0 0 3px rgba(40, 87, 72, 0.15);
      background: var(--white);
    }
    .field input.is-invalid {
      border-color: var(--danger-border);
    }
    .field-error {
      margin-top: 6px;
      color: var(--danger-text);
      font-size: 0.92rem;
      font-weight: 700;
    }
    .field-error[hidden] { display: none; }

    .info-note {
      padding: 14px 16px;
      border-radius: var(--radius-sm);
      background: var(--cream-100);
      border: 1px solid rgba(20, 33, 29, 0.1);
      color: var(--ink-700);
      font-size: 0.98rem;
      line-height: 1.55;
    }
    .info-note a {
      color: var(--forest-700);
      font-weight: 700;
      text-decoration: underline;
    }

    .checkbox-row {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      cursor: pointer;
      font-size: 0.98rem;
      line-height: 1.5;
      color: var(--ink-700);
    }
    .checkbox-row input {
      width: 22px;
      height: 22px;
      margin-top: 2px;
      flex-shrink: 0;
      accent-color: var(--forest-700);
    }

    .email-success {
      text-align: center;
      padding: 12px 0 4px;
    }
    .email-success h3 {
      font-family: var(--font-display);
      font-size: 1.6rem;
      margin-bottom: 10px;
    }
    .email-success p {
      color: var(--ink-600);
      margin-bottom: 18px;
      max-width: 30em;
      margin-inline: auto;
    }

    .results-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 22px;
    }

    .footer-mini {
      padding: 24px 0 36px;
      color: var(--ink-600);
      font-size: 0.9rem;
      text-align: center;
    }
    .footer-mini a {
      color: var(--forest-700);
      font-weight: 700;
    }

    @media (min-width: 700px) {
      .screen { padding: 40px 0 72px; }
      .option-label {
        min-height: 68px;
        padding: 18px 18px;
      }
      .email-panel { padding: 34px 32px; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
      }
      .btn:hover:not(:disabled) { transform: none; }
    }
