/* Styles propres à l'espace client (accueil, projet, suivi, documents). Les styles communs sont dans alfred.css. */

/* Accueil : cartes de projet */
.projets { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.pile-serree { display: grid; gap: 6px; }

/* Lecture seule pour les lecteurs d'écran */
.masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Nom d'un lot : pastille de couleur, « Lot N », titre */
.lot-nom { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.lot-pastille { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--couleur-lot, var(--accent)); }
.lot-tag { font-weight: 600; margin-right: 4px; }
.lots-resume { display: grid; gap: 10px; font-size: 15px; }

/* Suivi : une ligne par lot (nom, statut, jauge, pourcentage) */
.lots { display: grid; }
.lot {
  display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(120px, 28%) 48px; align-items: center; gap: 8px 20px;
  padding: 14px 0; border-top: 1px solid var(--ligne); font-size: 15px;
}
.lot:first-child { border-top: 0; }
.lot:last-child { padding-bottom: 0; }
.lot .statut { justify-self: start; }
.lot-pourcent { text-align: right; color: var(--discret); font-size: 14px; }
.deux.moitie { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Échéances : la date en vignette, puis le rendez-vous */
.liste > li:has(.echeance-date) { justify-content: flex-start; align-items: flex-start; }
.echeance-date {
  flex: none; width: 52px; padding: 7px 0; border-radius: 12px; background: var(--accent-doux); color: var(--accent-fort);
  display: grid; justify-items: center; font-size: 12px; font-weight: 600; line-height: 1.2; text-transform: uppercase;
}
.echeance-date b { font-size: 20px; font-weight: 700; line-height: 1.1; }
.etire { flex: 1; }
.capitale { text-transform: capitalize; }

/* Documents : état vide */
.etat-vide { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 28px 0 12px; }
.etat-vide-titre { font-size: 17px; font-weight: 600; }

@media (max-width: 760px) {
  .lot { grid-template-columns: minmax(0, 1fr) auto; }
  .lot .statut { justify-self: end; }
  .lot .jauge { grid-column: 1; }
  .deux.moitie { grid-template-columns: 1fr; }
  .liste > li:has(.btn) { flex-wrap: wrap; }
}
