/* 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); }
}
