/* =========================================================================
   Birdflow v2, sections, dans l'ordre de la page
   ========================================================================= */

/* Bilinguisme des fragments statiques générés (tableaux, doubles pages, crédits) */
html:not([lang="en"]) [data-l="en"],
html[lang="en"] [data-l="fr"] { display: none !important; }

/* ===================================================================== INTRO */
.intro {
  position: fixed;
  inset: 0;
  z-index: var(--z-intro);
  pointer-events: auto;
  color: var(--encre);
}
.intro__stores { position: absolute; inset: 0; }
.intro__stores i {
  position: absolute;
  top: 0; bottom: 0;
  background: var(--papier);
  transform-origin: 50% 0;
}
.intro__filets { position: absolute; top: 0; bottom: 0; left: var(--marge); right: var(--marge); pointer-events: none; }
.intro__filets i {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  margin-left: -0.5px;
  left: calc(100% / var(--colonnes) * var(--i));
  background: var(--trait);
  transform-origin: 50% 0;
}
@media (min-width: 768px) and (max-width: 1023px) { .intro__filets i:nth-child(n+10) { display: none; } }
@media (max-width: 767px) { .intro__filets i:nth-child(n+6) { display: none; } }
.intro__coord {
  position: absolute;
  top: calc(var(--entete) + 24px);
  left: calc(var(--marge) + var(--gouttiere));
  color: var(--encre);
  white-space: pre;
}
.intro__carte {
  position: absolute;
  left: calc(var(--marge) + var(--col) * 3);
  width: calc(var(--col) * 8);
  top: 50%;
  transform: translateY(-58%);
  height: auto;
  overflow: visible;
}
.intro__cotes path {
  fill: none;
  stroke: var(--encre);
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.intro__trajet-pointille { fill: none; stroke: var(--ocre); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: 0.55; }
.intro__trajet-plein { fill: none; stroke: var(--ocre); stroke-width: 1.6; }
.intro__oiseau path { fill: var(--encre); }
.intro__km-milieu { font-family: var(--f-mono); font-weight: 500; font-size: 13px; letter-spacing: var(--a-etiquette); fill: var(--graphite); }
.intro__ville { font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; letter-spacing: var(--a-etiquette); fill: var(--graphite); }
.intro__point { fill: var(--encre); }
.intro__decompte {
  position: absolute;
  left: calc(var(--marge) + var(--gouttiere));
  bottom: 8svh;
  display: flex;
  align-items: flex-start;
  gap: 0.08em;
  font-family: var(--f-affiche);
  font-weight: 200;
  font-size: clamp(96px, 18vw, 280px);
  line-height: 0.82;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--encre);
  overflow: hidden;
  padding-top: 0.08em;
}
.intro__nombre { display: inline-flex; }
.intro__unite {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: var(--a-etiquette);
  margin-top: 0.4em;
  line-height: 1;
}
.intro__legende {
  position: absolute;
  left: calc(var(--marge) + var(--col) * 6 + var(--gouttiere));
  bottom: calc(8svh + 8px);
  max-width: calc(var(--col) * 4);
}
.intro__passer {
  position: absolute;
  right: calc(var(--marge) + var(--gouttiere));
  bottom: calc(8svh - 4px);
  background: var(--papier);
}
@media (max-width: 767px) {
  .intro__carte { left: var(--marge); width: calc(100vw - var(--marge) * 2); top: 34%; transform: translateY(-50%); }
  .intro__legende { left: var(--marge); right: var(--marge); bottom: calc(8svh + 0.9 * clamp(96px, 18vw, 280px) + 24px); max-width: none; }
  .intro__passer { bottom: auto; top: calc(var(--entete) + 12px); right: var(--marge); }
  .intro__coord { left: var(--marge); }
  .intro__decompte { left: var(--marge); font-size: 30vw; }
}

