
/* Pages de contenu (À propos, mentions légales…) */
.page { max-width: 760px; padding-top: 32px; }
.page h1 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 8px; }
.page h2 { font-size: 18px; margin: 28px 0 8px; }
.page p { margin: 0 0 12px; }
.page a, .foot a { color: var(--accent); }
.muted { color: var(--muted); font-size: 14px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #6b6b70;
  --line: #e4e4e0;
  --accent: #1f5f4a;
  --accent-soft: #e6f0ec;
  --hot: #b4471f;
  --radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.45; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* En-tête */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.brand span { color: var(--accent); }
.search { flex: 1; max-width: 560px; }
.search input {
  width: 100%; height: 40px; padding: 0 14px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink);
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; background: var(--surface); }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.chip:hover { border-color: var(--accent); }
.chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .n { color: var(--muted); margin-left: 4px; font-size: 13px; }
.chip[aria-selected="true"] .n { color: #d5e6df; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }

.status { color: var(--muted); font-size: 14px; margin: 8px 0 16px; }

/* Grille d'offres */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #c9c9c3; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.thumb { aspect-ratio: 16 / 10; background: #f0f0ec; display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 12px; background: #fff; }
.thumb .ph { font-size: 13px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.meta { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.cat { color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 4px; }
.hot { color: var(--hot); font-weight: 600; }
.title { font-size: 15px; font-weight: 500; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price { font-size: 20px; font-weight: 700; color: var(--ink); }
.merchant { font-size: 13px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.go { color: var(--accent); font-weight: 600; }

.more { display: block; margin: 28px auto 0; font: inherit; font-size: 15px; padding: 10px 22px; border-radius: 8px; border: 1px solid var(--accent); color: var(--accent); background: var(--surface); cursor: pointer; }
.more:hover { background: var(--accent-soft); }

.foot { margin-top: 56px; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot p { margin: 4px 0; }

@media (max-width: 640px) {
  .top-inner { height: auto; flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .search { max-width: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .body { padding: 10px 12px 12px; }
  .price { font-size: 17px; }
  .footer-row .when { display: none; }
}
[hidden] { display: none !important; }
@media (max-width: 640px) { .price-row { flex-wrap: wrap; gap: 2px 8px; } }
