/* Pastille « tâches à faire » — UN SEUL style pour les deux accueils (enseignant : cartes .acc-mod-card ; étudiant : tuiles .tuile).
   Vert = tâches sans urgence · orange = échéance proche (< 3 jours) · rouge qui vibre = échéance dépassée. Règles : lib/pastille-taches.js */
.pastille-taches {
  position: absolute; top: -1rem; right: -.9rem; z-index: 2;   /* à cheval sur le coin supérieur droit */
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  min-width: 2.2rem; height: 2.2rem; padding: 0 .65rem; box-sizing: border-box;
  border-radius: 999px; color: #fff; font: 800 1.02rem/1 system-ui, sans-serif;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25); pointer-events: auto;
}
.pastille-vert   { background: #15803d; }
.pastille-orange { background: #b45309; }
.pastille-rouge  { background: #dc2626; animation: pastille-vibre 3.2s ease-in-out infinite; }

/* Secousse brève (≈ 0,6 s) puis pause : une animation permanente fatiguerait et finirait par être ignorée. */
@keyframes pastille-vibre {
  0%, 22%, 100% { transform: translateX(0) rotate(0); }
  3%  { transform: translateX(-3px) rotate(-8deg); }
  6%  { transform: translateX(3px)  rotate(8deg); }
  9%  { transform: translateX(-3px) rotate(-8deg); }
  12% { transform: translateX(3px)  rotate(8deg); }
  15% { transform: translateX(-2px) rotate(-5deg); }
  18% { transform: translateX(2px)  rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) { .pastille-rouge { animation: none; } }

/* Accueil étudiant : la pastille déborde du coin et mord un peu sur la tuile ; le badge de statut (« Ouvert », « Déposé »…) se décale d'autant. */
.tuile:has(> .pastille-taches) > .tuile-badge { right: 3.2rem; }
