/* ════════════════════════════════════════
   PROTISTA — parasites.css
   Fiches de surveillance · trois portes d'entrée · prévention
   S'appuie sur les variables de style.css (Protista).
════════════════════════════════════════ */

/* Bandeau d'alerte */
.pa-alerte { background: #8a1f4f; color: #ffe3f0; text-align: center; padding: .6rem 1rem; font-size: .92rem; }
.pa-alerte strong { color: #fff; }
.page-para .nav-links a[aria-current] { color: #ff4d9d; }

/* ══════════════════════════════════
   EN-TÊTE
══════════════════════════════════ */
.pa-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(2.6rem,6vw,4.4rem) clamp(1rem,4vw,2rem) clamp(2rem,4vw,3rem);
  background: radial-gradient(ellipse at 50% 0%, rgba(255,77,157,.18), transparent 62%);
  border-bottom: 1px solid var(--border);
}
.pa-hero::before { content: "☣"; position: absolute; left: 50%; top: 52%; transform: translate(-50%,-50%); font-size: 15rem; color: #ff4d9d; opacity: .04; pointer-events: none; }
.pa-hero h1 { position: relative; font-family: var(--fd); font-weight: 300; font-size: clamp(2.3rem,5.8vw,4.2rem); letter-spacing: -.02em; line-height: 1.05; }
.pa-hero h1 em { font-style: normal; color: #ff4d9d; text-shadow: 0 0 26px rgba(255,77,157,.5); }
.pa-hero .lead { position: relative; margin: 1.1rem auto 1rem; max-width: 56ch; }
.pa-total { position: relative; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.pa-total strong { font-family: var(--fd); font-weight: 300; font-size: 1.4rem; letter-spacing: 0; color: #ff4d9d; margin-right: .3rem; }

.pa-portes h2, .pa-proteger h2, .pa-index h2 { font-family: var(--fd); font-weight: 300; font-size: clamp(1.6rem,3.4vw,2.3rem); text-align: center; }
.pa-sous { text-align: center; color: var(--ink-muted); font-style: italic; margin: .5rem 0 2.2rem; }

/* ══════════════════════════════════
   TROIS PORTES D'ENTRÉE
══════════════════════════════════ */
.pa-portes { max-width: 1180px; margin: 0 auto; padding: clamp(3rem,6vw,4.5rem) clamp(1rem,4vw,2rem) 1rem; }
.colonnes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.4rem; align-items: start; }
.porte {
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); border-top: 3px solid var(--c);
  border-radius: 0 0 22px 22px; background: rgba(8,26,44,.55); padding: 1.1rem 1rem 1.2rem;
}
.porte h3 {
  display: flex; align-items: center; gap: .6rem; margin: 0 .3rem 1rem;
  font-family: var(--fd); font-weight: 300; font-size: 1.02rem; color: var(--c);
}
.porte h3 span { font-size: 1.3rem; filter: saturate(.8); }

.fiche {
  display: grid; grid-template-columns: 74px minmax(0,1fr); gap: .9rem; align-items: start;
  padding: .9rem .8rem; margin-top: .7rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.fiche:first-of-type { margin-top: 0; }
.fiche:hover { border-color: var(--c); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 25%, transparent); transform: translateY(-2px); }
.champ {
  width: 74px; height: 74px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 42%, #0e405a 0, #07233a 58%, #030f1c 100%);
  box-shadow: 0 0 0 1px rgba(160,220,240,.3), 0 0 16px color-mix(in srgb, var(--c) 25%, transparent);
}
.champ svg { width: 86%; height: 86%; transition: transform .6s cubic-bezier(.2,.9,.3,1); }
.fiche:hover .champ svg { transform: scale(1.15) rotate(8deg); }
.f-txt { display: flex; flex-direction: column; min-width: 0; }
.f-mal { font-family: var(--fd); font-weight: 500; font-size: .95rem; line-height: 1.25; }
.f-txt em { font-size: .88rem; color: var(--c); margin-top: .1rem; }
.f-tr { margin-top: .45rem; font-size: .92rem; color: var(--ink-light); line-height: 1.4; }
.f-zone { margin-top: .4rem; font-size: .8rem; color: var(--ink-muted); }

/* ══════════════════════════════════
   SE PROTÉGER
══════════════════════════════════ */
.pa-proteger { max-width: 1180px; margin: 0 auto; padding: clamp(3rem,6vw,4.5rem) clamp(1rem,4vw,2rem) 1rem; }
.gestes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; margin-top: 2rem; }
.geste {
  padding: 1.3rem 1.4rem; border-radius: 20px;
  background: radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%), var(--card);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.geste b { display: block; font-family: var(--fd); font-weight: 300; font-size: 1.05rem; color: var(--c); margin-bottom: .5rem; }
.geste p { color: var(--ink-light); font-size: .97rem; line-height: 1.5; }

/* ══════════════════════════════════
   INDEX DES ESPÈCES
══════════════════════════════════ */
.pa-index { max-width: 1080px; margin: 0 auto; padding: clamp(3rem,6vw,4.5rem) clamp(1rem,4vw,2rem) clamp(3rem,6vw,5rem); }
.pa-lettres { display: grid; grid-template-columns: repeat(13, minmax(0,1fr)); gap: .5rem; }
.pl {
  aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; color: var(--ink);
  background: radial-gradient(circle at 50% 40%, rgba(255,77,157,.16), rgba(8,26,44,.9) 70%);
  border: 1px solid rgba(255,77,157,.45);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.pl b { font-family: var(--fd); font-weight: 300; font-size: 1.15rem; line-height: 1; }
.pl span { font-size: .66rem; color: var(--ink-muted); margin-top: .2rem; }
.pl:hover { border-color: #ff4d9d; box-shadow: 0 0 18px rgba(255,77,157,.5); transform: scale(1.08); }
.pl:hover b { color: #ff4d9d; }
.pl.off { opacity: .2; border-color: var(--border); background: transparent; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 960px) {
  .colonnes, .gestes { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .pa-lettres { grid-template-columns: repeat(9, minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .pa-lettres { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .fiche { grid-template-columns: 60px minmax(0,1fr); }
  .champ { width: 60px; height: 60px; }
}
