/* ══════════════════════════════════════════════════════
   REFUEL — Design System "Terminal de Départ"
   Palette : Nuit bleue + Ambre chaud + Givre
   Typographie : Syne (display) · JetBrains Mono (data) · Inter (corps)
══════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────── */
:root {
  --bg:          #0b0c17;
  --bg-raised:   #0f1124;
  --surface:     #141629;
  --surface-2:   #1a1d35;
  --border:      rgba(255,255,255,0.07);
  --border-md:   rgba(255,255,255,0.12);

  --accent:      #ddb96a;
  --accent-dim:  rgba(221,185,106,0.12);
  --accent-glow: rgba(221,185,106,0.25);
  --frost:       #5c9eff;
  --frost-dim:   rgba(92,158,255,0.12);
  --green:       #4ade80;
  --green-dim:   rgba(74,222,128,0.12);
  --purple:      #c084fc;
  --purple-dim:  rgba(192,132,252,0.12);
  --red:         #f87171;

  --text:        #edeae0;
  --text-2:      #9794ae;
  --text-3:      #4d4c68;

  --font-display: 'Syne', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --font-body:    'Inter', sans-serif;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   22px;

  --nav-h:       60px;
  --page-x:      clamp(1.25rem, 5vw, 5rem);
  --gap:         clamp(2rem, 5vw, 5rem);

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, button { -webkit-appearance: none; appearance: none; }
ul { list-style: none; }
.hidden { display: none !important; }

/* ── Navigation ────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-x);
  border-bottom: 1px solid var(--border);
  background: rgba(11,12,23,0.8);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.logo-bi    { color: var(--text-2); }
.logo-care  { color: var(--text); }
.logo-fuel  { color: var(--accent); }

.nav-end {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  color: var(--text-3);
}
.nav-pill {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  border-radius: 99px;
  padding: .2rem .65rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.nav-sep { opacity: .3; }
.nav-sub { font-size: .8rem; color: var(--text-3); }

/* ── Views ─────────────────────────────────────────── */
.view {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════════════════
   VUE 1 — FORMULAIRE
══════════════════════════════════════════════════════ */
#view-form {
  justify-content: space-between;
}

.split {
  display: grid;
  grid-template-columns: 52fr 48fr;
  gap: var(--gap);
  align-items: center;
  flex: 1;
  padding: clamp(2rem, 6vh, 5rem) var(--page-x);
}

/* ── Côté gauche : héros budget ── */
.split-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: var(--gap);
  border-right: 1px solid var(--border);
}

.tagline-top {
  font-family: var(--font-display);
  font-size: clamp(.85rem, 1.5vw, 1rem);
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.budget-hero {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  line-height: 1;
  margin-bottom: .25rem;
  user-select: none;
}

.budget-num {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: .9;
  transition: color .2s var(--ease-out);
}

.budget-eur {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 400;
  color: var(--accent);
  opacity: .5;
  transition: color .2s var(--ease-out);
}

.tagline-bottom {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--text);
  margin-top: .5rem;
  margin-bottom: 2rem;
  line-height: 1.1;
}
.tagline-bottom em {
  font-style: normal;
  color: var(--accent);
}

/* Slider zone */
.slider-zone {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
}

.slider-track-visual {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: visible;
}

.slider-fill-visual {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .05s linear;
  width: 23%;
}

.budget-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.slider-bounds {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--text-3);
  margin-top: 1rem;
  font-family: var(--font-mono);
}
.slider-bounds span:nth-child(2) {
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: .7rem;
}

/* thumb personnalisé via JS class */
.slider-thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 16px var(--accent-glow);
  transform: translateX(-50%);
  pointer-events: none;
  transition: box-shadow .2s var(--ease-out);
  z-index: 3;
}
.slider-zone:hover .slider-thumb,
.slider-zone:focus-within .slider-thumb {
  box-shadow: 0 0 0 5px var(--accent-dim), 0 0 24px var(--accent-glow);
}

/* ── Côté droit : formulaire ── */
.split-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: .5rem;
}

#search-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field { display: flex; flex-direction: column; gap: .5rem; }

.field-label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-ico {
  position: absolute;
  left: .9rem;
  color: var(--text-3);
  pointer-events: none;
  flex-shrink: 0;
}

.field-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .85rem 1rem .85rem 2.6rem;
  outline: none;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.field-input::placeholder { color: var(--text-3); }
