/* ════════════════════════════════════════
   ANIMALIA — espece.css
   Fiche espèce : planche naturaliste, spécimen sous verre,
   bleu de Prusse et laiton. Version « vitrine fermée » via body.danger.
════════════════════════════════════════ */

body.fiche {
  --f-parch: #ebe7dc;
  --f-parch-dark: #d9d3c1;
  --f-card: #f6f3ea;
  --f-ink: #171b24;
  --f-ink-light: #343c4c;
  --f-ink-muted: #666c78;
  --f-accent: #24475f;
  --f-accent-dark: #162e40;
  --f-accent-light: #cfdbe3;
  --f-gold: #9a7a2c;
  --f-gold-light: #e4d6a8;
  --f-brass: #b79a55;
  --f-border: rgba(23, 27, 36, .2);
  --f-danger: #7a1c1c;
  --f-danger-light: #f0dada;
  --f-grain: rgba(23, 27, 36, .045);
  --f-hatch: rgba(23, 27, 36, .07);
  --f-fd: 'IM Fell English', 'Playfair Display', Georgia, serif;
  --f-fsc: 'IM Fell English SC', 'IM Fell English', Georgia, serif;
  --f-fb: 'EB Garamond', Georgia, serif;

  background-color: var(--f-parch);
  background-image:
    radial-gradient(var(--f-grain) 1px, transparent 1.2px),
    linear-gradient(var(--f-grain) 1px, transparent 1px),
    linear-gradient(90deg, var(--f-grain) 1px, transparent 1px);
  background-size: 7px 7px, 56px 56px, 56px 56px;
  color: var(--f-ink-light);
  font-family: var(--f-fb);
}

/* ── Vitrine fermée : animal dangereux ── */
body.fiche.danger {
  --f-parch: #180c10;
  --f-parch-dark: #26141a;
  --f-card: #2b161c;
  --f-ink: #f0e2d8;
  --f-ink-light: #eadfd3;
  --f-ink-muted: #b79c8c;
  --f-accent: #e0443a;
  --f-accent-dark: #b3261e;
  --f-accent-light: #4a1c1c;
  --f-gold: #d2ad55;
  --f-gold-light: rgba(210, 173, 85, .35);
  --f-brass: #d2ad55;
  --f-border: rgba(210, 173, 85, .22);
  --f-danger: #e0443a;
  --f-danger-light: #3d1010;
  --f-grain: rgba(210, 173, 85, .04);
  --f-hatch: rgba(210, 173, 85, .08);
  color-scheme: dark;
}
/* nav et footer du site en version sombre (comme dangereux.css) */
.fiche.danger nav { background: rgba(24, 12, 16, .95); border-bottom-color: rgba(210, 173, 85, .25); }
.fiche.danger .nav-logo { color: var(--f-ink); }
.fiche.danger .nav-logo em { color: var(--f-gold); }
.fiche.danger .nav-links a { color: var(--f-ink-muted); }
.fiche.danger .nav-links a:hover,
.fiche.danger .nav-links a[aria-current] { color: var(--f-accent); }
.fiche.danger .hamburger span { background: var(--f-ink); }
@media (max-width: 768px) { .fiche.danger .nav-links { background: rgba(24, 12, 16, .98); } }
.fiche.danger footer { background: var(--f-parch); border-top-color: rgba(210, 173, 85, .2); color: var(--f-ink-muted); }
.fiche.danger footer strong,
.fiche.danger footer a { color: var(--f-ink); }
.fiche.danger footer a:hover { color: var(--f-gold); }
.fiche.danger footer strong em { color: var(--f-gold); }
.fiche.danger footer .footer-copy,
.fiche.danger footer .footer-mentions { color: var(--f-ink-muted) !important; }
.fiche.danger footer [aria-current] { color: var(--f-gold); border-color: var(--f-gold); }
/* le logo du pied de page reprend celui de la barre de menu */
.fiche footer strong em { font-style: italic; color: var(--f-accent); }
.fiche.danger .search-wrap { background: var(--f-card); border-color: var(--f-border); }
.fiche.danger .search-wrap input { color: var(--f-ink); }

