/* ============================================
   RESERVATION.CSS — Mobile-First Styles
   Tunnel de reservation multi-etapes
   ============================================ */

/* --- Page Layout --- */
.resa-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.resa-header {
  background: var(--blanc);
  border-bottom: 1px solid var(--beige-dore-light);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.resa-header__logo img {
  height: 36px;
}

.resa-header__back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gris-chaud);
  transition: color var(--transition-fast);
}

.resa-header__back:hover {
  color: var(--terracotta);
}

.resa-header__back svg {
  width: 16px;
  height: 16px;
}

.resa-main {
  flex: 1;
  padding: var(--space-md) 1.25rem var(--space-xl);
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

/* --- Stepper --- */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  padding: var(--space-md) 0;
}

.stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  flex: 1;
}

.stepper__circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-size: 1.2rem;
  background: var(--blanc);
  border: 2px solid var(--beige-dore-light);
  color: var(--gris-chaud);
  transition: all var(--transition-base);
  position: relative;
  z-index: 2;
}

.stepper__step.is-active .stepper__circle {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--blanc);
  box-shadow: 0 0 0 6px rgba(184, 112, 90, 0.15);
}

.stepper__step.is-completed .stepper__circle {
  background: var(--vert-olive);
  border-color: var(--vert-olive);
  color: var(--blanc);
}

.stepper__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gris-chaud);
  text-align: center;
  line-height: 1.3;
  display: none;
}

.stepper__step.is-active .stepper__label {
  color: var(--terracotta);
  display: block;
}

.stepper__step.is-completed .stepper__label {
  color: var(--vert-olive);
}

.stepper__line {
  flex: 1;
  height: 2px;
  background: var(--beige-dore-light);
  margin: 0 -0.5rem;
  position: relative;
  top: -12px;
  z-index: 1;
}

.stepper__line.is-active {
  background: var(--vert-olive);
}

/* --- Step Content --- */
.step {
  display: none;
  animation: stepFadeIn 0.4s ease;
}

.step.is-active {
  display: block;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step__title {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: var(--space-xs);
  color: var(--brun);
}

.step__subtitle {
  text-align: center;
  color: var(--gris-chaud);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}

/* --- Step 1: Type Selection --- */
.type-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.type-card {
  background: var(--blanc);
  border: 2px solid var(--beige-dore-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.type-card:hover {
  border-color: var(--terracotta-light);
  box-shadow: var(--shadow-soft);
}

.type-card.is-selected {
  border-color: var(--terracotta);
  background: rgba(184, 112, 90, 0.04);
  box-shadow: 0 0 0 3px rgba(184, 112, 90, 0.12);
}

.type-card__check {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-round);
  border: 2px solid var(--beige-dore-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.type-card.is-selected .type-card__check {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.type-card__check svg {
  width: 14px;
  height: 14px;
  color: var(--blanc);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.type-card.is-selected .type-card__check svg {
  opacity: 1;
}

.type-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(184, 112, 90, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.type-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--terracotta);
}

.type-card__title {
  font-family: var(--font-titre);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--brun);
  padding-right: 2.5rem;
}

.type-card__desc {
  color: var(--gris-chaud);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.type-card__price {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: rgba(138, 154, 109, 0.1);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--vert-olive);
}

.type-card__price--free {
  background: rgba(138, 154, 109, 0.1);
  color: var(--vert-olive);
}

/* --- Step 2: Calendar --- */
.calendar {
  background: var(--blanc);
  border-radius: var(--radius-md);
  border: 1px solid var(--beige-dore-light);
  overflow: hidden;
}

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--blanc-creme-alt);
  border-bottom: 1px solid var(--beige-dore-light);
}

.calendar__month {
  font-family: var(--font-titre);
  font-size: 1.05rem;
  color: var(--brun);
}

.calendar__nav {
  display: flex;
  gap: 0.5rem;
}

.calendar__nav-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blanc);
  border: 1px solid var(--beige-dore-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calendar__nav-btn:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--blanc);
}

.calendar__nav-btn svg {
  width: 16px;
  height: 16px;
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0.75rem var(--space-sm);
  border-bottom: 1px solid var(--beige-dore-light);
}

.calendar__weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gris-chaud);
}

.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: var(--space-xs) var(--space-sm) var(--space-sm);
  gap: 4px;
}

.calendar__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: none;
  color: var(--brun);
  font-weight: 500;
}

.calendar__day:hover:not(.calendar__day--disabled):not(.calendar__day--empty) {
  background: rgba(184, 112, 90, 0.1);
}

.calendar__day--today {
  font-weight: 700;
  color: var(--terracotta);
}

.calendar__day--selected {
  background: var(--terracotta) !important;
  color: var(--blanc) !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(184, 112, 90, 0.3);
}

.calendar__day--disabled {
  color: var(--beige-dore-light);
  cursor: not-allowed;
  opacity: 0.4;
}

.calendar__day--empty {
  cursor: default;
}

.calendar__day--has-slots::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: var(--radius-round);
  background: var(--vert-olive);
  position: absolute;
  bottom: 2px;
}

.calendar__day {
  position: relative;
}