.field-input:focus {
  border-color: var(--accent);
  background: var(--bg-raised);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field-input::-webkit-calendar-picker-indicator {
  filter: invert(.4);
  cursor: pointer;
  margin-right: .25rem;
}

.field-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Autocomplete */
.autocomplete-root { position: relative; }

.ac-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
}
.ac-list.ac-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ac-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1rem;
  cursor: pointer;
  font-size: .9rem;
  transition: background .12s;
}
.ac-item:hover, .ac-item.ac-active { background: var(--surface-2); }
.ac-flag { font-size: 1rem; }
.ac-name { color: var(--text); font-weight: 500; }
.ac-country { color: var(--text-3); font-size: .8rem; }

/* CO2 toggle */
.co2-toggle { border: none; }
.co2-label {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: .03em;
  cursor: pointer;
  list-style: none;
  transition: color .15s;
}
.co2-label::-webkit-details-marker { display: none; }
.co2-label:hover { color: var(--text-2); }
.co2-body { padding-top: .5rem; }
.co2-val {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: .85rem;
  margin-left: .35rem;
}

/* Form error */
.form-error {
  background: rgba(248,113,113,.1);
  border: 1px solid rgba(248,113,113,.25);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: .85rem;
  padding: .65rem 1rem;
}
.form-error:empty { display: none; }

/* Géolocalisation */
#origin-input { padding-right: 2.8rem; }

.geo-btn {
  position: absolute;
  right: .65rem;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border-md);
  border-radius: 50%;
  color: var(--text-2);
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
  flex-shrink: 0;
}
.geo-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.geo-spinner { display: none; }
.geo-btn.geo-loading .geo-icon    { display: none; }
.geo-btn.geo-loading .geo-spinner { display: block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Submit button */
.btn-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent);
  color: #0b0c17;
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .2s var(--ease-spring), box-shadow .2s var(--ease-out), background .15s;
  margin-top: .25rem;
}
.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-search:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn-search-text { flex: 1; text-align: left; }
.btn-arrow { flex-shrink: 0; transition: transform .2s var(--ease-out); }
.btn-search:hover .btn-arrow { transform: translateX(4px); }

/* Trust strip */
.trust-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem var(--page-x);
  border-top: 1px solid var(--border);
}
.trust-item { display: flex; gap: .4rem; align-items: baseline; }
.t-n {
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
}
.t-l { font-size: .75rem; color: var(--text-3); }
.trust-dot {
  width: 3px; height: 3px;
  background: var(--text-3);
  border-radius: 50%;
  opacity: .4;
}

/* ══════════════════════════════════════════════════════
   VUE 2 — CHARGEMENT
══════════════════════════════════════════════════════ */
#view-loading {
  justify-content: center;
  align-items: center;
  padding: var(--page-x);
}

.loading-stage {
  max-width: 520px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.loading-eyebrow {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

.loading-counter {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .1rem;
  line-height: 1;
}
.loading-count {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.loading-total {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-3);
}

.loading-track {
  height: 2px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
}
.loading-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width .4s var(--ease-out);
}

.loading-msg {
  font-size: .9rem;
  color: var(--text-2);
}

.loading-tags {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.loading-tag {
  font-size: .72rem;
  padding: .2rem .55rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-3);
  background: var(--surface);
}
.loading-tag.done {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-dim);
}

/* ══════════════════════════════════════════════════════
   VUE 3 — RÉSULTATS
══════════════════════════════════════════════════════ */
#view-results {
  padding: 0;
  gap: 0;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--page-x);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  background: rgba(11,12,23,0.9);
  backdrop-filter: blur(10px);
  z-index: 90;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-2);
  font-weight: 500;
  padding: .4rem .65rem;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.btn-back:hover { color: var(--text); background: var(--surface); }

.results-meta {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-3);
  letter-spacing: .02em;
  text-align: right;
}

.results-intro {
  padding: 2rem var(--page-x) 1.25rem;
}
.results-intro-head {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}
.results-intro-head em {
  color: var(--accent);
  font-style: normal;
}
.results-intro-sub {
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--text-3);
}

/* ── TICKET CARD ──────────────────────────────────── */
.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 var(--page-x);
  padding-bottom: 2rem;
}

.ticket {
  display: grid;
  grid-template-columns: 6px 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 1rem;
  background: var(--surface);
  animation: ticketIn .4s var(--ease-out) both;
}

