/* ═══════════════════ Module de réservation et paiement en ligne (page Tarifs) ═══════════════════
   Adresses → prix (calculé par la tour de contrôle) → coordonnées → paiement Stripe ou simple demande.
   Les blocs de paiement restent cachés tant que js/paiement.js n'a pas confirmé que le paiement est allumé. */

.resa { display: grid; gap: 1.6rem; }

.resa-etape {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: grid;
  gap: 1rem;
}
.resa-etape__titre {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0;
  margin-bottom: .2rem;
  color: var(--gold-hi);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.resa-etape__titre span {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: .85rem;
  letter-spacing: 0;
}

.resa-champ { display: grid; gap: .4rem; min-width: 0; }
.resa-champ label { color: var(--cream); font-size: .9rem; font-weight: 600; }
.resa-champ input,
.resa-champ select {
  width: 100%;
  min-height: 50px;
  background: rgba(3, 5, 10, .8);
  border: 1px solid rgba(252, 185, 0, .3);
  border-radius: 8px;
  padding: .8rem 1rem;
  color: #ffffff;
  font-size: 1rem;
  color-scheme: dark;
}
.resa-champ input:focus,
.resa-champ select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(252, 185, 0, .25); }
.resa-champ input.is-choisi { border-color: rgba(123, 220, 181, .7); }

/* Champ bien rempli (date, heure, coordonnées) : même vert que l'adresse choisie.
   « !important » : les champs des coordonnées ont leur style écrit dans la page. */
.resa input.is-valide,
.resa select.is-valide {
  border-color: rgba(123, 220, 181, .7) !important;
  background-color: rgba(123, 220, 181, .08) !important;
}

/* Liste ouverte d'un menu déroulant (passagers, valises, sièges…) : fond bleu nuit et texte blanc.
   Sans cela, une fois le champ en vert, Chrome sur ordinateur ouvrait la liste sur un fond
   presque blanc avec un texte blanc : les choix étaient illisibles (23/11/2026). */
.resa select option,
.resa select optgroup {
  background-color: #041138;
  color: #ffffff;
}
.resa select option:disabled { color: rgba(255, 255, 255, .45); }
.resa input.is-valide:not([type="date"]):not([type="time"]) {
  padding-right: 2.6rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237bdcb5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right .9rem center !important;
  background-size: 1.1rem !important;
}

.resa-adresses {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
}
.resa-inverser {
  width: 46px;
  height: 50px;
  border: 1px solid rgba(252, 185, 0, .35);
  border-radius: 8px;
  background: rgba(252, 185, 0, .08);
  color: var(--gold-hi);
  font-size: 1.3rem;
  cursor: pointer;
  transform: rotate(90deg);
  margin-top: 1.75rem; /* à la hauteur des champs, sous leur titre */
}
.resa-inverser:hover { background: rgba(252, 185, 0, .18); }
@media (max-width: 640px) {
  .resa-adresses { grid-template-columns: minmax(0, 1fr); }
  .resa-inverser { justify-self: end; height: 40px; transform: none; margin: -.5rem 0; }
}

.resa-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: .75rem;
}

/* Suggestions d'adresses */
.resa-auto { position: relative; }
.resa-auto__liste {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 60;
  margin: 0;
  padding: .3rem;
  list-style: none;
  background: #07123a;
  border: 1px solid var(--gold-a24);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  max-height: 18rem;
  overflow-y: auto;
}
.resa-auto__option {
  display: grid;
  gap: .1rem;
  padding: .6rem .7rem;
  border-radius: 8px;
  color: #ffffff;
  font-size: .95rem;
  cursor: pointer;
}
.resa-auto__option small { color: var(--gold-hi); font-size: .78rem; }
.resa-auto__option:hover,
.resa-auto__option.is-actif { background: rgba(252, 185, 0, .14); }

