/* Rhin & Rythmes — mobile first, system fonts only, no external resources. */
:root {
  --nuit: #14213d;
  --nuit-2: #1f3260;
  --ambre: #fca311;
  --corail: #e56b6f;
  --papier: #faf7f0;
  --encre: #1d1d24;
  --gris: #5c5f6b;
  --filet: #e2ddd0;
  --fleuve: #5e8bc4;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 1.0625rem/1.65 Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}
a { color: var(--nuit-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #b5523a; }

.ruban {
  background: var(--nuit);
  color: #efe9da;
  padding: 1rem 1rem 0;
  border-bottom: 4px solid var(--ambre);
}
.sigle {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  color: #fff;
  text-decoration: none;
  font: 700 1.6rem/1.1 "Avenir Next", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.01em;
}
.sigle__et { color: var(--ambre); font-weight: 400; }
.sigle__ryt { font-style: italic; font-weight: 600; }
.devise {
  margin: .35rem 0 .8rem;
  font: .9rem/1.4 "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: #c9c3b3;
}
.onglets ul {
  display: flex;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.onglets a {
  display: block;
  padding: .55rem .7rem;
  color: #efe9da;
  text-decoration: none;
  white-space: nowrap;
  font: 600 .9rem/1 "Avenir Next", "Segoe UI", system-ui, sans-serif;
  border-radius: 6px 6px 0 0;
}
.onglets a[aria-current="page"], .onglets a.ici { background: var(--ambre); color: var(--nuit); }

.colonne { max-width: 44rem; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; }
.fil { margin: 0 0 1rem; font: .85rem/1.4 "Avenir Next", "Segoe UI", system-ui, sans-serif; color: var(--gris); }
.fil a { color: var(--gris); }

.texte h1 {
  margin: 0 0 .75rem;
  font: 700 1.75rem/1.2 "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--nuit);
  letter-spacing: -.01em;
}
.texte h2 {
  margin: 2rem 0 .5rem;
  font: 700 1.25rem/1.3 "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--nuit);
}
.texte h3 { margin: 1.5rem 0 .4rem; font: 700 1.05rem/1.35 "Avenir Next", "Segoe UI", system-ui, sans-serif; }
.chapeau { font-size: 1.15rem; line-height: 1.55; color: #33343d; }
.texte blockquote, .encadre {
  margin: 1.5rem 0;
  padding: .9rem 1rem;
  background: #fff;
  border-left: 4px solid var(--fleuve);
  border-radius: 0 8px 8px 0;
}
.encadre p:first-child { margin-top: 0; }
.encadre p:last-child { margin-bottom: 0; }
.texte ul, .texte ol { padding-left: 1.25rem; }
.texte li { margin: .3rem 0; }
.texte table { width: 100%; border-collapse: collapse; font-size: .85rem; margin: 1rem 0; hyphens: auto; }
.texte th, .texte td { text-align: left; padding: .45rem .4rem; border-bottom: 1px solid var(--filet); vertical-align: top; }
.texte th { font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif; font-size: .85rem; color: var(--gris); }
.tableau { overflow-x: auto; }
.illus { margin: 1.5rem 0; }
.illus img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.illus figcaption { font-size: .85rem; color: var(--gris); margin-top: .4rem; }
.signe { font-size: .9rem; color: var(--gris); font-style: italic; }

.intertitre {
  margin: 2.25rem 0 .75rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--nuit);
  font: 700 1.1rem/1.3 "Avenir Next", "Segoe UI", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--nuit);
}
.intertitre a { color: inherit; text-decoration: none; }
.sommaire { list-style: none; margin: 0; padding: 0; }
.sommaire li { padding: .8rem 0; border-bottom: 1px solid var(--filet); }
.sommaire__titre {
  display: block;
  font: 650 1.05rem/1.35 "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--nuit);
  text-decoration: none;
}
.sommaire__titre:hover { text-decoration: underline; }
.sommaire__resume { display: block; font-size: .95rem; color: var(--gris); margin-top: .2rem; }
.pastille {
  display: inline-block;
  margin-bottom: .3rem;
  padding: .1rem .45rem;
  background: var(--corail);
  color: #fff;
  border-radius: 999px;
  font: 700 .7rem/1.4 "Avenir Next", "Segoe UI", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.voisins { margin-top: 2.5rem; padding: 1rem; background: #fff; border: 1px solid var(--filet); border-radius: 10px; }
.voisins h2 { margin: 0 0 .25rem; font: 700 .95rem/1.3 "Avenir Next", "Segoe UI", system-ui, sans-serif; color: var(--gris); }
.sommaire--court .sommaire__resume { display: none; }
.sommaire--court li { padding: .5rem 0; }

.colophon {
  background: var(--nuit);
  color: #c9c3b3;
  padding: 1.5rem 1rem 2rem;
  font: .9rem/1.55 "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
.colophon p { max-width: 44rem; margin: 0 auto .6rem; }
.colophon a { color: var(--ambre); }
.colophon b { color: #fff; }
.colophon__maj { font-size: .8rem; opacity: .8; }

@media (min-width: 48rem) {
  .texte table { font-size: .95rem; }
  .ruban { padding: 1.5rem 2rem 0; }
  .sigle { font-size: 2rem; }
  .texte h1 { font-size: 2.2rem; }
  .colonne { padding-top: 2rem; }
}
