/* Module Tâches — couleurs du socle, par leur nom. */
.icone-taches { background: var(--attention); }

.tch-onglets { display: flex; gap: .2rem; margin: 0; flex-wrap: wrap; }
.tch-onglet { padding: .4rem .8rem; border-radius: var(--rayon); text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .88rem; }
.tch-onglet.actif { background: var(--bg-deep); color: var(--fonce); }
.tch-recherche { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.tch-recherche input { flex: 1 1 16rem; min-width: 0; }
.tch-recherche select { width: auto; }
.tch-carte-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; }
.tch-carte-tete h2 { margin: 0 0 .6rem; }
.tch-sous-titre { font-size: .95rem; margin: 1rem 0 .3rem; }
.tch-danger { color: var(--alerte); }
.tch-edition { max-width: 46rem; }
.tch-edition fieldset { border: 0; padding: 0; margin: 0; }
.tch-edition .ligne-boutons form { display: inline; }

.tch-ech { font-weight: 600; }
.tch-ech--retard { color: var(--alerte); }
.tch-ech--jour { color: var(--accent-fonce); }
.tch-ech--fait { color: var(--succes); font-weight: normal; }
.tch-haute { color: var(--alerte); font-weight: 700; }

.tch-liste { list-style: none; margin: 0; padding: 0; }
.tch-tache { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.tch-tache:last-child { border-bottom: 0; }
.tch-tache__case { margin: 0; }
.tch-coche {
  display: inline-block; width: 1.35rem; height: 1.35rem; margin-top: .1rem; padding: 0; cursor: pointer; flex: none;
  border: 2px solid var(--line-fort); border-radius: 50%; background: var(--bg);
  color: var(--bg); font-size: .8rem; line-height: 1; font-weight: 700; text-align: center;
}
.tch-coche:hover { border-color: var(--succes); }
.tch-coche--muette { cursor: default; }
.tch-prio--haute .tch-coche { border-color: var(--alerte); }
.tch-tache--faite .tch-coche { background: var(--succes); border-color: var(--succes); }
.tch-tache--faite .tch-tache__titre { text-decoration: line-through; color: var(--ink-soft); }
.tch-tache__corps { flex: 1; min-width: 0; }
.tch-tache__titre { display: block; font-weight: 700; overflow-wrap: anywhere; text-decoration: none; color: var(--ink); }
a.tch-tache__titre:hover { text-decoration: underline; }
.tch-tache__meta { font-size: .84rem; color: var(--ink-soft); }
.tch-tache__details { margin: .25rem 0 0; font-size: .88rem; }

.tch-ajout { margin-bottom: .6rem; }
.tch-ajout > summary { list-style: none; cursor: pointer; }
.tch-ajout > summary::-webkit-details-marker { display: none; }
.tch-ajout[open] { width: 100%; }
.tch-ajout__form { margin-top: .7rem; padding: .8rem; border: 1px solid var(--line); border-radius: var(--rayon); background: var(--bg-soft); }
