/* =================================================================== */
/*  Prise de rendez-vous en 3 écrans successifs                        */
/*  1. Coordonnées  ->  2. Le jour  ->  3. L'heure + confirmation      */
/*  Actif uniquement quand le script a ajouté .rdv-wizard au formulaire */
/* =================================================================== */
form.rdv.rdv-wizard { display: block; max-width: 640px; margin: 0 auto; }
form.rdv.rdv-wizard > .rdv-card { width: 100%; box-sizing: border-box; }
.rdv-wizard [data-wz-hide] { display: none !important; }

/* --- Indicateur d'étapes --- */
.wz-steps {
  display: flex; align-items: center; gap: 10px;
  list-style: none; margin: 0 auto 22px; padding: 0; max-width: 640px;
  counter-reset: wz;
}
.wz-steps li {
  flex: 1 1 0; display: flex; align-items: center; gap: 10px;
  font-size: .86rem; font-weight: 600; color: var(--concrete-l, #9a9a9a);
  min-width: 0;
}
.wz-steps li::before {
  counter-increment: wz; content: counter(wz);
  flex: 0 0 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--line, #e4e4e4); background: #fff;
  font-size: .85rem; font-weight: 700; color: var(--concrete-l, #9a9a9a);
  transition: background .25s, border-color .25s, color .25s;
}
.wz-steps li:not(:last-child)::after {
  content: ""; flex: 1 1 auto; height: 2px; min-width: 12px;
  background: var(--line, #e4e4e4); border-radius: 2px;
  transition: background .25s;
}
.wz-steps li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-steps li.is-on { color: var(--ink, #000); }
.wz-steps li.is-on::before { background: var(--ink, #000); border-color: var(--ink, #000); color: #fff; }
.wz-steps li.is-done { color: var(--ink, #000); cursor: pointer; }
.wz-steps li.is-done::before { content: "✓"; background: #fff; border-color: var(--ink, #000); color: var(--ink, #000); }
.wz-steps li.is-done::after { background: var(--ink, #000); }
@media (max-width: 560px) {
  .wz-steps li span { display: none; }
  .wz-steps li.is-on span { display: inline; }
}

/* --- Boutons et liens ajoutés --- */
.wz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.wz-actions .btn { flex: 1 1 auto; justify-content: center; }
.wz-back {
  appearance: none; background: none; border: 0; padding: 4px 0; margin: 0 0 14px;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--concrete, #6b6b6b);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.wz-back:hover, .wz-back:focus-visible { color: var(--ink, #000); }
.wz-note { margin: 12px 0 0; font-size: .78rem; line-height: 1.5; color: var(--concrete, #6b6b6b); }
.wz-err { margin: 12px 0 0; font-size: .86rem; font-weight: 600; color: var(--signal, #c1442a); }
.wz-err:empty { display: none; }
.wz-jour {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 10px;
  background: var(--mist, #f4f4f4); font-weight: 700;
}
.rdv-wizard h3[tabindex="-1"]:focus { outline: none; }

/* --- Transition douce entre les écrans --- */
@media (prefers-reduced-motion: no-preference) {
  .rdv-wizard .wz-anim { animation: wz-in .35s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes wz-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
}
