
:root {
  --ink: #0C1F3D;
  --ink-soft: #4A5A75;
  --muted: #5B6678;
  --paper: #FFFFFF;
  --bg: #F7F6F1;
  --bg-warm: #EFEBDD;
  --line: #DDD8C8;
  --line-soft: #E9E4D5;
  --sky: #1E90FF;
  --sky-deep: #0E6FD9;
  --sky-soft: #EAF3FF;
  --sun: #E89C2A;
  --sun-soft: #FBF6E5;
  --green: #2D9B5F;
  --disp: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', 'Instrument Serif Fallback', serif;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  padding-bottom: 100px;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.site-header {
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding: 14px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  position: relative;
}
.site-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif);
  font-size: 23px; font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-logo:hover { color: var(--ink); }
.site-logo:visited { color: var(--ink); }
.site-logo em {
  font-family: var(--serif);
  font-style: italic; font-weight: 400;
  color: var(--ink);
}
.site-logo-mark {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.site-logo-mark svg { width: 100%; height: 100%; }

.site-header-nav {
  display: flex; gap: 4px; align-items: center;
  position: relative;
}

/* Sélecteur unifié langue + devise (repris d'index.html) */
.pref-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(12,31,61,.12);
  border-radius: 100px;
  background: transparent;
  font-family: var(--body);
  font-size: 13px; font-weight: 500; line-height: 1;
  color: #0C1F3D;
  cursor: pointer; height: 32px;
  transition: all .15s ease;
}
.pref-btn:hover { background: #FFF; border-color: rgba(12,31,61,.25); }
.pref-btn[aria-expanded="true"] { background:#FFF; border-color:rgba(30,144,255,.3); box-shadow:0 4px 12px rgba(12,31,61,.06); }
.pref-globe { display: none; }
.pref-sep { color: #6E6A5A; margin: 0 2px; font-weight: 400; }
.pref-btn .curr-symbol { color: #0F5FB8; font-weight: 600; }
.pref-chev { width: 12px; height: 12px; color: #6E6A5A; opacity: 1; transition: transform .2s ease; }
.pref-btn[aria-expanded="true"] .pref-chev { transform: rotate(180deg); }
.pref-menu {
  position: absolute; top: 100%; right: 0;
  margin-top: 8px;
  width: 300px; max-height: 70vh;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 10px 30px -12px rgba(12, 31, 61, 0.25);
  padding: 10px;
  display: none;
  z-index: 300;
}
.pref-menu.open { display: block; }
.pref-section-title {
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 8px 8px;
}
.pref-langs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 4px;
}
.pref-lang {
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  background: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: var(--body);
  font-size: 12px; font-weight: 600;
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.pref-lang:hover { border-color: var(--ink); background: var(--bg-warm); }
.pref-lang .lang-opt-flag {
  width: 26px; height: 20px;
  display: grid; place-items: center;
  border-radius: 4px;
  background: var(--bg-warm);
  font-size: 11px; font-weight: 700;
  color: var(--ink-soft);
}
.pref-lang.active {
  border-color: var(--sky);
  background: var(--sky-soft);
  color: var(--sky-deep);
}
.pref-lang.active .lang-opt-flag { background: #0F5FB8; color: #fff; }
.pref-divider { height: 1px; background: var(--line); margin: 8px 4px; }
.pref-currencies { display: block; }
.curr-section {
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px 4px;
}
.curr-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  text-align: left;
  transition: background .12s;
}
.curr-opt:hover { background: var(--bg-warm); }
.curr-opt.active {
  background: rgba(30,144,255,.08);
  color: var(--sky-deep);
  font-weight: 600;
}
.curr-opt-sym { font-weight: 700; min-width: 28px; color: var(--sky-deep); }
.curr-opt-name { flex: 1; }
.curr-opt-code { font-size: 11px; color: var(--muted); }
@media (max-width: 700px) {
  .pref-menu { right: 12px; width: calc(100vw - 24px); max-width: 300px; }
  .pref-btn { padding: 6px 10px; }
}

/* ═══════════════════════════════════════════════════════════════
   RÉCAP RECHERCHE
   ═══════════════════════════════════════════════════════════════ */
.search-recap {
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.search-recap-info {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  min-width: 0;
}
.search-recap-route {
  font-family: var(--disp);
  font-size: 24px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.search-recap-route .arrow {
  color: var(--sky-deep);
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
}
.search-recap-dates {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-soft);
}
.search-recap-pax {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.search-recap-modify {
  padding: 9px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.search-recap-modify:hover { border-color: var(--ink); background: var(--bg-warm); }
.search-recap-modify svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL
   ═══════════════════════════════════════════════════════════════ */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* ═══════════════════════════════════════════════════════════════
   TRI T3 — Notre recommandation
   ═══════════════════════════════════════════════════════════════ */
.sort-block {
  margin-bottom: 20px;
}
.sort-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.sort-count {
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
}
.sort-count strong {
  font-family: var(--disp);
  font-weight: 700;
}
.sort-current {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--body);
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  transition: all 0.15s;
}
.sort-current:hover { border-color: var(--ink); }
.sort-current-icon { color: var(--sun); font-size: 15px; }
.sort-current svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.5; }

.sort-explain {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--sky-soft) 0%, var(--sun-soft) 100%);
  border-radius: var(--r);
  font-size: 13px; color: var(--ink);
  line-height: 1.55;
  border: 1px solid rgba(30, 144, 255, 0.15);
}
.sort-explain-icon {
  font-size: 18px; line-height: 1;
  flex-shrink: 0;
}
.sort-explain em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sky-deep);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   FILTRES (rapides + drawer)
   ═══════════════════════════════════════════════════════════════ */
.filter-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.filter-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--sun));
}

.filter-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.filter-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--disp);
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.filter-title-icon { color: var(--sun); font-size: 17px; }
.filter-help {
  font-size: 12px;
  color: var(--muted);
}
.filter-help em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sky-deep);
}
.quick-filters {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-bottom: 12px;
}
.quick-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--body);
  font-size: 12px; font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.quick-chip:hover {
  border-color: var(--sky);
  color: var(--sky-deep);
}
.quick-chip.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.quick-chip .plus { font-size: 12px; opacity: 0.6; font-weight: 400; }
.quick-chip .check { display: none; font-size: 10px; }
.quick-chip.active .plus { display: none; }
.quick-chip.active .check { display: inline; }
.quick-chip .chip-icon {
  width: 13px; height: 13px;
  flex-shrink: 0;
  opacity: 0.7;
}
.quick-chip.active .chip-icon { opacity: 1; }

.filter-footer {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.affiner-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  border: 0;
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.affiner-btn:hover { background: var(--sky-deep); }
.affiner-btn svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.affiner-count {
  background: var(--sun);
  color: white;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
}
.active-filters {
  display: flex; gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.active-filters:empty { display: none; }
.active-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 4px 4px 10px;
  background: var(--sky-soft);
  border: 1px solid var(--sky);
  border-radius: 999px;
  font-size: 10px; font-weight: 600;
  color: var(--sky-deep);
}
.active-chip-close {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--sky-deep);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 900;
  cursor: pointer; border: 0;
  transition: transform 0.15s;
}
.active-chip-close:hover { transform: rotate(90deg); }
.reset-link {
  margin-left: auto;
  font-size: 10px; color: var(--muted);
  text-decoration: underline;
  background: none; border: 0; cursor: pointer;
  padding: 4px 8px;
}
.reset-link:hover { color: var(--ink); }

