/* Bestiaire : carnet illustré, exploration par milieu et rencontres du domaine. */
.page-best [hidden] { display: none !important; }
.page-best .bs-hero { min-height: min(78svh, 760px); padding-bottom: 10vh; }
.page-best .bs-hero > img { object-position: 86% 50%; }
.page-best .bs-hero h1 { max-width: 7em; }
.bs-hero-note { margin-top: 25px; color: #c7b798; font: 11px var(--font-display); letter-spacing: .12em; }
.bs-chapters { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1440px; padding: 0 var(--gutter); margin: -5px auto 0; position: relative; z-index: 3; }
.bs-chapters a { display: flex; align-items: center; gap: 18px; padding: 27px 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-soft); transition: background .25s; }
.bs-chapters a + a { border-left: 1px solid var(--line-soft); }
.bs-chapters small { font: 12px var(--font-display); color: var(--gold); }
.bs-chapters a > span:first-of-type { font: 22px var(--font-tale); }
.bs-chapters a > span:last-child { margin-left: auto; color: var(--gold-light); }
.bs-arrow { width: 22px; height: 22px; flex: none; }
.bs-arrow--down { transform: rotate(45deg); }
.bs-arrow--up { transform: rotate(-45deg); }
.bs-arrow--previous { transform: rotate(180deg); }
.bs-chapters a:hover { background: #c39e5810; }
.bs-codex, .bs-country { max-width: 1440px; margin: 0 auto; padding: 78px var(--gutter) 88px; scroll-margin-top: 96px; }
.bs-section-heading { display: grid; grid-template-columns: 1.35fr 1fr; gap: 45px; align-items: end; margin-bottom: 30px; }
.page-best .bs-section-heading h2 { font-size: clamp(36px, 3.5vw, 54px); max-width: 11em; }
.page-best .bs-section-heading .eyebrow { margin-bottom: 14px; font-size: 11px; }
.bs-section-heading > p { font-size: 19px; line-height: 1.5; color: var(--cream-2); max-width: 28em; }
.bs-filters { display: grid; grid-template-columns: 1fr minmax(210px, 30%); gap: 12px 24px; padding: 19px 0; margin-bottom: 24px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.bs-filters .chips { gap: 6px; }
.bs-filters .chips button { font-size: 10px; letter-spacing: .06em; padding: 8px 12px; min-height: 36px; }
.bs-filters .bs-knowledge button { border-color: transparent; padding: 5px 10px; min-height: 32px; background: none; color: #b4aa96; }
.bs-filters .bs-knowledge button[aria-pressed="true"] { color: #f1d29a; background: #c9a76a12; border-color: var(--line); }
.bs-local-search { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #ad8b4e80; }
.bs-local-search svg { width: 17px; height: 17px; flex: none; color: var(--gold); }
.bs-local-search input { min-width: 0; width: 100%; padding: 8px 0; color: var(--tale); background: transparent; border: 0; font: 18px var(--font-body); color-scheme: dark; }
.bs-local-search input::placeholder { color: #b0a48e; opacity: 1; }
.bs-count { justify-self: end; align-self: center; color: #b5a486; font: italic 16px var(--font-tale); }
.bs-cabinet { display: grid; grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.bs-index { position: sticky; top: 94px; display: grid; gap: 3px; max-height: min(770px, 84svh); overflow-y: auto; padding-right: 9px; scrollbar-width: thin; scrollbar-color: #80683e #171a18; }
.bs-entry { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr) 14px; gap: 13px; align-items: center; padding: 10px 8px 10px 0; border-bottom: 1px solid #b2935b20; transition: background .25s, border-color .25s; }
.bs-entry:hover { background: #ac874c0d; }
.bs-entry:focus-visible { outline: none; box-shadow: inset 0 -2px 0 var(--gold-light); }
.bs-entry[aria-current="true"] { background: linear-gradient(90deg, #b7995d20, transparent); border-color: #d7b67490; }
.bs-entry[aria-current="true"]::before { content: ''; width: 2px; background: #e0c18b; position: absolute; inset: 12px auto 12px 0; }
.bs-entry-art { height: 66px; overflow: hidden; display: grid; place-items: center; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 80%, transparent); }
.bs-entry-art img { width: 100%; height: 100%; object-fit: cover; object-position: var(--creature-pos); filter: saturate(.7); transition: filter .25s, transform .4s; }
.bs-entry:hover img, .bs-entry[aria-current="true"] img { filter: saturate(1); transform: scale(1.05); }
.bs-entry-art .bs-mark { width: 52px; height: 52px; color: var(--gold); opacity: .7; }
.bs-entry-copy { display: grid; gap: 4px; }
.bs-entry-copy small { color: #b49b71; font: 8px var(--font-display); letter-spacing: .08em; line-height: 1.5; }
.bs-entry-copy strong { font: 21px var(--font-tale); color: #e6dbc7; line-height: 1.1; }
.bs-entry-copy > span { font-size: 14px; line-height: 1.25; color: #a89d88; }
.bs-entry-arrow { color: var(--gold-light); opacity: 0; transition: opacity .25s; }
.bs-entry-arrow .bs-arrow { width: 14px; height: 14px; }
.bs-entry[aria-current="true"] .bs-entry-arrow, .bs-entry:hover .bs-entry-arrow { opacity: 1; }
.bs-reader { min-width: 0; background: linear-gradient(155deg, #1d2220 0%, #121718 75%); border: 1px solid var(--line-soft); scroll-margin-top: 94px; }
.bs-reader-nav { position: sticky; top: var(--header-h); z-index: 4; display: flex; align-items: center; justify-content: space-between; padding: 15px 24px; border-bottom: 1px solid var(--line-soft); background: #18201ef5; backdrop-filter: blur(12px); }
.bs-reader-nav p { color: #c5ab7b; font: 12px var(--font-display); letter-spacing: .12em; }
.bs-reader-number { color: #f0d7a6; }
.bs-reader-label { font: italic 17px var(--font-tale); color: #a99e8b; letter-spacing: 0; margin-left: 18px; }
.bs-reader-nav > div { display: flex; gap: 8px; }
.bs-reader-nav button { display: grid; place-items: center; width: 36px; height: 32px; border: 1px solid var(--line); color: #e9c68b; }
.bs-reader-nav button:hover { background: #bb995e20; }
.bs-reader-nav button:disabled { opacity: .25; cursor: default; }
.bs-sheet { scroll-margin-top: 94px; }
.bs-sheet + .bs-sheet { border-top: 1px solid var(--line); margin-top: 40px; }
.best-ready .bs-sheet { margin: 0; border: 0; }
.bs-sheet.is-entering { animation: bs-leaf-in .4s ease both; }
@keyframes bs-leaf-in { from { opacity: .25; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.bs-scene { position: relative; height: clamp(265px, 26vw, 380px); overflow: hidden; }
.bs-scene > img { object-position: var(--creature-pos, 50% 50%); width: 100%; height: 100%; mask-image: linear-gradient(#000 65%, transparent 100%); }
.bs-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0c14111a, transparent 45%), linear-gradient(0deg, #17201a20, transparent 40%); pointer-events: none; }
.bs-scene figcaption { position: absolute; bottom: 10px; left: 30px; right: 30px; color: #c9bda5; font-size: 15px; line-height: 1.35; z-index: 2; max-width: 36em; }
.bs-sheet-copy { padding: 17px clamp(22px, 3vw, 42px) 28px; }
.bs-facts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 25px; font: 9px var(--font-display); letter-spacing: .09em; text-transform: uppercase; color: #c5ad7e; }
.bs-certainty::before { content: '◆'; color: #c3ae7c; font-size: 7px; margin-right: 7px; }
.bs-certainty--rapporte::before { content: '◇'; }
.bs-certainty--incertain::before { content: '?'; }
.bs-sheet .names { color: #bea981; font: 10px var(--font-display); letter-spacing: .1em; line-height: 1.6; margin-bottom: 12px; }
.page-best .bs-sheet h3 { font-size: clamp(38px, 3.5vw, 56px); margin-bottom: 17px; line-height: 1.05; }
/* Reading headings receive focus for keyboard navigation, without a control frame. */
.page-best .bs-sheet h3:focus { outline: none; }
.bs-sheet .tale-lede { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.42; max-width: 30em; color: #e5d5b7; margin-bottom: 24px; }
.bs-story { border-top: 1px solid var(--line); }
.bs-story summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 0; color: #e5c58c; font: 11px var(--font-display); letter-spacing: .1em; cursor: pointer; list-style: none; }
.bs-story summary::-webkit-details-marker, .bs-habitat summary::-webkit-details-marker { display: none; }
.bs-plus { font: 26px var(--font-body); color: var(--gold); line-height: 1; transition: transform .25s; }
.bs-story[open] > summary .bs-plus, .bs-habitat[open] > summary .bs-plus { transform: rotate(45deg); }
.bs-story-copy { padding-top: 22px; }
.bs-story-copy > p { color: #e2d7c2; font-size: 20px; line-height: 1.65; margin-bottom: 1em; }
.bs-story-copy .meet { padding-top: 16px; border-top: 1px solid var(--line-soft); color: #c8b48f; }
.bs-story-copy .meet b { display: block; font: 10px var(--font-display); letter-spacing: .15em; color: #e1c38b; margin-bottom: 6px; text-transform: uppercase; }
.bs-law { margin: 0 0 25px; padding: 18px 23px; border-left: 2px solid #b49356; background: #c7a25b09; }
.bs-law p { font: italic 25px/1.35 var(--font-tale); color: #ead7b1; margin-bottom: 12px; }
.bs-law footer { font: 10px/1.6 var(--font-display); color: #bfa578; letter-spacing: .1em; }
.bs-scene--traces { display: grid; place-content: center; justify-items: center; background: radial-gradient(ellipse at 50% 80%, #41645a30, transparent 65%), repeating-linear-gradient(0deg, transparent 0 29px, #b3ab7620 30px, transparent 31px), #111c1b; }
.bs-scene--traces .bs-mark { width: 160px; height: 160px; color: #d6bf86; opacity: .65; }
.bs-scene--traces p { font: italic 20px var(--font-tale); color: #d1b982; margin-top: 15px; z-index: 2; }
.bs-scene--stone, .bs-scene--rock { background: radial-gradient(ellipse at 50% 80%, #685b3f30, transparent 65%), #1b1b17; }
.bs-scene--traces span { position: absolute; width: 180px; height: 180px; border: 1px solid #d6bf861c; border-radius: 50%; inset: 22% auto auto calc(50% - 90px); animation: bs-trace 7s ease-out infinite; }
@keyframes bs-trace { from { transform: scale(.65); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
.bs-empty { padding: 80px 30px; color: #d9c7a7; font-size: 23px; }
.bs-empty button { display: block; margin-top: 22px; border-bottom: 1px solid var(--gold); color: #efd09b; font-size: 19px; }
.bs-country { position: relative; max-width: none; padding-top: 76px; padding-bottom: 70px; background: radial-gradient(ellipse at 18% 55%, #75603012, transparent 50%), #171713; border-block: 1px solid var(--line-soft); }
.bs-country > * { max-width: calc(1440px - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.bs-country-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.bs-country-plates { position: sticky; top: 98px; }
.bs-country-picture { display: none; height: min(550px, 45vw); }
.bs-country-picture:first-child, .bs-country-picture.is-active { display: block; }
.best-ready .bs-country-picture:not(.is-active) { display: none; }
.bs-country-picture > img { object-fit: cover; mask-image: radial-gradient(ellipse at 50% 46%, #000 35%, #000b 62%, transparent 76%); }
.bs-country-picture figcaption { margin-top: -20px; position: relative; text-align: center; color: #cbb78e; font-size: 18px; }
.bs-country-traces { padding: 60px 30px; text-align: center; background: radial-gradient(ellipse, #71643e20, transparent 65%); }
.bs-country-traces .bs-mark { width: 240px; height: 240px; margin: 0 auto 32px; color: #c8ab72; opacity: .45; }
.bs-country-traces p { font: italic 27px/1.4 var(--font-tale); color: #d8c398; max-width: 14em; margin: auto; }
.bs-habitats { border-top: 1px solid var(--line); }
.bs-habitat { border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.bs-habitat summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; list-style: none; }
.bs-habitat summary strong { display: block; color: #d9ceb5; font: 26px var(--font-tale); line-height: 1.15; }
.bs-habitat summary small { display: block; margin-top: 6px; font: 14px/1.4 var(--font-body); color: #aa9d80; }
.bs-habitat[open] summary strong { color: #f1d7a4; }
.bs-habitat-story { padding: 0 28px 24px 0; }
.bs-habitat-story p { color: #ded1b7; font-size: 19px; line-height: 1.65; }
.bs-tale-place { color: #e9c688; font-style: italic; }
.bs-country .bs-tales-end { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: #c7b698; font: italic 22px/1.5 var(--font-tale); }
.bs-near { padding: 0 var(--gutter) 80px; max-width: 1440px; margin: auto; scroll-margin-top: 96px; }
.bs-near .sec-head { padding: 65px 0 32px; text-align: left; display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px 50px; align-items: end; }
.bs-near .sec-head .eyebrow { grid-column: 1/-1; }
.page-best .bs-near h2 { font-size: clamp(36px, 3.5vw, 54px); }
.bs-near .ornament { display: none; }
.bs-near .sec-head > p:last-child { margin: 0; font-size: 19px; }
.bs-rings-home { display: flex; align-items: center; gap: 15px; color: #c5a66a; font: 10px var(--font-display); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 24px; }
.bs-rings-home::before { content: '◆'; font-size: 8px; }
.bs-rings-home::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, var(--line), transparent); }
.bs-rings-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: encounter; padding: 0; margin: 0; list-style: none; }
.bs-ring { position: relative; border-left: 1px solid var(--line); padding: 0 23px 0 25px; counter-increment: encounter; }
.bs-ring:first-child { border-left: 0; padding-left: 0; }
.bs-ring::before { content: '0' counter(encounter); display: block; color: #977d50; font: 11px var(--font-display); margin-bottom: 14px; }
.page-best .bs-ring-k { font-size: 26px; color: #d9c295; margin-bottom: 19px; }
.bs-ring ul { display: grid; gap: 12px; }
.bs-ring li { font-size: 19px; line-height: 1.35; color: #c7bfac; }
.bs-ring a { transition: color .2s; border-bottom: 1px solid #b9955330; }
.bs-ring a:hover { color: #ffdfac; }
.bs-near-note { margin-top: 35px; font: italic 18px var(--font-tale); color: #ac9c7f; }
@media (max-width: 1180px) {
  .bs-cabinet { grid-template-columns: 260px minmax(0, 1fr); gap: 20px; }
  .bs-entry { grid-template-columns: 52px minmax(0, 1fr) 12px; gap: 9px; }
  .bs-entry-art { height: 58px; }
  .bs-entry-copy strong { font-size: 19px; }
  .bs-entry-copy > span { font-size: 13px; }
  .bs-country-layout { gap: 30px; }
  .bs-chapters a { padding: 22px 16px; gap: 12px; }
  .bs-chapters a > span:first-of-type { font-size: 19px; }
  .bs-ring { padding-right: 15px; padding-left: 18px; }
}
@media (max-width: 900px) {
  .bs-codex, .bs-country { padding-top: 55px; padding-bottom: 55px; }
  .bs-section-heading { grid-template-columns: 1fr; gap: 18px; }
  .bs-section-heading > p { max-width: 36em; }
  .bs-cabinet { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .bs-index { position: static; display: flex; overflow-x: auto; overflow-y: hidden; max-height: none; padding: 0 0 12px; gap: 8px; scroll-snap-type: x proximity; }
  .bs-entry { width: 240px; flex: 0 0 240px; border: 0; border-bottom: 1px solid var(--line-soft); padding: 10px; scroll-snap-align: start; }
  .bs-entry-copy small { font-size: 8px; }
  .bs-entry-copy > span { display: none; }
  .bs-scene { height: clamp(250px, 48vw, 370px); }
  .bs-country-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .best-ready .bs-country-plates { display: none; }
  .bs-country-plates { position: static; max-width: 520px; margin: auto; width: 100%; }
  .bs-habitat-story .bs-country-picture { margin-bottom: 30px; }
  .bs-country-picture { height: min(460px, 70vw); }
  .bs-country-traces { padding: 35px 20px; }
  .bs-country-traces .bs-mark { width: 140px; height: 140px; margin-bottom: 15px; }
  .bs-country-traces p { font-size: 24px; }
  .bs-near .sec-head { grid-template-columns: 1fr; gap: 15px; }
  .bs-rings-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; }
  .bs-ring:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .page-best .bs-hero { min-height: 680px; padding-top: 128px; padding-bottom: 80px; }
  .page-best .bs-hero h1 { font-size: 55px; }
  .bs-hero-note { font-size: 9px; line-height: 1.7; max-width: 28em; }
  .bs-chapters { grid-template-columns: 1fr; }
  .bs-chapters a { padding: 17px 6px; gap: 16px; }
  .bs-chapters a + a { border-left: 0; border-top: 0; }
  .bs-chapters a > span:first-of-type { font-size: 22px; }
  .bs-filters { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 15px 0; }
  .bs-local-search { grid-row: 1; }
  .bs-filters .chips { gap: 5px; }
  .bs-filters .chips button { padding: 8px 10px; font-size: 9px; letter-spacing: 0; }
  .bs-count { justify-self: start; font-size: 15px; }
  .bs-cabinet { margin: 0 -5px; }
  .bs-entry { width: 220px; flex-basis: 220px; }
  .bs-reader-nav { padding: 12px 20px; }
  .bs-reader-label { font-size: 15px; margin-left: 10px; }
  .bs-scene { height: 260px; }
  .bs-scene figcaption { left: 20px; right: 20px; font-size: 13px; }
  .bs-sheet-copy { padding: 18px 20px 23px; }
  .page-best .bs-sheet h3 { font-size: 39px; }
  .bs-facts { margin-bottom: 19px; font-size: 8px; gap: 7px; }
  .bs-sheet .names { font-size: 9px; letter-spacing: .06em; }
  .bs-story-copy > p { font-size: 19px; }
  .bs-law { padding: 15px; }
  .bs-law p { font-size: 23px; }
  .bs-country .bs-section-heading { margin-bottom: 15px; }
  .bs-country-picture { height: 310px; }
  .bs-country-picture figcaption { font-size: 16px; margin-top: -25px; }
  .bs-habitat summary strong { font-size: 25px; }
  .bs-habitat summary small { font-size: 14px; }
  .bs-habitat-story { padding-right: 0; }
  .bs-country .bs-tales-end { font-size: 21px; }
  .bs-near { padding-bottom: 55px; }
  .bs-ring li { font-size: 18px; }
  .page-best .bs-ring-k { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .bs-sheet.is-entering, .bs-scene--traces span { animation: none; }
  .bs-entry-art img, .bs-plus { transition: none; }
}
