/* =====================================================
   KEL'ONGLES — Tunnel de réservation
   Mobile d'abord : cibles ≥ 48 px, champs à 16 px (sinon iOS zoome),
   une seule colonne, action collante en bas.
   ===================================================== */
.rv-body { background: var(--cream); color: var(--charcoal); margin: 0;
  font-family: var(--font-sans); padding-bottom: 108px; }

/* En-tête */
.rv-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--ivory); border-bottom: 1px solid rgba(166,129,63,.16); position: sticky; top: 0; z-index: 20; }
.rv-back { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; text-decoration: none; color: var(--charcoal); font-size: 20px; background: var(--cream); }
.rv-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-display); font-size: 19px; letter-spacing: 1px; color: var(--charcoal); }
.rv-brand img { border-radius: 9px; }
.rv-brand em { color: var(--rose-deep); font-style: normal; }

.rv-wrap { max-width: 620px; margin: 0 auto; padding: 22px 18px 10px; }

/* Fil d'étapes */
.rv-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; }
.rv-steps li { flex: 1; display: flex; align-items: center; gap: 7px; font-size: 12.5px;
  color: var(--text-muted); padding-top: 9px; border-top: 3px solid rgba(166,129,63,.18); }
.rv-steps li span { width: 21px; height: 21px; border-radius: 50%; background: rgba(166,129,63,.16);
  color: var(--gold-deep); display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600; }
