/* ============================================================
   Nota — Centre de confiance (/nota/confiance)
   Additive stylesheet, loaded only on trust-center pages.
   Reuses the site's existing design tokens (--primary, --text-*,
   --border-*, .glass, .prose-dark, .edito-index, .marker-underline…).
   Introduces nothing new to the global stylesheet.
   ============================================================ */

/* Anchors land below the fixed header */
.prose-dark h2[id], .prose-dark h3[id] { scroll-margin-top: 6.5rem; }

/* ---------- Status badges (hub index, documents page) ---------- */
.nc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.nc-badge--online {
  color: #047857;
  background: rgba(220, 252, 235, 0.9);
  border: 1px solid rgba(4, 120, 87, 0.18);
}
.nc-badge--ondemand {
  color: #92400e;
  background: rgba(254, 243, 199, 0.9);
  border: 1px solid rgba(146, 64, 14, 0.18);
}
.nc-badge__dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; flex: none; }

/* ---------- Document index rows (hub) ---------- */
.nc-doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.nc-doc-row:last-child { border-bottom: none; }
.nc-doc-row__title { font-weight: 600; color: var(--text-primary); font-size: 0.95rem; }
.nc-doc-row__desc { color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.2rem; }
.nc-doc-row__right { display: flex; align-items: center; gap: 0.75rem; flex: none; }

/* ---------- Table of contents ---------- */
.nc-toc summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nc-toc summary::-webkit-details-marker { display: none; }
.nc-toc summary::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid var(--text-muted);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.15s ease;
}
.nc-toc[open] summary::before { transform: rotate(90deg); }
.nc-toc-list {
  margin-top: 0.9rem;
  padding-left: 0;
  list-style: none;
  columns: 1;
  font-size: 0.85rem;
}
.nc-toc-list li { margin-bottom: 0.5rem; }
.nc-toc-list a { color: var(--text-secondary); text-decoration: none; }
.nc-toc-list a:hover { color: var(--primary); }
@media (min-width: 640px) {
  .nc-toc-list { columns: 2; column-gap: 2rem; }
}

/* ---------- Notice / callout boxes ---------- */
.nc-notice {
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 1.5rem 0;
  border: 1px solid;
}
.nc-notice--info { background: rgba(238, 240, 255, 0.7); border-color: rgba(32, 32, 204, 0.18); }
.nc-notice--amber { background: rgba(254, 243, 199, 0.7); border-color: rgba(146, 64, 14, 0.18); }
.nc-notice strong { color: var(--text-primary); }

/* ---------- PDF download button ---------- */
.nc-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(32, 32, 204, 0.25);
  background: rgba(238, 240, 255, 0.5);
  transition: background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.nc-pdf-link:hover { background: rgba(238, 240, 255, 0.9); border-color: rgba(32, 32, 204, 0.4); }

/* ---------- Responsive table wrapper (never lets the page scroll sideways) ---------- */
.nc-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; -webkit-overflow-scrolling: touch; }
.nc-table-wrap table { margin-bottom: 0 !important; min-width: 560px; }

/* ---------- Pillars (hub) ---------- */
.nc-pillar { height: 100%; }

/* ---------- Print stylesheet ---------- */
@media print {
  header, footer, #sticky-cta, .nc-no-print { display: none !important; }
  main { padding-top: 0 !important; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #555; }
  a[href^="#"]::after { content: ""; }
  .prose-dark { color: #000 !important; }
  .prose-dark a { color: #000 !important; text-decoration: underline; }
  .glass { background: #fff !important; backdrop-filter: none !important; border: 1px solid #ccc !important; box-shadow: none !important; }
  body { background: #fff !important; }
}
