/* Bons plans et achats groupés (/bons-plans/).
   Jetons alignés sur le DS BizNC : gris purs, rayons 4 / 6 / 10 / 16 px,
   police Inter, couleurs sémantiques pour les états, champs blancs dans les
   deux thèmes (comme les onglets Pour toi). Mobile d'abord. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-v20-latin.woff2') format('woff2'); }

:root {
  --bp-bg: #0a0a0a; --bp-card: #111111; --bp-card-2: #181818; --bp-line: rgba(255,255,255,.12); --bp-line-strong: rgba(255,255,255,.24);
  --bp-ink: #f4f7f5; --bp-soft: #d7ddd7; --bp-muted: #aeb8b4;
  --bp-input: #ffffff; --bp-input-ink: #111111; --bp-focus: #d4a017;
  --bp-ok: #22c55e; --bp-ok-bg: rgba(34,197,94,.14); --bp-warn: #ff9800; --bp-warn-bg: rgba(255,152,0,.14);
  --bp-err: #e05c5c; --bp-err-bg: rgba(224,92,92,.14); --bp-info-bg: rgba(255,255,255,.07);
  --bp-primary: #f4f7f5; --bp-primary-ink: #0a0a0a;
  --bp-r-xs: 4px; --bp-r-sm: 6px; --bp-r: 10px; --bp-r-lg: 16px;
}
:root[data-theme="light"] {
  --bp-bg: #f5f6ee; --bp-card: #ffffff; --bp-card-2: #f1f2ea; --bp-line: rgba(24,26,22,.14); --bp-line-strong: rgba(24,26,22,.3);
  --bp-ink: #101418; --bp-soft: #3f443c; --bp-muted: #5f635a;
  --bp-input: #ffffff; --bp-input-ink: #111111; --bp-focus: #8D7B22;
  --bp-ok: #15803d; --bp-ok-bg: rgba(21,128,61,.10); --bp-warn: #b45309; --bp-warn-bg: rgba(180,83,9,.10);
  --bp-err: #b42318; --bp-err-bg: rgba(180,35,24,.08); --bp-info-bg: rgba(24,26,22,.05);
  --bp-primary: #111111; --bp-primary-ink: #ffffff;
}
body { margin: 0; background: var(--bp-bg); color: var(--bp-ink); font-family: Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.bp:focus { outline: none; }
.bp [id], .bp-map, .bp-card { scroll-margin-top: 84px; }
.bp { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 64px; font-size: 15px; line-height: 1.5; }
.bp *, .bp *::before, .bp *::after { box-sizing: border-box; }
.bp a { color: inherit; }
.bp h1 { margin: 6px 0 8px; font-size: clamp(1.55rem, 5.4vw, 2.2rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
.bp h2 { margin: 0 0 12px; font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.bp h3 { margin: 0 0 8px; font-size: .98rem; font-weight: 750; }
.bp p { margin: 0 0 10px; }
.bp-crumb { margin: 0 0 6px; color: var(--bp-muted); font-size: .82rem; }
.bp-crumb a { color: var(--bp-muted); text-decoration: none; }
.bp-crumb a:hover { color: var(--bp-ink); text-decoration: underline; }
.bp-kicker { margin: 0; color: var(--bp-muted); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bp-lead { color: var(--bp-soft); font-size: 1rem; max-width: 60ch; }
.bp-muted { color: var(--bp-muted); }
.bp-small { font-size: .84rem; }
.bp-hide { display: none !important; }

/* Panneaux */
.bp-card { margin: 0 0 14px; padding: 18px; border: 1px solid var(--bp-line); border-radius: var(--bp-r); background: var(--bp-card); }
.bp-card.is-flat { background: transparent; }
.bp-card > :last-child { margin-bottom: 0; }
.bp-sep { height: 1px; margin: 14px 0; border: 0; background: var(--bp-line); }

/* Boutons : une action principale évidente, le reste en secondaire. */
.bp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border: 1px solid var(--bp-line-strong); border-radius: var(--bp-r-sm); background: transparent; color: var(--bp-ink);
  font: inherit; font-size: .95rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, opacity .2s; }
