/* ============================================================================
   Boxis — Bare Metal (page liste "Choisissez votre plateforme")
   Palette : bleu #114FAC / #0191f7 · orange #FF932F / #ff8b3d · navy #0b1b34
   ========================================================================== */

.bm-page,
#bm-configurator-root,
.bm-cfg {
  --bm-blue: #114FAC;
  --bm-blue-bright: #0191f7;
  --bm-orange: #ff8b3d;
  --bm-navy: #0b1b34;
  --bm-ink: #16233b;
  --bm-muted: #64748b;
  --bm-line: #e6ebf2;
  --bm-bg: #f6f8fb;
  --bm-green: #17a673;
}

.bm-page {
  font-family: 'TerminalDosis', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--bm-ink);
}

/* ------------------------------- Hero ------------------------------------ */

.bm-hero {
  background: linear-gradient(180deg, #eef3fb 0%, #f6f8fb 100%);
  padding: 64px 0 56px;
}
.bm-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.bm-hero__badge {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bm-blue);
  background: #e2ecfb;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.bm-hero__title {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--bm-navy);
}
.bm-hero__title em { color: var(--bm-blue-bright); font-style: normal; }
.bm-hero__lead { font-size: 1.05rem; color: var(--bm-muted); margin: 0 0 28px; max-width: 34em; }
.bm-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.bm-hero__card {
  background: var(--bm-navy);
  color: #fff;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(11, 27, 52, .28);
}
.bm-hero__card-item { display: flex; gap: 14px; padding: 14px 0; }
.bm-hero__card-item + .bm-hero__card-item { border-top: 1px solid rgba(255, 255, 255, .1); }
.bm-hero__card-ico {
  flex: 0 0 42px; height: 42px; width: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(1, 145, 247, .18);
  color: #7cc0ff;
  font-size: 1.05rem;
}
.bm-hero__card-item:nth-child(2) .bm-hero__card-ico { background: rgba(255, 139, 61, .18); color: var(--bm-orange); }
.bm-hero__card-t { font-weight: 700; font-size: .98rem; margin: 0 0 2px; }
.bm-hero__card-d { font-size: .84rem; color: rgba(255, 255, 255, .68); margin: 0; }

/* ------------------------------ Buttons ---------------------------------- */

