/* Compléments marketplace — s'appuie sur les variables de style.css */
.btn-sell { white-space: nowrap; padding: 9px 16px; font-size: 0.88rem; }
.btn-secondary { background: #eceef1; color: var(--text); }
.btn-secondary:hover { background: #dfe1e6; }
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 7px 14px; font-size: 0.85rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.link-danger { background: none; border: none; color: var(--accent); cursor: pointer; padding: 0; font-size: 0.85rem; text-decoration: underline; font-family: inherit; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 16px; }
.alert-success { background: #e5f6ee; color: #1e8e5a; }
.alert-error { background: #fbe7e9; color: #c62d39; }
.alert-info { background: #eaf1fb; color: #1f5fa8; }
.muted { color: var(--text-dim); }
.card-meta { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; }

/* Hero + confiance */
.hero-search { display: flex; max-width: 560px; margin: 24px auto 0; }
.hero-search input { flex: 1; padding: 14px 16px; border: none; border-radius: 8px 0 0 8px; font-size: 1rem; }
.hero-search button { border: none; background: var(--accent); color: #fff; padding: 0 22px; border-radius: 0 8px 8px 0; font-weight: 700; cursor: pointer; }
.hero-cta { margin-top: 18px; }
.trust-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.trust-item { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.trust-item strong { display: block; margin-bottom: 4px; }
.trust-item span { color: var(--text-dim); font-size: 0.88rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head .section-title { margin: 0; }
.section-head a { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

/* Panneaux & formulaires */
.panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: #fff; margin-bottom: 20px; }
.panel h2 { font-size: 1.1rem; margin: 0 0 14px; }
.form-stack { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.form-stack label, .field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.85rem; }
.form-stack input[type=text], .form-stack input[type=email], .form-stack input[type=password], .form-stack input[type=tel],
.form-stack input[type=number], .form-stack textarea, .form-stack select, .field input, .field select, .field textarea {
  font-weight: 400; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; font-family: inherit; width: 100%; background: #fff;
}
.form-stack textarea { min-height: 150px; resize: vertical; }
.form-stack small, .hint { font-weight: 400; color: var(--text-dim); font-size: 0.8rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 34px; }
.input-suffix::after { content: "€"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-dim); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Envoi de photos */
.photo-drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 22px; text-align: center; background: var(--bg-soft); cursor: pointer; }
.photo-drop:hover { border-color: var(--accent); }
.photo-drop input { display: none; }
.photo-previews, .image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.photo-previews img, .image-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.image-card { text-align: center; font-size: 0.8rem; }
.image-card .cover-badge { color: var(--accent); font-weight: 700; display: block; }

/* Récapitulatif du calcul vendeur */
.fee-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; font-size: 0.88rem; }
.fee-box div { display: flex; justify-content: space-between; padding: 3px 0; }
.fee-box .total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; font-weight: 800; }

/* Fiche annonce */
.seller-box { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 18px 0; font-size: 0.9rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.spec-list { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 0.9rem; margin: 0 0 20px; }
.spec-list dt { color: var(--text-dim); }
.spec-list dd { margin: 0; font-weight: 600; }
.shield-box { background: #f1faf5; border: 1px solid #cdebdb; border-radius: 8px; padding: 14px 16px; font-size: 0.86rem; color: #1b6b47; margin-bottom: 18px; }
.shield-box strong { display: block; margin-bottom: 2px; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }
.gallery-main.empty { display: flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--text-dim); }

/* Statuts */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; background: var(--bg-soft); color: var(--text-dim); }
.badge-success { background: #e5f6ee; color: #1e8e5a; }
.badge-warn { background: #fff4e5; color: #b46a00; }
.badge-danger { background: #fbe7e9; color: #c62d39; }
.badge-info { background: #eaf1fb; color: #1f5fa8; }

/* Tableaux compte */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th, .data-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table th { color: var(--text-dim); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .3px; }
.data-table .thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.row-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 0.85rem; font-weight: 600; }
.tabs a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Commande : frise */
.timeline { display: flex; gap: 0; margin: 4px 0 22px; padding: 0; list-style: none; }
.timeline li { flex: 1; text-align: center; font-size: 0.78rem; color: var(--text-dim); position: relative; padding-top: 22px; }
.timeline li::before { content: ""; position: absolute; top: 4px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--border); z-index: 1; }
.timeline li::after { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--border); }
.timeline li:first-child::after { display: none; }
.timeline li.done { color: var(--text); font-weight: 600; }
.timeline li.done::before, .timeline li.done::after { background: #1e8e5a; }
.timeline li.bad::before { background: var(--accent); }
.order-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 0.9rem; }
.kv.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; font-weight: 800; }

/* Messagerie */
.thread-list a { display: flex; gap: 12px; padding: 12px; border-bottom: 1px solid var(--border); align-items: center; }
.thread-list a:hover { background: var(--bg-soft); }
.thread-list .unread { font-weight: 700; }
.thread-list .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-left: auto; flex-shrink: 0; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto; padding: 6px 2px 14px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: var(--bg-soft); font-size: 0.92rem; white-space: pre-wrap; word-break: break-word; }
.bubble.mine { align-self: flex-end; background: var(--accent); color: #fff; }
.bubble time { display: block; font-size: 0.7rem; opacity: .7; margin-top: 3px; }
.chat-form { display: flex; gap: 10px; }
.chat-form textarea { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.95rem; min-height: 46px; }

/* Étapes "comment ça marche" */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; counter-reset: s; }
.step { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; counter-increment: s; background: #fff; }
.step::before { content: counter(s); display: flex; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; color: var(--text-dim); font-size: 0.88rem; }

.search-bar-sort { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.filter-group .row { display: flex; gap: 8px; }

@media (max-width: 860px) {
  .order-grid { grid-template-columns: 1fr; }
  .form-row-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .btn-sell { padding: 8px 12px; font-size: 0.8rem; }
  .header-actions { gap: 12px; flex-wrap: wrap; }
  .spec-list { grid-template-columns: 110px 1fr; }
  .timeline li { font-size: 0.68rem; }
}
