* { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --blue:       #1a6fb5;
      --blue-dark:  #134f85;
      --blue-light: #e8f2fb;
      --green:      #17a589;
      --green-light:#e6f7f4;
      --dark:       #1a1f2e;
      --gray:       #64748b;
      --gray-light: #f1f5f9;
      --border:     #e2e8f0;
    }

    body {
      font-family: 'Inter', system-ui, sans-serif;
      color: var(--dark);
      background: #f0f4f8;
      font-size: 15px;
      line-height: 1.65;
    }

    .page-wrapper {
      max-width: 820px;
      margin: 40px auto;
      background: white;
      border-radius: 12px;
      box-shadow: 0 8px 40px rgba(0,0,0,.12);
      overflow: hidden;
    }

    .print-btn-bar {
      background: var(--blue);
      padding: 14px 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .print-btn-bar span { color: rgba(255,255,255,.85); font-size: 13px; }
    .print-btn {
      background: white;
      color: var(--blue);
      border: none;
      padding: 9px 22px;
      border-radius: 50px;
      font-weight: 700;
      font-size: 13px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: background .2s;
    }
    .print-btn:hover { background: var(--blue-light); }

    /* Couverture */
    .cover {
      background: linear-gradient(135deg, var(--dark) 0%, #1a3a5c 100%);
      padding: 56px 48px 48px;
      color: white;
    }
    .cover-logo { font-size: 20px; font-weight: 800; color: white; margin-bottom: 48px; display: flex; align-items: center; gap: 10px; line-height: 1; letter-spacing: -0.02em; }
    .cover-logo span { color: #60a5fa; }
    .cover-tag { display: inline-block; background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); font-size: 11px; font-weight: 600; padding: 4px 14px; border-radius: 50px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: .8px; }
    .cover h1 { font-size: 28px; font-weight: 800; line-height: 1.25; margin-bottom: 16px; max-width: 560px; }
    .cover h1 em { font-style: normal; color: #60a5fa; }
    .cover-sub { font-size: 15px; color: rgba(255,255,255,.7); max-width: 500px; line-height: 1.7; margin-bottom: 36px; }
    .cover-pills { display: flex; gap: 10px; flex-wrap: wrap; }
    .cover-pill { padding: 6px 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 50px; font-size: 12px; color: rgba(255,255,255,.85); }

    /* Contenu */
    .content { padding: 48px 48px 56px; }

    .intro-box { background: var(--blue-light); border-left: 4px solid var(--blue); padding: 18px 22px; border-radius: 0 10px 10px 0; margin-bottom: 40px; font-size: 14px; line-height: 1.7; color: var(--dark); }
    .intro-box strong { color: var(--blue); }
    .intro-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 12px; }
    .intro-meta-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray); font-weight: 500; }

    h2 { font-size: 19px; font-weight: 800; color: var(--dark); margin: 40px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--blue-light); display: flex; align-items: center; gap: 10px; }
    h2 .part-badge { background: var(--blue); color: white; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 50px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
    h2 .prof-badge { color: white; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 50px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }

    h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin: 28px 0 10px; }
    h3::before { content: '▸ '; color: var(--blue); }

    p { margin-bottom: 12px; font-size: 14px; color: #374151; line-height: 1.75; }

    .callout { padding: 14px 18px; border-radius: 10px; margin: 16px 0; font-size: 13px; line-height: 1.65; display: flex; gap: 12px; align-items: flex-start; }
    .callout-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
    .callout-info  { background: var(--blue-light); border: 1px solid rgba(26,111,181,.2); color: #1e40af; }
    .callout-warn  { background: #fef9c3; border: 1px solid #fde047; color: #854d0e; }
    .callout-green { background: var(--green-light); border: 1px solid rgba(23,165,137,.2); color: #065f46; }
    .callout-red   { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }
    .callout strong { font-weight: 700; }

    table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 13px; }
    thead th { background: var(--dark); color: white; padding: 10px 14px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
    tbody td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
    tbody tr:nth-child(even) td { background: var(--gray-light); }
    tbody tr:hover td { background: var(--blue-light); }

    ul, ol { padding-left: 20px; margin: 10px 0 16px; }
    li { font-size: 14px; color: #374151; line-height: 1.75; margin-bottom: 4px; }
    li strong { color: var(--dark); }

    .checklist { list-style: none; padding: 0; }
    .checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border-radius: 8px; margin-bottom: 6px; background: var(--gray-light); font-size: 13px; }
    .checklist li::before { content: '☐'; color: var(--blue); font-size: 16px; flex-shrink: 0; line-height: 1.4; }

    .example { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 14px 18px; font-size: 13px; color: var(--gray); font-style: italic; margin: 12px 0; line-height: 1.7; }

    /* Carte profession */
    .prof-card {
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      margin: 24px 0;
    }
    .prof-card-header {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 16px 22px;
      color: white;
    }
    .prof-card-header .prof-icon { font-size: 28px; }
    .prof-card-header .prof-title { font-size: 17px; font-weight: 800; }
    .prof-card-header .prof-order { font-size: 11px; opacity: .8; margin-top: 2px; }
    .prof-card-body { padding: 20px 22px; }

    /* Couleurs par profession */
    .prof-kine      { background: #134f85; }
    .prof-osteo     { background: #0f766e; }
    .prof-psy       { background: #6d28d9; }
    .prof-neuropsy  { background: #4c1d95; }
    .prof-podologue { background: #b45309; }
    .prof-ortho     { background: #0369a1; }
    .prof-diete     { background: #166534; }
    .prof-infirmier { background: #be123c; }

    /* Grille autorisé / interdit */
    .rules-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin: 14px 0 20px;
    }
    .rules-box {
      border-radius: 8px;
      padding: 14px 16px;
      font-size: 13px;
    }
    .rules-box-green { background: var(--green-light); border: 1px solid rgba(23,165,137,.25); }
    .rules-box-red   { background: #fef2f2; border: 1px solid #fecaca; }
    .rules-box-title { font-weight: 700; margin-bottom: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
    .rules-box-green .rules-box-title { color: #065f46; }
    .rules-box-red   .rules-box-title { color: #7f1d1d; }
    .rules-box ul { padding-left: 16px; margin: 0; }
    .rules-box li { font-size: 12.5px; margin-bottom: 4px; color: #374151; }

    .section-divider { height: 3px; background: linear-gradient(to right, var(--blue), var(--blue-light), transparent); border-radius: 2px; margin: 44px 0; }

    .priority-table td:first-child { font-weight: 600; font-size: 16px; text-align: center; width: 48px; }
    .p-red    { color: #dc2626; }
    .p-orange { color: #ea580c; }
    .p-yellow { color: #ca8a04; }

    /* Test déonto */
    .deonto-test {
      background: var(--dark);
      border-radius: 12px;
      padding: 24px 28px;
      margin: 20px 0;
      color: white;
    }
    .deonto-test-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: #60a5fa; }
    .deonto-test-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid rgba(255,255,255,.1);
      font-size: 13px;
      color: rgba(255,255,255,.85);
    }
    .deonto-test-item:last-child { border-bottom: none; }
    .deonto-test-num { background: var(--blue); color: white; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }

    .doc-footer { background: var(--dark); padding: 24px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
    .doc-footer-logo { font-size: 16px; font-weight: 800; color: white; }
    .doc-footer-logo span { color: #60a5fa; }
    .doc-footer p { font-size: 12px; color: #94a3b8; margin: 0; }
    .doc-footer a { color: #60a5fa; text-decoration: none; }

    @media print {
      body { background: white; font-size: 11pt; }
      .print-btn-bar { display: none; }
      .page-wrapper { box-shadow: none; border-radius: 0; margin: 0; max-width: 100%; }
      h2 { page-break-after: avoid; }
      h3 { page-break-after: avoid; }
      table { page-break-inside: avoid; }
      .callout { page-break-inside: avoid; }
      .prof-card { page-break-inside: avoid; }
      .rules-grid { page-break-inside: avoid; }
      .cover { padding: 40px 40px 36px; }
      .cover h1 { font-size: 22pt; }
      .content { padding: 32px 40px 40px; }
      a { color: inherit; text-decoration: none; }
    }