/* ═══════════════════════════════════════════════════════════════
   BANDEAUX "COMPARER LES JOURS" & "INFOS DESTINATION"
   ═══════════════════════════════════════════════════════════════ */
.info-banner {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.info-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--sun));
}
/* Header du bandeau (avec bouton collapse) */
.info-banner-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.info-banner-text { flex: 1; min-width: 0; }
.info-banner-collapse {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.info-banner-collapse:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.info-banner-collapse svg {
  width: 12px; height: 12px;
  fill: none; stroke: currentColor; stroke-width: 2.5;
  transition: transform 0.25s ease;
}
.info-banner.collapsed .info-banner-collapse svg {
  transform: rotate(-180deg);
}
.info-banner.collapsed .info-banner-sub { display: none; }
.info-banner.collapsed .info-banner-header { margin-bottom: 0; }

/* Contenu collapsible */
.info-banner-content {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.2s ease;
  opacity: 1;
}
.info-banner.collapsed .info-banner-content {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.info-banner-eyebrow {
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  color: var(--sky-deep);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.info-banner-title {
  font-family: var(--disp);
  font-size: 20px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.info-banner-title em {
  font-family: var(--serif);
  font-style: italic; font-weight: 400;
  color: var(--sky-deep);
}
.info-banner-sub {
  font-size: 13px; color: var(--ink-soft);
}

/* Bandeau "Comparer les jours" */
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.day-cell {
  padding: 10px 4px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.day-cell:hover {
  border-color: var(--ink);
  background: var(--paper);
}
.day-cell.selected {
  background: var(--ink);
  border-color: var(--ink);
}
.day-cell.selected .day-day,
.day-cell.selected .day-date,
.day-cell.selected .day-price { color: white; }
.day-cell.cheapest {
  border-color: var(--sun);
  background: var(--sun-soft);
}
.day-day {
  font-size: 10px; font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.day-date {
  font-family: var(--disp);
  font-size: 15px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.day-price {
  font-family: var(--disp);
  font-size: 14px; font-weight: 700;
  color: var(--sky-deep);
  letter-spacing: -0.02em;
}
 { color: #8F5E10; }

/* Bandeau "Bon à savoir" */
.destination-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 560px) {
  .destination-facts { grid-template-columns: repeat(2, 1fr); }
}
.dest-fact {
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
}
.dest-fact-label {
  font-size: 10px; font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: inline-flex; align-items: center; gap: 4px;
}
.dest-fact-value {
  font-family: var(--disp);
  font-size: 15px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.dest-fact-note {
  font-size: 11px; color: var(--ink-soft);
  margin-top: 2px;
}
.dest-fact-note em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sky-deep);
}
 { color: #8F5E10; }

/* Case Visa avec liens vers sources externes */
.dest-fact.visa {
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--bg) 100%);
  border-color: rgba(30, 144, 255, 0.2);
}
.dest-fact-links {
  display: flex; flex-direction: column;
  gap: 3px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.dest-fact-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--sky-deep);
  text-decoration: none;
  font-weight: 600;
  padding: 3px 0;
  transition: color 0.15s;
}
.dest-fact-link:hover { color: var(--ink); }
.dest-fact-link .link-flag {
  font-size: 12px;
  flex-shrink: 0;
}
.dest-fact-link .link-arrow {
  font-size: 8px;
  color: var(--muted);
  margin-left: auto;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════
   CARTES DE VOL (Direction B affinée)
   ═══════════════════════════════════════════════════════════════ */
.flights-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  margin: 28px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.flights-header-title {
  font-family: var(--disp);
  font-size: 18px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.flights-header-title em {
  font-family: var(--serif);
  font-style: italic; font-weight: 400;
  color: var(--sky-deep);
}
.flights-list {
  display: flex; flex-direction: column;
  gap: 12px;
}

.dB {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 18px 12px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  cursor: pointer;
}
.dB:hover {
  border-color: var(--ink);
  box-shadow: 0 6px 20px -10px rgba(12, 31, 61, 0.15);
  transform: translateY(-1px);
}

.dB-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.dB-airline {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; flex-shrink: 0;
}
.dB-logo {
  position: relative;
  width: 48px; height: 48px;
  background: #fff;
  border: 1.5px solid #CFC9B8;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(12,31,61,.10);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp);
  font-weight: 700;
  color: var(--ink);
  font-size: 11px;
  flex-shrink: 0;
  overflow: hidden;
}
.dB-logo-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 5px;
  background: #fff;
}
.dB-airline-info { min-width: 0; }
.dB-airline-name {
  font-family: var(--disp);
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.15;
}
.dB-airline-sub {
  font-size: 11px; color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
}

.dB-tags {
  display: flex; gap: 4px; align-items: center;
  flex: 1; justify-content: flex-end;
  min-width: 0; flex-wrap: wrap; row-gap: 4px;
}
.dB-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
}
.dB-tag.direct {
  background: transparent;
  color: var(--sky-deep);
  border: 1px solid var(--sky-deep);
}
.dB-tag.serenity {
  background: var(--ink);
  color: white;
}
.dB-tag.serenity .stars {
  color: var(--sun);
  font-size: 12px; line-height: 1;
}
.dB-tag.deal { background: var(--sun); color: white; }
.dB-tag.reco { background: var(--sky-deep); color: white; }

.dB-actions {
  display: flex; gap: 3px; flex-shrink: 0;
}
.dB-actions button {
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.dB-actions button:hover { border-color: var(--ink); color: var(--ink); }
.dB-actions button svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.75; }
 { border-color: var(--sun); color: #8F5E10; background: var(--sun-soft); }
.dB-actions button.on svg { fill: var(--sun); }
.dB-actions button.active { border-color: var(--sky-deep); color: var(--sky-deep); background: var(--sky-soft); }

.dB-date-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; padding: 0 0 8px;
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  color: var(--sky-deep);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dB-date-header .date-value {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 15px; color: var(--ink);
  letter-spacing: 0.02em; text-transform: none;
}

.dB-timeline {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px; padding: 4px 0;
  position: relative;
}
.dB-timeline-axis {
  position: relative;
  padding: 6px 0;
}
.dB-timeline-axis::before {
  content: '';
  position: absolute;
  top: 10px; bottom: 10px;
  left: 50%; width: 1px;
  background: var(--line);
  transform: translateX(-0.5px);
}
.dB-dot {
  position: absolute; left: 50%;
  width: 7px; height: 7px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
}
.dB-dot.top { top: 6px; }
.dB-dot.bottom { bottom: 6px; }
.dB-dot.plane {
  border: 0; background: none;
  width: 20px; height: 20px;
  top: 50%;
  transform: translate(-50%, -50%) rotate(180deg);
}
.dB-dot.plane svg { width: 100%; height: 100%; }

.dB-events {
  display: flex; flex-direction: column;
  gap: 4px; padding: 2px 0;
}
.dB-event {
  display: flex; align-items: baseline; gap: 10px;
}
.dB-event-time {
  font-family: var(--disp);
  font-size: 18px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  min-width: 55px; line-height: 1.1;
  white-space: nowrap;
}
.dB-event-time .ampm {
  font-size: 10px; font-weight: 600;
  color: var(--muted); margin-left: 2px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.dB-event-time .day-plus {
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  color: var(--sun); margin-left: 3px;
  vertical-align: super;
}
.dB-event-desc {
  font-size: 13px; color: var(--ink-soft);
  line-height: 1.35;
}
.dB-event-desc strong {
  color: var(--ink); font-weight: 600;
  font-family: var(--disp);
}
.dB-duration {
  font-size: 11px; color: var(--muted);
  padding: 2px 0; margin-left: 65px;
  font-weight: 500; line-height: 1.3;
}
.dB-duration em {
  font-family: var(--serif); font-style: italic;
  color: var(--sky-deep); font-size: 12px;
}

.dB-sep {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 10px 0 6px;
  margin: 8px 0 4px;
  border-top: 1px dashed var(--line);
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  color: var(--sky-deep);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.dB-sep-icon {
  color: var(--muted); font-size: 15px; margin-right: 4px;
}
.dB-sep .date-value {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 15px; color: var(--ink);
  letter-spacing: 0.02em; text-transform: none;
}

.dB-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px; margin-top: 12px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
}
.dB-tags-list {
  display: flex; gap: 10px;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
}
.dB-tag-item {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--ink-soft); font-weight: 500;
  font-size: 14px;
}

.dB-price-cta { display: flex; align-items: center; gap: 12px; }
.dB-price-block { display: flex; align-items: baseline; gap: 4px; }
.dB-price {
  font-family: var(--disp);
  font-size: 26px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em; line-height: 1;
}
.dB-price-note {
  font-size: 11px; color: var(--muted);
  font-weight: 500; letter-spacing: 0.02em;
}
.dB-cta {
  padding: 9px 20px;
  background: var(--ink);
  color: white; border: 0;
  border-radius: 4px;
  font-family: var(--body);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s;
}
.dB-cta:hover { background: var(--sky-deep); }

/* ═══════════════════════════════════════════════════════════════
   PANNEAU "DÉTAILS DU VOL" DÉPLIABLE
   ═══════════════════════════════════════════════════════════════ */
.dB-details-btn {
  font-family: var(--body);
  font-size: 12px; font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: all 0.15s;
}
.dB-details-btn:hover { color: var(--sky-deep); }
.dB-details-btn.open {
  background: var(--ink);
  color: white;
  text-decoration: none;
}
.dB-details-btn svg {
  width: 9px; height: 9px;
  fill: none; stroke: currentColor; stroke-width: 2.5;
  transition: transform 0.2s;
}
.dB-details-btn.open svg { transform: rotate(180deg); }

.dB-details-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.2s, padding-top 0.2s;
}
.dB-details-panel.open {
  max-height: 700px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px dashed var(--line);
}
.dB-details-title {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--disp);
  font-size: 12px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.dB-details-title-icon { color: var(--sun); }
.dB-details-sep {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 0 4px;
  font-family: var(--body);
  font-size: 10px; font-weight: 700;
  color: var(--sky-deep);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dB-details-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.dB-flight-step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0;
}
.dB-step-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sky-soft);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dB-step-icon svg { width: 12px; height: 12px; }
.dB-step-content {
  flex: 1;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.dB-step-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 12px;
  margin-bottom: 2px;
  font-family: var(--disp);
}
.dB-step-meta {
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.dB-layover {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0 8px 22px;
  margin: 2px 0 2px 10px;
  border-left: 2px dashed var(--sun);
  padding-left: 22px;
  position: relative;
}
.dB-layover::before {
  content: '⏱';
  position: absolute;
  left: -10px; top: 6px;
  background: var(--sun-soft);
  color: var(--sun);
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px;
}
.dB-layover-title {
  font-family: var(--disp);
  font-weight: 700;
  color: var(--ink);
  font-size: 12px;
}
.dB-layover-info {
  font-size: 11px;
  color: var(--ink-soft);
}
.dB-layover-warn { color: #8F5E10; font-weight: 600; }
.dB-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.dB-info-block {
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.dB-info-label {
  font-size: 9px; font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 4px;
}
.dB-info-value {
  font-family: var(--disp);
  font-size: 13px; font-weight: 700;
  color: var(--ink);
}
.dB-info-value.eco { color: var(--green); }
.dB-info-note {
  font-size: 9px;
  color: var(--muted);
}
.dB-info-note em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sky-deep);
}

/* ═══════════════════════════════════════════════════════════════
   BARRE DE COMPARAISON FIXE
   ═══════════════════════════════════════════════════════════════ */
.compare-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -8px rgba(12, 31, 61, 0.15);
  padding: 12px 24px;
  z-index: 100;
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.compare-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--sun));
}
.compare-bar-label {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--disp);
  font-size: 13px; font-weight: 700;
  color: var(--ink);
}
.compare-bar-label .icon { color: var(--sun); font-size: 15px; }
.compare-bar-label em {
  font-family: var(--serif); font-style: italic;
  color: var(--sky-deep); font-weight: 400;
}
.compare-bar-label .count {
  background: var(--sun); color: white;
  padding: 2px 8px; border-radius: 999px;
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
}
.compare-bar-items {
  display: flex; gap: 6px;
  flex: 1; min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.compare-bar-items::-webkit-scrollbar { display: none; }
.compare-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  color: var(--ink);
  white-space: nowrap; flex-shrink: 0;
}
.compare-item .item-airline {
  font-family: var(--disp); font-weight: 700;
}
.compare-item .item-price {
  color: var(--sky-deep); font-weight: 700;
}
.compare-item-remove {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ink); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900;
  cursor: pointer; border: 0;
  transition: transform 0.15s;
}
.compare-item-remove:hover { transform: rotate(90deg); }
.compare-bar-actions {
  display: flex; gap: 6px; flex-shrink: 0;
}
.compare-btn-clear {
  padding: 7px 14px;
  background: transparent; border: 0;
  color: var(--muted);
  font-family: var(--body);
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.compare-btn-clear:hover { color: var(--ink); }
.compare-btn-open {
  padding: 10px 18px;
  background: var(--ink);
  color: white; border: 0;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.compare-btn-open:hover { background: var(--sky-deep); }
/* ═══════════════════════════════════════════════════════════════
   DRAWER "AFFINER" (filtres avancés)
   ═══════════════════════════════════════════════════════════════ */
.refine-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12,31,61,0.55);
  z-index: 480;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.refine-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.refine-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 440px; max-width: 92vw;
  background: var(--paper);
  z-index: 490;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(12,31,61,0.15);
}
.refine-drawer.open { transform: translateX(0); }
.refine-drawer-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
  position: relative;
}
.refine-drawer-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--sun));
}
.refine-eyebrow {
  font-family: var(--body);
  font-size: 10px; font-weight: 700;
  color: var(--sky-deep);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.refine-title {
  font-family: var(--disp);
  font-size: 22px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 2px 0 0 0;
}
.refine-title em {
  font-family: var(--serif);
  font-style: italic; font-weight: 400;
  color: var(--sky-deep);
}
.refine-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.refine-close:hover { background: var(--ink); color: white; }
.refine-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 26px 24px;
}
.refine-section { margin-bottom: 24px; }
.refine-section:last-child { margin-bottom: 0; }
.refine-section-title {
  font-family: var(--disp);
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px;
}
.refine-section-value {
  font-family: var(--serif);
  font-style: italic; font-weight: 400;
  font-size: 13px;
  color: var(--sky-deep);
}
/* Slider prix */
.refine-slider {
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 8px 0 6px;
}
.refine-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  background: var(--sky-deep);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.refine-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--sky-deep);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
}
/* Variante sérénité : thumb sun (cohérent avec l'étoile ✦ orange) */
.refine-slider.serenity::-webkit-slider-thumb { background: var(--sun); }
.refine-slider.serenity::-moz-range-thumb { background: var(--sun); }
.refine-section-value .stars { color: var(--sun); }
.refine-slider-range {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}
/* Checkboxes compagnies */
.refine-airline-list {
  display: flex; flex-direction: column;
  gap: 4px;
}
.refine-airline-row {
  display: flex; align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s;
}
.refine-airline-row:hover { background: var(--bg); }
.refine-airline-row input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--sky-deep);
  cursor: pointer;
}
.refine-airline-logo {
  width: 30px; height: 30px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-weight: 700;
  font-size: 10px; color: var(--ink);
}
.refine-airline-name {
  flex: 1;
  font-size: 12px;
  color: var(--ink);
}
.refine-airline-count {
  font-size: 10px; color: var(--muted); font-weight: 500;
}
/* Chips horaires */
.refine-time-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.refine-time-chip {
  padding: 10px 4px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--body);
  color: var(--ink);
}
.refine-time-chip:hover { border-color: var(--sky-deep); }
.refine-time-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.refine-time-chip-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 20px; height: 20px;
  line-height: 1;
}
.refine-time-chip-icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.refine-time-chip-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.02em;
  min-height: 24px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; line-height: 1.1;
}
.refine-time-chip-hours {
  font-size: 9px; opacity: 0.6;
  margin-top: auto;
}
.refine-drawer-footer {
  padding: 14px 26px 18px;
  border-top: 1px solid var(--line);
  display: flex; gap: 10px;
}
.refine-reset-btn {
  padding: 12px 16px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--body);
  font-size: 12px; font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
}
.refine-reset-btn:hover { border-color: var(--ink); color: var(--ink); }
.refine-apply-btn {
  flex: 1;
  padding: 12px 16px;
  background: var(--ink);
  border: 0;
  border-radius: 6px;
  font-family: var(--body);
  font-size: 12px; font-weight: 700;
  color: white;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.refine-apply-btn:hover { background: var(--sky-deep); }
@media (max-width: 640px) {
  .refine-drawer { width: 100%; max-width: 100%; }
  .refine-drawer-header { padding: 18px 20px 14px; }
  .refine-drawer-body { padding: 16px 20px 20px; }
  .refine-drawer-footer { padding: 12px 20px 16px; }
  .refine-title { font-size: 18px; }
}

.compare-btn-open svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; }

