/* Mes biens — formulaire par étapes, galerie photos, filtres.
   Pensé d'abord pour le téléphone : une seule colonne, gros boutons. */

/* --- Repères d'étapes --- */
.b-sec-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 14px;
}
.b-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: #f2ece6;
  color: #6b5b52;
  white-space: nowrap;
}
.b-pill.on {
  background: #b4532a;
  color: #fff;
}

/* --- Sections repliables --- */
.b-sec {
  border: 1px solid #ece2d9;
  border-radius: 14px;
  margin-bottom: 10px;
  background: #fffdfb;
  overflow: hidden;
}
.b-sec > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 14px;
  font-weight: 600;
  font-size: 15px;
  color: #24150f;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.b-sec > summary::-webkit-details-marker { display: none; }
.b-sec > summary::after {
  content: '+';
  margin-left: auto;
  font-size: 20px;
  font-weight: 400;
  color: #b4532a;
  line-height: 1;
}
.b-sec[open] > summary::after { content: '−'; }
.b-sec[open] > summary {
  border-bottom: 1px solid #f0e7de;
  background: #fdf7f2;
}
.b-sec > .form-grid,
.b-sec > .b-inner {
  padding: 14px;
}
.b-sec > .form-grid { padding-bottom: 4px; }

/* --- Galerie photos --- */
.b-gal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.b-gal:empty { display: none; }
.b-gal figure {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f2ece6;
  aspect-ratio: 1 / 1;
}
.b-gal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.b-gal .b-principale {
  position: absolute;
  left: 4px;
  bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: #b4532a;
  color: #fff;
}
.b-gal .b-del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  padding: 0;
  cursor: pointer;
}
.b-gal .b-move {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  padding: 0;
  cursor: pointer;
}
.b-ph-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.b-ph-actions label.btn { cursor: pointer; margin: 0; }

/* --- Filtres de la liste --- */
.b-filtres {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.b-filtres button {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e4d8cc;
  background: #fff;
  color: #6b5b52;
  cursor: pointer;
}
.b-filtres button.on {
  background: #24150f;
  border-color: #24150f;
  color: #fff;
}

/* --- Ligne d'annonce --- */
.b-row-photos {
  font-size: 11px;
  font-weight: 600;
  color: #8a7568;
}
@media (max-width: 640px) {
  .list-row { align-items: flex-start; }
  .list-row > div[style*="text-align:right"] {
    width: 100%;
    text-align: left !important;
    margin-top: 8px;
  }
  .list-row > div[style*="text-align:right"] .btn-row {
    justify-content: flex-start !important;
  }
  .b-gal { grid-template-columns: repeat(3, 1fr); }
}

/* Parcours du bien */
.pcb-bien{border:1px solid #eadfd6;border-radius:14px;padding:16px;margin:14px 0;background:#fff}
.pcb-head{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline;margin-bottom:10px}
.pcb-steps{list-style:none;margin:0 0 10px;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.pcb-steps li{display:flex;align-items:center;gap:8px;font-size:14px;color:#8a7b70}
.pcb-steps li span{width:26px;height:26px;border-radius:50%;background:#f1e9e2;display:inline-flex;align-items:center;justify-content:center;font-size:13px;flex:none}
.pcb-steps li em{font-style:normal}
.pcb-steps li.done{color:#24150F}.pcb-steps li.done span{background:#C9A227;color:#24150F}
.pcb-steps li.now{color:#B4532A;font-weight:600}.pcb-steps li.now span{background:#B4532A;color:#fff}
.pcb-next{background:#FAF6F2;border-radius:10px;padding:10px 12px;margin:8px 0 12px}
.pcb-form{display:grid;gap:8px;max-width:460px;margin:12px 0}
.pcb-inv{margin:10px 0;display:grid;gap:6px}.pcb-inv input,.pcb-form input{width:100%;font-size:16px;padding:10px 12px;border:1px solid #dccfc4;border-radius:8px}
@media(min-width:768px){.pcb-steps{grid-template-columns:repeat(7,1fr)}.pcb-steps li{flex-direction:column;text-align:center;font-size:13px}}