/* ===================================================================== OUVERTURE */
.ouverture { position: relative; }
.ouverture__photo { margin: 0; overflow: hidden; background: #E6E3DC; }
.ouverture__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: var(--photo-filtre);
  transform-origin: 50% 50%;
}
.ouverture__photo::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: var(--col);
  width: calc(var(--col) * 7 + 1px);
  background-image: repeating-linear-gradient(to right, rgb(255 255 255 / 0.16) 0 1px, transparent 1px var(--col));
  pointer-events: none;
  z-index: 3;
}
.ouverture__titre { margin: 0; z-index: 1; color: var(--encre); }
.ouverture__lignes,
.ouverture__titre-copie {
  display: block;
  font-family: var(--f-affiche);
  font-weight: 300;
  font-size: var(--t-affiche);
  line-height: var(--i-serre);
  letter-spacing: var(--a-affiche);
  white-space: nowrap;
}
.o-l {
  display: block;
  overflow: hidden;
  padding-top: 0.14em;
  margin-top: -0.14em;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
.o-l__in { display: block; }
.o-l--2 { margin-left: var(--col); font-weight: 200; font-style: normal; }
.ouverture__titre-copie {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  color: var(--sur-photo);
  pointer-events: none;
}
.ouverture__legende {
  position: absolute;
  right: 16px;
  bottom: 24px;
  z-index: 4;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0;
  color: rgb(255 255 255 / 0.8);
  white-space: nowrap;
}
.ouverture__legende i { font-family: var(--f-texte); letter-spacing: 0; }
.ouverture__releve { color: var(--encre); }

.fiche-saison {
  padding: 24px;
  background: var(--papier-voile);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--encre);
  color: var(--encre);
  transition: transform var(--d-survol) var(--c-interface), border-color var(--d-survol) var(--c-interface);
}
.fiche-saison:hover { transform: translateY(-4px); border-color: var(--rose-texte); }
.fiche-saison > .etiquette:first-child { color: var(--encre); }
.fiche-saison__titre {
  margin-top: 14px;
  font-family: var(--f-affiche);
  font-weight: 300;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.fiche-saison__texte { margin-top: 12px; font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.fiche-saison hr { margin: 18px 0 14px; }
.fiche-saison__espece { margin-top: 8px; font-size: 20px; font-weight: 500; line-height: 1.2; }
.fiche-saison__espece .donnee { font-weight: 400; color: var(--graphite); margin-left: 4px; }
.fiche-saison .latin { font-size: 16px; }
.fiche-saison__lieu { color: var(--graphite); margin-top: 2px; }
.fiche-saison .lien { margin-top: 6px; }
.fiche-saison.est-compacte .fiche-saison__texte { display: none; }

.ouverture__descendre {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: var(--a-etiquette);
  text-transform: none;
  color: var(--encre);
}
.ouverture__fil { position: relative; display: block; width: 1px; height: 48px; background: var(--trait); overflow: hidden; }
.ouverture__fil i {
  position: absolute;
  inset: 0;
  background: var(--encre);
  transform-origin: 50% 0;
  animation: fil 2.4s var(--c-rideau) infinite;
}
@keyframes fil {
  0% { transform: scaleY(0); transform-origin: 50% 0; }
  50% { transform: scaleY(1); transform-origin: 50% 0; }
  50.01% { transform: scaleY(1); transform-origin: 50% 100%; }
  100% { transform: scaleY(0); transform-origin: 50% 100%; }
}

@media (min-width: 1024px) {
  .ouverture { height: 100svh; min-height: 720px; }
  .ouverture__photo {
    position: absolute;
    top: 0; right: 0;
    left: calc(var(--marge) + var(--col) * 4);
    height: 86svh;
    z-index: 2;
  }
  .ouverture__photo img { transform: scale(1.06); }
  .ouverture__titre { position: absolute; left: calc(var(--marge) + var(--gouttiere)); bottom: 6svh; }
  .ouverture__releve { position: absolute; top: calc(var(--entete) + 72px); left: calc(var(--marge) + var(--gouttiere)); z-index: 3; }
  .ouverture__chapeau {
    position: absolute;
    top: calc(var(--entete) + 112px);
    left: calc(var(--marge) + var(--gouttiere));
    width: calc(var(--col) * 4 - 24px);
    z-index: 3;
  }
  .fiche-saison {
    position: absolute;
    top: calc(var(--entete) + 64px);
    left: calc(var(--marge) + var(--col) * 8 + var(--gouttiere));
    width: calc(var(--col) * 4 - 24px);
    z-index: 5;
  }
  .ouverture__descendre { position: absolute; right: calc(var(--marge) + var(--gouttiere)); bottom: 60px; z-index: 3; }
  .ouverture .telescripteur { position: absolute; left: var(--marge); right: var(--marge); bottom: 0; z-index: 6; }
}
@media (min-width: 1280px) {
  /* La fiche se range sur les trois dernières colonnes : les flamants restent visibles entre le chapeau et la fiche */
  .fiche-saison { left: calc(var(--marge) + var(--col) * 9 + var(--gouttiere)); width: calc(var(--col) * 3 - 24px); }
  .ouverture__photo img { object-position: 90% 42%; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .fiche-saison { padding: 18px 20px; }
  .fiche-saison__titre { font-size: 32px; }
}

/* Tablette */
@media (min-width: 768px) and (max-width: 1023px) {
  .ouverture {
    display: grid;
    grid-template-columns: repeat(var(--colonnes), minmax(0, 1fr));
    margin-inline: var(--marge);
    padding-top: calc(var(--entete) + 32px);
    padding-bottom: 32px;
    row-gap: 0;
  }
  .ouverture__releve { grid-column: 1 / -1; grid-row: 1; padding-left: var(--gouttiere); margin-bottom: 24px; }
  .ouverture__photo { grid-column: 3 / -1; grid-row: 2; height: 70svh; position: relative; margin-right: calc(var(--marge) * -1); z-index: 2; }
  .ouverture__photo::after { width: calc(var(--col) * 5 + 1px); }
  .ouverture__titre { grid-column: 1 / -1; grid-row: 2; align-self: end; position: relative; padding-left: var(--gouttiere); margin-bottom: calc(clamp(72px, 13vw, 140px) * -0.62); }
  .ouverture__lignes, .ouverture__titre-copie { font-size: clamp(72px, 13vw, 140px); }
  .ouverture__chapeau { grid-column: 1 / span 6; grid-row: 3; margin-top: calc(clamp(72px, 13vw, 140px) * 0.9); padding-left: var(--gouttiere); max-width: none; }
  .fiche-saison { grid-column: 1 / span 6; grid-row: 4; margin: 32px 0 0 var(--gouttiere); }
  .ouverture__descendre { display: none; }
  .ouverture .telescripteur { grid-column: 1 / -1; grid-row: 5; margin-top: 40px; }
}

/* Mobile */
@media (max-width: 767px) {
  .ouverture {
    display: flex;
    flex-direction: column;
    margin-inline: var(--marge);
    padding-top: calc(var(--entete) + 24px);
    padding-bottom: 24px;
  }
  .ouverture__releve { order: 1; margin-bottom: 18px; }
  .ouverture__titre { order: 2; position: relative; }
  .ouverture__lignes, .ouverture__titre-copie { font-size: 17vw; white-space: normal; }
  .o-l { white-space: nowrap; }
  .o-l--2 { margin-left: 0; }
  .ouverture__photo { order: 3; position: relative; aspect-ratio: 4 / 5; margin-top: -8.5vw; z-index: 2; }
  .ouverture__photo::after { left: var(--col); width: calc(var(--col) * 3 + 1px); background-image: repeating-linear-gradient(to right, rgb(255 255 255 / 0.12) 0 1px, transparent 1px var(--col)); }
  .ouverture__legende { right: 10px; bottom: 12px; font-size: 13px; }
  .ouverture__chapeau { order: 4; margin-top: 24px; max-width: none; }
  .fiche-saison { order: 5; margin-top: 28px; padding: 20px; }
  .ouverture__descendre { display: none; }
  .ouverture .telescripteur { order: 6; margin-top: 32px; margin-inline: calc(var(--marge) * -1); padding-inline: 0; }
}

/* Repli de la découpe : titre plein encre, voile papier sous chaque ligne */
.decoupe-repli .ouverture__titre-copie { display: none; }
.decoupe-repli .ouverture__titre { z-index: 4; }
.decoupe-repli .o-l__in { background: rgb(255 255 255 / 0.72); width: fit-content; padding-inline: 0.04em; }
:root[data-theme="dark"] .decoupe-repli .o-l__in { background: rgb(15 14 13 / 0.72); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .decoupe-repli .o-l__in { background: rgb(15 14 13 / 0.72); } }

/* ===================================================================== ÉTAT DU CARNET */
.chiffres { padding-block: calc(var(--section) * 0.8) calc(var(--section) * 0.6); }
.chiffres__titre { grid-column: 1 / -1; padding-left: var(--gouttiere); color: var(--encre); }
.chiffres__filet {
  grid-column: 1 / -1;
  display: block;
  height: 1px;
  margin-top: 16px;
  background: var(--encre);
  transform-origin: 0 50%;
}
.chiffres__liste {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.chiffres__liste > div {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 28px var(--gouttiere) 0;
  text-align: right;
}
.chiffres__liste dt {
  margin-top: 14px;
  max-width: 16em;
  font-size: 16px;
  line-height: 1.35;
  color: var(--graphite);
}
.chiffres__liste dd { display: flex; align-items: flex-start; position: relative; }
.chiffres__liste .chiffre { position: relative; display: inline-block; }
.chiffres__liste .appel { margin-left: 2px; margin-top: 0.1em; vertical-align: top; }
.chiffre__anime { position: absolute; inset: 0; text-align: right; }
@media (max-width: 1023px) {
  .chiffres__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffres__liste .chiffre { font-size: clamp(48px, 14vw, 96px); }
}
@media (max-width: 767px) {
  .chiffres__titre { padding-left: 0; }
  .chiffres__liste > div { padding: 24px 8px 0 0; }
  .chiffres__liste dt { font-size: 15px; }
}

/* ===================================================================== CH. 01 RELEVÉS */
.releves { padding-bottom: var(--section); }
.releves__source { grid-column: 7 / span 5; padding-left: var(--gouttiere); margin-top: 20px; display: flex; align-items: center; gap: 10px; }
@media (max-width: 1023px) { .releves__source { grid-column: 3 / -1; } }
@media (max-width: 767px) { .releves__source { grid-column: 1 / -1; padding-left: 0; } }
.releves__corps { align-items: start; }
.releves__colonne { grid-column: 1 / span 4; padding-inline: var(--gouttiere); align-self: stretch; }
.registre { grid-column: 5 / -1; min-width: 0; }

/* La Une */
.une { display: flex; flex-direction: column; gap: 10px; }
.une > .etiquette { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--encre); }
.une__photo { margin: 6px 0 0; position: relative; }
.une__cadre { aspect-ratio: 3 / 4; overflow: hidden; background: var(--trait); }
.une__cadre img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filtre); }
.une__credit { margin-top: 8px; font-family: var(--f-mono); font-size: 12.5px; color: var(--graphite); line-height: 1.4; }
.une .titre-3 { margin-top: 14px; }
.une__donnee { color: var(--graphite); text-transform: none; }
.une__pourquoi { margin-top: 6px; font-size: 16px; line-height: 1.5; }
.une__pourquoi .etiquette { display: block; margin-bottom: 4px; color: var(--rose-texte); }

/* Mini-carte */
.mini-carte {
  position: sticky;
  top: calc(var(--entete) + 24px);
  margin-top: 48px;
}
.mini-carte__svg { width: 100%; height: auto; overflow: visible; }
.mini-carte__svg .mc-tunisie { fill: none; stroke: var(--encre); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mini-carte__svg .mc-voisin { fill: none; stroke: var(--trait); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mini-carte__svg .mc-point { fill: var(--graphite); transition: fill 200ms linear; }
.mini-carte__svg .mc-point.est-actif { fill: var(--rose); }
.mini-carte__svg .mc-anneau { fill: none; stroke: var(--rose); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mini-carte__svg .mc-nom { font-family: var(--f-mono); font-size: 12.5px; fill: var(--encre); letter-spacing: 0; }
.mini-carte__sans { margin-top: 10px; color: var(--rose-texte); }
.mini-carte__legende { margin-top: 10px; font-family: var(--f-mono); font-size: 12.5px; color: var(--graphite); }
@media (max-width: 1023px) {
  .releves__colonne { grid-column: 1 / -1; padding-inline: var(--gouttiere); margin-bottom: 48px; }
  .une { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .une > * { grid-column: 2; }
  .une > .une__photo { grid-column: 1; grid-row: 1 / span 8; }
  .mini-carte { display: none; }
  .registre { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .releves__colonne { padding-inline: 0; }
  .une { display: flex; }
}

/* Outils du registre */
.registre__outils {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  row-gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--encre);
  background: var(--papier);
}
.onglets { grid-column: 1 / span 4; position: relative; display: flex; gap: 28px; padding-left: var(--gouttiere); align-self: end; }
.onglets button {
  min-height: 44px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: var(--a-etiquette);
  text-transform: none;
  color: var(--graphite);
  transition: color var(--d-etat) var(--c-interface);
}
.onglets button .donnee { font-size: 13px; margin-left: 4px; }
.onglets button[aria-selected="true"] { color: var(--encre); }
.onglets__trait {
  position: absolute;
  left: 0; bottom: 0;
  width: 100px; height: 2px;
  background: var(--rose);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform var(--d-etat) var(--c-interface);
}
.recherche { grid-column: 5 / -1; position: relative; padding-right: var(--gouttiere); padding-left: var(--gouttiere); }
.recherche label, .atlas__index > label { display: block; margin-bottom: 6px; }
.recherche__champ { position: relative; }
.recherche__loupe { position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; fill: none; stroke: var(--graphite); stroke-width: 1.25; pointer-events: none; }
.recherche__champ input {
  width: 100%;
  height: 44px;
  padding: 0 0 0 24px;
  border: 0;
  border-bottom: 1px solid var(--trait-fort);
  border-radius: 0;
  background: transparent;
  font-family: var(--f-texte);
  font-size: 17px;
  color: var(--encre);
  -webkit-appearance: none;
  appearance: none;
}
.recherche__champ input::placeholder { color: var(--graphite); opacity: 1; }
.recherche__champ input:focus-visible { outline: none; border-bottom-color: var(--rose-texte); box-shadow: 0 1px 0 var(--rose-texte); }
.recherche__champ input::-webkit-search-cancel-button { -webkit-appearance: none; }
.suggestions {
  position: absolute;
  left: var(--gouttiere); right: var(--gouttiere);
  top: 100%;
  z-index: var(--z-flottant);
  max-height: 320px;
  overflow-y: auto;
  background: var(--papier-2);
  border: 1px solid var(--encre);
  border-top: 0;
}
.suggestions li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 16px;
}
.suggestions li .latin { font-size: 14px; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--encre); color: var(--papier); }
.suggestions li[aria-selected="true"] .latin, .suggestions li:hover .latin { color: var(--papier); }
.suggestions mark { background: none; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.registre__filtres { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; padding-inline: var(--gouttiere); }
.registre__filtres > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.registre__filtres > div::before {
  content: attr(aria-label);
  flex: none;
  width: 8.5em;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: var(--a-etiquette);
  text-transform: none;
  color: var(--graphite);
}
.registre__actives { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 8px; padding-inline: var(--gouttiere); }
.registre__actives:empty { display: none; }
.registre__compte { padding: 16px var(--gouttiere) 0; color: var(--encre); }

/* Lignes */
.registre__liste { position: relative; }
.registre__jour {
  padding: 28px var(--gouttiere) 10px;
  background: var(--papier);
  border-bottom: 1px solid var(--trait);
  color: var(--encre);
}
.ligne { background: var(--papier); }
.ligne__bouton {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding-block: 10px;
  border-bottom: 1px solid var(--trait);
  background: var(--papier);
  text-align: left;
  transition: transform 260ms var(--c-interface), background-color var(--d-survol) var(--c-interface);
}
.ligne__bouton > * { padding-inline: var(--gouttiere); }
.ligne__heure { grid-column: 1; display: flex; align-items: center; gap: 8px; color: var(--graphite); }
.ligne__notable { width: 6px; height: 6px; background: var(--rose); rotate: 45deg; flex: none; margin-left: -14px; }
.ligne__nom { grid-column: 2 / span 3; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ligne__fr { font-size: 21px; font-weight: 500; line-height: 1.2; }
.ligne__badge {
  display: inline-block;
  margin-left: 8px;
  vertical-align: 3px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: var(--a-etiquette);
  text-transform: none;
  color: var(--rose-texte);
}
.ligne__latin { font-size: 15px; line-height: 1.3; }
.ligne__lieu { grid-column: 5 / span 2; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ligne__lieu .donnee {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ligne__region { font-size: 14px; color: var(--graphite); line-height: 1.3; }
.ligne__batons { grid-column: 7; color: var(--encre); }
.ligne__batons svg { height: 16px; width: auto; max-width: 100%; }
.ligne__batons line { stroke: currentColor; stroke-width: 1.25; }
.ligne__effectif {
  grid-column: 8;
  justify-self: end;
  font-family: var(--f-affiche);
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
@media (hover: hover) and (pointer: fine) {
  .ligne__bouton:hover { transform: translateX(12px); }
}
.ligne__bouton:focus-visible { transform: translateX(12px); outline-offset: -2px; }
.registre__vide { padding: 40px var(--gouttiere); background: var(--papier); border-bottom: 1px solid var(--trait); }
.registre__vide p { font-size: 18px; margin-bottom: 12px; }
.registre__pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px var(--gouttiere) 0;
}

.vignette-flottante {
  position: fixed;
  left: 0; top: 0;
  z-index: var(--z-flottant);
  width: 240px; height: 300px;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  background: var(--trait);
  transition: opacity 200ms linear;
}
.vignette-flottante.est-visible { opacity: 1; }
.vignette-flottante img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filtre); }
@media (hover: none), (pointer: coarse) { .vignette-flottante { display: none; } }

@media (max-width: 1023px) {
  .registre__outils, .ligne__bouton { grid-template-columns: repeat(var(--colonnes), minmax(0, 1fr)); }
  .onglets { grid-column: 1 / span 4; }
  .recherche { grid-column: 5 / -1; }
  .ligne__heure { grid-column: 1; }
  .ligne__nom { grid-column: 2 / span 3; }
  .ligne__lieu { grid-column: 5 / span 2; }
  .ligne__batons { grid-column: 7; }
  .ligne__effectif { grid-column: 8; }
}
@media (max-width: 767px) {
  .registre__outils { display: flex; flex-direction: column; gap: 12px; }
  .recherche { order: -1; padding-inline: 0; }
  .suggestions { left: 0; right: 0; }
  .onglets { padding-left: 0; }
  .registre__filtres {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    gap: 0 16px;
    padding-inline: 0;
    margin-inline: calc(var(--marge) * -1);
    padding-left: var(--marge);
    padding-right: 48px;
    mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
    scrollbar-width: none;
  }
  .registre__filtres::-webkit-scrollbar { display: none; }
  .registre__filtres { flex-direction: row; }
  .registre__filtres > div { flex-wrap: nowrap; }
  .registre__filtres > div::before { width: auto; margin-right: 6px; }
  .registre__filtres .puce { scroll-snap-align: start; }
  .registre__actives { padding-inline: 0; }
  .registre__compte, .registre__jour { padding-inline: 0; }
  .ligne__bouton {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "nom effectif" "meta meta";
    min-height: 64px;
    padding-block: 12px;
    column-gap: 12px;
  }
  .ligne__bouton > * { padding-inline: 0; }
  .ligne__nom { grid-area: nom; }
  .ligne__latin { display: none; }
  .ligne__effectif { grid-area: effectif; font-size: 32px; align-self: start; }
  .ligne__heure, .ligne__lieu .ligne__region, .ligne__batons { display: none; }
  .ligne__lieu { grid-area: meta; }
  .ligne__lieu .donnee { font-size: 13px; -webkit-line-clamp: 3; text-transform: none; letter-spacing: 0.02em; font-weight: 400; color: var(--graphite); }
  .ligne__fr { font-size: 19px; }
  .registre__pied { padding-inline: 0; flex-wrap: wrap; }
}

/* ===================================================================== CH. 02 PLANCHES */
.planches { position: relative; }
.vignettes { margin-inline: var(--marge); padding: 0 var(--gouttiere) 28px; }
.vignettes ol { display: flex; flex-wrap: wrap; gap: 8px 4px; }
.vignettes button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 52px;
  padding: 4px 2px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--graphite);
}
.vignettes img {
  width: 44px; height: 44px;
  border-radius: var(--r-rond);
  object-fit: cover;
  filter: grayscale(0.7) contrast(1.02);
  outline: 1px solid transparent;
  outline-offset: 3px;
  transition: filter var(--d-survol) var(--c-interface), outline-color var(--d-survol) var(--c-interface);
}
.vignettes button:hover img { filter: none; }
.vignettes button[aria-current="true"] { color: var(--rose-texte); }
.vignettes button[aria-current="true"] img { filter: none; outline-color: var(--encre); }

.scene { position: relative; touch-action: pan-y; }
.planche { color: var(--encre); }
.planche__photo { margin: 0; overflow: hidden; background: #24211E; }
.planche__photo picture { display: block; width: 100%; height: 100%; }
.planche__photo picture img, .planche__photo > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--photo-filtre);
}
.planche__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(15 14 13 / 0.45), transparent 40%);
  pointer-events: none;
  z-index: 1;
}
.planche__filets {
  position: absolute;
  top: 0; bottom: 0;
  pointer-events: none;
  z-index: 2;
  background-image: repeating-linear-gradient(to right, rgb(255 255 255 / 0.16) 0 1px, transparent 1px var(--col));
}
.planche__nom, .planche__nom-copie {
  font-family: var(--f-affiche);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.03em;
  white-space: nowrap;
  margin: 0;
}
.planche__nom { font-size: var(--fit, 96px); color: var(--encre); }
.planche__nom .ligne-nom { display: block; }
.planche__nom-copie {
  position: absolute;
  left: 0; top: 0;
  z-index: 3;
  font-size: var(--fit, 96px);
  color: var(--sur-photo);
  pointer-events: none;
}
.planche__nom-copie .ligne-nom { display: block; }
.planche__latin { font-size: 24px; color: var(--sur-photo); font-style: normal; }
.planche__en { color: var(--sur-photo); font-size: 13px; letter-spacing: 0; text-transform: none; margin-top: 4px; }
.planche__compteur { position: absolute; z-index: 3; color: var(--sur-photo); display: flex; align-items: baseline; gap: 6px; }
.planche__num { font-family: var(--f-affiche); font-weight: 200; font-size: 56px; line-height: 1; overflow: hidden; display: inline-flex; }
.planche__total { font-family: var(--f-mono); font-size: 13px; }
.planche__credit {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 24px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0;
  color: rgb(255 255 255 / 0.8);
  white-space: nowrap;
  max-height: calc(100% - 48px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.planche__video-pause {
  position: absolute;
  z-index: 4;
  right: 40px;
  bottom: 14px;
  min-height: 44px;
  padding: 0 10px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: var(--a-etiquette);
  text-transform: none;
  color: var(--sur-photo);
  background: rgb(15 14 13 / 0.4);
}
.planche__medaillon {
  position: absolute;
  z-index: 3;
  margin: 0;
}
.planche__medaillon .planche__medaillon-cadre { aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--sur-photo); }
.planche__medaillon img { width: 100%; height: 100%; object-fit: cover; }
.planche__medaillon figcaption { margin-top: 6px; font-family: var(--f-mono); font-size: 13px; color: var(--sur-photo); line-height: 1.4; }

.planche__fiche { background: var(--papier-2); color: var(--encre); }
.annotations { border-top: 1px solid var(--encre); }
.annotations > div {
  display: grid;
  grid-template-columns: minmax(7.5em, 38%) 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--trait);
}
.annotations dt {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: var(--a-etiquette);
  text-transform: none;
  color: var(--graphite);
}
.annotations dd { font-size: 16px; line-height: 1.35; }
.annotations dd .exemple { margin-left: 6px; }
.annotations .gbif-source { display: block; margin-top: 2px; font-family: var(--f-mono); font-size: 13px; letter-spacing: var(--a-etiquette); color: var(--graphite); text-transform: none; }
.planche__texte { margin-top: 18px; font-size: 16px; line-height: 1.55; text-wrap: pretty; }
html[lang="fr"] .planche__texte { hyphens: auto; }
.frise-mois { margin-top: 22px; }
.frise-mois__grille {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  height: 40px;
  border-bottom: 1px solid var(--trait-fort);
}
.fm-case { position: relative; cursor: default; }
.fm-case::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 1px; height: 4px; background: var(--trait-fort); }
.fm-case.fm-courant { background: var(--rose-lavis); }
.fm-pheno { position: absolute; left: 0; right: 0; top: 22px; height: var(--h); transform: translateY(-50%); background: var(--c, var(--encre)); }
.fm-gbif { position: absolute; left: 50%; bottom: 0; width: 2px; margin-left: -1px; height: var(--h); background: var(--trait-fort); }
.frise-mois__initiales { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 6px; font-family: var(--f-mono); font-size: 13px; text-align: center; color: var(--graphite); }
.frise-mois__initiales b { font-weight: 500; }
.frise-mois__initiales .fm-courant-t { color: var(--rose-texte); }
.frise-mois figcaption { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-family: var(--f-mono); font-size: 13px; letter-spacing: var(--a-etiquette); color: var(--graphite); text-transform: none; }
.frise-mois .fm-l-pheno::before { content: ""; display: inline-block; width: 12px; height: 5px; margin-right: 6px; vertical-align: 1px; background: var(--c, var(--encre)); }
.frise-mois .fm-l-gbif::before { content: ""; display: inline-block; width: 2px; height: 10px; margin-right: 6px; vertical-align: -1px; background: var(--trait-fort); }
.planche .lecteur { margin-top: 20px; }
.planche__liens { margin-top: 10px; }