@keyframes ticketIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ticket-stripe { background: var(--text-3); }
.ticket[data-label="serendipite"]  .ticket-stripe { background: var(--accent); }
.ticket[data-label="antipodique"]  .ticket-stripe { background: var(--purple); }
.ticket[data-label="decouverte"]   .ticket-stripe { background: var(--frost); }
.ticket[data-label="equilibre"]    .ticket-stripe { background: var(--green); }
.ticket[data-label="classique"]    .ticket-stripe { background: var(--text-3); }

.ticket-body { padding: 1.5rem 1.75rem; }

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ticket-meta { display: flex; align-items: center; gap: .75rem; }

.ticket-rank {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: .08em;
}

.ticket-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .7rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-width: 1px;
  border-style: solid;
}
.badge-serendipite  { background: var(--accent-dim);  color: var(--accent);  border-color: var(--accent-glow); }
.badge-antipodique  { background: var(--purple-dim);  color: var(--purple);  border-color: rgba(192,132,252,.3); }
.badge-decouverte   { background: var(--frost-dim);   color: var(--frost);   border-color: rgba(92,158,255,.3); }
.badge-equilibre    { background: var(--green-dim);   color: var(--green);   border-color: rgba(74,222,128,.3); }
.badge-classique    { background: var(--surface-2);   color: var(--text-3);  border-color: var(--border); }

.ticket-score {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-3);
}
.ticket-score strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-2);
}

/* Route */
.ticket-route {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  letter-spacing: -.01em;
}
.route-stop { color: var(--text-2); }
.route-stop.surprise {
  color: var(--text);
  position: relative;
}
.route-stop.surprise::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: .6;
}
.route-stop.origin { color: var(--text-3); font-weight: 400; }
.route-arrow {
  color: var(--text-3);
  font-size: .8rem;
  font-family: var(--font-body);
  font-weight: 300;
}

/* Stats strip */
.ticket-stats {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.tstat {
  flex: 1;
  padding: .75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  border-right: 1px solid var(--border);
}
.tstat:last-child { border-right: none; }
.tstat-val {
  font-family: var(--font-mono);
  font-size: clamp(.9rem, 2vw, 1.1rem);
  font-weight: 700;
  color: var(--text);
}
.tstat-val.ok   { color: var(--green); }
.tstat-val.warn { color: var(--accent); }
.tstat-val.high { color: var(--red); }
.tstat-lbl {
  font-size: .68rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Ticket actions */
.ticket-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.btn-expand {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--text-2);
  font-weight: 500;
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-expand:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-md); }
.btn-expand-arrow { transition: transform .2s var(--ease-out); }
.btn-expand.open .btn-expand-arrow { transform: rotate(180deg); }

.btn-book {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: var(--accent);
  font-weight: 600;
  padding: .45rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-glow);
  background: var(--accent-dim);
  transition: background .15s, box-shadow .15s, transform .15s var(--ease-spring);
}
.btn-book:hover {
  background: rgba(221,185,106,.2);
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
}

.ticket-reach {
  margin-left: auto;
  font-size: .75rem;
  color: var(--frost);
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* Legs expand panel */
.legs-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s var(--ease-out), opacity .25s var(--ease-out);
  opacity: 0;
}
.legs-panel.open {
  max-height: 600px;
  opacity: 1;
}
.legs-inner {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.legs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
}
.legs-table th {
  text-align: left;
  color: var(--text-3);
  font-weight: 500;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0 .75rem .5rem;
}
.legs-table td {
  padding: .6rem .75rem;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}
