/* La page « Protection des données » (jalon J19) et la déclaration publique, d'après la maquette
   approuvée. Les couleurs viennent des jetons de la charte (--nsg-*) ; les conditions du passage
   se cochent ✓ ou ✗. */
.nsg-pd { display: grid; gap: var(--nsg-espace); min-width: 0; }
.nsg-pd h3 { font-size: 16px; margin: 16px 0 6px; }
.nsg-pd code { font-size: 12px; overflow-wrap: anywhere; }
.nsg-pd .nsg-tableau-cadre { overflow-x: auto; }
.nsg-pd .nsg-tableau td { vertical-align: top; }
.nsg-pd .nsg-tableau .nsg-statut { white-space: normal; margin: 2px 0; }

/* L'état : quatre faits en grille, puis les conditions du passage. */
.nsg-pd-faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 20px; }
.nsg-pd-faits p { margin: 2px 0; }
.nsg-pd-libelle { font-size: 12.5px; font-weight: 700; color: var(--nsg-discret); margin: 0; }
.nsg-pd-conditions { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; font-size: 14px; }
.nsg-pd-conditions li, .nsg-pd-ecarts li { padding-left: 26px; position: relative; }
.nsg-pd-conditions li::before, .nsg-pd-ecarts li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.nsg-pd-oui::before { content: "✓"; color: var(--nsg-tertiaire-encre); }
.nsg-pd-non::before { content: "✗"; color: var(--nsg-erreur); }
.nsg-pd-ecarts { display: inline; margin-left: 6px; }
.nsg-pd-ecarts ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; font-size: 13px; }
.nsg-pd-geste { display: grid; gap: 8px; justify-items: start; margin: 8px 0; }

/* Les faits du responsable et les incidents : un bloc chacun, le formulaire replié dessous. */
.nsg-pd-fait, .nsg-pd-incident { border-top: 1px solid var(--nsg-trait); padding: 10px 0; }
.nsg-pd-fait:first-of-type, .nsg-pd-incident:first-of-type { border-top: 0; padding-top: 0; }
.nsg-pd-fait p, .nsg-pd-incident p { margin: 2px 0; }
.nsg-pd details > summary { cursor: pointer; color: var(--nsg-lien); font-size: 13px; font-weight: 700; margin: 4px 0; }
.nsg-pd details > summary.nsg-btn { color: var(--nsg-texte); list-style: none; display: inline-flex; margin-top: 8px; }
.nsg-pd details > summary.nsg-btn::-webkit-details-marker { display: none; }
.nsg-pd-form { margin: 8px 0 4px; padding: 12px; border: 1px solid var(--nsg-trait); border-radius: var(--nsg-rayon); background: var(--nsg-surface-2); }
.nsg-pd-ligne { border: 1px solid var(--nsg-trait); border-radius: var(--nsg-rayon-champ); background: var(--nsg-surface); padding: 10px 12px 2px; margin: 0 0 8px; min-width: 0; display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.nsg-pd-ligne > button { justify-self: start; margin-bottom: 12px; }
.nsg-pd-champs { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.nsg-pd-cases { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; padding: 0; border: 0; font-size: 14px; }
.nsg-pd-cases legend { font-size: 13px; font-weight: 700; padding: 0; margin-bottom: 6px; width: 100%; }
.nsg-pd-case { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

/* L'historique, du plus récent au plus ancien. */
.nsg-pd-historique { margin: 0 0 8px; padding-left: 28px; font-size: 13.5px; display: grid; gap: 6px; }

/* La déclaration publique : une page de lecture, en langage simple. */
.nsg-pd-declaration { max-width: 860px; width: 100%; justify-self: center; }
.nsg-pd-declaration h1 { font-size: 26px; margin: 4px 0 12px; }
.nsg-pd-declaration h2 { font-size: 18px; margin: 20px 0 6px; }
.nsg-pd-declaration p, .nsg-pd-declaration li { max-width: 72ch; }
.nsg-pd-declaration ul { padding-left: 20px; margin: 4px 0; }
.nsg-pd-pied { border-top: 1px solid var(--nsg-trait); margin-top: 22px; padding-top: 10px; font-size: 13px; color: var(--nsg-discret); }
.nsg-pd-pied p { margin: 2px 0; }
.nsg-pd-pied code { font-size: 12px; overflow-wrap: anywhere; }
