/* =========================================================================
   RÉSERVATION EN LIGNE — étapes, calendrier, stocks, récapitulatif
   =========================================================================
   La fenêtre se parcourt en quatre temps : quand → quoi → qui → combien.
   Le pied de fenêtre ne défile pas : le montant et l'action restent sous les
   yeux, y compris sur un écran de 375 px.

   Jetons, couleurs et courbes viennent de base.css. Aucune valeur en dur.
   ========================================================================= */

/* ---- Fil des étapes ---------------------------------------------------- */
.steps {
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0 clamp(1.1rem, 1rem + 1vw, 2rem) 0.9rem;
  list-style: none;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.steps__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
/* Barre segmentée : même langage visuel que le carrousel « Sur le terrain ». */
.steps__item::before {
  content: '';
  height: 3px;
  border-radius: 999px;
  background: var(--grey-300);
  transition: background 260ms var(--ease);
}
.steps__item[data-state='done']::before,
.steps__item[data-state='current']::before { background: var(--orange); }
.steps__item[data-state='current'] { color: var(--ink); }

/* Une étape déjà franchie se reprend d'un clic : c'est un bouton, mais il doit
   rester un libellé d'étape, pas un bouton de plus dans la fenêtre. */
.steps__label--back {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
}
.steps__label--back:hover,
.steps__label--back:focus-visible { color: var(--orange); text-decoration: underline; }

@media (max-width: 560px) {
  /* Quatre libellés ne tiennent pas sur un téléphone : on garde les segments,
     seul le libellé de l'étape courante reste écrit. */
  .steps__item:not([data-state='current']) .steps__label { display: none; }
}

.step__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-transform: uppercase;
}

/* ---- Pied de fenêtre --------------------------------------------------- */
.sheet__foot {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem clamp(1.1rem, 1rem + 1vw, 2rem);
  padding-bottom: max(0.9rem, env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--line);
}
/* `.btn` pose `display: inline-flex`, qui l'emporte sur le `display: none`
   du navigateur pour l'attribut `hidden` : un bouton masqué en JavaScript
   resterait visible. On rend `hidden` prioritaire. */
.btn[hidden] { display: none; }

.sheet__total {
  flex: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.1;
}
.sheet__total span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
}
/* « Continuer vers le paiement sécurisé » est long : sous 640 px il ne tient
   pas à côté du montant sans se casser en trois lignes. On empile plutôt :
   montant et retour sur une ligne, action pleine largeur en dessous. */
@media (max-width: 640px) {
  .sheet__foot { flex-wrap: wrap; row-gap: 0.7rem; }
  .sheet__foot .btn--lg { flex: 1 0 100%; order: 3; }
  .sheet__total { font-size: var(--step-0); }
  .sheet__total span { display: inline; margin-left: 0.4rem; }
}

