/* ============================================================================
   reserver.css — Calendrier de réservation Velia
   Complète contact.css (qui fournit .scene, .fp-head, .field, .submit-btn,
   .success-state, .api-error, .spinner). Ici : uniquement la grille de créneaux.
   ============================================================================ */

/* ── Sélecteur de jours (bande horizontale scrollable) ────────────────────── */
.rdv-jours {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  margin-bottom: 20px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.rdv-jour {
  flex: 0 0 auto;
  min-width: 64px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: border-color .15s, background .15s, transform .1s;
}

.rdv-jour:hover:not(:disabled) { border-color: #6C63FF; }
.rdv-jour:active:not(:disabled) { transform: scale(.97); }

.rdv-jour[aria-selected="true"] {
  border-color: #6C63FF;
  background: #6C63FF;
}
.rdv-jour[aria-selected="true"] .rdv-jour-nom,
.rdv-jour[aria-selected="true"] .rdv-jour-num { color: #fff; }

.rdv-jour-nom {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 2px;
}

.rdv-jour-num {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

/* ── Grille de créneaux ───────────────────────────────────────────────────── */
.rdv-creneaux {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  min-height: 120px;
}

.rdv-creneau {
  padding: 13px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .1s;
}

.rdv-creneau:hover {
  border-color: #6C63FF;
  background: #f5f4ff;
  color: #6C63FF;
}
.rdv-creneau:active { transform: scale(.97); }

.rdv-vide {
  grid-column: 1 / -1;
  padding: 32px 16px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  background: #f9fafb;
  border: 1px dashed #e5e7eb;
  border-radius: 10px;
}

/* ── Récapitulatif du créneau choisi (étape 2) ────────────────────────────── */
.rdv-recap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
  background: #f5f4ff;
  border: 1px solid #ddd9ff;
  border-radius: 10px;
}

.rdv-recap-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 9px;
  background: #6C63FF;
  color: #fff;
}
.rdv-recap-icon svg { width: 18px; height: 18px; }

.rdv-recap > div:not(.rdv-recap-icon) { flex: 1; min-width: 0; }

.rdv-recap strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}
.rdv-recap span {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

.rdv-changer {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid #ddd9ff;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #6C63FF;
  cursor: pointer;
  transition: background .15s;
}
.rdv-changer:hover { background: #f5f4ff; }

/* ── Divers ───────────────────────────────────────────────────────────────── */
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
}

.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: #111827;
  background: #fff;
  resize: vertical;
  box-sizing: border-box;
}
.field textarea:focus {
  outline: none;
  border-color: #6C63FF;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, .12);
}

@media (max-width: 480px) {
  .rdv-creneaux { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
}
