/* Même barre pour les moteurs React et DOM historiques. Les !important sont
   limités à cette présentation : ils remplacent leurs styles inline / par ID. */
.ob-steps {
  --ob-step-width: 52px;
  --ob-step-cut: 13px;
  --ob-step-overlap: 7px;
  --ob-step-height: 40px;
  --ob-step-font: 12px;
  --ob-step-padding: 20px;
  --ob-step-gap: 7px;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  min-width: 0;
  position: relative;
  /* Au-dessus des colonnes sticky, mais sous le menu global (z-index: 30).
     Remplace notamment le zIndex: 50 inline des configurateurs garage.
     Les infobulles restent dans cette couche, les modales hors de la barre. */
  z-index: 20 !important;
  overflow: visible !important;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 22%)) !important;
}
.ob-steps > .ob-step,
.ob-steps > .ob-stepwrap {
  flex: 0 0 var(--ob-step-width) !important;
  min-width: 0 !important;
  margin-left: calc(-1 * var(--ob-step-overlap)) !important;
}
.ob-steps > .ob-step:first-child,
.ob-steps > .ob-stepwrap:first-child {
  margin-left: 0 !important;
}
.ob-steps > .ob-step[aria-current="step"],
.ob-steps > .ob-stepwrap-on {
  flex: 1 1 0% !important;
}
.ob-steps .ob-step {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--ob-step-gap) !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  height: var(--ob-step-height) !important;
  min-height: var(--ob-step-height) !important;
  padding: 0 var(--ob-step-cut) 0 var(--ob-step-padding) !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: linear-gradient(180deg, rgb(255 255 255 / 26%) 0%, rgb(255 255 255 / 6%) 34%, transparent 35%), linear-gradient(180deg, #868c93 0%, #6e747b 55%, #5a5f66 100%) !important;
  font-family: inherit;
  font-size: var(--ob-step-font) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: .3px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 1px rgb(0 0 0 / 35%) !important;
  opacity: 1 !important;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--ob-step-cut)) 0, 100% 50%, calc(100% - var(--ob-step-cut)) 100%, 0 100%, var(--ob-step-cut) 50%) !important;
}
.ob-steps > .ob-step:first-child,
.ob-steps > .ob-stepwrap:first-child > .ob-step {
  clip-path: polygon(0 0, calc(100% - var(--ob-step-cut)) 0, 100% 50%, calc(100% - var(--ob-step-cut)) 100%, 0 100%) !important;
  padding-left: var(--ob-step-cut) !important;
}
.ob-steps .ob-step[aria-current="step"] {
  background: linear-gradient(180deg, rgb(255 255 255 / 30%) 0%, rgb(255 255 255 / 8%) 34%, transparent 35%), linear-gradient(180deg, #e2413f 0%, #D81F26 55%, #a01218 100%) !important;
}
.ob-steps .ob-stepwrap > .ob-step {
  width: 100% !important;
  margin: 0 !important;
}
.ob-steps .ob-step-number,
.ob-steps .ob-step-name {
  font: inherit !important;
}
.ob-steps .ob-step-number {
  display: inline !important;
  flex: 0 0 auto;
  font-weight: inherit;
}
.ob-steps .ob-step-name {
  display: none !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ob-steps .ob-step[aria-current="step"] .ob-step-name {
  display: block !important;
}
.ob-steps .ob-step:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: -5px;
  box-shadow: inset 0 0 0 3px #111;
}
@media (max-width: 650px) {
  .ob-steps {
    --ob-step-width: 31px;
    --ob-step-cut: 7px;
    --ob-step-overlap: 4px;
    --ob-step-height: 44px;
    --ob-step-font: 11px;
    --ob-step-padding: 10px;
    --ob-step-gap: 4px;
  }
  .ob-steps .ob-step::before,
  .ob-steps .ob-step::after,
  .ob-steps .ob-stepwrap::before,
  .ob-steps .ob-stepwrap::after {
    display: none !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  .ob-steps .ob-step:not([aria-current="step"]):hover {
    background: linear-gradient(180deg, rgb(255 255 255 / 30%) 0%, rgb(255 255 255 / 8%) 34%, transparent 35%), linear-gradient(180deg, #565c63 0%, #43484e 55%, #34383d 100%) !important;
  }
}

/* Navigation mobile sous les options : même emplacement pour chaque famille. */
#pvc-parcours .cs-options > .cs-options-nav,
#volet-parcours .cs-options > .cs-options-nav,
#garage-mount .pg-options-nav { display: none; }
@media (max-width: 900px) {
  #pvc-parcours .cs-options > .cs-options-nav,
  #volet-parcours .cs-options > .cs-options-nav { display: flex; justify-content: space-between; }
  #volet-parcours .cs-scene .cs-prev,
  #volet-parcours .cs-scene .cs-next { display: none; }
  #onlybaie-perspective #pvc-parcours .cs-order { scroll-margin-top: 12px; }
}
@media (max-width: 1050px) {
  #garage-mount .pg-options-nav { display: flex; }
  #garage-mount .pg-centre .pg-chev { display: none; }
}