/* ═══════════════════════════════════════════════════════════════
   MODAL "MODIFIER LA RECHERCHE"
   ═══════════════════════════════════════════════════════════════ */
.modify-overlay {
  position: fixed; inset: 0;
  background: rgba(12,31,61,0.55);
  z-index: 490; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modify-overlay.open { opacity: 1; pointer-events: auto; }
.modify-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%);
  width: 480px; max-width: 94vw;
  max-height: 90vh; overflow-y: auto;
  background: var(--paper);
  z-index: 500;
  border-radius: var(--r-lg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 20px 60px rgba(12,31,61,0.3);
}
.modify-modal.open {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, -50%);
}
.modify-modal-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; position: relative;
}
.modify-modal-header::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--sky), var(--sun));
}
.modify-eyebrow {
  font-family: var(--body); font-size: 10px; font-weight: 700;
  color: var(--sky-deep); letter-spacing: 0.14em; text-transform: uppercase;
}
.modify-title {
  font-family: var(--disp); font-size: 22px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em; margin: 2px 0 0 0;
}
.modify-title em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--sky-deep);
}
.modify-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); border: 0; color: var(--ink-soft);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; transition: all 0.15s; flex-shrink: 0;
}
.modify-close:hover { background: var(--ink); color: white; }
.modify-modal-body { padding: 20px 26px 22px; }
.modify-field { margin-bottom: 16px; flex: 1; }
.modify-row { display: flex; gap: 12px; }
.modify-label {
  display: block; font-family: var(--disp); font-size: 12px; font-weight: 700;
  color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em;
}
.modify-input {
  width: 100%; box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--body); font-size: 14px; color: var(--ink);
  background: var(--paper); transition: border-color 0.15s;
}
.modify-input:focus { outline: none; border-color: var(--sky-deep); }
.modify-select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C1F3D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 36px;
}
/* Autocomplete */
.modify-ac-wrap { position: relative; }
.modify-ac-results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(12,31,61,0.12);
  z-index: 10; max-height: 240px; overflow-y: auto;
  display: none;
}
.modify-ac-results.open { display: block; }
.modify-ac-item {
  padding: 10px 13px; cursor: pointer; display: flex; align-items: center; gap: 10px;
  transition: background 0.12s; border-bottom: 1px solid var(--line-soft);
}
.modify-ac-item:last-child { border-bottom: 0; }
.modify-ac-item:hover, .modify-ac-item.active { background: var(--bg); }
.modify-ac-flag { font-size: 18px; }
.modify-ac-text { flex: 1; }
.modify-ac-city { font-family: var(--disp); font-weight: 600; font-size: 13px; color: var(--ink); }
.modify-ac-country { font-size: 11px; color: var(--muted); }
.modify-ac-code {
  font-family: var(--disp); font-weight: 700; font-size: 12px; color: var(--sky-deep);
  background: var(--bg); padding: 3px 7px; border-radius: 4px;
}
/* Stepper passagers */
.modify-stepper {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  width: fit-content;
}
.modify-stepper-btn {
  width: 40px; height: 42px; border: 0; background: var(--paper);
  font-size: 18px; color: var(--ink); cursor: pointer; transition: background 0.12s;
}
.modify-stepper-btn:hover { background: var(--bg); }
.modify-stepper-value {
  min-width: 44px; text-align: center;
  font-family: var(--disp); font-weight: 700; font-size: 15px; color: var(--ink);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  height: 42px; display: flex; align-items: center; justify-content: center;
}
.modify-modal-footer {
  padding: 14px 26px 18px; border-top: 1px solid var(--line);
  display: flex; gap: 10px;
}
.modify-cancel-btn {
  padding: 12px 18px; background: transparent; border: 1px solid var(--line);
  border-radius: 8px; font-family: var(--body); font-size: 13px; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; transition: all 0.15s;
}
.modify-cancel-btn:hover { border-color: var(--ink); color: var(--ink); }
.modify-apply-btn {
  flex: 1; padding: 12px 18px; background: var(--ink); border: 0;
  border-radius: 8px; font-family: var(--body); font-size: 13px; font-weight: 700;
  color: white; cursor: pointer; letter-spacing: 0.02em; transition: background 0.15s;
}
.modify-apply-btn:hover { background: var(--sky-deep); }
@media (max-width: 640px) {
  .modify-modal { width: 100%; max-width: 100%; max-height: 100vh; height: 100vh;
    top: 0; left: 0; transform: none; border-radius: 0; }
  .modify-modal.open { transform: none; }
  .modify-row { flex-direction: column; gap: 0; }
  .modify-modal-header { padding: 18px 20px 14px; }
  .modify-modal-body { padding: 18px 20px; }
  .modify-modal-footer { padding: 14px 20px 18px; }
}

