/* ===== Base ===== */
.lp-reservation { max-width: 980px; margin: 0 auto; padding: 0; }
.lp-steps { display: grid; gap: 14px; }
.lp-step { display: none; }
.lp-step.is-active {
  display: block;
  border-radius: 18px;
  border: 1px solid #eee;
  background: #fff;
  box-shadow: 0 14px 35px rgba(0,0,0,.05);
  padding: 18px;
}
.lp-step h2 { margin: 0 0 10px; }

/* Progress */
.lp-progress {
  border: 1px solid #eee;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
  margin-bottom: 12px;
}
.lp-progress__bar {
  height: 10px;
  border-radius: 999px;
  background: #f2f2f2;
  overflow: hidden;
}
.lp-progress__fill { display: block; height: 100%; background: #111; width: 20%; }
.lp-progress__label { margin-top: 8px; font-size: 13px; opacity: .75; }

/* Cards (radio) */
.lp-cards { display: grid; gap: 12px; margin-top: 10px; }
.lp-cards--3 { grid-template-columns: repeat(3, 1fr); }
.lp-cards--2 { grid-template-columns: repeat(2, 1fr); }

.lp-card {
  border: 1px solid #eee;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  position: relative;
  min-height: 84px;
  display: grid;
  gap: 6px;
}
.lp-card:hover { transform: translateY(-1px); border-color: #ddd; box-shadow: 0 16px 34px rgba(0,0,0,.06); }

/* ✅ important : pas de pointer-events:none */
.lp-card input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 0; top: 0; }

.lp-card__title { font-weight: 800; }
.lp-card__desc { font-size: 13px; opacity: .75; }

.lp-card:has(input:checked) {
  border-color: #111;
  box-shadow: 0 18px 44px rgba(0,0,0,.10);
}
.lp-card:has(input:checked)::after{
  content:"✓";
  position:absolute;
  top: 12px; right: 12px;
  width: 26px; height: 26px;
  border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  background:#111; color:#fff;
  font-size: 14px;
}

/* Fields */
.lp-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 10px; }
.lp-field { display: grid; gap: 6px; }
.lp-field label { font-size: 13px; opacity: .8; }
.lp-field input, .lp-field select {
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 12px 12px;
  background: #fff;
}
.lp-field--full { grid-column: 1 / -1; }

.lp-hint { margin: 6px 0 0; font-size: 13px; opacity: .75; }

/* Bins */
.lp-bins { display: grid; gap: 12px; margin-top: 12px; }
.lp-bin--product {
  border-radius: 16px;
  border: 1px solid #eee;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
}
.lp-bin-title { font-weight: 900; margin-bottom: 10px; }
.lp-bin-body { display:flex; justify-content: space-between; align-items:center; gap: 14px; }

.lp-bin-img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid #eee;
  background: #fafafa;
  padding: 8px;
}

/* Quantity */
.lp-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid #eee;
  background: #fafafa;
}
.lp-qty-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid #e6e6e6;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: transform .12s ease;
}
.lp-qty-btn:hover { transform: translateY(-1px); }
.lp-qty-input {
  width: 76px;
  text-align: center;
  border: 1px solid #e6e6e6;
  background: #fff;
  border-radius: 14px;
  padding: 11px 8px;
  font-weight: 800;
}

/* Notes + Summary */
.lp-note {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid #eee;
  background: #fafafa;
  padding: 12px;
}
.lp-note p { margin: 0; }
#lp-neighbor-note { margin-top: 8px; opacity: .9; }

.lp-summary {
  margin-top: 12px;
  border-top: 1px dashed #eee;
  padding-top: 12px;
  display: grid;
  gap: 6px;
}
.lp-grand { font-size: 18px; padding-top: 6px; }

/* Buttons nav (desktop) */
.lp-nav { display:flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.lp-next, .lp-prev, .lp-pay {
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid #e6e6e6;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
  transition: transform .12s ease;
}
.lp-next:hover, .lp-prev:hover, .lp-pay:hover { transform: translateY(-1px); }
.lp-next[disabled], .lp-pay[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* Error */
.lp-error {
  margin-top: 12px;
  padding: 10px 12px;
  background: #ffecec;
  border: 1px solid #ffcdcd;
  border-radius: 16px;
}

/* Responsive (grilles) */
@media (max-width: 900px) {
  .lp-cards--3 { grid-template-columns: 1fr; }
  .lp-cards--2 { grid-template-columns: 1fr; }
  .lp-grid { grid-template-columns: 1fr; }
}

/* Mobile: bacs en colonne */
@media (max-width: 640px) {
  .lp-bin-body { flex-direction: column; align-items: stretch; }
  .lp-bin-img { width: 100%; height: 120px; }
  .lp-qty { width: 100%; justify-content: space-between; }
  .lp-qty-input { width: 90px; }
  .lp-nav { flex-direction: column; }
  .lp-prev, .lp-next, .lp-pay { width: 100%; }
}

/* =========================================================
   ✅ BARRE MOBILE DEDIEE (inratable)
   ========================================================= */
.lp-mobilebar{ display:none; }

@media (max-width: 768px){
  .lp-reservation{ padding-bottom: 110px !important; }

  .lp-mobilebar{
    display:flex !important;
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    z-index: 999999 !important;

    gap: 10px !important;
    align-items: stretch !important;

    background: rgba(255,255,255,.95) !important;
    border: 1px solid #e8e8e3 !important;
    border-radius: 18px !important;
    padding: 10px !important;
    box-shadow: 0 18px 50px rgba(21,28,44,.18) !important;
    backdrop-filter: blur(10px);
  }

  .lp-mobilebar button{
    flex: 1 1 0 !important;
    min-height: 46px !important;
    border-radius: 14px !important;
    border: 1px solid #e6e6e6 !important;
    background: #fff !important;
    font-weight: 900 !important;
    cursor: pointer;
  }

  .lp-mobilebar button[disabled]{ opacity:.55; cursor:not-allowed; }

  /* turquoise site */
  .lp-mobilebar .lp-mnext,
  .lp-mobilebar .lp-mpay{
    border-color: transparent !important;
    background: #31CFB5 !important;
    color: #053338 !important;
  }

  /* par défaut : on ne montre pas payer (JS l’active à l’étape 5) */
  .lp-mobilebar .lp-mpay{ display:none; }
}
