/* ============================================
   MESDEVISES — WIZARD STEPPER CSS
   À placer dans assets/css/wizard.css
   ============================================ */

/* ── Reset & wrapper ── */
.wz *,
.wz *::before,
.wz *::after {
  box-sizing: border-box;
}

.wz {
  max-width: 620px;
  margin: 0 auto;
  font-family: inherit;
  text-align: left;
}

/* ── Panels : CACHÉ par défaut ── */
.wz .wz-panel {
  display: none !important;
}
.wz .wz-panel.visiblee,
.wz .visiblee {
  display: block !important;
  animation: wz-fadein 0.35s ease;
}

@keyframes wz-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Progress bar ── */
.wz .topbar {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 0;
}

.wz .step-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

.wz .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4);
  font-size: 18px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
}

.wz .step-num.active {
  border-color: #f5c518;
  background: #f5c518;
  color: #0f3d2a;
  cursor: default;
  box-shadow: 0 0 0 4px rgba(245,197,24,0.2);
}

.wz .step-num.okee {
  border-color: #1a7a4a;
  background: #1a7a4a;
  color: #fff;
  cursor: pointer;
}

.wz .step-num.okee:hover {
  background: #23a863;
  border-color: #23a863;
}

.wz .step-lbl {
  font-size: 13px;
  margin-top: 5px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  text-align: center;
}

.wz .step-lbl.active {
  color: #f5c518;
  font-weight: 600;
}

.wz .conn {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 20px;
  transition: background 0.4s ease;
}

.wz .conn.done {
  background: #1a7a4a;
}

/* ── Bubble question ── */
.wz .bubble-q {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.wz .bubble-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #19a389;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wz .bubble-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wz .bubble-text {
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.25);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 18px;
  font-weight: 400;
  color: #f5c518;
  line-height: 1.4;
}

/* ── Step 1 : Opération ── */
.wz .op-row {
  display: flex;
  gap: 14px;
  margin-bottom: 1rem;
}

.wz .op-card {
  flex: 1;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 20px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #0F3A36;
  text-align: center;
}

.wz .op-card:hover {
  border-color: #1a7a4a;
  background: rgba(26,122,74,0.12);
}

.wz .op-card.selected {
  border-color: #f5c518;
  background: rgba(245,197,24,0.08);
}

.wz .op-ico {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
}

.wz .op-lbl {
  font-size: 21px;
  font-weight: 400;
  color: #fff;
}

.wz .op-sub {
  font-size: 15px;
  color: #A5C4BC;
  margin-top: 4px;
}

.wz .op-card.selected .op-lbl {
  color: #f5c518;
}

/* ── Step 2 : Devise pills ── */
.wz .section-lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
}



/* Supprimer le scroll horizontal */
.wz .devise-scroll {
  overflow-x: visible;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
}

/* Grille 2 lignes */
.wz .devise-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

/* Responsive : 3 colonnes sur tablette */
@media (max-width: 768px) {
  .wz .devise-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive : 2 colonnes sur mobile */
@media (max-width: 480px) {
  .wz .devise-row {
    grid-template-columns: repeat(2, 1fr);
  }
}


.wz .devise-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  transition: all 0.2s ease;
  min-width: 80px;
}

.wz .devise-pill:hover {
  border-color: #1a7a4a;
  background: rgba(26,122,74,0.12);
}

.wz .devise-pill.selected {
  border-color: #f5c518;
  background: rgba(245,197,24,0.08);
}

.wz .dv-flag {
  font-size: 32px;
  line-height: 1;
}

.wz .dv-code {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
}

.wz .dv-rate {
  font-size: 13px;
  color: #A5C4BC;
}

.wz .devise-pill.selected .dv-code {
  color: #f5c518;
}

.wz .devise-pill.selected .dv-rate {
  color: #fff;
}

#rateHint {
  font-size: 12px;
  color: #F7C948;
  text-align: center;
  margin-bottom: 1rem;
  min-height: 18px;
}

/* ── Step 3 : Montant ── */
.wz .amt-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.3rem;
  margin-bottom: 1rem;
}

.wz .amt-lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}

.wz .amt-inp-row {
  display: flex;
  align-items: baseline;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  background: transparent;
  padding: 4px 0;
  margin-bottom: 14px;
  transition: border-color 0.2s ease;
}

