/* Page RDV — layout horizontal large */

.rdvPage {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
}

.rdvAmbient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.rdvAmbient__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
}

.rdvAmbient__orb--a {
  width: min(560px, 75vw);
  height: min(560px, 75vw);
  left: -8%;
  top: -14%;
  background: rgba(124, 92, 255, 0.18);
  animation: rdvOrbA 16s ease-in-out infinite alternate;
}

.rdvAmbient__orb--b {
  width: min(400px, 58vw);
  height: min(400px, 58vw);
  right: -4%;
  bottom: 6%;
  background: rgba(188, 166, 255, 0.09);
  animation: rdvOrbB 20s ease-in-out infinite alternate;
}

.rdvAmbient__grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

.rdvAmbient__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 95% 85% at 50% 35%, transparent 20%, rgba(7, 7, 10, 0.88) 100%);
}

@keyframes rdvOrbA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3%, 4%) scale(1.05); }
}

@keyframes rdvOrbB {
  from { transform: translate(0, 0); }
  to { transform: translate(-3%, 2%); }
}

.rdvPage main {
  position: relative;
  z-index: 1;
}

.rdvNav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 10, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rdvSection {
  padding: clamp(24px, 4vh, 48px) clamp(20px, 3vw, 40px) 80px;
}

.rdvInner {
  width: min(1320px, 100%);
  margin: 0 auto;
}

/* En-tête horizontal */
.rdvHead {
  margin-bottom: 24px;
}

.rdvHead__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.rdvHead__kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(188, 166, 255, 0.8);
}

.rdvHead__title {
  margin: 0;
  font-size: clamp(26px, 3vw + 8px, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.rdvMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rdvMeta__item {
  padding: 8px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.rdvMeta__item strong {
  color: var(--fg);
  font-weight: 700;
}

/* Carte principale — 2 colonnes larges */
.rdvBooking {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  min-height: 480px;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    rgba(7, 7, 10, 0.72);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 32px 64px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.rdvBooking.is-hidden {
  display: none;
}

.rdvBooking__picker {
  padding: clamp(22px, 3vw, 32px);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.rdvBooking__formSide {
  padding: clamp(22px, 3vw, 32px);
  background: rgba(124, 92, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.rdvPickerHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rdvPickerHead__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rdvWeekNav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rdvWeekNav__btn {
  appearance: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--stroke2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}

.rdvWeekNav__btn:hover:not(:disabled) {
  border-color: rgba(124, 92, 255, 0.55);
  background: rgba(124, 92, 255, 0.12);
}

.rdvWeekNav__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.rdvWeekNav__label {
  margin: 0;
  min-width: 140px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* Jours — ligne horizontale pleine largeur */
.rdvWeekDays {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.rdvDateBtn,
.rdvSlotBtn {
  appearance: none;
  border: 1px solid var(--stroke2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font: inherit;
  cursor: pointer;
  transition:
    border-color 180ms var(--ease),
    background 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.rdvDateBtn {
  padding: 14px 10px;
  text-align: center;
}

.rdvDateBtn__weekday {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.rdvDateBtn__day {
  display: block;
  margin: 6px 0 2px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.rdvDateBtn__month {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.rdvDateBtn:hover:not(:disabled),
.rdvSlotBtn:hover:not(:disabled) {
  border-color: rgba(124, 92, 255, 0.55);
  background: rgba(124, 92, 255, 0.1);
}

.rdvDateBtn.is-active,
.rdvSlotBtn.is-active {
  border-color: rgba(188, 166, 255, 0.75);
  background: rgba(124, 92, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.2) inset;
}

.rdvDateBtn.is-active .rdvDateBtn__weekday,
.rdvDateBtn.is-active .rdvDateBtn__month {
  color: rgba(246, 246, 248, 0.85);
}

/* Créneaux — grille large */
.rdvSlotsArea {
  flex: 1;
  min-height: 0;
}

.rdvSlotsArea.is-disabled .rdvSlots {
  opacity: 0.35;
  pointer-events: none;
}

.rdvSlotsArea__hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.rdvSlots {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.rdvSlotBtn {
  padding: 11px 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.rdvSlotBtn__badge {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 130, 130, 0.9);
}

.rdvSlotBtn.is-full {
  opacity: 0.35;
  cursor: not-allowed;
  border-style: dashed;
}

/* Récap + formulaire */
.rdvRecapBar {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.rdvRecapBar__placeholder {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.rdvRecapBar__placeholder.is-hidden,
.rdvRecapBar__selected.is-hidden {
  display: none;
}

.rdvRecapBar__selected {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rdvRecapBar__kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(188, 166, 255, 0.85);
  flex: 0 0 100%;
}

.rdvRecap {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: capitalize;
}

.rdvRecapBar__change {
  appearance: none;
  border: 1px solid var(--stroke2);
  border-radius: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.rdvRecapBar__change:hover {
  border-color: rgba(124, 92, 255, 0.5);
}

.rdvForm {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.rdvForm__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rdvForm__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rdvField {
  margin-bottom: 12px;
}

.rdvField__label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246, 246, 248, 0.5);
}

.rdvField__control {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--stroke2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.rdvField__control::placeholder {
  color: rgba(246, 246, 248, 0.28);
}

.rdvField__control:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12);
}

.rdvField__control--area {
  resize: vertical;
  min-height: 72px;
}

.rdvField__hint {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.rdvField.is-invalid .rdvField__control {
  border-color: rgba(255, 110, 110, 0.7);
}

.rdvForm__submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px 20px !important;
  font-weight: 700 !important;
}

.rdvForm__submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rdvStatus {
  margin: 10px 0 0;
  min-height: 1.3em;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.rdvStatus.is-error { color: #ff9a9a; }
.rdvStatus.is-success { color: #9be7b0; }

/* Succès */
.rdvSuccessPanel {
  padding: 48px 32px;
  text-align: center;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: rgba(7, 7, 10, 0.75);
}

.rdvSuccessPanel.is-hidden {
  display: none;
}

.rdvSuccess__icon {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.2);
  border: 1px solid rgba(124, 92, 255, 0.4);
  position: relative;
}

.rdvSuccess__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 10px;
  height: 18px;
  border: solid rgba(188, 166, 255, 0.95);
  border-width: 0 3px 3px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.rdvSuccess__title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
}

.rdvSuccess__text {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.rdvSuccess__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
  .rdvBooking {
    grid-template-columns: 1fr;
  }

  .rdvBooking__picker {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .rdvSlots {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 640px) {
  .rdvHead__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .rdvMeta__item {
    white-space: normal;
  }

  .rdvWeekDays {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .rdvDateBtn__day {
    font-size: 20px;
  }

  .rdvSlots {
    grid-template-columns: repeat(4, 1fr);
  }

  .rdvForm__row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rdvAmbient__orb--a,
  .rdvAmbient__orb--b {
    animation: none;
  }
}
