/* ============================================================
   Startup Académie : page RÉSERVATION (reservation.html)
   Feuille propre à la page, chargée APRÈS site.css.
   Préfixe de classes : .rsv-
   Bumper ?v= dans reservation.html à chaque modification.
   ============================================================ */

/* ---------- Hero compact ---------- */
.hero-rsv {
  min-height: 0;
  padding-top: 9.5rem;
  padding-bottom: 2.5rem;
}
.hero-rsv .container {
  display: block;
  max-width: 820px;
  text-align: center;
}
.hero-rsv .hero-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: .9rem;
}
.hero-rsv .hero-subtitle {
  max-width: 620px;
  margin: 0 auto 1.6rem;
  font-size: 1.05rem;
}

/* Rangée de réassurance sous le titre */
.rsv-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem .6rem;
}
.rsv-trust span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--border);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(76,29,149,.06);
}

/* ---------- Section réservation ---------- */
.rsv-section {
  padding-top: 1rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: visible;
}
.rsv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 2.5rem;
  align-items: start;
}

/* Colonne gauche : les étapes */
.rsv-steps {
  padding: 2rem 2.25rem 2.25rem;
  border-radius: 20px;
}
.rsv-step + .rsv-step {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px dashed rgba(76,29,149,.16);
}
.rsv-step-head {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: 1.1rem;
}
.rsv-step-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 6px 16px rgba(124,58,237,.3);
  transition: background .25s, transform .25s;
}
.rsv-step.is-done .rsv-step-num {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  box-shadow: 0 6px 16px rgba(16,185,129,.3);
}
.rsv-step.is-done .rsv-step-num::before { content: "✓"; }
.rsv-step.is-done .rsv-step-num span { display: none; }
.rsv-step-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}
.rsv-step-hint {
  margin-top: .3rem;
  font-size: .88rem;
  color: var(--text-muted);
}

/* Cartes à choix (radio) : formule + créneaux */
.rsv-choice {
  position: relative;
  display: block;
  cursor: pointer;
}
.rsv-choice input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.rsv-card {
  position: relative;
  height: 100%;
  padding: 1.05rem 1.15rem;
  border-radius: 14px;
  background: rgba(255,255,255,.85);
  border: 1.5px solid var(--border);
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.rsv-choice:hover .rsv-card {
  border-color: rgba(124,58,237,.4);
  transform: translateY(-2px);
}
.rsv-choice input:focus-visible + .rsv-card {
  box-shadow: 0 0 0 3px rgba(124,58,237,.25);
}
.rsv-choice input:checked + .rsv-card {
  border-color: var(--purple);
  background: rgba(124,58,237,.05);
  box-shadow: 0 0 0 3px rgba(124,58,237,.14), 0 12px 30px rgba(76,29,149,.10);
}
/* Coche en haut à droite de la carte sélectionnée */
.rsv-card::after {
  content: "";
  position: absolute;
  top: .8rem; right: .8rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(76,29,149,.25);
  background: #fff;
  transition: all .2s;
}
.rsv-choice input:checked + .rsv-card::after {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  color: #fff;
  border-color: var(--purple);
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

/* Étape 1 : formules */
.rsv-formules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}
.rsv-formule-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: .7rem;
}
.rsv-formule-type {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: .15rem;
}
.rsv-formule-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  padding-right: 1.4rem;
}
.rsv-formule-lieu {
  font-size: .8rem;
  color: var(--text-muted);
  margin: .15rem 0 .8rem;
  line-height: 1.4;
}
.rsv-formule-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}
.rsv-formule-prix {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1;
}
.rsv-formule-prix small {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
}
.rsv-formule-prix s {
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: .8;
  margin-left: .25rem;
}
.rsv-pill {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.rsv-pill-orange {
  background: rgba(249,115,22,.13);
  border: 1px solid rgba(249,115,22,.35);
  color: #ea580c;
}
.rsv-pill-green {
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.35);
  color: #047857;
}
.rsv-pill-purple {
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.3);
  color: #6d28d9;
}

/* Étape 2 : créneaux */
.rsv-slots-empty {
  padding: 1.4rem 1.2rem;
  border-radius: 14px;
  border: 1.5px dashed rgba(76,29,149,.2);
  text-align: center;
  font-size: .9rem;
  color: var(--text-muted);
  background: rgba(255,255,255,.4);
}
.rsv-slots-group { display: none; }
.rsv-slots-group.is-active { display: block; }
.rsv-slots-lieu {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: .7rem;
}
.rsv-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: .9rem;
}
.rsv-slot-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .95rem 1.05rem;
}
.rsv-slot-day {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.15);
  color: #6d28d9;
  font-weight: 800;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1;
}
.rsv-slot-day b {
  font-size: 1.05rem;
  margin-top: .15rem;
  letter-spacing: 0;
}
.rsv-slot-info { flex: 1; min-width: 0; padding-right: 1.2rem; }
.rsv-slot-hour {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text);
}
.rsv-slot-meta {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .15rem;
}
.rsv-slot-info .rsv-pill { margin-top: .45rem; }

