/* Les couleurs de l'app (Insigne/Teinte.swift) : papier et encre le jour, nuit et crème quand l'appareil est en sombre. */
:root {
  --fond: #fff9ed;
  --encre: #212157;
  --sourd: rgba(33, 33, 87, 0.66);
  --accent: #40459e;
  --filet: rgba(33, 33, 87, 0.14);
  --soleil: #faa33d;
  --a-remplir: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0a0f30;
    --encre: #fff5de;
    --sourd: rgba(255, 245, 222, 0.66);
    --accent: #ffdb80;
    --filet: rgba(255, 245, 222, 0.16);
    --a-remplir: #ffb4a9;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.page { max-width: 680px; margin: 0 auto; padding: 28px 20px 56px; }
header { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--filet); }
header img { width: 52px; height: 52px; border-radius: 12px; }
header a.nom { font: 700 22px/1.2 ui-serif, "New York", Georgia, "Times New Roman", serif; color: var(--encre); text-decoration: none; }
nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: flex-end; font-size: 15px; }
h1, h2 { font-family: ui-serif, "New York", Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: 34px; margin: 36px 0 12px; }
h2 { font-size: 22px; margin: 34px 0 8px; }
p, li { max-width: 62ch; }
ul { padding-left: 22px; }
li { margin: 6px 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--soleil); outline-offset: 3px; border-radius: 3px; }
.chapeau { font-size: 20px; color: var(--sourd); margin: 0 0 8px; }
.date { color: var(--sourd); font-size: 15px; }
.a-remplir { color: var(--a-remplir); font-weight: 700; }
footer { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--filet); color: var(--sourd); font-size: 15px; }
footer a { color: inherit; }
@media (max-width: 520px) {
  header { flex-wrap: wrap; }
  nav { margin-left: 0; justify-content: flex-start; width: 100%; }
  h1 { font-size: 29px; }
}
[hidden] { display: none !important; }
.bouton { display: inline-block; margin: 8px 10px 0 0; padding: 13px 22px; border-radius: 999px; background: var(--encre); color: var(--fond); font-weight: 700; text-decoration: none; }
.bouton.clair { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }
.bouton:focus-visible { outline: 2px solid var(--soleil); outline-offset: 3px; }