/* ─── Déclencheurs de date (style index) ─── */
.sb-date-trigger {
  width: 100%; box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--body); font-size: 14px; color: var(--ink);
  background: var(--paper); cursor: pointer; transition: border-color 0.15s;
  display: flex; align-items: center; min-height: 44px;
}
.sb-date-trigger:hover { border-color: var(--sky-deep); }
.modify-field.active .sb-date-trigger { border-color: var(--sky-deep); box-shadow: 0 0 0 3px var(--sky-soft); }
.sb-date-text { color: var(--ink); }
.sb-date-text.placeholder { color: var(--muted); }

/* ─── Calendrier custom (porté d'index.html) ─── */
.cal-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 520;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(12, 31, 61, 0.16);
  padding: 18px;
  display: none;
  width: max-content;
  max-width: min(600px, calc(100vw - 40px));
}
.cal-popup.open { display: block; animation: calFadeIn 0.16s ease-out; }
@keyframes calFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 10px;
}
.cal-nav {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background 0.12s; flex-shrink: 0;
  border: 0; background: transparent; cursor: pointer;
}
.cal-nav:hover { background: var(--line-soft); }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-nav svg { width: 18px; height: 18px; }
.cal-months-labels { flex: 1; display: flex; justify-content: space-around; gap: 40px; }
.cal-month-label {
  font-family: var(--disp); font-size: 15px; font-weight: 700;
  color: var(--ink); text-transform: capitalize;
}
.cal-grids { display: flex; gap: 28px; }
.cal-grid { width: 260px; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px; }
.cal-weekday {
  text-align: center; font-size: 11px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; padding: 4px 0;
}
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; color: var(--ink);
  border-radius: 8px; cursor: pointer; position: relative; transition: background 0.1s;
}
.cal-day.empty { cursor: default; }
.cal-day.disabled { color: var(--line); cursor: not-allowed; }
.cal-day:not(.disabled):not(.empty):hover { background: var(--sky-soft); }
.cal-day.today { font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line); }
.cal-day.selected-dep, .cal-day.selected-ret { background: #0F5FB8; color: #fff; font-weight: 700; }
.cal-day.in-range { background: var(--sky-soft); border-radius: 0; color: var(--sky-deep); }
.cal-day.selected-dep { border-radius: 8px 0 0 8px; }
.cal-day.selected-ret { border-radius: 0 8px 8px 0; }
.cal-day.selected-dep.single-day, .cal-day.selected-ret.single-day { border-radius: 8px; }
.cal-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line-soft); gap: 12px;
}
.cal-hint { font-size: 12.5px; color: var(--ink-soft); }
.cal-done {
  background: #0F5FB8; color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 20px; border-radius: 8px; transition: background 0.12s;
  flex-shrink: 0; border: 0; cursor: pointer;
}
.cal-done:hover { background: var(--sky-deep); }
@media (max-width: 720px) {
  .cal-popup {
    position: fixed;
    inset: 0 !important;
    top: 0 !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
    width: 100%; max-width: none; height: 100%; max-height: none;
    border-radius: 0; border: none; padding: 0; overflow: hidden;
    z-index: 600;
  }
  .cal-popup.open { display: flex; flex-direction: column; animation: calSlideUp 0.24s ease-out; }
  @keyframes calSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .cal-header { padding: 16px 16px 0; margin: 0; flex-shrink: 0; }
  .cal-grids { flex: 1; overflow-y: auto; padding: 16px; flex-direction: column; gap: 24px; -webkit-overflow-scrolling: touch; }
  .cal-grid { width: 100%; }
  .cal-month-label-1 { display: none; }
  .cal-months-labels { justify-content: center; }
  .cal-footer { padding: 14px 16px; margin: 0; flex-shrink: 0; background: var(--paper); }
}

