/* Vols Pas Chers — signalétique d'aéroport : ciel clair, bleu nuit, jaune "panneau de départ" */
:root {
  --sky: #eef3f8;
  --surface: #ffffff;
  --ink: #0e1b33;
  --ink-2: #4e5d78;
  --ink-3: #8996ab;
  --line: #dce4ee;
  --night: #13254a;
  --night-2: #1d3566;
  --signal: #ffc233;
  --signal-deep: #f2ad00;
  --low: #1f9d6b;
  --low-bg: #e1f4ea;
  --mid: #7d97be;
  --high: #e0786c;
  --shadow: 0 28px 56px -28px rgba(8, 20, 48, .55);
  --sans: 'Barlow', system-ui, sans-serif;
  --cond: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.45;
  color: var(--ink); background: var(--sky);
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: currentColor; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
h1, h2 { font-family: var(--cond); font-weight: 700; letter-spacing: -.005em; margin: 0; }
h2 { font-size: 28px; line-height: 1.1; }
.sub { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }

.demo-banner { background: var(--signal); color: var(--signal-ink, #2a1e00); text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 500; }
.demo-banner code { font-weight: 700; }

/* ---------- En-tête ---------- */
.hero { background: var(--night); color: #fff; padding: 22px 0 28px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 600; font-size: 20px; }
.brand svg { color: var(--signal); width: 22px; height: 22px; transform: rotate(45deg); }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1; margin: 22px 0 22px; max-width: 22ch; }

.search { background: var(--surface); color: var(--ink); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }

.seg { display: inline-flex; background: var(--sky); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--night); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--signal); }

.field { position: relative; display: flex; flex-direction: column; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 4px 2px; }
.field input, .field select {
  height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; width: 100%; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field input:hover, .field select:hover { border-color: #c3cfdd; }
.field input:focus, .field select:focus { outline: none; border-color: var(--night); box-shadow: 0 0 0 3px rgba(19, 37, 74, .12); }

.route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.route .field input { height: 60px; font-family: var(--cond); font-size: 26px; font-weight: 600; }
.swap {
  width: 46px; height: 46px; margin-bottom: 7px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; display: grid; place-items: center; color: var(--night); transition: transform .3s, border-color .15s;
}
.swap:hover { border-color: var(--night); transform: rotate(180deg); }
.details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }

.place .spin { position: absolute; right: 14px; bottom: 21px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--night); opacity: 0; transition: opacity .15s; animation: rot .7s linear infinite; }
.place.busy .spin { opacity: 1; }
.route .place .spin { bottom: 21px; }

.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; min-width: 280px;
  list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); max-height: 340px; overflow: auto;
}
.suggest:empty { display: none; }
.suggest li { padding: 9px 10px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.suggest li.active, .suggest li:hover { background: var(--sky); }
.suggest .name { font-weight: 600; }
.suggest small { color: var(--ink-2); display: block; font-size: 13px; }
.suggest .code { font-family: var(--cond); font-weight: 700; font-size: 18px; color: var(--night-2); }
.suggest .empty-hint { color: var(--ink-2); cursor: default; }

.search-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: #cdd7e3; position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--low); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--signal); outline-offset: 2px; }

.btn-primary {
  position: relative; border: 0; border-radius: 12px; background: var(--signal); color: var(--ink);
  font-weight: 700; font-size: 17px; padding: 0 30px; height: 52px; min-width: 180px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--signal-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { cursor: progress; }
.btn-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(14,27,51,.25); border-top-color: var(--ink); display: none; animation: rot .7s linear infinite; }
.is-loading .btn-spin { display: inline-block; }
.btn-ghost { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 14px; font-weight: 600; }
.btn-ghost:hover { border-color: var(--ink); }

.history { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; font-size: 14px; }
.history .label { color: rgba(255,255,255,.6); margin-right: 2px; }
.history .chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; padding: 6px 12px; border-radius: 999px; transition: background .15s; }
.history .chip:hover { background: rgba(255,255,255,.18); }
.history .chip b { font-weight: 600; }
.history .chip span { color: var(--signal); margin-left: 4px; }
.history .clear { background: none; border: 0; color: rgba(255,255,255,.55); text-decoration: underline; }