/* Lien discret « aucun créneau ne convient » */
.rsv-other-toggle {
  display: inline-block;
  margin-top: 1rem;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: .8rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .2s;
}
.rsv-other-toggle[hidden] { display: none; }
.rsv-other-toggle:hover { color: #7c3aed; }
.rsv-other-toggle[aria-expanded="true"] { color: #7c3aed; }
.rsv-other-toggle::after {
  content: " ▾";
  font-size: .75em;
}
.rsv-other-toggle[aria-expanded="true"]::after { content: " ▴"; }

.rsv-other {
  display: none;
  margin-top: .9rem;
}
.rsv-other.is-open { display: block; }
.rsv-other .rsv-card { padding: 1.1rem 1.2rem; }
.rsv-other-title {
  font-weight: 800;
  font-size: .98rem;
  color: var(--text);
  padding-right: 1.4rem;
}
.rsv-other-note {
  font-size: .8rem;
  color: var(--text-muted);
  margin: .3rem 0 .8rem;
  line-height: 1.5;
}
.rsv-other textarea {
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .6rem;
  padding: .65rem .8rem;
  width: 100%;
  resize: vertical;
  min-height: 74px;
  transition: border-color .2s, box-shadow .2s;
}
.rsv-other textarea:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
.rsv-other textarea::placeholder { color: rgba(92,88,114,.6); }

/* Étape 3 : coordonnées */
.rsv-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
}
.rsv-fields label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}
.rsv-fields .rsv-full { grid-column: 1 / -1; }
.rsv-fields .req { color: #ec4899; margin-left: 2px; }
.rsv-fields input,
.rsv-fields select {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .6rem;
  padding: .7rem .85rem;
  width: 100%;
  display: block;
  margin-top: .4rem;
  transition: border-color .2s, box-shadow .2s;
}
.rsv-fields select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c5872' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.2rem;
}
.rsv-fields input:focus,
.rsv-fields select:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
.rsv-fields input::placeholder { color: rgba(92,88,114,.55); }
.rsv-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* Nombre d'enfants (boutons radio en pastilles) */
.rsv-nb { margin-bottom: 1.4rem; }
.rsv-nb-label,
.rsv-parent-label,
.rsv-enfant-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .55rem;
}
.rsv-nb-choices {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.rsv-nb-choice { position: relative; cursor: pointer; }
.rsv-nb-choice input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.rsv-nb-choice span {
  display: inline-block;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,.85);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  transition: all .2s;
}
.rsv-nb-choice:hover span { border-color: rgba(124,58,237,.4); }
.rsv-nb-choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(124,58,237,.25); }
.rsv-nb-choice input:checked + span {
  border-color: var(--purple);
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  box-shadow: 0 6px 16px rgba(124,58,237,.3);
}
.rsv-nb-note {
  margin-top: .55rem;
  font-size: .78rem;
  color: var(--text-muted);
}

/* Bloc par enfant */
.rsv-enfant {
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,.55);
  margin-bottom: .9rem;
}
.rsv-enfant .rsv-fields { gap: .8rem 1rem; }
.rsv-enfant-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.rsv-enfant-label i {
  font-style: normal;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  color: #6d28d9;
  background: rgba(124,58,237,.12);
}
.rsv-parent-label { margin-top: 1.4rem; }

/* Case CGV */
.rsv-consent {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin-top: 1.25rem;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.rsv-consent input {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: .1rem;
  accent-color: #7c3aed;
}
.rsv-consent a { color: #7c3aed; text-decoration: underline; }

/* ---------- Colonne droite : récapitulatif ---------- */
.rsv-recap {
  position: sticky;
  top: 130px;
  padding: 1.6rem 1.6rem 1.5rem;
  border-radius: 20px;
}
.rsv-recap-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.rsv-recap-rows {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.rsv-recap-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .88rem;
}
.rsv-recap-row dt {
  color: var(--text-muted);
  flex-shrink: 0;
}
.rsv-recap-row dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: var(--text);
}
.rsv-recap-row dd.is-empty {
  font-weight: 500;
  color: rgba(92,88,114,.6);
  font-style: italic;
}

.rsv-recap-price {
  padding: 1.1rem 0 .4rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem .6rem;
}
.rsv-recap-amount {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.rsv-recap-unit {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-muted);
}
.rsv-recap-old {
  font-size: .9rem;
  color: var(--text-muted);
  opacity: .75;
}
.rsv-recap-badge {
  margin-left: auto;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: rgba(249,115,22,.14);
  border: 1px solid rgba(249,115,22,.35);
  color: #ea580c;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.rsv-recap-billing {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.rsv-recap-fratrie {
  margin: -.35rem 0 1rem;
  padding: .6rem .8rem;
  border-radius: 10px;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.3);
  font-size: .78rem;
  line-height: 1.45;
  color: #047857;
}
.rsv-recap-fratrie[hidden] { display: none; }
#rsv-recap-parenfant { font-weight: 500; }
#rsv-recap-parenfant[hidden] { display: none; }

