/* ════════════════════════════════════════
   MONERA — pathogenes.css
   Tableau de surveillance · antibiogramme · plaque d'index
   S'appuie sur les variables de style.css (Monera).
════════════════════════════════════════ */

.pt-alerte { background: var(--danger); color: #fff; text-align: center; padding: .6rem 1rem; font-family: var(--fd); font-size: .76rem; line-height: 1.5; }
.pt-alerte strong { font-size: .95rem; }
.page-patho .nav-links a[aria-current] { color: var(--danger); }

/* Papier quadrillé */
.pt-hero, .pt-bandeau {
  background-image: linear-gradient(#d5dfda 1px, transparent 1px), linear-gradient(90deg, #d5dfda 1px, transparent 1px);
  background-size: 34px 34px;
  border-bottom: 1px solid var(--border);
}

/* ══════════════════════════════════
   EN-TÊTE
══════════════════════════════════ */
.pt-hero { text-align: center; padding: clamp(2.4rem,5vw,4rem) clamp(1rem,4vw,2rem) clamp(1.8rem,3vw,2.6rem); }
.pt-hero .hero-tag { color: var(--danger); border-color: var(--danger-light); background: var(--card); }
.pt-hero h1 { font-family: var(--fd); font-weight: 800; font-size: clamp(2.4rem,6vw,4.4rem); letter-spacing: -.05em; line-height: 1; }
.pt-hero h1 span { color: var(--danger); }
.pt-hero .lead { max-width: 52ch; margin: 1rem auto; font-size: 1.05rem; font-style: italic; color: var(--ink-muted); line-height: 1.6; }
.pt-total { font-family: var(--fd); font-size: .78rem; color: var(--ink-muted); }
.pt-total strong { color: var(--danger); font-size: 1rem; }

.pt-surv h2, .pt-index h2 { font-family: var(--fd); font-weight: 800; font-size: clamp(1.5rem,3.2vw,2.1rem); letter-spacing: -.03em; text-align: center; }
.pt-sous { text-align: center; font-family: var(--fd); font-size: .72rem; color: var(--ink-muted); margin: .5rem 0 1.8rem; }

/* ══════════════════════════════════
   TABLEAU DE SURVEILLANCE
══════════════════════════════════ */
.pt-surv { max-width: 1080px; margin: 0 auto; padding: clamp(2.8rem,6vw,4.2rem) clamp(1rem,4vw,2rem) 1rem; }
.legende { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; margin-bottom: 1.2rem; font-family: var(--fd); font-size: .72rem; color: var(--ink-light); }
.legende span { display: inline-flex; align-items: center; gap: .4rem; }
.legende i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.lg-vac b, .vac { font-family: var(--fd); font-weight: 800; font-size: .6rem; letter-spacing: .08em; color: #2f9e7e; border: 1.5px solid #2f9e7e; padding: .05rem .35rem; }

.tableau { background: var(--card); border: 1px solid var(--border); border-top: 5px solid var(--danger); box-shadow: 0 10px 22px rgba(30,26,44,.08); }
.tb-entete, .tb-ligne {
  display: grid; grid-template-columns: 9.5rem minmax(0,1.25fr) minmax(0,1.1fr) minmax(0,1.4fr) 3rem;
  gap: 1rem; align-items: center; padding: .6rem 1.1rem;
}
.tb-entete { font-family: var(--fd); font-weight: 800; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 2px solid var(--ink); padding-top: .8rem; }
.tb-entete span:last-child, .tb-gram { text-align: center; }
.tb-ligne { text-decoration: none; color: var(--ink-light); border-bottom: 1px solid rgba(30,26,44,.08); border-left: 4px solid var(--c); transition: background .15s; }
.tb-ligne:nth-child(odd) { background: rgba(213,223,218,.22); }
.tb-ligne:hover { background: color-mix(in srgb, var(--c) 10%, #fff); }
.tb-voie { display: flex; align-items: center; gap: .45rem; font-family: var(--fd); font-size: .7rem; font-weight: 800; color: var(--c); }
.tb-voie i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.tb-nom { font-style: italic; font-size: 1rem; color: var(--ink); }
.tb-mal { font-family: var(--fd); font-size: .78rem; font-weight: 800; color: var(--ink); }
.tb-mal .vac { margin-left: .3rem; vertical-align: 1px; }
.tb-src { font-size: .9rem; color: var(--ink-muted); }
.tb-gram { font-family: var(--fd); font-weight: 800; font-size: .85rem; }
.tb-gram.gp { color: #7a3fb0; }
.tb-gram.gn { color: #e2467f; }
.tb-gram.ga { color: #d08a1e; font-size: .7rem; }

/* ══════════════════════════════════
   ANTIBIOGRAMME
══════════════════════════════════ */
.pt-anti { max-width: 1080px; margin: 0 auto; padding: clamp(3rem,6vw,4.5rem) clamp(1rem,4vw,2rem) 1rem; }
.anti-in { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(1.6rem,4vw,3.4rem); align-items: center; }
.anti-boite { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff, rgba(255,255,255,.45) 45%, rgba(220,230,226,.7));
  box-shadow: inset 0 0 0 2px rgba(30,26,44,.18), inset 0 0 0 10px rgba(255,255,255,.7), inset 0 0 0 11px rgba(30,26,44,.12), 0 18px 34px rgba(30,26,44,.16), 0 4px 0 #c9d3cf;
}
.gelose-anti {                                   /* tapis bactérien uniforme */
  position: absolute; inset: 14px; border-radius: 50%;
  background:
    radial-gradient(circle, rgba(226,70,127,.10) 1px, transparent 1.6px) 0 0 / 7px 7px,
    radial-gradient(circle at 50% 50%, #f1d9de, #e8c2cc);
}
.disque {
  position: absolute; width: var(--h); aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, #f6f2e4 0 60%, rgba(246,242,228,.6) 70%, transparent 72%);   /* le halo d'inhibition */
}
.disque b {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fd); font-weight: 800; font-size: .58rem; color: var(--ink);
  background: #fff; box-shadow: 0 0 0 1.5px #b4c3bc, 0 2px 3px rgba(30,26,44,.15);
}
.disque.resist { background: none; }
.disque.resist b { box-shadow: 0 0 0 2px var(--danger), 0 2px 3px rgba(30,26,44,.15); color: var(--danger); }
.anti-etq {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%) rotate(-3deg); white-space: nowrap;
  font-family: var(--fd); font-weight: 800; font-size: .7rem; padding: .3rem .8rem;
  background: rgba(255,251,222,.95); border-left: 3px solid var(--danger); box-shadow: 0 2px 4px rgba(30,26,44,.12);
}
.anti-txt .hero-tag { margin-bottom: 1rem; }
.anti-txt h2 { font-family: var(--fd); font-weight: 800; font-size: clamp(1.4rem,3vw,2rem); letter-spacing: -.03em; line-height: 1.1; }
.anti-txt > p { margin-top: 1rem; color: var(--ink-light); line-height: 1.6; }
.anti-txt > p b { color: var(--ink); }
.anti-txt > p b.r { color: var(--danger); }
.anti-txt ul { list-style: none; margin-top: 1.3rem; background: var(--card); border: 1px solid var(--border); }
.anti-txt li { display: grid; grid-template-columns: 2.6rem 1fr; gap: .6rem; padding: .75rem 1rem; border-top: 1px solid var(--border); font-size: .95rem; color: var(--ink-light); line-height: 1.45; }
.anti-txt li:first-child { border-top: 0; }
.anti-txt li b { font-family: var(--fd); font-weight: 800; color: var(--accent); }

/* ══════════════════════════════════
   INDEX : PLAQUE À PUITS
══════════════════════════════════ */
.pt-index { max-width: 1080px; margin: 0 auto; padding: clamp(3.4rem,6vw,4.8rem) clamp(1rem,4vw,2rem) clamp(3rem,6vw,5rem); }
.plaque {
  display: grid; grid-template-columns: repeat(13, minmax(0,1fr)); gap: .7rem .5rem;
  padding: 1.2rem 1.2rem 1rem; background: #dbe4e0; border: 2px solid #b4c3bc; border-radius: 30px 12px 12px 12px;
  box-shadow: 0 14px 30px rgba(30,26,44,.12);
}
.puits { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); }
.pu-cercle {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #f7faf8; box-shadow: inset 0 0 0 1.5px #b4c3bc;
  transition: box-shadow .2s, transform .2s;
}
.pu-cercle i {                                   /* le contenu du puits */
  position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f08aa8, var(--danger) 70%);
  opacity: var(--i, .5);
}
.pu-cercle b { position: relative; font-family: var(--fd); font-weight: 800; font-size: 1rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.pu-nb { margin-top: .35rem; font-family: var(--fd); font-size: .6rem; color: var(--ink-muted); }
.puits:hover .pu-cercle { transform: scale(1.08); box-shadow: inset 0 0 0 2px var(--danger), 0 4px 10px rgba(179,18,47,.25); }
.puits.off .pu-cercle b { color: #b4c3bc; text-shadow: none; }
.puits.off { opacity: .6; }

/* ══════════════════════════════════
   LISTE D'UNE LETTRE
══════════════════════════════════ */
.pt-lettres { position: sticky; top: 62px; z-index: 150; display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; padding: .55rem 1rem; background: rgba(238,242,240,.95); backdrop-filter: blur(4px); border-bottom: 1px solid var(--border); }
.lb { min-width: 30px; height: 30px; line-height: 28px; text-align: center; font-family: var(--fd); font-weight: 800; font-size: .8rem; text-decoration: none; color: var(--ink-light); background: var(--card); border: 1px solid var(--border); border-radius: 50%; }
.lb:hover { border-color: var(--danger); color: var(--danger); }
.lb.actif { background: var(--danger); border-color: var(--danger); color: #fff; }

.pt-bandeau { padding: 1.2rem clamp(1rem,4vw,3rem) clamp(1.8rem,4vw,2.6rem); }
.pt-crumbs { max-width: 1040px; margin: 0 auto 1.4rem; font-family: var(--fd); font-size: .74rem; color: var(--ink-muted); }
.pt-crumbs a { color: var(--danger); text-decoration: none; }
.pt-crumbs span { margin: 0 .35rem; opacity: .6; }
.pt-bandeau-in { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: auto minmax(0,1fr); gap: clamp(1.4rem,3vw,2.6rem); align-items: center; }
.pt-grande {
  width: clamp(100px,13vw,140px); aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fd); font-weight: 800; font-size: clamp(3rem,6vw,4.4rem); color: #fff;
  background: radial-gradient(circle at 34% 30%, #f08aa8, var(--danger) 70%);
  box-shadow: 0 0 0 8px #f7faf8, 0 0 0 10px #b4c3bc, 0 12px 22px rgba(30,26,44,.15);
}
.pt-bandeau .hero-tag { color: var(--danger); border-color: var(--danger-light); background: var(--card); margin-bottom: .9rem; }
.pt-bandeau h1 { font-family: var(--fd); font-weight: 800; font-size: clamp(1.9rem,4.6vw,3.2rem); letter-spacing: -.05em; line-height: 1.05; }
.pt-desc { color: var(--ink-muted); font-style: italic; margin-top: .5rem; font-size: 1.05rem; }

.pt-main { max-width: 1040px; margin: 0 auto; padding: clamp(2.2rem,5vw,3.4rem) clamp(1rem,4vw,2rem) 4.5rem; }
.pt-fiche { background: var(--card); border: 1px solid var(--border); border-top: 5px solid var(--danger); box-shadow: 0 10px 22px rgba(30,26,44,.08); }
.pf-entete, .pf-lignes a { display: grid; grid-template-columns: 4.2rem minmax(0,1.3fr) minmax(0,1fr) 4.6rem; gap: 1rem; align-items: center; padding: .5rem 1.1rem; }
.pf-entete { font-family: var(--fd); font-weight: 800; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 2px solid var(--ink); padding-top: .8rem; }
.pf-lignes { list-style: none; }
.pf-lignes li { border-bottom: 1px solid rgba(30,26,44,.08); }
.pf-lignes li:nth-child(even) { background: rgba(213,223,218,.25); }
.pf-lignes a { text-decoration: none; color: var(--ink-light); transition: background .15s; }
.pf-lignes a:hover { background: color-mix(in srgb, var(--danger) 7%, #fff); }
.pf-n { font-family: var(--fd); font-size: .72rem; color: var(--ink-muted); }
.pf-sci { font-style: italic; font-size: .98rem; color: var(--ink); display: flex; align-items: center; gap: .55rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-sci i { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px var(--danger-light); }
.pf-com { font-size: .9rem; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-g { font-family: var(--fd); font-weight: 800; font-size: .66rem; color: var(--accent); text-align: right; }
.pt-vide { text-align: center; font-style: italic; color: var(--ink-muted); padding: 3rem 0; }

.pt-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2.2rem; }
.pt-pages a, .pt-pages span { min-width: 36px; padding: .4rem .6rem; text-align: center; font-family: var(--fd); font-weight: 800; font-size: .8rem; text-decoration: none; color: var(--ink-light); background: var(--card); border: 1px solid var(--border); }
.pt-pages a:hover { border-color: var(--danger); color: var(--danger); }
.pt-pages .actif { background: var(--danger); border-color: var(--danger); color: #fff; }
.pt-pages .etc { background: none; border: none; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 900px) {
  .tb-entete { display: none; }
  .tb-ligne { grid-template-columns: minmax(0,1fr) 2.4rem; grid-template-areas: "voie gram" "nom gram" "mal gram" "src gram"; gap: .2rem .8rem; padding: .8rem 1rem; }
  .tb-voie { grid-area: voie; } .tb-nom { grid-area: nom; } .tb-mal { grid-area: mal; } .tb-src { grid-area: src; } .tb-gram { grid-area: gram; align-self: center; }
  .anti-in { grid-template-columns: 1fr; }
  .plaque { grid-template-columns: repeat(9, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .plaque { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .pf-entete, .pf-lignes a { grid-template-columns: 3.2rem minmax(0,1fr) 3.6rem; }
  .pf-entete span:nth-child(3), .pf-com { display: none; }
  .pt-bandeau-in { grid-template-columns: 1fr; text-align: center; }
  .pt-grande { margin: 0 auto; }
}
