/* Module leboncoin — styles propres au module.
   Le Core reste responsable de la coquille (en-tête, navigation, pied). */

.lbc-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.lbc-kpi {
  background: var(--v3-surface, var(--panel));
  border: 1px solid var(--v3-line, var(--line));
  border-radius: var(--v3-radius-lg, 10px);
  padding: 16px 18px;
}
.lbc-kpi .value { font-size: 28px; font-weight: 700; line-height: 1.1; }
.lbc-kpi .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }

.lbc-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.lbc-toolbar .grow { flex: 1 1 220px; }

.lbc-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 14px;
  align-items: end;
}
.lbc-filters label { margin: 0 0 4px; }
.lbc-filters input, .lbc-filters select { padding: 8px 10px; font-size: 14px; }
.lbc-filters .actions { display: flex; gap: 8px; align-items: end; }
.lbc-filters button { margin-top: 0; }

details.lbc-collapse > summary {
  cursor: pointer; padding: 10px 0; font-weight: 600; font-size: 14px; color: var(--accent);
}

.lbc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lbc-scroll table { min-width: 900px; }

.lbc-thumb-wrap { width: 72px; height: 54px; display: block; position: relative; }
.lbc-thumb {
  width: 72px; height: 54px; object-fit: cover; border-radius: 6px; display: block;
  background: rgba(127,127,127,.14); position: relative; z-index: 1;
}
.lbc-thumb-empty {
  width: 72px; height: 54px; border-radius: 6px; display: grid; place-items: center;
  background: rgba(127,127,127,.14); color: var(--muted); font-size: 10px; text-align: center;
}
.lbc-thumb-wrap .lbc-thumb-empty { position: absolute; inset: 0; z-index: 0; }

.lbc-photo-gallery { display: grid; gap: 12px; }
.lbc-photo-main {
  width: min(100%, 760px);
  aspect-ratio: 4 / 3;
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(127,127,127,.14);
}
.lbc-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.lbc-photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  z-index: 0;
}
.lbc-photo-strip { display: flex; flex-wrap: wrap; gap: 8px; }

.lbc-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.lbc-actions form { display: inline; }
.lbc-actions button, .lbc-actions .btn {
  margin: 0; padding: 5px 10px; font-size: 12px; border-radius: 6px;
  background: var(--v3-surface-muted, rgba(127,127,127,.16)); color: var(--v3-ink, var(--text)); font-weight: 600;
  border: 1px solid var(--v3-line, var(--line)); cursor: pointer; display: inline-block;
}
.lbc-actions button.primary { background: var(--accent); color: #fff; border-color: transparent; }
.lbc-actions button.danger { color: var(--bad); }

.lbc-pager { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; }
.lbc-pager .pages { display: flex; gap: 6px; flex-wrap: wrap; }
.lbc-pager a, .lbc-pager span.current {
  padding: 6px 11px; border-radius: 6px; border: 1px solid var(--line); font-size: 13px;
}
.lbc-pager span.current { background: var(--accent); color: #fff; border-color: transparent; }

.lbc-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.lbc-detail dl { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.lbc-detail dt { color: var(--muted); }
.lbc-detail dd { margin: 0; }

.lbc-score-bar { height: 6px; border-radius: 3px; background: rgba(127,127,127,.2); overflow: hidden; margin-top: 4px; }
.lbc-score-bar > span { display: block; height: 100%; background: var(--accent); }
.lbc-score-big { font-size: 32px; font-weight: 700; }

.lbc-money-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 16px; }
.lbc-total { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lbc-total.strong { font-weight: 700; font-size: 16px; border-bottom: 0; }
.lbc-pos { color: var(--ok); }
.lbc-neg { color: var(--bad); }

.lbc-desc { white-space: pre-wrap; word-break: break-word; font-size: 14px; max-height: 320px; overflow-y: auto; }

.lbc-empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.lbc-empty strong { display: block; font-size: 16px; color: var(--text); margin-bottom: 6px; }

.lbc-note { color: var(--muted); font-size: 13px; }
.lbc-alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.lbc-alert.info { background: rgba(76,141,255,.12); color: var(--accent); }
.lbc-alert.warn { background: rgba(229,84,75,.12); color: var(--bad); }
.lbc-alert.ok   { background: rgba(53,192,122,.15); color: var(--ok); }

@media (max-width: 720px) {
  .lbc-scroll table { min-width: 760px; }
  .lbc-kpi .value { font-size: 24px; }
  .lbc-detail dl { grid-template-columns: 1fr; }
  .lbc-detail dt { margin-top: 8px; }
}
