/* ==================================================================
   Kit commun des concepts PixelCard
   - .pbc-loyalty : section « carte de fidélité » (téléphone + tampons)
   - .pbc-banner  : bandeau « concept fictif »
   Chaque site personnalise via les variables --pbc-*.
================================================================== */
.pbc-loyalty {
  --pbc-bg: #f5f2ec;
  --pbc-fg: #151515;
  --pbc-muted: rgba(21, 21, 21, .62);
  --pbc-line: rgba(21, 21, 21, .14);
  --pbc-accent: #151515;
  --pbc-accent-fg: #fff;
  --pbc-title-font: inherit;
  --pbc-body-font: inherit;
  --pbc-radius: 22px;
  position: relative; overflow: hidden; background: var(--pbc-bg); color: var(--pbc-fg);
  padding: clamp(90px, 12vw, 170px) clamp(16px, 4vw, 56px); font-family: var(--pbc-body-font);
}
.pbc-wrap { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.pbc-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--pbc-muted); }
.pbc-title { margin: 16px 0 0; font-family: var(--pbc-title-font); font-weight: 500; font-size: clamp(38px, 5.2vw, 76px); line-height: .98; letter-spacing: -.02em; }
.pbc-lead { margin-top: 22px; max-width: 44ch; font-size: 17px; line-height: 1.6; color: var(--pbc-muted); }
.pbc-perks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; max-width: 470px; }
.pbc-perks li { display: flex; gap: 14px; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--pbc-line); font-size: 15.5px; line-height: 1.45; }
.pbc-perks li:last-child { border-bottom: 1px solid var(--pbc-line); }
.pbc-perks b { font-variant-numeric: tabular-nums; font-size: 12px; opacity: .55; min-width: 22px; }
.pbc-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.pbc-cta { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; background: var(--pbc-accent); color: var(--pbc-accent-fg); font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .4s cubic-bezier(.19, 1, .22, 1); }
.pbc-cta:hover { transform: translateY(-2px); }
.pbc-note { font-size: 13px; color: var(--pbc-muted); }

/* Téléphone */
.pbc-phone {
  position: relative; justify-self: center; width: min(330px, 82vw); aspect-ratio: 9 / 19; border-radius: 48px; padding: 12px;
  background: #0d0d0f; box-shadow: 0 0 0 2px #2a2a2e inset, 0 50px 90px -30px rgba(0, 0, 0, .55), 0 18px 40px -20px rgba(0, 0, 0, .35);
  transform: rotate(-4deg);
}
.pbc-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #f4f4f6; color: #111; font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif; display: flex; flex-direction: column; }
.pbc-island { position: absolute; top: 10px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #0d0d0f; z-index: 3; }
.pbc-status { display: flex; justify-content: space-between; padding: 14px 26px 0; font-size: 12px; font-weight: 600; }
.pbc-app { padding: 26px 16px 16px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pbc-hello { font-size: 13px; color: #6b6b72; }
.pbc-hello b { display: block; margin-top: 2px; font-size: 20px; color: #111; letter-spacing: -.01em; }

.pbc-card { position: relative; border-radius: 24px; padding: 18px; color: var(--pbc-card-fg, #fff); background: linear-gradient(135deg, var(--pbc-c1) 0%, var(--pbc-c2) 100%); box-shadow: 0 18px 36px -16px var(--pbc-c2); overflow: hidden; }
.pbc-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%); pointer-events: none; }
.pbc-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pbc-card-label { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; opacity: .65; font-weight: 600; }
.pbc-mono { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); font-weight: 700; font-size: 15px; }
.pbc-card-name { margin-top: 6px; font-size: 20px; font-weight: 700; line-height: 1.1; }
.pbc-card-member { margin-top: 4px; font-size: 13px; opacity: .85; }
.pbc-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 16px; }
.pbc-stamp { position: relative; aspect-ratio: 1; border-radius: 10px; border: 1.5px dashed rgba(255, 255, 255, .45); display: grid; place-items: center; }
.pbc-stamp i { position: absolute; inset: -1.5px; border-radius: 10px; background: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.pbc-stamp i svg { width: 58%; height: 58%; }
.pbc-stamp.is-on i { transform: scale(1); }
.pbc-stamp.is-gift { border-style: solid; border-color: rgba(255, 255, 255, .7); }
.pbc-stamp.is-gift > svg { width: 55%; height: 55%; opacity: .9; }
.pbc-card-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 11px; }
.pbc-card-foot span:first-child { font-weight: 600; opacity: .85; white-space: nowrap; }
.pbc-card-foot span:last-child { opacity: .7; text-align: right; }

.pbc-qr { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .3); font-size: 12px; color: #55555c; }
.pbc-qr-code { width: 48px; height: 48px; flex: none; }
.pbc-rewards { padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .3); }
.pbc-rewards > p { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a8a92; }
.pbc-reward { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #eee; font-size: 12px; color: #6b6b72; }
.pbc-reward b { color: #111; font-weight: 600; }
.pbc-reward i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; color: #fff; background: #ddd; transition: background .4s; }
.pbc-reward.is-done i { background: var(--pbc-c1); }
.pbc-qr b { display: block; color: #111; font-size: 13px; }

.pbc-toast {
  position: absolute; left: 12px; right: 12px; top: 44px; z-index: 2; display: flex; gap: 10px; align-items: center; padding: 11px 13px;
  border-radius: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .35); font-size: 12px; line-height: 1.35; color: #333;
  transform: translateY(-140%); opacity: 0; transition: transform .7s cubic-bezier(.19, 1, .22, 1), opacity .5s;
}
.pbc-toast.is-on { transform: none; opacity: 1; }
.pbc-toast-ico { width: 32px; height: 32px; flex: none; border-radius: 9px; background: linear-gradient(135deg, var(--pbc-c1), var(--pbc-c2)); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.pbc-toast b { display: block; color: #111; font-size: 12.5px; }

@media (max-width: 860px) {
  .pbc-wrap { grid-template-columns: 1fr; }
  .pbc-phone { transform: none; width: min(300px, 80vw); }
}

/* ---------- Bandeau concept ---------- */
.pbc-banner {
  position: fixed; left: 14px; bottom: 14px; z-index: 9999; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 28px);
  padding: 8px 8px 8px 14px; border-radius: 999px; background: rgba(15, 15, 18, .88); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  font: 500 12.5px/1.2 -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  transform: translateY(150%); transition: transform .8s cubic-bezier(.19, 1, .22, 1);
}
.pbc-banner.is-on { transform: none; }
.pbc-banner img { width: 20px; height: 20px; border-radius: 6px; }
.pbc-banner span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.pbc-banner a { flex: none; padding: 7px 12px; border-radius: 999px; background: #fff; color: #111; font-weight: 600; text-decoration: none; }
.pbc-banner button { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; font-size: 13px; }
@media (max-width: 480px) { .pbc-banner span { max-width: 130px; } }
