/* ════════════════════════════════════════
   ANIMALIA — dangereux.css
   La vitrine fermée : bocaux de formol, laiton, cire rouge.
   Reprend les couleurs de la « vitrine fermée » de l'accueil.
════════════════════════════════════════ */
.page-danger {
  --dg-fond: #180c10;
  --dg-fond2: #26141a;
  --dg-carte: #2b161c;
  --dg-bord: #6d4a3a;
  --dg-laiton: #d2ad55;
  --dg-rouge: #b3261e;
  --dg-rouge-vif: #e0443a;
  --dg-texte: #eadfd3;
  --dg-doux: #b79c8c;
  background: var(--dg-fond);
  color: var(--dg-texte);
}

/* ── Bandeau d'urgence ── */
.alerte {
  background: var(--dg-rouge); color: #fff; text-align: center;
  padding: .55rem 1rem; font-size: .88rem; letter-spacing: .06em;
}
.alerte strong { font-family: var(--fd); font-weight: 400; font-size: 1.05rem; }

/* ── Navigation et pied de page en version sombre ── */
.page-danger nav { background: rgba(24,12,16,.95); border-bottom-color: rgba(210,173,85,.25); }
.page-danger .nav-logo { color: var(--dg-texte); }
.page-danger .nav-logo em { color: var(--dg-laiton); }
.page-danger .nav-links a { color: var(--dg-doux); }
.page-danger .nav-links a:hover, .page-danger .nav-links a[aria-current] { color: var(--dg-rouge-vif); }
.page-danger .hamburger span { background: var(--dg-texte); }
@media (max-width: 768px) { .page-danger .nav-links { background: rgba(24,12,16,.98); } }
.page-danger footer { background: var(--dg-fond); border-top-color: rgba(210,173,85,.2); color: var(--dg-doux); }
.page-danger footer strong, .page-danger footer a { color: var(--dg-texte); }
.page-danger footer a:hover, .page-danger footer [aria-current] { color: var(--dg-laiton); border-color: var(--dg-laiton); }
.page-danger .footer-mentions { color: var(--dg-doux) !important; }

/* ══════════════════════════════════
   EN-TÊTE
══════════════════════════════════ */
.dg-hero {
  position: relative; text-align: center;
  padding: clamp(2.6rem,6vw,4.6rem) clamp(1rem,4vw,2rem) clamp(2rem,4vw,3rem);
  background: radial-gradient(ellipse at 50% 0%, rgba(179,38,30,.22), transparent 62%);
  border-bottom: 1px solid rgba(210,173,85,.2);
  overflow: hidden;
}
.dg-hero::before {
  content: "☠"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-size: 15rem; opacity: .035; pointer-events: none;
}
.dg-tag {
  display: inline-block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--dg-laiton); border: 1px solid rgba(210,173,85,.4); padding: .3rem 1rem; margin-bottom: 1.4rem;
}
.dg-hero h1 { position: relative; font-family: var(--fd); font-weight: 400; font-size: clamp(2.6rem,6.4vw,4.8rem); line-height: 1.02; }
.dg-hero h1 em, .dg-bandeau h1 em { color: var(--dg-rouge-vif); font-style: italic; }
.dg-lead { position: relative; max-width: 50ch; margin: 1rem auto 0; font-size: 1.1rem; font-style: italic; color: var(--dg-doux); line-height: 1.6; }
.dg-stats { position: relative; display: inline-flex; gap: 2.6rem; margin-top: 1.8rem; font-size: .82rem; letter-spacing: .06em; color: var(--dg-doux); }
.dg-stats strong { display: block; font-family: var(--fd); font-weight: 400; font-size: 2rem; color: var(--dg-laiton); letter-spacing: 0; }

