.page-colotis {
  max-width: 700px;
  margin: 30px auto;
  padding: 0 20px;
}

.lien-retour {
  font-size: 0.85rem;
  color: #2563eb;
  text-decoration: none;
}

.lien-retour:hover {
  text-decoration: underline;
}

.compteur-colotis {
  font-size: 0.85rem;
  font-weight: normal;
  color: #666;
}

#champ-recherche {
  width: 100%;
  max-width: 400px;
  height: 38px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  margin: 12px 0 16px 0;
}

.tableau-scroll {
  overflow-x: auto;
}

#tableau-colotis {
  width: 100%;
  border-collapse: collapse;
}

#tableau-colotis th, #tableau-colotis td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

#tableau-colotis td button {
  padding: 5px 10px;
  margin-right: 6px;
  border: 1px solid #2563eb;
  background: #fff;
  color: #2563eb;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.82rem;
}

#tableau-colotis td button:hover {
  background: #eef4ff;
}

.fond-modale {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.fond-modale[hidden] {
  display: none;
}

.modale-biens {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  max-width: 520px;
  width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
}

.ligne-bien {
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}

.ligne-bien:hover {
  filter: brightness(0.96);
}

.ligne-bien.contexte {
  color: #777;
  background: #f4f5f7;
}

.ligne-bien.possede {
  background: #eafbf1;
  color: #1e7e34;
  font-weight: bold;
}

.ligne-bien.indentation-1 {
  margin-left: 20px;
}

.ligne-bien.indentation-2 {
  margin-left: 40px;
}

.bloc-bien-groupe {
  margin-bottom: 10px;
}

.boutons-modale {
  margin-top: 16px;
  text-align: right;
}

.bouton-secondaire {
  padding: 8px 18px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.bouton-secondaire:hover {
  background: #f5f5f5;
}

#form-mail-colotis label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: bold;
}

#form-mail-colotis input[type="text"],
#form-mail-colotis textarea,
#form-mail-colotis input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
}

.obligatoire {
  color: #c0392b;
}

.bouton-principal {
  padding: 8px 18px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.bouton-principal:hover {
  background: #1d4ed8;
}

.erreur {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 10px;
}

.succes {
  color: #1e7e34;
  font-size: 0.85rem;
  margin-top: 10px;
}
