/* [6.47.30] LOT 2c — écran « Mon projet » (maquette d'Eric 21/10) et bouton du bureau.
   Bureau : 2 colonnes. Téléphone (≤ 768 px) : une colonne, même ordre, barre basse collée (total, commander, devis). */
.bpj-bouton { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; margin-right: 8px;
  border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; font-weight: 600; cursor: pointer; }
.bpj-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: #0f172a; color: #fff;
  font-size: 12px; line-height: 20px; text-align: center; }
/* Bureau, barre du bas (maquette Main, Eric 23/10) : « + Ajouter le short » sur deux lignes, « + Autre produit ». */
.bpj-ajout-barre { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 0 14px; margin-right: 8px;
  border: 1px solid #D5D8DC; border-radius: 8px; background: #fff; color: #141414; font: inherit; font-size: 14px; font-weight: 600;
  line-height: 1.2; cursor: pointer; text-align: left; }
.bpj-ajout-l2 { font-size: 11px; font-weight: 400; color: #5B606B; }
.bpj-overlay { position: fixed; inset: 0; z-index: 99990; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .55); padding: 16px; }
.bpj-overlay[hidden] { display: none !important; }
html.bpj-ouvert, html.bpj-ouvert body { overflow: hidden; }
.bpj-carte { position: relative; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.4fr); gap: 0;
  width: min(1040px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: #fff; color: #0f172a; border-radius: 16px;
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.bpj-carte [hidden] { display: none !important; }
.bpj-gauche { padding: 24px; background: #f8fafc; border-radius: 16px 0 0 16px; }
.bpj-droite { padding: 24px; }
.bpj-overlay.is-occupe .bpj-carte { cursor: progress; }
.bpj-overlay.is-occupe button { pointer-events: none; opacity: .7; }
.bpj-fermer { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 26px; color: #64748b; cursor: pointer; z-index: 1; }
.bpj-carte h2 { margin: 0 44px 10px 0; font-size: 20px; }
.bpj-palette { display: flex; gap: 8px; margin-bottom: 14px; }
.bpj-palette i { display: inline-block; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #cbd5e1; }
.bpj-produit { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #e2e8f0; }
.bpj-produit img, .bpj-vide { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #fff; display: block; }
.bpj-ajouts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.bpj-ajouter { min-height: 44px; padding: 0 14px; border: 2px dashed #94a3b8; border-radius: 10px; background: transparent;
  color: #334155; font-weight: 700; cursor: pointer; }
.bpj-bloc { padding: 14px 0; }
.bpj-comite-bloc { border-top: 1px solid #e2e8f0; margin-top: 12px; }
.bpj-bloc h3 { margin: 0 0 8px; font-size: 15px; }
.bpj-aide { margin: 0 0 8px; color: #64748b; font-size: 13px; }
.bpj-compteur { margin: 6px 0 0; color: #475569; font-size: 13px; }
.bpj-ligne { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.bpj-pri, .bpj-sec { min-height: 44px; padding: 0 16px; border-radius: 10px; font-weight: 700; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.bpj-pri { border: 0; background: #E8001E; color: #fff; }
.bpj-sec { border: 1px solid #0f172a; background: #fff; color: #0f172a; }
.bpj-pri:disabled, .bpj-sec:disabled, .bpj-lien-devis:disabled { opacity: .45; cursor: not-allowed; }
.bpj-lien { border: 0; background: transparent; color: #64748b; cursor: pointer; min-height: 40px; min-width: 40px; font-size: 18px; }
.bpj-table-wrap { overflow-x: auto; }
.bpj-joueurs { border-collapse: collapse; width: 100%; }
.bpj-joueurs th { text-align: left; font-size: 12px; color: #475569; padding: 4px; white-space: nowrap; }
.bpj-joueurs td { padding: 3px 4px; }
.bpj-joueurs input, .bpj-joueurs select { width: 100%; min-height: 40px; padding: 4px 8px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 16px; box-sizing: border-box; background: #fff; }
.bpj-joueurs .bpj-num { width: 64px; }
.bpj-comite-url { flex: 1 1 200px; min-height: 44px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 13px; background: #fff; }
.bpj-recap-bloc { border-top: 1px solid #e2e8f0; }
.bpj-recap { list-style: none; margin: 0; padding: 0; }
.bpj-recap li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.bpj-msg { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: #fef2f2; color: #991b1b; }
.bpj-msg[data-genre="ok"] { background: #f0fdf4; color: #166534; }
.bpj-pied { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.bpj-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 16px; }
.bpj-total strong { font-size: 20px; }
.bpj-commander { width: 100%; min-height: 52px; font-size: 16px; }
.bpj-sep { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; color: #64748b; font-size: 13px; }
.bpj-sep::before, .bpj-sep::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }
.bpj-lien-devis { min-height: 44px; border: 0; background: transparent; color: #0f172a; font-weight: 700; text-decoration: underline; cursor: pointer; font-size: 14px; }
@media (max-width: 768px) {
  .bpj-overlay { padding: 0; align-items: stretch; }
  .bpj-carte { grid-template-columns: 1fr; width: 100%; max-height: none; height: 100dvh; border-radius: 0; }
  .bpj-gauche { border-radius: 0; padding: 16px; }
  .bpj-droite { padding: 0 16px; }
  .bpj-produit { grid-template-columns: 48px 1fr auto; }
  .bpj-produit img, .bpj-vide { width: 48px; height: 48px; }
  /* barre basse collée : total, « Commander et payer », lien devis */
  .bpj-pied { position: sticky; bottom: 0; background: #fff; margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); gap: 6px; }
  .bpj-sep { display: none; }
  .bpj-lien-devis { min-height: 40px; }
}

/* [6.47.34] Proposition 8 (Eric 24/10) : « Partager » et « Sauvegarder » en haut à droite de la vue 3D, sur ordinateur. */
.bease-haut-actions { position: absolute; top: 16px; right: 24px; z-index: 20; display: flex; gap: 10px; }
.bease-haut-actions .bease-btn { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 8px; background: #fff; border: 1px solid #D5D8DC; color: #141414; font-weight: 600; }
.bease-haut-actions .bease-btn:hover { border-color: #141414; }
@media (max-width: 768px) { .bease-haut-actions { display: none; } }