.bm-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .95rem/1 inherit;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.bm-btn--primary { background: var(--bm-navy); color: #fff; }
.bm-btn--primary:hover { background: #12294a; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11, 27, 52, .25); color: #fff; }
.bm-btn--ghost { background: #fff; color: var(--bm-navy); border-color: var(--bm-line); }
.bm-btn--ghost:hover { border-color: #c7d3e3; }
.bm-btn--orange { background: var(--bm-orange); color: #fff; }
.bm-btn--orange:hover { background: #ff7a22; color: #fff; }
.bm-btn--sm { padding: 9px 16px; font-size: .85rem; }
.bm-btn__sub { display: block; font-weight: 500; font-size: .72rem; opacity: .8; }

/* --------------------------- Platform section ---------------------------- */

.bm-plat { padding: 56px 0; background: #fff; }
.bm-plat__head { margin-bottom: 26px; }
.bm-plat__eyebrow {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--bm-blue); display: block; margin-bottom: 8px;
}
.bm-plat__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; color: var(--bm-navy); margin: 0; }

/* ------------------------------ Controls --------------------------------- */

.bm-controls {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  align-items: flex-end;
  padding: 16px; border: 1px solid var(--bm-line); border-radius: 14px;
  background: var(--bm-bg); margin-bottom: 22px;
}
.bm-controls__filters { display: flex; flex-wrap: wrap; gap: 12px; }
.bm-controls__meta { display: flex; align-items: center; gap: 16px; }
.bm-select, .bm-search { display: flex; flex-direction: column; gap: 5px; font-size: .78rem; }
.bm-select > span { font-weight: 700; color: var(--bm-muted); text-transform: uppercase; letter-spacing: .04em; }
.bm-select select, .bm-search input {
  border: 1px solid var(--bm-line); border-radius: 9px; background: #fff;
  padding: 9px 12px; font: 500 .9rem inherit; color: var(--bm-ink); min-width: 150px;
}
.bm-select select:focus, .bm-search input:focus { outline: none; border-color: var(--bm-blue-bright); box-shadow: 0 0 0 3px rgba(1, 145, 247, .12); }
.bm-search { flex-direction: row; align-items: center; align-self: flex-end; position: relative; }
.bm-search i { position: absolute; left: 12px; color: var(--bm-muted); font-size: .85rem; }
.bm-search input { padding-left: 32px; min-width: 200px; }
.bm-select--sort { flex-direction: row; align-items: center; }
.bm-count { font-size: .9rem; color: var(--bm-muted); }
.bm-count strong { color: var(--bm-navy); }

.bm-viewtoggle { display: inline-flex; border: 1px solid var(--bm-line); border-radius: 9px; overflow: hidden; background: #fff; }
.bm-viewtoggle button {
  border: 0; background: transparent; padding: 9px 12px; cursor: pointer; color: var(--bm-muted);
}
.bm-viewtoggle button.is-active { background: var(--bm-navy); color: #fff; }

/* -------------------------------- Rows ----------------------------------- */

.bm-grid { display: flex; flex-direction: column; gap: 12px; }

.bm-row {
  display: grid;
  grid-template-columns: 92px 1.4fr 1.6fr auto auto;
  gap: 22px; align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--bm-line);
  border-radius: 14px;
  background: #fff;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.bm-row:hover { box-shadow: 0 10px 30px rgba(16, 35, 59, .08); border-color: #d5deeb; }
.bm-row.is-featured { border-left: 4px solid var(--bm-orange); }

.bm-row__thumb {
  width: 92px; height: 72px; border-radius: 10px; overflow: hidden;
  background: #f1f5fa; border: 1px solid var(--bm-line);
  display: block; position: relative;
}
.bm-row__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bm-row__thumb:hover { border-color: #c7d3e3; }

.bm-row__brand { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bm-muted); font-weight: 700; }
.bm-row__name { font-size: 1.12rem; font-weight: 800; color: var(--bm-navy); margin: 2px 0 4px; }
.bm-row__cpu { font-size: .84rem; color: var(--bm-muted); margin-bottom: 8px; }

.bm-row__specs { display: flex; gap: 26px; flex-wrap: wrap; }
.bm-row__spec { min-width: 120px; }
.bm-row__spec-label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bm-muted); font-weight: 700; margin-bottom: 3px; }
.bm-row__spec-value { font-size: .88rem; color: var(--bm-ink); }
.bm-row__spec-value small { color: var(--bm-muted); font-size: .74rem; }

.bm-row__price { text-align: right; min-width: 150px; }
.bm-row__from { font-size: .72rem; color: var(--bm-muted); text-transform: uppercase; letter-spacing: .05em; }
.bm-row__amount { font-size: 1.55rem; font-weight: 800; color: var(--bm-navy); line-height: 1.1; }
.bm-row__cur { font-size: .95rem; font-weight: 700; }
.bm-row__per { font-size: .8rem; color: var(--bm-muted); font-weight: 600; }
.bm-row__setup { font-size: .72rem; color: var(--bm-muted); margin-top: 4px; }
.bm-row__cta { min-width: 150px; text-align: right; }
.bm-row__cta .bm-btn { width: 100%; justify-content: center; }

/* ------------------------------ Badges ----------------------------------- */

.bm-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.bm-badge--ready { background: rgba(23, 166, 115, .12); color: var(--bm-green); }
.bm-badge--build { background: rgba(1, 145, 247, .12); color: var(--bm-blue-bright); }
.bm-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.bm-chip--validation { background: rgba(255, 139, 61, .14); color: #d9700f; }

.bm-row__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bm-stock {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: #eef2f7; color: var(--bm-muted);
}
.bm-stock i { font-size: .68rem; }
.bm-row.is-out { opacity: .72; }
.bm-btn.is-disabled, .bm-btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; box-shadow: none; }

/* ------------------------------- Table ----------------------------------- */

.bm-table-wrap { overflow-x: auto; border: 1px solid var(--bm-line); border-radius: 14px; }
.bm-table { width: 100%; border-collapse: collapse; font-size: .88rem; background: #fff; }
.bm-table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bm-muted); padding: 12px 14px; border-bottom: 1px solid var(--bm-line); }
.bm-table td { padding: 14px; border-bottom: 1px solid var(--bm-line); vertical-align: middle; }
.bm-table tr.is-featured td { background: rgba(255, 139, 61, .04); }
.bm-td-name { font-weight: 700; color: var(--bm-navy); }
.bm-td-sub { font-size: .76rem; color: var(--bm-muted); }
.bm-td-price strong { color: var(--bm-navy); font-size: 1rem; }
.bm-table small { color: var(--bm-muted); }
.bm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.bm-dot--ready { background: var(--bm-green); }
.bm-dot--build { background: var(--bm-blue-bright); }
.bm-dot--out { background: #c2ccd8; }

/* ------------------------------- Misc ------------------------------------ */

.bm-empty { padding: 48px; text-align: center; color: var(--bm-muted); border: 1px dashed var(--bm-line); border-radius: 14px; }
.bm-estimate { margin-top: 16px; font-size: .8rem; color: var(--bm-muted); }
.bm-estimate i { color: var(--bm-blue-bright); }

/* -------------------------- Trust section -------------------------------- */

.bm-trust { padding: 56px 0; background: var(--bm-bg); }
.bm-trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.bm-trust__title { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 800; color: var(--bm-navy); margin: 8px 0 0; }
.bm-trust__eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--bm-blue); }
.bm-trust__points { display: flex; flex-direction: column; gap: 22px; }
.bm-trust__point { display: flex; gap: 16px; }
.bm-trust__num { flex: 0 0 34px; height: 34px; width: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--bm-navy); color: #fff; font-weight: 800; }
.bm-trust__point-t { font-weight: 700; color: var(--bm-navy); margin: 0 0 4px; }
.bm-trust__point-d { font-size: .9rem; color: var(--bm-muted); margin: 0; }

.bm-row__name a { color: inherit; text-decoration: none; }
.bm-row__name a:hover { color: var(--bm-blue-bright); }
.bm-ff { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: #eef2f7; color: var(--bm-muted); font-size: .68rem; font-weight: 800; }

/* Tags (stock / fraîcheur / délai) + chip accès distant */
.bm-tag { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #eef2f7; color: var(--bm-muted); }
.bm-tag i { font-size: .68rem; }
.bm-tag--stock.is-in { background: rgba(23, 166, 115, .12); color: var(--bm-green); }
.bm-tag--stock.is-out { background: rgba(200, 60, 60, .1); color: #c0392b; }
.bm-tag--stock.is-unknown { background: #eef2f7; color: var(--bm-muted); }
.bm-tag--fresh.is-fresh { background: rgba(23, 166, 115, .1); color: var(--bm-green); }
.bm-tag--fresh.is-stale { background: rgba(255, 139, 61, .14); color: #d9700f; }
.bm-tag--fresh.is-unavail { background: #eef2f7; color: var(--bm-muted); }
.bm-tag--delivery { background: rgba(1, 145, 247, .1); color: var(--bm-blue-bright); }
.bm-chip--remote { background: #eef2f7; color: var(--bm-navy); }
.bm-chip--net { background: rgba(1, 145, 247, .1); color: var(--bm-blue-bright); }
.bm-chip--gpu { background: rgba(124, 58, 237, .12); color: #6d28d9; }
.bm-td-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.bm-td-chips:empty { display: none; }
.bm-row__vat { font-size: .72rem; color: var(--bm-muted); font-weight: 600; }
.bm-row__price--na { color: var(--bm-muted); font-weight: 700; }
.bm-btn--ghost.is-muted { color: var(--bm-muted); }

/* Filtre "disponibles uniquement" */
.bm-check { display: inline-flex; align-items: center; gap: 7px; align-self: flex-end; font-size: .82rem; font-weight: 700; color: var(--bm-navy); padding-bottom: 9px; cursor: pointer; }
.bm-check input { width: 16px; height: 16px; accent-color: var(--bm-blue); }

/* États : chargement / erreur */
.bm-loading, .bm-error { padding: 44px; text-align: center; color: var(--bm-muted); border: 1px dashed var(--bm-line); border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.bm-error i { color: var(--bm-orange); }
.bm-spinner { width: 18px; height: 18px; border: 2px solid var(--bm-line); border-top-color: var(--bm-blue-bright); border-radius: 50%; display: inline-block; animation: bm-spin .7s linear infinite; }
@keyframes bm-spin { to { transform: rotate(360deg); } }

/* ----------------------------- Responsive -------------------------------- */

@media (max-width: 992px) {
  .bm-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .bm-trust__grid { grid-template-columns: 1fr; gap: 24px; }
  .bm-row { grid-template-columns: 64px 1fr; grid-template-areas: 'thumb id' 'specs specs' 'price cta'; }
  .bm-row__thumb { grid-area: thumb; width: 64px; height: 56px; font-size: 1.3rem; }
  .bm-row__id { grid-area: id; }
  .bm-row__specs { grid-area: specs; gap: 18px; padding-top: 6px; border-top: 1px solid var(--bm-line); }
  .bm-row__price { grid-area: price; text-align: left; }
  .bm-row__cta { grid-area: cta; align-self: end; }
}
@media (max-width: 640px) {
  .bm-controls { flex-direction: column; align-items: stretch; }
  .bm-controls__meta { justify-content: space-between; }
  .bm-search input { min-width: 0; width: 100%; }
  .bm-row { grid-template-columns: 56px 1fr; grid-template-areas: 'thumb id' 'specs specs' 'price cta'; }
  .bm-row__thumb { grid-area: thumb; width: 56px; height: 48px; }
}

/* ========================================================================== *
   Fiche serveur & configurateur (page /serveurs-bare-metal/<slug>/)
   ========================================================================== */
.bm-detail-hero { background: linear-gradient(180deg, #eef3fb 0%, #f6f8fb 100%); padding: 36px 0 30px; }
.bm-breadcrumb { font-size: .82rem; color: var(--bm-muted); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.bm-breadcrumb a { color: var(--bm-blue); font-weight: 700; text-decoration: none; }
.bm-breadcrumb a:hover { text-decoration: underline; }
.bm-breadcrumb__cur { font-weight: 700; color: var(--bm-navy); }
.bm-detail-hero__grid { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; }
.bm-detail-hero__media { background: #fff; border: 1px solid var(--bm-line); border-radius: 16px; padding: 18px; display: flex; align-items: center; justify-content: center; }
.bm-detail-hero__media img { max-width: 100%; height: auto; object-fit: contain; }
.bm-detail-hero__brand { font-size: .85rem; font-weight: 700; color: var(--bm-blue); text-transform: uppercase; letter-spacing: .04em; display: flex; gap: 8px; align-items: center; }
.bm-ff { background: #eef2f7; color: var(--bm-navy); border-radius: 6px; padding: 1px 8px; font-size: .72rem; }
.bm-detail-hero__title { font-size: 2rem; font-weight: 800; color: var(--bm-navy); margin: 8px 0 16px; }
.bm-spec-summary { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.bm-spec-summary li { display: flex; flex-direction: column; font-size: .9rem; }
.bm-spec-summary li span { color: var(--bm-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; }
.bm-spec-summary li strong { color: var(--bm-ink); }
.bm-detail-hero__lead { color: var(--bm-muted); font-size: .92rem; line-height: 1.55; }

.bm-configurator { padding: 30px 0 64px; }
.bm-cfg { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.bm-cfg__main { min-width: 0; }
.bm-cfg__variants { background: #fff; border: 1px solid var(--bm-line); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.bm-cfg__variant-label { font-weight: 700; color: var(--bm-navy); display: block; margin-bottom: 8px; }
.bm-req-star { color: var(--bm-orange); }
.bm-variant-select, .bm-opt__qty, .bm-host__sel select, .bm-host__qty select { border: 1px solid var(--bm-line); border-radius: 8px; padding: 8px 10px; font: inherit; color: var(--bm-ink); background: #fff; width: 100%; }
.bm-cfg__validating { display: flex; align-items: center; gap: 10px; color: var(--bm-muted); font-size: .85rem; margin-bottom: 12px; }

.bm-cfg__groups { display: flex; flex-direction: column; gap: 16px; }
.bm-grp { background: #fff; border: 1px solid var(--bm-line); border-radius: 14px; padding: 16px 18px; }
.bm-grp__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.bm-grp__title { font-size: 1.05rem; font-weight: 800; color: var(--bm-navy); margin: 0; }
.bm-grp__badge { font-size: .7rem; font-weight: 700; border-radius: 20px; padding: 3px 10px; white-space: nowrap; }
.bm-grp__badge.is-auto { background: rgba(1,145,247,.1); color: var(--bm-blue-bright); }
.bm-grp__badge.is-locked { background: #eef2f7; color: var(--bm-muted); }
.bm-grp__badge.is-req { background: rgba(255,139,61,.14); color: #d9700f; }
.bm-grp__badge.is-opt { background: rgba(23,166,115,.1); color: var(--bm-green); }
.bm-grp__notice, .bm-grp__info { font-size: .8rem; color: var(--bm-muted); margin: 0 0 10px; }
.bm-grp__notice i { color: var(--bm-blue-bright); }
.bm-grp__applied { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.bm-grp__applied li { padding: 4px 0; }
.bm-grp__issue { font-size: .82rem; margin: 8px 0 0; display: flex; gap: 7px; align-items: flex-start; }
.bm-grp__issue.is-error { color: #c0392b; }
.bm-grp__issue.is-warn { color: #d9700f; }
.bm-muted { color: var(--bm-muted); }

.bm-grp__options { display: flex; flex-direction: column; gap: 6px; }
.bm-grp__sum { margin: 10px 0 0; padding: 8px 12px; font-size: .85rem; color: var(--bm-ink, #0f172a); background: rgba(1,145,247,.06); border: 1px solid rgba(1,145,247,.18); border-radius: 10px; }
.bm-grp__sum i { color: var(--bm-blue-bright); margin-right: 6px; }
.bm-grp__sum strong { font-weight: 700; }
.bm-opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; }
.bm-opt:hover { background: #f8fafc; }
.bm-opt.is-selected { border-color: var(--bm-blue-bright); background: rgba(1,145,247,.04); }
.bm-opt.is-disabled { opacity: .5; cursor: not-allowed; }
.bm-grp__notice--mix { color: #d9700f; font-weight: 600; }
.bm-grp__notice--mix i { color: var(--bm-orange); }
.bm-opt__full { color: #c0392b; font-weight: 600; }
.bm-opt__full i { margin-right: 3px; }
.bm-opt__control { padding-top: 2px; }
.bm-opt__ctrl { accent-color: var(--bm-blue); }
.bm-opt__body { flex: 1; min-width: 0; }
.bm-opt__label { font-weight: 600; color: var(--bm-ink); }
.bm-opt__cat { font-size: .72rem; color: var(--bm-muted); font-weight: 600; }
.bm-opt__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-size: .78rem; align-items: center; }
.bm-opt__price { font-weight: 700; color: var(--bm-navy); white-space: nowrap; }
.bm-opt__price--free { color: var(--bm-green); }
.bm-opt__price em { font-weight: 500; color: var(--bm-muted); font-style: normal; font-size: .85em; }
.bm-opt__stock.is-in { color: var(--bm-green); font-weight: 700; }
.bm-opt__stock.is-warn { color: #d9700f; font-weight: 700; }
.bm-opt__stock.is-short,
.bm-opt__stock.is-out { color: #c0392b; font-weight: 700; }
.bm-opt__sku, .bm-opt__cond { color: var(--bm-muted); }
.bm-opt__cond i { color: var(--bm-blue-bright); }
.bm-opt__qty { width: auto; min-width: 72px; }

/* Récapitulatif (colonne droite, sticky) */
.bm-cfg__summary { position: sticky; top: 20px; }
.bm-sum__inner { background: #fff; border: 1px solid var(--bm-line); border-radius: 16px; padding: 20px; box-shadow: 0 8px 30px rgba(11,27,52,.06); }
.bm-sum__title { font-size: 1.1rem; font-weight: 800; color: var(--bm-navy); margin: 0 0 14px; }
.bm-sum__block { padding: 14px 0; border-top: 1px solid var(--bm-line); }
.bm-sum__block:first-of-type { border-top: 0; padding-top: 0; }
.bm-sum__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bm-muted); font-weight: 700; margin-bottom: 6px; }
.bm-sum__amount { font-size: 1.7rem; font-weight: 800; color: var(--bm-navy); line-height: 1.1; }
.bm-sum__per { font-size: .9rem; font-weight: 700; color: var(--bm-muted); }
.bm-sum__setup { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--bm-border, #e2e8f0); font-size: .82rem; color: var(--bm-muted); }
.bm-sum__setup strong { color: var(--bm-navy); font-weight: 700; }
.bm-sum__sub { font-size: .74rem; color: var(--bm-muted); font-weight: 600; }
.bm-sum__vat { font-size: .74rem; color: var(--bm-muted); margin: 6px 0 0; }
.bm-sum__breakdown { margin-top: 8px; font-size: .82rem; }
.bm-sum__breakdown summary { cursor: pointer; color: var(--bm-blue); font-weight: 700; }
.bm-pw__hero { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 8px; background: linear-gradient(135deg, rgba(1,145,247,.10), rgba(1,145,247,.02)); border: 1px solid rgba(1,145,247,.18); border-radius: 10px; }
.bm-pw__hero-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bm-muted); font-weight: 700; }
.bm-pw__hero-val { font-size: 1.5rem; font-weight: 800; color: var(--bm-navy); line-height: 1; }
.bm-pw__chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.bm-pw__chip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; background: #f8fafc; border: 1px solid var(--bm-border, #e2e8f0); border-radius: 8px; }
.bm-pw__chip span { font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; color: var(--bm-muted); font-weight: 600; }
.bm-pw__chip strong { font-size: .92rem; font-weight: 700; color: var(--bm-navy); }
.bm-pw__list { list-style: none; margin: 0; padding: 0; font-size: .85rem; display: flex; flex-direction: column; }
.bm-pw__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--bm-border, #eef2f6); }
.bm-pw__list li:last-child { border-bottom: 0; }
.bm-pw__list li span { color: var(--bm-muted); }
.bm-pw__list li strong { font-weight: 700; color: var(--bm-navy); }
.bm-pw__note { font-size: .72rem; color: var(--bm-muted); margin: 8px 0 0; line-height: 1.4; }
.bm-pw__note i { color: var(--bm-blue-bright); margin-right: 4px; }
.bm-deliv { list-style: none; margin: 0; padding: 0; font-size: .85rem; display: flex; flex-direction: column; gap: 4px; }
.bm-deliv li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bm-deliv li span { color: var(--bm-muted); }
.bm-deliv li strong { color: var(--bm-navy); font-weight: 700; }
.bm-deliv li.is-validation span { color: #d9700f; font-weight: 600; }
.bm-deliv li.is-validation i { margin-right: 4px; }
.bm-deliv li.is-total { margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--bm-border, #e2e8f0); }
.bm-sum__issues { border-radius: 10px; padding: 10px 12px; font-size: .82rem; margin-top: 8px; }
.bm-sum__issues ul { margin: 6px 0 0; padding-left: 18px; }
.bm-sum__issues.is-error { background: rgba(192,57,43,.08); color: #c0392b; }
.bm-sum__issues.is-warn { background: rgba(255,139,61,.1); color: #d9700f; }

/* Hébergement mensuel Boxis */
.bm-host__lead { font-size: .78rem; color: var(--bm-muted); margin: 0 0 10px; }
.bm-host__rows { display: flex; flex-direction: column; gap: 8px; }
.bm-host__row { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; }
.bm-host__row span { color: var(--bm-muted); }
.bm-host__row strong { color: var(--bm-ink); }
.bm-host__sel, .bm-host__qty { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; }
.bm-host__sel span, .bm-host__qty span { color: var(--bm-muted); font-weight: 600; }
.bm-host__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--bm-line); }
.bm-host__total strong { font-size: 1.15rem; font-weight: 800; color: var(--bm-navy); }
.bm-host__total em { font-size: .72rem; font-style: normal; color: var(--bm-muted); font-weight: 600; }
.bm-host__qty { margin-top: 12px; }
.bm-host__qty select { width: auto; min-width: 76px; display: inline-block; }
.bm-host__qty small { color: var(--bm-muted); }
.bm-host__help { font-size: .74rem; color: var(--bm-muted); margin: 8px 0 0; }
.bm-host__hint { font-size: .74rem; color: var(--bm-muted); margin: 10px 0 0; display: flex; align-items: flex-start; gap: 6px; }
.bm-host__hint i { color: var(--bm-blue-bright); margin-top: 2px; }

/* Barre d'étapes wizard (5 étapes + modal facturation) */
.bm-steps { display: flex; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; align-items: center; }
.bm-steps--5 .bm-step { flex: 1 1 0; min-width: 0; }
.bm-steps__sep { display: none; }
.bm-step { display: flex; align-items: center; gap: 8px; padding: 10px 10px; border: 1px solid var(--bm-line); border-radius: 10px; background: #fff; color: var(--bm-muted); font-size: .78rem; font-weight: 600; cursor: default; text-align: left; }
.bm-step__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-step__num { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eef2f6; color: var(--bm-muted); font-size: .78rem; font-weight: 800; }
.bm-step.is-active { border-color: var(--bm-blue-bright); background: linear-gradient(135deg, rgba(1,145,247,.08), rgba(1,145,247,.02)); color: var(--bm-navy); }
.bm-step.is-active .bm-step__num { background: var(--bm-blue-bright); color: #fff; }
.bm-step.is-done { color: var(--bm-navy); cursor: pointer; }
.bm-step.is-done .bm-step__num { background: #16a34a; color: #fff; }

.bm-cfg__panel { min-width: 0; }

/* Étape réseau / panels génériques */
.bm-net { border: 1px solid var(--bm-line); border-radius: 12px; padding: 16px 18px; background: #fff; }
.bm-net__title { font-size: 1rem; font-weight: 800; color: var(--bm-navy); margin: 0 0 4px; }
.bm-net__lead { font-size: .82rem; color: var(--bm-muted); margin: 0 0 14px; }
.bm-net__row { display: flex; flex-direction: column; gap: 5px; font-size: .84rem; margin-bottom: 12px; }
.bm-net__row span { color: var(--bm-muted); font-weight: 600; }
.bm-net__row select, .bm-net__row input, .bm-net__row textarea { border: 1px solid var(--bm-line); border-radius: 8px; padding: 9px 11px; font: inherit; color: var(--bm-ink); background: #fff; width: 100%; }
.bm-net__row small { color: var(--bm-muted); }
.bm-net__row small.is-err { color: #c0392b; }
.bm-net__help { font-size: .74rem; color: var(--bm-muted); margin: 0; }

/* DC */
.bm-dc__map { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--bm-line); height: 220px; margin-bottom: 14px; background: #0b1c2c; }
.bm-dc__stage { position: absolute; inset: 0; transition: transform .35s ease; }
.bm-dc__stage img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.bm-dc__pin { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--bm-orange); box-shadow: 0 0 0 6px rgba(255,122,0,.28); }
.bm-dc__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bm-loc-card { text-align: left; border: 1px solid var(--bm-line); border-radius: 12px; padding: 14px; background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.bm-loc-card.is-active { border-color: var(--bm-blue-bright); box-shadow: 0 0 0 2px rgba(1,145,247,.15); }
.bm-loc-card__eco { font-size: .78rem; color: #15803d; }
.bm-loc-card__ping { font-size: .78rem; color: var(--bm-muted); }

/* OS */
.bm-os__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bm-os-card { text-align: left; border: 1px solid var(--bm-line); border-radius: 12px; padding: 14px; background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.bm-os-card.is-active { border-color: var(--bm-blue-bright); box-shadow: 0 0 0 2px rgba(1,145,247,.15); }
.bm-os-card__fee { font-size: .78rem; color: var(--bm-orange); font-weight: 700; }
.bm-win { margin-top: 16px; border: 1px solid #c7d2fe; background: #f8fafc; border-radius: 12px; padding: 14px 16px; }
.bm-win__title { margin: 0 0 6px; color: var(--bm-navy); font-size: .95rem; }
.bm-win__lead { margin: 0 0 10px; font-size: .82rem; color: var(--bm-muted); }
.bm-win__fee { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 10px; }
.bm-win__ack { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; cursor: pointer; }

/* Access */
.bm-access__pw { display: flex; gap: 8px; flex-wrap: wrap; }
.bm-access__pw input { flex: 1 1 180px; }

/* Modal facturation — style VPS / OCC (image serveur, OS, qty, résumé) */
.bm-modal[hidden] { display: none !important; }
.bm-modal {
  --bm-bill-accent: #000e9c;
  --bm-bill-accent-soft: #eef2ff;
  --bm-bill-accent-border: #c7d2fe;
  --bm-bill-border: #e5e7eb;
  --bm-bill-muted: #6b7280;
  --bm-bill-text: #111827;
  --bm-bill-ok: #059669;
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
body.bm-billing-modal-open { overflow: hidden; }
.bm-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }
.bm-modal__dialog {
  position: relative; z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 1.35rem 1.4rem 1.15rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .22);
}
.bm-modal__x {
  position: absolute; top: 0.85rem; right: 0.9rem;
  width: 2rem; height: 2rem;
  border: 0; border-radius: 0.45rem;
  background: transparent;
  font-size: 1.45rem; line-height: 1;
  color: var(--bm-bill-muted);
  cursor: pointer;
}
.bm-modal__x:hover { background: #f3f4f6; color: var(--bm-bill-text); }
.bm-modal__title {
  margin: 0 2rem 0.2rem 0;
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--bm-bill-text);
  line-height: 1.25;
}
.bm-modal__lead {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--bm-bill-muted);
  line-height: 1.4;
}

.bm-bill-server,
.bm-bill-os {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  margin: 0 0 0.85rem;
  border: 1px solid var(--bm-bill-border);
  border-radius: 0.7rem;
  background: #fff;
}
.bm-bill-server { align-items: flex-start; }
.bm-bill-server__img-wrap {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.55rem;
  border: 1px solid var(--bm-bill-border);
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bm-bill-server__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.bm-bill-server__main,
.bm-bill-os__main {
  min-width: 0;
  flex: 1 1 auto;
}
.bm-bill-server__kicker,
.bm-bill-os__kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bm-bill-muted);
  margin-bottom: 0.1rem;
}
.bm-bill-server__name,
.bm-bill-os__name strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bm-bill-text);
  line-height: 1.3;
}
.bm-bill-server__meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--bm-bill-muted);
}
.bm-bill-server__specs {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0.45rem 0 0;
  border-top: 1px solid #eef0f3;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.bm-bill-server__spec {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.45rem 0.65rem;
  align-items: start;
  font-size: 0.78rem;
  line-height: 1.35;
}
.bm-bill-server__spec-k {
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bm-bill-muted);
  font-size: 0.68rem;
  padding-top: 0.1rem;
}
.bm-bill-server__spec-v {
  color: var(--bm-bill-text);
  font-weight: 550;
  word-break: break-word;
}
.bm-bill-os__mark {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--bm-bill-border);
  background: #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bm-bill-accent);
  font-size: 1.15rem;
}
.bm-bill-os__fee {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bm-bill-ok);
  line-height: 1.3;
}
.bm-bill-os__fee.is-windows { color: var(--bm-bill-accent); }
.bm-bill-os__fee i { font-size: 0.85rem; }

.bm-bill-cycles { display: flex; flex-direction: column; gap: 0.5rem; }
.bm-bill-cycles--extra { margin-top: 0.5rem; }

.bm-bill-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--bm-bill-border);
  border-radius: 0.7rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.bm-bill-card:hover {
  border-color: var(--bm-bill-accent-border);
  background: #fafafa;
}
.bm-bill-card.is-active {
  border-color: var(--bm-bill-accent);
  box-shadow: 0 0 0 1px var(--bm-bill-accent);
  background: #fff;
}

.bm-bill-radio {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 2px solid #c4c4c4;
  position: relative;
}
.bm-bill-card.is-active .bm-bill-radio { border-color: var(--bm-bill-accent); }
.bm-bill-card.is-active .bm-bill-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: var(--bm-bill-accent);
}

.bm-bill-card-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}
.bm-bill-period {
  font-size: 1rem;
  font-weight: 650;
  color: var(--bm-bill-text);
}
.bm-bill-save {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 0.3rem;
  background: var(--bm-bill-accent-soft);
  color: var(--bm-bill-accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.bm-bill-card-price {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.bm-bill-strike {
  color: var(--bm-bill-muted);
  text-decoration: line-through;
  font-size: 0.85rem;
}
.bm-bill-mo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bm-bill-text);
}
.bm-bill-card.is-active .bm-bill-mo {
  color: var(--bm-bill-accent);
}

.bm-bill-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.85rem 0 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bm-bill-accent);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}
.bm-bill-more i { font-size: 0.75rem; }

.bm-bill-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--bm-bill-border);
  border-radius: 0.7rem;
}
.bm-bill-qty__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.bm-bill-qty__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bm-bill-muted);
}
.bm-bill-qty__hint {
  font-size: 0.8rem;
  color: var(--bm-bill-muted);
  line-height: 1.35;
}
.bm-bill-qty__ctrl {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--bm-bill-border);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
  flex: 0 0 auto;
}
.bm-bill-qty__btn {
  width: 2.25rem;
  border: 0;
  background: #fff;
  color: var(--bm-bill-accent);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.bm-bill-qty__btn:hover:not(:disabled) { background: #f8fafc; }
.bm-bill-qty__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.bm-bill-qty__btn:first-child { border-right: 1px solid var(--bm-bill-border); }
.bm-bill-qty__btn:last-child { border-left: 1px solid var(--bm-bill-border); }
.bm-bill-qty__input {
  width: 2.75rem;
  border: 0;
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: var(--bm-bill-text);
  -moz-appearance: textfield;
}
.bm-bill-qty__input::-webkit-outer-spin-button,
.bm-bill-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bm-bill-qty__input:focus { outline: none; }

.bm-bill-sum {
  margin: 1rem 0 0.85rem;
  padding-top: 0.95rem;
  border-top: 1px solid #eef0f3;
}
.bm-bill-sum__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--bm-bill-text);
  padding: 0.28rem 0;
  line-height: 1.4;
}
.bm-bill-sum__line strong { font-weight: 700; }
.bm-bill-sum__line--setup {
  align-items: flex-start;
}
.bm-bill-sum__setup-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.bm-bill-sum__setup-label {
  font-weight: 650;
  color: var(--bm-bill-text);
}
.bm-bill-sum__setup-hint {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bm-bill-muted);
  line-height: 1.35;
}
.bm-bill-sum__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid #eef0f3;
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--bm-bill-text);
}
.bm-bill-sum__renew {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--bm-bill-muted);
  line-height: 1.35;
}

.bm-modal__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}
.bm-modal__actions .bm-btn {
  min-width: 7.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.55rem;
  font-weight: 700;
}
.bm-modal__actions .bm-btn--primary {
  background: var(--bm-bill-accent);
  border-color: var(--bm-bill-accent);
  color: #fff;
}
.bm-modal__actions .bm-btn--primary:hover {
  background: #000b69;
  border-color: #000b69;
  color: #fff;
  transform: none;
  box-shadow: none;
}
.bm-modal__actions .bm-btn--link {
  min-width: 0;
  padding: 0.5rem 0.35rem;
  border: 0;
  background: transparent;
  color: var(--bm-bill-accent);
  font-weight: 650;
  box-shadow: none;
}
.bm-modal__actions .bm-btn--link:hover {
  text-decoration: underline;
  background: transparent;
}
.bm-modal__actions .bm-btn--ghost {
  background: #fff;
  border: 1px solid var(--bm-bill-border);
  color: var(--bm-bill-text);
}
.bm-modal__actions .bm-btn--ghost:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

#bm-bill-status { margin-top: 0.5rem; }
#bm-bill-status .bm-order-msg { margin: 0; }

@media (max-width: 520px) {
  .bm-modal__dialog { padding: 1.15rem 1rem 1rem; border-radius: 12px; }
  .bm-bill-card { padding: 0.75rem 0.8rem; gap: 0.65rem; }
  .bm-bill-card-price { flex-direction: column; align-items: flex-end; gap: 0.15rem; }
  .bm-bill-qty { flex-wrap: wrap; }
  .bm-modal__actions { flex-direction: column-reverse; }
  .bm-modal__actions .bm-btn { width: 100%; }
  .bm-modal__actions .bm-btn--link { width: auto; text-align: center; }
}

/* Navigation entre étapes */
.bm-cfg__stepnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.bm-cfg__stepnav .bm-btn { min-width: 150px; }
.bm-cfg__stepnav--end { justify-content: flex-end; }

/* Totaux (× quantité) */
.bm-totals__row { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; padding: 3px 0; }
.bm-totals__row strong { font-weight: 800; color: var(--bm-navy); }
.bm-totals__row.is-monthly strong { color: var(--bm-orange); font-size: 1.05rem; }

/* Commande */
.bm-btn--block { display: flex; width: 100%; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; padding: 13px; font-weight: 800; }
.bm-order-status { margin-top: 10px; }
.bm-order-msg { font-size: .84rem; border-radius: 10px; padding: 9px 12px; display: flex; gap: 8px; align-items: center; }
.bm-order-msg.is-ok { background: rgba(23,166,115,.1); color: var(--bm-green); }
.bm-order-msg.is-error { background: rgba(192,57,43,.08); color: #c0392b; }
.bm-order-msg.is-progress { background: #eef2f7; color: var(--bm-muted); }

@media (max-width: 992px) {
  .bm-detail-hero__grid { grid-template-columns: 1fr; }
  .bm-cfg { grid-template-columns: 1fr; }
  .bm-cfg__summary { position: static; }
  .bm-dc__cards, .bm-os__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bm-spec-summary { grid-template-columns: 1fr; }
  .bm-detail-hero__title { font-size: 1.5rem; }
  .bm-step__label { display: none; }
  .bm-steps--5 .bm-step { justify-content: center; padding: 8px; }
}

/* Page de présentation (photo + possibilités + CTA) */
.bm-btn--lg { padding: 13px 24px; font-size: 1rem; font-weight: 800; }
.bm-detail-hero__price { display: flex; gap: 28px; flex-wrap: wrap; margin: 18px 0 4px; }
.bm-detail-hero__price-block { display: flex; flex-direction: column; }
.bm-detail-hero__from { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bm-muted); font-weight: 700; }
.bm-detail-hero__amount { font-size: 1.9rem; font-weight: 800; color: var(--bm-navy); line-height: 1.1; }
.bm-detail-hero__amount em { font-size: .85rem; font-style: normal; color: var(--bm-muted); font-weight: 600; margin-left: 2px; }
.bm-detail-hero__amount--sm { font-size: 1.3rem; color: var(--bm-ink); }
.bm-detail-hero__price-block--setup .bm-detail-hero__amount--sm { color: var(--bm-ink); }
.bm-detail-hero__note { font-size: .74rem; color: var(--bm-muted); margin-top: 2px; }
.bm-detail-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; align-items: center; }
.bm-detail-hero__cta-note { flex-basis: 100%; margin: 0; font-size: .85rem; color: var(--bm-muted); }

.bm-empty { padding: 24px 18px; color: var(--bm-muted); font-size: .95rem; line-height: 1.5; }
.bm-empty i { color: var(--bm-blue-bright); margin-right: 8px; }
.bm-empty--lg { text-align: center; padding: 48px 24px; max-width: 520px; margin: 0 auto; }
.bm-empty--lg i { display: block; font-size: 1.8rem; margin: 0 0 14px; }
.bm-empty--lg p { margin: 0 0 16px; }

.bm-possib { padding: 28px 0 72px; background: linear-gradient(180deg, #f6f8fb 0%, #eef3fb 55%, #f6f8fb 100%); }
.bm-possib__head { max-width: 640px; margin: 0 0 28px; }
.bm-possib__title { font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-weight: 800; color: var(--bm-navy); margin: 0 0 8px; letter-spacing: -.01em; }
.bm-possib__lead { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--bm-muted); }
.bm-possib__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--bm-line);
  background: rgba(255,255,255,.55);
}
.bm-possib__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 22px 20px;
  border-bottom: 1px solid var(--bm-line);
}
.bm-possib__item:nth-child(odd) { border-right: 1px solid var(--bm-line); }
.bm-possib__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(1, 145, 247, .1); color: var(--bm-blue-bright); font-size: 1.05rem;
}
.bm-possib__item--gpu .bm-possib__icon { background: rgba(124, 58, 237, .12); color: #6d28d9; }
.bm-possib__body { min-width: 0; }
.bm-possib__body h3 {
  margin: 0 0 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--bm-muted);
}
.bm-possib__fact {
  margin: 0 0 4px; font-size: 1.15rem; font-weight: 800; color: var(--bm-navy); line-height: 1.25;
}
.bm-possib__note { margin: 0; font-size: .88rem; color: var(--bm-muted); line-height: 1.45; }
.bm-possib__note + .bm-possib__note { margin-top: 2px; }
.bm-possib__foot { margin-top: 32px; text-align: center; }
.bm-possib__foot-note { margin: 12px 0 0; font-size: .85rem; color: var(--bm-muted); }

/* Hero compact (page configurateur) */
.bm-detail-hero--compact { padding: 24px 0 18px; }
.bm-detail-hero__grid--compact { grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.bm-detail-hero__media--sm { padding: 12px; }
.bm-detail-hero--compact .bm-detail-hero__title { font-size: 1.5rem; margin: 6px 0 8px; }

@media (max-width: 760px) {
  .bm-possib__grid { grid-template-columns: 1fr; }
  .bm-possib__item:nth-child(odd) { border-right: none; }
}
@media (max-width: 640px) {
  .bm-detail-hero__grid--compact { grid-template-columns: 1fr; }
}
