/* Page « Taxi aéroport » (taxi seul) — 2026-10-04.
   ⚠️ Feuille miroir pour /ar/ : après toute modification, relancer
   node .recette/arabe/gen_rtl_css.js puis python3 .recette/arabe/gen_rtl_liens.py. */

.tx { padding-top: 32px; }
.tx__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.tx__carte {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(68, 76, 237, .08);
}
.tx__carte .section-head__group { margin-bottom: 24px; }

.tx-form { display: flex; flex-direction: column; gap: 18px; }
.tx-trajet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}
.tx-echanger {
  width: 44px; height: 44px; margin-bottom: 4px;
  border: 1px solid var(--c-border-lang); border-radius: 50%;
  background: var(--c-bg-ghost); color: var(--c-primary);
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: background .2s, transform .2s;
}
.tx-echanger:hover { background: var(--c-bg-hero); transform: rotate(180deg); }
.tx-ligne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tx-ligne--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tx-form select.field__control { appearance: auto; }
.tx-aide { font-family: var(--f-body); font-size: 12px; color: var(--c-muted); }
.tx-form .is-invalide { border-color: var(--c-error) !important; outline-color: var(--c-error); }
.tx-cgv.is-invalide, .tx-form input[type="checkbox"].is-invalide { outline: 2px solid var(--c-error); outline-offset: 2px; }

.tx-paiement { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tx-paiement legend { margin-bottom: 10px; }
.tx-choix {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--c-border-lang); border-radius: 16px;
  cursor: pointer; font-family: var(--f-body);
}
.tx-choix:has(input:checked) { border-color: var(--c-primary); background: var(--c-bg-hero); }
.tx-choix input { margin-top: 3px; accent-color: var(--c-primary); }
.tx-choix span { display: flex; flex-direction: column; gap: 2px; }
.tx-choix strong { font-size: 15px; font-weight: 600; color: var(--c-ink); }
.tx-choix small { font-size: 13px; color: var(--c-muted); }
.tx-choix.is-off { opacity: .45; cursor: not-allowed; }

.tx-cgv { display: flex; gap: 10px; align-items: flex-start; font-family: var(--f-body); font-size: 14px; color: var(--c-body); }
.tx-cgv input { margin-top: 3px; accent-color: var(--c-primary); }

.tx-total {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: 16px; background: var(--c-bg-hero);
  font-family: var(--f-body); font-size: 15px; color: var(--c-body);
}
.tx-total small { color: var(--c-muted); }
.tx-total strong { font-family: var(--f-display); font-size: 22px; font-weight: 800; color: var(--c-primary); white-space: nowrap; }

.tx-merci { text-align: center; padding: 24px 8px; outline: none; }
.tx-merci__icone { font-size: 48px; margin: 0 0 8px; }
.tx-merci p { font-family: var(--f-body); font-size: 16px; line-height: 24px; color: var(--c-body); }

