/* ==========================================================
   DIABOLUX — HOTEL / BOOKING V4
   Remplace totalement dist/css/app.css
   Utiliser avec diabolux-hotel-v4-app.js
   ========================================================== */

.iti__flag { background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@18.2.1/build/img/flags.png") !important; }
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag { background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@18.2.1/build/img/flags@2x.png") !important; }
}

:root {
  --page: #f6f3ed;
  --paper: #ffffff;
  --paper-2: #faf8f3;
  --text: #30343b;
  --title: #242831;
  --muted: #767d89;
  --muted-2: #a1a6ae;
  --line: #e2ded6;
  --line-2: #eeeae3;
  --red: #cf111b;
  --red-2: #b90e17;
  --red-soft: #fff1f2;
  --green: #158957;
  --orange: #d98325;
  --yellow: #f3c84b;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 14px 38px rgba(75, 66, 49, .08);
  --shadow-soft: 0 7px 22px rgba(75, 66, 49, .055);
  --width: 1120px;
  --header-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body.dx-clean, body.dx-travel {
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body.dx-clean button, body.dx-clean input, body.dx-clean select, body.dx-clean textarea,
body.dx-travel button, body.dx-travel input, body.dx-travel select, body.dx-travel textarea { font: inherit; }
body.dx-clean button, body.dx-travel button { -webkit-tap-highlight-color: transparent; }
body.dx-clean img, body.dx-travel img { display: block; max-width: 100%; }
body.dx-clean a, body.dx-travel a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Header existant : discret */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  min-height: var(--header-h);
  padding: 9px clamp(14px, 4vw, 34px);
  background: rgba(246, 243, 237, .88);
  border-bottom: 1px solid rgba(226, 222, 214, .82);
  backdrop-filter: blur(18px);
}
.site-header-inner {
  width: min(var(--width), 100%);
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo, .site-logo a { display: inline-flex; align-items: center; }
.site-logo img { width: auto; height: 48px; object-fit: contain; }
.site-header-sub {
  min-height: 34px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--red);
  background: var(--paper);
  border: 1px solid #edd1d4;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .075em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Structure : plus de gros hero, page directement utile */
#diaboluxApp {
  width: min(var(--width), calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 100px;
}
.dx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}
.dx-main { min-width: 0; }
.dx-aside {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  min-width: 0;
}

/* Petite tête utile, pas un hero */
.dx-mini-head {
  min-height: 58px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.dx-mini-head span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dx-mini-head h1 {
  margin: 0;
  color: var(--title);
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1;
  font-weight: 920;
  letter-spacing: -.06em;
}
.dx-mini-cart {
  flex: 0 0 auto;
  min-width: 126px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  cursor: pointer;
  text-align: right;
}
.dx-mini-cart span {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
.dx-mini-cart strong {
  color: var(--red);
  font-size: 17px;
  font-weight: 900;
}

/* Anciennes parties du haut masquées si encore présentes */
.dx-hero, .dx-booking-strip { display: none !important; }

/* Etapes ultra sobres */
.dx-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.dx-step {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 760;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
}
.dx-step span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--line-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}
.dx-step.is-active {
  background: var(--paper);
  color: var(--title);
  border-color: #dfc8c9;
  box-shadow: var(--shadow-soft);
}
.dx-step.is-active span { background: var(--red); color: #fff; }
.dx-step.is-done span { background: #e8f5ee; color: var(--green); }
.dx-step:disabled { opacity: .45; cursor: not-allowed; }
.dx-step:not(:disabled):hover { transform: translateY(-1px); border-color: #d3cec5; }

/* Section */
.dx-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
}
.dx-section + .dx-section { margin-top: 14px; }
.dx-section-head {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.dx-section-head h2,
.dx-split-section h2 {
  margin: 0;
  color: var(--title);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -.055em;
}
.dx-section-head p,
.dx-section-head > p,
.dx-section-head span,
.dx-muted {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 650;
}
.dx-section-eyebrow { display: none; }

/* Résultats type agence / hôtel : compacts et clairs */
.dx-results { display: grid; gap: 10px; }
.travel-card {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 118px;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 4px 16px rgba(75,66,49,.035);
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease, background-color .14s ease;
}
.travel-card:hover {
  transform: translateY(-1px);
  border-color: #d5cfc4;
  box-shadow: 0 10px 24px rgba(75,66,49,.07);
}
.travel-card.is-selected {
  background: linear-gradient(0deg, rgba(207,17,27,.026), rgba(207,17,27,.026)), #fff;
  border-color: rgba(207,17,27,.34);
}
.travel-card.is-full { opacity: .55; }
.travel-card-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.travel-card-hit:disabled { cursor: not-allowed; }
.travel-img {
  position: relative;
  min-height: 112px;
  background: #ebe5da;
  overflow: hidden;
}
.travel-img-bg,
.travel-img-default {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.travel-img-default {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff 0%, #f2eadc 100%);
  font-size: 30px;
}
.travel-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.18));
}
.travel-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--title);
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.travel-info {
  min-width: 0;
  padding: 13px 14px;
  display: grid;
  align-content: center;
  gap: 8px;
}
.travel-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}
.travel-meta span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.travel-meta span:last-child {
  flex: 0 0 auto;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 999px;
  padding: 4px 7px;
}
.travel-info h3 {
  margin: 0;
  color: var(--title);
  font-size: clamp(18px, 2.3vw, 23px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.052em;
}
.travel-info h3 span {
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}
.travel-places { display: grid; gap: 5px; }
.travel-progress {
  height: 5px;
  border-radius: 999px;
  background: #eeeae3;
  overflow: hidden;
}
.travel-progress i { display: block; height: 100%; border-radius: inherit; }
.travel-progress i.green { background: var(--green); }
.travel-progress i.orange { background: var(--orange); }
.travel-progress i.red { background: var(--red); }
.travel-places small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.travel-places small strong { color: var(--title); }
.travel-price {
  padding: 13px 14px 13px 0;
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 4px;
  text-align: right;
}
.travel-price span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.travel-price strong {
  color: var(--title);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.045em;
}
.travel-price em {
  min-width: 74px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--red);
  background: var(--red-soft);
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}
.travel-card.is-selected .travel-price em { color: #fff; background: var(--red); }

/* Groupe */
.dx-split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 18px;
}
.dx-counter-card {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 9px;
}
.dx-counter-btn {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--title);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}
.dx-counter-value {
  min-height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.dx-counter-value strong {
  color: var(--red);
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.05em;
}
.dx-counter-value span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dx-warning {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  color: #745000;
  background: #fff7de;
  border: 1px solid #ecd99d;
  font-size: 13px;
  font-weight: 700;
}
.dx-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* Voyageurs */
.dx-trip-reminder {
  margin-bottom: 12px;
  padding: 12px 13px;
  border-radius: 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dx-trip-reminder strong { color: var(--title); font-size: 15px; font-weight: 900; }
.dx-trip-reminder strong span { color: var(--muted-2); font-size: 11px; text-transform: uppercase; }
.dx-trip-reminder small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.dx-trip-reminder button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.travellers-list { display: grid; gap: 10px; }
.traveller-card {
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.traveller-title {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.traveller-title strong {
  color: var(--title);
  font-size: 15px;
  font-weight: 900;
}
.traveller-title small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.traveller-price {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 15px;
  font-weight: 900;
}
.traveller-prefill { margin-bottom: 10px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-row.align-end { align-items: end; }
.form-group { margin-bottom: 10px; }
.form-label {
  display: block;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.form-input, .form-select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  outline: none;
  font-size: 14px;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.form-select {
  cursor: pointer;
  appearance: none;
  padding-right: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.2L6 6.2L11 1.2' stroke='%23767d89' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center;
}
.form-input:focus, .form-select:focus {
  border-color: rgba(207,17,27,.42);
  box-shadow: 0 0 0 4px rgba(207,17,27,.065);
}
.form-input.error { border-color: var(--red); }
.form-error { display: none; margin-top: 5px; color: var(--red); font-size: 12px; font-weight: 700; }
.tel-wrap { position: relative; }
.tel-wrap .iti { width: 100%; }
.tel-wrap .iti__selected-flag {
  min-height: 46px;
  border-right: 1px solid var(--line);
  border-radius: 12px 0 0 12px;
  background: var(--paper-2);
}
.tel-wrap #f-tel { min-height: 46px; padding-left: 90px !important; }
.tel-valid-check {
  position: absolute;
  right: 11px;
  top: 50%;
  z-index: 5;
  display: none;
  transform: translateY(-50%);
  color: var(--green);
  font-weight: 900;
}
.tel-wrap.valid .tel-valid-check { display: block; }
.iti__country-list { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font-family: inherit; font-size: 14px; }

.traveller-toggle {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
}
.membre-check { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #d8d4cb;
  flex: 0 0 auto;
}
.toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.14);
  transition: transform .14s ease;
}
.membre-check:checked + .toggle-ui { background: var(--red); }
.membre-check:checked + .toggle-ui::after { transform: translateX(16px); }
.same-departure {
  margin: -2px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}
.traveller-locked {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  margin-bottom: 10px;
}
.traveller-locked strong { color: var(--title); font-size: 14px; font-weight: 900; }
.traveller-locked small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.dx-total-preview {
  margin-top: 12px;
  padding: 13px;
  border-radius: 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dx-total-preview span { color: var(--muted); font-size: 13px; font-weight: 760; }
.dx-total-preview strong { color: var(--red); font-size: 22px; line-height: 1; font-weight: 900; letter-spacing: -.04em; }

/* Boutons */
.btn {
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 850;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease, opacity .12s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { color: #fff; background: var(--red); border-color: var(--red); box-shadow: 0 10px 22px rgba(207,17,27,.18); }
.btn-primary:hover:not(:disabled) { background: var(--red-2); }
.btn-secondary { color: var(--text); background: #fff; border-color: var(--line); }
.btn-secondary:hover:not(:disabled) { border-color: #d4cfc6; box-shadow: var(--shadow-soft); }

/* Réservation droite : visible, mais pas lourde */
.booking-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.booking-panel-head {
  min-height: 58px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.booking-panel-head span {
  color: var(--title);
  font-size: 19px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.04em;
}
.booking-panel-head strong {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 12px;
  font-weight: 850;
}
.booking-selected {
  margin: 12px 14px 0;
  padding: 11px 12px;
  border: 1px solid #ead6d8;
  border-radius: 14px;
  background: var(--red-soft);
  display: grid;
  gap: 2px;
}
.booking-selected small { color: var(--red); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.booking-selected strong { color: var(--title); font-size: 14px; font-weight: 900; }
.booking-selected span { color: var(--muted); font-size: 12px; }
.booking-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 4px 14px;
}
.booking-empty {
  padding: 26px 6px;
  display: grid;
  gap: 4px;
  text-align: center;
}
.booking-empty strong { color: var(--title); font-size: 14px; font-weight: 900; }
.booking-empty span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.booking-row, .checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}
.booking-row:last-child, .checkout-row:last-child { border-bottom: 0; }
.booking-row strong, .checkout-row strong { color: var(--title); font-size: 13px; line-height: 1.18; font-weight: 900; }
.booking-row span, .checkout-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.25; }
.booking-row small, .checkout-row small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 11px; line-height: 1.25; }
.booking-row > div:last-child, .checkout-row > div:last-child { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }
.booking-row b, .checkout-row b { color: var(--red); font-size: 13px; font-weight: 900; white-space: nowrap; }
.booking-row button, .checkout-row button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.booking-row button:hover, .checkout-row button:hover { background: var(--red-soft); color: var(--red); }
.booking-total {
  padding: 14px 16px;
  border-top: 1px solid var(--line-2);
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.booking-total span { color: var(--muted); font-size: 13px; font-weight: 760; }
.booking-total strong { color: var(--title); font-size: 27px; line-height: 1; font-weight: 900; letter-spacing: -.055em; }
.booking-actions {
  padding: 14px 16px 16px;
  display: grid;
  gap: 9px;
}

/* Checkout sans noir */
.checkout-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.checkout-list { padding: 4px 16px; }
.checkout-total {
  padding: 15px 16px;
  border-top: 1px solid var(--line-2);
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.checkout-total span { color: var(--muted); font-size: 13px; font-weight: 760; }
.checkout-total strong { color: var(--red); font-size: 28px; line-height: 1; font-weight: 900; letter-spacing: -.055em; }
.payment-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.payment-title {
  margin-bottom: 10px;
  color: var(--title);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.035em;
}
.payment-option {
  width: 100%;
  min-height: 68px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 2px;
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.payment-option + .payment-option { margin-top: 10px; }
.payment-option:hover:not(:disabled) { transform: translateY(-1px); border-color: #d4cfc6; box-shadow: var(--shadow-soft); }
.payment-option:disabled { opacity: .45; cursor: not-allowed; }
.payment-option span { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.payment-option strong { color: var(--title); font-size: 16px; font-weight: 900; }
.payment-option small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.payment-separator {
  margin: 13px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.payment-separator::before, .payment-separator::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* Mobile bar claire */
.mobile-booking-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 100;
  display: none;
}
.mobile-booking-bar button {
  width: 100%;
  min-height: 54px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(75,66,49,.16);
  color: var(--text);
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
}
.mobile-booking-bar span { color: var(--muted); font-size: 12px; font-weight: 760; text-align: left; }
.mobile-booking-bar strong { color: var(--red); font-size: 18px; font-weight: 900; }
.mobile-booking-bar em { padding: 9px 12px; border-radius: 999px; color: #fff; background: var(--red); font-style: normal; font-size: 13px; font-weight: 850; }

/* Modales */
.mollie-overlay, .virement-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(48,52,59,.38);
  backdrop-filter: blur(10px);
}
.mollie-overlay.active, .virement-overlay.active { display: flex; }
.mollie-modal, .virement-modal {
  width: min(430px, 100%);
  max-height: calc(100svh - 36px);
  overflow-y: auto;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 24px 70px rgba(48,52,59,.24);
}
.mollie-header { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.mollie-secure { color: var(--green); font-size: 12px; font-weight: 800; }
.mollie-merchant { margin-top: 14px; color: var(--muted); font-size: 13px; }
.mollie-amount-block, .mollie-method-block { margin-top: 12px; padding: 13px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper-2); }
.mollie-amount-label, .mollie-method-label { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.mollie-amount-val { margin-top: 4px; color: var(--red); font-size: 30px; line-height: 1; font-weight: 900; }
.mollie-method-name { margin-top: 4px; color: var(--title); font-size: 17px; font-weight: 900; }
.mollie-simulate-title { margin: 16px 0 10px; color: var(--muted); text-align: center; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.mollie-simulate-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mollie-btn { min-height: 44px; border: 0; border-radius: 12px; color: #fff; cursor: pointer; font-weight: 850; }
.mollie-btn-success { background: var(--green); }
.mollie-btn-fail { background: var(--red); }
.mollie-footer { margin-top: 14px; text-align: center; }
.mollie-cancel { color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 800; }
.virement-icon { width: 52px; height: 52px; margin: 0 auto 11px; border-radius: 999px; background: var(--paper-2); display: grid; place-items: center; font-size: 25px; }
.virement-title { color: var(--title); text-align: center; font-size: 24px; line-height: 1.05; font-weight: 900; letter-spacing: -.05em; }
.virement-sub { margin-top: 6px; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.42; }
.virement-detail { margin-top: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.virement-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line-2); }
.virement-row:last-child { border-bottom: 0; }
.virement-label { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.virement-val { color: var(--title); text-align: right; font-size: 13px; line-height: 1.35; font-weight: 800; word-break: break-word; }
.virement-ref { color: var(--red); font-weight: 900; }
.virement-email-notice { margin-top: 13px; padding: 11px 12px; border-radius: 12px; color: #245b3d; background: #edf8f2; border: 1px solid #c9e9d8; font-size: 13px; line-height: 1.38; font-weight: 700; }

/* Success */
.success-page { width: min(620px, 100%); margin: 42px auto; }
.success-card { padding: 36px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.success-icon { font-size: 50px; margin-bottom: 12px; }
.success-card h1 { margin: 0; color: var(--title); font-size: 36px; line-height: 1; font-weight: 900; letter-spacing: -.06em; }
.success-card p { margin: 12px auto 0; max-width: 460px; color: var(--muted); font-size: 15px; line-height: 1.52; }
.success-card .btn { margin-top: 20px; }
.dx-empty { padding: 24px; border: 1px dashed var(--line); border-radius: 14px; background: var(--paper-2); color: var(--muted); text-align: center; }
.dx-empty strong { display: block; margin-bottom: 10px; color: var(--title); }

@media (max-width: 980px) {
  .dx-layout { grid-template-columns: 1fr; }
  .dx-aside { position: static; order: -1; }
  .booking-panel { display: none; }
  .mobile-booking-bar { display: block; }
  .dx-split-section { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .site-header { padding: 8px 12px; }
  .site-header-inner { min-height: 48px; }
  .site-logo img { height: 43px; }
  .site-header-sub { min-height: 31px; padding: 7px 10px; font-size: 10px; }
  #diaboluxApp { width: calc(100vw - 18px); padding-top: 14px; }
  .dx-mini-head { min-height: 48px; margin-bottom: 10px; }
  .dx-mini-head h1 { font-size: 26px; }
  .dx-mini-cart { min-width: 104px; padding: 8px 10px; }
  .dx-steps { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .dx-step { min-height: 34px; padding: 7px 6px; font-size: 0; gap: 0; }
  .dx-step span { margin: 0; }
  .dx-section { padding: 14px; border-radius: 18px; }
  .dx-section-head { align-items: flex-start; }
  .dx-section-head h2, .dx-split-section h2 { font-size: 24px; }
  .travel-card { grid-template-columns: 82px minmax(0, 1fr); min-height: 98px; }
  .travel-img { min-height: 98px; }
  .travel-info { padding: 11px 12px; }
  .travel-price { grid-column: 1 / -1; padding: 0 12px 12px; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .travel-price span { display: none; }
  .travel-price strong { font-size: 19px; }
  .travel-price em { min-width: 82px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row.align-end { align-items: stretch; }
  .dx-action-row { flex-direction: column; }
  .btn { width: 100%; }
  .mollie-simulate-btns { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .site-header-sub { display: none; }
  .travel-card { grid-template-columns: 74px minmax(0, 1fr); }
  .travel-img { min-height: 92px; }
  .travel-meta { display: block; }
  .travel-meta span:last-child { display: inline-block; margin-top: 4px; }
  .travel-info h3 { font-size: 18px; }
  .dx-counter-card { grid-template-columns: 48px 1fr 48px; }
  .dx-counter-btn { width: 48px; height: 48px; }
  .dx-counter-value { min-height: 62px; }
  .mobile-booking-bar button { grid-template-columns: 1fr auto; }
  .mobile-booking-bar em { display: none; }
}


/* ==========================================================
   V5 — ajustements demandés
   ========================================================== */

/* 1. Matchs : vraies cards séparées, 2 par ligne, image en haut */
.dx-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.travel-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 138px auto auto;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
}

.travel-img {
  min-height: 138px;
  height: 138px;
}

.travel-badge {
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
}

.travel-info {
  padding: 13px 14px 10px;
  align-content: start;
}

.travel-meta {
  gap: 6px;
}

.travel-info h3 {
  min-height: 46px;
  font-size: clamp(19px, 2vw, 23px);
}

.travel-price {
  padding: 0 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.travel-price span {
  display: none;
}

.travel-price strong {
  font-size: 20px;
}

.travel-price em {
  min-width: 82px;
}

/* 2. Nombre de places : boutons hauteur identique + zone warning réservée */
.dx-split-section {
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
}

.dx-split-section > div:first-child {
  grid-column: 1;
  grid-row: 1;
}

.dx-counter-card {
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: 68px 1fr 68px;
  align-items: stretch;
}

.dx-counter-btn {
  width: 68px;
  height: auto;
  min-height: 68px;
}

.dx-counter-value {
  min-height: 68px;
}

.dx-warning {
  grid-column: 1;
  grid-row: 2;
  min-height: 42px;
}

.dx-warning.is-hidden {
  visibility: hidden;
}

.dx-split-section .dx-action-row {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: 14px;
}

/* 3. Départ + membre : même ligne avec un titre */
.form-row.align-end {
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: start;
}

.member-field {
  margin-bottom: 14px;
}

.member-field .traveller-toggle {
  width: 100%;
}

.traveller-toggle {
  min-height: 46px;
  justify-content: flex-start;
}

.dx-total-preview span::after {
  content: "";
}

/* 4. Aside : quand on est déjà au paiement, on évite le bouton doublon */
.booking-actions:has(.btn:only-child) {
  padding-top: 12px;
}

@media (max-width: 900px) {
  .dx-results {
    grid-template-columns: 1fr;
  }

  .travel-card {
    grid-template-rows: 150px auto auto;
  }

  .travel-img {
    height: 150px;
    min-height: 150px;
  }

  .travel-info h3 {
    min-height: 0;
  }

  .dx-split-section {
    grid-template-columns: 1fr;
  }

  .dx-split-section > div:first-child,
  .dx-counter-card,
  .dx-warning,
  .dx-split-section .dx-action-row {
    grid-column: 1;
    grid-row: auto;
  }

  .dx-counter-card {
    grid-template-columns: 58px 1fr 58px;
  }

  .dx-counter-btn {
    width: 58px;
    min-height: 64px;
  }

  .dx-warning {
    margin-top: 10px;
  }

  .dx-split-section .dx-action-row {
    margin-top: 10px;
  }
}

@media (max-width: 760px) {
  .travel-card {
    grid-template-columns: 1fr;
    grid-template-rows: 132px auto auto;
    min-height: 0;
  }

  .travel-img {
    width: auto;
    height: 132px;
    min-height: 132px;
  }

  .travel-price {
    grid-column: auto;
    padding: 0 12px 12px;
  }

  .form-row.align-end {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .travel-card {
    grid-template-columns: 1fr;
    grid-template-rows: 118px auto auto;
  }

  .travel-img {
    width: auto;
    min-height: 118px;
    height: 118px;
  }

  .dx-counter-card {
    grid-template-columns: 52px 1fr 52px;
  }

  .dx-counter-btn {
    width: 52px;
    min-height: 62px;
  }
}



/* ==========================================================
   PAGES RESULTAT : confirmation / erreur
   ========================================================== */

.confirm-wrap,
.error-wrap {
  width: min(760px, calc(100vw - 32px));
  margin: 42px auto 90px;
  color: var(--text);
}

.confirm-hero,
.error-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px;
  text-align: center;
  box-shadow: 0 16px 38px rgba(23, 24, 28, .07);
}

.confirm-icon,
.error-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f2f2ef;
  font-size: 34px;
}

.confirm-title,
.error-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 6vw, 52px);
  line-height: .95;
  font-weight: 950;
  letter-spacing: -.075em;
}

.confirm-title span {
  color: var(--red);
}

.confirm-sub,
.error-msg,
.error-hint {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.error-msg {
  color: var(--text);
  font-weight: 750;
}

.error-hint {
  margin-top: 8px;
  font-size: 14px;
}

.error-actions,
.confirm-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.error-ref {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}

.error-ref code {
  padding: 3px 7px;
  border-radius: 8px;
  background: #f2f2ef;
  color: var(--red);
  font-weight: 850;
}

/* Référence paiement */

.confirm-ref {
  margin: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(23, 24, 28, .04);
}

.confirm-ref-label,
.confirm-montant-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.confirm-ref-val {
  margin-top: 3px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -.04em;
}

/* Recap confirmation */

.confirm-wrap .recap-card {
  margin: 16px 0;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(23, 24, 28, .055);
}

.confirm-wrap .recap-header {
  padding: 15px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: -.035em;
}

.confirm-wrap .recap-body {
  padding: 4px 18px;
}

.confirm-wrap .recap-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #eeeeea;
}

.confirm-wrap .recap-row:last-child {
  border-bottom: 0;
}

.confirm-wrap .recap-key {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 850;
}

.confirm-wrap .recap-val {
  color: var(--muted);
  text-align: right;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
}

.confirm-wrap .recap-val strong {
  color: var(--red);
  font-weight: 950;
}

/* Sous-total */

.confirm-montant {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: #f2f2ef;
  border-top: 1px solid var(--line);
}

.confirm-montant-val {
  color: var(--red);
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.055em;
}

/* Email notice */

.confirm-email-notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #245b3d;
  background: #ecf8f1;
  border: 1px solid #caead8;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.confirm-brand {
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: .18em;
}

.confirm-brand .y {
  color: var(--yellow);
}

.confirm-brand .r {
  color: var(--red);
}

/* Mobile */

@media (max-width: 640px) {
  .confirm-wrap,
  .error-wrap {
    width: calc(100vw - 22px);
    margin-top: 28px;
  }

  .confirm-hero,
  .error-wrap {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .confirm-ref {
    flex-direction: column;
    gap: 12px;
  }

  .confirm-ref > div {
    text-align: left !important;
  }

  .confirm-wrap .recap-row {
    flex-direction: column;
    gap: 5px;
  }

  .confirm-wrap .recap-val {
    text-align: left;
  }

  .confirm-montant {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn,
  .confirm-wrap > .btn {
    width: 100%;
  }
}