.legs-table tr.total-row td {
  border-top: 1px solid var(--border-md);
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: .85rem;
}
.leg-mode {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  padding: .15rem .45rem;
  border-radius: 99px;
  font-weight: 500;
  white-space: nowrap;
}
.mode-hsr      { background: var(--green-dim);  color: var(--green); }
.mode-ic       { background: var(--frost-dim);  color: var(--frost); }
.mode-regional { background: var(--frost-dim);  color: var(--frost); }
.mode-night    { background: var(--purple-dim); color: var(--purple); }
.mode-ferry    { background: rgba(34,211,238,.1); color: #22d3ee; }
.mode-plane    { background: rgba(248,113,113,.1); color: var(--red); }
.mode-bus      { background: var(--accent-dim); color: var(--accent); }
.mode-car_thermal { background: rgba(251,146,60,.1); color: #fb923c; }

.car-comparison {
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.car-label { font-size: .75rem; color: var(--text-3); }
.car-stats { display: flex; gap: 1.5rem; }
.car-stat  { font-family: var(--font-mono); font-size: .8rem; color: var(--text-2); }
.car-stat span { color: var(--red); }

/* ══════════════════════════════════════════════════════
   DISCLAIMER + FOOTER
══════════════════════════════════════════════════════ */
/* ── Cost breakdown — toujours visible sur la carte ── */
.cost-breakdown {
  margin: 1rem 0 .75rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cb-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: .5rem 1rem;
  align-items: center;
  padding: .55rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
  transition: background .12s;
}
.cb-row:hover { background: var(--surface); }
.cb-row-last  { border-bottom: none; }

.cb-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  background: var(--surface-2);
  border-radius: 50%;
  font-size: .65rem;
  font-family: var(--font-mono);
  color: var(--text-3);
  margin-right: .5rem;
  flex-shrink: 0;
}

.cb-leg   { color: var(--text-2); display: flex; align-items: center; min-width: 0; }
.cb-mode  { font-size: .73rem; color: var(--text-3); white-space: nowrap; }
.cb-price {
  font-family: var(--font-mono);
  font-size: .88rem;
  color: var(--text);
  white-space: nowrap;
  text-align: right;
}
.cb-cum {
  font-family: var(--font-mono);
  font-size: .73rem;
  color: var(--text-3);
  white-space: nowrap;
  text-align: right;
  min-width: 4rem;
}

.cb-src {
  display: inline-block;
  font-size: .6rem;
  font-family: var(--font-mono);
  margin-left: .2rem;
  vertical-align: middle;
  cursor: help;
}
.cb-src.cal  { color: var(--text-3); }
.cb-src.est  { color: var(--accent); opacity: .7; }
.cb-src.live { color: var(--green); }

.cb-total {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .5rem 1rem;
  align-items: center;
  padding: .65rem 1rem;
  background: var(--surface);
  border-top: 1px solid var(--border-md);
}
.cb-total-label {
  font-size: .75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cb-total-range {
  font-size: .72rem;
  font-family: var(--font-mono);
  color: var(--text-3);
}
.cb-total-price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

/* Badge source de prix dans le détail des legs */
.price-src {
  display: inline-block;
  font-size: .6rem;
  font-family: var(--font-mono);
  padding: 1px 4px;
  border-radius: 3px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.price-src.live      { background: rgba(74,222,128,.15); color: var(--green); border: 1px solid rgba(74,222,128,.3); }
.price-src.estimated { background: rgba(221,185,106,.12); color: var(--accent); border: 1px solid rgba(221,185,106,.25); }
.price-src.calibrated{ background: rgba(255,255,255,.05); color: var(--text-3); border: 1px solid var(--border); }

.no-results-hint {
  margin: 2rem var(--page-x);
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  color: var(--text-2);
  font-size: .9rem;
  line-height: 1.6;
}
.no-results-hint strong { color: var(--accent); font-family: var(--font-mono); }

.disclaimer {
  padding: 1.5rem var(--page-x);
  font-size: .72rem;
  color: var(--text-3);
  border-top: 1px solid var(--border);
}

.footer {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem var(--page-x);
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-3);
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--text-2);
}
.footer-sep { opacity: .25; }
.footer-link { transition: color .15s; }
.footer-link:hover { color: var(--text-2); }

/* ══════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════ */
.modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn .2s var(--ease-out);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  animation: modalIn .25s var(--ease-spring);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.modal-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }

.modal-body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; }

.modal-leg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: .75rem;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.modal-leg:hover { border-color: var(--border-md); background: var(--surface); }
.modal-leg-left { display: flex; flex-direction: column; gap: .2rem; }
.modal-leg-route { font-size: .9rem; font-weight: 500; color: var(--text); }
.modal-leg-op { font-size: .75rem; color: var(--text-3); }
.modal-leg-right {
  font-size: .72rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  display: flex; align-items: center; gap: .25rem;
}

.modal-note {
  padding: 1rem 1.5rem;
  font-size: .72rem;
  color: var(--text-3);
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split-left {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
  }
  .budget-num { font-size: clamp(4rem, 20vw, 8rem); }
  .budget-eur { font-size: clamp(2rem, 9vw, 4rem); }
  .tagline-bottom { font-size: clamp(1.2rem, 5vw, 2rem); }
  .trust-strip { flex-wrap: wrap; gap: .75rem 1.25rem; }
  .trust-dot { display: none; }
}

