/* =====================================================================
   KAGNARD : thematique.css
   Styles légers pour les pages thématiques SEO (/thematiques/).
   Réutilise le gabarit solution.css / home.css ; n'ajoute que le bloc
   de contenu rédactionnel (prose SEO) et un rappel "règle d'or".
   ===================================================================== */

.thematique-prose {
  max-width: 800px;
  margin-inline: auto;
}
.thematique-prose > h2 {
  font-size: var(--fs-h2);
  margin-top: 2.4rem;
  margin-bottom: 0.6rem;
}
.thematique-prose > h2:first-child { margin-top: 0; }
.thematique-prose h3 {
  font-size: var(--fs-h3);
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
}
.thematique-prose p {
  color: var(--gris-texte);
  line-height: 1.75;
  margin: 0.75rem 0;
}
.thematique-prose ul {
  margin: 0.75rem 0 0.9rem;
  padding-left: 1.25rem;
  color: var(--gris-texte);
  line-height: 1.7;
}
.thematique-prose li { margin: 0.35rem 0; }
.thematique-prose strong { color: var(--noir); }

/* Illustration du "pourquoi" en milieu d'article : casse la colonne de texte
   avec une image qui incarne concrètement le problème avant la bascule vers
   la solution (même logique que .pain__visual sur les pages secteur). */
.thematique-prose__figure {
  position: relative;
  margin: 1.8rem 0 2.2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.thematique-prose__figure img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.06);
}
/* Même duotone marine -> ambre que .pain__visual (solution.css), pour une
   cohérence de traitement des visuels "problème" sur tout le site. */
.thematique-prose__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(var(--marine-rgb), 0.35) 0%, rgba(242, 100, 25, 0.12) 55%, rgba(184, 70, 16, 0.4) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.thematique-prose__figure figcaption {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  padding: 0.6rem 1rem;
  background: rgba(var(--marine-rgb), 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--blanc);
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 10px;
}
@media (max-width: 560px) {
  .thematique-prose__figure img { height: 220px; }
}

/* Rappel "règle d'or" (pose extérieure) réutilisable */
.gold-rule {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 1.6rem;
  padding: 1.1rem 1.3rem;
  background: var(--bleu-soft);
  border-left: 4px solid var(--bleu);
  border-radius: var(--radius-sm);
  color: var(--noir);
  line-height: 1.6;
}
.gold-rule svg { flex: 0 0 auto; color: var(--bleu); margin-top: 0.15rem; }

/* Bloc « pose intérieure / extérieure, vitrage, budget » : fond alterné pour
   le détacher de la section pose qui précède, tableau compact en prose. */
.thematique-pose { background: var(--blanc-casse); }
.thematique-prose .eyebrow { margin-bottom: 0.5rem; }
.thematique-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.9rem 0 1.1rem;
  font-size: 0.95rem;
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.thematique-prose th, .thematique-prose td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--gris-bord);
  white-space: nowrap;
}
.thematique-prose thead th { background: var(--noir); color: var(--blanc); font-size: 0.82rem; font-weight: 600; }
.thematique-prose tbody th { font-weight: 600; color: var(--noir); }
.thematique-prose tbody th a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--gris-bord); }
.thematique-prose tbody th a:hover { color: var(--orange-fonce); border-color: currentColor; }
.thematique-prose td { color: var(--gris-texte); }
.thematique-prose tbody tr:last-child th, .thematique-prose tbody tr:last-child td { border-bottom: none; }
@media (max-width: 560px) {
  .thematique-prose table { display: block; overflow-x: auto; }
}
