/* ── RDV PAGE ──────────────────────────────────────────────────── */

.rdv-page {
  padding-top: 72px;
  min-height: 100vh;
}

.rdv-layout {
  display: flex;
  flex-direction: column;
  max-width: 860px;
  margin-inline: auto;
  padding: 2.5rem 1.5rem 5rem;
  min-height: calc(100vh - 72px);
}

/* ── NAV ────────────────────────────────────────────────────────── */

.nav__back {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--primary-light);
  transition: color 150ms;
}

.nav__back:hover {
  color: var(--rust);
}

/* ── IDENTITÉ DANS LE PANNEAU CALENDRIER ────────────────────────── */

.rdv-cal-identity {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-bottom: 1.125rem;
}

.rdv-cal-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--peach);
  border: 2px solid var(--surface);
  flex-shrink: 0;
}

.rdv-cal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.rdv-cal-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
}

.rdv-cal-info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.rdv-cal-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

.rdv-cal-meta {
  font-size: .75rem;
  color: var(--primary-light);
  line-height: 1.4;
}

.rdv-cal-tz {
  font-size: .6875rem;
  color: var(--muted);
  line-height: 1.4;
}

.rdv-cal-sep {
  border: none;
  border-top: 1px solid var(--ghost);
  margin: 0 0 1.25rem;
}

/* ── BOOKING AREA ──────────────────────────────────────────────── */

.rdv-booking {
  padding: 0;
  background: transparent;
  overflow-y: visible;
}

.booking__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 100%;
  margin-inline: 0;
}

.booking-panel {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  min-height: 600px;
}

.booking-panel--right {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* ── NO DATE PLACEHOLDER ───────────────────────────────────────── */

.booking__no-date {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
  color: var(--muted);
  gap: .875rem;
  padding: 1.5rem;
}

.booking__no-date svg {
  width: 36px;
  height: 36px;
  opacity: .38;
}

.booking__no-date p {
  font-size: .875rem;
}

.booking__divider {
  border: none;
  border-top: 1px solid var(--ghost);
  margin: 1.25rem 0;
}

.slots__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: .25rem;
}

/* ── CALENDAR ──────────────────────────────────────────────────── */

.rdv-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.rdv-calendar__nav {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--ghost);
  border-radius: var(--r-sm);
  font-size: .875rem;
  color: var(--primary);
  transition: background 150ms, border-color 150ms, color 150ms;
}

.rdv-calendar__nav:hover:not(:disabled) {
  background: var(--peach);
  border-color: var(--peach);
  color: var(--ink);
}

.rdv-calendar__nav:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.rdv-calendar__month {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary);
}

.rdv-calendar__days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: .375rem;
}

.rdv-calendar__days-header span {
  text-align: center;
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--primary-light);
  padding: .25rem 0;
}

.rdv-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: none;
  color: var(--primary);
  transition: background 150ms, color 150ms;
}

.cal-day--unavailable {
  color: var(--muted);
  cursor: not-allowed;
}

.cal-day--available {
  cursor: pointer;
}

.cal-day--available:hover {
  background: var(--peach);
  color: var(--ink);
}

.cal-day--today {
  border-color: var(--peach);
}

.cal-day--selected {
  background: var(--rust) !important;
  border-color: var(--rust) !important;
  color: #fff !important;
}

/* ── TIMEZONE SELECTOR ─────────────────────────────────────────── */

.rdv-tz-selector {
  margin-bottom: 1.25rem;
}

.rdv-tz-selector .label {
  display: block;
  margin-bottom: .4rem;
}

/* ── SLOTS — colonne verticale avec scroll ─────────────────────── */

.rdv-slots {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding-right: .25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--peach) transparent;
}

.rdv-slots::-webkit-scrollbar {
  width: 4px;
}

.rdv-slots::-webkit-scrollbar-track {
  background: transparent;
}

.rdv-slots::-webkit-scrollbar-thumb {
  background: var(--peach);
  border-radius: 2px;
}

.rdv-slots__loading,
.rdv-slots__empty {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: .875rem;
  color: var(--primary-light);
}