.scene__commandes { display: flex; gap: 8px; }
.scene__progression { display: flex; gap: 4px; pointer-events: none; }
.scene__progression i { flex: 1; height: 2px; background: rgb(255 255 255 / 0.3); transition: background-color var(--d-etat) linear; }
.scene__progression i.est-courant { background: rgb(255 255 255 / 1); }
.scene__apercu { overflow: hidden; background: #1A1816; }
.scene__apercu img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.6) brightness(0.6); transition: filter var(--d-survol) var(--c-interface); }
.scene__suivante {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 2;
}
.scene__languette {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  background: var(--rose);
  color: var(--papier);
  transition: transform var(--d-survol) var(--c-interface);
}
.scene__languette svg { width: 16px; height: 16px; }
.scene__suivante-nom {
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: var(--a-etiquette);
  text-transform: none;
  color: var(--sur-photo);
  max-height: 34svh;
  overflow: hidden;
  white-space: nowrap;
}
.scene__apercu:hover img { filter: grayscale(0.6) brightness(0.8); }
.scene__apercu:hover .scene__languette { transform: translateX(6px); }
.bande {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 0;
  background-repeat: no-repeat;
  pointer-events: none;
}
.evitement-local {
  position: absolute;
  left: var(--marge);
  bottom: 0;
  z-index: 9;
  padding: 10px 14px;
  background: var(--encre);
  color: var(--papier);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: var(--a-etiquette);
  text-transform: none;
  transform: translateY(150%);
  opacity: 0;
}
.evitement-local:focus-visible { transform: none; opacity: 1; }