/* --- Time Slots --- */
.timeslots {
  margin-top: var(--space-md);
}

.timeslots__title {
  font-family: var(--font-titre);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.timeslots__date {
  font-family: var(--font-accent);
  color: var(--terracotta);
}

.timeslots__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.timeslot {
  padding: 0.75rem;
  text-align: center;
  border: 2px solid var(--beige-dore-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brun);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--blanc);
}

.timeslot:hover {
  border-color: var(--terracotta-light);
  background: rgba(184, 112, 90, 0.04);
}

.timeslot.is-selected {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--blanc);
}

.timeslot--unavailable {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.timeslots__note {
  text-align: center;
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: var(--gris-chaud);
  font-style: italic;
}

.timeslots__fee-notice {
  text-align: center;
  margin-top: var(--space-sm);
  padding: 0.75rem;
  background: rgba(184, 112, 90, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--terracotta);
  font-weight: 600;
  display: none;
}

.timeslots__fee-notice.is-visible {
  display: block;
}

/* --- Step 3: Personal Info Form --- */
.info-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.info-form__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.info-form__note {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  background: rgba(138, 154, 109, 0.08);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--vert-olive);
}

.info-form__note-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--vert-olive);
  margin-bottom: 0.35rem;
}

.info-form__note-text {
  font-size: 0.8rem;
  color: var(--brun-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Accompanist counter */
.counter {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.counter__btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  border: 2px solid var(--beige-dore-light);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blanc);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.2rem;
  color: var(--brun);
}

.counter__btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.counter__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.counter__value {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  min-width: 2rem;
  text-align: center;
  color: var(--brun);
}

/* --- Step 4: Recap --- */
.recap {
  background: var(--blanc);
  border-radius: var(--radius-md);
  border: 1px solid var(--beige-dore-light);
  overflow: hidden;
}

.recap__header {
  padding: var(--space-md);
  background: var(--blanc-creme-alt);
  border-bottom: 1px solid var(--beige-dore-light);
  text-align: center;
}

.recap__header-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-xs);
  color: var(--terracotta);
}

.recap__header-title {
  font-family: var(--font-titre);
  font-size: 1.2rem;
  color: var(--brun);
}

.recap__body {
  padding: var(--space-md);
}

.recap__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(212, 184, 150, 0.3);
  gap: var(--space-sm);
}

.recap__row:last-child {
  border-bottom: none;
}

.recap__label {
  font-size: 0.85rem;
  color: var(--gris-chaud);
  flex-shrink: 0;
}

.recap__value {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brun);
  text-align: right;
}

.recap__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: rgba(184, 112, 90, 0.06);
  border-top: 2px solid var(--terracotta);
}

.recap__total-label {
  font-family: var(--font-titre);
  font-size: 1rem;
  color: var(--brun);
}

.recap__total-value {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  color: var(--terracotta);
}

/* --- Conditions --- */
.conditions {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--blanc);
  border-radius: var(--radius-md);
  border: 1px solid var(--beige-dore-light);
}

.conditions__title {
  font-family: var(--font-titre);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.conditions__title svg {
  width: 18px;
  height: 18px;
  color: var(--terracotta);
}

.conditions__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.conditions__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--brun-light);
  line-height: 1.5;
}

.conditions__item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--vert-olive);
  margin-top: 2px;
}

.conditions__checkbox {
  margin-top: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.conditions__checkbox-input {
  width: 20px;
  height: 20px;
  border: 2px solid var(--beige-dore-light);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: var(--blanc);
  margin-top: 2px;
}

.conditions__checkbox-input:checked {
  background: var(--terracotta);
  border-color: var(--terracotta);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' fill='%23fff'%3E%3Cpath d='M1 5l3 3L11 1' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.conditions__checkbox-label {
  font-size: 0.85rem;
  color: var(--brun-light);
  line-height: 1.5;
}

/* --- Navigation Buttons --- */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-lg);
  gap: var(--space-sm);
}

.step-nav__back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gris-chaud);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 0;
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
}

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

.step-nav__back svg {
  width: 16px;
  height: 16px;
}

.step-nav__next {
  margin-left: auto;
}

/* --- Success State --- */
.success {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  animation: stepFadeIn 0.5s ease;
}

.success__icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-round);
  background: rgba(138, 154, 109, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.success__icon svg {
  width: 40px;
  height: 40px;
  color: var(--vert-olive);
}

.success__title {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.success__text {
  color: var(--gris-chaud);
  margin-bottom: var(--space-lg);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.success__detail {
  background: var(--blanc);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  border: 1px solid var(--beige-dore-light);
  text-align: left;
}

.success__detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.success__detail-label {
  color: var(--gris-chaud);
}

.success__detail-value {
  font-weight: 600;
  color: var(--brun);
}

.success__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.success__note {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--terracotta);
  margin-top: var(--space-md);
}

/* --- Empty state for timeslots --- */
.timeslots__empty {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  color: var(--gris-chaud);
}

.timeslots__empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  opacity: 0.3;
}

.timeslots__empty-text {
  font-size: 0.9rem;
  margin-bottom: 0;
}
