/* Feuille unique, écrite à la main : aucune dépendance, aucune police distante. */

:root {
  --encre: #1b2430;
  --encre-douce: #4a5565;
  --fond: #ffffff;
  --fond-froid: #f4f6f9;
  --accent: #1f5fbf;
  --filet: #d8dee7;
  --cadre: 62rem;
  --colonne: 40rem;
  --marge: clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --encre: #e8ecf2;
    --encre-douce: #aab4c2;
    --fond: #11161d;
    --fond-froid: #19212b;
    --accent: #7db0ff;
    --filet: #2b3542;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cadre { max-width: var(--cadre); margin: 0 auto; padding: 0 var(--marge); }

a { color: var(--accent); }

.entete {
  position: sticky;
  top: 0;
  background: var(--fond);
  border-bottom: 1px solid var(--filet);
  z-index: 1;
}
.entete .cadre {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.marque { font-weight: 700; color: var(--encre); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.9375rem; }
nav a { color: var(--encre-douce); text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--accent); text-decoration: underline; }

main section { padding: 2.5rem 0; border-bottom: 1px solid var(--filet); }
main section:last-child { border-bottom: 0; }
main ul, main ol { padding-left: 1.25rem; }
main p, main li { max-width: var(--colonne); }
.tableau { max-width: none; }

h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); line-height: 1.1; margin: 1rem 0; }
h2 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 1rem; }
.chapeau { font-size: 1.25rem; color: var(--encre-douce); }

.tableau { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--filet); }
.tableau table { border-collapse: collapse; width: 100%; min-width: 44rem; font-size: 0.9375rem; line-height: 1.5; }
.tableau th, .tableau td { padding: 0.65rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--filet); }
.tableau thead th { background: var(--fond-froid); }
.tableau tbody tr:last-child th, .tableau tbody tr:last-child td { border-bottom: 0; }
.tableau tbody th { font-weight: 600; }

figure { margin: 0; }
figure img, figure svg { max-width: 100%; height: auto; }
figcaption { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--encre-douce); }
figure .schema { display: block; background: #fff; border: 1px solid var(--filet); padding: 0.5rem; }
.emplacement {
  display: grid;
  place-items: center;
  min-height: 12rem;
  background: var(--fond-froid);
  border: 1px dashed var(--filet);
  color: var(--encre-douce);
}

.pied { background: var(--fond-froid); border-top: 1px solid var(--filet); font-size: 0.875rem; color: var(--encre-douce); }
.pied h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.pied p { max-width: var(--colonne); }
.pied .cadre { padding-top: 1.25rem; padding-bottom: 1.25rem; }

@media print {
  .entete { position: static; }
  nav { display: none; }
  main section { break-inside: avoid; }
}

.troupe { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 2rem 1.5rem; margin-top: 2rem; }
.mascotte { text-align: center; }
.mascotte svg { max-width: 100%; height: auto; }
.mascotte figcaption { max-width: 16rem; margin: 0.5rem auto 0; }