/* ---------- Barre résumé (reste en haut) ---------- */
.summary { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); animation: drop .25s ease-out; }
.summary-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.summary-text { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; min-width: 0; }
.summary-text b { font-family: var(--cond); font-size: 22px; }
.summary-text span { color: var(--ink-2); font-size: 15px; }
@keyframes drop { from { transform: translateY(-100%); } }

main { padding-top: 28px; padding-bottom: 40px; }
.error { background: #fde8e6; color: #8a1c10; border: 1px solid #f5c3bd; padding: 12px 16px; border-radius: 12px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.error button { border: 0; background: #8a1c10; color: #fff; border-radius: 8px; padding: 6px 12px; font-weight: 600; }

/* ---------- Réglette des prix ---------- */
.fares { background: var(--surface); border-radius: 20px; padding: 20px 20px 14px; border: 1px solid var(--line); }
.fares-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--night); }
.month-nav button:hover:not(:disabled) { border-color: var(--night); }
.month-nav button:disabled { opacity: .35; cursor: default; }
.month { font-family: var(--cond); font-weight: 600; font-size: 20px; min-width: 130px; text-align: center; text-transform: capitalize; }

.progress { height: 3px; background: var(--sky); border-radius: 3px; margin: 14px 0 6px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--night); border-radius: 3px; transition: width .35s ease, opacity .4s; }
.progress.done span { background: var(--low); opacity: 0; transition-delay: 0s, .8s; }

.strip-wrap { position: relative; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 58px; gap: 4px;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
  padding: 8px 2px 6px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.strip::-webkit-scrollbar { display: none; }
.strip-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--night); box-shadow: 0 6px 16px -6px rgba(8,20,48,.35);
}
.strip-arrow.left { left: -10px; } .strip-arrow.right { right: -10px; }
.strip-arrow:disabled { opacity: 0; pointer-events: none; }