.bp-btn:hover { background: var(--bp-info-bg); }
.bp-btn.is-primary { border-color: var(--bp-primary); background: var(--bp-primary); color: var(--bp-primary-ink); }
.bp-btn.is-primary:hover { opacity: .9; }
.bp-btn.is-danger { border-color: var(--bp-err); color: var(--bp-err); }
.bp-btn.is-small { min-height: 38px; padding: 0 12px; font-size: .86rem; }
.bp-btn.is-link { min-height: 40px; padding: 0 4px; border: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.bp-btn[disabled], .bp-btn[aria-busy="true"] { opacity: .55; cursor: progress; }
.bp-btn.is-block { width: 100%; }
.bp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
.bp-actions.is-stack { flex-direction: column; }
.bp :focus-visible { outline: 3px solid var(--bp-focus); outline-offset: 2px; }

/* Champs */
.bp-form { display: grid; gap: 14px; }
.bp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; align-items: end; }
.bp-field { display: grid; gap: 6px; min-width: 0; }
.bp-field > span { color: var(--bp-soft); font-size: .88rem; font-weight: 650; }
.bp-field > small { color: var(--bp-muted); font-size: .8rem; }
.bp-field input, .bp-field select, .bp-field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--bp-line-strong);
  border-radius: var(--bp-r-sm); background: var(--bp-input); color: var(--bp-input-ink); font: inherit; font-size: 16px; }
.bp-field textarea { min-height: 84px; resize: vertical; }
.bp-field input:focus, .bp-field select:focus, .bp-field textarea:focus { outline: none; border-color: var(--bp-focus); box-shadow: 0 0 0 3px rgba(212,160,23,.28); }
.bp-field.is-invalid input, .bp-field.is-invalid select { border-color: var(--bp-err); }
.bp-check { display: flex; align-items: flex-start; gap: 10px; min-height: 40px; color: var(--bp-soft); font-size: .92rem; cursor: pointer; }
.bp-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--bp-primary); }
.bp-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.bp-choice label { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--bp-line-strong);
  border-radius: var(--bp-r-sm); cursor: pointer; font-weight: 650; font-size: .92rem; }
.bp-choice input { width: 18px; height: 18px; accent-color: var(--bp-primary); }
.bp-choice label:has(input:checked) { border-color: var(--bp-ink); background: var(--bp-info-bg); }
details.bp-more { border-top: 1px solid var(--bp-line); padding-top: 4px; }
details.bp-more > summary { display: flex; align-items: center; min-height: 44px; color: var(--bp-soft); font-weight: 700; font-size: .92rem; cursor: pointer; list-style: none; }
details.bp-more > summary::before { content: '+'; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border: 1px solid var(--bp-line-strong); border-radius: 50%; font-size: .9rem; }
details.bp-more[open] > summary::before { content: '–'; }
details.bp-more > summary::-webkit-details-marker { display: none; }
details.bp-more > .bp-form { padding: 6px 0 4px; }

/* Bascule carte / liste */
.bp-switch { display: inline-flex; padding: 3px; border: 1px solid var(--bp-line-strong); border-radius: 9px; background: var(--bp-card-2); }
.bp-switch button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 6px; background: transparent; color: var(--bp-soft); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.bp-switch button[aria-pressed="true"] { background: var(--bp-primary); color: var(--bp-primary-ink); }
.bp-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 0 0 12px; }
.bp-toolbar .bp-field { flex: 1 1 170px; }