@media (max-width: 640px) {
  .ticket-stats {
    flex-wrap: wrap;
  }
  .tstat {
    flex: 1 1 45%;
    border-bottom: 1px solid var(--border);
  }
  .tstat:nth-child(n+3) { border-bottom: none; }
  .tstat:nth-child(2n) { border-right: none; }
  .ticket-route { font-size: .95rem; }
  .ticket-actions { flex-wrap: wrap; }
  .ticket-reach { margin-left: 0; width: 100%; }
  .field-duo { grid-template-columns: 1fr; }
  .legs-table { font-size: .72rem; }
  .legs-table th:nth-child(3),
  .legs-table td:nth-child(3) { display: none; }
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 4px; }

/* ── Focus visible ─────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════════════════
   DESTINATION CARDS — "À découvrir"
══════════════════════════════════════════════════════ */
.dest-cards {
  padding: 0 1.2rem .9rem;
}
.dest-cards-label {
  font-size: .63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  padding: .7rem 0 .55rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.dest-cards-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.dest-card {
  padding: .75rem 0 .8rem;
  border-bottom: 1px solid var(--border);
}
.dest-card:last-child { border-bottom: none; padding-bottom: 0; }
.dest-card-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .4rem;
}
.dest-flag { font-size: 1.15rem; line-height: 1; flex-shrink: 0; }
.dest-card-title {
  flex: 1;
  min-width: 0;
}
.dest-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
  display: block;
}
.dest-country {
  font-size: .68rem;
  color: var(--text-3);
  display: block;
  margin-top: .05rem;
}
.dest-nights {
  font-size: .71rem;
  font-family: var(--font-mono);
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--accent-dim);
  padding: .15rem .45rem;
  border-radius: 4px;
}
.dest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .5rem;
}
.dest-tag {
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border-md);
  border-radius: 4px;
  padding: .15rem .45rem;
}
.dest-pitch {
  font-size: .81rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}
.dest-discovery {
  display: inline-block;
  margin-top: .4rem;
  font-size: .68rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ══════════════════════════════════════════════════════
   BETA BANNER (Sprint 0)
══════════════════════════════════════════════════════ */
.beta-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--accent);
  color: #0b0c17;
  font-size: .78rem;
  font-weight: 600;
  padding: .45rem 1rem;
  min-height: 32px;
  flex-wrap: wrap;
}
.beta-banner-text { flex: 1; text-align: center; min-width: 0; }
.beta-banner-cta {
  background: rgba(11,12,23,.15);
  border-radius: var(--radius-sm);
  padding: .2rem .65rem;
  color: #0b0c17;
  white-space: nowrap;
  font-weight: 700;
  transition: background .15s;
}
.beta-banner-cta:hover { background: rgba(11,12,23,.28); }
.beta-banner-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #0b0c17;
  font-size: .95rem;
  line-height: 1;
  padding: 0 .25rem;
  opacity: .6;
  transition: opacity .15s;
}
.beta-banner-close:hover { opacity: 1; }
.beta-banner-hiding {
  animation: bannerSlideUp .3s ease forwards;
}
@keyframes bannerSlideUp {
  to { max-height: 0; padding: 0; opacity: 0; overflow: hidden; }
}

/* ══════════════════════════════════════════════════════
   NAV LINKS (Sprint 0)
══════════════════════════════════════════════════════ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: .82rem;
  color: var(--text-3);
  transition: color .15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); }
@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ══════════════════════════════════════════════════════
   HERO TAGLINE (Sprint 0)
══════════════════════════════════════════════════════ */
.hero-tagline {
  text-align: center;
  padding: 2.5rem var(--page-x) .5rem;
  max-width: 640px;
  margin: 0 auto;
}
.hero-line-1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 400;
  color: var(--text-3);
  line-height: 1.15;
  margin: 0;
}
.hero-line-2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin: 0 0 .75rem;
}
.hero-sub {
  font-size: .88rem;
  color: var(--text-3);
  margin: 0;
}