@media (min-width: 768px) {
  .scene { height: 100svh; min-height: 680px; overflow: hidden; }
  .planche { position: absolute; inset: 0; visibility: hidden; }
  .planche.est-courante, .planche.en-transition { visibility: visible; }
  .planche__photo {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    right: calc(var(--marge) + var(--col) * 5);
    z-index: 4;
  }
  .planche__filets { left: calc(var(--marge) + var(--col)); width: calc(var(--col) * 6 + 1px); }
  .planche__compteur { top: calc(var(--entete) + 24px); left: calc(var(--marge) + var(--gouttiere)); }
  .planche__tete { position: absolute; left: calc(var(--marge) + var(--gouttiere)); bottom: 13svh; z-index: 3; pointer-events: none; }
  .planche__sous {
    position: absolute;
    left: calc(var(--marge) + var(--gouttiere));
    bottom: 6svh;
    width: calc(var(--col) * 6 - var(--gouttiere) * 2);
    z-index: 5;
    pointer-events: none;
  }
  .planche__medaillon { left: calc(var(--marge) + var(--col) * 4 + var(--gouttiere)); top: calc(var(--entete) + 24px); width: calc(var(--col) * 2 - var(--gouttiere) * 2); }
  .planche__fiche {
    position: absolute;
    top: 0; bottom: 0;
    left: calc(var(--marge) + var(--col) * 7);
    width: calc(var(--col) * 4);
    z-index: 1;
  }
  .planche__defile {
    position: absolute;
    top: 0; left: 0; right: 0;
    bottom: var(--fiche-bas, 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: calc(var(--entete) + 32px) var(--gouttiere) 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--trait-fort) transparent;
  }
  .scene__commandes { position: absolute; z-index: 7; left: calc(var(--marge) + var(--col) * 7 + var(--gouttiere)); bottom: 24px; }
  .scene__progression { position: absolute; z-index: 7; left: calc(var(--marge) + var(--gouttiere)); width: calc(var(--col) * 7 - var(--gouttiere) * 2 - var(--marge)); bottom: 24px; }
  .scene__apercu { position: absolute; top: 0; bottom: 0; right: 0; left: calc(var(--marge) + var(--col) * 11); z-index: 2; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .planche__photo { right: calc(var(--marge) + var(--col) * 3); }
  .planche__filets { width: calc(var(--col) * 4 + 1px); }
  .planche__fiche { left: calc(var(--marge) + var(--col) * 5); width: calc(var(--col) * 3 + var(--marge)); }
  .planche__sous { width: calc(var(--col) * 4 - var(--gouttiere) * 2); }
  .scene__commandes { left: calc(var(--marge) + var(--col) * 5 + var(--gouttiere)); }
  .scene__progression { width: calc(var(--col) * 5 - var(--gouttiere) * 2 - var(--marge)); }
  .scene__apercu { left: auto; top: auto; bottom: 64px; right: calc(var(--marge) + var(--col) * 3 + 16px); width: 56px; height: 56px; background: none; overflow: visible; }
  .scene__apercu img, .scene__suivante-nom { display: none; }
  .planche__medaillon { left: calc(var(--marge) + var(--col) * 3 + var(--gouttiere)); }
}
@media (max-width: 767px) {
  .vignettes { position: sticky; top: var(--entete); z-index: 8; background: var(--papier); margin: 0; padding: 8px var(--marge); border-bottom: 1px solid var(--trait); transition: transform var(--d-etat) var(--c-interface); }
  body.entete-masquee .vignettes { transform: translateY(calc(var(--entete) * -1)); }
  .vignettes ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 2px; padding: 6px 4px; }
  .vignettes ol::-webkit-scrollbar { display: none; }
  .vignettes button { min-width: 48px; }
  .vignettes img { width: 36px; height: 36px; }
  .scene {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 24px var(--marge) 32px;
    scroll-padding-inline: var(--marge);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    touch-action: auto;
  }
  .scene::-webkit-scrollbar { display: none; }
  .planche {
    position: relative;
    flex: none;
    width: calc(100vw - 32px - 24px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
  }
  .planche__photo { position: relative; height: 60svh; z-index: 2; }
  .planche__filets { display: none; }
  .planche__compteur { top: 14px; left: 14px; }
  .planche__num { font-size: 44px; }
  .planche__tete { position: absolute; left: 0; top: calc(60svh - var(--nom-dessus, 60px)); z-index: 1; pointer-events: none; }
  .planche__sous { position: absolute; left: 14px; right: 40px; top: calc(60svh - var(--nom-dessus, 60px) - 64px); z-index: 4; pointer-events: none; }
  .planche__latin { font-size: 19px; }
  .planche__medaillon { right: 14px; top: 14px; width: 30%; }
  .planche__medaillon figcaption { display: none; }
  .planche__fiche { background: none; margin-top: calc(var(--nom-dessous, 40px) + 16px); }
  .planche__defile { padding: 0; }
  .scene__commandes, .scene__progression, .scene__apercu { display: none; }
  .planche__credit { font-size: 13px; right: 8px; bottom: 12px; }
  .planche__video-pause { display: none; }
}

/* ===================================================================== CH. 03 PASSAGE */
.passage { position: relative; color: var(--nuit-encre); }
.passage__tete .tete__chapeau { grid-column: 6 / span 5; }
.passage__vignette { grid-column: 11 / span 2; grid-row: 3; margin: 24px 0 0; padding-left: var(--gouttiere); padding-right: var(--gouttiere); align-self: start; }
.passage__vignette img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: 52% 50%; }
.passage__vignette figcaption { margin-top: 8px; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.4; color: var(--nuit-graphite); }
@media (max-width: 1023px) {
  .passage__tete .tete__chapeau { grid-column: 3 / -1; }
  .passage__vignette { display: none; }
}
@media (max-width: 767px) { .passage__tete .tete__chapeau { grid-column: 1 / -1; } }

.passage__scene { position: relative; }
.passage__cadre {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  color: var(--nuit-encre);
  background: #0F0E0D;
}
.passage__cadre .carte__affiche { color: #2A2622; }
.passage__cadre .carte__affiche path { stroke: #4A443D; }
.passage__cadre .carte__attribution { color: var(--nuit-graphite); }
.passage__etapes { position: relative; margin-top: -100svh; pointer-events: none; z-index: 3; }
.etape {
  min-height: 100svh;
  display: flex;
  align-items: center;
  margin-inline: var(--marge);
  padding-block: 12svh;
}
.etape[data-etape="5"] { align-items: flex-start; padding-top: calc(var(--entete) + 48px); }
.etape__carte {
  width: calc(var(--col) * 4 - var(--gouttiere));
  margin-left: var(--gouttiere);
  padding: 24px;
  background: rgb(15 14 13 / 0.80);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--nuit-trait);
  pointer-events: auto;
  color: var(--nuit-encre);
}
.etape__photo { margin: -24px -24px 20px; }
.etape__photo img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; object-position: 60% 55%; filter: saturate(0.9) brightness(0.92); }
.etape__photo figcaption { padding: 8px 24px 0; font-family: var(--f-mono); font-size: 12.5px; color: var(--nuit-graphite); }
.etape__num { color: var(--nuit-graphite); }
.etape__titre {
  margin-top: 12px;
  font-family: var(--f-affiche);
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--nuit-encre);
  text-wrap: balance;
}
.etape__texte { margin-top: 14px; font-size: 17px; line-height: 1.55; text-wrap: pretty; }
html[lang="fr"] .etape__texte { hyphens: auto; }
.etape__donnees { margin-top: 14px; font-size: 13px; color: var(--nuit-graphite); letter-spacing: 0; }
.etape__encart { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--nuit-trait-fort); font-size: 15px; line-height: 1.5; }
.etape__encart .etiquette { margin-bottom: 6px; color: var(--nuit-graphite); }

