/* ═══════════════════════════════════════════════
   AirNeuf — Funnel de réservation par service
   Design system "bk-" partagé entre les 4 pages
   /reservation-ventilation /reservation-echangeur
   /reservation-murale /reservation-secheuse
═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.bk-body {
  font-family: 'Poppins', sans-serif;
  background: #f0f4ff;
  min-height: 100vh;
  padding: 20px 14px 56px;
}

.bk-body a { color: inherit; }

/* ── Wrapper ── */
.bk-wrap { max-width: 500px; margin: 0 auto; }

/* ── Numéro de téléphone (haut de page) ── */
.bk-phone-top { text-align: center; margin-bottom: 12px; }
.bk-phone-top a {
  display: inline-flex; align-items: center; gap: 6px; font-family: 'Poppins', sans-serif;
  font-size: .88rem; font-weight: 700; color: #1565c0; text-decoration: none;
  padding: 6px 16px; border-radius: 100px; background: #eef4ff; transition: background .15s;
}
.bk-phone-top a:hover { background: #dde8ff; }

/* ── Sélecteur de langue ── */
.bk-lang-toggle { display: flex; justify-content: center; gap: 0; margin-bottom: 14px; }
.bk-lang-toggle .lang-btn {
  border: 2px solid #dde8ff; background: #fff; color: #1565c0; font-family: 'Poppins', sans-serif;
  font-size: .76rem; font-weight: 700; padding: 5px 14px; cursor: pointer; transition: background .15s, color .15s;
}
.bk-lang-toggle .lang-btn:first-child { border-radius: 100px 0 0 100px; }
.bk-lang-toggle .lang-btn:last-child  { border-radius: 0 100px 100px 0; border-left: none; }
.bk-lang-toggle .lang-btn.active { background: #1565c0; color: #fff; border-color: #1565c0; }
.bk-lang-toggle .lang-btn:not(.active):hover { background: #f0f4ff; }

/* ── Logo header ── */
.bk-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 20px; text-decoration: none;
}
.bk-logo img { height: 40px; width: auto; }
.bk-logo .wm { font-size: 1.5rem; font-weight: 800; color: #1565c0; letter-spacing: -.5px; }
.bk-logo .ac { color: #f57c00; }

/* ── Progress ── */
.bk-progress { margin-bottom: 20px; }
.bk-progress-track { height: 6px; background: #d6e4ff; border-radius: 100px; overflow: hidden; margin-bottom: 8px; }
.bk-progress-fill { height: 100%; background: linear-gradient(90deg, #1565c0, #2979ff); border-radius: 100px; transition: width .45s cubic-bezier(.4,0,.2,1); }
.bk-steps-row { display: flex; justify-content: space-between; }
.bk-step-dot { font-size: .72rem; font-weight: 600; color: #bbb; text-align: center; transition: color .3s; width: 33.33%; }
.bk-step-dot.done { color: #1565c0; }
.bk-step-dot.active { color: #1565c0; font-weight: 700; }

/* ── Card ── */
.bk-card { background: #fff; border-radius: 22px; box-shadow: 0 8px 40px rgba(21,101,192,.13); padding: 30px 22px 26px; position: relative; }

/* ── Step title ── */
.bk-title { font-size: 1.18rem; font-weight: 700; color: #1a237e; line-height: 1.3; margin-bottom: 4px; }
.bk-sub { font-size: .83rem; color: #888; margin-bottom: 22px; line-height: 1.5; }

/* ── Option cards (logement, services radio, packages) ── */
.opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.opt {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px;
  border: 2px solid #dde8ff; border-radius: 14px; cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.opt:active { transform: scale(.98); }
.opt:hover { border-color: #1565c0; background: #f5f8ff; }
.opt.sel { border-color: #1565c0; background: #e8f0fe; }
.opt input { display: none; }
.opt-ico { font-size: 1.5rem; width: 38px; text-align: center; flex-shrink: 0; line-height: 1; }
.opt-body { flex: 1; }
.opt-label { font-size: .97rem; font-weight: 600; color: #1a237e; }
.opt-desc { font-size: .76rem; color: #999; margin-top: 1px; }
.opt-price { font-size: .92rem; font-weight: 700; color: #f57c00; flex-shrink: 0; }
.opt-check { width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: border-color .15s, background .15s; }
.opt.sel .opt-check { background: #1565c0; border-color: #1565c0; }
.opt.sel .opt-check::after { content: ''; display: block; width: 8px; height: 8px; background: #fff; border-radius: 50%; }

/* ── Plage horaire (cases à cocher, multi) ── */
.slot-label { font-size: .8rem; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 24px; }
.slot-btn {
  padding: 13px 8px; border: 2px solid #dde8ff; border-radius: 12px;
  font-family: 'Poppins', sans-serif; font-size: .83rem; font-weight: 600; color: #1a237e;
  background: #fff; cursor: pointer; transition: border-color .15s, background .15s;
  text-align: center; line-height: 1.3; -webkit-tap-highlight-color: transparent;
}
.slot-btn:hover { border-color: #1565c0; background: #f5f8ff; }
.slot-btn.sel { border-color: #1565c0; background: #e8f0fe; color: #1565c0; }

/* ── Calendar (date input simplifié) ── */
.date-input-wrap { margin-bottom: 22px; }
.date-input-wrap input[type="date"] {
  width: 100%; padding: 13px 14px; border: 2px solid #dde8ff; border-radius: 12px;
  font-family: 'Poppins', sans-serif; font-size: .92rem; color: #1a237e;
  background: #fff; -webkit-appearance: none; outline: none; transition: border-color .15s;
}
.date-input-wrap input[type="date"]:focus { border-color: #1565c0; }

/* ── Form fields ── */
.frow { display: flex; gap: 12px; }
.frow .ff { flex: 1; }
.ff { margin-bottom: 14px; }
.ff label { display: block; font-size: .75rem; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.ff label .opt-facult { color: #bbb; text-transform: none; font-weight: 500; }
.ff input, .ff textarea, .ff select {
  width: 100%; padding: 12px 14px; border: 2px solid #dde8ff; border-radius: 10px;
  font-family: 'Poppins', sans-serif; font-size: .92rem; color: #1a237e; outline: none;
  transition: border-color .15s; background: #fff; -webkit-appearance: none;
}
.ff input:focus, .ff textarea:focus, .ff select:focus { border-color: #1565c0; }
.ff textarea { resize: vertical; min-height: 72px; }

.consent-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; cursor: pointer; }
.consent-row input { margin-top: 3px; flex-shrink: 0; accent-color: #1565c0; width: 16px; height: 16px; }
.consent-row span { font-size: .78rem; color: #777; line-height: 1.5; }

/* ── Étape 3 : sélection service + combos + packages ── */
.combo-box { border: 2px dashed #ffd7a8; background: #fff8ef; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.combo-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; }
.combo-row input { accent-color: #f57c00; width: 18px; height: 18px; flex-shrink: 0; }
.combo-row .combo-label { flex: 1; font-size: .87rem; font-weight: 600; color: #1a237e; }
.combo-row .combo-badge { font-size: .65rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: #f57c00; border-radius: 100px; padding: 2px 8px; flex-shrink: 0; }
.combo-row .combo-price { font-size: .87rem; font-weight: 700; color: #f57c00; flex-shrink: 0; }

.pkg-free-text { margin-top: 8px; }

/* ── Total box ── */
.total-box {
  display: flex; align-items: center; justify-content: space-between;
  background: #eef4ff; border-radius: 14px; padding: 16px 18px; margin: 18px 0 20px;
}
.total-box .tb-label { font-size: .82rem; font-weight: 700; color: #1a237e; text-transform: uppercase; letter-spacing: .04em; }
.total-box .tb-sub { font-size: .7rem; color: #999; margin-top: 2px; }
.total-box .tb-amount { font-size: 1.55rem; font-weight: 800; color: #1565c0; }

/* ── Nav buttons ── */
.bk-nav { display: flex; gap: 10px; margin-top: 4px; }
.btn-prev {
  flex: 0 0 auto; padding: 14px 18px; background: #f0f4ff; color: #1565c0; border: none;
  border-radius: 12px; font-family: 'Poppins', sans-serif; font-size: .92rem; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.btn-prev:hover { background: #dde8ff; }
.btn-next {
  flex: 1; padding: 15px 18px; background: #f57c00; color: #fff; border: none; border-radius: 12px;
  font-family: 'Poppins', sans-serif; font-size: .97rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 18px rgba(245,124,0,.32); transition: box-shadow .15s, transform .1s;
}
.btn-next:hover { box-shadow: 0 6px 24px rgba(245,124,0,.44); }
.btn-next:active { transform: scale(.98); }
.btn-submit {
  width: 100%; padding: 16px; background: #1565c0; color: #fff; border: none; border-radius: 12px;
  font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 18px rgba(21,101,192,.32); transition: box-shadow .15s, transform .1s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { box-shadow: 0 6px 24px rgba(21,101,192,.44); }
.btn-submit:active { transform: scale(.98); }
.btn-submit:disabled { background: #aaa; box-shadow: none; cursor: not-allowed; }

.bk-microcopy { text-align: center; font-size: .76rem; color: #1565c0; font-weight: 600; margin-top: 10px; }

/* ── Steps visibility ── */
.bk-step { display: none; min-height: 320px; }
.bk-step.active { display: block; }

/* ── Trust footer ── */
.bk-trust { display: flex; justify-content: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.bk-trust span { font-size: .72rem; color: #999; display: flex; align-items: center; gap: 4px; }

/* ── Section divider ── */
.sec-divider { border: none; border-top: 1px solid #eef0ff; margin: 20px 0 18px; }
.sec-title { font-size: .8rem; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }

/* ── Spinner ── */
@keyframes bk-spin { to { transform: rotate(360deg); } }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: bk-spin .7s linear infinite; display: none; }
.submitting .spinner { display: block; }
.submitting .btn-txt { display: none; }

/* ── Confirmation finale ── */
.bk-done { text-align: center; padding: 20px 0; }
.bk-done .done-ico { font-size: 3rem; margin-bottom: 14px; }
.bk-done h2 { font-size: 1.2rem; color: #1a237e; margin-bottom: 8px; }
.bk-done p { font-size: .9rem; color: #777; line-height: 1.5; }

[hidden] { display: none !important; }
