/* ============================================================
   Essai de typographies — activé par ?typo=<nom> (mémorisé dans le navigateur),
   ?typo=origine pour revenir à l'actuelle. Ne change que les variables de police.
   ============================================================ */

/* « Mincho » : titres à la japonaise (famille des Song/Ming chinoises), texte Literata. */
:root[data-typo="mincho"] {
  --font-display: 'Shippori Mincho', 'Noto Serif SC', Georgia, serif;
  --font-serif:   'Literata', Georgia, serif;
  --font-sans:    'Zen Kaku Gothic New', system-ui, sans-serif;
}
/* « Chaleur » : titres Young Serif (ronds, un peu artisanaux), texte Newsreader. */
:root[data-typo="chaleur"] {
  --font-display: 'Young Serif', Georgia, serif;
  --font-serif:   'Newsreader', Georgia, serif;
  --font-sans:    'Public Sans', system-ui, sans-serif;
}
/* « Atelier » : une seule famille, Petrona, pour titres et texte ; Karla pour l'interface. */
:root[data-typo="atelier"] {
  --font-display: 'Petrona', Georgia, serif;
  --font-serif:   'Petrona', Georgia, serif;
  --font-sans:    'Karla', system-ui, sans-serif;
}
/* Young Serif n'a qu'une graisse : on évite les faux gras sur les titres. */
:root[data-typo="chaleur"] h1, :root[data-typo="chaleur"] h2, :root[data-typo="chaleur"] h3 { font-weight: 400; }

/* Panneau d'essai */
.typo-panel { position: fixed; z-index: 70; left: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  max-width: calc(100vw - 28px); background: rgba(28,24,20,.92); color: #fff; padding: 8px 10px; border-radius: 12px;
  font: 13px/1.2 system-ui, sans-serif; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.typo-panel b { font-weight: 600; margin-right: 4px; }
.typo-panel a { color: #fff; text-decoration: none; padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); }
.typo-panel a.is-on { background: #fff; color: #1c1814; }
.typo-panel button { background: none; border: 0; color: rgba(255,255,255,.6); cursor: pointer; font: inherit; padding: 4px 6px; }
