.page-plans {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.entete-plans {
  padding: 12px 20px;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.entete-plans h1 {
  font-size: 1.2rem;
  margin: 4px 0 8px 0;
}

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

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

.controles-plans {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.controles-plans select,
.controles-plans button {
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  cursor: pointer;
  background: #fff;
}

.colonne-lots {
  width: 202px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid #ddd;
  padding: 12px;
}

#recherche-lot {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.legende-couleurs-plans {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.72rem;
  color: #666;
  margin-bottom: 10px;
}

.pastille {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.pastille-complet { background: #8bc34a; }
.pastille-partiel { background: #ff8800; }
.pastille-aucun { background: #fff; border: 1px solid #999; }

#liste-lots-colores {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}

#liste-lots-colores li {
  padding: 9px 12px;
  border-radius: 5px;
  margin-bottom: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  border: 1px solid rgba(0,0,0,0.06);
}

#liste-lots-colores li:hover {
  filter: brightness(0.96);
}

#liste-lots-colores li.selectionne {
  outline: 3px solid #ff0000;
}

#liste-lots-colores li.statut-complet { background: #8bc34a; color: #1b3a0a; }
#liste-lots-colores li.statut-partiel { background: #ff8800; color: #fff; }
#liste-lots-colores li.statut-aucun { background: #fff; }

.corps-plans {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.zone-plan {
  flex: 1;
  overflow: auto;
  background: #eee;
  position: relative;
}

.conteneur-image-plan {
  position: relative;
  display: inline-block;
}

#image-plan {
  display: block;
  width: 1600px;
  max-width: none;
}

#svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.polygone-lot {
  fill: rgba(37, 99, 235, 0);
  stroke: #2563eb;
  stroke-width: 0.15;
  cursor: pointer;
  pointer-events: auto;
  transition: fill 0.12s ease;
}

.polygone-lot:hover {
  fill: rgba(37, 99, 235, 0.15);
}

.polygone-lot.polygone-statut-complet {
  stroke: #8bc34a;
}

.polygone-lot.polygone-statut-partiel {
  stroke: #ff8800;
}

.polygone-lot.polygone-statut-aucun {
  stroke: #ffffff;
}

.polygone-lot.trace-epaissi-interieur {
  stroke-width: 0.7;
}

.polygone-lot.selectionne {
  fill: rgba(139, 195, 74, 0.55);
  stroke: #ff0000;
  stroke-width: 0.35;
}

/* ---------- Panneau de details (droite) ---------- */

.panneau-details {
  width: 340px;
  border-left: 1px solid #ddd;
  background: #fafafa;
  padding: 20px;
  overflow-y: auto;
}

.aide-panneau {
  color: #777;
  font-size: 0.9rem;
}

.fil-ariane {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.fil-ariane button {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  padding: 0;
  font-size: 0.8rem;
  text-decoration: underline;
}

.fil-ariane span {
  color: #999;
}

.panneau-details h2 {
  font-size: 1.1rem;
  margin: 0 0 4px 0;
}

.panneau-details .sous-titre-panneau {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 16px;
}

.bloc-proprietaires {
  margin-bottom: 18px;
}

.bloc-proprietaires h3 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.bloc-proprietaires ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bloc-proprietaires li {
  padding: 4px 0;
  font-size: 0.9rem;
}

.bloc-proprietaires .aucun {
  color: #999;
  font-style: italic;
  font-size: 0.85rem;
}

.liste-sous-elements {
  list-style: none;
  padding: 0;
  margin: 0;
}

.liste-sous-elements li {
  margin-bottom: 4px;
}

.liste-sous-elements button {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.liste-sous-elements button:hover {
  background: #eef4ff;
  border-color: #2563eb;
}

.liste-sous-elements li.statut-bloc-complet button { background: #8bc34a; }
.liste-sous-elements li.statut-bloc-partiel button { background: #ff8800; }
.liste-sous-elements li.statut-bloc-aucun button { background: #fff; }
