/* ==========================================================================
   Formulaire « Nouvelle commande » en étapes avec aperçu (rendu « glass » uniquement)
   Classes : .bc-wiz (racine d'une NOUVELLE commande), .bc-step (étape), .bc-wiz-only (éléments des étapes), .bc-wiz-classic (ancien bas de formulaire)
   ========================================================================== */
.bc-wiz-only { display: none; }
html[data-ui="glass"] .bc-wiz .bc-wiz-only { display: block; }
html[data-ui="glass"] .bc-wiz .bc-wiz-classic { display: none !important; }
html[data-ui="glass"] .bc-wiz .bc-step:not(.is-current) { display: none; }
html[data-ui="glass"] .bc-wiz .bc-step.is-current { animation: bc-step-in .35s var(--bc-ease); }
@keyframes bc-step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Contenu centré, sans la colonne de progression */
html[data-ui="glass"] .bc-wiz .row > .col-lg-8 { flex: 0 0 100%; max-width: 760px; margin-inline: auto; }
html[data-ui="glass"] .bc-wiz .progress.d-lg-none, html[data-ui="glass"] .bc-wiz .d-lg-none.pt-3.mb-2 { display: none !important; }
html[data-ui="glass"] .bc-wiz .bc-step.card { border-radius: var(--bc-r-xl); }
html[data-ui="glass"] .bc-wiz .bc-step.card > h2.h4 { font-size: 1.25rem; }

/* Indicateur d'étapes */
html[data-ui="glass"] .bc-wiz .bc-stepper { margin: 0 0 1.6rem; }
.bc-stepper ol { list-style: none; display: flex; justify-content: space-between; gap: .4rem; margin: 0; padding: 0; position: relative; z-index: 1; }
.bc-stepper-item { flex: 1 1 0; display: flex; justify-content: center; }
.bc-stepper-btn { display: flex; flex-direction: column; align-items: center; gap: .35rem; border: 0; background: transparent; padding: .2rem .3rem; color: var(--bc-ink-3); font-weight: 700; font-size: .78rem; min-height: 44px; }
.bc-stepper-btn:disabled { cursor: default; }
.bc-stepper-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: .9rem; font-weight: 800; background: var(--bc-surface); border: 2px solid var(--bc-line); color: var(--bc-ink-3);
  transition: all .3s var(--bc-spring); }
.bc-stepper-item.is-current .bc-stepper-num { background: linear-gradient(180deg, #ea4a24, #c93a17); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(201, 58, 23, .3); transform: scale(1.08); }
.bc-stepper-item.is-done .bc-stepper-num { background: var(--bc-brand-100); border-color: var(--bc-brand-300); color: var(--bc-brand-text); }
.bc-stepper-item.is-current .bc-stepper-btn, .bc-stepper-item.is-done .bc-stepper-btn { color: var(--bc-ink); }
.bc-stepper-item.is-done .bc-stepper-btn:hover .bc-stepper-num { transform: scale(1.08); }
.bc-stepper-bar { position: relative; height: 4px; margin: -34px 8% 30px; border-radius: 99px; background: var(--bc-line); z-index: 0; }
.bc-stepper-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bc-amber), var(--bc-brand-500)); transition: width .4s var(--bc-ease); }

/* Navigation */
html[data-ui="glass"] .bc-wiz .bc-wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding-top: .4rem; }
html[data-ui="glass"] .bc-wiz .bc-wiz-nav .btn { min-height: 48px; }