/* ─── Autocomplete (porté d'index.html) ─── */
.ac-list {
  position: absolute; top: 100%; left: -1px; right: -1px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  margin-top: 6px; max-height: 320px; overflow-y: auto;
  z-index: 520; display: none;
}
.ac-list.open { display: block; }
.ac-item {
  padding: 11px 14px; cursor: pointer; display: flex; align-items: center;
  gap: 12px; transition: background 0.1s; border-bottom: 1px solid var(--line-soft);
}
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover, .ac-item.focused { background: var(--sky-soft); }
.ac-flag { font-size: 20px; line-height: 1; }
.ac-info { flex: 1; min-width: 0; }
.ac-city {
  font-size: 14px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ac-airport {
  font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ac-code {
  background: var(--bg); padding: 4px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL COMPARAISON (tableau 2-3 vols)
   ═══════════════════════════════════════════════════════════════ */
.cmp-container {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
.cmp-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--sun));
}
.cmp-header {
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
}
.cmp-title-block { flex: 1; }
.cmp-eyebrow {
  font-family: var(--body);
  font-size: 10px; font-weight: 700;
  color: var(--sky-deep);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cmp-title {
  font-family: var(--disp);
  font-size: 22px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.cmp-title em {
  font-family: var(--serif);
  font-style: italic; font-weight: 400;
  color: var(--sky-deep);
}
.cmp-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.cmp-close:hover { background: var(--ink); color: white; }
.cmp-body {
  padding: 20px 28px 24px;
  overflow-x: auto;
}
.cmp-table {
  display: grid;
  gap: 0;
  min-width: 100%;
}
.cmp-flight-header {
  padding: 16px 14px;
  border-bottom: 2px solid var(--ink);
  display: flex; flex-direction: column;
  gap: 6px;
  text-align: center;
}
.cmp-flight-airline-block {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-bottom: 8px;
}
.cmp-flight-logo {
  position: relative;
  width: 48px; height: 48px;
  background: #fff;
  border: 1.5px solid #CFC9B8;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(12,31,61,.10);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-weight: 700; color: var(--ink);
  font-size: 11px;
  overflow: hidden;
}
.cmp-flight-logo .dB-logo-img { padding: 4px; }
.cmp-flight-name {
  font-family: var(--disp);
  font-size: 14px; font-weight: 700;
  color: var(--ink);
}
.cmp-flight-price {
  font-family: var(--disp);
  font-size: 24px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 2px;
}
.cmp-flight-price-note {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.cmp-flight-cta {
  padding: 8px 14px;
  background: var(--ink);
  color: white;
  border: 0;
  border-radius: 4px;
  font-family: var(--body);
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s;
  text-decoration: none;
  text-align: center;
}
.cmp-flight-cta:hover { background: var(--sky-deep); color: white; }
.cmp-criterion {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--disp);
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 12.5px;
  letter-spacing: -0.005em;
  display: flex; align-items: center;
  gap: 8px;
}
.cmp-criterion-label { font-size: 12.5px; }
.cmp-cell {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink);
  text-align: center;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.cmp-cell-primary {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cmp-cell-primary .stars { color: var(--sun); font-size: 14px; }
.cmp-cell-secondary {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.cmp-cell-tag {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cmp-cell-tag.deal {
  background: var(--sun-soft);
  color: var(--sun);
}
/* Ligne sérénité en avant */
.cmp-criterion.cmp-row-serenity {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  border-bottom-color: rgba(255,255,255,0.15);
}
.cmp-cell.cmp-row-serenity {
  background: var(--ink);
  color: white;
  border-bottom-color: rgba(255,255,255,0.15);
}
.cmp-cell.cmp-row-serenity .cmp-cell-primary { color: white; font-size: 15px; }
.cmp-cell.cmp-row-serenity .cmp-cell-secondary { color: rgba(255,255,255,0.55); }
@media (max-width: 640px) {
  .cmp-header { padding: 18px 20px 14px; }
  .cmp-title { font-size: 18px; }
  .cmp-body { padding: 16px 20px 20px; }
  /* Compacter le header vol pour aligner prix + CTA */
  .cmp-flight-header {
    padding: 12px 8px;
    gap: 4px;
  }
  .cmp-flight-logo { width: 40px; height: 40px; font-size: 11px; }
  .cmp-flight-name { font-size: 12.5px; }
  .cmp-flight-price {
    font-size: 18px;
    margin-bottom: 0;
    min-height: 22px;
    display: flex; align-items: center; justify-content: center;
  }
  .cmp-flight-price-note { font-size: 11px; margin-bottom: 6px; }
  .cmp-flight-cta {
    padding: 8px 8px;
    font-size: 11.5px;
    width: 100%;
    box-sizing: border-box;
    min-height: 32px;
    display: flex; align-items: center; justify-content: center;
  }
  /* Colonne label plus étroite sur mobile pour donner de la place aux vols */
  .cmp-table { min-width: unset; }
  .cmp-criterion { padding: 10px 8px; font-size: 11.5px; }
  .cmp-criterion-label { font-size: 11.5px; line-height: 1.3; }
  .cmp-cell { padding: 10px 8px; font-size: 12px; }
  .cmp-cell-primary { font-size: 12.5px; }
  .cmp-cell-secondary { font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .site-header { padding: 12px 16px; }
  .site-logo { font-size: 15px; }
  .site-logo-mark { width: 32px; height: 32px; }
  .search-recap { padding: 14px 16px; }
  .search-recap-route { font-size: 17px; }
  .search-recap-dates { font-size: 13px; }
  .main { padding: 16px 12px; }
  .sort-header { flex-direction: column; align-items: stretch; }
  .filter-block { padding: 14px 16px; }
  .filter-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .info-banner { padding: 16px 16px; }
  .days-grid { gap: 4px; }
  .day-cell { padding: 8px 2px; }
  .day-day { font-size: 8px; }
  .day-date { font-size: 12px; }
  .day-price { font-size: 11px; }
  .dB { padding: 14px 16px 12px; }
  .dB-head { flex-wrap: wrap; }
  .dB-tags { order: 3; flex: 1 1 100%; width: 100%; justify-content: flex-start; padding-top: 4px; }
  .dB-event-time { font-size: 14px; min-width: 45px; }
  .dB-price { font-size: 20px; }
  .dB-cta { padding: 8px 14px; font-size: 11px; }
  .dB-bottom { flex-direction: column; align-items: stretch; gap: 8px; }
  .dB-price-cta { justify-content: space-between; }
  .compare-bar { padding: 10px 14px; gap: 8px; }
  .compare-bar-label { font-size: 11px; }
  body { padding-bottom: 130px; }
}

body.mobile-preview .site-header { padding: 12px 16px; }
body.mobile-preview .site-logo { font-size: 15px; }
body.mobile-preview .site-logo-mark { width: 32px; height: 32px; }
body.mobile-preview .search-recap { padding: 14px 16px; }
body.mobile-preview .search-recap-route { font-size: 17px; }
body.mobile-preview .search-recap-dates { font-size: 13px; }
body.mobile-preview .main { padding: 16px 12px; }
body.mobile-preview .sort-header { flex-direction: column; align-items: stretch; }
body.mobile-preview .filter-block { padding: 14px 16px; }
body.mobile-preview .filter-header { flex-direction: column; align-items: flex-start; gap: 6px; }
body.mobile-preview .info-banner { padding: 16px 16px; }
body.mobile-preview .days-grid { gap: 4px; }
body.mobile-preview .day-cell { padding: 8px 2px; }
body.mobile-preview .day-day { font-size: 8px; }
body.mobile-preview .day-date { font-size: 12px; }
body.mobile-preview .day-price { font-size: 11px; }
body.mobile-preview .dB { padding: 14px 16px 12px; }
body.mobile-preview .dB-head { flex-wrap: wrap; }
body.mobile-preview .dB-tags { order: 3; flex: 1 1 100%; width: 100%; justify-content: flex-start; padding-top: 4px; }
body.mobile-preview .dB-event-time { font-size: 14px; min-width: 45px; }
body.mobile-preview .dB-price { font-size: 20px; }
body.mobile-preview .dB-cta { padding: 8px 14px; font-size: 11px; }
body.mobile-preview .dB-bottom { flex-direction: column; align-items: stretch; gap: 8px; }
body.mobile-preview .dB-price-cta { justify-content: space-between; }
body.mobile-preview .compare-bar { padding: 10px 14px; gap: 8px; }
body.mobile-preview .compare-bar-label { font-size: 11px; }
body.mobile-preview { padding-bottom: 130px; }

/* ═══ Favoris ❤ + Alerte prix 🔔 (Phase D) ═══ */
.sort-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.epf-fav-open{display:inline-flex;align-items:center;gap:8px;background:var(--paper);border:1px solid var(--line);border-radius:999px;padding:9px 15px 9px 13px;font-family:var(--body);font-size:13px;font-weight:600;color:var(--ink);cursor:pointer;transition:.15s}
.epf-fav-open:hover{border-color:var(--sky);background:var(--sky-soft)}
.epf-fav-open svg{width:17px;height:17px;fill:none;stroke:var(--ink);stroke-width:1.8}
.epf-fav-open .cnt{background:#0F5FB8;color:#fff;border-radius:999px;font-size:12px;font-weight:700;min-width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
.epf-fav-open .cnt.zero{background:var(--line);color:var(--muted)}
.epf-ov{position:fixed;inset:0;background:rgba(12,31,61,.45);opacity:0;visibility:hidden;transition:.2s;z-index:1200}
.epf-ov.show{opacity:1;visibility:visible}
.epf-drawer{position:fixed;top:0;right:0;height:100%;width:380px;max-width:92vw;background:var(--bg);box-shadow:-8px 0 40px rgba(12,31,61,.18);transform:translateX(100%);transition:.24s;z-index:1210;display:flex;flex-direction:column}
.epf-drawer.show{transform:none}
.epf-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:20px 20px 14px;border-bottom:1px solid var(--line)}
.epf-drawer-head h3{font-family:var(--serif);font-size:24px;font-weight:400}
.epf-drawer-x{width:34px;height:34px;border-radius:9px;border:1px solid var(--line);background:var(--paper);cursor:pointer;font-size:18px;color:var(--muted)}
.epf-drawer-body{padding:16px 18px;overflow:auto;flex:1}
.epf-fav-empty{text-align:center;color:var(--muted);font-size:14px;padding:40px 10px;line-height:1.55}
.epf-fav-empty svg{width:40px;height:40px;stroke:var(--line);fill:none;stroke-width:1.5;margin-bottom:12px}
.epf-fcard{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:14px 15px;margin-bottom:12px}
.epf-fcard-air{font-size:12.5px;font-weight:600;color:var(--ink-soft);margin-bottom:2px}
.epf-fcard-route{font-family:var(--serif);font-size:19px;margin-bottom:2px}
.epf-fcard-meta{font-size:12.5px;color:var(--muted);margin-bottom:5px}
.epf-fcard-price{font-family:var(--serif);font-size:18px;margin-bottom:11px}
.epf-fcard-actions{display:flex;gap:8px}
.epf-fcard-actions a,.epf-fcard-actions button{flex:1;text-align:center;font-size:13px;font-weight:600;font-family:var(--body);border-radius:9px;padding:9px;cursor:pointer;text-decoration:none;border:1px solid var(--line)}
.epf-fcard-go{background:#0F5FB8;color:#fff;border-color:#0F5FB8}
.epf-fcard-rm{background:var(--paper);color:var(--ink-soft)}
.epf-fcard-rm:hover{border-color:#E4572E;color:#E4572E}
.epf-modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;visibility:hidden;transition:.2s;z-index:1220}
.epf-modal.show{opacity:1;visibility:visible}
.epf-modal-card{background:var(--paper);border-radius:18px;max-width:440px;width:100%;padding:26px 26px 22px;box-shadow:0 24px 70px rgba(12,31,61,.28);transform:translateY(10px);transition:.24s;max-height:92vh;overflow:auto}
.epf-modal.show .epf-modal-card{transform:none}
.epf-modal-ico{width:48px;height:48px;border-radius:13px;background:var(--sky-soft);display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.epf-modal-ico svg{width:26px;height:26px;fill:none;stroke:var(--sky-deep);stroke-width:1.8}
.epf-modal h3{font-family:var(--serif);font-size:26px;font-weight:400;margin-bottom:4px}
.epf-modal .route{font-size:14px;color:var(--ink-soft);margin-bottom:18px}
.epf-modal .route b{color:var(--ink);font-weight:600}
.epf-fld{margin-bottom:14px}
.epf-fld label{display:block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:6px}
.epf-fld input[type=email],.epf-fld input[type=number]{width:100%;font:inherit;font-size:15px;padding:11px 13px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink)}
.epf-fld input:focus{outline:none;border-color:var(--sky);background:var(--paper);box-shadow:0 0 0 3px rgba(30,144,255,.12)}
.epf-price-row{display:flex;align-items:center;gap:8px}
.epf-price-row input{flex:1}
.epf-price-row .cur{font-size:15px;color:var(--muted);white-space:nowrap}
.epf-consent{display:flex;gap:9px;align-items:flex-start;font-size:12.5px;color:var(--ink-soft);line-height:1.5;margin:4px 0 16px}
.epf-consent input{margin-top:3px}
.epf-consent a{color:var(--sky-deep)}
.epf-note{display:flex;gap:10px;background:var(--sun-soft);border:1px solid #efd9a8;border-radius:11px;padding:11px 13px;font-size:12.5px;color:#7a5a15;line-height:1.5;margin-bottom:16px}
.epf-note svg{width:17px;height:17px;flex-shrink:0;stroke:#a86a12;fill:none;stroke-width:1.8;margin-top:1px}
.epf-modal-actions{display:flex;gap:10px}
.epf-btn{flex:1;font:inherit;font-weight:600;font-size:14px;border-radius:11px;padding:12px;cursor:pointer;border:1px solid var(--line);background:var(--paper);color:var(--ink-soft)}
.epf-btn-primary{background:#0F5FB8;color:#fff;border-color:#0F5FB8}
.epf-btn-primary:hover{background:var(--sky-deep)}
.epf-btn-primary:disabled{opacity:.5;cursor:not-allowed}
.epf-err{font-size:13px;color:#E4572E;margin-bottom:12px;display:none}
.epf-err.show{display:block}
.epf-ok-ico{width:54px;height:54px;border-radius:50%;background:#E7F5EC;display:flex;align-items:center;justify-content:center;margin:0 auto 14px}
.epf-ok-ico svg{width:30px;height:30px;stroke:var(--green);fill:none;stroke-width:2.4}
.epf-ok-wrap{text-align:center}
.epf-ok-wrap h3{margin-bottom:8px}
.epf-ok-wrap p{font-size:14px;color:var(--ink-soft);line-height:1.55;margin-bottom:16px}

/* ════════════════════════════════════════════════════════════════
   SCORE SÉRÉNITÉ — badge + infobulle
   (réintégré : ces règles manquaient sur cette feuille, l'infobulle
    des tags de sérénité ne s'affichait pas sur vols / multi-villes)
   ════════════════════════════════════════════════════════════════ */
.ser-plane { width: 15px; height: 15px; flex-shrink: 0; }
.ser-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: default;
  position: relative;
}
.ser-badge:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.ser-badge-label { font-weight: 700; white-space: nowrap; }
.ser-badge-score { font-weight: 700; white-space: nowrap; }
.ser-badge .ser-plane { width: 13px; height: 13px; }

/* Infobulle */
.ser-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 260px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(12, 31, 61, 0.16);
  padding: 14px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s, transform 0.16s;
  cursor: default;
  text-align: left;
}
.ser-badge:hover .ser-tooltip,
.ser-badge:focus .ser-tooltip,
.ser-badge:focus-within .ser-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.ser-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--paper);
}
.ser-tt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.ser-tt-planes { display: inline-flex; gap: 2px; }
.ser-tt-planes .ser-plane { width: 18px; height: 18px; }
.ser-tt-score { font-family: var(--disp); font-size: 22px; font-weight: 800; line-height: 1; }
.ser-tt-max { font-size: 13px; font-weight: 600; color: var(--muted); }
.ser-tt-crits { display: flex; flex-direction: column; gap: 9px; }
.ser-crit-top {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 3px;
}
.ser-crit-weight { color: var(--muted); font-weight: 600; }
.ser-crit-bar {
  height: 5px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}
.ser-crit-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s;
}
.ser-tt-foot {
  display: block;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 10.5px;
  color: var(--muted);
  font-style: italic;
}
@media (max-width: 600px) {
  .ser-badge-label { display: none; } /* mobile : on garde l'avion + le score chiffre */
  .ser-tooltip { width: 220px; }
}

/* ════════════════════════════════════════════════════════════════
   SCORE SÉRÉNITÉ — infobulle Modèle C (anneau + micro-notes)
   Remplace la mise en forme du contenu (barres → anneau + notes).
   Le badge, la position et l'apparition de l'infobulle sont inchangés.
   ════════════════════════════════════════════════════════════════ */
.ser-tt-head{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding-bottom:13px;margin-bottom:12px;border-bottom:1px solid var(--line-soft);}
.ser-ring{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;position:relative;flex:none;}
.ser-ring::after{content:"";position:absolute;inset:6px;background:var(--paper);border-radius:50%;}
.ser-ring-in{position:relative;z-index:2;text-align:center;line-height:1;}
.ser-ring-in b{display:block;font-family:var(--disp);font-weight:400;font-size:24px;letter-spacing:.01em;}
.ser-ring-max{display:block;font-size:10px;color:var(--muted);margin-top:2px;}
.ser-verdict{font-size:12.5px;font-weight:700;letter-spacing:.01em;text-align:center;}
.ser-tt-crits{display:flex;flex-direction:column;gap:10px;}
.ser-crit{display:flex;align-items:center;gap:9px;}
.ser-crit-dot{width:8px;height:8px;border-radius:50%;flex:none;}
.ser-crit-lb{font-size:11.5px;color:var(--ink-soft);flex:1;line-height:1.25;}
.ser-crit-mini{display:inline-flex;gap:1.5px;flex:none;}
.ser-crit-mini .ser-plane{width:10px;height:10px;}
.ser-tt-foot .ser-tt-link{color:var(--sky-deep);font-style:normal;font-weight:600;text-decoration:none;white-space:nowrap;}
@media (max-width: 600px){
  .ser-ring{width:66px;height:66px;}
  .ser-ring-in b{font-size:21px;}
}

/* Infobulle Sérénité : état ouvert au clic / tap (mobile) */
.ser-badge.ser-open .ser-tooltip{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0);}
.dB-tag.serenity.ser-open .ser-tooltip{opacity:1;visibility:visible;transform:translateY(0);}

/* ════════════════════════════════════════════════════════════════
   Infobulle Sérénité sur le TAG des résultats (.dB-tag.serenity)
   Ce tag est en haut de la carte → l'infobulle s'ouvre vers le BAS.
   ════════════════════════════════════════════════════════════════ */
.dB-tag.serenity{position:relative;cursor:pointer;}
.dB-tag.serenity .ser-tooltip{
  top:calc(100% + 12px);bottom:auto;left:auto;right:0;
  transform:translateY(-4px);
  color:var(--ink);font-weight:400;
}
.dB-tag.serenity:hover .ser-tooltip,
.dB-tag.serenity:focus .ser-tooltip,
.dB-tag.serenity:focus-within .ser-tooltip,
.dB-tag.serenity.ser-open .ser-tooltip{opacity:1;visibility:visible;transform:translateY(0);}
.dB-tag.serenity .ser-tooltip::after{
  top:auto;bottom:100%;left:auto;right:22px;transform:none;
  border:7px solid transparent;border-bottom-color:var(--paper);border-top-color:transparent;
}
/* La carte .dB coupe le débordement : on l'autorise pour laisser voir l'infobulle */
.dB{overflow:visible;}

/* Footer infobulle : lien sur sa propre ligne (évite le débordement en étroit) */
.ser-tt-foot .ser-tt-link{display:inline-block;margin-top:4px;}
@media (max-width:600px){ .dB-tag.serenity .ser-tooltip .ser-tt-link{display:block;margin-top:5px;} }

/* Le tag .dB-tag est en white-space:nowrap : on rétablit le retour à la ligne dans l’infobulle */
.dB-tag.serenity .ser-tooltip{white-space:normal;}
.dB-tag.serenity .ser-crit-lb{min-width:0;}

/* ─── Bandeau « pensez au train » (tri Notre recommandation) ─── */
#trainSuggest[hidden]{display:none}
.train-suggest{margin:0 0 18px}
.tsug-card{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center;background:linear-gradient(180deg,#fff,#FBFAF6);border:1px solid #E7E3D8;border-radius:18px;padding:18px 20px;box-shadow:0 6px 22px rgba(12,31,61,.05)}
.tsug-badge{width:50px;height:50px;border-radius:14px;background:#EAF3FF;color:#0F5FB8;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.tsug-badge svg{width:27px;height:27px}
.tsug-eyebrow{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#0F5FB8}
.tsug-title{font-family:'Instrument Serif', 'Instrument Serif Fallback', serif;font-weight:400;font-size:21px;line-height:1.15;margin:2px 0 5px;color:#0C1F3D}
.tsug-text{font-size:13.5px;color:#4A5568;line-height:1.5;margin:0}
@media(max-width:560px){.tsug-card{padding:16px}.tsug-title{font-size:19px}}

/* ─── Illustration prise électrique (bandeau « Bon à savoir ») ─── */
.dest-fact-illus{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
.dest-fact-illus:empty{display:none}
.dest-fact-illus .plug-illus{display:inline-flex;width:38px;height:38px;color:var(--ink);flex:0 0 auto}
.dest-fact-illus .plug-illus svg{width:100%;height:100%;display:block}
.dest-fact-illus .plug-adapt{font-size:11.5px;line-height:1.3;color:var(--muted);font-style:italic}

/* --- fix info-bulle Sérénité : rester dans la carte, ne pas déborder (comparateur & cartes de vol) --- */
.ser-badge{position:relative}
.ser-tooltip{width:230px;max-width:calc(100vw - 28px);right:0;left:auto}
.ser-badge.ser-open .ser-tooltip{transform:translateY(0)!important}
@media(max-width:640px){.ser-tooltip{width:min(230px,calc(100vw - 40px))}}

/* ── Fix débordement infobulle Sérénité (2026-08-21) ──
   Le badge .dB-tag.serenity est en haut-À GAUCHE de la carte : l'infobulle
   doit s'ouvrir vers la DROITE (et non par la droite, qui la faisait sortir
   à gauche de l'écran sur mobile). Largeur bornée à la fenêtre. */
.dB-tag.serenity .ser-tooltip{
  right:0; left:auto;
  width:min(250px, calc(100vw - 32px));
  max-width:calc(100vw - 32px);
}
.dB-tag.serenity .ser-tooltip::after{ right:22px; left:auto; transform:none; }