.fiche h1, .fiche h2, .fiche h3, .fiche p, .fiche dl, .fiche dd { margin: 0; }
.fiche a:focus-visible, .fiche button:focus-visible { outline: 2px solid var(--f-accent); outline-offset: 3px; }
.fiche .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ── Bandeau d'urgence ── */
.fiche .alerte { background: #b3261e; color: #fff; text-align: center; padding: .55rem 1rem; font-size: .92rem; letter-spacing: .05em; }
.fiche .alerte strong { font-family: var(--f-fd); font-weight: 400; font-size: 1.05rem; }

/* ── Fil d'Ariane (div, pas nav : style.css stylise toutes les balises nav) ── */
.fiche .crumbs { border-bottom: 1px solid var(--f-border); font-size: .84rem; color: var(--f-ink-muted); background: color-mix(in srgb, var(--f-parch) 85%, transparent); }
.fiche .crumbs .wrap { display: flex; flex-wrap: wrap; gap: .4rem; padding-block: .55rem; }
.fiche .crumbs a { color: var(--f-ink-muted); text-decoration: none; }
.fiche .crumbs a:hover { color: var(--f-accent); }
.fiche .crumbs i { opacity: .45; font-style: normal; }

/* ════════════════════════════════════════
   EN-TÊTE — la planche
════════════════════════════════════════ */
.fiche .head { padding-block: 3rem 2.2rem; }
.fiche .frame {
  position: relative;
  border: 1px solid var(--f-gold);
  outline: 1px solid var(--f-gold-light);
  outline-offset: -7px;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  background: color-mix(in srgb, var(--f-parch) 82%, transparent);
  overflow: hidden;
}
.fiche .frame > * { position: relative; z-index: 1; }
.fiche .corner { position: absolute; width: 46px; height: 46px; color: var(--f-gold); z-index: 2; pointer-events: none; }
.fiche .corner.tl { top: 4px; left: 4px; }
.fiche .corner.tr { top: 4px; right: 4px; transform: scaleX(-1); }
.fiche .corner.bl { bottom: 4px; left: 4px; transform: scaleY(-1); }
.fiche .corner.br { bottom: 4px; right: 4px; transform: scale(-1); }
.fiche .watermark {
  position: absolute; z-index: 0; right: -2%; bottom: -6%;
  font-family: var(--f-fd); font-style: italic; font-size: clamp(5rem, 16vw, 12rem); line-height: 1;
  color: var(--f-gold); opacity: .07; white-space: nowrap; pointer-events: none;
}
.fiche .compass { position: absolute; z-index: 0; left: -60px; top: -60px; width: 240px; height: 240px; color: var(--f-gold); opacity: .1; pointer-events: none; }

.fiche .band { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-family: var(--f-fsc); font-size: .8rem; letter-spacing: .24em; color: var(--f-gold); margin-bottom: 1.8rem; }
.fiche .band::before,
.fiche .band::after { content: ""; flex: 1; min-width: 30px; height: 4px; border-block: 1px solid var(--f-gold); opacity: .6; }

.fiche .head-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 3rem; align-items: start; }
.fiche .head-text { min-width: 0; }
.fiche .meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.1rem; }
.fiche .tag-group { font-family: var(--f-fsc); font-size: .86rem; letter-spacing: .14em; color: var(--f-gold); border: 1px solid var(--f-gold-light); padding: .2rem .8rem; }
.fiche .badge { display: inline-block; font-family: var(--f-fb); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .22rem .65rem; border: 1px solid; text-decoration: none; line-height: 1.4; }
.fiche .badge.safe { background: var(--f-accent-light); color: var(--f-accent-dark); border-color: transparent; }
.fiche .badge.risk { background: var(--f-danger-light); color: var(--f-danger); border-color: var(--f-danger); }
.fiche .badge.uicn { color: var(--f-ink-muted); border-color: var(--f-border); }
.fiche .badge.use { cursor: pointer; background: transparent; }
.fiche .badge.use:hover { background: var(--f-card); }

