/* Les tableaux à phrases, en cartes sur téléphone (Steven, 12/11/2026 : « là c'est illisible »).
   Posée par .claude/tools/tableaux.mjs sur les pages qui en ont un (classe tableau-cartes) : chaque ligne devient une
   carte, sa première cellule en titre, puis chaque colonne avec son intitulé (data-label) au-dessus du texte. Sur
   ordinateur, rien ne change. Les tableaux courts (mots, dates, montants) restent des tableaux.
   La classe est doublée pour l'emporter sur .guide table et .tv-mots, sans !important. */
@media (max-width:640px){
  table.tableau-cartes.tableau-cartes,
  table.tableau-cartes.tableau-cartes tbody,
  table.tableau-cartes.tableau-cartes tr,
  table.tableau-cartes.tableau-cartes td,
  table.tableau-cartes.tableau-cartes tbody th{display:block;width:auto}
  table.tableau-cartes.tableau-cartes{background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
  table.tableau-cartes.tableau-cartes thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  table.tableau-cartes.tableau-cartes caption{display:block;text-align:left;margin:0 0 10px}
  table.tableau-cartes.tableau-cartes tbody tr{background:var(--carte);border:1px solid var(--bord);border-radius:16px;margin:0 0 10px;padding:14px 16px;box-shadow:0 1px 0 rgba(51,47,43,.04)}
  table.tableau-cartes.tableau-cartes tbody tr + tr{border-top:1px solid var(--bord)}
  table.tableau-cartes.tableau-cartes tbody tr > :first-child{font-family:var(--display);font-weight:700;font-size:17px;line-height:1.3;color:var(--encre);background:none;padding:0 0 6px;border:0;text-transform:none;letter-spacing:0}
  table.tableau-cartes.tableau-cartes td{padding:8px 0 0;border:0;background:none;font-size:15px;line-height:1.5}
  table.tableau-cartes.tableau-cartes td[data-label]::before{content:attr(data-label);display:block;margin:0 0 2px;font-family:var(--body);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--doux)}
  .tableau:has(> table.tableau-cartes),.vac-table:has(> table.tableau-cartes){overflow:visible}
}

/* Les colonnes courtes ne se coupent jamais (« 4 et 5 / ans ») : classe nw-c<n> posée par tableaux.mjs quand chaque
   cellule de la colonne n tient en 18 signes. */
.nw-c1 tr>:nth-child(1),.nw-c2 tr>:nth-child(2),.nw-c3 tr>:nth-child(3),.nw-c4 tr>:nth-child(4),.nw-c5 tr>:nth-child(5),.nw-c6 tr>:nth-child(6){white-space:nowrap}