.passage__infobulle {
  position: absolute;
  left: 0; top: 0;
  z-index: 6;
  padding: 6px 8px;
  background: rgb(15 14 13 / 0.92);
  border: 1px solid var(--nuit-trait-fort);
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--nuit-encre);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}
.passage__infobulle.est-visible { opacity: 1; }
.passage__lecture {
  position: absolute;
  left: var(--marge);
  right: var(--marge);
  bottom: 28px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(var(--colonnes), minmax(0, 1fr));
  align-items: end;
  row-gap: 14px;
  pointer-events: none;
}
.passage__lecture > * { pointer-events: auto; }
.passage__date {
  grid-column: 1 / span 6;
  padding-left: var(--gouttiere);
  font-family: var(--f-affiche);
  font-weight: 200;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  color: var(--nuit-encre);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
}
.legende-balises {
  grid-column: 9 / -1;
  grid-row: 1;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--nuit-trait);
  background: rgb(15 14 13 / 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  justify-self: end;
  min-width: 260px;
}
.legende-balises legend { padding: 0 6px; margin-left: -6px; color: var(--nuit-graphite); }
.legende-balises label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  cursor: pointer;
}
.legende-balises input { width: 16px; height: 16px; margin: 0; accent-color: var(--nuit-rose); }
.legende-balises .donnee { margin-left: auto; font-size: 13px; color: var(--nuit-graphite); }
.pastille { width: 14px; height: 3px; background: var(--c); flex: none; }
.lecture {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px var(--gouttiere);
  background: rgb(15 14 13 / 0.82);
  border: 1px solid var(--nuit-trait);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lecture__bouton { min-width: 116px; }
.lecture__icone { width: 12px; height: 12px; fill: currentColor; }
.lecture__vitesses { display: flex; gap: 4px; }
.frise { position: relative; height: 48px; }
.frise__graduations { position: absolute; inset: 0; width: 100%; height: 48px; overflow: visible; }
.frise__graduations text { font-family: var(--f-mono); font-size: 12.5px; fill: var(--nuit-graphite); }
.frise__graduations line { stroke: var(--nuit-trait-fort); stroke-width: 1; }
.frise__graduations .fr-vide-t { font-size: 13px; letter-spacing: var(--a-etiquette); fill: var(--nuit-graphite); }
.frise__tete { position: absolute; top: 6px; left: 0; width: 1px; height: 24px; background: var(--nuit-rose); pointer-events: none; }
.frise__tete::after { content: ""; position: absolute; left: -3.5px; top: -4px; width: 7px; height: 7px; background: var(--nuit-rose); rotate: 45deg; }
.frise__curseur { position: absolute; inset: 0; width: 100%; height: 48px; margin: 0; opacity: 0; cursor: pointer; }
.frise:has(.frise__curseur:focus-visible) { outline: 2px solid var(--nuit-rose-texte); outline-offset: 3px; }
.passage__panneau {
  position: absolute;
  z-index: 5;
  top: calc(var(--entete) + 64px);
  right: calc(var(--marge) + var(--gouttiere));
  width: calc(var(--col) * 3);
  min-width: 280px;
  padding: 20px;
  background: rgb(15 14 13 / 0.92);
  border: 1px solid var(--nuit-trait-fort);
  color: var(--nuit-encre);
}
.passage__panneau h3 { font-family: var(--f-affiche); font-weight: 300; font-size: 32px; line-height: 1; }
.passage__panneau dl { margin-top: 12px; }
.passage__panneau dl > div { display: grid; grid-template-columns: 8em 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--nuit-trait); font-size: 14px; }
.passage__panneau dt { font-family: var(--f-mono); font-size: 13px; letter-spacing: var(--a-etiquette); text-transform: none; color: var(--nuit-graphite); padding-top: 2px; }
.passage__panneau .bouton { position: absolute; top: 10px; right: 10px; min-height: 32px; padding: 0 10px; }
.passage__panneau .bouton::after, .courbe__points button::after { content: ""; position: absolute; inset: -10px; }
.passage__explorer { position: absolute; z-index: 5; top: calc(var(--entete) + 20px); right: calc(var(--marge) + var(--gouttiere)); background: rgb(15 14 13 / 0.7); }
.passage__cadre .carte__zoom button { background: rgb(15 14 13 / 0.9); color: var(--nuit-encre); border-color: var(--nuit-trait); }
.passage__cadre .carte__zoom { top: calc(var(--entete) + 76px); right: calc(var(--marge) + var(--gouttiere)); }
.passage__bas {
  --fond-bas: var(--nuit);
  padding-bottom: var(--section);
  /* Fond opaque, étendu jusqu'aux bords de la fenêtre (l'outset ne crée pas de défilement),
     pour garder le contraste pendant le retour du jour */
  background: var(--fond-bas);
  border-image: conic-gradient(var(--fond-bas) 0 0) fill 0 / / 0 100vmax;
}
:root[data-theme="dark"] .passage__bas { --fond-bas: var(--nuit-profonde); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .passage__bas { --fond-bas: var(--nuit-profonde); } }
.passage__tableau { grid-column: 1 / -1; padding-inline: var(--gouttiere); border-top-color: var(--nuit-trait); color: var(--nuit-encre); }
.passage__tableau th, .passage__tableau td { border-bottom-color: var(--nuit-trait); }
.passage__tableau th { color: var(--nuit-graphite); }
.passage__tableau td { font-size: 16px; }
.passage__tableau .latin { color: var(--nuit-graphite); font-size: 14px; }
.passage__sources { grid-column: 1 / span 8; padding: 40px var(--gouttiere) 0; }
.passage__sources h3 { color: var(--nuit-graphite); margin-bottom: 12px; }
.passage__sources li { font-family: var(--f-mono); font-size: 13px; line-height: 1.6; color: var(--nuit-encre); padding: 6px 0; border-bottom: 1px solid var(--nuit-trait); }
.passage__sources a { text-decoration: underline; text-decoration-color: var(--nuit-trait-fort); text-underline-offset: 3px; }
.passage__sources a:hover { text-decoration-color: currentColor; }
.passage__source-qui { display: block; color: var(--nuit-graphite); }

@media (max-width: 1023px) {
  .passage__lecture { grid-template-columns: 1fr; }
  .passage__date { grid-column: 1; }
  .legende-balises { grid-column: 1; grid-row: auto; justify-self: stretch; }
  .lecture { grid-column: 1; grid-template-columns: auto 1fr; }
  .frise { grid-column: 1 / -1; }
  .passage__panneau { width: auto; left: var(--marge); right: var(--marge); }
}
@media (max-width: 767px) {
  .passage__cadre { height: 70svh; top: var(--entete); transition: transform var(--d-etat) var(--c-interface); }
  body.entete-masquee .passage__cadre { transform: translateY(calc(var(--entete) * -1)); }
  .passage__etapes { margin-top: -30svh; }
  .etape { min-height: 85svh; align-items: flex-end; padding-block: 0 4svh; margin-inline: 0; }
  .etape[data-etape="5"] { align-items: flex-end; padding-top: 0; }
  .etape__carte { width: 100%; margin: 0; background: rgb(15 14 13 / 0.94); padding: 20px var(--marge); }
  .etape__photo { margin: -20px calc(var(--marge) * -1) 16px; }
  .etape__titre { font-size: 34px; }
  .passage__lecture { left: 10px; right: 10px; bottom: 10px; row-gap: 8px; }
  .passage__date { font-size: 36px; padding-left: 4px; }
  /* Légende compacte : la couleur ne doit jamais être seule à distinguer les tracés (§ 12) */
  .legende-balises { display: block; grid-column: 1; padding: 8px 10px; min-width: 0; }
  .legende-balises legend { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .legende-balises__liste { display: flex; gap: 4px 14px; overflow-x: auto; scrollbar-width: none; }
  .legende-balises__liste::-webkit-scrollbar { display: none; }
  .legende-balises label { flex: none; min-height: 44px; font-size: 14px; }
  .legende-balises .donnee { display: none; }
  .lecture { padding: 8px 10px; gap: 8px; }
  .lecture__bouton { min-width: 0; padding: 0 12px; }
  .passage__explorer { top: 12px; right: 10px; }
  .passage__sources { grid-column: 1 / -1; padding-inline: 0; }
  .passage__tableau { padding-inline: 0; }
}

/* Sans le calque animé (sans JavaScript), le chapitre nocturne garde son fond de nuit */
html:not(.anim-nuit) #passage { background: var(--nuit); }

/* ===================================================================== AUBE */
.aube { position: relative; height: 120svh; overflow: hidden; }
.aube__photo { position: absolute; inset: 0; margin: 0; }
.aube__cadre { position: absolute; inset: 0; overflow: hidden; }
.aube__cadre img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: var(--photo-filtre); transform-origin: 50% 60%; }
.aube__photo figcaption {
  position: absolute;
  right: var(--marge);
  bottom: 20px;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: rgb(255 255 255 / 0.85);
  padding-right: var(--gouttiere);
}
.aube__texte { position: absolute; left: 0; right: 0; top: 18svh; z-index: 2; color: #171410; }
.aube__titre { grid-column: 1 / span 8; padding-left: var(--gouttiere); color: #171410; }
.aube__chapeau { grid-row: 2; grid-column: 1 / span 5; padding-left: var(--gouttiere); margin-top: 24px; color: #171410; }
@media (max-width: 767px) {
  .aube { height: 100svh; }
  .aube__titre { grid-column: 1 / -1; padding-left: 0; }
  .aube__chapeau { grid-column: 1 / -1; padding-left: 0; }
  .aube__texte { top: calc(var(--entete) + 7svh); }
}

/* ===================================================================== CH. 04 SITES */
.sites { position: relative; }
.atlas { align-items: stretch; }
.atlas__carte {
  grid-column: 1 / span 8;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--papier-2);
  margin-left: var(--gouttiere);
  border: 1px solid var(--trait);
}
.atlas__carte .carte__affiche { color: var(--encre); }
.atlas__carte .carte__affiche .ca-voisin { stroke: var(--trait-fort); }
.atlas__carte .carte__affiche circle { fill: var(--encre); opacity: 0.85; }
.atlas__explorer { position: absolute; top: 14px; right: 14px; z-index: 3; background: var(--papier-2); }
.atlas__carte .carte__zoom { top: 66px; right: 14px; }
.atlas__panneau {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 4;
  width: calc(var(--col) * 3);
  min-width: 260px;
  max-height: calc(100% - 28px);
  overflow-y: auto;
  padding: 20px;
  background: var(--papier-2);
  border: 1px solid var(--encre);
  color: var(--encre);
}
.atlas__panneau h3 { font-family: var(--f-affiche); font-weight: 300; font-size: 32px; line-height: 1; padding-right: 48px; }
.atlas__panneau .panneau__fermer { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; }
.atlas__panneau .panneau__fermer svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.25; fill: none; }
.panneau__meta { margin-top: 8px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: var(--a-etiquette); text-transform: none; color: var(--graphite); }
.panneau__especes { margin-top: 10px; font-size: 16px; }
.panneau__especes small { display: block; font-family: var(--f-mono); font-size: 12.5px; color: var(--graphite); }
.panneau__releves { margin-top: 14px; }
.panneau__releves > .etiquette { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.panneau__releves li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--trait); font-size: 15px; align-items: baseline; }
.panneau__releves li .donnee { color: var(--graphite); font-size: 13px; }
.panneau__vide { font-size: 14px; color: var(--graphite); margin-top: 4px; }