/* ══════════════════════════════════════════════════════
   FEATURE CARDS (Sprint 0)
══════════════════════════════════════════════════════ */
.features-section {
  max-width: var(--max-w);
  margin: 4rem auto 0;
  padding: 0 var(--page-x);
}
.features-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 2rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color .2s, transform .2s var(--ease-spring);
}
.feature-card:hover {
  border-color: var(--border-md);
  transform: translateY(-3px);
}
.feat-icon { font-size: 1.6rem; margin-bottom: .75rem; }
.feat-title {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.feat-body {
  font-size: .82rem;
  color: var(--text-3);
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════════════════════
   STEPPER "COMMENT ÇA MARCHE" (Sprint 0)
══════════════════════════════════════════════════════ */
.stepper-section {
  max-width: var(--max-w);
  margin: 3.5rem auto 0;
  padding: 0 var(--page-x) 2rem;
  text-align: center;
}
.stepper-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2rem;
}
.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  max-width: 200px;
}
.stepper-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.stepper-content { text-align: center; }
.stepper-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
  margin: 0 0 .25rem;
}
.stepper-desc {
  font-size: .78rem;
  color: var(--text-3);
  margin: 0;
  line-height: 1.5;
}
.stepper-arrow {
  font-size: 1.2rem;
  color: var(--text-3);
  margin-top: .9rem;
  flex-shrink: 0;
}
@media (max-width: 580px) {
  .stepper { flex-direction: column; align-items: center; }
  .stepper-arrow { transform: rotate(90deg); margin: 0; }
}
.stepper-more {
  margin-top: 1.5rem;
  font-size: .85rem;
}
.stepper-more a { color: var(--accent); }
.stepper-more a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════
   FOOTER ENRICHI (Sprint 0)
══════════════════════════════════════════════════════ */
.footer-rich {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding: 3rem var(--page-x) 2rem;
  max-width: 100%;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto 2rem;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col-brand {}
.footer-brand-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: .5rem;
}
.footer-brand-tagline {
  font-size: .78rem;
  color: var(--text-3);
  line-height: 1.55;
  margin: 0 0 1rem;
}
.footer-kofi {
  display: inline-block;
  font-size: .78rem;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .3rem .75rem;
  transition: color .15s, border-color .15s;
}
.footer-kofi:hover { color: var(--text); border-color: var(--border-md); }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 .85rem;
}
.footer-nav-link {
  display: block;
  font-size: .83rem;
  color: var(--text-2);
  margin-bottom: .5rem;
  transition: color .15s;
}
.footer-nav-link:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .73rem;
  color: var(--text-3);
}

