/* Boostr v2 — bloc « Réserver » (assistant 5 étapes sur cadran), /reserver et accueil
   Nécessite : boostr-v2.css, dial.css. Tout est scopé sous .resa-card. */
.resa-card { border-radius: var(--r-hero); }
.resa-card .glow { width: 760px; height: 760px; background: radial-gradient(circle, rgba(255, 255, 255, .14) 0%, rgba(44, 131, 255, .09) 35%, rgba(10, 10, 10, 0) 70%); }
.resa-form { position: relative; min-height: 800px; display: flex; flex-direction: column; margin: 0; }

/* Apparitions : en pause tant que le bloc n'est pas à l'écran (.is-wait posé/retiré par reserver.js) */
.resa-card.resa-rv, .resa-card .resa-rv { animation: rvUp .9s var(--ease) backwards; }
.resa-card .resa-rv-blur { animation: rvBlur 1.2s var(--ease) backwards; }
.resa-card.is-wait.resa-rv, .resa-card.is-wait .resa-rv, .resa-card.is-wait .resa-rv-blur { animation-play-state: paused; }

/* ---------- En-tête ---------- */
.resa-head { position: absolute; left: 48px; top: 44px; z-index: 3; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.resa-title-main { font-size: 52px; line-height: 1.02; letter-spacing: -.035em; }
.resa-counter { position: absolute; right: 44px; top: 50px; letter-spacing: .1em; z-index: 3; }
.resa-card .only-m { display: none; }
.resa-card .dial-btn[aria-disabled="true"] { cursor: default; }

/* ---------- Panneau d'étape ---------- */
.resa-panel { position: relative; z-index: 3; width: min(800px, calc(100% - 48px)); margin: 322px auto 0; padding-bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; opacity: 0; will-change: opacity, transform, filter; }
.resa-step-title { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -.02em; line-height: 1.1; outline: none; margin: 0; }
.resa-step { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.resa-step[hidden], .resa-contact[hidden], .resa-done[hidden] { display: none; }

/* Choix uniques : un tap = choisi + étape suivante */
.resa-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: min(660px, 100%); }
.resa-choice { position: relative; min-height: 64px; text-align: left; padding: 20px 52px 20px 24px; border-radius: 24px; font-family: var(--font-body); display: flex; flex-direction: column; justify-content: center; gap: 6px; cursor: pointer; background: rgba(255, 255, 255, .04); color: var(--white); border: 2px solid rgba(255, 255, 255, .18); -webkit-tap-highlight-color: transparent; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.resa-choice::after { content: ""; position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); box-sizing: border-box; }
.resa-choice[aria-pressed="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.resa-choice[aria-pressed="true"]::after { content: "✓"; border: 0; background: var(--blue); color: var(--white); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.resa-choice:hover, .resa-choice:focus-visible { border-color: var(--blue); box-shadow: 0 20px 44px rgba(44, 131, 255, .25); outline: none; }
.resa-choice.is-picked { animation: resaPick .25s var(--ease); }
.resa-choice .t { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }
.resa-choice .s { font-size: 14px; opacity: .75; line-height: 1.35; }
@keyframes resaPick { 0% { transform: scale(1); } 45% { transform: scale(.97); } 100% { transform: scale(1); } }

/* Étape contact */
.resa-contact { width: min(780px, 100%); display: flex; flex-direction: column; gap: 18px; }
/* Bureau : Nom | Téléphone | Email puis Agence | Ville */
.resa-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; width: 100%; text-align: left; }
.resa-field { grid-column: span 2; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--slate); text-align: left; width: 100%; min-width: 0; }
.resa-field.f-org, .resa-field.f-place { grid-column: span 3; }
.resa-lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resa-field .opt { color: var(--slate-dark); font-size: 12px; }
.resa-field .opt::before { content: "· "; }
.resa-input { height: 52px; border-radius: 26px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: var(--white); font-family: var(--font-body); font-size: 16px; width: 100%; color-scheme: dark; }
.resa-input::placeholder { color: var(--slate-dark); }
.resa-input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(44, 131, 255, .3); }
.resa-input[aria-invalid="true"] { border-color: #FF6B6B; }
.resa-err { color: #FF9A9A; font-size: 12px; }
.resa-err:empty { display: none; }
.resa-send { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.resa-submit { width: min(420px, 100%); min-height: 56px; padding: 0 28px; border-radius: 28px; border: 0; background: var(--white); color: var(--ink) !important; font-family: var(--font-body); font-weight: 600; font-size: 16px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; animation: resaGlow 2.62s ease-in-out infinite; }
.resa-submit[disabled] { cursor: progress; opacity: .8; }
.resa-wa-alt { color: var(--slate) !important; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 20px; }
.resa-wa-alt:hover { color: var(--white) !important; }
.resa-micro { margin: 0; font-size: 12px; color: var(--slate-dark); line-height: 1.4; }
.resa-card .notice { border-radius: 20px; font-size: 14px; text-align: left; width: 100%; }
.resa-card .notice a { color: var(--white); font-weight: 600; }
.resa-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Confirmation */
.resa-done { width: min(520px, 100%); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.resa-done-lead { margin: 0; font-size: 18px; color: var(--white); }
.resa-done-recap { margin: 0; font-size: 13px; color: var(--slate); line-height: 1.5; }
.resa-card.is-sent .resa-foot { visibility: hidden; }

@keyframes resaGlow {
  0%, 100% { box-shadow: 0 0 17px rgba(44, 131, 255, .375); }
  25% { box-shadow: 0 0 24px rgba(44, 131, 255, .5); }
  75% { box-shadow: 0 0 10px rgba(44, 131, 255, .25); }
}

/* ---------- Pied : récap + retour ---------- */
.resa-foot { position: relative; z-index: 3; margin-top: auto; padding: 0 48px 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.resa-recap { display: flex; gap: 8px; flex-wrap: wrap; max-width: 820px; list-style: none; margin: 0; padding: 0; }
.resa-recap li { height: 34px; padding: 0 14px; border-radius: 17px; display: flex; align-items: center; gap: 8px; font-size: 12px; border: 1px solid rgba(255, 255, 255, .22); white-space: nowrap; flex-shrink: 0; }
.resa-recap li > span:first-child { color: var(--slate-dark); }
.resa-recap li.is-empty { border-style: dashed; border-color: rgba(255, 255, 255, .14); }
.resa-recap li.is-empty > span:last-child { color: var(--slate-dark); }
.resa-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.resa-wa { color: var(--slate) !important; text-decoration: none; font-size: 13px; padding: 8px 12px; border-radius: 16px; min-height: 44px; display: inline-flex; align-items: center; }
.resa-wa:hover { color: var(--white) !important; }
.resa-wa[hidden] { display: none; }
.resa-prev { height: 48px; padding: 0 20px 0 16px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: var(--white); font-family: var(--font-body); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.resa-prev[hidden] { display: none; }

/* ---------- Tablette ---------- */
@media (max-width: 1100px) {
  .resa-foot { flex-direction: column; align-items: stretch; }
  .resa-recap { max-width: none; }
  .resa-actions { justify-content: space-between; }
}

/* ---------- Téléphone (390×844 : une étape tient sans défilement) ---------- */
@media (max-width: 860px) {
  .resa-card .only-d { display: none; }
  .resa-card .only-m { display: inline; }
  .resa-card .glow { width: 420px; height: 420px; }
  .resa-form { min-height: 750px; }
  .resa-head { left: 22px; top: 24px; gap: 6px; }
  .resa-head .mono { font-size: 10px; }
  .resa-title-main { font-size: 30px; }
  .resa-counter { display: none; }
  .resa-panel { width: calc(100% - 32px); margin-top: 234px; gap: 12px; padding-bottom: 16px; }
  .resa-step-title { font-size: 22px; }
  .resa-step { gap: 12px; }
  .resa-choices { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .resa-choices.is-short { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resa-choice { min-height: 60px; padding: 12px 44px 12px 16px; border-radius: 20px; gap: 3px; }
  .resa-choice::after { right: 14px; width: 20px; height: 20px; margin-top: -10px; }
  .resa-choice[aria-pressed="true"]::after { line-height: 20px; font-size: 11px; }
  .resa-choice .t { font-size: 17px; }
  .resa-choice .s { font-size: 12.5px; }
  .resa-choices.is-short .resa-choice { min-height: 72px; padding: 12px 34px 12px 14px; }
  .resa-choices.is-short .resa-choice::after { right: 10px; top: 14px; margin-top: 0; }
  .resa-choices.is-short .resa-choice .t { font-size: 16px; }
  .resa-contact { gap: 10px; }
  .resa-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .resa-field, .resa-field.f-org { grid-column: span 1; gap: 3px; font-size: 12px; }
  .resa-field.m-wide, .resa-field.f-place { grid-column: 1 / -1; }
  .resa-field .opt { font-size: 11px; }
  .resa-input { height: 44px; border-radius: 22px; padding: 0 16px; }
  .resa-send { gap: 2px; }
  .resa-submit { width: 100%; min-height: 52px; animation: none; box-shadow: 0 0 18px rgba(44, 131, 255, .4); }
  .resa-wa-alt { min-height: 36px; }
  .resa-micro { font-size: 11.5px; }
  .resa-foot { padding: 0 16px 16px; flex-direction: column; align-items: stretch; gap: 8px; }
  .resa-recap { flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .resa-recap::-webkit-scrollbar { display: none; }
  .resa-recap li { height: 26px; padding: 0 10px; border-radius: 13px; gap: 6px; font-size: 11px; }
  .resa-actions { justify-content: space-between; gap: 8px; min-height: 44px; }
  .resa-prev { height: 44px; padding: 0 16px 0 12px; border-radius: 22px; }
  .resa-wa { margin-left: auto; }
  /* Étape contact : Retour + récap sur une seule ligne (WhatsApp est dans le panneau) */
  .resa-card.is-contact .resa-foot { flex-direction: row-reverse; align-items: center; }
  .resa-card.is-contact .resa-recap { flex: 1; min-width: 0; }
  .resa-card.is-contact .resa-actions { flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .resa-submit, .resa-choice.is-picked { animation: none; }
  .resa-choice { transition: none; }
}
