/* ===== Liste de Noël — style minimaliste ===== */

:root {
  --ink: #1d1d1b;
  --muted: #8a8780;
  --line: #e6e3dc;
  --bg: #fbfaf7;
  --accent: #b3261e;      /* rouge Noël discret */
  --thumb: 140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

/* --- En-tête --- */
header { margin-bottom: 48px; }

h1 {
  font-weight: 800;
  font-size: clamp(48px, 8vw, 80px);
  letter-spacing: -0.035em;
  line-height: 1;
}
h1 span { color: var(--accent); }

.intro {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

/* --- Liste --- */
.list-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.list-head span {
  width: 22px;            /* même largeur que la case : la flèche tombe pile au-dessus */
  text-align: center;
  font-size: 18px;
  color: var(--accent);
}

.list { list-style: none; border-top: 1px solid var(--ink); }

.item {
  display: grid;
  grid-template-columns: auto var(--thumb) 1fr auto;
  grid-template-areas: "check photo text price";
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

/* Case à cocher « acheté » */
.check {
  grid-area: check;
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
  cursor: pointer;
}
.check:disabled { cursor: progress; }

/* État « acheté » */
.item { transition: opacity .25s; }
.item.bought { opacity: .4; }
.item.bought .name { text-decoration: line-through; }

.status {
  min-height: 1.5em;
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent);
}

/* Photos */
.photos {
  grid-area: photo;
  display: flex;
  gap: 6px;
}
.photos a { display: block; flex: 1; }
.photos img {
  display: block;
  width: 100%;
  height: var(--thumb);
  object-fit: cover;
  border-radius: 4px;
  background: var(--line);
  transition: opacity .2s;
}
.photos a:hover img { opacity: .85; }
.no-photo {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: var(--thumb);
  border-radius: 4px;
  background: var(--line);
  color: var(--muted);
  font-size: 28px;
}

/* Ligne « 2 photos » (puzzles) : vignette élargie */
.item.duo { grid-template-columns: auto calc(var(--thumb) * 2 + 6px) 1fr auto; }

/* Texte */
.text { grid-area: text; min-width: 0; }
.name { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; }
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 3px;
  white-space: nowrap;
}
.item.bought .tag { text-decoration: none; }
.desc { margin-top: 6px; color: #4a4741; font-size: 17px; }

/* Prix + lien */
.price-col {
  grid-area: price;
  text-align: right;
  white-space: nowrap;
}
.price {
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.02em;
}
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price.unknown { font-size: 17px; font-weight: 500; color: var(--muted); }

.buy {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.buy:hover { color: var(--accent); border-color: var(--accent); }

footer {
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
}

/* --- Mobile --- */
@media (max-width: 600px) {
  :root { --thumb: 110px; }
  .name { font-size: 18px; }
  .desc { font-size: 15px; }
  .page { padding: 48px 16px 72px; }
  .item,
  .item.duo {
    grid-template-columns: auto var(--thumb) 1fr;
    grid-template-areas:
      "check photo text"
      "check photo price";
    gap: 6px 14px;
    align-items: start;
  }
  .item.duo .photos { flex-direction: column; }
  .item.duo .photos img { height: calc(var(--thumb) * .62); }
  .price-col { text-align: left; }
  .price { font-size: 21px; }
  .buy { margin: 0 0 0 8px; }
}
