/* ====================================================
   PLANTIDICO — page-fiche-plante.css (Lot 1.3)
   Layout global page fiche plante. Pas de re-définition
   de composants existants, uniquement layout d'assemblage.
   ==================================================== */

/* Reset minimal page */
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body-m);
  line-height: var(--leading-body-m);
}

/* ====================================================
   PLANT CONTENT (TOC + sections)
   Grille 240px sticky / 1fr contenu desktop ≥1024.
   Mobile <1024 : TOC display:none (décision 1.3 :
   en mobile, la TOC empilée masque le début du contenu).
   ==================================================== */
.plant-content {
  background: var(--linen);
}
.plant-content__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-44) var(--space-16);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-44);
  align-items: start;
}
.plant-content__body {
  min-width: 0;
  max-width: var(--max-w-text);
}
.plant-section {
  margin-bottom: var(--space-44);
  /* Audit code en dur Lot 1 : token --header-height (84px) pour offset précis. */
  scroll-margin-top: var(--space-44);
}
@media (min-width: 1024px) {
  .plant-section {
    scroll-margin-top: calc(var(--header-height) + var(--space-16));
  }
}
.plant-section:last-child {
  margin-bottom: 0;
}
.plant-section > p {
  font-size: var(--text-body-m);
  line-height: var(--leading-body-m);
  color: var(--ink);
  margin: 0 0 var(--space-16);
}
.plant-section > p:last-of-type {
  margin-bottom: var(--space-24);
}
.plant-section > p em {
  font-style: italic;
}


/* ====================================================
   MEDICAL DISCLAIMER (rendu PHP au sein de .plant-section "precautions")
   Disclaimer rendu en aside par single-plante.php, à la suite du bloc
   précaution-block. Override font-size si paragraphes (resilience).
   ==================================================== */
.medical-disclaimer {
  margin-top: var(--space-16);
  margin-bottom: 0;
}
.medical-disclaimer p {
  font-size: var(--text-caption);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}


/* ====================================================
   SECTION TITLES — surlignage terra-deep global
   Remplace l'ancien <span class="hl"> par un coloriage global des H2 dans
   .plant-content__body. Tous les H2 de section passent en terra-deep,
   plus besoin de surlignage manuel mot par mot.
   ==================================================== */
.plant-content__body h2 {
  color: var(--terra-deep);
}


/* ====================================================
   À LIRE AUSSI (blog-related-list wrapper)
   ==================================================== */
.plant-blog-related {
  background: var(--linen-warm);
  border-top: 1px solid var(--line);
  padding: var(--space-44) var(--space-16);
}
.plant-blog-related__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.plant-blog-related h2 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-display-bold);
  letter-spacing: var(--tracking-h3);
  color: var(--olive-deep);
  margin: 0 0 var(--space-24);
  line-height: 1.15;
}


/* ====================================================
   UTILITAIRES
   ==================================================== */
.mock-tag {
  color: var(--ink-mute);
  font-style: italic;
  opacity: 0.7;
  font-size: 0.85em;
  white-space: nowrap;
}


/* ====================================================
   RESPONSIVE
   ==================================================== */

/* Hide TOC en mobile/tablet (<1024px) — empêche masquage du début de contenu */
@media (max-width: 1023px) {
  .plant-content__inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: var(--space-24) var(--space-12);
  }
  .toc {
    display: none;
  }
}

@media (max-width: 768px) {
  .plant-blog-related {
    padding: var(--space-32) var(--space-12);
  }
  .plant-blog-related h2 {
    margin-bottom: var(--space-16);
  }
  .plant-section {
    margin-bottom: var(--space-32);
  }
}
