/* Carte Apple Wallet (aperçu HTML). Sombre comme un bijou ; tampons en lave. */
.wallet-card {
  width: min(340px, 86vw);
  margin: 0 auto;
  background: var(--card-bg, #171210);
  color: #fff;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  font-family: var(--font-body, system-ui, sans-serif);
}
.wallet-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); pointer-events: none;
}

.c-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; gap: 10px; }
.c-logo { font-family: var(--font-display, inherit); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.c-logo.wide { font-size: 1.1rem; }
.c-points { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.c-points span { font-size: 0.62rem; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; }
.c-points b { font-size: 1.7rem; font-family: var(--font-display, inherit); }

.c-strip { height: 118px; background: linear-gradient(135deg, #3a2a16, #1a1512); }
.c-strip.has-bg { background-size: cover; background-position: center; }

.c-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; padding: 18px 16px; background: linear-gradient(135deg, #241d18, #15110e); }
.c-stamps.has-bg { position: relative; background-size: cover; background-position: center; }
.c-stamps.has-bg::before { content: ''; position: absolute; inset: 0; background: rgba(10, 6, 4, 0.5); }

.stamp {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  font-size: 1rem; font-weight: 700; position: relative; z-index: 1;
  background: rgba(255, 255, 255, 0.92); color: #9a8f86;
}
.stamp.on {
  background: linear-gradient(135deg, var(--sun-2, #ffa53d), var(--sun, #ee6c12));
  color: #fff; box-shadow: 0 4px 12px -3px rgba(238, 108, 18, 0.6);
  animation: stamp-pop 0.28s ease;
}
@keyframes stamp-pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

.c-fields { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.c-fields span { display: block; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.c-fields b { font-size: 1.05rem; font-family: var(--font-display, inherit); }

.c-barcode { background: #fff; margin: 6px 16px 16px; border-radius: 12px; padding: 12px; text-align: center; }
.c-barcode .bc { height: 54px; border-radius: 2px; background: repeating-linear-gradient(90deg, #111 0 3px, #fff 3px 6px, #111 6px 8px, #fff 8px 13px); }
.c-barcode .c-qr { display: block; width: 116px; height: 116px; margin: 0 auto; cursor: zoom-in; }
.c-barcode small { display: block; margin-top: 8px; color: #444; font-size: 0.72rem; }

@media (prefers-reduced-motion: reduce) { .stamp.on { animation: none; } }
