/**
 * Typographie du CORPS d'article de blog Cabinet NDA.
 *
 * Le renderer (blog-engine/lib/render-article.mjs) produit un html brut
 * (titres, paragraphes, listes, tableaux, FAQ, iframes). On le stylise ici,
 * scopé sous `.nda-prose`, à la direction artistique NDA : titres EB Garamond,
 * corps Mulish, liens/accents magenta #C0285F, filets or #C8A35B. Les polices
 * sont déjà déclarées par assets/nda.css (chargé avant celui-ci). Auto-suffisant
 * (aucune variable CSS externe requise).
 */

.nda-prose {
  color: #34333a;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
}

.nda-prose > * + * {
  margin-top: 1.25em;
}

.nda-prose h2,
.nda-prose h3,
.nda-prose h4 {
  color: #2a2a2e;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  scroll-margin-top: 6rem;
}

.nda-prose h2 {
  font-size: 2rem;
  margin-top: 2.6rem;
}

.nda-prose h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.nda-prose h4 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

.nda-prose :is(h2, h3, h4):first-child {
  margin-top: 0;
}

.nda-prose p {
  margin-top: 1.25em;
}

.nda-prose a {
  color: #c0285f;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nda-prose a:hover {
  color: #8d1c41;
}

.nda-prose strong {
  color: #c0285f;
  font-weight: 700;
}

.nda-prose ul,
.nda-prose ol {
  margin-top: 1.25em;
  padding-left: 1.5rem;
}

.nda-prose ul {
  list-style: disc;
}

.nda-prose ol {
  list-style: decimal;
}

.nda-prose li {
  margin-top: 0.5em;
}

.nda-prose li::marker {
  color: #c0285f;
}

.nda-prose blockquote {
  margin-top: 1.5em;
  border-left: 3px solid #c8a35b;
  padding-left: 1.25rem;
  font-style: italic;
  color: #56504a;
}

.nda-prose img {
  border-radius: 14px;
  margin-top: 1.75em;
  width: 100%;
  height: auto;
}

.nda-prose hr {
  margin-top: 2.5em;
  margin-bottom: 0.5em;
  border: 0;
  border-top: 1px solid rgba(200, 163, 91, 0.35);
}

/* FAQ : chaque question (h3[data-faq-q]) séparée par un filet, en EB Garamond. */
.nda-prose h3[data-faq-q] {
  margin-top: 1.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(200, 163, 91, 0.3);
  font-weight: 600;
  font-size: 1.3rem;
}

.nda-prose h3[data-faq-q] + p {
  margin-top: 0.6em;
  color: #56504a;
}

.nda-prose code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.9em;
  background: rgba(192, 40, 95, 0.08);
  color: #8d1c41;
  padding: 0.15em 0.4em;
  border-radius: 6px;
}

.nda-prose pre {
  margin-top: 1.5em;
  background: #1c1a1e;
  color: #e9e4ee;
  padding: 1.25rem;
  border-radius: 14px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

.nda-prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.nda-prose table {
  margin-top: 1.75em;
  /* display:block + overflow → les tableaux larges défilent horizontalement sur
     mobile au lieu de faire déborder toute la page. */
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.nda-prose th,
.nda-prose td {
  border: 1px solid rgba(200, 163, 91, 0.3);
  padding: 0.6rem 0.85rem;
  text-align: left;
}

.nda-prose th {
  background: #fbeef3;
  color: #2a2a2e;
  font-weight: 700;
}

/* Iframe (YouTube) rendue par la directive ::: @iframe — 16:9, coins arrondis. */
.nda-prose .sb-iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin-top: 1.75em;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}
