.res-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 120px 20px 40px;
  position: relative;
  z-index: 1;
}

.res-card {
  width: min(720px, 100%);
  max-width: 100%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-2xl);
  padding: 26px;
  color: var(--brand-text, #2b2b2b);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
}

.res-card h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.1;
  color: var(--brand-heading, var(--brand-text, #2b2b2b));
}

.muted {
  color: color-mix(in srgb, var(--brand-text, #2b2b2b) 68%, transparent);
  line-height: 1.55;
}

.res-form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

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

.res-reveal {
  animation: resRevealIn 0.35s ease;
}

.res-step {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.res-step__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.res-step__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand-primary, #a7a287);
  color: var(--brand-button-text, #ffffff);
  font-size: 13px;
  font-weight: 700;
}

.res-step__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--brand-heading, var(--brand-text, #2b2b2b));
}

.optional-tag {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.06);
  color: color-mix(in srgb, var(--brand-text, #2b2b2b) 65%, transparent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.res-step--optional {
  background: rgba(255, 255, 255, 0.32);
}

.loyalty-prompt {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-text, #2b2b2b);
}

.removal-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.removal-fieldset legend {
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-text, #2b2b2b);
  padding: 0;
}

.choice-toggle {
  display: flex;
  gap: 10px;
}

.choice-chip {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--brand-text, #2b2b2b);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  user-select: none;
}

.choice-chip span {
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
}

.choice-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.choice-chip:has(input:checked) {
  background: var(--brand-primary, #a7a287);
  border-color: transparent;
  color: var(--brand-button-text, #ffffff);
  transform: translateY(-1px);
}

.res-form input,
.res-form select,
.res-form textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.6);
  color: var(--brand-text, #2b2b2b);
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.res-form input::placeholder,
.res-form textarea::placeholder {
  color: color-mix(in srgb, var(--brand-text, #2b2b2b) 45%, transparent);
}

.res-form input:focus,
.res-form select:focus,
.res-form textarea:focus {
  border-color: var(--brand-primary, #a7a287);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary, #a7a287) 25%, transparent);
}

.res-form textarea {
  min-height: 130px;
  resize: vertical;
}

.res-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.res-form input[type="date"] {
  color-scheme: light;
}

.res-form input[type="file"] {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.res-form input[type="file"]::file-selector-button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-right: 12px;
  background: var(--brand-primary, #a7a287);
  color: var(--brand-button-text, #ffffff);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.res-form input[type="file"]::file-selector-button:hover {
  background: color-mix(in srgb, var(--brand-primary, #a7a287) 85%, black 10%);
}

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-slots__empty {
  margin: 0;
  font-size: 13px;
  color: color-mix(in srgb, var(--brand-text, #2b2b2b) 55%, transparent);
}

.time-slot {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.55);
  color: var(--brand-text, #2b2b2b);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, color 0.15s ease;
}

.time-slot:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--brand-primary, #a7a287);
}

.time-slot--selected {
  background: var(--brand-primary, #a7a287);
  border-color: transparent;
  color: var(--brand-button-text, #ffffff);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.res-summary {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.res-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--brand-text, #2b2b2b);
}

.res-summary__row span:first-child {
  color: color-mix(in srgb, var(--brand-text, #2b2b2b) 62%, transparent);
}

.res-summary__row--total {
  padding-top: 8px;
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-heading, var(--brand-text, #2b2b2b));
}

.res-summary__row--total span:first-child {
  color: color-mix(in srgb, var(--brand-text, #2b2b2b) 78%, transparent);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hint {
  font-size: 13px;
  color: var(--brand-text, #2b2b2b);
  background: rgba(255, 255, 255, 0.4);
  border: 1px dashed rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  line-height: 1.55;
}

.tiny {
  font-size: 12px;
}

.loyalty-status {
  min-height: 18px;
}

.loyalty-status--text {
  line-height: 1.5;
  color: var(--brand-text, #2b2b2b);
}

.loyalty-badge {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), color-mix(in srgb, var(--brand-primary, #a7a287) 22%, transparent));
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--brand-text, #2b2b2b);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.loyalty-badge__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.loyalty-badge__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loyalty-badge__eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.loyalty-badge__visits {
  font-weight: 700;
  font-size: 16px;
}

.loyalty-badge__pill {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-primary, #a7a287);
  border: 1px solid transparent;
  color: var(--brand-button-text, #ffffff);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.loyalty-badge__message {
  margin: 0;
  line-height: 1.55;
  color: color-mix(in srgb, var(--brand-text, #2b2b2b) 85%, transparent);
}

#result {
  min-height: 18px;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
  color: var(--brand-text, #2b2b2b);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* .btn, .btn--primary, .btn--secondary, .btn--full : voir base.css. */

@media (max-width: 900px) {
  .res-wrap {
    padding: 112px 16px 32px;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .res-wrap {
    padding: 110px 14px 28px;
  }

  .res-card {
    padding: 18px;
    border-radius: var(--radius-xl);
  }

  .row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .res-card h1 {
    font-size: 28px;
  }

  .res-form input,
  .res-form select,
  .res-form textarea {
    padding: 13px 14px;
    font-size: 16px;
  }

  .loyalty-badge__top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .res-card {
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .res-card h1 {
    font-size: 1.9rem;
  }
}