/* ---- Calendrier -------------------------------------------------------- */
.calendar { margin-bottom: 1.4rem; }
.date-layout { display: grid; gap: 1.4rem; align-items: start; }
.date-layout > * { min-width: 0; }
.date-layout > .fieldset { margin: 0; }
.date-layout .calendar { margin-bottom: 0; }
.date-layout .calendar__day { aspect-ratio: auto; }
.booking:has(.step[data-step='dates']:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) {
  .date-layout { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
  .date-layout > .fieldset .slot-row { grid-template-columns: 1fr; }
}
.manage__actions .range-block { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.manage__actions .range-pill {
  display: flex; flex-direction: column; gap: 0.3rem; padding: 0.7rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); text-align: left; cursor: pointer;
}
.manage__actions .range-pill[aria-pressed='true'] { border-color: var(--orange); }
.calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.calendar__month {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-transform: uppercase;
}
.calendar__nav {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.calendar__nav:hover:not(:disabled) { background: var(--grey-100); border-color: var(--grey-300); }
.calendar__nav:disabled { opacity: 0.35; cursor: not-allowed; }

.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar__dow {
  padding-bottom: 0.3rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.calendar__day {
  aspect-ratio: 1;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.calendar__day:hover:not(:disabled) { border-color: var(--orange); }
.calendar__day[aria-pressed='true'] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  font-weight: 700;
}
.calendar__day:disabled { background: transparent; color: var(--grey-300); cursor: not-allowed; }
.calendar__day--empty { visibility: hidden; }

/* ---- Créneaux ---------------------------------------------------------- */
.slot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
@media (max-width: 420px) { .slot-row { grid-template-columns: 1fr; } }

.slot-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}
.slot-card:hover:not(:disabled) { border-color: var(--orange); }
.slot-card[aria-pressed='true'] {
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: inset 0 0 0 1px var(--orange);
}
.slot-card:disabled { opacity: 0.5; cursor: not-allowed; }
.slot-card__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-transform: uppercase;
}
.slot-card__hours { font-size: 0.82rem; color: var(--ink-muted); }
.slot-card__left { font-size: 0.78rem; font-weight: 600; color: var(--orange-dark); }
.slot-card__left--none { color: var(--red); }

/* ---- État de disponibilité --------------------------------------------- */
.availability-state {
  min-height: 1.2rem;
  margin: -0.4rem 0 1rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.availability-state[data-state='error'] { color: var(--red); font-weight: 600; }

/* ---- Modèles de quad ---------------------------------------------------
   Deux modèles réellement distincts, pas une grille de cartes clonées :
   chacun porte la couleur de sa marque et son propre décompte.
   ------------------------------------------------------------------------ */
.model-list { display: grid; gap: 0.8rem; }

.model {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.8rem 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 180ms var(--ease);
}
.model[data-picked='true'] { border-color: var(--ink); }
.model[data-soldout='true'] { opacity: 0.62; }
.model__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.1;
  text-transform: uppercase;
}
.model__price { font-size: 0.85rem; color: var(--ink-muted); }
.model__left {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.model__dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.model--orange .model__left { color: var(--orange-dark); }
.model--red .model__left { color: var(--red); }
.model--blue .model__left { color: #1763b5; }
.model--green .model__left { color: #187443; }
.model--purple .model__left { color: #7940a6; }
.model--black .model__left { color: #242424; }
.model__left--none { color: var(--red); }

/* ---- Compteur - / + ---------------------------------------------------- */
.stepper { display: flex; align-items: center; gap: 0.2rem; }
.stepper__btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease);
}
.stepper__btn:hover:not(:disabled) { background: var(--grey-100); border-color: var(--grey-300); }
.stepper__btn:disabled { opacity: 0.3; cursor: not-allowed; }
.stepper__value {
  min-width: 2.2rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-variant-numeric: tabular-nums;
}
.stepper__full {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---- Récapitulatif ----------------------------------------------------- */
.recap { display: grid; gap: 0.1rem; margin: 0; }
.recap__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.recap__row dt { font-size: 0.88rem; color: var(--ink-muted); }
.recap__row dd { margin: 0; font-weight: 600; text-align: right; }
.recap__row--total {
  align-items: baseline;
  padding-top: 1rem;
  border-bottom: 0;
}
.recap__row--total dt { font-size: 1rem; font-weight: 600; color: var(--ink); }
.recap__row--total dd { font-family: var(--font-display); font-size: var(--step-2); }
.recap__secondary {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.recap__note { margin-top: 1rem; font-size: 0.84rem; color: var(--ink-muted); }

/* Le dernier écran avant le paiement rappelle la règle d'annulation. Elle ne
   doit pas se lire comme une note de bas de page parmi d'autres : encre
   pleine, et un cadre complet de 1 px — jamais un liseré latéral, que la
   charte interdit. */
.recap__note--rule {
  margin-top: 0.6rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--ink);
}

.hold-timer { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---- Pages de retour Stripe -------------------------------------------- */
.outcome {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: var(--section-y) 0;
  text-align: center;
}
.outcome__inner { max-width: 34rem; }
.outcome__mark {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.4rem;
  border-radius: 999px;
  font-size: 2rem;
  color: var(--white);
  background: var(--orange);
}
.outcome__mark--wait { background: var(--grey-500); }
.outcome__mark--fail { background: var(--red); }
.outcome__ref {
  display: inline-block;
  margin: 0.6rem 0 1.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--grey-100);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}
.outcome__actions {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

/* ---- Mouvement --------------------------------------------------------- */
/* Opacité + translation seulement, jamais une propriété de mise en page. */
.step[data-enter] { animation: step-in 320ms var(--ease-long, var(--ease)) both; }
@keyframes step-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .step[data-enter] { animation: none; }
}

/* ---- Choix de formule (prestation, durée) ------------------------------ */
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
@media (max-width: 460px) { .choice-row { grid-template-columns: 1fr; } }

.choice {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}
.choice:hover { border-color: var(--orange); }
.choice[aria-pressed='true'] {
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: inset 0 0 0 1px var(--orange);
}
.choice__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-transform: uppercase;
  line-height: 1.1;
}
.choice__hint { font-size: 0.82rem; color: var(--ink-muted); }
.choice__from { margin-top: 0.3rem; font-size: 0.8rem; font-weight: 600; color: var(--orange-dark); }

/* ---- Plage de dates ---------------------------------------------------- */
.range-block { margin-bottom: 1rem; }

.range {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.range__end { display: flex; flex-direction: column; min-width: 0; }
.range__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.range__end strong { font-family: var(--font-display); font-size: var(--step-1); }
.range__arrow { color: var(--ink-muted); }
.range__days {
  margin-left: auto;
  padding-left: 0.8rem;
  border-left: 1px solid var(--line);
  font-size: 0.9rem;
  white-space: nowrap;
}
.range__days strong { font-family: var(--font-display); font-size: var(--step-1); }
.range__hint { margin-top: 0.5rem; font-size: 0.84rem; color: var(--ink-muted); }

@media (max-width: 460px) {
  .range { flex-wrap: wrap; }
  .range__days { width: 100%; margin-left: 0; padding-left: 0; padding-top: 0.6rem; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---- Calendrier : sélection d'une plage -------------------------------- */
/* Les jours intermédiaires sont teintés, les deux bornes en aplat plein :
   la plage se lit d'un coup d'œil sans avoir à comparer les dates. */
.calendar__day--in-range { background: var(--orange-soft); border-radius: 0; }
.calendar__day--start,
.calendar__day--end {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  font-weight: 700;
}
.calendar__day--start { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.calendar__day--end { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.calendar__day--start.calendar__day--end { border-radius: var(--radius-sm); }

/* =========================================================================
   PAGE « GÉRER MA RÉSERVATION »
   ========================================================================= */
.manage { padding: calc(var(--header-h) + 3rem) 0 var(--section-y); }
.manage__inner { max-width: 46rem; }

.manage__lookup {
  padding: clamp(1.2rem, 1rem + 1vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.manage__hint { margin-top: 0.8rem; font-size: 0.84rem; color: var(--ink-muted); }

/* ---- Le même panneau dans la fenêtre flottante --------------------------
   Dans la page, le bloc de recherche et la fiche sont des cartes posées sur
   le fond. Dans la fenêtre, la fenêtre EST déjà la carte : leur laisser leur
   cadre et leur ombre donnerait des cartes imbriquées, ce que la charte
   interdit. On les remet à plat, le balisage reste le même.
   ---------------------------------------------------------------------- */
.sheet .manage__lookup,
.sheet .booking-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.sheet .booking-card { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

/* La fiche réservation : un seul bloc, pas une grille de cartes. */
.booking-card {
  margin-top: 1.6rem;
  padding: clamp(1.2rem, 1rem + 1vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.booking-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.booking-card__ref {
  font-family: var(--font-display);
  font-size: var(--step-1);
  letter-spacing: 0.06em;
}
.booking-card__name { color: var(--ink-muted); font-size: 0.9rem; }

.status {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--grey-100);
  color: var(--ink);
}
.status--confirmee { background: var(--orange); color: var(--white); }
.status--annulee, .status--expiree { background: var(--red); color: var(--white); }

.manage__actions { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

.add-days {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.manage__quote { margin: 1rem 0; }
.manage__quote-box {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  background: var(--grey-100);
  font-size: 0.92rem;
}
.manage__quote-box p + p { margin-top: 0.4rem; }

.manage__buttons { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
@media (max-width: 520px) { .manage__buttons .btn { flex: 1 0 100%; } }

.booking-invite__manage { margin-top: 0.6rem; }

/* ---- Service de disponibilité injoignable ------------------------------
   Une panne de vérification n'est pas une erreur du visiteur : elle
   s'affiche dans le ton neutre du texte secondaire, pas en rouge d'alerte.
   Le rouge reste pour ce qui l'empêche vraiment d'avancer.
   ------------------------------------------------------------------------ */
.availability-state[data-state='offline'] { color: var(--ink-muted); }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--orange-dark);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.link-button:hover { color: var(--ink); }

/* Stock non vérifié : on montre le parc, sans le faire passer pour du
   disponible confirmé. Gris, et non la couleur de marque du modèle. */
.model__left--unverified { color: var(--ink-muted); }
.model__left--unverified .model__dot { background: var(--grey-300); }

/* ---- Livraison et pièces (étape « coordonnées ») ----------------------- */

/* Quatre choix (retrait + trois secteurs) : deux colonnes qui passent à une
   seule sur téléphone, comme le reste du configurateur. */
.choice-row--wrap { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .choice-row--wrap { grid-template-columns: 1fr; } }

#booking-delivery { margin-bottom: 1.2rem; }

/* Le retrait à l'agence porte un lien vers la carte : il occupe la même case
   de la grille que les autres choix, le bouton garde sa hauteur. */
.choice-stack { display: flex; flex-direction: column; gap: 0.4rem; }
.choice-stack .choice { flex: 1; }

/* Lien discret, pas un second bouton d'action : le choix reste le bouton. */
.choice__map {
  align-self: flex-start;
  padding: 0.25rem 0.7rem 0.25rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.choice__map::before {
  content: '';
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.4rem;
  vertical-align: -0.05em;
  background: currentColor;
  /* Épingle de carte, masquée depuis l'icône : elle suit la couleur du lien. */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.choice__map:hover,
.choice__map:focus-visible { color: var(--orange); }
#booking-delivery .field { margin-top: 0.8rem; }

/* Phrase d'explication sous un champ ou une légende : lisible mais en retrait,
   elle ne doit jamais concurrencer le libellé. */
.field-hint {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-muted);
}
.fieldset > .field-hint { margin-bottom: 0.5rem; }

#booking-documents { margin: 1.4rem 0 0.4rem; }

/* Les deux pièces : côte à côte dès qu'il y a la place, l'une sous l'autre
   sinon. Pas de carte autour, ce sont deux champs, pas deux produits. */
.doc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin: 0.6rem 0 0.7rem;
}
@media (max-width: 560px) { .doc-list { grid-template-columns: 1fr; } }

.doc { display: flex; flex-direction: column; gap: 0.35rem; }

/* Phrase d'explication qui devient une condition : même taille, plus de
   contraste. Pas d'encadré, ce n'est pas une alerte. */
.field-hint--note { color: var(--ink); font-weight: 600; }

.input--file {
  padding: 0.5rem 0.6rem;
  font-size: 0.88rem;
  cursor: pointer;
}
.input--file::file-selector-button {
  margin-right: 0.7rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--grey-100);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.input--file::file-selector-button:hover { background: var(--grey-300); }

.doc__status {
  margin: 0;
  font-size: 0.82rem;
  color: var(--green);
}
.doc__status--error { color: var(--red); }

/* ==========================================================================
 *  LE CHAMP « CODE PROMO » — étape E4
 * ==========================================================================
 *  Dans le récapitulatif, juste avant le bouton de paiement : c'est le
 *  dernier écran avant de payer, et un code saisi trois étapes plus tôt
 *  serait oublié.
 *
 *  Cadre complet de 1 px, jamais un liseré latéral — la charte l'interdit, et
 *  `.recap__note--rule` juste en dessous suit la même règle.
 * ======================================================================== */

.promo-champ {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line, rgba(11, 11, 11, 0.12));
  border-radius: 14px;
}
/* Code accepté : le cadre prend la couleur de l'action, et le texte le dit. */
.promo-champ--ok { border-color: var(--orange); background: var(--orange-soft); }

.promo-champ__ligne { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.promo-champ__ligne input {
  flex: 1 1 10rem;
  min-width: 0;
  /* Un code se lit caractère par caractère : majuscules et chasse fixe. */
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.promo-champ__ok {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  align-items: baseline;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}
.promo-champ__ok span { color: var(--ink-muted); font-size: 0.88rem; }

/*
 * Le refus. Un seul message, le même pour toutes les raisons : distinguer
 * « inconnu » de « réservé à un autre client » apprendrait à un inconnu qu'un
 * code existe, et à qui il appartient.
 */
.promo-champ__err {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  color: var(--red);
}

/* Le prix initial, barré, au-dessus du total. On doit pouvoir refaire le calcul. */
.recap__row--avant dd { color: var(--ink-muted); text-decoration: line-through; }
.doc__optional { color: var(--info-blue); font-weight: 700; font-size: .85em; }

.booking-phone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
}
.booking-phone > * { min-width: 0; width: 100%; }