/* Carte */
.bp-map { position: relative; height: min(46vh, 460px); min-height: 280px; margin: 0 0 12px; border: 1px solid var(--bp-line); border-radius: var(--bp-r); overflow: hidden; background: var(--bp-card-2); }
.bp-map.is-small { height: 260px; min-height: 0; }
.bp-map-status { position: absolute; inset: auto 12px 12px 12px; margin: 0; padding: 10px 12px; border-radius: var(--bp-r-sm); background: var(--bp-card); color: var(--bp-soft); font-size: .86rem; }
.bp-pin { display: inline-flex; align-items: center; min-height: 30px; padding: 0 9px; border: 2px solid #fff; border-radius: 999px; background: #111; color: #fff;
  font: 800 12px/1 Inter, Arial, sans-serif; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.bp-pin.is-reported { background: #4b5563; border-style: dashed; }
.bp-pin.is-sold_out, .bp-pin.is-ended { background: #9ca3af; color: #111; }
.bp-pin.is-selected { background: #d4a017; color: #111; transform: scale(1.12); }
.bp-pin.is-pick { background: #d4a017; color: #111; cursor: default; }

/* Cartes d'offre */
.bp-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bp-offer { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--bp-line); border-radius: var(--bp-r); background: var(--bp-card); text-decoration: none; color: inherit; }
.bp-offer:hover { border-color: var(--bp-line-strong); }
.bp-offer.is-selected { border-color: var(--bp-ink); }
.bp-thumb { width: 76px; height: 76px; border-radius: var(--bp-r-sm); background: var(--bp-card-2) center/cover no-repeat; display: grid; place-items: center; color: var(--bp-muted); font-size: 1.6rem; }
.bp-offer-title { margin: 0 0 2px; font-size: 1rem; font-weight: 800; line-height: 1.25; }
.bp-price { font-size: 1.05rem; font-weight: 800; }
.bp-meta { margin: 4px 0 0; color: var(--bp-muted); font-size: .84rem; line-height: 1.4; }
.bp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.bp-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid var(--bp-line-strong); border-radius: var(--bp-r-xs); font-size: .76rem; font-weight: 750; color: var(--bp-soft); }
.bp-badge.is-ok { border-color: transparent; background: var(--bp-ok-bg); color: var(--bp-ok); }
.bp-badge.is-warn { border-color: transparent; background: var(--bp-warn-bg); color: var(--bp-warn); }
.bp-badge.is-err { border-color: transparent; background: var(--bp-err-bg); color: var(--bp-err); }
.bp-badge.is-off { color: var(--bp-muted); }
.bp-badge.is-demo { border-style: dashed; color: var(--bp-warn); }
.bp-empty { padding: 22px 16px; border: 1px dashed var(--bp-line-strong); border-radius: var(--bp-r); color: var(--bp-soft); text-align: center; }

/* Gros choix d'entrée */
.bp-entry { display: grid; gap: 10px; margin: 14px 0 18px; }
@media (min-width: 640px) { .bp-entry { grid-template-columns: 1fr 1fr; } }
.bp-entry a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--bp-line-strong); border-radius: var(--bp-r); background: var(--bp-card); text-decoration: none; }
.bp-entry a.is-primary { background: var(--bp-primary); color: var(--bp-primary-ink); border-color: var(--bp-primary); }
.bp-entry strong { font-size: 1rem; }
.bp-entry span { font-size: .85rem; opacity: .8; }
.bp-entry a.is-wide { grid-column: 1 / -1; }

/* Page de commande */
.bp-now { margin: 0 0 14px; padding: 16px 18px; border: 1px solid var(--bp-line-strong); border-left: 4px solid var(--bp-ink); border-radius: var(--bp-r); background: var(--bp-card); }
.bp-now.is-warn { border-left-color: var(--bp-warn); }
.bp-now.is-ok { border-left-color: var(--bp-ok); }
.bp-now h2 { margin-bottom: 6px; }
.bp-tracks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.bp-track { padding: 10px; border: 1px solid var(--bp-line); border-radius: var(--bp-r-sm); background: var(--bp-card-2); min-width: 0; }
.bp-track b { display: block; color: var(--bp-muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.bp-track span { display: block; margin-top: 2px; font-size: .86rem; font-weight: 750; overflow-wrap: anywhere; }
.bp-kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; margin: 0; }
.bp-kv dt, .bp-kv dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--bp-line); }
.bp-kv dt { color: var(--bp-muted); font-size: .9rem; }
.bp-kv dd { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
.bp-kv dd.is-total { font-size: 1.12rem; }
.bp-copy { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin: 0 0 8px; border: 1px solid var(--bp-line-strong); border-radius: var(--bp-r-sm); background: var(--bp-card-2); }
.bp-copy code { font-family: 'Courier New', monospace; font-size: .98rem; font-weight: 700; overflow-wrap: anywhere; }
.bp-copy small { display: block; color: var(--bp-muted); font-size: .76rem; font-family: Inter, Arial, sans-serif; }
.bp-alert { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--bp-r-sm); background: var(--bp-info-bg); color: var(--bp-soft); font-size: .9rem; }
.bp-alert.is-warn { background: var(--bp-warn-bg); color: var(--bp-ink); border: 1px solid var(--bp-warn); }
.bp-alert.is-err { background: var(--bp-err-bg); color: var(--bp-ink); border: 1px solid var(--bp-err); }
.bp-alert.is-ok { background: var(--bp-ok-bg); color: var(--bp-ink); }
.bp-tabs { display: flex; gap: 4px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--bp-line); }
.bp-tabs button { flex: 0 0 auto; min-height: 44px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--bp-muted); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.bp-tabs button[aria-selected="true"] { color: var(--bp-ink); border-bottom-color: var(--bp-ink); }
.bp-people { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bp-person { padding: 12px; border: 1px solid var(--bp-line); border-radius: var(--bp-r-sm); background: var(--bp-card-2); }
.bp-person-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bp-person-head strong { font-size: .98rem; }
.bp-person .bp-actions { margin-top: 8px; }
.bp-progress { height: 8px; margin: 8px 0 4px; border-radius: 999px; background: var(--bp-card-2); overflow: hidden; }
.bp-progress span { display: block; height: 100%; background: var(--bp-ink); border-radius: 999px; }
.bp-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.bp-steps li { position: relative; padding: 0 0 0 40px; counter-increment: s; }
.bp-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--bp-line-strong); border-radius: 50%; font-weight: 800; font-size: .86rem; }
.bp-faq details { padding: 4px 0; border-bottom: 1px solid var(--bp-line); }
.bp-faq summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.bp-ess { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 6px; }
.bp-card.is-flat h2 + .bp-ess, .bp-card.is-flat .bp-ess + p { margin-top: 8px; }
.bp-card.is-flat .bp-steps + h2, .bp-card.is-flat p + h2 { margin-top: 22px; }
.bp-code-input { letter-spacing: .3em; font-family: 'Courier New', monospace; font-weight: 800; text-align: center; }
.bp-toast { position: fixed; left: 50%; bottom: 18px; z-index: 50; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); padding: 12px 16px;
  border-radius: var(--bp-r-sm); background: var(--bp-primary); color: var(--bp-primary-ink); font-weight: 650; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.bp-toast.is-err { background: var(--bp-err); color: #fff; }
.bp-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: bp-spin .8s linear infinite; }
@keyframes bp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bp-spinner { animation-duration: 3s; } }
.bp-photo { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--bp-r); margin: 0 0 12px; background: var(--bp-card-2); }
.bp-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.bp-table th, .bp-table td { padding: 8px 6px; border-bottom: 1px solid var(--bp-line); text-align: left; vertical-align: top; }
.bp-table td.num, .bp-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .bp-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-card { padding: 16px 14px; }
  .bp-actions:not(.is-inline) > .bp-btn { flex: 1 1 100%; }
}

/* Liste de préparation imprimable */
@media print {
  header.nav, .official-footer, .menu-overlay, .bp-noprint, .bp-toast { display: none !important; }
  body { background: #fff; color: #000; }
  .bp { width: 100%; padding: 0; }
  .bp-card { border: 0; padding: 0; background: #fff; }
  .bp-print-block { break-inside: avoid; margin-bottom: 16px; }
  .bp-table th, .bp-table td { border-bottom: 1px solid #999; color: #000; }
}
