/* « Trouver mon voyage », the results as boarding passes (owner's approved mock-up, 9 Nov. 2026).
   A navy hero with the search on one line and the globe of the routes (trip_globe.css draws the globe), the payment
   strip said once, one ticket per suggestion with its tear-off stub, then the other destinations and one disclosure.
   Every selector is prefixed: all stylesheets load together. */

.trip-results {
  --trip-page: var(--color-surface-alt);
  --trip-hairline: rgb(11 23 48 / 9%);
  --trip-slate: #a9b6cc;
  --trip-link-on-dark: var(--ciq-link-on-dark, #93c5fd);
  --trip-link-on-dark-hover: var(--ciq-link-on-dark-hover, #dbeafe);
  --trip-coral: #984529;
  --trip-ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--trip-page);
  color: var(--color-text);
  line-height: 1.55;
}

.trip-results__page { padding-block: var(--space-5) var(--space-8); }
/* Resets scoped to this page's own components: the shared partials inside (state panel, evidence levels) keep theirs. */
/* Specificity of one class (:where), so that every component rule below, later in the file, wins over it. */
.trip-results :where(.trip-results__hero, .trip-pay, .trip-ticket, .trip-results__section-title, .trip-results__more, .trip-results__read-body) :where(h1, h2, h3, h4, p, ol, ul) { margin: 0; max-width: none; }
.trip-results :where(.trip-results__hero, .trip-pay, .trip-ticket) :where(ol, ul) { padding: 0; list-style: none; }
/* Low specificity (:where): the links on the navy hero and strip set their own colour. */
.trip-results :where(a:not(.button)) { color: var(--color-blue-dark); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.trip-results :where(a:not(.button)):hover { color: var(--color-blue); }
.trip-results__icon { width: 1.125rem; height: 1.125rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* The hero: the search, the trust line, the globe. */
.trip-results__hero { position: relative; overflow: hidden; background: var(--color-navy); color: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; isolation: isolate; }
.trip-results__hero--alone { border-radius: var(--radius-lg); }
.trip-results__hero :is(a, button, summary):focus-visible,
.trip-pay :is(a, button):focus-visible { outline-color: var(--trip-link-on-dark); box-shadow: none; }
.trip-results__top { position: relative; min-height: 23.5rem; padding: var(--space-7) var(--space-7) 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.trip-results__top:not(.trip-results__top--globe) { min-height: 0; }
.trip-results__top:not(.trip-results__top--globe) .trip-results__text { max-width: none; }
/* Wide screens: the text keeps to the left of the globe, whatever the length of the search. */
.trip-results__text { position: relative; z-index: 1; max-width: min(34rem, 46%); }
.trip-results__hero h1 { max-width: 29rem; color: #fff; font-size: clamp(2rem, 1.45rem + 1.6vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
/* The search: its items wrap as text, separated by middots; « Modifier » stays on the right, centred. */
.trip-results__search { margin-top: var(--space-5); display: flex; width: fit-content; max-width: 100%; align-items: center; gap: var(--space-3); padding: 0.375rem 0.375rem 0.375rem var(--space-4); border: 1px solid rgb(255 255 255 / 18%); border-radius: var(--radius-md); background: rgb(11 23 48 / 72%); font-size: 0.9375rem; font-weight: 600; }
.trip-results__search-items { min-width: 0; line-height: 1.6; }
.trip-results__search-item { white-space: nowrap; }
.trip-results__search-item:not(:last-child)::after { content: "·"; margin-left: 0.4em; color: var(--trip-slate); }
.trip-results__edit-form { display: contents; }
.trip-results__edit { flex: none; display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.25rem; padding: var(--space-1) var(--space-3); border: 0; border-radius: 0.625rem; background: rgb(255 255 255 / 10%); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background-color 160ms var(--trip-ease); }
.trip-results__edit:hover { background: rgb(255 255 255 / 18%); color: #fff; }
.trip-results__edit .trip-results__icon { width: 1rem; height: 1rem; }
.trip-results__trust { margin-top: var(--space-4); max-width: 27rem; color: var(--trip-slate); font-size: var(--text-sm); line-height: 1.55; }
.trip-results__trust .trip-results__warning { display: inline; margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.trip-results__trust a { color: var(--trip-link-on-dark); }
.trip-results__trust a:hover { color: var(--trip-link-on-dark-hover); }
.trip-results__globe { position: absolute; inset: 0 0 0 auto; width: 66%; z-index: 0; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }

/* The payment strip: attached under the hero on wide screens, after the tickets on phones. */
.trip-pay { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--space-4) 2.5rem; padding: 1.125rem var(--space-7); border-top: 1px solid rgb(255 255 255 / 10%); border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: #122242; color: #fff; }
.trip-pay__only-phone { display: none; }
.trip-pay__flows { display: grid; gap: var(--space-2); }
.trip-pay__flow { display: flex; align-items: center; gap: var(--space-3); font-weight: 700; font-size: 0.9375rem; }
.trip-pay__label { color: var(--trip-slate); font-weight: 600; margin-right: var(--space-1); }
.trip-pay__wallet { padding: 0.375rem var(--space-3); border-radius: 0.625rem; background: rgb(255 255 255 / 10%); white-space: nowrap; }
.trip-pay__arrow { display: grid; justify-items: center; gap: 0.125rem; color: var(--trip-slate); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }
.trip-pay__arrow svg { width: 7.5rem; height: 0.625rem; fill: none; stroke: var(--color-cyan); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.trip-pay__num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.trip-pay__note { color: var(--trip-slate); font-size: var(--text-sm); }
.trip-pay__note strong { color: #fff; font-weight: 700; }
.trip-pay__note a { color: var(--trip-link-on-dark); white-space: nowrap; }
.trip-pay__note a:hover { color: var(--trip-link-on-dark-hover); }

/* The tickets. */
.trip-results__tickets { margin-top: var(--space-5); display: grid; gap: var(--space-4); }
.trip-ticket { position: relative; display: flex; background: var(--color-surface, #fff); border-radius: 1.125rem; box-shadow: 0 0 0 1px var(--trip-hairline), var(--elevation-1); transition: box-shadow 220ms var(--trip-ease); scroll-margin-top: var(--space-4); }
.trip-ticket.is-focus { box-shadow: 0 0 0 1.5px var(--color-blue), var(--elevation-2); }
.trip-ticket__main { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1.25rem 2.5rem; padding: var(--space-5) var(--space-6) 1.125rem 1.75rem; align-content: start; }
.trip-ticket__dest { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) 0.875rem; align-content: start; }
.trip-ticket__rank { grid-row: span 2; display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-top: 0.125rem; border-radius: 50%; background: var(--color-navy); color: #fff; font-weight: 800; font-size: 0.9375rem; }
.trip-ticket h3 { color: var(--color-navy); font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; }
.trip-ticket__country { color: var(--color-muted); }
.trip-ticket__match { grid-column: 2; margin-top: var(--space-2); display: inline-flex; align-items: center; gap: 0.375rem; color: var(--color-positive); font-size: var(--text-sm); font-weight: 600; }
.trip-ticket__match + .trip-ticket__match { margin-top: 0; }
.trip-ticket__match .trip-results__icon { width: 1rem; height: 1rem; }
.trip-ticket__match--sun { color: #8a5a00; }

.trip-ticket__route { display: flex; align-items: center; gap: 0.875rem; }
.trip-ticket__code { font-weight: 800; font-size: 1.0625rem; letter-spacing: 0.04em; color: var(--color-navy); }
.trip-ticket__track { position: relative; flex: 1; height: 1.5rem; display: grid; place-items: center; }
.trip-ticket__track::before { content: ""; position: absolute; inset: 50% 0 auto; border-top: 2px dashed #c3cfe0; }
.trip-ticket__track::after { content: ""; position: absolute; right: 0; top: calc(50% - 3px); width: 8px; height: 8px; border-radius: 50%; background: var(--color-navy); }
.trip-ticket__start { position: absolute; left: 0; top: calc(50% - 3px); width: 8px; height: 8px; border-radius: 50%; background: var(--color-surface, #fff); box-shadow: inset 0 0 0 2px var(--color-navy); }
.trip-ticket__plane { position: relative; display: grid; place-items: center; width: 2.25rem; background: var(--color-surface, #fff); color: var(--color-blue); }
.trip-ticket__plane .trip-results__icon { width: 1.25rem; height: 1.25rem; transform: rotate(45deg); transition: transform 500ms var(--trip-ease); }
.trip-ticket:hover .trip-ticket__plane .trip-results__icon,
.trip-ticket.is-focus .trip-ticket__plane .trip-results__icon { transform: translateX(10px) rotate(45deg); }
.trip-ticket__facts { margin-top: var(--space-1); color: var(--color-muted); font-size: var(--text-sm); text-align: center; }
.trip-ticket__season { margin-top: 0.875rem; display: flex; align-items: center; gap: 0.875rem; font-size: var(--text-xs); color: var(--color-muted); }
.trip-ticket__months { display: grid; grid-template-columns: repeat(12, 1.375rem); gap: 2px; }
.trip-ticket__months li { display: grid; place-items: center; height: 1.375rem; border-radius: 0.3125rem; font-size: 0.6875rem; font-weight: 700; color: #8a99ad; background: #f1f4f9; }
.trip-ticket__months li.is-on { background: #d3e4fb; color: var(--color-navy); }
.trip-ticket__months li.is-pick { background: var(--color-blue); color: #fff; box-shadow: 0 0 0 2px var(--color-surface, #fff), 0 0 0 3.5px var(--color-blue); }
.trip-ticket__season strong { color: var(--color-text); font-weight: 600; }

/* The footer row: the disclosure's summary on the left, the hotel line on the right; the details open full width
   under the row (the hotel line shares the summary's row, CSS grid, no script). */
.trip-ticket__more { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--space-1) var(--space-5); padding-top: var(--space-3); border-top: 1px solid #e7ecf4; font-size: var(--text-sm); color: var(--color-muted); }
.trip-ticket__details { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
.trip-ticket__hotels { grid-column: 2; grid-row: 1; position: relative; z-index: 1; display: flex; align-items: center; min-height: 2.75rem; }
.trip-ticket__hotels .travel-partner-links--line { flex: 0 1 auto; flex-wrap: wrap; gap: 0 var(--space-2); font-size: var(--text-sm); }
.trip-ticket__hotels .travel-partner-links__label { font-weight: 400; color: var(--color-muted); }
.trip-ticket__hotels .travel-partner-links__inline a { font-weight: 600; }
.trip-ticket__toggle { display: inline-flex; width: fit-content; align-items: center; gap: var(--space-1); min-height: 2.75rem; cursor: pointer; font-weight: 600; color: var(--color-blue-dark); list-style: none; }
.trip-ticket__toggle::-webkit-details-marker { display: none; }
.trip-ticket__toggle:hover { color: var(--color-blue); }
.trip-ticket__toggle .trip-results__icon { width: 1rem; height: 1rem; transition: transform 220ms var(--trip-ease); }
.trip-ticket__details[open] > .trip-ticket__toggle .trip-results__icon { transform: rotate(180deg); }
.trip-ticket__detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); padding: var(--space-3) 0 var(--space-3); font-size: var(--text-sm); }
.trip-ticket__detail h4 { margin: 0 0 0.375rem; color: var(--color-navy); font-size: var(--text-sm); letter-spacing: 0; font-weight: 700; }
.trip-ticket__detail li { padding-block: var(--space-1); color: var(--color-muted); }
.trip-ticket__detail li + li { border-top: 1px solid #edf1f6; }
.trip-ticket__detail li b { color: var(--color-text); font-weight: 600; }
.trip-ticket__detail .trip-ticket__line { display: flex; justify-content: space-between; gap: var(--space-3); }
.trip-ticket__line b { text-align: right; }
.trip-ticket__group > p,
.trip-ticket__transfer,
.trip-ticket__group .travel-estimate-sources { margin-top: var(--space-2); color: var(--color-muted); }
.trip-ticket__transfer p + p { margin-top: var(--space-1); }
.trip-ticket__transfer strong,
.trip-ticket__group .travel-estimate-sources strong { color: var(--color-text); font-weight: 600; }
.trip-ticket__group .travel-estimate-sources ul { padding-left: var(--space-4); list-style: disc; }
.trip-ticket__group .travel-estimate-sources li { border: 0; padding-block: 0.125rem; }

/* The stub: notches top and bottom, a dashed perforation. */
.trip-ticket__stub { position: relative; flex: none; width: 19.5rem; display: flex; flex-direction: column; justify-content: center; gap: 0.125rem; padding: var(--space-5) 1.75rem; border-left: 2px dashed #cdd7e6; }
.trip-ticket__stub::before,
.trip-ticket__stub::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--trip-page); box-shadow: inset 0 0 0 1px var(--trip-hairline); }
.trip-ticket__stub::before { top: -11px; clip-path: inset(calc(50% - 1px) 0 0 0); }
.trip-ticket__stub::after { bottom: -11px; clip-path: inset(0 0 calc(50% - 1px) 0); }
.trip-ticket__for { color: var(--color-muted); font-size: var(--text-xs); font-weight: 600; }
.trip-ticket__price strong { display: block; font-weight: inherit; }
.trip-ticket__amount { display: block; color: var(--color-navy); font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trip-ticket__unit { display: block; color: var(--color-muted); font-size: var(--text-sm); font-weight: 400; }
.trip-ticket__evidence { color: var(--color-muted); font-size: var(--text-xs); }
.trip-ticket__evidence:empty { display: none; }
.trip-ticket .trip-ticket__evidence :is(.programs-pill, .catalogue-row__badge) { display: inline; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--color-muted); font-size: inherit; font-weight: 600; line-height: inherit; vertical-align: baseline; }
.trip-ticket .trip-ticket__evidence a.programs-pill { color: var(--color-blue-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.trip-ticket .trip-ticket__evidence a.programs-pill:hover { color: var(--color-blue); }
.trip-ticket .trip-ticket__evidence :is(.programs-pill, .catalogue-row__badge) ~ :is(.programs-pill, .catalogue-row__badge)::before { content: "·"; display: inline-block; margin-right: 0.3em; color: var(--color-muted); text-decoration: none; }
.trip-ticket__status { margin-top: 0.625rem; display: inline-flex; align-items: center; gap: 0.375rem; font-size: var(--text-sm); font-weight: 700; }
.trip-ticket__status .trip-results__icon { width: 1rem; height: 1rem; }
.trip-ticket__status--ok { color: var(--color-positive); }
.trip-ticket__status--short { color: var(--trip-coral); }
.trip-ticket__pay { margin-top: var(--space-1); color: var(--color-muted); font-size: var(--text-xs); }
.trip-ticket__prepare { margin-top: 0.875rem; }
.trip-ticket__prepare .button { width: 100%; gap: var(--space-2); }
.trip-ticket__prepare .button--primary .trip-results__icon { transition: transform 200ms var(--trip-ease); }
.trip-ticket__prepare .button--primary:hover .trip-results__icon { transform: translateX(3px); }

/* Almost within reach. */
.trip-results__section-title { margin: 2.75rem 0 0.875rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-4); }
.trip-results__section-title h2 { color: var(--color-navy); font-size: clamp(1.375rem, 1.3rem + 0.4vw, 1.625rem); letter-spacing: -0.02em; line-height: 1.2; font-weight: 800; }
.trip-results__section-title p { color: var(--color-muted); }
.trip-ticket--almost { box-shadow: none; background: transparent; border: 1.5px dashed #c2cddd; }
.trip-ticket--almost.is-focus { border-color: var(--trip-coral); box-shadow: none; }
.trip-ticket--almost .trip-ticket__rank { background: transparent; color: var(--trip-coral); box-shadow: inset 0 0 0 1.5px var(--trip-coral); }
.trip-ticket--almost :is(.trip-ticket__plane, .trip-ticket__start) { background: var(--trip-page); }
.trip-ticket--almost .trip-ticket__stub::before,
.trip-ticket--almost .trip-ticket__stub::after { display: none; }

/* The other destinations and how to read the prices. */
.trip-results__suggestions > .state-panel { margin-top: var(--space-5); }
.trip-results__suggestions > [data-partner-note] { margin-top: var(--space-3); }
.trip-results__more { margin-top: 2.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); padding: var(--space-5) 0; border-block: 1px solid var(--color-border); }
.trip-results__more p { font-size: var(--text-md); color: var(--color-text); }
.trip-results__more strong { font-weight: 800; color: var(--color-navy); }
.trip-results__counters { display: block; color: var(--color-muted); font-size: var(--text-sm); }
.trip-results__more .button { gap: var(--space-2); }
.trip-results__read { margin-top: var(--space-5); font-size: 0.9375rem; color: var(--color-muted); }
.trip-results__read > summary { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; cursor: pointer; font-weight: 700; color: var(--color-navy); list-style: none; }
.trip-results__read > summary::-webkit-details-marker { display: none; }
.trip-results__read > summary .trip-results__icon { width: 1rem; height: 1rem; transition: transform 220ms var(--trip-ease); }
.trip-results__read[open] > summary .trip-results__icon { transform: rotate(180deg); }
.trip-results__read-body { display: grid; gap: var(--space-3); max-width: 68ch; padding-top: var(--space-1); }
.trip-results__read-body .travel-evidence-levels,
.trip-results__read-body .programs-limitations { margin: 0; }

/* Phone and tablet. */
@media (max-width: 62rem) {
  .trip-ticket__main { grid-template-columns: 1fr; gap: var(--space-4); }
  .trip-ticket__detail { grid-template-columns: 1fr; gap: var(--space-4); }
  .trip-ticket__stub { width: 16.5rem; }
  .trip-ticket__more { grid-template-columns: 1fr; }
  .trip-ticket__hotels { grid-column: 1; grid-row: 2; min-height: 0; }
  .trip-pay { grid-template-columns: 1fr; gap: 0.625rem; }
  /* The hero stacks: the text full width, the globe under it in its window (trip_globe.css, same breakpoint). */
  .trip-results__top { min-height: 0; display: block; padding-bottom: var(--space-5); }
  .trip-results__text { max-width: none; }
  .trip-results__globe { position: relative; inset: auto; width: auto; max-width: 40rem; margin: var(--space-4) auto 0; -webkit-mask-image: none; mask-image: none; border-radius: var(--radius-md); overflow: hidden; }
}

@media (max-width: 44rem) {
  .trip-results > .shell { width: calc(100% - 2rem); }
  .trip-results__page { display: flex; flex-direction: column; padding-top: var(--space-3); }
  .trip-results__page > * { order: 4; }
  .trip-results__page > .trip-results__hero { order: 1; }
  .trip-results__page > .trip-results__suggestions { order: 2; }
  .trip-results__page > .trip-pay { order: 3; }
  .trip-results__hero,
  .trip-results__hero--alone { border-radius: 1.25rem; }
  .trip-results__top { min-height: 0; padding: 1.25rem 1.25rem 0; display: block; }
  .trip-results__top:not(.trip-results__top--globe) { padding-bottom: 1.25rem; }
  .trip-results__text { max-width: none; }
  .trip-results__hero h1 { max-width: none; font-size: 1.75rem; }
  .trip-results__search { display: block; width: auto; margin-top: 0.625rem; padding: 0; border: 0; border-radius: 0; background: none; font-size: var(--text-sm); color: #dbe5f5; }
  .trip-results__search-items { display: inline; line-height: inherit; }
  .trip-results__search-item { white-space: normal; }
  .trip-results__search-item::after,
  .trip-results__search-item:not(:last-child)::after { content: " · "; margin-left: 0; color: var(--trip-slate); }
  .trip-results__edit { display: inline; min-height: 0; padding: 0; background: none; color: var(--trip-link-on-dark); text-decoration: underline; text-underline-offset: 0.18em; }
  .trip-results__edit:hover { background: none; color: var(--trip-link-on-dark-hover); }
  .trip-results__edit .trip-results__icon { display: none; }
  .trip-results__trust { margin-top: var(--space-2); font-size: var(--text-xs); }
  .trip-results__globe { max-width: none; margin: var(--space-1) -1.25rem 0; border-radius: 0; }

  .trip-pay { margin-top: var(--space-4); padding: var(--space-4) 1.25rem 1.125rem; gap: 0.625rem; border-top: 0; border-radius: 1.25rem; background: var(--color-navy); }
  .trip-pay__only-phone { display: inline; }
  .trip-pay__flow { flex-wrap: wrap; gap: var(--space-2) 0.375rem; font-size: var(--text-xs); }
  .trip-pay__label { flex-basis: 100%; color: #fff; font-size: var(--text-base); font-weight: 800; }
  .trip-pay__wallet { padding: 0.375rem 0.625rem; }
  .trip-pay__arrow .trip-pay__num { display: none; }
  .trip-pay__arrow svg { width: 1.25rem; }
  .trip-pay__note { font-size: var(--text-sm); }

  .trip-results__tickets { margin-top: var(--space-4); }
  .trip-ticket { flex-direction: column; }
  .trip-ticket__main { padding: 1.25rem 1.25rem var(--space-3); }
  .trip-ticket h3 { font-size: 1.5rem; }
  .trip-ticket__season { flex-direction: column; align-items: flex-start; gap: 0.375rem; }
  .trip-ticket__months { grid-template-columns: repeat(12, minmax(0, 1fr)); width: 100%; }
  .trip-ticket__stub { width: auto; padding: 1.125rem 1.25rem 1.25rem; border-left: 0; border-top: 2px dashed #cdd7e6; }
  .trip-ticket__stub::before { left: -11px; top: -12px; clip-path: inset(0 0 0 calc(50% - 1px)); }
  .trip-ticket__stub::after { left: auto; right: -11px; bottom: auto; top: -12px; clip-path: inset(0 calc(50% - 1px) 0 0); }
  .trip-ticket__amount { font-size: 1.625rem; }
  .trip-results__section-title { margin-top: var(--space-6); }
  .trip-results__more { margin-top: var(--space-6); }
  .trip-results__more .button { width: 100%; }
}
