:root {
    --papier:      #fcfcfb;
    --encre:       #16181d;
    --gris:        #5d6470;
    --gris-clair:  #e4e6ea;
    --bleu:        #123a86;
    --bleu-doux:   #eef2fa;
    --jaune:       #f5c518;
    --plaque-fond: #ffffff;
    --plaque-bord: #c9ccd3;

    --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
    --sans: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --papier:      #101216;
      --encre:       #e8e9ec;
      --gris:        #969ca8;
      --gris-clair:  #282c34;
      --bleu:        #7ba3e8;
      --bleu-doux:   #171c27;
      --jaune:       #f5c518;
      --plaque-fond: #1a1d24;
      --plaque-bord: #363b45;
    }
  }

  :root[data-theme="dark"] {
    --papier:      #101216;
    --encre:       #e8e9ec;
    --gris:        #969ca8;
    --gris-clair:  #282c34;
    --bleu:        #7ba3e8;
    --bleu-doux:   #171c27;
    --jaune:       #f5c518;
    --plaque-fond: #1a1d24;
    --plaque-bord: #363b45;
  }

  :root[data-theme="light"] {
    --papier:      #fcfcfb;
    --encre:       #16181d;
    --gris:        #5d6470;
    --gris-clair:  #e4e6ea;
    --bleu:        #123a86;
    --bleu-doux:   #eef2fa;
    --plaque-fond: #ffffff;
    --plaque-bord: #c9ccd3;
  }

  body {
    background: var(--papier);
    color: var(--encre);
    font-family: var(--serif);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 0;
    padding: 0 1.25rem 6rem;
  }

  .feuille {
    max-width: 40rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
  }

  /* ── En-tête ─────────────────────────────────────────── */

  header {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 4rem 0 1.75rem;
    border-bottom: 2px solid var(--encre);
    margin-bottom: 1rem;
  }

  .surtitre {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gris);
  }

  h1 {
    font-family: var(--sans);
    font-size: clamp(2rem, 7vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.04;
    text-wrap: balance;
    margin: 0;
  }

  .chapeau {
    color: var(--gris);
    font-size: 1.0625rem;
    margin: 0.3rem 0 0;
    text-wrap: pretty;
  }

  /* ── Titres ──────────────────────────────────────────── */

  h2 {
    font-family: var(--sans);
    font-size: 1.2rem;
    font-weight: 680;
    letter-spacing: -0.012em;
    line-height: 1.3;
    text-wrap: balance;
    margin: 2.25rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gris-clair);
  }

  h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1rem; }

  h3 {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 650;
    margin: 1.1rem 0 -0.6rem;
  }

  p { margin: 0; text-wrap: pretty; }

  a { color: var(--bleu); text-underline-offset: 0.18em; }
  a:focus-visible {
    outline: 2px solid var(--bleu);
    outline-offset: 3px;
    border-radius: 2px;
  }

  strong { font-weight: 700; }

  ul { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: 0.4rem; }

  /* ── Le cœur : ce qui n'existe pas ───────────────────── */

  .jamais {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0.5rem 0 0.25rem;
  }

  .plaque {
    display: grid;
    grid-template-columns: 1.65rem 1fr;
    align-items: stretch;
    border: 1.5px solid var(--plaque-bord);
    border-radius: 5px;
    background: var(--plaque-fond);
    overflow: hidden;
  }

  .bande {
    background: var(--bleu);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.3rem;
  }

  .bande span {
    font-family: var(--sans);
    font-size: 0.58rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
  }

  :root[data-theme="dark"] .bande span { color: #0d1017; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .bande span { color: #0d1017; }
  }

  .contenu-plaque { padding: 0.7rem 0.9rem; display: flex; flex-direction: column; gap: 0.15rem; }

  .barre {
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--jaune);
  }

  .pourquoi { font-size: 0.9rem; color: var(--gris); line-height: 1.55; }

  /* ── Tableau ─────────────────────────────────────────── */

  .cadre-table { overflow-x: auto; }

  table {
    border-collapse: collapse;
    width: 100%;
    font-family: var(--sans);
    font-size: 0.88rem;
    min-width: 26rem;
  }

  th, td {
    text-align: left;
    padding: 0.6rem 0.75rem 0.6rem 0;
    border-bottom: 1px solid var(--gris-clair);
    vertical-align: top;
  }

  th {
    font-weight: 650;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gris);
    border-bottom-color: var(--encre);
  }

  td:first-child { font-weight: 600; white-space: nowrap; padding-right: 1.25rem; }
  td:last-child { color: var(--gris); }

  /* ── Encadré ─────────────────────────────────────────── */

  .encadre {
    background: var(--bleu-doux);
    border-left: 3px solid var(--bleu);
    padding: 1rem 1.15rem;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  footer {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gris-clair);
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--gris);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }
