:root {
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --text-main: #111827;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --primary: #1F2937;
  --accent: #10B981;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text-main); padding-bottom: 80px; }

.header { position: sticky; top: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 16px; z-index: 50; }
.search-bar { display: flex; gap: 8px; }
.search-bar input { flex: 1; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); font-size: 15px; outline: none; }
.search-bar button { background: var(--primary); color: #fff; border: none; padding: 0 16px; border-radius: 8px; font-weight: 500; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { padding: 6px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; font-size: 13px; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.feed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.card-img-wrap { width: 100%; aspect-ratio: 1 / 1; background: #F3F4F6; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-content { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.card-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 12px; color: var(--text-muted); }
.badge-free { font-size: 11px; font-weight: 600; color: var(--accent); }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; height: 60px; background: var(--surface); border-top: 1px solid var(--border); display: flex; justify-content: space-around; align-items: center; z-index: 100; }
.tab-link { text-decoration: none; color: var(--text-muted); font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tab-link svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.tab-link.active { color: var(--primary); font-weight: 600; }

.page-container { padding: 16px; max-width: 600px; margin: 0 auto; }
.top-nav { display: flex; align-items: center; padding: 16px; background: #fff; border-bottom: 1px solid var(--border); }
.top-nav h1 { font-size: 18px; font-weight: 600; margin: 0; }
.form-clean { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-primary { background: #111827; color: #fff; border: none; border-radius: 8px; padding: 14px; font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; display: block; }
.alert-error { background: #FEE2E2; color: #991B1B; padding: 10px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
/* Badges de Confiance et Réputation */
.pill-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-gold { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.badge-green { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.badge-star { background: #EDE9FE; color: #5B21B6; border: 1px solid #DDD6FE; }
.badge-gray { background: #F3F4F6; color: #4B5563; border: 1px solid #E5E7EB; }