/* ================================================================
   reservation-flow.css — habillage du tunnel de réservation
   Palette du site : navy #0a0f1a, cuivre #B87333, or #c9a050.
   Cibles tactiles ≥ 48 px, champs à 16 px (pas de zoom iOS).
   ================================================================ */

#reservation-flow {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 4px 8px;
  font-family: var(--ff, 'Outfit', system-ui, sans-serif);
}

/* ---------- barre de progression ---------- */
.rf-bar { display: flex; gap: 6px; margin: 0 0 18px; }
.rf-seg {
  flex: 1; height: 3px; border-radius: 99px;
  background: rgba(255, 255, 255, .12);
  transition: background .18s ease;
}
.rf-seg-on { background: var(--copper, #B87333); }

/* ---------- en-tête d'étape ---------- */
.rf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rf-back, .rf-back-ph {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: none; border: none; color: var(--copper-l, #d4955e);
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0;
}
.rf-back-ph { visibility: hidden; }
.rf-etape {
  font-size: .68rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text3, #8e90a8);
}

/* ---------- titres ---------- */
.rf-q {
  font-family: var(--fs, 'Playfair Display', Georgia, serif);
  font-size: 1.5rem; font-weight: 600; line-height: 1.2;
  margin: 0 0 6px; color: var(--text, #e8e4de);
}
.rf-sub { font-size: .88rem; color: var(--text2, #b4b5cc); margin: 0 0 18px; line-height: 1.6; font-weight: 300; }
.rf-center { text-align: center; }

/* ---------- listes d'options ---------- */
.rf-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.rf-opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 62px; padding: 12px 14px; text-align: left; cursor: pointer;
  background: var(--card, #131e32); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px; color: var(--text, #e8e4de);
  font-family: inherit; transition: border-color .18s ease, background .18s ease;
}
.rf-opt:active { transform: scale(.99); }
.rf-opt.rf-on { border-color: rgba(184, 115, 51, .7); background: rgba(184, 115, 51, .1); }
.rf-ico { font-size: 1.4rem; flex: none; width: 30px; text-align: center; }
.rf-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf-txt strong { font-size: .94rem; font-weight: 600; }
.rf-txt em { font-size: .76rem; font-style: normal; color: var(--text3, #8e90a8); }
.rf-chev { color: var(--text3, #8e90a8); font-size: 1.3rem; flex: none; }

/* ---------- cartes radio ---------- */
.rf-radio { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.rf-card {
  display: flex; flex-direction: column; gap: 3px; width: 100%;
  min-height: 62px; padding: 14px 16px; text-align: left; cursor: pointer;
  background: var(--card, #131e32); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px; color: var(--text, #e8e4de); font-family: inherit;
  transition: border-color .18s ease, background .18s ease;
}
.rf-card.rf-on { border-color: rgba(184, 115, 51, .7); background: rgba(184, 115, 51, .1); }
.rf-card strong { font-size: .95rem; font-weight: 600; }
.rf-card em { font-size: .78rem; font-style: normal; color: var(--text3, #8e90a8); }

/* ---------- champs ---------- */
.rf-lab {
  display: block; font-size: .68rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--copper, #B87333); margin: 12px 0 5px;
}
.rf-in {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px; color: var(--text, #e8e4de);
  font-family: inherit; font-size: 16px; outline: none;
  color-scheme: dark; box-sizing: border-box;
  transition: border-color .18s ease;
}
.rf-in:focus { border-color: rgba(184, 115, 51, .6); }
.rf-in:not(:placeholder-shown) { border-color: rgba(61, 187, 125, .45); }
.rf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rf-hint { font-size: .76rem; color: var(--text3, #8e90a8); line-height: 1.6; margin: 8px 0 0; }

/* ---------- suggestions de commune ---------- */
.rf-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rf-sg {
  padding: 9px 14px; min-height: 40px; cursor: pointer;
  background: rgba(184, 115, 51, .08); border: 1px solid rgba(184, 115, 51, .25);
  border-radius: 99px; color: var(--copper-l, #d4955e);
  font-family: inherit; font-size: .82rem; font-weight: 600;
}
.rf-sg:active { background: rgba(184, 115, 51, .18); }

/* ---------- récapitulatif de trajet ---------- */
.rf-traj {
  background: var(--card, #131e32); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px; padding: 16px; margin-bottom: 16px;
}
.rf-pt { display: flex; align-items: flex-start; gap: 12px; }
.rf-pt em { display: block; font-size: .68rem; font-style: normal; text-transform: uppercase; letter-spacing: .12em; color: var(--text3, #8e90a8); }
.rf-pt strong { font-size: .95rem; font-weight: 600; color: var(--text, #e8e4de); }
.rf-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--copper, #B87333); flex: none; margin-top: 5px; }
.rf-dot2 { background: var(--gold, #c9a050); }
.rf-line { width: 1px; height: 18px; background: rgba(255, 255, 255, .14); margin: 4px 0 4px 4.5px; }

/* ---------- prix ---------- */
.rf-prix { text-align: center; padding: 22px 16px; margin-bottom: 16px;
  background: linear-gradient(150deg, rgba(184, 115, 51, .12), rgba(184, 115, 51, .03));
  border: 1px solid rgba(184, 115, 51, .28); border-radius: 18px; }
.rf-montant {
  display: block; font-family: var(--fs, 'Playfair Display', Georgia, serif);
  font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--copper-l, #d4955e);
}
.rf-montant small { font-size: 1.4rem; margin-left: 2px; }
.rf-devis-t {
  display: block; font-family: var(--fs, 'Playfair Display', Georgia, serif);
  font-size: 1.5rem; font-weight: 600; color: var(--copper-l, #d4955e); margin-bottom: 6px;
}
.rf-note { display: block; font-size: .78rem; color: var(--text2, #b4b5cc); margin-top: 8px; line-height: 1.6; }

/* ---------- compteur de passagers ---------- */
.rf-pax { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 0; }
.rf-pax > span { font-size: .88rem; color: var(--text2, #b4b5cc); }
.rf-stepper { display: flex; align-items: center; gap: 4px; }
.rf-stepper button {
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text, #e8e4de); font-size: 1.2rem; font-family: inherit;
}
.rf-stepper strong { min-width: 34px; text-align: center; font-size: 1.05rem; }

/* ---------- boutons ---------- */
.rf-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; margin-top: 10px; padding: 0 16px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05); color: var(--text, #e8e4de);
  font-family: inherit; font-size: .92rem; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: opacity .18s ease, transform .18s ease;
}
.rf-btn:active { transform: scale(.98); opacity: .92; }
.rf-primary { background: linear-gradient(135deg, var(--copper, #B87333), var(--gold, #c9a050)); color: #0a0f1a; border: none; }
.rf-wa { background: rgba(37, 211, 102, .1); border-color: rgba(37, 211, 102, .35); color: #25d366; }
.rf-ghost { background: transparent; }
.rf-full { margin-top: 18px; }
.rf-send { margin-top: 18px; }

/* ---------- confirmation ---------- */
.rf-ok { text-align: center; padding: 12px 0; }
.rf-check {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2rem; color: #06240f;
  background: linear-gradient(135deg, #6fd49a, #3dbb7d);
}
.rf-recap { text-align: left; background: var(--card, #131e32); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px; padding: 14px 16px; margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.rf-recap em { display: block; font-size: .66rem; font-style: normal; text-transform: uppercase; letter-spacing: .12em; color: var(--text3, #8e90a8); }
.rf-recap strong { font-size: .9rem; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .rf-seg, .rf-opt, .rf-card, .rf-in, .rf-btn { transition: none; }
  .rf-btn:active, .rf-opt:active { transform: none; }
}

/* ---------- éléments repris du prototype ---------- */

/* Raccourci CPAM en tête d'écran */
.rf-cpam {
  display: flex; align-items: center; gap: 11px;
  background: rgba(61, 187, 125, .10); border: 1px solid rgba(61, 187, 125, .42);
  border-radius: 12px; padding: 13px 14px; margin-bottom: 18px;
  text-decoration: none; color: var(--text, #e8e4de); min-height: 58px;
}
.rf-cpam-ico { font-size: 1.3rem; flex: none; }
.rf-cpam-tx { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf-cpam-tx strong { font-size: .9rem; font-weight: 600; }
.rf-cpam-tx em { font-style: normal; font-size: .76rem; color: rgba(61, 187, 125, .85); }

/* Raccourcis de destination */
.rf-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rf-q-btn {
  padding: 10px 13px; min-height: 42px; cursor: pointer;
  background: var(--card, #131e32); border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 99px; color: var(--text2, #b4b5cc);
  font-family: inherit; font-size: .8rem; font-weight: 500;
}
.rf-q-btn.rf-on {
  border-color: rgba(184, 115, 51, .7); background: rgba(184, 115, 51, .12);
  color: var(--copper-l, #d4955e); font-weight: 600;
}

/* Aller simple / aller-retour */
.rf-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rf-duo-b {
  min-height: 52px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; cursor: pointer; font-family: inherit;
  font-size: .88rem; font-weight: 600;
  background: var(--card, #131e32); border: 1px solid rgba(255, 255, 255, .10);
  color: var(--text2, #b4b5cc);
}
.rf-duo-b.rf-on {
  background: rgba(184, 115, 51, .12); border-color: rgba(184, 115, 51, .7);
  color: var(--copper-l, #d4955e);
}

/* Récapitulatif compact */
.rf-meta {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .8rem; color: var(--text3, #8e90a8);
}
.rf-meta b { color: var(--copper-l, #d4955e); }

/* Aperçu du message envoyé */
.rf-sms {
  margin-top: 18px; background: rgba(61, 187, 125, .06);
  border: 1px solid rgba(61, 187, 125, .25); border-radius: 12px; padding: 13px 15px;
}
.rf-sms-t {
  font-size: .66rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #3dbb7d; margin-bottom: 8px;
}
.rf-sms-b {
  margin: 0; font-family: inherit; font-size: .8rem; line-height: 1.65;
  color: var(--text2, #b4b5cc); white-space: pre-wrap; word-break: break-word;
}

/* En-tête d'étape avec titre centré */
#rf-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
#rf-title .rf-q { flex: 1; text-align: center; margin: 0; font-size: 1.3rem; }

/* ---------- intégration dans le mode app mobile ---------- */
.app-resa {
  margin: 18px 16px 24px;
  background: var(--card, #131e32);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 18px 16px 20px;
}
.app-resa .app-form-title {
  font-family: var(--fs, 'Playfair Display', Georgia, serif);
  font-size: 1.15rem; font-weight: 600;
  color: var(--text, #e8e4de); margin-bottom: 14px; text-align: center;
}
.app-resa #reservation-flow { padding: 0; }
