.page-gestion-colotis {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-gestion-colotis h1 {
  font-size: 1.4rem;
}

#champ-recherche {
  width: 100%;
  max-width: 400px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  margin-bottom: 16px;
  display: block;
}

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

#tableau-profils {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

#tableau-profils th,
#tableau-profils td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
}

#tableau-profils th {
  background: #f4f5f7;
  font-size: 0.85rem;
}

#tableau-profils tbody tr:hover {
  background: #f9fafb;
}

#tableau-profils button {
  padding: 5px 12px;
  border: 1px solid #2563eb;
  background: #fff;
  color: #2563eb;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

#tableau-profils button:hover {
  background: #eef4ff;
}

.badge-statut {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.badge-statut.en_attente { background: #fff3cd; color: #856404; }
.badge-statut.validee { background: #d4edda; color: #1e7e34; }
.badge-statut.refusee { background: #f8d7da; color: #c0392b; }

/* ---------- Modale d'edition ---------- */

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

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

.modale-edition {
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modale-edition h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.modale-edition form {
  display: flex;
  flex-direction: column;
}

.modale-edition label {
  font-size: 0.85rem;
  margin-top: 10px;
  margin-bottom: 4px;
}

.modale-edition input,
.modale-edition select {
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
}

.sous-titre-modale {
  font-weight: bold;
  font-size: 0.9rem;
  margin-top: 18px;
  margin-bottom: 0;
  border-top: 1px solid #eee;
  padding-top: 14px;
}

.boutons-modale {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.boutons-modale button {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.bouton-principal {
  background: #2563eb;
  color: #fff;
  border: none;
}

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

.bouton-secondaire {
  background: #fff;
  border: 1px solid #ccc;
}