.atlas__index {
  grid-column: 9 / span 4;
  display: flex;
  flex-direction: column;
  height: 0;
  min-height: 100%;
  padding-inline: var(--gouttiere);
}
.atlas__index .recherche__champ { margin-bottom: 8px; }
.milieux { display: flex; flex-wrap: wrap; gap: 0 6px; }
.milieux .puce { font-size: 12.5px; padding: 0 9px; }
.atlas__compte { margin: 10px 0 6px; color: var(--encre); }
.index {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--encre);
  scrollbar-width: thin;
  scrollbar-color: var(--trait-fort) transparent;
  background: var(--papier);
}
.index__lettre { padding: 14px 0 4px; font-family: var(--f-affiche); font-weight: 300; font-size: 32px; line-height: 1; border-bottom: 1px solid var(--trait); }
.index__lettre details summary { list-style: none; cursor: pointer; }
.index__lettre details summary::-webkit-details-marker { display: none; }
.index__entree {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "nom points n" "milieu milieu milieu";
  align-items: baseline;
  column-gap: 8px;
  width: 100%;
  padding: 9px 0;
  border-bottom: 1px solid var(--trait);
  text-align: left;
  min-height: 44px;
  transition: color var(--d-survol) linear;
}
.index__nom { grid-area: nom; font-size: 16px; line-height: 1.3; }
.index__points { grid-area: points; border-bottom: 1px dotted var(--trait-fort); transform: translateY(-4px); }
.index__n { grid-area: n; font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.index__milieu { grid-area: milieu; font-family: var(--f-mono); font-size: 13px; letter-spacing: var(--a-etiquette); text-transform: none; color: var(--graphite); margin-top: 2px; }
.index__entree:hover, .index__entree.est-actif { color: var(--rose-texte); }
.index__entree.est-actif .index__points { border-bottom-color: var(--rose-texte); }
.index__aucun { padding: 16px 0; font-size: 15px; color: var(--graphite); }
.bascule-mobile { display: none; }
@media (max-width: 1023px) {
  .atlas__carte { grid-column: 1 / -1; margin-left: 0; }
  .atlas__index { grid-column: 1 / -1; height: 60svh; min-height: 0; margin-top: 24px; padding-inline: 0; }
  .atlas__panneau { width: auto; right: 14px; }
}
@media (max-width: 767px) {
  .atlas__carte { aspect-ratio: 4 / 5; }
  .atlas__index { height: auto; max-height: none; }
  .atlas__index .index { overflow: visible; }
  .bascule-mobile { display: flex; gap: 8px; margin-top: 12px; grid-template-columns: none; }
  .sites[data-vue-mobile="carte"] .atlas__index { display: none; }
  .sites[data-vue-mobile="liste"] .atlas__carte { display: none; }
  .bascule-mobile { order: -1; }
}

/* Doubles pages */
.doubles { padding-top: var(--section); }
.double {
  display: grid;
  grid-template-columns: repeat(var(--colonnes), minmax(0, 1fr));
  margin-inline: var(--marge);
  padding-block: calc(var(--section) * 0.75);
  align-items: start;
}
.double__photo { position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.double__cadre { grid-area: 1 / 1; overflow: hidden; background: var(--trait); }
.double__cadre img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filtre); }
.double__legende { margin-top: 10px; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.4; color: var(--graphite); max-width: 44ch; }
.double__medaillon {
  grid-area: 1 / 1;
  align-self: end;
  width: calc(var(--col) * 2);
  margin: 0;
  position: relative;
  z-index: 2;
}
.double__medaillon-cadre { overflow: hidden; background: var(--trait); border: 1px solid var(--papier); }
.double__medaillon img { width: 100%; height: 100%; object-fit: cover; }
.double__medaillon figcaption { margin-top: 8px; font-family: var(--f-mono); font-size: 13px; line-height: 1.4; color: var(--graphite); }
.double--gauche .double__photo { grid-column: 1 / span 7; margin-left: calc(var(--marge) * -1); }
.double--gauche .double__legende { padding-left: calc(var(--marge) + var(--gouttiere)); }
.double--gauche .double__medaillon { justify-self: end; transform: translate(48px, calc(100% - 48px)); }
.double--gauche .double__texte { grid-column: 9 / span 4; }
.double--droite .double__photo { grid-column: 6 / span 7; margin-right: calc(var(--marge) * -1); grid-row: 1; }
.double--droite .double__medaillon { justify-self: start; transform: translate(-48px, calc(100% - 48px)); }
.double--droite .double__texte { grid-column: 1 / span 4; grid-row: 1; }
.double--droite .double__legende { padding-right: var(--marge); justify-self: end; text-align: right; }
.double--large .double__photo { grid-column: 1 / -1; }
.double--large .double__legende { padding-left: var(--gouttiere); }
/* Texte sur toute la largeur, comme la photo : le récit à gauche, À voir, Infos pratiques et liens à côté, les chiffres en
   bandeau dessous. "dense" remonte les blocs de droite contre le récit (dans le code, les chiffres viennent avant eux) */
.double--large .double__texte { grid-column: 1 / -1; margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; column-gap: 48px; align-items: start; }
.double--large .double__texte > .double__tete,
.double--large .double__texte > .double__nom,
.double--large .double__texte > .double__etiquettes,
.double--large .double__texte > .double__chiffres { grid-column: 1 / -1; }
.double--large .double__recits { grid-column: 1; grid-row: span 3; margin-top: 28px; }
.double--large .double__avoir, .double--large .double__pratique, .double--large .double__liens { grid-column: 2; }
/* Grand écran : trois colonnes, pour garder au récit une longueur de ligne lisible */
@media (min-width: 1280px) {
  .double--large .double__texte { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .double--large .double__recits, .double--large .double__avoir { grid-row: span 2; }
  .double--large .double__pratique, .double--large .double__liens { grid-column: 3; }
}
.double__photo--carte { align-self: center; }
.planche-carto { padding: 24px 0; max-height: 86svh; display: flex; justify-content: center; }
.planche-carto__svg { width: auto; max-width: 100%; height: min(78svh, 760px); overflow: hidden; }
.planche-carto__cote path { fill: none; stroke: var(--encre); stroke-width: 1.2; stroke-linejoin: round; }
.planche-carto__axe, .planche-carto__grad line { stroke: var(--trait-fort); stroke-width: 1; vector-effect: non-scaling-stroke; }
.planche-carto__grad text { font-family: var(--f-mono); font-size: 12.5px; fill: var(--graphite); }
.planche-carto__points circle { fill: var(--rose); }
.planche-carto__points text { font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; letter-spacing: var(--a-etiquette); fill: var(--encre); }
.double--droite .double__photo--carte .double__legende { justify-self: start; text-align: left; padding-right: 0; }

.double__texte { padding-inline: var(--gouttiere); }
.double__tete { display: flex; align-items: flex-end; gap: 16px; }
.double__num { font-family: var(--f-affiche); font-weight: 200; font-size: 96px; line-height: 0.82; letter-spacing: -0.02em; }
.double__coord { color: var(--graphite); padding-bottom: 6px; }
.double__nom { margin-top: 18px; font-family: var(--f-affiche); font-weight: 300; font-size: clamp(40px, 4.5vw, 72px); line-height: 0.95; letter-spacing: -0.02em; text-wrap: balance; }
.double__etiquettes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.double__recits { margin-top: 24px; }
.double__recit { font-size: 18px; line-height: 1.55; text-wrap: pretty; }
html[lang="fr"] .double__recit { hyphens: auto; }
.double__recit::first-letter {
  float: left;
  font-family: var(--f-affiche);
  font-weight: 300;
  font-size: calc(3 * 1.55em);
  line-height: 0.82;
  margin: 0.06em 8px 0 0;
  color: var(--encre);
}
.double__chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--encre); }
.double__chiffres > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.double__chiffres dd { font-family: var(--f-affiche); font-weight: 200; font-size: 48px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.double__chiffres dt { margin-top: 8px; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.4; color: var(--graphite); }
.double__avoir, .double__pratique { margin-top: 28px; }
.double__avoir h4, .double__pratique h4 { margin-bottom: 8px; color: var(--encre); }
.double__avoir li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--trait); }
.double__espece { font-size: 16px; }
.double__avoir li i { flex: 1; border-bottom: 1px dotted var(--trait-fort); transform: translateY(-4px); min-width: 12px; }
.double__avoir .donnee { font-size: 12.5px; color: var(--graphite); white-space: nowrap; letter-spacing: 0; }
.double__pratique p { font-size: 15px; line-height: 1.5; color: var(--graphite); }
.double__liens { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 18px; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .double__chiffres dd { font-size: 36px; }
}
@media (max-width: 1023px) {
  .double { row-gap: 32px; }
  .double--gauche .double__photo, .double--droite .double__photo { grid-column: 1 / -1; margin-inline: calc(var(--marge) * -1); grid-row: 1; }
  .double--gauche .double__texte, .double--droite .double__texte { grid-column: 1 / span 6; grid-row: 2; }
  .double__legende { padding-inline: var(--marge) !important; text-align: left !important; justify-self: start !important; }
  .double__medaillon { width: calc(var(--col) * 2.5); transform: translate(calc(var(--marge) * -1 - 0px), 32px) !important; justify-self: end !important; margin-right: var(--marge); }
}
@media (max-width: 767px) {
  .double { padding-block: 56px; }
  .double--gauche .double__texte, .double--droite .double__texte, .double--large .double__texte { grid-column: 1 / -1; padding-inline: 0; }
  .double--large .double__texte { display: block; margin-top: 0; }
  .double__medaillon { width: 40%; transform: translateY(32px) !important; }
  .double__num { font-size: 72px; }
  .double__chiffres dd { font-size: 34px; }
  .double__chiffres { gap: 10px; }
  .planche-carto__svg { height: auto; width: 100%; }
  .double__photo--carte { margin-inline: 0 !important; }
}

