    :root {
      --fond: #f6f7fb;
      --carte: #ffffff;
      --texte: #1f2937;
      --muted: #6b7280;
      --primaire: #1d4ed8;
      --primaire-fonce: #1e40af;
      --bordure: #d1d5db;
      --ok: #047857;
      --moyen: #b45309;
      --faible: #b91c1c;
      --ombre: 0 10px 25px rgba(15, 23, 42, 0.08);
      --radius: 18px;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--texte);
      background: linear-gradient(180deg, #eef2ff 0%, var(--fond) 260px);
      line-height: 1.5;
    }

    .page {
      max-width: 1050px;
      margin: 0 auto;
      padding: 28px 16px 56px;
    }

    header {
      background: var(--carte);
      border: 1px solid rgba(209, 213, 219, 0.8);
      border-radius: var(--radius);
      padding: 28px;
      box-shadow: var(--ombre);
      margin-bottom: 22px;
    }

    h1 {
      margin: 0 0 10px;
      font-size: clamp(1.7rem, 3vw, 2.6rem);
      line-height: 1.15;
    }

    .intro {
      margin: 0;
      color: var(--muted);
      font-size: 1.05rem;
    }

    .notice {
      margin-top: 18px;
      padding: 14px 16px;
      border-radius: 14px;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      color: #1e3a8a;
    }

    .progression {
      margin: 18px 0 0;
      height: 12px;
      background: #e5e7eb;
      border-radius: 999px;
      overflow: hidden;
    }

    .progression-barre {
      height: 100%;
      width: 0%;
      background: var(--primaire);
      transition: width 180ms ease;
    }

    .bloc {
      background: var(--carte);
      border: 1px solid rgba(209, 213, 219, 0.8);
      border-radius: var(--radius);
      padding: 22px;
      box-shadow: var(--ombre);
      margin-bottom: 18px;
    }

    .question {
      border-top: 1px solid var(--bordure);
      padding: 20px 0;
    }

    .question:first-child { border-top: 0; padding-top: 0; }
    .question:last-child { padding-bottom: 0; }

    .question h2 {
      margin: 0 0 12px;
      font-size: 1.05rem;
    }

    .theme {
      display: inline-block;
      margin-bottom: 8px;
      padding: 4px 10px;
      border-radius: 999px;
      background: #f3f4f6;
      color: #374151;
      font-size: 0.87rem;
      font-weight: 600;
    }

    .reponses {
      display: grid;
      gap: 9px;
    }

    label.option {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      padding: 12px;
      border: 1px solid var(--bordure);
      border-radius: 13px;
      cursor: pointer;
      background: #fff;
      transition: border-color 120ms ease, background 120ms ease;
    }

    label.option:hover,
    label.option:focus-within {
      border-color: var(--primaire);
      background: #f8fbff;
    }

    input[type="radio"] {
      margin-top: 3px;
      accent-color: var(--primaire);
    }

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

    button {
      border: 0;
      border-radius: 999px;
      padding: 12px 18px;
      font-weight: 700;
      cursor: pointer;
      font-size: 1rem;
    }

    .btn-primaire {
      background: var(--primaire);
      color: #fff;
    }

    .btn-primaire:hover,
    .btn-primaire:focus {
      background: var(--primaire-fonce);
    }

    .btn-secondaire {
      background: #e5e7eb;
      color: #111827;
    }

    .erreur {
      color: var(--faible);
      font-weight: 700;
      margin: 10px 0 0;
    }

    #resultats[hidden] { display: none; }

    .resume-score {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 12px;
      margin-top: 16px;
    }

   .resume-score a {
      display: inline-block;
      color: #fff;
      background: var(--primaire);
      text-decoration: none;
      padding: 9px 13px;
      border-radius: 999px;
      font-weight: 700;
    }

    .score-card {
      border: 1px solid var(--bordure);
      border-radius: 15px;
      padding: 14px;
      background: #fff;
    }

    .score-card h3 {
      margin: 0 0 8px;
      font-size: 1rem;
    }

    .score-ligne {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      font-weight: 700;
    }

    .barre {
      height: 9px;
      background: #e5e7eb;
      border-radius: 999px;
      margin-top: 10px;
      overflow: hidden;
    }

    .barre span {
      display: block;
      height: 100%;
      width: 0%;
      border-radius: 999px;
      background: var(--primaire);
    }

    .niveau-faible { color: var(--faible); }
    .niveau-moyen { color: var(--moyen); }
    .niveau-ok { color: var(--ok); }

    .recommandations {
      display: grid;
      gap: 12px;
      margin-top: 16px;
    }

    .recommandation {
      border: 1px solid var(--bordure);
      border-left: 6px solid var(--primaire);
      border-radius: 14px;
      padding: 14px;
      background: #fff;
    }

    .recommandation h3 {
      margin: 0 0 6px;
      font-size: 1.05rem;
    }

    .recommandation p {
      margin: 0 0 10px;
      color: var(--muted);
    }

    .recommandation a {
      display: inline-block;
      color: #fff;
      background: var(--primaire);
      text-decoration: none;
      padding: 9px 13px;
      border-radius: 999px;
      font-weight: 700;
    }

    .recommandation a:hover,
    .recommandation a:focus {
      background: var(--primaire-fonce);
    }

    .lien-manquant {
      font-weight: 700;
      color: var(--faible);
    }

    footer {
      color: var(--muted);
      font-size: 0.92rem;
      margin-top: 18px;
      text-align: center;
    }

    @media (max-width: 640px) {
      header, .bloc { padding: 18px; }
      .actions { flex-direction: column; align-items: stretch; }
      button { width: 100%; }
    }
