/* Codes promo (owner, 2026-11-29) : Module de réservation › Codes promo (promo.js). Champ du client : app.css (.bk-promo*). */
.pc { color: var(--text); padding: 8px 16px 40px; max-width: 1180px; flex: 1 1 auto; width: 100%; min-width: 0; }   /* comme .bm (bmod.css) : 16 px sur téléphone */
@media (min-width: 1000px) { .pc { padding-inline: 0; margin-left: 0; } }   /* ordinateur : collé à la marge de 20 px de la page */
@media (max-width: 999px) { .pc { padding-bottom: 150px; } }   /* rien sous les boutons flottants ni la barre du bas */
.pc-back { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 10px; padding: 6px 12px 6px 6px; border-radius: 99px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .3s, color .3s; }
.pc-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .pc-back svg { transform: scaleX(-1); }
@media (hover: hover) { .pc-back:hover { background: var(--text); color: var(--bg); } }
.pc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.pc-head h1 { margin: 0 0 6px; font-size: 26px; }
.pc-lead { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 62ch; }
.pc-new { flex: none; display: inline-flex; align-items: center; gap: 8px; }
.pc-new svg, .pc-acts svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pc-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pc-card.off .pc-code, .pc-card.off .pc-val { opacity: .55; }
.pc-top { display: flex; align-items: center; gap: 12px; }
.pc-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--gold-soft, rgba(205,165,91,.13)); color: var(--gold); display: grid; place-items: center; }
.pc-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pc-code { font-size: 17px; font-weight: 800; letter-spacing: .04em; overflow-wrap: anywhere; }
.pc-val { font-size: 14px; font-weight: 700; color: var(--gold); }
.pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.pc-chip { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; }
.pc-chip.green { background: var(--green-soft); color: var(--green); }
.pc-chip.grey { background: var(--line); color: var(--muted); }
.pc-acts { display: flex; gap: 10px; }
.pc-acts .btn { display: inline-flex; align-items: center; gap: 6px; }
.pc-empty { border: 1px dashed var(--line); border-radius: 16px; padding: 32px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--muted); }
.pc-empty p { margin: 0; }
/* Fenêtre : nouveau code / modifier */
.pc-dialog { width: min(460px, 100%); }
.pc-dialog h2 { margin: 0 0 18px; font-size: 20px; }
.pc-form { display: flex; flex-direction: column; gap: 16px; }
.pc-form > label.f, .pc-kv label.f, .pc-form .mf-pick { margin: 0; }
.pc-hint { margin: -10px 4px 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.pc-kv { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: end; }
.pc-seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--line); gap: 4px; height: 48px; }
.pc-seg button { border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; padding: 0 14px; cursor: pointer; transition: background .3s, color .3s; }
.pc-seg button.on { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
@media (hover: hover) { .pc-seg button:not(.on):hover { background: var(--text); color: var(--bg); } }
.pc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.pc-row .t { flex: 1; font-size: 14px; font-weight: 700; line-height: 1.3; }
.pc-row .t small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pc-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.pc-btns .btn { min-width: 120px; }
@media (max-width: 640px) {
  .pc-head { flex-direction: column; }
  .pc-new { width: 100%; justify-content: center; }
  .pc-list { grid-template-columns: 1fr; }
  .pc-btns .btn { flex: 1; min-width: 0; }
}