/* Règle des sites */
.regle-sites {
  position: fixed;
  right: 8px;
  top: 20vh;
  bottom: 20vh;
  width: 120px;
  z-index: var(--z-flottant);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d-etat) var(--c-interface);
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--graphite);
}
.regle-sites.est-visible { opacity: 1; pointer-events: auto; }
.regle-sites__axe { position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: var(--trait-fort); }
.regle-sites__grad { position: absolute; right: 0; height: 1px; width: 6px; background: var(--trait-fort); }
.regle-sites__grad.est-entier { width: 10px; }
.regle-sites__grad span { position: absolute; right: 14px; top: -6px; white-space: nowrap; }
.regle-sites__repere {
  position: absolute;
  right: 0;
  height: 24px;
  margin-top: -12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 6px;
  color: var(--encre);
  font-family: var(--f-mono);
  font-size: 13px;
  pointer-events: auto;
}
.regle-sites__repere::after { content: ""; width: 12px; height: 1px; background: currentColor; }
.regle-sites__repere span { min-width: 2ch; text-align: right; }
.regle-sites__repere:hover, .regle-sites__repere[aria-current="true"] { color: var(--rose-texte); }
.regle-sites__curseur {
  position: absolute;
  right: -3px;
  top: 0;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  pointer-events: none;
}
.regle-sites__curseur::before { content: ""; position: absolute; inset: 0; background: var(--rose); rotate: 45deg; }
.regle-sites__etiquette { position: absolute; right: 18px; top: 0; margin-top: -24px; white-space: nowrap; color: var(--rose-texte); pointer-events: none; text-transform: none; letter-spacing: 0; }
@media (max-width: 1023px) { .regle-sites { display: none; } }

/* ===================================================================== CH. 05 CALENDRIER */
.calendrier { position: relative; padding-bottom: var(--section); content-visibility: auto; contain-intrinsic-size: auto 2400px; }
.frise-ciel { position: relative; margin-inline: var(--marge); }
.frise-ciel__grille { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.frise-ciel__mois {
  position: sticky;
  top: var(--entete);
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  background: var(--papier);
  border-bottom: 1px solid var(--encre);
  transition: transform var(--d-etat) var(--c-interface);
}
body.entete-masquee .frise-ciel__mois { transform: translateY(calc(var(--entete) * -1)); }
.frise-ciel__mois button {
  height: 48px;
  padding-left: var(--gouttiere);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: var(--a-etiquette);
  text-transform: none;
  color: var(--graphite);
  text-align: left;
  transition: color var(--d-survol) linear;
}
.frise-ciel__mois button:hover { color: var(--encre); }
.frise-ciel__mois button[aria-pressed="true"] { color: var(--rose-texte); }
.frise-ciel__mois button.est-aujourdhui::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; background: var(--rose); rotate: 45deg; vertical-align: 2px; }
.frise-ciel__corps { position: relative; }
.frise-ciel__colonne-choisie {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: calc(100% / 12);
  background: var(--rose-lavis);
  pointer-events: none;
  z-index: 0;
}
.frise-ciel__aujourdhui {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--rose-texte);
  z-index: 3;
  pointer-events: none;
}
.frise-ciel__aujourdhui-etiquette {
  position: absolute;
  bottom: 100%;
  margin-bottom: 8px;
  padding-left: 6px;
  border-left: 1px solid var(--rose-texte);
  color: var(--rose-texte);
  white-space: nowrap;
  font-size: 12.5px;
  line-height: 1;
  padding-top: 6px;
  pointer-events: none;
}
.frise-ciel__aujourdhui-etiquette--gauche { padding: 6px 6px 0 0; border-left: 0; border-right: 1px solid var(--rose-texte); }
.frise-ciel { padding-top: 32px; }
.frise-ciel__groupe { position: relative; z-index: 1; padding-top: 48px; }
.frise-ciel__titre-groupe {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 var(--gouttiere);
  background: var(--papier);
  font-family: var(--f-affiche);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.frise-ciel__titre-groupe::before { content: ""; width: 24px; height: 2px; background: var(--c); flex: none; }
.frise-ciel__sous { margin: 4px 0 12px; padding-left: calc(var(--gouttiere) + 36px); }
.frise-ciel__sous span { background: var(--papier); padding-right: 6px; }
.frise-ciel__ligne {
  position: relative;
  display: block;
  width: 100%;
  height: 44px;
  text-align: left;
  transition: opacity 200ms linear;
}
.frise-ciel__corps.a-survol .frise-ciel__ligne { opacity: 0.25; }
.frise-ciel__corps.a-survol .frise-ciel__ligne.est-survolee { opacity: 1; }
.frise-ciel__nom {
  position: absolute;
  left: 0; top: 2px;
  padding: 0 6px 0 var(--gouttiere);
  background: var(--papier);
  font-size: 15px;
  line-height: 20px;
  white-space: nowrap;
}
.frise-ciel__nom .fc-planche { font-family: var(--f-mono); font-size: 13px; letter-spacing: var(--a-etiquette); color: var(--graphite); margin-left: 6px; text-transform: none; }
.frise-ciel__barres { position: absolute; left: 0; right: 0; top: 30px; height: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); transform-origin: 0 50%; }
.frise-ciel__barres i { display: block; margin: 0 1px; background: var(--c); height: var(--h); transform: translateY(-50%); }
.frise-ciel__gbif { position: absolute; left: 0; right: 0; top: 4px; height: 20px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); opacity: 0; transition: opacity 200ms linear; pointer-events: none; }
.frise-ciel__gbif i { justify-self: center; align-self: end; width: 2px; height: var(--h); background: var(--trait-fort); }
.frise-ciel__ligne.est-survolee .frise-ciel__gbif { opacity: 1; }
.frise-ciel__ligne:focus-visible { outline-offset: -2px; }
.frise-ciel__detail { min-height: 3.2em; margin-top: 20px; padding-inline: var(--gouttiere); color: var(--encre); display: block; }
.a-voir { margin-top: 64px; row-gap: 32px; }
.a-voir__tete { grid-column: 1 / span 4; padding-inline: var(--gouttiere); }
.a-voir__chapeau { margin-top: 16px; font-size: 18px; line-height: 1.5; max-width: 34ch; }
.a-voir__liste { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.a-voir__carte {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 190px;
  padding: 18px var(--gouttiere) 16px;
  border-top: 1px solid var(--encre);
  background: var(--papier);
}
.a-voir__carte:nth-child(n+4) { border-top-color: var(--trait); }
.a-voir__nom { font-size: 19px; font-weight: 500; line-height: 1.2; }
.a-voir__abondance { display: flex; gap: 4px; margin-top: 4px; }
.a-voir__abondance i { width: 7px; height: 7px; border: 1px solid var(--encre); border-radius: 50%; }
.a-voir__abondance i.est-plein { background: var(--encre); }
.a-voir__sites { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--graphite); margin-top: 4px; }
.a-voir__carte .lien { margin-top: auto; }
.calendrier__bas { margin-top: 56px; }
.calendrier__tableau { grid-column: 1 / -1; padding-inline: var(--gouttiere); background: var(--papier); }
.tableau__cal { min-width: 980px; font-size: 13px; }
.tableau__cal td, .tableau__cal th { padding-right: 8px; }
.tableau__groupe th { padding-top: 18px; font-family: var(--f-affiche); font-weight: 300; font-size: 22px; text-transform: none; letter-spacing: 0; color: var(--encre); }
.calendrier__source { grid-column: 1 / span 9; margin-top: 24px; padding-inline: var(--gouttiere); text-transform: none; letter-spacing: 0.02em; font-weight: 400; line-height: 1.6; }
.calendrier__gbif { display: block; margin-top: 6px; font-size: 13px; letter-spacing: var(--a-etiquette); text-transform: none; }
@media (min-width: 768px) and (max-width: 1023px) {
  .frise-ciel { background: var(--papier); }
  .frise-ciel__corps { background-image: repeating-linear-gradient(to right, var(--trait) 0 1px, transparent 1px calc(100% / 12)); }
  .a-voir__tete { grid-column: 1 / -1; }
  .a-voir__liste { grid-column: 1 / -1; }
  .calendrier__source { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .calendrier { display: flex; flex-direction: column; }
  .calendrier > .tete { order: 1; }
  .frise-ciel { order: 2; margin-inline: 0; }
  .a-voir { order: 3; margin-top: 32px; }
  .frise-ciel__detail { order: 4; }
  .calendrier__bas { order: 5; }
  .frise-ciel__mois {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    gap: 6px;
    padding: 8px var(--marge);
    border-bottom: 1px solid var(--trait);
    scrollbar-width: none;
  }
  .frise-ciel__mois::-webkit-scrollbar { display: none; }
  .frise-ciel__mois button { flex: none; height: 32px; margin: 6px 0; padding: 0 12px; border: 1px solid var(--trait-fort); border-radius: var(--r-puce); scroll-snap-align: start; }
  .frise-ciel__mois button[aria-pressed="true"] { background: var(--encre); color: var(--papier); border-color: var(--encre); }
  .frise-ciel__mois button.est-aujourdhui::before { display: none; }
  .frise-ciel__aujourdhui-etiquette { display: none; }
  .frise-ciel { padding-top: 0; }
  .frise-ciel__corps { display: none; }
  .frise-ciel__liste-mobile { margin-inline: var(--marge); }
  .a-voir__tete, .a-voir__liste { grid-column: 1 / -1; padding-inline: 0; }
  .a-voir__liste { grid-template-columns: 1fr; }
  .a-voir__carte { min-height: 0; padding-inline: 0; }
  .calendrier__source, .calendrier__tableau { grid-column: 1 / -1; padding-inline: 0; }
}
.frise-ciel__liste-mobile { display: none; }
@media (max-width: 767px) {
  .frise-ciel__liste-mobile { display: block; }
  .fcm__groupe { margin-top: 28px; }
  .fcm__groupe h3 { display: flex; align-items: center; gap: 10px; font-family: var(--f-affiche); font-weight: 300; font-size: 32px; line-height: 1.1; }
  .fcm__groupe h3::before { content: ""; width: 24px; height: 2px; background: var(--c); }
  .fcm__ligne { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--trait); width: 100%; text-align: left; }
  .fcm__nom { font-size: 17px; }
  .fcm__ab { font-family: var(--f-mono); font-size: 13px; color: var(--graphite); text-transform: none; letter-spacing: 0; }
  .fcm__mini { grid-column: 1 / -1; width: 100%; height: 8px; margin-top: 6px; }
  .fcm__vide { padding: 20px 0; color: var(--graphite); }
}