.fiche .plate-no { font-family: var(--f-fsc); font-size: .8rem; letter-spacing: .2em; color: var(--f-ink-muted); margin-bottom: .3rem; }
.fiche .sci { font-family: var(--f-fd); font-style: italic; font-weight: 400; font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1.05; color: var(--f-ink); text-wrap: balance; overflow-wrap: anywhere; }
.fiche .author { font-family: var(--f-fd); font-size: 1.05rem; color: var(--f-ink-muted); margin-top: .35rem; }
.fiche .common { font-size: 1.06rem; margin: 1.1rem 0 1.4rem; }
.fiche .common b { font-family: var(--f-fsc); font-weight: 400; font-size: .82rem; letter-spacing: .14em; color: var(--f-ink-muted); margin-right: .4rem; }
.fiche .common span { font-style: italic; }
.fiche .taxo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 2rem; border-top: 1px solid var(--f-border); padding-top: 1.1rem; }
.fiche .taxo div { display: flex; gap: .6rem; align-items: baseline; font-size: .92rem; min-width: 0; }
.fiche .taxo dt { font-family: var(--f-fsc); font-size: .78rem; letter-spacing: .12em; color: var(--f-ink-muted); min-width: 96px; }
.fiche .taxo dd { color: var(--f-ink-light); overflow-wrap: anywhere; }

/* ── Spécimen : boîte en laiton, verre, épingle, étiquette ── */
.fiche .specimen { position: relative; max-width: 100%; }
.fiche .pin {
  position: absolute; top: -10px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 35% 35%, #f0d896, #9a7a2c 60%, #4a3510);
  box-shadow: 0 3px 4px rgba(0, 0, 0, .35);
}
.fiche .box { padding: 12px; background: linear-gradient(135deg, #e0c27a, #b48a3a 50%, #7d5c22); box-shadow: 0 14px 30px rgba(10, 12, 18, .28); }
.fiche.danger .box { background: linear-gradient(135deg, #d2ad55, #8a6a28 55%, #4a3510); }
.fiche .glass { position: relative; aspect-ratio: 4 / 5; max-width: 100%; background: var(--f-parch-dark); border: 2px solid #5b431a; overflow: hidden; }
.fiche .glass img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fiche .glass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .22), transparent 38%); pointer-events: none; }
.fiche .credit { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; background: rgba(10, 12, 18, .55); color: #e9e3d2; font-size: .7rem; font-style: italic; padding: .3rem .6rem; text-align: right; }
.fiche .label {
  position: relative; margin: -18px auto 0; width: 78%; z-index: 2;
  background: #f4eed9; border: 1px solid #8d7a48; padding: .55rem .8rem .5rem; text-align: center; color: #2a1d16;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18); transform: rotate(-1deg);
}
.fiche .label .l1 { font-family: var(--f-fd); font-style: italic; font-size: 1.05rem; overflow-wrap: anywhere; }
.fiche .label .l2 { font-family: var(--f-fsc); font-size: .72rem; letter-spacing: .14em; color: #6a5a3a; margin-top: .1rem; }
.fiche .tape { position: absolute; inset: auto -20px 38% -20px; height: 26px; z-index: 3; transform: rotate(-8deg); background: repeating-linear-gradient(-45deg, #b3261e 0 16px, #1a0c0e 16px 32px); opacity: .85; pointer-events: none; }
.fiche .seal { position: absolute; right: -14px; bottom: 56px; width: 84px; height: 84px; z-index: 4; transform: rotate(-14deg); filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .4)); }

.fiche .rule { display: flex; align-items: center; gap: .8rem; color: var(--f-gold); margin-top: 2.4rem; max-width: 520px; }
.fiche .rule::before,
.fiche .rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .4; }
.fiche .rule svg { width: 22px; height: 22px; opacity: .7; }

/* ════════════════════════════════════════
   CORPS
════════════════════════════════════════ */
.fiche .body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 3.5rem; align-items: start; padding-bottom: 4rem; }
.fiche .content { min-width: 0; }
.fiche .sec { scroll-margin-top: 90px; }
.fiche .sec h2 {
  position: relative; display: flex; gap: .7rem; align-items: baseline;
  font-family: var(--f-fd); font-weight: 400; font-size: 1.6rem; color: var(--f-ink);
  padding-bottom: .7rem; border-bottom: 1px solid var(--f-border); margin-bottom: 1.2rem;
}
.fiche .sec h2::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 60px; height: 5px; background: var(--f-parch); border-block: 1px solid var(--f-gold); }
.fiche .sec h2 small { font-family: var(--f-fsc); font-size: .9rem; letter-spacing: .14em; color: var(--f-gold); }
.fiche .txt { font-size: 1.06rem; line-height: 1.8; max-width: 68ch; margin-bottom: .9rem; }
.fiche .txt.pending { font-style: italic; color: var(--f-ink-muted); }
.fiche .desc .txt:first-child::first-letter {
  float: left; font-family: var(--f-fd); font-size: 4.2rem; line-height: .82;
  padding: .35rem .6rem .1rem 0; margin-right: .5rem; color: var(--f-accent); border-right: 1px solid var(--f-gold-light);
}

/* Fleuron */
.fiche .div { display: flex; align-items: center; gap: 1rem; margin: 2.4rem 0; }
.fiche .div::before,
.fiche .div::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--f-gold-light) 30%, var(--f-gold-light) 70%, transparent); }
.fiche .div svg { width: 120px; height: 24px; color: var(--f-gold); opacity: .75; }

