/*
 * IMMGO — Écrans des modules location, tickets, syndic, utilités et IRL : photos d'états des lieux, cartes
 * cliquables, grilles de fiches, étoiles d'évaluation, compteurs de vote
 * Auteur : Jacks Ngalangala
 */

/* ─── États des lieux ─── */
.edl-grille {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.edl-element {
  padding-bottom: var(--e-4);
  border-bottom: 1px solid var(--trait);
}
.edl-element:last-child {
  border-bottom: 0;
}
.edl-element .choix {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.edl-photos-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-3);
}
.edl-photos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2);
}
.edl-photos:empty {
  display: none;
}
.edl-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--r-petit);
  background: var(--surface-douce);
}
.edl-ligne .ligne-texte {
  gap: var(--e-1);
}

/* ─── Cartes cliquables, cartes douces ─── */
.lien-carte {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lien-carte:focus-visible {
  outline: none;
  box-shadow: var(--anneau);
  border-radius: var(--r-moyen);
}
.carte-douce {
  background: var(--surface-douce);
  box-shadow: none;
}

/* ─── Bandeaux : réussite et refus ─── */
.note-succes {
  background: var(--succes-pale);
}
.note-succes svg {
  color: var(--succes);
}
.note-danger {
  background: var(--danger-pale);
}
.note-danger svg {
  color: var(--danger);
}
.rangee-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-3);
}

/* ─── Assemblées : résultats d'une résolution, boutons de vote ─── */
.vote-resultats {
  display: flex;
  flex-direction: column;
  gap: var(--e-3);
}
.vote-ligne {
  display: grid;
  grid-template-columns: minmax(88px, auto) 1fr auto;
  align-items: center;
  gap: var(--e-3);
}
.vote-libelle {
  font-weight: 600;
}
.vote-chiffre {
  color: var(--texte-second);
  font-size: var(--taille-petit);
  white-space: nowrap;
}
.vote-contre .jauge-remplie {
  background: var(--danger);
}
.vote-boutons {
  flex-wrap: wrap;
}
.vote-boutons .btn {
  flex: 1 1 120px;
}

/* ─── Copropriété : grille des tantièmes, lignes d'un appel ─── */
.grille-tantiemes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--e-3);
  max-height: 50vh;
  overflow-y: auto;
}
.appel-ligne {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: var(--e-3);
  align-items: end;
}
@media (max-width: 599px) {
  .appel-ligne {
    grid-template-columns: 1fr;
    padding-bottom: var(--e-3);
    border-bottom: 1px solid var(--trait);
  }
}
