/* Rives sonores — sound-delta.eu. Mobile first; no web fonts, no external assets. */
:root {
  --encre: #17262a;
  --fleuve: #123c44;
  --fleuve-clair: #2f6f78;
  --limon: #c8782a;
  --papier: #f5f2ea;
  --sable: #e9e2d2;
  --gris: #5d6b6e;
  --mesure: 40rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 1.0625rem/1.65 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
a { color: var(--fleuve-clair); text-underline-offset: .18em; }
a:hover, a:focus-visible { color: var(--limon); }

/* header: a band of water with a drawn waveform */
.berge-haut { background: var(--fleuve); color: #eef3f1; }
.berge-haut__in { max-width: 62rem; margin: 0 auto; padding: 1.1rem 1.1rem .6rem; }
.sigle { display: inline-flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; }
.sigle__onde {
  width: 2.4rem; height: 1.5rem; flex: none;
  background:
    linear-gradient(var(--limon), var(--limon)) 0 50% / 3px 30% no-repeat,
    linear-gradient(var(--limon), var(--limon)) 25% 50% / 3px 80% no-repeat,
    linear-gradient(var(--limon), var(--limon)) 50% 50% / 3px 100% no-repeat,
    linear-gradient(var(--limon), var(--limon)) 75% 50% / 3px 55% no-repeat,
    linear-gradient(var(--limon), var(--limon)) 100% 50% / 3px 20% no-repeat;
}
.sigle__nom { font: 600 1.45rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .02em; }
.sigle__nom em { font-style: normal; font-weight: 300; color: #b9d6d3; }
.devise { margin: .45rem 0 0; font: .85rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: #b9d6d3; }
.chenal {
  max-width: 62rem; margin: 0 auto; padding: 0 .6rem .2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  font: .92rem/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.chenal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.chenal a { display: block; padding: .6rem .5rem; color: #eef3f1; text-decoration: none; border-bottom: 3px solid transparent; }
.chenal a[aria-current="page"], .chenal .ici { border-bottom-color: var(--limon); }
.chenal a:hover { color: #fff; border-bottom-color: #b9d6d3; }
.chenal__langue { font-size: .82rem; opacity: .85; }

/* main column */
.courant { max-width: 62rem; margin: 0 auto; padding: 1.2rem 1.1rem 2.5rem; }
.fil { font: .85rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--gris); margin-bottom: 1rem; }
.fil a { color: var(--gris); }
.texte { max-width: var(--mesure); }
.texte h1 { font: 700 1.85rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fleuve); margin: .2rem 0 .8rem; }
.texte h2 { font: 650 1.2rem/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fleuve); margin: 2rem 0 .5rem; }
.surtitre { font: 600 .78rem/1 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--limon); margin: .5rem 0 0; }
.chapo { font-size: 1.16rem; line-height: 1.55; color: #2b3b3f; border-left: 4px solid var(--limon); padding-left: .9rem; }
.avertissement { background: var(--sable); padding: .7rem .9rem; font-size: .95rem; border-radius: 4px; }
.texte ul { padding-left: 1.2rem; }
.texte li { margin: .35rem 0; }
.glossaire dt { font: 650 1.02rem/1.3 system-ui, sans-serif; color: var(--fleuve); margin-top: 1.1rem; }
.glossaire dd { margin: .2rem 0 0; padding-left: .9rem; border-left: 2px solid var(--sable); }

/* section titles + cards ("escales") */
.filet {
  font: 650 1.05rem/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fleuve);
  margin: 2.2rem 0 .8rem; padding-top: .8rem; border-top: 1px solid #cfc6b2;
}
.filet a { color: inherit; text-decoration: none; }
.bras__num { display: inline-block; background: var(--fleuve); color: #fff; font-size: .75rem; padding: .15rem .45rem; border-radius: 2px; margin-right: .35rem; vertical-align: .1em; }
.escales { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.escale a {
  display: block; height: 100%; padding: .9rem 1rem; background: #fff; border: 1px solid #ddd5c3;
  border-bottom: 3px solid var(--fleuve-clair); color: var(--encre); text-decoration: none;
}
.escale a:hover { border-bottom-color: var(--limon); }
.escale__mot { display: block; font: 600 .72rem/1 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--limon); margin-bottom: .4rem; }
.escale__titre { display: block; font: 650 1.02rem/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fleuve); }
.escale__chapo { display: block; margin-top: .35rem; font-size: .93rem; line-height: 1.45; color: var(--gris); }
.affluents { margin-top: 2.5rem; padding-top: .5rem; border-top: 2px dashed #cfc6b2; }
.affluents h2 { font: 650 1rem/1.3 system-ui, sans-serif; color: var(--gris); }
.escales--serrees .escale a { padding: .7rem .85rem; }

/* footer */
.berge-bas { background: var(--encre); color: #c9d3d1; font: .88rem/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
.berge-bas__in { max-width: 62rem; margin: 0 auto; padding: 1.4rem 1.1rem 2rem; }
.berge-bas a { color: #e9c79f; }

@media (min-width: 40rem) {
  .escales { grid-template-columns: repeat(2, 1fr); }
  .texte h1 { font-size: 2.2rem; }
  .chenal { padding: 0 .6rem .3rem; }
}
@media (min-width: 64rem) {
  .escales:not(.escales--serrees) { grid-template-columns: repeat(3, 1fr); }
}