/* Mesures */
.fiche .facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--f-border); margin: 1.4rem 0 .4rem; background: var(--f-card);
  box-shadow: 4px 4px 0 var(--f-parch-dark), 5px 5px 0 var(--f-border);
}
.fiche .facts div { padding: .8rem 1rem; border-right: 1px solid var(--f-border); border-bottom: 1px solid var(--f-border); min-width: 0; }
.fiche .facts dt {
  font-family: var(--f-fsc); font-size: .74rem; letter-spacing: .14em; color: var(--f-ink-muted);
  background: repeating-linear-gradient(-45deg, var(--f-hatch) 0 2px, transparent 2px 5px);
  margin: -.8rem -1rem .4rem; padding: .35rem 1rem; border-bottom: 1px solid var(--f-border);
}
.fiche .facts dd { font-family: var(--f-fd); font-size: 1.15rem; color: var(--f-ink); font-variant-numeric: tabular-nums; }

/* Sources */
.fiche .src { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--f-border); }
.fiche .src b { font-family: var(--f-fsc); font-weight: 400; font-size: .76rem; letter-spacing: .14em; color: var(--f-ink-muted); }
.fiche .src a,
.fiche .src span { font-size: .78rem; font-style: italic; color: var(--f-ink-muted); text-decoration: none; border: 1px solid var(--f-border); padding: .12rem .6rem; }
.fiche .src a:hover { color: var(--f-accent); border-color: var(--f-accent); }