/* Aperçu */
.bc-preview-intro { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.2rem; padding: .8rem 1rem; border-radius: var(--bc-r-m); background: var(--bc-brand-50); border: 1px solid var(--bc-brand-100); color: var(--bc-ink); font-weight: 600; }
.bc-preview-intro i { color: var(--bc-brand-500); font-size: 1.2rem; }
.bc-preview-grid { display: grid; grid-template-columns: minmax(250px, 300px) 1fr; gap: 1.3rem; align-items: start; }
.bc-preview-card { pointer-events: none; }
.bc-preview-card:hover { transform: none; }
.bc-preview-recap { display: grid; gap: .9rem; }
.bc-preview-recap section { padding: 1rem 1.1rem; border-radius: var(--bc-r-l); background: var(--bc-surface); border: 1px solid var(--bc-line); box-shadow: var(--bc-shadow-card); }
.bc-preview-recap header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.bc-preview-recap h4 { margin: 0; font-size: .95rem; font-weight: 800; color: var(--bc-ink); }
.bc-link { border: 0; background: transparent; padding: .2rem .5rem; border-radius: 99px; color: var(--bc-brand-text); font-weight: 700; font-size: .85rem; }
.bc-link:hover { background: var(--bc-brand-50); }
.bc-preview-recap dl { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; margin: 0; }
.bc-preview-recap dl > div { min-width: 0; }
.bc-preview-recap dl .bc-wide { grid-column: 1 / -1; }
.bc-preview-recap dt { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bc-ink-3); }
.bc-preview-recap dd { margin: 0; font-weight: 600; color: var(--bc-ink); overflow-wrap: anywhere; }
.bc-preview-recap dd small { color: var(--bc-ink-3); font-weight: 500; }
.bc-wrap { white-space: pre-line; }
.bc-preview-next { list-style: none; margin: 1.3rem 0 1.4rem; padding: 0; display: grid; gap: .6rem; }
.bc-preview-next li { display: flex; align-items: flex-start; gap: .7rem; color: var(--bc-ink-2); }
.bc-preview-next i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bc-brand-50); color: var(--bc-brand-500); }
.bc-preview-next b { color: var(--bc-ink); }

@media (max-width: 767.98px) {
  .bc-preview-grid { grid-template-columns: 1fr; }
  .bc-preview-card { max-width: 340px; margin-inline: auto; width: 100%; }
  .bc-preview-recap dl { grid-template-columns: 1fr; }
  .bc-stepper-label { font-size: .7rem; }
  .bc-stepper-bar { margin-inline: 12%; }
}

/* Adresse (URL) tronquée sur une seule ligne ; l'adresse complète reste dans l'infobulle */
.bc-url { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* ---------- Ajout de photo avec aperçu ---------- */
.bc-photo-help { display: flex; align-items: flex-start; gap: .5rem; margin: 0 0 1rem; color: var(--bc-ink-2, #5b4d46); font-size: .9rem; }
.bc-photo-help i { color: var(--bc-brand-500, #fd5631); margin-top: .1rem; }
.bc-photo { position: relative; }
.bc-photo-drop { display: grid; justify-items: center; gap: .35rem; padding: 2rem 1rem; text-align: center; border: 2px dashed var(--bc-brand-300, #ff9b80); border-radius: var(--bc-r-l, 18px);
  background: var(--bc-brand-50, #fff3ef); color: var(--bc-ink-2, #5b4d46); transition: background .2s, border-color .2s, transform .25s var(--bc-spring, ease); }
.bc-photo:hover .bc-photo-drop { background: var(--bc-brand-100, #ffe2d9); border-color: var(--bc-brand-500, #fd5631); }
.bc-photo-drop strong { color: var(--bc-ink, #1d1512); font-size: 1.05rem; }
.bc-photo-drop span:last-child { font-size: .85rem; }
.bc-photo-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--bc-brand-500, #fd5631); font-size: 1.6rem; box-shadow: var(--bc-shadow-card, 0 1px 4px rgba(0,0,0,.1)); }
/* Le champ fichier recouvre la zone : clic et glisser-déposer natifs ; avec une photo il reste en retrait (bouton « Remplacer ») */
.bc-photo-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.bc-photo.has-photo .bc-photo-input { inset: auto; width: 1px; height: 1px; pointer-events: none; }
.bc-photo-preview { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 1rem; align-items: center; padding: .8rem; border-radius: var(--bc-r-l, 18px);
  background: var(--bc-surface, #fff); border: 1px solid var(--bc-line, rgba(0,0,0,.1)); box-shadow: var(--bc-shadow-card, 0 1px 4px rgba(0,0,0,.1)); }
.bc-photo-preview img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: var(--bc-r-m, 14px); background: #fff; border: 1px solid var(--bc-line, rgba(0,0,0,.1)); }
.bc-photo-meta { display: grid; gap: .25rem; min-width: 0; }
.bc-photo-meta b { color: var(--bc-ink, #1d1512); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-photo-meta small { color: var(--bc-ink-3, #766860); font-weight: 600; }
.bc-photo-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
@media (max-width: 575.98px) { .bc-photo-preview { grid-template-columns: 1fr; } }