.tx__infos { display: flex; flex-direction: column; gap: 18px; }
.tx-conseil { margin: 0; font-size: 14px; line-height: 21px; }
.tx-atouts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tx-atouts li {
  position: relative; padding-left: 30px;
  font-family: var(--f-body); font-size: 15px; color: var(--c-body);
}
.tx-atouts li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-primary); color: #fff; font-size: 12px; line-height: 20px; text-align: center;
}
.tx__h2 { margin: 12px 0 0; font-family: var(--f-display); font-size: 26px; font-weight: 800; color: var(--c-ink); }
.tx__lead { margin: 0; font-family: var(--f-body); font-size: 15px; color: var(--c-muted); }
.tx-tableau-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--c-border); background: var(--c-white); }
.tx-tableau { width: 100%; border-collapse: collapse; font-family: var(--f-body); font-size: 14px; }
.tx-tableau th, .tx-tableau td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--c-border); }
.tx-tableau thead th { background: var(--c-primary); color: #fff; font-weight: 600; font-size: 13px; }
.tx-tableau tbody th { font-weight: 600; color: var(--c-ink); }
.tx-tableau td { white-space: nowrap; color: var(--c-primary); font-weight: 600; }
.tx-tableau tbody tr:last-child th, .tx-tableau tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 1023px) {
  .tx__grille { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tx__carte { padding: 22px 16px; border-radius: 20px; }
  .tx-ligne, .tx-ligne--3 { grid-template-columns: minmax(0, 1fr); }
  .tx-ligne--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-ligne--3 .field:last-child { grid-column: 1 / -1; }
  .tx-trajet { grid-template-columns: minmax(0, 1fr); }
  .tx-echanger { justify-self: center; margin: -4px 0; transform: rotate(90deg); }
  .tx-echanger:hover { transform: rotate(270deg); }
  .tx-tableau th, .tx-tableau td { padding: 10px; font-size: 13px; }
}

/* `.field` est en display:flex : sans ceci l'attribut hidden ne masque rien. */
.tx [hidden] { display: none !important; }
/* Encadrés beiges (même rendu que .taxi__note du tunnel, reservation.css n'est pas chargée ici). */
.tx .taxi__note {
  margin: 0; padding: 12px 16px; border-radius: 14px;
  background: #FFF8E6; color: #6B4E00;
  font-family: var(--f-body); font-size: 13px; line-height: 19px;
}
.tx .taxi__note strong { font-weight: 600; }
.tx .tx-conseil { font-size: 14px; line-height: 21px; }
/* Libellé sur deux lignes (« Heure de prise en charge ») : les champs restent alignés. */
.tx-ligne .field, .tx-trajet .field { justify-content: flex-end; }
/* Mode de paiement imposé par l'heure de départ (2026-10-04) : un encadré d'information, pas un choix. */
.tx-choix--info { cursor: default; border-color: var(--c-primary); background: var(--c-bg-hero); }

/* Carte / PayPal (2026-10-04) — copie des règles .paiement__* de reservation.css,
   qui n'est pas chargée sur cette page. Garder les deux rendus identiques. */
.tx-mode-ligne { display: flex; flex-direction: column; gap: 12px; }
.tx-mode-titre { margin: 0; font-family: var(--f-body); font-size: 14px; color: var(--c-ink); }
.tx-mode-titre small { display: block; margin-top: 2px; font-size: 13px; color: var(--c-muted); }
.tx .paiement__liste { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.tx .paiement__option {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px;
  border: .75px solid var(--c-border-4); border-radius: var(--r-pill);
  background: var(--c-white); opacity: .8; cursor: pointer;
  transition: border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.tx .paiement__option:hover { opacity: 1; }
.tx .paiement__option.is-active { opacity: 1; border-color: var(--c-indigo-300); }
.tx .paiement__option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tx .paiement__radio {
  flex: 0 0 15px; width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid #5D5D5D; display: grid; place-items: center;
}
.tx .paiement__radio::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary);
  transform: scale(0); transition: transform var(--dur) var(--ease-out);
}
.tx .paiement__option.is-active .paiement__radio { border-color: var(--c-indigo-300); }
.tx .paiement__option.is-active .paiement__radio::after { transform: scale(1); }
.tx .paiement__option input:focus-visible + .paiement__radio { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.tx .paiement__nom { font-family: var(--f-body); font-size: 14px; line-height: 18.2px; font-weight: 500; color: #5D5D5D; }
.tx .paiement__option.is-active .paiement__nom { font-weight: 600; color: #262626; }
.tx .paiement__logo { margin-left: auto; flex: 0 0 auto; }
.tx .paiement__logos { margin-left: auto; display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.tx .paiement__logos img { display: block; }
@media (max-width: 520px) {
  .tx .paiement__logos img:nth-child(n+3) { display: none; }
  .tx .paiement__option { padding: 0 14px; }
}
/* Libellé long (arabe, mobile) : l'option s'agrandit au lieu de déborder. */
.tx .paiement__option { height: auto; min-height: 46px; padding-top: 8px; padding-bottom: 8px; }