/* ══════════════════════════════════════════════════════
   SEASON BADGE (Sprint 0)
══════════════════════════════════════════════════════ */
.season-badge {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .65rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: .15rem .45rem;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: .35rem;
}
.season-badge.summer  { background: rgba(221,185,106,.18); color: var(--accent); border: 1px solid rgba(221,185,106,.3); }
.season-badge.autumn  { background: rgba(255,140,50,.12);  color: #ff9a3c;       border: 1px solid rgba(255,140,50,.25); }
.season-badge.winter  { background: rgba(130,180,255,.12); color: #7ab7ff;       border: 1px solid rgba(130,180,255,.25); }
.season-badge.spring  { background: rgba(100,220,120,.12); color: var(--green);  border: 1px solid rgba(100,220,120,.25); }

/* ══════════════════════════════════════════════════════
   HÉBERGEMENT HINT (Sprint 0)
══════════════════════════════════════════════════════ */
.hebergement-hint {
  margin: .6rem 0 .1rem;
  padding: .6rem .9rem;
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  font-size: .78rem;
  color: var(--text-3);
  line-height: 1.4;
  border: 1px solid var(--border);
}
.hebergement-hint strong { color: var(--text-2); }

/* ══════════════════════════════════════════════════════
   MANIFESTE OVERLAY (Sprint 0)
══════════════════════════════════════════════════════ */
.manifeste-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(11,12,23,.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.manifeste-overlay.hidden { display: none; }
.manifeste-box {
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  animation: manifpop .25s var(--ease-spring);
}
@keyframes manifpop {
  from { transform: scale(.88); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.manifeste-popup-eyebrow {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .75rem;
}
.manifeste-popup-text {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 .5rem;
}
.manifeste-popup-sub {
  font-size: .78rem;
  color: var(--text-3);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  font-style: italic;
}
.manifeste-popup-btn {
  background: var(--accent);
  color: #0b0c17;
  border: none;
  border-radius: var(--radius);
  padding: .75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  width: 100%;
  transition: transform .2s var(--ease-spring), box-shadow .2s;
}
.manifeste-popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ══════════════════════════════════════════════════════
   TOAST POST-RÉSULTATS (Sprint 0)
══════════════════════════════════════════════════════ */
.refuel-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 400;
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .84rem;
  color: var(--text-2);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  transform: translateY(120%);
  opacity: 0;
  transition: transform .3s var(--ease-spring), opacity .3s;
  max-width: 320px;
}
.refuel-toast.visible {
  transform: translateY(0);
  opacity: 1;
}
.refuel-toast a { color: var(--accent); font-weight: 600; }
.refuel-toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: color .15s;
}
.refuel-toast-close:hover { color: var(--text); }

/* ── CO₂ toggle active indicator ────────────────────── */
.co2-toggle.co2-active > summary { color: var(--green); }
.co2-toggle.co2-active > summary::after {
  content: " ●";
  color: var(--green);
  font-size: .45rem;
  vertical-align: middle;
}
.budget-large-note {
  display: block;
  margin-top: .4rem;
  font-size: .72rem;
  color: var(--text-3);
  font-style: italic;
}

/* CO₂ filter active — green indicator on summary */
.co2-toggle.co2-active > summary { color: var(--green); }
.co2-toggle.co2-active > summary::after {
  content: " ●";
  color: var(--green);
  font-size: .45rem;
  vertical-align: middle;
}

/* High budget note under results intro */
.budget-large-note {
  display: block;
  margin-top: .4rem;
  font-size: .72rem;
  color: var(--text-3);
  font-style: italic;
}

/* ══════════════════════════════════════════════════════
   DEST PREVIEW BUTTON (in ticket)
══════════════════════════════════════════════════════ */
.dest-preview-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: .9rem 1.1rem;
  cursor: pointer;
  text-align: left;
  margin: .6rem 0;
  transition: border-color .2s, background .2s, transform .2s var(--ease-spring);
}
.dest-preview-btn:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.dest-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.dest-preview-eyebrow {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.dest-preview-open {
  font-size: .75rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.dest-preview-row {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.dest-preview-flags { font-size: 1.15rem; line-height: 1; }
.dest-preview-names {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
}

/* ══════════════════════════════════════════════════════
   DESTINATION POPUP FULL-SCREEN
══════════════════════════════════════════════════════ */
.dest-popup {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: var(--bg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: destPopIn .22s var(--ease-spring);
}
.dest-popup.hidden { display: none; }
@keyframes destPopIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dest-popup-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem var(--page-x) 4rem;
}
.dest-popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.dest-popup-eyebrow {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .35rem;
}
.dest-popup-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 .3rem;
}
.dest-popup-route {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-3);
  margin: 0;
}
.dest-popup-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-3);
  transition: color .15s, border-color .15s, background .15s;
}
.dest-popup-close:hover {
  color: var(--text);
  border-color: var(--border-md);
  background: var(--surface-2);
}
.dest-popup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) {
  .dest-popup-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .dest-popup-grid { grid-template-columns: 1fr; }
}

/* ── Carte ville dans le popup ──────────────────────── */
.dpop-city {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s var(--ease-spring);
}
.dpop-city::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.dpop-city:nth-child(1)::before { background: var(--accent); }
.dpop-city:nth-child(2)::before { background: var(--frost); }
.dpop-city:nth-child(3)::before { background: var(--green); }
.dpop-city:hover { border-color: var(--border-md); transform: translateY(-3px); }
.dpop-flag { font-size: 2.8rem; line-height: 1; }
.dpop-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.05;
  margin: 0;
}
.dpop-country {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.dpop-nights {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
}
.dpop-discovery {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 20px;
  align-self: flex-start;
}
.dpop-discovery.coup { background: rgba(221,185,106,.18); color: var(--accent); border: 1px solid rgba(221,185,106,.3); }
.dpop-discovery.vaut { background: rgba(100,220,120,.1);  color: var(--green);  border: 1px solid rgba(100,220,120,.25); }
.dpop-leg {
  font-family: var(--font-mono);
  font-size: .73rem;
  color: var(--text-3);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .35rem .65rem;
}
.dpop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.dpop-tag {
  font-size: .63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border-md);
  border-radius: 4px;
  padding: .15rem .45rem;
}
.dpop-pitch {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.75;
  margin: 0;
  flex: 1;
}