.rv-steps li.on { color: var(--charcoal); border-top-color: var(--gold); }
.rv-steps li.on span { background: var(--gold); color: #fff; }
.rv-steps li.done span { background: var(--rose-deep); color: #fff; }

.rv-step h1 { font-family: var(--font-display); font-size: 27px; font-weight: 500; margin: 0 0 6px; }
.rv-step h2 { font-family: var(--font-display); font-size: 19px; font-weight: 500; margin: 26px 0 10px; }
.rv-lead { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; margin: 0 0 20px; }
.rv-loading { color: var(--text-muted); font-size: 14px; }
.rv-sr { position: absolute; left: -9999px; }
.rv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Cartes prestation */
.rv-cards { display: flex; flex-direction: column; gap: 10px; }
.rv-fam { font-family: var(--font-display); font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-deep); margin: 20px 0 4px; }
.rv-fam:first-child { margin-top: 0; }
.rv-card { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; text-align: left;
  background: var(--ivory); border: 1.5px solid rgba(166,129,63,.2); border-radius: 14px;
  padding: 13px 16px; cursor: pointer; font: inherit; color: var(--charcoal);
  transition: border-color .15s, transform .1s, box-shadow .15s; }
.rv-card:hover { border-color: var(--gold-light); }
.rv-card:active { transform: scale(.995); }
.rv-card.on { border-color: var(--gold); background: #fff; box-shadow: var(--shadow-soft); }
.rv-card-m { flex: 1; min-width: 0; }
.rv-card-m b { display: block; font-family: var(--font-display); font-size: 17.5px; font-weight: 500; }
.rv-card-m small { color: var(--text-muted); font-size: 13px; }
.rv-card-p { font-family: var(--font-display); font-size: 18px; color: var(--gold-deep); white-space: nowrap; }
.rv-card .rv-tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(166,129,63,.35);
  flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; }
.rv-card.on .rv-tick { background: var(--gold); border-color: var(--gold); }

/* Options (suppléments) */
.rv-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.rv-chip { min-height: 46px; padding: 10px 16px; border-radius: 26px; cursor: pointer; font: inherit; font-size: 14.5px;
  background: var(--ivory); border: 1.5px solid rgba(166,129,63,.22); color: var(--charcoal-soft); }
.rv-chip.on { background: var(--gold); border-color: var(--gold); color: #fff; }

/* Jours */
.rv-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: thin; }
.rv-day { flex: none; min-width: 62px; min-height: 68px; border-radius: 13px; cursor: pointer; font: inherit;
  background: var(--ivory); border: 1.5px solid rgba(166,129,63,.2); color: var(--charcoal);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 6px; }
.rv-day i { font-style: normal; font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.rv-day b { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.rv-day u { text-decoration: none; font-size: 10.5px; color: var(--text-muted); }
.rv-day.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.rv-day.on i, .rv-day.on u { color: rgba(255,255,255,.85); }
.rv-day.vide { opacity: .4; }

/* Créneaux */
.rv-slots { margin-top: 6px; }
.rv-part { font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-deep); margin: 16px 0 8px; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 9px; }
.rv-slot { min-height: 50px; border-radius: 12px; cursor: pointer; font: inherit; font-size: 15.5px;
  background: var(--ivory); border: 1.5px solid rgba(166,129,63,.22); color: var(--charcoal);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25; }
.rv-slot small { font-size: 11px; color: var(--text-muted); }
.rv-slot.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.rv-slot.on small { color: rgba(255,255,255,.85); }
.rv-empty { background: var(--ivory); border: 1px dashed rgba(166,129,63,.3); border-radius: 13px;
  padding: 20px 18px; text-align: center; color: var(--text-muted); font-size: 14.5px; }

/* Formulaire */
.rv-f { display: block; margin-bottom: 17px; }
.rv-f > span { display: block; font-size: 13.5px; color: var(--charcoal-soft); margin-bottom: 6px; font-weight: 500; }
.rv-f > span i { color: var(--text-muted); font-style: normal; font-weight: 400; }
.rv-f input, .rv-f textarea { width: 100%; font-family: var(--font-sans); font-size: 16px; color: var(--charcoal);
  background: var(--ivory); border: 1.5px solid rgba(166,129,63,.25); border-radius: 12px; padding: 13px 14px; }
.rv-f input:focus, .rv-f textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.rv-f input.bad, .rv-f textarea.bad { border-color: #C6584F; background: #FBEEEA; }
.rv-hint { display: block; color: var(--text-muted); font-size: 12.5px; margin-top: 5px; }
.rv-err { display: block; color: #A8443C; font-size: 12.5px; font-style: normal; margin-top: 5px; }
.rv-err-big { font-size: 14px; text-align: center; margin: 10px 0 0; }

.rv-chk { display: flex; gap: 11px; align-items: flex-start; margin: 12px 0; font-size: 13.5px;
  color: var(--charcoal-soft); line-height: 1.5; cursor: pointer; }
.rv-chk input { width: 21px; height: 21px; flex: none; margin-top: 1px; accent-color: var(--gold); }
.rv-chk b { color: var(--rose-deep); }
.rv-legal { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; margin: 16px 0 0; }
.rv-legal a { color: var(--gold-deep); }

/* Récapitulatif */
.rv-recap { background: var(--ivory); border: 1px solid rgba(166,129,63,.22); border-radius: 14px;
  padding: 15px 17px; margin: 4px 0 18px; }
.rv-recap dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: 14.5px; }
.rv-recap dt { color: var(--text-muted); }
.rv-recap dd { margin: 0; text-align: right; color: var(--charcoal); font-weight: 500; }
.rv-recap .rv-tot { font-family: var(--font-display); font-size: 19px; color: var(--gold-deep); }
.rv-recap .rv-pay { margin: 11px 0 0; padding-top: 11px; border-top: 1px dashed rgba(166,129,63,.3);
  font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* Confirmation */
.rv-done { text-align: center; padding-top: 12px; }
.rv-ok-dot { font-size: 44px; }
.rv-recap-final { text-align: left; }
.rv-ok-acts { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 20px; }
.rv-ok-acts .btn { width: 100%; justify-content: center; }
.btn-ghost { background: transparent; border: 1.5px solid rgba(166,129,63,.3); color: var(--charcoal-soft);
  padding: 13px 22px; border-radius: 12px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* Barre collante */
.rv-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(252,248,242,.97); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(166,129,63,.2); padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px; }
.rv-bar-sum { flex: 1; min-width: 0; font-size: 13.5px; color: var(--charcoal-soft); line-height: 1.35; }
.rv-bar-sum b { display: block; font-family: var(--font-display); font-size: 16px; color: var(--charcoal); }
.rv-bar .btn { min-height: 50px; padding: 0 26px; white-space: nowrap; }
.rv-bar .btn[disabled] { opacity: .45; pointer-events: none; }
.rv-bar[hidden] { display: none; }

@media (min-width: 640px) {
  .rv-wrap { padding-top: 34px; }
  .rv-step h1 { font-size: 32px; }
  .rv-ok-acts { flex-direction: row; justify-content: center; }
  .rv-ok-acts .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ⚠️ display:flex (règle d'auteur) bat l'attribut [hidden] du navigateur :
   sans ces règles, le fil d'étapes resterait visible sur l'écran de confirmation. */
.rv-steps[hidden] { display: none; }
.rv-step[hidden]  { display: none; }
.rv-sup[hidden]   { display: none; }

/* « Aucun créneau ne me convient » */
.rv-nofit { display: block; width: 100%; margin: 18px 0 4px; padding: 14px; border-radius: 12px; cursor: pointer;
  background: transparent; border: 1.5px dashed rgba(166,129,63,.35); color: var(--gold-deep);
  font: inherit; font-size: 14.5px; }
.rv-nofit:hover { background: var(--ivory); border-color: var(--gold); }
.rv-f > span i { color: var(--text-muted); font-style: normal; font-weight: 400; }