.rsv-recap-features {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.35rem;
}
.rsv-recap-features li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text);
}
.rsv-recap-features .check-icon {
  margin-top: .1rem;
  background: rgba(124,58,237,.14);
  color: #6d28d9;
}

.rsv-cta {
  width: 100%;
  justify-content: center;
  padding: .95rem 1.5rem;
  font-size: 1rem;
}
.rsv-cta[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.rsv-cta-alt {
  display: none;
}
.rsv-recap.mode-autre .rsv-cta-pay { display: none; }
.rsv-recap.mode-autre .rsv-cta-alt { display: inline-flex; }
.rsv-nopay {
  display: none;
  margin-top: .85rem;
  padding: .7rem .9rem;
  border-radius: 10px;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.3);
  font-size: .8rem;
  line-height: 1.5;
  color: #047857;
  text-align: center;
}
.rsv-recap.mode-autre .rsv-nopay { display: block; }
.rsv-recap.mode-autre .rsv-secure,
.rsv-recap.mode-autre .rsv-cards { display: none; }

.rsv-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: .85rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.rsv-secure svg { width: 14px; height: 14px; flex-shrink: 0; }
.rsv-cards {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: .55rem;
}
.rsv-cards span {
  padding: .15rem .5rem;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.rsv-legal {
  margin-top: .9rem;
  font-size: .72rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}
.rsv-legal a { color: #7c3aed; text-decoration: underline; }
.rsv-status {
  margin-top: .8rem;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.2em;
}
.rsv-status.ok  { color: #047857; }
.rsv-status.err { color: #dc2626; }
.rsv-status.info { color: #6d28d9; }

/* ---------- Section « Et ensuite ? » ---------- */
.rsv-after .certif-grid { max-width: none; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.rsv-after .certif-card { padding: 2rem 1.6rem; text-align: left; }
.rsv-after .certif-icon { font-size: 2rem; }
.rsv-after .certif-card p { margin-bottom: 0; }
.rsv-after-num {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: .5rem;
}

/* ---------- Bandeau villes à venir ---------- */
.rsv-villes {
  margin-top: 2.5rem;
  padding: 1.1rem 1.5rem;
  border-radius: 14px;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.35);
  text-align: center;
  font-size: .9rem;
  color: var(--text);
}
.rsv-villes strong { color: #047857; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .rsv-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 1.75rem; }
  .rsv-formules { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .rsv-layout { grid-template-columns: 1fr; }
  .rsv-recap { position: static; }
  .rsv-after .certif-grid { grid-template-columns: 1fr; }
  .rsv-steps { padding: 1.5rem 1.35rem 1.75rem; }
}
@media (max-width: 640px) {
  .hero-rsv { padding-top: 8rem; }
  .rsv-slots { grid-template-columns: 1fr; }
  .rsv-fields { grid-template-columns: 1fr; }
  .rsv-recap { padding: 1.35rem 1.25rem; }
  .rsv-section { padding-bottom: 3.5rem; }
}

/* ---------- Modale de paiement (Stripe Checkout intégré) ---------- */
.rsv-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;            /* au-dessus du bandeau cookies (9999) et du bouton WhatsApp */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.rsv-modal.is-open { display: flex; }
.rsv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27,24,48,.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.rsv-modal-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(27,24,48,.35);
  overflow: hidden;
  animation: rsv-modal-in .25s ease both;
}
@keyframes rsv-modal-in {
  from { transform: translateY(16px) scale(.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.rsv-modal-head {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.1rem 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.rsv-modal-titles { flex: 1; min-width: 0; }
.rsv-modal-title {
  font-size: .98rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.rsv-modal-sub {
  font-size: .78rem;
  color: var(--text-muted);
  margin: .1rem 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rsv-modal-close {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s;
}
.rsv-modal-close:hover { color: var(--text); border-color: rgba(124,58,237,.4); }
.rsv-modal-body {
  flex: 1;
  overflow-y: auto;
  min-height: 220px;
  padding: .5rem .5rem 0;
}
.rsv-modal-loading {
  padding: 3rem 1rem;
  text-align: center;
  font-size: .9rem;
  color: var(--text-muted);
}
.rsv-modal-loading[hidden] { display: none; }
.rsv-modal-foot {
  margin: 0;
  padding: .75rem 1.25rem .9rem;
  border-top: 1px solid var(--border);
  font-size: .72rem;
  color: var(--text-muted);
  text-align: center;
}
body.rsv-modal-ouverte { overflow: hidden; }
@media (max-width: 640px) {
  .rsv-modal { padding: 0; align-items: flex-end; }
  .rsv-modal-box { max-height: 96vh; border-radius: 20px 20px 0 0; }
}