/* ── Traces : moulages sur fiches cartonnées ── */
.fiche .traces { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.fiche .trace {
  position: relative; min-width: 0;
  background: var(--f-card); border: 1px solid var(--f-border); outline: 1px solid var(--f-brass); outline-offset: -7px;
  padding: 2rem 1.2rem 1.1rem; transform: rotate(-.4deg); box-shadow: 0 6px 14px rgba(10, 12, 18, .12);
}
.fiche .trace:nth-child(even) { transform: rotate(.5deg); }
.fiche .trace::after { content: ""; position: absolute; top: 0; right: 0; width: 22px; height: 22px; background: linear-gradient(225deg, var(--f-parch) 50%, var(--f-parch-dark) 50%); box-shadow: -1px 1px 2px rgba(0, 0, 0, .12); }
.fiche .trace .inv { position: absolute; top: .75rem; left: 1.1rem; font-family: var(--f-fsc); font-size: .66rem; letter-spacing: .14em; color: var(--f-ink-muted); }
.fiche .trace figure {
  position: relative; margin: 0 0 .8rem; aspect-ratio: 4 / 3; max-width: 100%;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border: 1px solid var(--f-border); background-color: var(--f-parch-dark);
  background-image: repeating-linear-gradient(0deg, var(--f-hatch) 0 1px, transparent 1px 9px);
}
.fiche .trace figure img { width: 100%; height: 100%; object-fit: contain; }
.fiche .trace figcaption { position: absolute; right: 0; bottom: 0; left: 0; background: rgba(10, 12, 18, .5); color: #e9e3d2; font-size: .64rem; font-style: italic; padding: .2rem .5rem; text-align: right; }
.fiche .trace-ico { font-size: 3rem; opacity: .75; }
.fiche .trace .ttype { font-family: var(--f-fsc); font-size: .72rem; letter-spacing: .14em; color: var(--f-ink-muted); }
.fiche .trace h3 { font-family: var(--f-fd); font-weight: 400; font-size: 1.15rem; color: var(--f-ink); }
.fiche .trace .dim { font-family: var(--f-fsc); font-size: .76rem; letter-spacing: .12em; color: var(--f-gold); margin: .15rem 0 .4rem; }
.fiche .trace p { font-size: .94rem; line-height: 1.55; }
.fiche .tinfo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem .8rem; margin-top: .7rem; padding-top: .6rem; border-top: 1px dashed var(--f-border); font-size: .88rem; }
.fiche .tinfo dt { font-family: var(--f-fsc); font-size: .72rem; letter-spacing: .1em; color: var(--f-ink-muted); padding-top: .12rem; }

/* ── Précautions ── */
.fiche .prec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.fiche .pc { display: flex; gap: .9rem; padding: 1.1rem 1.2rem; border: 1px solid var(--f-border); background: var(--f-card); font-size: .94rem; line-height: 1.55; min-width: 0; }
.fiche .pc .ico { font-family: var(--f-fd); font-size: 1.4rem; color: var(--f-gold); line-height: 1; }
.fiche .pc strong { color: var(--f-ink); font-weight: 600; }
.fiche .pc.risk { border-left: 4px solid var(--f-danger); grid-column: 1 / -1; }
.fiche .pc.risk .ico { color: var(--f-danger); }

/* ── Usages : tiroirs ── */
.fiche .reg { font-size: .9rem; font-style: italic; color: var(--f-ink-muted); margin: -.2rem 0 1.2rem; max-width: 68ch; }
.fiche .drawer { position: relative; border: 1px solid var(--f-border); margin-bottom: .8rem; background: var(--f-card); box-shadow: 0 2px 0 var(--f-parch-dark); }
.fiche .drawer > button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem; border: none; cursor: pointer; text-align: left;
  font-family: var(--f-fd); font-size: 1.15rem; color: var(--c);
  background: repeating-linear-gradient(90deg, transparent 0 3px, var(--f-hatch) 3px 4px);
}
.fiche .drawer .lead { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.fiche .drawer .cnt { font-family: var(--f-fb); font-size: .82rem; color: var(--f-ink-muted); }
.fiche .drawer .knob { width: 22px; height: 12px; border-radius: 2px 2px 8px 8px; flex-shrink: 0; background: var(--f-brass); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25); transition: transform .3s; }
.fiche .drawer[data-open] .knob { transform: translateY(3px); }
.fiche .drawer .inner { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.fiche .drawer[data-open] .inner { grid-template-rows: 1fr; }
.fiche .drawer .inner > div { overflow: hidden; }
.fiche .drawer[data-open] .inner > div { padding-top: .9rem; }
.fiche .ucard { margin: 0 1.1rem 1rem; padding: 1rem 1.2rem; border-left: 3px solid var(--c); background: var(--f-parch); }
.fiche .ucard h3 { font-family: var(--f-fd); font-weight: 400; font-size: 1.12rem; margin-bottom: .3rem; }
.fiche .ucard h3 a { color: var(--c); text-decoration: none; }
.fiche.danger .ucard h3 a { color: var(--f-ink); }
.fiche .ucard .orig { font-style: italic; color: var(--f-ink-muted); font-size: .94rem; }
.fiche .ucard dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem 1rem; margin: .6rem 0; font-size: .95rem; }
.fiche .ucard dt { font-family: var(--f-fsc); font-size: .78rem; letter-spacing: .1em; color: var(--f-ink-muted); padding-top: .15rem; }
.fiche .ucard dd { overflow-wrap: anywhere; }
.fiche .ucard .more { font-size: .86rem; color: var(--c); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ── Sommaire : fiche de muséum ── */
.fiche .side { position: sticky; top: 90px; background: var(--f-card); border: 1px solid var(--f-border); padding: 1.2rem 1.1rem 1.3rem; box-shadow: 4px 4px 0 var(--f-parch-dark); }
.fiche .side::before,
.fiche .side::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--f-brass); }
.fiche .side::before { top: -5px; left: -5px; border-width: 2px 0 0 2px; }
.fiche .side::after { bottom: -5px; right: -5px; border-width: 0 2px 2px 0; }
.fiche .side-t { font-family: var(--f-fsc); font-size: .82rem; letter-spacing: .2em; color: var(--f-gold); padding-bottom: .6rem; border-bottom: 1px solid var(--f-border); margin-bottom: .8rem; }
/* la balise nav du sommaire ne doit pas hériter du style de la barre de menu */
.fiche .side nav.toc { position: static; display: flex; flex-direction: column; gap: .1rem; background: none; border: none; padding: 0; box-shadow: none; backdrop-filter: none; }
.fiche .toc a { font-size: .9rem; color: var(--f-ink-muted); text-decoration: none; padding: .3rem .5rem; border-left: 2px solid transparent; }
.fiche .toc a:hover,
.fiche .toc a.on { color: var(--f-accent); border-color: var(--f-accent); }
.fiche .side hr { border: none; border-top: 1px solid var(--f-border); margin: 1.2rem 0; }
.fiche .gbif dt { font-family: var(--f-fsc); font-size: .76rem; letter-spacing: .14em; color: var(--f-ink-muted); }
.fiche .gbif dd { font-family: var(--f-fd); font-size: 1.25rem; color: var(--f-ink); margin: .1rem 0 .4rem; font-variant-numeric: tabular-nums; }
.fiche .gbif-link { font-size: .86rem; font-style: italic; color: var(--f-accent); }
.fiche .stamp { margin-top: 1.4rem; display: flex; justify-content: center; }
.fiche .stamp svg { width: 118px; height: 118px; color: var(--f-accent); opacity: .55; transform: rotate(-9deg); }

