/* Page /duerp-exemple — tableau DUERP rempli, cotation, pièges de contrôle */

.dx-breadcrumb { font-size: 13.5px; color: var(--text-light); margin-bottom: 12px; }
.dx-breadcrumb a { color: var(--text-light); }
.dx-meta { font-size: 13.5px; color: var(--text-light); line-height: 1.6; margin-top: 14px; }
.dx-intro { color: var(--text); line-height: 1.7; max-width: 820px; margin-bottom: 2rem; }
.dx-note {
    font-size: 14px; color: var(--text-light); line-height: 1.65;
    border-left: 3px solid var(--border); padding-left: 14px; margin-top: 1.25rem;
}

/* Fiche entreprise */
.dx-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem;
}
.dx-card h3 { margin: 0 0 1rem; color: var(--dark); font-size: 1.125rem; }
.dx-card--identity { border-left: 4px solid var(--primary); }
.dx-card--sign { border-left: 4px solid var(--success, #16a34a); }
.dx-card--sign p { margin: 0 0 8px; color: var(--text); line-height: 1.6; }

.dx-dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 2rem; }
.dx-dl > div { display: flex; flex-direction: column; gap: 2px; }
.dx-dl dt { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-light); font-weight: 600; }
.dx-dl dd { margin: 0; color: var(--dark); font-size: 14.5px; line-height: 1.5; }

/* Unités de travail */
.dx-unit { margin-bottom: 2.5rem; }
.dx-unit h3 { color: var(--dark); font-size: 1.375rem; margin: 0 0 4px; }
.dx-unit-meta { color: var(--text-light); font-size: 14px; line-height: 1.6; margin: 0 0 1rem; }

/* Tableau DUERP */
.dx-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-white); }
.dx-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 900px; }
.dx-table caption { caption-side: top; text-align: left; padding: 12px 14px; font-size: 13px; color: var(--text-light); border-bottom: 1px solid var(--border); }
.dx-table th, .dx-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-light, #eef2f7); vertical-align: top; text-align: left; }
.dx-table thead th { background: var(--bg-alt); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-light); font-weight: 700; white-space: nowrap; }
.dx-table tbody tr:last-child td { border-bottom: none; }
.dx-table tbody tr:hover { background: var(--primary-50, #f8fafc); }
.dx-table .dx-num { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dx-table .dx-danger { min-width: 220px; color: var(--dark); }
.dx-table .dx-delai, .dx-table .dx-resp { font-size: 12.5px; color: var(--text-light); min-width: 110px; }
.dx-family { font-size: 11.5px; color: var(--text-light); }
.dx-list { margin: 0; padding-left: 16px; }
.dx-list li { margin: 0 0 4px; line-height: 1.45; }

.dx-table--small { min-width: 0; }
.dx-table--small th[scope="row"] { width: 40px; font-weight: 700; color: var(--dark); background: var(--bg-alt); }

/* Grilles G / F */
.dx-grids { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 1.5rem 0 2rem; }
.dx-grids h3 { font-size: 1rem; color: var(--dark); margin: 0 0 10px; }
.dx-grids .dx-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* Calculs déroulés */
.dx-calc {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem;
}
.dx-calc-head { font-weight: 700; color: var(--dark); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dx-calc p { line-height: 1.7; margin: 0; color: var(--text); }

/* Pièges de contrôle */
.dx-pitfall { border-top: 1px solid var(--border); padding: 1.5rem 0; }
.dx-pitfall h3 { display: flex; align-items: center; gap: 10px; color: var(--dark); font-size: 1.125rem; margin: 0 0 12px; }
.dx-pitfall-num {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
    background: var(--primary); color: #fff; font-size: 13px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.dx-pitfall p { line-height: 1.7; color: var(--text); margin: 0 0 10px; }
.dx-tag {
    display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; padding: 2px 8px; border-radius: 4px; margin-right: 8px;
}
.dx-tag--bad { background: #fee2e2; color: #b91c1c; }
.dx-tag--good { background: #dcfce7; color: #166534; }
.dx-bad { background: #fef2f2; border-left: 3px solid #dc2626; padding: 10px 14px; border-radius: 0 6px 6px 0; }
.dx-good { background: #f0fdf4; border-left: 3px solid #16a34a; padding: 10px 14px; border-radius: 0 6px 6px 0; }

/* CTA */
.dx-cta-inline { text-align: center; margin-top: 2.5rem; }
.dx-cta-inline .dx-meta { max-width: 560px; margin: 14px auto 0; }
.dx-final { text-align: center; }
.dx-final p { text-align: left; line-height: 1.75; color: var(--text); }
.dx-final .dx-meta { text-align: center; }

@media (max-width: 768px) {
    .dx-dl, .dx-grids { grid-template-columns: 1fr; }
    .dx-table { font-size: 13px; }
    .dx-final p { text-align: left; }
}