/* ══════════════════════════════════
   CONDUITE À TENIR
══════════════════════════════════ */
.conduite {
  max-width: 900px; margin: clamp(2rem,4vw,3rem) auto 0; padding: 1.5rem clamp(1.2rem,3vw,2rem);
  background: linear-gradient(#26141a, #1d0f13);
  border: 1px solid var(--dg-bord); border-left: 4px solid var(--dg-rouge);
  box-shadow: 0 14px 30px rgba(0,0,0,.4);
}
.conduite h2 { font-family: var(--fd); font-weight: 400; font-size: 1.45rem; color: var(--dg-rouge-vif); margin-bottom: 1rem; }
.conduite ol { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 2rem; }
.conduite li { position: relative; padding-left: 2.6rem; color: var(--dg-texte); line-height: 1.45; font-size: .98rem; }
.conduite li b { position: absolute; left: 0; top: 0; font-family: var(--fd); font-weight: 400; color: var(--dg-laiton); font-size: 1.15rem; }

/* ══════════════════════════════════
   LES ÉTAGÈRES DE BOCAUX
══════════════════════════════════ */
.dg-main { max-width: 1120px; margin: 0 auto; padding: clamp(2.4rem,5vw,3.6rem) clamp(1rem,4vw,2rem) 4.5rem; }
.etageres { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2.6rem 1.6rem; }

.case { position: relative; display: flex; flex-direction: column; align-items: center; padding-bottom: 1.2rem; }
.case::before {                                 /* l'étagère en bois sous le bocal */
  content: ""; position: absolute; left: -.8rem; right: -.8rem; top: 214px; height: 12px;
  background: linear-gradient(#5a3a22, #3a2414); box-shadow: 0 6px 10px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,220,160,.15);
}
.case.vide { opacity: .4; }
.case.vide .bocal { pointer-events: none; }

.bocal {
  position: relative; z-index: 1; display: block; width: 150px; height: 214px; text-decoration: none;
  transition: transform .3s ease;
}
.couvercle {
  position: absolute; left: 16%; right: 16%; top: 0; height: 26px; z-index: 2;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(90deg, #7d5c22, #e0c27a 35%, #b48a3a 60%, #7d5c22);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 2px 3px rgba(0,0,0,.4);
}
.couvercle::after {                             /* bague du couvercle */
  content: ""; position: absolute; left: -6%; right: -6%; bottom: -5px; height: 7px; border-radius: 3px;
  background: linear-gradient(90deg, #6a4c1a, #c49a45 40%, #6a4c1a);
}
.verre {
  position: absolute; left: 0; right: 0; top: 26px; bottom: 0; overflow: hidden;
  border-radius: 22px 22px 30px 30px;
  border: 2px solid rgba(234,223,211,.35);
  background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,.03) 28%, rgba(255,255,255,.02) 72%, rgba(255,255,255,.12));
  box-shadow: inset 0 0 18px rgba(0,0,0,.35);
}
.formol {                                       /* le liquide jaunâtre */
  position: absolute; left: 0; right: 0; bottom: 0; height: 80%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(rgba(214,180,90,.30), rgba(150,108,40,.48));
  border-top: 2px solid rgba(240,214,142,.45);
}
.specimen {
  font-size: 4.4rem; line-height: 1;
  filter: sepia(.75) saturate(.75) brightness(.9) drop-shadow(0 4px 6px rgba(0,0,0,.4));
  transition: transform .8s ease;
}
.reflet {
  position: absolute; top: 10%; bottom: 14%; left: 12%; width: 10px; border-radius: 10px;
  background: linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.08));
}
.sceau {
  position: absolute; z-index: 2; right: -8px; bottom: 26px; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #3a0806;
  background: radial-gradient(circle at 35% 30%, #e0443a, #b3261e 55%, #7a120c);
  box-shadow: 0 0 0 3px rgba(179,38,30,.35), 0 4px 8px rgba(0,0,0,.5);
  transform: rotate(-12deg);
}
.bocal:hover { transform: translateY(-6px); }
.bocal:hover .specimen { transform: translateY(-6px) rotate(-6deg); }

/* L'étiquette sous l'étagère (même papier que la vitrine de l'accueil) */
.etiquette {
  position: relative; width: 100%; margin-top: 1.6rem;
  background: #f0e8d4; color: #2a1d16; padding: .9rem 1rem 1rem;
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
}
.etiquette::before {                            /* punaise */
  content: ""; position: absolute; top: 7px; right: 9px; width: 9px; height: 9px; border-radius: 50%;
  background: #b3261e; box-shadow: 0 0 8px #b3261e;
}
.etq-titre { text-decoration: none; color: inherit; display: block; }
.etq-titre b { font-family: var(--fd); font-weight: 400; font-size: 1.3rem; color: #171b24; }
.etq-titre em { font-size: .86rem; color: #6a5a3c; }
.etq-titre:hover b { color: var(--dg-rouge); }
.risque { display: block; margin-top: .2rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #a5302a; }
.exemples { list-style: none; margin: .6rem 0 0; border-top: 1px dashed rgba(106,90,60,.35); padding-top: .4rem; }
.exemples a { display: flex; justify-content: space-between; gap: .6rem; padding: .18rem 0; text-decoration: none; color: #3a2f22; font-size: .9rem; }
.exemples a span { color: #6a5a3c; font-size: .82rem; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exemples a:hover i { color: var(--dg-rouge); }
.etq-nb { display: block; margin-top: .6rem; text-align: right; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: #6a5a3c; }

/* Bocaux vides : complètent la dernière étagère */
.case.libre { display: none; opacity: .55; }
.case.libre .verre { background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.02) 30%, rgba(255,255,255,.06)); }
.case.libre .etiquette { background: #d8ccb2; }
.case.libre .etiquette::before { display: none; }
.case.libre .risque { color: #7a6a52; text-align: center; font-style: italic; text-transform: none; letter-spacing: 0; font-size: .9rem; }
@media (min-width: 901px)                        { .case.libre.pour-3 { display: flex; } }
@media (min-width: 561px) and (max-width: 900px) { .case.libre.pour-2 { display: flex; } }

.tout-voir { text-align: center; margin-top: 3rem; }
.tout-voir a {
  display: inline-block; color: var(--dg-laiton); text-decoration: none;
  font-size: .86rem; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid rgba(210,173,85,.4); padding-bottom: .2rem;
}
.tout-voir a:hover { color: var(--dg-rouge-vif); border-color: var(--dg-rouge-vif); }

/* ══════════════════════════════════
   VUE 2 — BANDEAU, ALPHABET, REGISTRE
══════════════════════════════════ */
.dg-bandeau {
  padding: 1.2rem clamp(1rem,4vw,3rem) clamp(1.8rem,4vw,2.6rem);
  background: radial-gradient(ellipse at 30% 0%, rgba(179,38,30,.2), transparent 60%);
  border-bottom: 1px solid rgba(210,173,85,.2);
}
.dg-crumbs { max-width: 1120px; margin: 0 auto 1.4rem; font-size: .88rem; font-style: italic; color: var(--dg-doux); }
.dg-crumbs a { color: var(--dg-laiton); text-decoration: none; }
.dg-crumbs a:hover { text-decoration: underline; }
.dg-crumbs span { margin: 0 .3rem; opacity: .6; }
.dg-bandeau-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: auto minmax(0,1fr); gap: clamp(1.4rem,3vw,2.6rem); align-items: center; }
.dg-bandeau h1 { font-family: var(--fd); font-weight: 400; font-size: clamp(2.2rem,5vw,3.6rem); line-height: 1.05; }
.dg-bandeau .dg-lead { margin: .6rem 0 0; }
.bocal--mini { width: 100px; height: 142px; }
.bocal--mini .couvercle { height: 18px; }
.bocal--mini .verre { top: 18px; border-radius: 16px 16px 22px 22px; }
.bocal--mini .specimen { font-size: 2.8rem; }

.dg-alpha {
  position: sticky; top: 62px; z-index: 150;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 3px;
  padding: .55rem 1rem; background: rgba(24,12,16,.96); backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(210,173,85,.2);
}
.ab {
  min-width: 30px; height: 30px; padding: 0 .35rem; line-height: 30px; text-align: center;
  font-family: var(--fd); font-size: .95rem; text-decoration: none; color: var(--dg-texte); border-radius: 3px;
  transition: background .18s, color .18s;
}
.ab:hover { background: var(--dg-rouge); color: #fff; }
.ab.actif { background: linear-gradient(135deg, #e0c27a, #9a7a2c); color: #2a1d10; }
.ab.off { opacity: .22; }

.registre-dg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.4rem;
  background: var(--dg-carte); border: 1px solid var(--dg-bord);
  box-shadow: 0 0 0 5px var(--dg-fond), 0 0 0 7px #8a6a2c, 0 18px 30px rgba(0,0,0,.45);
  padding: 1.2rem 1.6rem 1.6rem;
}
.rg-col { list-style: none; }
.rg-col li { border-bottom: 1px solid rgba(210,173,85,.1); }
.rg-col a {
  display: flex; align-items: baseline; gap: .6rem; padding: .4rem .4rem;
  text-decoration: none; color: var(--dg-texte); font-size: .96rem; border-radius: 3px;
  transition: background .15s, padding-left .15s;
}
.rg-col a:hover { background: rgba(179,38,30,.16); padding-left: .8rem; }
.rg-col a:hover .rg-sci { color: #fff; }
.rg-n { flex: 0 0 2.6rem; text-align: right; font-family: var(--fd); font-size: .8rem; color: var(--dg-laiton); }
.rg-n::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .5rem; border-radius: 50%; background: var(--dg-rouge-vif); box-shadow: 0 0 6px var(--dg-rouge-vif); vertical-align: middle; }
.rg-sci { font-style: italic; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-com { margin-left: auto; font-size: .86rem; color: var(--dg-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; text-align: right; }
.rg-g { flex: 0 0 auto; font-size: .95rem; filter: sepia(.5); }
.dg-vide { text-align: center; font-style: italic; color: var(--dg-doux); padding: 3rem 0; }

.dg-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: 2.2rem; }
.dg-pages a, .dg-pages span {
  min-width: 38px; padding: .4rem .6rem; text-align: center;
  font-family: var(--fd); text-decoration: none; color: var(--dg-texte);
  background: var(--dg-carte); border: 1px solid var(--dg-bord);
}
.dg-pages a:hover { border-color: var(--dg-rouge-vif); color: var(--dg-rouge-vif); }
.dg-pages .actif { background: var(--dg-rouge); border-color: var(--dg-rouge); color: #fff; }
.dg-pages .etc { background: none; border: none; }

/* ══════════════════════════════════
   FILTRES, NIVEAUX, LÉGENDE
══════════════════════════════════ */
.dg-stats { flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.2rem 1.6rem; }
.dg-stats .op { font-family: var(--fd); font-size: 1.6rem; color: var(--dg-doux); opacity: .6; margin-bottom: 1.2rem; }
.dg-venin-note { position: relative; margin-top: .6rem; font-size: .9rem; color: #7fd68a; }
.dg-venin-note strong { font-family: var(--fd); font-weight: 400; font-size: 1.15rem; }

.dg-filtres {
  position: relative; display: inline-flex; margin-top: 1.6rem;
  border: 1px solid rgba(210,173,85,.4); border-radius: 3px; overflow: hidden;
}
.dg-bandeau .dg-filtres { margin-top: 1rem; }
.dg-filtres a {
  padding: .45rem 1.1rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--dg-doux); transition: background .18s, color .18s;
}
.dg-filtres a + a { border-left: 1px solid rgba(210,173,85,.25); }
.dg-filtres a:hover { color: var(--dg-texte); background: rgba(179,38,30,.18); }
.dg-filtres a.actif { background: linear-gradient(135deg, #e0c27a, #9a7a2c); color: #2a1d10; }

/* Pastille de niveau devant chaque nom (remplace le point rouge unique) */
.niv-1 { --niv: #d2ad55; --niv-glow: transparent; }
.niv-2 { --niv: #e07a3a; --niv-glow: rgba(224,122,58,.6); }
.niv-3 { --niv: #ff3b30; --niv-glow: #ff3b30; }
.rg-col li .rg-n::after { background: var(--niv, var(--dg-rouge-vif)); box-shadow: 0 0 6px var(--niv-glow, var(--dg-rouge-vif)); }
.rg-col li.niv-3 .rg-sci { color: #fff; }
.rg-venin { flex: 0 0 auto; color: #7fd68a; font-size: .8rem; text-shadow: 0 0 6px rgba(127,214,138,.6); }

.dg-legende {
  max-width: 1120px; margin: 1.4rem auto 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem;
  font-size: .8rem; color: var(--dg-doux);
}
.dg-legende span::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .45rem; border-radius: 50%;
  vertical-align: middle; background: var(--niv); box-shadow: 0 0 6px var(--niv-glow);
}
.dg-legende .leg-venin { color: #7fd68a; }
.dg-legende .leg-venin::before { display: none; }

.dg-note { max-width: 60ch; margin: 1rem auto 0; text-align: center; font-size: .86rem; font-style: italic; color: var(--dg-doux); }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 900px) {
  .etageres { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .conduite ol { grid-template-columns: 1fr; }
  .registre-dg { grid-template-columns: 1fr; }
  .rg-com { display: none; }
}
@media (max-width: 560px) {
  .etageres { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .dg-bandeau-in { grid-template-columns: 1fr; text-align: center; }
  .bocal--mini { margin: 0 auto; }
  .dg-stats { gap: 1.6rem; }
}