.wz .amt-inp-row:focus-within {
  border-bottom-color: #f5c518;
}

.wz .amt-inp {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  outline: none;
  width: 100%;
  -moz-appearance: textfield;
}

.wz .amt-inp::-webkit-outer-spin-button,
.wz .amt-inp::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wz .amt-inp::placeholder {
  color: rgba(255,255,255,0.2);
}

.wz .amt-unit {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  white-space: nowrap;
  padding-left: 10px;
}

/* Preset buttons */
.wz .presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.wz .preset {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.15s ease;
}

.wz .preset:hover {
  border-color: #1a7a4a;
  color: #fff;
  background: rgba(26,122,74,0.2);
}

.wz .preset.active {
  border-color: #f5c518;
  color: #f5c518;
  background: rgba(245,197,24,0.08);
}

/* Result row */
.wz .result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  background: rgba(26,122,74,0.15);
  border-radius: 10px;
  border: 1px solid rgba(26,122,74,0.3);
  margin-bottom: 14px;
}

.wz .result-lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.wz .result-val {
  font-size: 20px;
  font-weight: 700;
  color: #F7C948;
}

/* Error */
.wz .err-msg {
  font-size: 12px;
  color: #ff6b6b;
  margin-top: -10px;
  margin-bottom: 10px;
  display: none;
}

/* ── Boutons principaux ── */
.wz .btn-main {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #19A389;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.1s ease;
  font-family: inherit;
}

.wz .btn-main:hover {
  background: #23a863;
}

.wz .btn-main:active {
  transform: scale(0.98);
}

/* ── Step 4 : Date & Note ── */
.wz .date-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.wz .dchip {
  padding: 7px 15px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: transparent;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.wz .dchip:hover {
  border-color: #1a7a4a;
  color: #fff;
}

.wz .dchip.selected {
  border-color: #f5c518;
  background: rgba(245,197,24,0.1);
  color: #f5c518;
  font-weight: 600;
}

.wz .date-inp {
  width: 100%;
  height: 42px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-family: inherit;
  color-scheme: dark;
}

.wz .date-inp:focus {
  outline: none;
  border-color: #f5c518;
}

.wz .note-inp {
  width: 100%;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  resize: none;
  height: 72px;
  font-family: inherit;
}

.wz .note-inp::placeholder {
  color: rgba(255,255,255,0.3);
}

.wz .note-inp:focus {
  outline: none;
  border-color: #f5c518;
}

.wz .policy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 1rem 0;
}

.wz .policy-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1a7a4a;
  cursor: pointer;
  flex-shrink: 0;
}

.wz .policy-row label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
margin-bottom:0;
}

.wz .policy-row a {
  color: #1a7a4a;
}

.wz .policy-row a:hover {
  color: #23a863;
}

/* ── Step 5 : Récap ── */
.wz .recap-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  background: rgba(255,255,255,0.03);
}

.wz .recap-head {
  background: rgba(26,122,74,0.2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.wz .recap-head-txt {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.wz .recap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wz .recap-row:last-child {
  border-bottom: none;
}

.wz .rk {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.wz .rv {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.wz .recap-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(245,197,24,0.07);
  border-top: 1px solid rgba(245,197,24,0.2);
}

.wz .rt-lbl {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.wz .rt-val {
  font-size: 24px;
  font-weight: 700;
  color: #f5c518;
}

/* WhatsApp button */
.wz .wa-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #25D366;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease, transform 0.1s ease;
  margin-bottom: 10px;
  font-family: inherit;
}

.wz .wa-btn:hover {
  background: #1ebe5d;
}

.wz .wa-btn:active {
  transform: scale(0.98);
}

.wz .edit-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  text-decoration: underline;
  margin-top: 6px;
  background: none;
  border: none;
  font-family: inherit;
}

.wz .edit-link:hover {
  color: #f5c518;
}

/* Footer note */
.wz .wz-footer-note {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 14px;
}

/* ── Responsive ── */
@media (max-width: 576px) {
  .wz .op-row {
    flex-direction: column;
  }

  .wz .topbar {
    gap: 0;
  }

  .wz .step-num {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .wz .step-lbl {
    font-size: 9px;
  }

  .wz .bubble-text {
    font-size: 13px;
  }

  .wz .amt-inp {
    font-size: 24px;
  }

  .wz .rt-val {
    font-size: 20px;
  }
}