/* Champ d'adresse Google (Places UI Kit) : mêmes couleurs que les autres champs */
.resa-google {
  display: block;
  width: 100%;
  min-height: 50px;
  background-color: rgba(3, 5, 10, .8);
  border: 1px solid rgba(252, 185, 0, .3);
  border-radius: 8px;
  color: #ffffff;
  color-scheme: dark;
  font-family: inherit;
  font-size: 1rem;
}
.resa-google::part(input) { min-height: 48px; }
.resa-google::part(prediction-list) {
  background-color: #07123a;
  border: 1px solid rgba(252, 185, 0, .24);
  border-radius: 10px;
}
.resa-google::part(prediction-item-selected) { background-color: rgba(252, 185, 0, .14); }

/* Adresse choisie */
.resa-choisi {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 50px;
  padding: .5rem .55rem .5rem .85rem;
  border: 1px solid rgba(123, 220, 181, .7);
  border-radius: 8px;
  background: rgba(123, 220, 181, .08);
  color: #ffffff;
}
.resa-choisi__icone { flex: none; font-size: 1.05rem; }
.resa-choisi__ok { color: #7bdcb5; font-weight: 700; }
.resa-choisi__texte { flex: 1; min-width: 0; font-size: .95rem; line-height: 1.35; overflow-wrap: anywhere; }
.resa-choisi__texte.is-attente { color: var(--gold-hi); }

/* Forfait vers une zone (agglomération de Rouen, Paris) : « indiquez votre adresse d'arrivée » */
.resa-zone { margin: .45rem 0 0; color: var(--gold-hi); font-size: .85rem; line-height: 1.45; }
.resa-zone[hidden] { display: none; }
/* Départ trop vague (une commune entière) : « Précisez le numéro et la rue (ou le terminal, l'hôtel) » */
.resa-zone--alerte { padding: .5rem .75rem; border-radius: 8px; background: rgba(255, 107, 107, .1); color: #ffb3b3; }

/* Coordonnées : sur 3 colonnes (ordinateur), l'e-mail se retrouvait seul sur sa ligne dans un
   tiers de largeur et se coupait sur deux lignes une fois validé. Il prend alors toute la ligne. */
.resa-coord { container-type: inline-size; }
@container (min-width: 730px) and (max-width: 979.98px) {
  .resa-coord__email { grid-column: 1 / -1; }
}
.resa-choisi button {
  flex: none;
  min-height: 36px;
  padding: .35rem .7rem;
  border: 1px solid rgba(252, 185, 0, .45);
  border-radius: 6px;
  background: none;
  color: var(--gold-hi);
  font-size: .85rem;
  cursor: pointer;
}
.resa-choisi button:hover { background: rgba(252, 185, 0, .12); }

/* Accès rapide : aéroports, gares, lieux (adresses toutes prêtes de la tour de contrôle) */
.resa-raccourcis { display: grid; gap: .45rem; }
.resa-raccourcis__groupes { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.resa-raccourcis__titre { color: var(--mute-dim); font-size: .8rem; }
.resa-raccourci {
  min-height: 36px;
  padding: .3rem .75rem;
  border: 1px solid rgba(252, 185, 0, .3);
  border-radius: 999px;
  background: rgba(252, 185, 0, .06);
  color: var(--cream);
  font-size: .85rem;
  cursor: pointer;
}
.resa-raccourci:hover,
.resa-raccourci[aria-expanded="true"] { border-color: var(--gold); background: rgba(252, 185, 0, .16); color: var(--gold-hi); }
.resa-raccourcis__liste {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .55rem;
  border: 1px solid var(--gold-a24);
  border-radius: 10px;
  background: #07123a;
}
.resa-puce {
  min-height: 40px;
  padding: .4rem .7rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(3, 5, 10, .6);
  color: #ffffff;
  font-size: .88rem;
  text-align: left;
  cursor: pointer;
}
.resa-puce:hover,
.resa-puce:focus-visible { border-color: var(--gold); }

/* Carte du trajet */
.resa-carte {
  height: 260px;
  border: 1px solid var(--gold-a24);
  border-radius: 12px;
  overflow: hidden;
  background: #041138;
}
@media (max-width: 640px) {
  .resa-carte { height: 210px; }
}
.resa-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
  transform: translate(-50%, -50%);
}
.resa-pin--b { background: #ffffff; border-color: var(--gold); }
.resa-pin--arret { width: 22px; height: 22px; background: var(--ink); color: var(--gold-hi); border-color: var(--gold); font-size: .75rem; }

/* Arrêts (3 au plus) : sous le départ et l'arrivée, chacun avec sa saisie et « Retirer » */
.resa-arrets { display: grid; gap: .75rem; }
.resa-arrets:empty { display: none; }
.resa-arret { padding: .75rem .85rem .85rem; border: 1px dashed rgba(252, 185, 0, .35); border-radius: 10px; background: rgba(252, 185, 0, .04); }
.resa-arret__tete { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.resa-arret__tete label { margin: 0; }
.resa-arret__retirer { min-height: 32px; padding: .2rem .7rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; background: none; color: var(--mute-dim); font: inherit; font-size: .8rem; cursor: pointer; }
.resa-arret__retirer:hover { color: #ffb4b6; border-color: rgba(255, 90, 95, .6); }
.resa-arrets__ajout { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; }
.resa-arrets__ajout[hidden] { display: none; }
.resa-arrets__bouton { min-height: 38px; padding: .35rem 1rem; border: 1px solid rgba(252, 185, 0, .55); border-radius: 999px; background: rgba(252, 185, 0, .08); color: var(--gold-hi); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.resa-arrets__bouton:hover { background: rgba(252, 185, 0, .16); }
.resa-arrets__bouton[hidden] { display: none; }
.resa-arrets__ajout small { color: var(--mute-dim); font-size: .8rem; line-height: 1.4; }

/* Circuit choisi (ex. Plages du Débarquement) */
.resa-circuit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem;
  border: 1px solid var(--gold-a24);
  border-radius: 10px;
  background: rgba(252, 185, 0, .07);
  color: #ffffff;
}
.resa-circuit strong { color: var(--gold-hi); }
.resa-circuit button {
  border: 0;
  background: none;
  color: var(--gold-hi);
  text-decoration: underline;
  cursor: pointer;
  font-size: .9rem;
}

/* Prix et choix du véhicule */
.resa-devis { display: grid; gap: .75rem; }
.resa-devis p { max-width: none; margin: 0; }
.resa-devis__aide {
  padding: 1rem;
  border: 1px dashed var(--rule-2);
  border-radius: 10px;
  color: var(--mute-dim);
  font-size: .92rem;
  text-align: center;
}
.resa-devis__attente { color: var(--gold-hi); font-size: .92rem; text-align: center; }
.resa-devis__alerte {
  padding: .8rem 1rem;
  border: 1px solid rgba(252, 185, 0, .5);
  border-radius: 10px;
  background: rgba(252, 185, 0, .1);
  color: #ffffff;
  font-size: .9rem;
}
.resa-devis__alerte a { color: var(--gold-hi); }
.resa-devis__trajet { color: var(--mute-dim); font-size: .85rem; text-align: center; }

.resa-vehicule {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .4rem .9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(252, 185, 0, .25);
  border-radius: 12px;
  background: rgba(3, 5, 10, .7);
  color: #ffffff;
  cursor: pointer;
}
.resa-vehicule input { width: 20px; height: 20px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.resa-vehicule:has(input:checked) { border-color: var(--gold); background: rgba(252, 185, 0, .08); box-shadow: 0 0 0 1px var(--gold); }
.resa-vehicule.is-indisponible { opacity: .5; cursor: not-allowed; }
/* Véhicule trop petit cliqué : halo rouge (carte et menu Passagers) et message sous la carte */
.resa-vehicule.is-alerte { opacity: 1; border-color: #ff5a5f; box-shadow: 0 0 0 1px #ff5a5f, 0 0 22px rgba(255, 90, 95, .45); animation: resa-secoue .4s ease; }
#resa-passagers.is-alerte { border-color: #ff5a5f !important; box-shadow: 0 0 0 1px #ff5a5f, 0 0 18px rgba(255, 90, 95, .5); }
@keyframes resa-secoue { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.resa-plein { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin: -.2rem 0 .2rem; padding: .7rem .9rem; border: 1px solid rgba(255, 90, 95, .55); border-radius: 10px; background: rgba(255, 90, 95, .1); color: #ffd6d7; font-size: .9rem; line-height: 1.4; }
.resa-plein button { min-height: 38px; padding: .4rem .9rem; border: 0; border-radius: 999px; background: var(--gold-grad); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .resa-vehicule.is-alerte { animation: none; } }
.resa-vehicule__nom { display: grid; gap: .15rem; }
.resa-vehicule__nom strong { font-size: 1.02rem; line-height: 1.3; }
.resa-vehicule__nom small { color: var(--mute-dim); font-size: .82rem; line-height: 1.35; }
.resa-vehicule__nom .resa-vehicule__alerte { color: var(--gold-hi); }
.resa-vehicule__prix { text-align: right; display: grid; gap: .2rem; justify-items: end; }
.resa-vehicule__prix strong { font-family: var(--disp); font-size: 1.6rem; line-height: 1; }
.resa-badge {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}
.resa-badge--fixe { background: rgba(252, 185, 0, .18); color: var(--gold-hi); }
.resa-badge--calcul { background: rgba(123, 220, 181, .15); color: #9df0d0; }
.resa-badge--devis { background: rgba(255, 255, 255, .1); color: #ffffff; }
/* Forfait plus cher que son prix seul : « Forfait 230 € + approche hors zone 29 € », sous le prix */
.resa-vehicule__decompte { grid-column: 2 / -1; justify-self: end; text-align: right; color: var(--cream-2); font-size: .82rem; line-height: 1.35; }
@media (max-width: 420px) {
  .resa-vehicule { grid-template-columns: auto minmax(0, 1fr); }
  .resa-vehicule__prix { grid-column: 2; justify-items: start; text-align: left; }
  .resa-vehicule__decompte { justify-self: start; text-align: left; }
}

/* Véhicule déjà pris à l'heure demandée : un chauffeur partenaire au même prix (sur confirmation), et l'heure où
   le véhicule se libère avec le bouton qui la choisit. */
.resa-relais {
  display: grid;
  gap: .65rem;
  padding: .85rem;
  border: 1px solid rgba(252, 185, 0, .45);
  border-radius: 14px;
  background: rgba(252, 185, 0, .05);
}
.resa-relais__info {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--gold-hi);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
}
.resa-relais__info svg { flex: none; }
.resa-vehicule__nom .resa-vehicule__note { color: #9df0d0; }
.resa-badge--relais { background: rgba(123, 220, 181, .15); color: #9df0d0; }
.resa-vehicule--pris {
  grid-template-columns: minmax(0, 1fr) auto;
  border-style: dashed;
  background: transparent;
  cursor: default;
}
.resa-vehicule--pris .resa-libre,
.resa-pris .resa-libre { margin-top: 0; font-size: .92rem; white-space: nowrap; }
/* Sous le chauffeur partenaire (déjà choisi), ce bouton est un second choix : contour doré, pas de fond. */
.resa-vehicule--pris .resa-libre { border: 1px solid var(--gold); background: transparent; color: var(--gold-hi); }
.resa-pris {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem .9rem;
  margin: -.2rem 0 .2rem;
  padding: .7rem .9rem;
  border: 1px dashed rgba(252, 185, 0, .45);
  border-radius: 10px;
  color: var(--gold-hi);
  font-size: .9rem;
  line-height: 1.4;
}
@media (max-width: 420px) {
  .resa-vehicule--pris { grid-template-columns: minmax(0, 1fr); }
  .resa-vehicule--pris .resa-libre { justify-self: start; }
}

.resa-inclus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: .5rem .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--cream-2);
  font-size: .85rem;
}
.resa-inclus li { display: flex; align-items: center; gap: .5rem; }
.resa-inclus svg { flex: none; color: var(--gold); }

.pay-online {
  display: grid;
  gap: .9rem;
  margin-top: .5rem;
  padding: 1.4rem;
  border: 1px solid var(--gold-a24);
  border-radius: 12px;
  background: rgba(252, 185, 0, .05);
}

.pay-online__cgv {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: var(--cream);
  font-size: .92rem;
  line-height: 1.45;
  cursor: pointer;
}
.pay-online__cgv input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: .1rem 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.pay-online__cgv a { color: var(--gold-hi); }

.pay-online__btn {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 1rem 1.4rem;
  cursor: pointer;
}
.pay-online__btn:disabled { opacity: .6; cursor: wait; }

.pay-online__note,
.pay-online__off {
  margin: 0;
  color: var(--mute-dim);
  font-size: .85rem;
  line-height: 1.45;
  text-align: center;
}
.pay-online__off {
  padding: .9rem 1rem;
  border: 1px dashed var(--rule-2);
  border-radius: 10px;
}

.pay-online__err {
  margin: 0;
  padding: .75rem 1rem;
  border: 1px solid rgba(255, 120, 120, .6);
  border-radius: 8px;
  background: rgba(255, 90, 90, .12);
  color: #ffffff;
  font-size: .9rem;
  line-height: 1.45;
}
.pay-online__err a { color: var(--gold-hi); }

/* « Choisir 11 h 50 » : la première heure libre quand le véhicule est déjà réservé. */
.resa-libre { display: inline-block; margin-top: .4rem; min-height: 38px; padding: .4rem .9rem; border: 0; border-radius: 999px; background: var(--gold-grad); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }

.pay-online__or {
  margin: .4rem 0 0;
  padding-top: .9rem;
  border-top: 1px solid var(--rule);
  color: var(--cream);
  font-size: .9rem;
  text-align: center;
}

.pay-result {
  display: grid;
  gap: .35rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1.5px solid #25D366;
  border-radius: 12px;
  background: rgba(37, 211, 102, .15);
  color: #ffffff;
}
.pay-result--info { border-color: var(--gold); background: var(--gold-a12); }
.pay-result__title { margin: 0; color: #7bdcb5; font-size: 1.15rem; font-weight: 700; }
.pay-result--info .pay-result__title { color: var(--gold-hi); }
.pay-result__text { margin: 0; color: var(--cream-2); font-size: .92rem; line-height: 1.45; }

/* Les paragraphes du site ont une largeur maximale de lecture : ici on prend toute la largeur du bloc. */
.pay-online p,
.pay-online__off,
.pay-result p { max-width: none; }

.pay-online[hidden],
.pay-online__off[hidden],
.pay-online__err[hidden],
.pay-result[hidden],
.resa-circuit[hidden],
.resa-auto__liste[hidden],
.resa-auto[hidden],
.resa-auto input[hidden],
.resa-choisi[hidden],
.resa-raccourcis[hidden],
.resa-raccourcis__liste[hidden],
.resa-carte[hidden],
.resa-champ[hidden] { display: none; }

/* Goldlane Privilège : état du code de récompense sous le champ */
.resa-code__etat { margin: .5rem 0 0; font-size: .9rem; line-height: 1.5; padding: .55rem .8rem; border-radius: 8px; }
.resa-code__etat.is-ok { background: rgba(123, 220, 181, .1); color: #9df0d0; }
.resa-code__etat.is-erreur { background: rgba(255, 107, 107, .1); color: #ffb3b3; }
.resa-code__etat a, .resa-code__aide a { color: var(--gold-hi); }
.resa-code__aide { margin: .45rem 0 0; color: var(--cream-2); font-size: .8rem; line-height: 1.5; }

/* Vol ou train (aéroport ou gare), siège enfant et son âge : étape 3, avant les demandes particulières */
.resa-voyage { display: grid; gap: 1rem; }
.resa-mention { color: var(--gold-hi); font-size: .8rem; font-weight: 400; }
.resa-champ__aide { color: var(--cream-2); font-size: .8rem; line-height: 1.45; }
.resa-siege { display: grid; gap: .75rem; }
.resa-siege__case { display: flex; align-items: center; gap: .65rem; width: fit-content; color: var(--cream); font-size: .9rem; font-weight: 600; cursor: pointer; }
.resa-siege__case input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.resa-siege__case small { color: var(--gold-hi); font-size: .8rem; font-weight: 400; }
