/* Tableau des peines (peines des propositions de loi adoptées) */
.tp-count { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--navy); }
.tp-count::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.tp-body { padding-top: 32px; padding-bottom: 64px; }
.tp-intro { max-width: 860px; margin-bottom: 20px; }
.tp-intro p { margin: 0; font-size: 16px; line-height: 1.6; color: #3a4049; }
.tp-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 15px; font-variant-numeric: tabular-nums; }
.tp-table .tp-c-name { width: 30%; }
.tp-table thead th { padding: 9px 12px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; vertical-align: bottom; }
.tp-table thead tr:first-child th:first-child { border-top-left-radius: 8px; vertical-align: middle; }
.tp-table thead tr:first-child th:last-child { border-top-right-radius: 8px; }
.tp-table thead .tp-th-grp { text-align: center; color: var(--gold); border-bottom: 1px solid rgba(255, 255, 255, .18); }
.tp-table thead tr + tr th { background: var(--navy-dark); font-weight: 600; letter-spacing: .04em; }
.tp-table th.num, .tp-table td.num { text-align: right; }
.tp-table .tp-sep { border-left: 2px solid rgba(201, 168, 120, .55); }
.tp-table tbody th { padding: 11px 12px; font-weight: 600; text-align: left; color: var(--ink); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.tp-table tbody td { padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tp-table tbody tr:nth-child(even):not(.tp-src) > * { background: var(--tint); }
.tp-table .tp-nom { font-weight: 700; color: var(--navy); }
.tp-table .tp-grp { display: none; }
.tp-table .tp-src th { padding: 10px 12px; background: #f8f3ea; border-bottom: 1px solid #e7dcc6; font-size: 14px; font-weight: 700; color: var(--navy); }
.tp-table .tp-src span { font-weight: 500; color: var(--muted); }
.tp-table .tp-empty td { padding: 46px 16px; text-align: center; background: #fbfaf7; border: 1px dashed #d9cdb6; border-top: 0; border-radius: 0 0 8px 8px; white-space: normal; }
.tp-empty strong { display: block; font-family: var(--serif); font-size: 20px; color: var(--navy); margin-bottom: 6px; }
.tp-empty span { display: block; max-width: 520px; margin: 0 auto; color: var(--muted); line-height: 1.5; }
.tp-foot { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
.tp-foot a { font-weight: 600; }

/* Sous 960 px : une fiche par manquement, sans défilement horizontal */
@media (max-width: 960px) {
  .tp-table, .tp-table tbody { display: block; }
  .tp-table colgroup, .tp-table thead { display: none; }
  .tp-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
  .tp-table tbody tr > * { background: #fff !important; }
  .tp-table tbody th { grid-column: 1 / -1; background: #eef2f8 !important; color: var(--navy); }
  .tp-table .tp-grp { display: block; grid-column: 1 / -1; padding: 8px 12px 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark, #9c7b45); border: 0; }
  .tp-table tbody td.num { text-align: left; padding: 4px 12px 10px; border: 0; white-space: normal; }
  .tp-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
  .tp-table .tp-sep { border-left: 0; }
  .tp-table tbody tr.tp-src { display: block; border: 0; background: none; margin: 18px 0 8px; }
  .tp-table tbody tr.tp-src th { background: none !important; padding: 0; border: 0; font-size: 15px; }
  /* Tableau vide : le message seul */
  .tp-table tbody tr.tp-empty { display: block; border: 1px dashed #d9cdb6; }
  .tp-table tbody tr.tp-empty td { display: block; border: 0; }
}