/* ════════════════════════════════════════
   404 — Spécimen introuvable
════════════════════════════════════════ */
.fiche .nf { text-align: center; padding: 4rem max(16px, env(safe-area-inset-right, 0px)) 5rem max(16px, env(safe-area-inset-left, 0px)); min-height: 60vh; }
.fiche .nf-box { position: relative; width: 200px; max-width: 100%; margin: 0 auto 2.4rem; }
.fiche .nf-glass { position: relative; aspect-ratio: 4 / 5; border: 10px solid #b48a3a; outline: 2px solid #5b431a; background: var(--f-parch-dark); color: var(--f-ink-muted); box-shadow: 0 14px 30px rgba(10, 12, 18, .25); }
.fiche .nf-glass svg { width: 100%; height: 100%; }
.fiche .nf-code { font-family: var(--f-fsc); font-size: .9rem; letter-spacing: .2em; color: var(--f-gold); margin-bottom: .8rem; }
.fiche .nf h1 { font-family: var(--f-fd); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.1; color: var(--f-ink); }
.fiche .nf h1 em { color: var(--f-accent); }
.fiche .nf-txt { max-width: 460px; margin: 1rem auto 0; font-size: 1.08rem; color: var(--f-ink-muted); font-style: italic; line-height: 1.7; }
.fiche .nf-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2.2rem; }
.fiche .nf-btn { font-family: var(--f-fb); font-size: .95rem; letter-spacing: .06em; padding: .6rem 1.4rem; border: 1px solid var(--f-border); color: var(--f-ink-light); background: var(--f-card); text-decoration: none; }
.fiche .nf-btn.primary { background: var(--f-accent); border-color: var(--f-accent); color: #f2f5f8; }
.fiche .nf-btn:hover { border-color: var(--f-accent); }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 960px) {
  .fiche .compass { display: none; }
  .fiche .head-grid { grid-template-columns: 1fr; }
  .fiche .specimen { max-width: 360px; }
  .fiche .body { grid-template-columns: 1fr; gap: 2rem; }
  .fiche .side-col { order: -1; }
  .fiche .side { position: static; }
  .fiche .side nav.toc { flex-direction: row; flex-wrap: wrap; }
  .fiche .toc a { border-left: none; border-bottom: 2px solid transparent; }
  .fiche .stamp { display: none; }
  .fiche .prec { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .fiche .taxo { grid-template-columns: 1fr; }
  .fiche .head { padding-block: 1.5rem 1.2rem; }
  .fiche .seal { right: -6px; width: 70px; height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .fiche *, .fiche *::before, .fiche *::after { transition: none !important; animation: none !important; }
}

/* image de l'espèce : jamais de texte alternatif visible pendant le chargement ou en cas d'échec */
.fiche-img { color: transparent; font-size: 0; }