/* Chantier « travaux » (v2.8) : onglet du menu, page « Travaux » et bloc de l'accueil.
   Rouge = obligatoire (problème), orange = à vérifier (prêt à relire), un seul bouton principal par ligne. */
.menu-principal .onglet-travaux{display:flex;align-items:center;gap:6px;padding:9px 12px;border-radius:8px;font-weight:800;font-size:14.5px;
  color:var(--marine);text-decoration:none;white-space:nowrap}
.menu-principal .onglet-travaux:hover{background:#f1f4f9}
.menu-principal .onglet-travaux.courant{box-shadow:inset 0 -2px 0 var(--orange)}
.tr-badge{display:inline-block;min-width:20px;padding:1px 7px;border-radius:999px;background:var(--orange-bouton);color:#fff;font-size:12px;
  font-weight:800;text-align:center;line-height:18px}

.travaux .tr-tete{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.travaux .tr-tete h1,.travaux .tr-tete h2{margin:0}
.travaux .tr-tete h2 a{color:inherit;text-decoration:none}
.tr-tous{font-size:13.5px;font-weight:700;color:var(--marine2)}
.tr-onglets{display:flex;gap:4px;margin:14px 0 10px;border-bottom:1px solid var(--trait);overflow-x:auto;scrollbar-width:none}
.tr-onglet{display:flex;align-items:center;gap:6px;padding:10px 14px;min-height:44px;box-sizing:border-box;text-decoration:none;color:var(--muet);
  font-weight:700;font-size:14.5px;border-bottom:3px solid transparent;margin-bottom:-1px;white-space:nowrap}
.tr-onglet:hover{color:var(--marine)}
.tr-onglet.sel{color:var(--marine);border-bottom-color:var(--orange)}
.tr-onglet b{display:inline-block;min-width:20px;padding:0 7px;border-radius:999px;background:#eef1f6;color:#3f4b5f;font-size:12.5px;line-height:20px;text-align:center}
.tr-onglet b.tr-n-valider{background:var(--orange-bouton);color:#fff}

.tr-filtres{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:0 0 8px}
.tr-filtres input[type=search]{flex:1 1 260px;min-width:0}
.tr-filtres select{flex:0 1 230px}
.tr-effacer{font-size:13.5px}
.tr-tout{margin:0 0 8px;font-weight:700;color:var(--marine)}

.tr-liste{list-style:none;margin:0;padding:0}
.tr-ligne{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px 14px;padding:11px 4px 11px 12px;
  border-bottom:1px solid var(--trait);border-left:4px solid transparent;transition:opacity .25s}
.tr-ligne.part{opacity:0}
.tr-ligne:last-child{border-bottom:0}
.tr-ligne.tr-pret{border-left-color:var(--orange)}
.tr-ligne.tr-probleme{border-left-color:var(--rouge)}
.tr-lien{display:flex;flex-direction:column;gap:2px;text-decoration:none;color:var(--encre);min-width:0}
.tr-lien:hover .tr-titre{text-decoration:underline}
.tr-titre{font-weight:700;font-size:15px;overflow-wrap:anywhere}
.tr-titre .urgent{color:var(--rouge)}
.tr-meta{font-size:13px;color:var(--muet)}
.tr-detail{font-size:13px;color:#3f4b5f}
.tr-detail.g2-bloque{color:var(--rouge);font-weight:600}
.tr-etat{font-size:13px;font-weight:700;border-radius:999px;padding:4px 12px;white-space:nowrap;background:#eef1f6;color:#3f4b5f;justify-self:end}
.tr-etat-pret{background:#fff1e6;color:#9a3412}
.tr-etat-probleme,.tr-etat.tr-bloque{background:#ffe4e6;color:#9f1239}
.tr-etat-travail{background:#e8efff;color:#1e3a8a}
.tr-etat-fini{background:#e6f6f2;color:#0b5f58}
.tr-etat-stop{background:#f1f2f4;color:#6b7686}
.tr-actions{display:flex;align-items:center;gap:6px;justify-content:flex-end}
.tr-actions form{margin:0}
.tr-actions .bouton.petit,.tr-actions button.petit{min-height:36px}
.tr-actions .poubelle{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;min-height:0;padding:0;border-radius:8px;
  border:1px solid var(--trait);background:#fff;color:var(--muet);cursor:pointer}
.tr-actions .poubelle:hover{color:var(--rouge);border-color:#fecdd3;background:#fff1f2}
.tr-pas-corbeille{font-size:12px;color:var(--muet);max-width:90px;line-height:1.2;text-align:right}
.tr-pied{font-size:13px;margin:12px 0 0}
.tr-plus{margin:8px 0 0;font-weight:700}
.tr-sous{margin:18px 0 4px;display:flex;justify-content:space-between;align-items:center}
.tr-sous a{font-size:13.5px}
.tr-aussi{list-style:none;margin:10px 0 0;padding:0;display:flex;gap:8px 18px;flex-wrap:wrap}
.tr-aussi li{display:flex;gap:8px;align-items:center}
.tr-accueil .tr-vide{margin:10px 0 0}
.tr-surveiller{padding-top:6px}
.tr-surveiller h2.sous-titre{font-size:15px}
.toast.tr-toast-erreur{background:#9f1239}

@media (max-width:700px){
  .tr-ligne{grid-template-columns:minmax(0,1fr) auto;padding-left:10px}
  .tr-etat{grid-column:1;grid-row:2;justify-self:start}
  .tr-actions{grid-column:2;grid-row:1 / span 2}
  .tr-onglets{gap:0}
  .tr-onglet{padding:10px 7px;font-size:13.5px;gap:4px}
  .tr-filtres select{flex:1 1 100%}
  .tr-pas-corbeille{display:none}
}

/* Tuile « Travaux » du bureau (précision du 01/12/2026, 14 h 39) : l'accès principal, avec le nombre à valider. */
.tuile.t-travaux .pict{background:var(--marine);color:#fff}
.tr-badge-tuile{margin-left:6px;font-size:13px;line-height:20px;vertical-align:2px}
.tuiles.raccourcis{margin:0 0 18px}
