/* Icône « i » + modale d'information matières/finitions — 06/11/2026 */
.bm-icone-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-left: 6px; border-radius: 50%;
  background: #e5e9f0; color: #4a5568; border: none; font: 700 12px/1 system-ui, sans-serif;
  cursor: pointer; vertical-align: middle; padding: 0;
}
.bm-icone-info:hover { background: #cfd8e3; }

dialog.bm-modale {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0;
  width: min(680px, 92vw); max-height: 85vh; padding: 0; border: none; border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
dialog.bm-modale:has(table) { width: min(920px, 95vw); }
dialog.bm-modale::backdrop { background: rgba(15,23,42,.45); }
.bm-modale-tete {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem; border-bottom: 1px solid #eef0f3;
}
.bm-modale-tete h2 { font-size: 1.25rem; margin: 0; }
.bm-modale-fermer {
  background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #64748b;
}
.bm-modale-corps { padding: 1.4rem; overflow-y: auto; max-height: calc(85vh - 70px); }
.bm-carte {
  display: grid; grid-template-columns: 1fr 140px; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid #f0f1f4;
}
.bm-carte:last-child { border-bottom: none; }
.bm-carte-texte h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.bm-carte-texte p { margin: .4rem 0; color: #475569; line-height: 1.5; }
.bm-carte-texte ul { margin: .4rem 0; padding-left: 1.1rem; color: #475569; }
.bm-carte:has(table) { grid-template-columns: 1fr; }
.bm-tableau { width: 100%; margin: .6rem 0; border-collapse: collapse; font-size: .82rem; table-layout: fixed; }
.bm-tableau th, .bm-tableau td { border: 1px solid #e5e7eb; padding: .35rem .5rem; text-align: left; white-space: normal; word-break: break-word; }
.bm-tableau th:nth-child(2), .bm-tableau td:nth-child(2) { width: 70px; text-align: center; }
.bm-tableau th { background: #f8fafc; color: #111827; }
.bm-carte-image img { width: 100%; height: 110px; object-fit: contain; background: #f3f4f6; border-radius: 8px; }
.bm-carte-image-vide { background: #f3f4f6; border-radius: 8px; height: 110px; }
@media (max-width: 560px) {
  .bm-carte { grid-template-columns: 1fr; }
  .bm-carte-image, .bm-carte-image-vide { order: -1; height: 140px; }
}