/* ===================================================================== CH. 06 OBSERVATEURS */
.observateurs { padding-bottom: var(--section); content-visibility: auto; contain-intrinsic-size: auto 1600px; }
.observateurs__corps { align-items: start; }
.observateurs__total { grid-column: 1 / span 4; padding-inline: var(--gouttiere); position: sticky; top: calc(var(--entete) + 32px); }
.observateurs__nombre { font-size: clamp(88px, 10vw, 168px); }
.observateurs__legende { margin-top: 16px; font-size: 20px; line-height: 1.35; max-width: 22ch; }
.observateurs__total .texte { margin-top: 20px; font-size: 17px; color: var(--graphite); }
.observateurs__total .lien { margin-top: 14px; }
.classement { grid-column: 5 / -1; padding-inline: var(--gouttiere); min-width: 0; }
.classement__mois { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--encre); padding-bottom: 8px; }
.classement__fleche { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--trait-fort); }
.classement__fleche:disabled { opacity: 0.35; }
.classement__fleche:not(:disabled):hover { border-color: var(--encre); }
.classement__libelle { color: var(--encre); min-width: 16ch; text-align: center; }
.classement__titre { margin-top: 20px; display: flex; align-items: center; gap: 10px; }
.classement__liste { position: relative; margin-top: 8px; border-top: 1px solid var(--trait); }
.classement__ligne {
  position: relative;
  display: grid;
  grid-template-columns: 4.2em 1fr auto auto;
  align-items: center;
  column-gap: 20px;
  height: 64px;
  border-bottom: 1px solid var(--trait);
}
.classement__rang { font-family: var(--f-affiche); font-weight: 300; font-size: 48px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; overflow: hidden; display: inline-flex; height: 1em; }
.classement__nom { font-size: 20px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.classement__especes, .classement__listes { font-family: var(--f-mono); font-size: 13px; color: var(--graphite); white-space: nowrap; font-variant-numeric: tabular-nums; }
.classement__especes { color: var(--encre); }
.classement__barre { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.classement__barre i { display: block; height: 2px; width: 100%; background: var(--encre); transform-origin: 0 50%; transition: transform 600ms var(--c-interface); }
.classement__ligne:first-child .classement__barre i { background: var(--rose); }
.chiffre-roulant { display: inline-flex; overflow: hidden; vertical-align: bottom; }
.chiffre-roulant > span { display: inline-block; }
.classement__vide { padding: 32px 0; border-bottom: 1px solid var(--trait); }
.classement__vide p { font-size: 18px; max-width: 46ch; margin-bottom: 16px; }
.classement__tout { margin-top: 10px; }
.instantanes { margin-top: 64px; }
.instantanes__titre { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.courbe { position: relative; margin-top: 32px; }
.courbe h4 { font-family: var(--f-mono); font-weight: 500; font-size: 13px; letter-spacing: var(--a-etiquette); text-transform: none; color: var(--encre); margin-bottom: 12px; }
.courbe__zone { position: relative; height: 120px; }
.courbe svg { width: 100%; height: 120px; overflow: visible; display: block; }
.courbe .c-fond { fill: var(--papier-2); }
.courbe .c-axe { stroke: var(--trait-fort); stroke-width: 1; vector-effect: non-scaling-stroke; }
.courbe .c-ligne { fill: none; stroke: var(--encre); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.courbe__points { position: absolute; inset: 0; }
.courbe__points button { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; }
.courbe__points button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--encre); transition: transform var(--d-survol) var(--c-interface), background-color var(--d-survol) linear; }
.courbe__points button.est-actif::before, .courbe__points button:hover::before { background: var(--rose); transform: scale(1.6); }
.courbe__jours { position: relative; height: 20px; margin-top: 8px; font-family: var(--f-mono); font-size: 13px; color: var(--graphite); }
.courbe__jours span { position: absolute; top: 0; transform: translateX(-50%); }
.courbe__info { position: absolute; z-index: 3; pointer-events: none; padding: 6px 8px; background: var(--encre); color: var(--papier); font-family: var(--f-mono); font-size: 12.5px; white-space: nowrap; opacity: 0; transform: translate(-50%, calc(-100% - 14px)); transition: opacity 150ms linear; }
.courbe__info.est-visible { opacity: 1; }
@media (max-width: 1023px) {
  .observateurs__total { grid-column: 1 / -1; position: static; margin-bottom: 48px; }
  .classement { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .observateurs__total, .classement { padding-inline: 0; }
  .classement__ligne { grid-template-columns: 2.6em 1fr auto; column-gap: 12px; }
  .classement__listes { display: none; }
  .classement__rang { font-size: 36px; }
  .classement__nom { font-size: 17px; }
  .classement__libelle { min-width: 0; flex: 1; }
}

/* ===================================================================== COLOPHON */
.colophon {
  padding-top: var(--section);
  overflow: hidden;
  background: var(--nuit);
  color: var(--nuit-encre);
  content-visibility: auto;
  contain-intrinsic-size: auto 2000px;
}
:root[data-theme="dark"] .colophon { background: var(--nuit-profonde); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .colophon { background: var(--nuit-profonde); } }
.colophon__routes { position: relative; margin-top: 0; margin-bottom: 0; }
.colophon__fond { grid-column: 7 / -1; grid-row: 1; align-self: center; opacity: 0.22; mix-blend-mode: luminosity; margin-right: calc(var(--marge) * -1); }
.colophon__fond img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.colophon__svg { grid-column: 1 / -1; grid-row: 1; width: 100%; height: auto; max-height: 70svh; position: relative; z-index: 1; overflow: hidden; }
.colophon__svg .cr-cote { fill: none; stroke: var(--nuit-trait-fort); stroke-width: 1; vector-effect: non-scaling-stroke; }
.colophon__svg .cr-route { fill: none; stroke: var(--nuit-encre); stroke-opacity: 0.55; stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; transition: stroke 300ms linear, stroke-opacity 300ms linear; }
.colophon__svg .cr-ville { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0; fill: var(--nuit-graphite); }
.colophon__svg .cr-point { fill: var(--nuit-rose); }
.colophon__routes figcaption { grid-column: 1 / -1; margin-top: 16px; padding-left: var(--gouttiere); color: var(--nuit-graphite); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.colophon__legende { display: flex; flex-wrap: wrap; gap: 0 18px; }
.colophon__espece { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--nuit-graphite); font: inherit; letter-spacing: inherit; text-transform: inherit; transition: color var(--d-survol) linear; }
.colophon__espece:hover, .colophon__espece:focus-visible { color: var(--nuit-encre); }
.colophon__espece i { width: 14px; height: 2px; }
.colophon__colonnes { margin-top: var(--e-9); row-gap: 48px; }
.colophon__col { grid-column: span 3; padding-inline: var(--gouttiere); font-family: var(--f-mono); font-size: 13px; line-height: 1.6; color: var(--nuit-encre); }
.colophon__col h3 { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--nuit-trait); color: var(--nuit-graphite); }
.colophon__col p + p, .colophon__col p + ul, .colophon__col ol + p, .colophon__col p + ol { margin-top: 10px; }
.colophon__col a { position: relative; text-decoration: underline; text-decoration-color: var(--nuit-trait-fort); text-underline-offset: 3px; transition: text-decoration-color var(--d-survol) linear; }
.colophon__col a:hover { text-decoration-color: currentColor; }
.colophon__credits li { padding: 4px 0; border-bottom: 1px solid var(--nuit-trait); }
.colophon__notes li { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--nuit-trait); }
.colophon__notes .note__num { color: var(--nuit-rose-texte); flex: none; min-width: 1.4em; }
.colophon__reglages { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.colophon .bascule button { color: var(--nuit-graphite); }
.colophon .bascule button[aria-pressed="true"] { color: var(--nuit-encre); }
.interrupteur {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: var(--a-etiquette);
  text-transform: none;
  color: var(--nuit-encre);
}
.interrupteur__piste { position: relative; width: 34px; height: 18px; border: 1px solid var(--nuit-trait-fort); border-radius: 999px; flex: none; }
.interrupteur__bille { position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--nuit-graphite); transition: transform var(--d-etat) var(--c-interface), background-color var(--d-etat) linear; }
.interrupteur[aria-checked="true"] .interrupteur__bille { transform: translateX(16px); background: var(--nuit-rose); }
.interrupteur[aria-checked="true"] .interrupteur__piste { border-color: var(--nuit-rose); }
.colophon__pied { margin-top: var(--e-9); align-items: center; row-gap: 24px; }
.colophon__ligne { grid-column: 1 / span 9; padding-left: var(--gouttiere); color: var(--nuit-graphite); font-size: 13px; letter-spacing: 0; }
.colophon__haut { grid-column: 10 / -1; justify-self: end; margin-right: var(--gouttiere); border-color: var(--nuit-encre); color: var(--nuit-encre); }
.colophon__haut:hover { background: var(--nuit-encre); color: var(--nuit); }
.colophon__mot {
  margin: var(--e-8) 0 -0.22em;
  font-family: var(--f-affiche);
  font-weight: 200;
  font-style: normal;
  font-size: 26vw;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgb(238 234 228 / 0.92);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}
@media (max-width: 1023px) {
  .colophon__col { grid-column: span 4; }
}
@media (max-width: 767px) {
  .colophon__col { grid-column: 1 / -1; padding-inline: 0; }
  .colophon__ligne { grid-column: 1 / -1; padding-left: 0; }
  .colophon__haut { grid-column: 1 / -1; justify-self: start; margin-right: 0; }
  .colophon__fond { grid-column: 1 / -1; margin-inline: calc(var(--marge) * -1); }
  .colophon__routes figcaption { padding-left: 0; }
}