.day {
  scroll-snap-align: center; border: 0; background: transparent; border-radius: 12px; padding: 6px 2px 8px;
  display: grid; grid-template-rows: 20px 118px auto; justify-items: center; gap: 6px; transition: background .15s;
}
@media (hover: hover) { .day:hover:not(:disabled) { background: var(--sky); } }
.day:disabled { cursor: default; }
.d-price { font-family: var(--cond); font-weight: 600; font-size: 16px; white-space: nowrap; color: var(--ink); transition: color .2s; }
.d-bar { width: 30px; height: 100%; display: flex; align-items: flex-end; }
.d-bar i {
  position: relative; overflow: hidden; display: block; width: 100%; height: var(--h, 40%);
  border-radius: 8px 8px 4px 4px; background-color: var(--mid);
  transition: height .45s cubic-bezier(.2,.8,.2,1), background-color .3s;
}
.d-date { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.d-date b { font-family: var(--cond); font-size: 19px; font-weight: 600; }
.d-date small { font-size: 12px; color: var(--ink-3); text-transform: capitalize; }
.day.we .d-date small { color: var(--ink-2); font-weight: 600; }

.day.low .d-bar i { background-color: var(--low); }
.day.high .d-bar i { background-color: var(--high); }
.day.min .d-price { color: var(--low); font-weight: 700; }
.day.est .d-bar i { background-color: #d3ddea; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 5px, transparent 5px 10px); }
.day.est .d-price { color: var(--ink-3); font-weight: 500; }
.day.skeleton .d-bar i, .day.loading:not(.est) .d-bar i { height: 38%; background-color: #e4ebf4; }
.day.skeleton .d-bar i::after, .day.loading .d-bar i::after {
  content: ''; position: absolute; inset: 0; transform: translateY(100%);
  background: linear-gradient(0deg, transparent, rgba(255,255,255,.75), transparent);
  animation: sweep 1.1s ease-in-out infinite;
}
@keyframes sweep { to { transform: translateY(-100%); } }
.day.skeleton .d-price::before, .day.loading:not(.est) .d-price::before { content: ''; display: block; width: 34px; height: 12px; border-radius: 4px; background: #e9eff6; margin-top: 4px; }
.day.none .d-bar i { height: 3px; background-color: var(--line); }
.day.none .d-price { color: var(--ink-3); font-size: 13px; font-family: var(--sans); }
.day.failed .d-price { color: var(--high); font-size: 13px; font-family: var(--sans); }
.day.past { opacity: .3; }
.day.past .d-bar i { height: 3px; background-color: var(--line); }
.day.sel { background: var(--night); }
.day.sel .d-price, .day.sel .d-date b { color: #fff; }
.day.sel .d-date small { color: rgba(255,255,255,.7); }
.day.sel .d-bar i { background-color: var(--signal); background-image: none; }
@media (hover: hover) { .day.sel:hover { background: var(--night-2); } }

.fares-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; min-height: 34px; }
.status { color: var(--ink-2); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.status .mini-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--night); animation: rot .7s linear infinite; }
.status.ok { color: var(--low); font-weight: 600; }
.status.warn { color: #8a5a00; }
.cheapest-day { border: 0; background: var(--low-bg); color: #106646; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.cheapest-day:hover { background: #cdebdc; }
.cheapest-day b { font-family: var(--cond); font-size: 17px; }

/* ---------- Meilleur prix ---------- */
.results { margin-top: 22px; }
.best { display: grid; grid-template-columns: 1fr 300px; background: var(--night); color: #fff; border-radius: 20px; overflow: hidden; }
.best-main { padding: 22px 24px; }
.best-kicker { margin: 0 0 14px; color: var(--signal); font-weight: 600; }
.best-route { display: flex; align-items: center; gap: 14px; font-family: var(--cond); }
.best-route .city { display: flex; flex-direction: column; }
.best-route .city b { font-size: 44px; line-height: 1; font-weight: 700; }
.best-route .city span { color: rgba(255,255,255,.65); font-family: var(--sans); font-size: 14px; }
.best-route .path { flex: 1; height: 2px; background: rgba(255,255,255,.25); position: relative; min-width: 40px; margin-bottom: 18px; }
.best-route .path svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(90deg); color: var(--signal); background: var(--night); padding: 0 4px; width: 28px; height: 22px; }
.best-facts { display: flex; gap: 26px; flex-wrap: wrap; margin: 18px 0 0; padding: 0; list-style: none; }
.best-facts li { color: rgba(255,255,255,.65); font-size: 14px; }
.best-facts b { display: block; color: #fff; font-size: 17px; font-weight: 600; }
.best-deal { background: var(--night-2); padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.best-deal .amount { font-family: var(--cond); font-size: 64px; font-weight: 700; line-height: .95; }
.best-deal .per { color: rgba(255,255,255,.7); font-size: 14px; margin: 0; }
.best-deal .btn-buy { margin-top: 10px; }

/* ---------- Liste ---------- */
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 28px 0 12px; }
.results-head h2 small { font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--ink-2); margin-left: 6px; }
.controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chips { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.chips button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background .15s, color .15s; }
.chips button.on { background: var(--night); color: #fff; }
.controls select { height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; background: #fff; font-weight: 500; font-size: 14px; }

.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.list:empty { display: none; }
.row { display: grid; grid-template-columns: 190px 1fr 230px; gap: 20px; align-items: center; padding: 18px 20px; border-top: 1px solid var(--line); position: relative; }
.row:first-child { border-top: 0; }
.row.is-best::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--signal); }
.carrier { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; font-family: var(--cond); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.carrier strong { display: block; font-weight: 600; line-height: 1.2; }
.carrier span { font-size: 13px; color: var(--ink-3); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--signal); color: var(--ink); margin-top: 4px; }
.pill.warn { background: #fff0c9; color: #7a5200; }

.legs { display: grid; gap: 12px; min-width: 0; }
.leg { display: grid; grid-template-columns: 64px 1fr 64px; gap: 12px; align-items: center; }
.leg .t b { display: block; font-family: var(--cond); font-size: 24px; font-weight: 600; line-height: 1; }
.leg .t b sup { font-size: 12px; color: var(--high); margin-left: 2px; }
.leg .t span { font-size: 13px; color: var(--ink-2); }
.leg .t.end { text-align: right; }
.leg .path { text-align: center; font-size: 13px; color: var(--ink-2); min-width: 0; }
.leg .line { display: flex; align-items: center; justify-content: center; gap: 10px; height: 10px; margin: 3px 0; position: relative; }
.leg .line::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--line); }
.leg .line i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 2px solid var(--ink-3); }
.leg .stops.direct { color: var(--low); font-weight: 600; }
.leg-date { font-size: 12px; color: var(--ink-3); grid-column: 1 / -1; margin-bottom: -8px; }

.deal { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
.deal .amount { font-family: var(--cond); font-size: 30px; font-weight: 700; line-height: 1; }
.deal .per { font-size: 13px; color: var(--ink-2); grid-column: 1; }
.deal .check { grid-column: 1 / -1; font-size: 13px; }
.deal .actions { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 8px; }
.ok { color: var(--low); font-weight: 600; }
.est { color: var(--ink-3); }
.best .ok { color: #7ee2b4; } .best .est { color: rgba(255,255,255,.6); }

.btn-buy {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  background: var(--signal); color: var(--ink); font-weight: 700; border-radius: 10px; padding: 10px 14px; font-size: 15px;
  transition: background .15s; text-align: center; line-height: 1.15;
}
.btn-buy:hover { background: var(--signal-deep); }
.btn-buy.opening { pointer-events: none; }
.btn-buy.opening::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(14,27,51,.25); border-top-color: var(--ink); animation: rot .7s linear infinite; }
.best .btn-buy { padding: 14px; font-size: 17px; }
.fav { width: 42px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); transition: color .15s, border-color .15s; }
.fav svg { width: 18px; height: 18px; }
.fav:hover { color: var(--ink); border-color: var(--ink-3); }
.fav.on { color: var(--signal-deep); border-color: var(--signal); }

.note { background: #fff7df; border: 1px solid #f3dc9c; padding: 10px 14px; border-radius: 12px; font-size: 14px; margin: 0 0 12px; }
.alts { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin-bottom: 12px; }
.alts p { margin: 0 0 12px; font-weight: 500; }
.alt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.alt { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; }
.alt:hover { border-color: var(--night); }
.alt b { font-family: var(--cond); font-size: 17px; margin-left: 6px; color: var(--low); }
.empty { padding: 34px 20px; text-align: center; color: var(--ink-2); }
.compare { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.compare a { color: var(--night-2); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid #c3cfdd; }
.compare a:hover { border-color: var(--night); }

/* ---------- Squelettes de chargement ---------- */
.sk { background: linear-gradient(90deg, #e6edf5 25%, #f4f7fb 50%, #e6edf5 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 6px; }
.best.loading { background: var(--night); }
.best.loading .sk { background: linear-gradient(90deg, rgba(255,255,255,.08) 25%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.08) 75%); background-size: 200% 100%; }
.row.loading { pointer-events: none; }
.updating { opacity: .45; transition: opacity .2s; pointer-events: none; }

.favorites { margin-top: 36px; }
.favorites h2 { margin-bottom: 12px; }
.foot { color: var(--ink-2); font-size: 14px; padding-bottom: 32px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 500; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .details { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; gap: 14px; }
  .deal { grid-template-columns: 1fr auto; }
  .best { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hero { padding-top: 16px; }
  .hero h1 { margin: 16px 0; }
  .search { padding: 14px; border-radius: 16px; }
  .route { grid-template-columns: 1fr; gap: 6px; }
  .route .field input { height: 54px; font-size: 22px; }
  .route { position: relative; }
  .swap { position: absolute; right: 12px; top: 58px; margin: 0; width: 40px; height: 40px; z-index: 3; transform: rotate(90deg); box-shadow: 0 4px 12px -4px rgba(8,20,48,.3); }
  .swap:hover { transform: rotate(270deg); }
  .route .field input { padding-right: 60px; }
  .btn-primary { width: 100%; }
  .search-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .fares { padding: 16px 12px 12px; border-radius: 16px; }
  .strip { grid-auto-columns: 52px; }
  .strip-arrow { display: none; }
  .best-route .city b { font-size: 34px; }
  .best-deal .amount { font-size: 52px; }
  .summary-text b { font-size: 19px; }
  .summary-text span { font-size: 13px; }
  .leg { grid-template-columns: 56px 1fr 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Accueil : idées de destinations ---------- */
.ideas { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; }
.ideas h2 { font-size: 24px; }
.ideas .sub { margin-bottom: 16px; }
.idea-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.idea { text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 14px; transition: border-color .15s, background .15s; }
.idea:hover { border-color: var(--night); background: var(--sky); }
.idea b { display: block; font-family: var(--cond); font-size: 22px; font-weight: 600; line-height: 1.1; }
.idea span { color: var(--ink-2); font-size: 14px; }