/* Séparateur Matin / Après-midi */
.rdv-slots__period-sep {
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-light);
  padding: .5rem 0 .25rem;
  border-top: 1px solid var(--ghost);
  margin-top: .25rem;
  flex-shrink: 0;
}

.rdv-slots__period-sep:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.slot-btn {
  width: 100%;
  padding: .55rem .875rem;
  border: 1px solid var(--ghost);
  border-radius: var(--r-sm);
  background: var(--bg);
  text-align: left;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--primary);
  transition: background 150ms, border-color 150ms, color 150ms, transform 100ms;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.slot-btn:hover {
  background: var(--peach);
  border-color: var(--peach);
  color: var(--ink);
  transform: translateX(2px);
}

.slot-btn--selected {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
}

.slot-btn__paris {
  font-size: .6875rem;
  opacity: .65;
  font-weight: 400;
  letter-spacing: .04em;
  flex-shrink: 0;
}

/* ── PANEL UTILITIES ───────────────────────────────────────────── */

.rdv-panel__date {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: .875rem;
}

.rdv-panel__back {
  margin-bottom: .75rem;
}

/* ── PENDING EMAIL MESSAGE ─────────────────────────────────────── */

.booking-pending {
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.booking-pending__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--ink);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .25rem;
}

.booking-pending__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.booking-pending__text {
  font-size: .9375rem;
  color: var(--primary);
  line-height: 1.6;
  margin: 0;
}

.booking-pending__hint {
  font-size: .8125rem;
  color: var(--primary-light);
  line-height: 1.6;
  margin: 0;
}

/* ── RDV FORM ──────────────────────────────────────────────────── */

.rdv-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.form-group .label {
  display: block;
}

.rdv-form__errors {
  background: rgba(200, 98, 42, .07);
  border: 1px solid rgba(200, 98, 42, .25);
  border-radius: var(--r-sm);
  padding: .875rem 1.125rem;
  font-size: .8125rem;
  color: var(--rust-dark);
}

.rdv-form__errors ul {
  padding-left: 1rem;
  margin: 0;
}

.rdv-form__errors li + li {
  margin-top: .25rem;
}

/* ── CONFIRMATION PAGE ─────────────────────────────────────────── */

.rdv-confirm {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

.rdv-confirm__check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--peach);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--ink);
}

.rdv-confirm__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  margin-bottom: .75rem;
}

.rdv-confirm__sub {
  font-size: .9375rem;
  color: var(--primary-light);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.rdv-confirm__card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  margin-bottom: 2.5rem;
}

.rdv-confirm__row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: .9375rem;
}

.rdv-confirm__row-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.rdv-confirm__row-body strong {
  display: block;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: .1rem;
}

.rdv-confirm__row-body span {
  font-size: .8125rem;
  color: var(--primary-light);
}

.rdv-confirm__meet-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--rust);
  color: #fff;
  padding: .5rem 1.25rem;
  border-radius: var(--r-sm);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 150ms, transform 100ms;
}

.rdv-confirm__meet-link:hover {
  background: var(--rust-dark);
  transform: translateY(-1px);
}

/* ── FORM INPUTS ───────────────────────────────────────────────── */

.form-input {
  width: 100%;
  padding: .65rem .875rem;
  background: var(--bg);
  border: 1px solid var(--ghost);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--primary);
  transition: border-color 150ms, box-shadow 150ms;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--peach);
  box-shadow: 0 0 0 3px rgba(196, 168, 130, .15);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b5a48' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.form-textarea {
  width: 100%;
  padding: .65rem .875rem;
  background: var(--bg);
  border: 1px solid var(--ghost);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--primary);
  resize: vertical;
  min-height: 80px;
  transition: border-color 150ms, box-shadow 150ms;
}

.form-textarea::placeholder {
  color: var(--muted);
}

.form-textarea:focus {
  outline: none;
  border-color: var(--peach);
  box-shadow: 0 0 0 3px rgba(196, 168, 130, .15);
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .rdv-layout {
    padding: 1.5rem 1rem 3rem;
  }
}

@media (max-width: 600px) {
  .booking__inner {
    grid-template-columns: 1fr;
  }

  .rdv-slots {
    max-height: 220px;
  }
}

