/* = Module taches — styles propres aux gabarits de templates/taches/.
   Un block utilisé par un second module remonte dans components.css.
   Issu du découpage de main.css (15/09/2026), chargé sur toutes les pages
   dans l'ordre fixé par templates/partials/feuilles_de_style.html.  */

/* Seul consommateur : templates/taches/calendrier.html. Les regles
   ci-dessous remplacent entierement l'ancienne version (padding/font-size/
   height ne correspondaient plus a ce que l'inline affichait reellement -
   corrige au passage, fidele au rendu ACTUEL du template, pas a l'ancien
   fichier CSS mort). L'ancien :hover est retire : un style inline a
   toujours gagne sur lui (specificite), donc il n'a jamais eu d'effet
   visible - le supprimer ne change rien a l'existant. */
.tache-cal {
  width: 100%;
  border-collapse: collapse;
}

.tache-cal--fixed {
  table-layout: fixed;
}

.tache-cal__th {
  padding: var(--space-2);
  font-size: var(--text-12);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-align: center;
  border-bottom: 2px solid var(--color-border);
}

.tache-cal__th--weekend {
  opacity: 0.6;
}

.tache-cal__td {
  padding: var(--space-1);
  border: 1px solid var(--color-border);
  vertical-align: top;
  height: 100px;
  font-size: var(--text-11);
}

.tache-cal__td--hors-mois {
  background: var(--color-bg-subtle);
}

.tache-cal__td--aujourdhui {
  background: var(--color-primary-bg);
  border-color: var(--color-primary);
}

.tache-cal__td--weekend {
  background: var(--color-bg-subtle);
}

.tache-cal__day-num {
  font-size: var(--text-11);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-1);
  color: var(--color-text-secondary);
}

.tache-cal__day-num--today {
  font-weight: var(--weight-bold);
  color: var(--color-primary);
}

.tache-cal__item {
  display: block;
  margin-bottom: 2px;
  padding: var(--space-0-5) var(--space-1);
  border-radius: var(--radius-xs);
  font-size: var(--text-10);
  line-height: var(--leading-tight);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.tache-cal__item-ref {
  font-weight: var(--weight-semibold);
}

.tache-cal__item--retard {
  background: var(--color-danger-bg);
  border-left: 2px solid var(--color-danger);
}

.tache-cal__item--terminee {
  background: var(--color-success-bg);
  border-left: 2px solid var(--color-success);
  text-decoration: line-through;
  opacity: 0.7;
}

.tache-cal__item--urgente {
  background: var(--color-danger-bg);
  border-left: 2px solid var(--color-danger);
}

.tache-cal__item--haute {
  background: var(--color-warning-bg);
  border-left: 2px solid var(--color-warning);
}

.tache-cal__item--normale {
  background: var(--color-bg-subtle);
  border-left: 2px solid var(--color-primary);
}

.legend-row {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-xs);
}

.legend-swatch--retard {
  background: var(--color-danger-bg);
  border-left: 2px solid var(--color-danger);
}

.legend-swatch--urgente {
  background: var(--color-danger-bg);
  border-left: 2px solid var(--color-danger);
}

.legend-swatch--haute {
  background: var(--color-warning-bg);
  border-left: 2px solid var(--color-warning);
}

.legend-swatch--normale {
  background: var(--color-bg-subtle);
  border-left: 2px solid var(--color-primary);
}

.legend-swatch--terminee {
  background: var(--color-success-bg);
  border-left: 2px solid var(--color-success);
}
