/* « שפת עיצוב אחת » : composants communs. Doc : docs/DESIGN_LANGUAGE.md. Charge APRES app.css et workspace.css, AVANT les feuilles propres aux ecrans.
   Les reglages de la direction (design.php) arrivent par des variables --ds-* posees dans <head> ; ici, des valeurs par defaut identiques a l'aspect d'avant. */

/* ---- Bouton de systeme : un lien qui fait une action ressemble et se comporte comme un <button> ---- */
a.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid transparent; border-radius: 10px; padding: .6rem 1.3rem; font-weight: 600; line-height: 1.3; background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
a.btn:hover { background: #3f5ee8; text-decoration: none; color: #fff; }
a.btn:active { transform: translateY(1px); }
a.btn.ghost { background: #fff; color: var(--ink2); border-color: var(--line); }
a.btn.ghost:hover { background: #f4f6fb; color: var(--ink); }
a.btn.small { padding: .35rem .8rem; font-size: .85rem; border-radius: 8px; }
a.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
a.btn svg { width: 16px; height: 16px; }
a.btn:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Rangee d'actions : meme espacement partout, retour a la ligne sur petit ecran */
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .6rem 0; }
.btn-row.center { justify-content: center; }

/* ---- Modele de tableau : .table-wrap > table.list (modele des pages d'analyse), variante .ds-grid = grille centree des ecrans de chiffres ---- */
table.list.ds-grid th, table.list.ds-grid td { text-align: center; vertical-align: middle; font-variant-numeric: tabular-nums; border: 1px solid #c4cedc; }
table.list.ds-grid th { background: #eaf0f8; color: var(--ink); }
table.list.ds-grid tbody tr:nth-child(even) td { background: #f2f5fa; }
table.list.ds-grid tbody tr:hover td { background: #e7eef9; }
