/* BuyTrotter — feuille de style (mobile d'abord) */
:root {
  /* Charte « BuyTrotter bleu et jaune » (maquette du 23/11/2026) */
  --navy: #0B2A6F;
  --navy-text: #D6E4FF;
  --petrol: #1F4FD8;
  --petrol-dark: #163CB0;
  --mint: #E6F1FF;
  --bg: #F4F8FF;
  --surface: #FFFFFF;
  --border: #E2E9F6;
  --border-strong: #CFDAEE;
  --text: #0E1B3D;
  --text-2: #33405E;
  --muted: #5B6683;
  --sand: #FFF1B8;
  --sand-border: #FFE07A;
  --sand-card: #FFE7A0;
  --sand-text: #5E4700;
  --tag-bg: #FFE4E6;
  --tag-text: #B4232F;
  --demo-bg: #FFD23F;
  --demo-border: #F5C400;
  --demo-text: #0B2A6F;
  --yellow: #FFD23F;
  --yellow-dark: #F2B705;
  --sky: #E6F1FF;
  --radius: 18px;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-title: 'Baloo 2', 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.45; }
img { display: block; max-width: 100%; }
a { color: var(--petrol); }
a:hover { color: var(--petrol-dark); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Bandeau démo */
.demo-banner { padding: 5px 16px; background: var(--demo-bg); border-bottom: 1px solid var(--demo-border); color: var(--demo-text); font-size: 12px; font-weight: 700; text-align: center; }

/* En-tête */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 2px; padding-bottom: 2px; }
.logo { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; font-size: 19px; letter-spacing: -0.3px; color: var(--navy); text-decoration: none; }
.logo:hover { color: var(--navy); }
.logo svg { flex-shrink: 0; }
.main-nav { display: none; gap: 24px; font-size: 15px; font-weight: 600; }
.main-nav a { color: var(--text); text-decoration: none; }
.lang-btn { margin-left: auto; min-height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 700; color: var(--navy); }

/* Barre de trajet (De / Vers / recherche) */
.trip { display: flex; flex-direction: column; gap: 10px; }
.trip-row { display: flex; align-items: flex-end; gap: 6px; }
.trip-field { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.trip-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.picker { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); font-size: 15px; font-weight: 700; color: var(--text); text-align: left; }
.picker .picker-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker .inline-label { display: none; font-size: 12px; font-weight: 600; color: var(--muted); }
@media (min-width: 900px) { .picker .inline-label { display: inline; } }
.swap-btn { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 36px; height: 46px; border: 0; background: transparent; color: var(--navy); border-radius: 10px; }
.search { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; }
.search:focus-within { border-color: var(--petrol); box-shadow: 0 0 0 2px rgba(15,118,110,.25); }
.btn-primary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--petrol); color: #FFFFFF; font-size: 16px; font-weight: 700; text-decoration: none; }
.btn-primary:hover { background: var(--petrol-dark); color: #FFFFFF; }
.btn-outline { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 16px; border: 1px solid var(--navy); border-radius: 12px; background: transparent; color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none; width: 100%; }
.flag { display: inline-block; flex-shrink: 0; width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); overflow: hidden; }
.flag svg { display: block; width: 100%; height: 100%; }

/* Accueil : bandeau */
.hero { position: relative; z-index: 5; background: var(--navy); color: #FFFFFF; }
.hero-bg { display: none; }
.hero .wrap { position: relative; padding-top: 12px; padding-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.hero h1 { margin: 0; font-size: 21px; line-height: 1.15; font-weight: 800; letter-spacing: -0.4px; }
.hero p { margin: 2px 0 0; font-size: 13px; color: var(--navy-text); }
.hero-card { padding: 10px; background: var(--surface); border-radius: 14px; color: var(--text); }
.hero-card .trip { gap: 8px; }
.hero-card .picker, .hero-card .search { min-height: 44px; }
.hero-card .btn-primary { min-height: 46px; }
.hero-sub-long { display: none; }

/* Sections */
.section { padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.section-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.section-head .sub { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.section-head a { font-size: 14px; font-weight: 700; text-decoration: none; }

/* Grilles et cartes produits */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; }
a.card:hover { color: var(--text); border-color: var(--border-strong); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: #EFEDE7; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--petrol); color: #FFFFFF; font-size: 12px; font-weight: 800; }
.card-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.card-title { display: flex; flex-direction: column; gap: 2px; min-height: 52px; }
.card-variant { font-size: 12px; line-height: 1.35; color: var(--muted); }
.quality { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.quality::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.quality.q1 { color: var(--petrol-dark); }
.quality.q2 { color: #2E5A85; }
.quality.q3 { color: var(--muted); }
.price-block { display: flex; flex-direction: column; gap: 1px; }
.price-block .lbl { font-size: 12px; font-weight: 700; color: var(--text-2); }
.val-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 6px; }
.val-row .val { font-size: 20px; font-weight: 800; color: var(--navy); }
.price-local { font-size: 11px; color: var(--muted); }
.price-home { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 4px; font-size: 12px; color: var(--muted); }
.saving { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 8px; background: var(--mint); color: var(--petrol-dark); }
.saving-lbl { font-size: 11px; font-weight: 700; }
.saving-val { font-size: 15px; font-weight: 800; }
.card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.source { font-size: 11px; line-height: 1.4; color: var(--muted); }
a.source { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 2px; }
a.source:hover { color: var(--petrol); }
.tax-note { font-size: 11px; line-height: 1.35; color: var(--muted); }
.offer-note { font-size: 11px; line-height: 1.35; color: #8A5A12; font-weight: 600; }

/* Choix du classement */
.sort-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sort-lbl { font-size: 13px; color: var(--muted); margin-right: 2px; }
.sort-switch button { min-height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; }
.sort-switch button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #FFFFFF; font-weight: 700; }
.sort-mobile { padding-top: 10px; }

.placeholder-media { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #6B7079; font-size: 11px; font-weight: 600; text-align: center; padding: 8px; }

/* Spécialités */
.special-block { margin-top: 24px; padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; background: var(--sand); border: 1px solid var(--sand-border); border-radius: 18px; }
.special-block .section-head .sub { color: var(--sand-text); }
.special-block .section-head a { color: var(--sand-text); }
.card.special { border-color: var(--sand-card); }
.card.special .card-media { background: #F4ECE4; }
.card.special .placeholder-media { color: #7A6450; }
.tag { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-text); font-size: 11px; font-weight: 800; }
.range { font-size: 16px; font-weight: 800; color: var(--navy); }
.small-muted { font-size: 11px; line-height: 1.4; color: var(--muted); }
.grid.home-specials > :nth-child(n+3) { display: none; }
.special-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--sand-text); }

/* Destinations */
.dest-card .card-media { aspect-ratio: 16 / 10; }
.dest-card .dest-name { padding: 9px 10px 1px; font-size: 15px; font-weight: 800; }
.dest-card .dest-hint { padding: 0 10px 10px; font-size: 12px; color: var(--muted); }
.dest-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #E3E8EC; }
.dest-placeholder .flag { width: 48px; height: 32px; }

.note { margin: 22px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }

/* Résultats */
.results-top .wrap { padding-top: 10px; padding-bottom: 12px; }
.title-band { position: relative; overflow: hidden; background: var(--navy); color: #FFFFFF; }
.title-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.title-band::after { content: ''; position: absolute; inset: 0; background: rgba(18,38,58,.78); }
.title-band .wrap { position: relative; z-index: 1; padding-top: 18px; padding-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.title-band h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.5px; }
.title-band p { margin: 0; font-size: 13px; line-height: 1.5; color: #D5E0EA; }
.crumbs { font-size: 12px; color: var(--navy-text); }
.crumbs a { color: var(--navy-text); }

.chips { display: flex; gap: 8px; padding-top: 14px; overflow-x: auto; scrollbar-width: none; }
.chip { flex-shrink: 0; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 14px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #FFFFFF; font-weight: 700; }

.results-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.filters { display: none; }
.results-main { flex: 999 1 640px; min-width: 0; }
.empty { padding: 16px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); font-size: 14px; color: var(--text-2); }
details.pricier { margin-top: 18px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; color: var(--text-2); }
details.pricier summary { cursor: pointer; font-weight: 700; min-height: 24px; }
details.pricier ul { margin: 8px 0 0; padding-left: 18px; }

.trip-help { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--navy); border-radius: 18px; color: #FFFFFF; }
.trip-help h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.trip-help-list { display: grid; gap: 8px; }
.trip-help .item { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 15px; font-weight: 600; }
.trip-help .soon { font-size: 12px; font-weight: 600; color: var(--navy-text); }

/* Pied de page */
.site-footer { margin-top: 26px; padding: 20px 0 26px; background: var(--navy); color: var(--navy-text); font-size: 12px; line-height: 1.6; }
.site-footer strong { color: #FFFFFF; font-size: 16px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Fenêtre de choix du pays */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(18,38,58,.5); }
.modal[hidden] { display: none; }
.sheet { width: 100%; max-width: 480px; max-height: 85vh; display: flex; flex-direction: column; background: var(--surface); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 8px; }
.sheet-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.close-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 10px; }
.sheet .search { margin: 0 16px 8px; }
.country-list { list-style: none; margin: 0; padding: 0 8px 16px; overflow-y: auto; }
.country-list button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font-size: 16px; font-weight: 600; text-align: left; }
.country-list button:hover, .country-list button:focus-visible { background: var(--bg); }
.country-list button[aria-current="true"] { background: var(--mint); color: var(--petrol-dark); }
.country-list .cur { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 600; }
.country-list .flag { width: 28px; height: 19px; }

/* ---------- Recherche par produit ---------- */
.mode-tabs { display: flex; gap: 4px; margin-bottom: 10px; padding: 4px; background: var(--bg); border-radius: 12px; }
.mode-tabs button { flex: 1; min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 700; color: var(--text-2); }
.mode-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--navy); box-shadow: 0 1px 3px rgba(18,38,58,.14); }
.suggest-wrap { position: relative; }
.suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 12px 30px rgba(18,38,58,.16); max-height: 360px; overflow-y: auto; }
.suggest[hidden] { display: none; }
.suggest li { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 8px; border-radius: 9px; cursor: pointer; color: var(--text); }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--mint); }
.suggest img, .suggest .sg-ph { flex-shrink: 0; width: 48px; height: 40px; border-radius: 6px; object-fit: cover; background: #EFEDE7; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.suggest .sg-ph svg { width: 18px; height: 18px; }
.sg-text { display: flex; flex-direction: column; min-width: 0; }
.sg-name { font-size: 14px; font-weight: 700; }
.sg-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-best { font-size: 12px; font-weight: 700; color: var(--petrol-dark); }
.product-bar .home-field .picker { min-height: 44px; }
.product-top .product-bar { flex-direction: column; gap: 8px; }

a.card-name { color: var(--text); text-decoration: none; }
a.card-name:hover { color: var(--petrol); text-decoration: underline; }
.compare-link { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-size: 13px; font-weight: 700; color: var(--petrol); text-decoration: none; }
.compare-link:hover { text-decoration: underline; }
.pcard-best { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--petrol-dark); }

/* Page produit */
.pv-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "media intro" "best best"; column-gap: 14px; row-gap: 12px; align-items: center; padding-top: 16px; }
.pv-head .card-media { grid-area: media; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.pv-head .card-media .placeholder-media span { display: none; }
.pv-intro { grid-area: intro; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pv-brand { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.pv-name { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -0.4px; }
.pv-variant { font-size: 14px; color: var(--muted); }
.pv-best { grid-area: best; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius); background: var(--mint); color: var(--petrol-dark); }
.pv-best.is-home { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.pv-best-lbl { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.pv-best-country { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: var(--navy); }
.pv-best-country .flag { width: 26px; height: 18px; }
.pv-best-price { font-size: 28px; font-weight: 800; color: var(--navy); }
.pd-ht { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pv-best-price span { font-size: 14px; font-weight: 600; color: var(--muted); }
.pv-best p { margin: 0; font-size: 14px; line-height: 1.45; }
.pv-best-save { font-size: 15px; font-weight: 800; }
.pv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pv-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "rank country diff" "rank price price" "rank notes notes"; column-gap: 10px; row-gap: 4px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.pv-row.is-best { border-color: var(--petrol); box-shadow: 0 0 0 1px var(--petrol) inset; }
.pv-row.is-home { background: #FBFAF7; }
.pv-rank { grid-area: rank; align-self: start; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); font-size: 13px; font-weight: 800; color: var(--text-2); }
.pv-row.is-best .pv-rank { background: var(--petrol); color: #FFFFFF; }
.pv-country { grid-area: country; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; min-width: 0; }
.pv-price { grid-area: price; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pv-price strong { font-size: 20px; font-weight: 800; color: var(--navy); }
.pv-price span { font-size: 12px; color: var(--muted); }
.pv-diff { grid-area: diff; justify-self: end; padding: 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.pv-diff.good { background: var(--petrol); color: #FFFFFF; }
.pv-diff.same, .pv-diff.home { background: var(--bg); color: var(--text-2); border: 1px solid var(--border-strong); }
.pv-diff.bad { background: #FCE8E6; color: #A1281C; }
.pv-notes { grid-area: notes; display: flex; flex-direction: column; gap: 2px; }
.pv-missing { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.pv-dest { margin-top: 16px; }

/* ---------- Ordinateur ---------- */
@media (min-width: 900px) {
  .wrap { padding: 0 24px; }
  .demo-banner { font-size: 13px; }
  .site-header .wrap { min-height: 68px; }
  .logo { font-size: 21px; }
  .main-nav { display: flex; }

  .hero-bg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
  .hero::after { content: ''; position: absolute; inset: 0; background: rgba(18,38,58,.74); }
  .hero .wrap { z-index: 1; padding-top: 48px; padding-bottom: 44px; gap: 22px; }
  .hero h1 { font-size: 44px; letter-spacing: -1.2px; max-width: 700px; }
  .hero p { font-size: 18px; color: #D5E0EA; max-width: 680px; }
  .hero-sub-long { display: inline; }
  .hero-card { max-width: 1040px; padding: 16px; border-radius: 18px; }
  .hero-card .trip { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
  .hero-card .trip-row { flex: 2 1 380px; }
  .hero-card .search-field { flex: 3 1 280px; }
  .hero-card .btn-primary { flex: 0 0 auto; min-height: 46px; }

  .results-top .trip { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .results-top .trip-row { flex: 0 1 460px; align-items: center; }
  .results-top .search-field { flex: 1 1 260px; }

  .section { padding-top: 36px; gap: 16px; }
  .section-head h2 { font-size: 26px; letter-spacing: -0.4px; }
  .section-head .sub { font-size: 14px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .grid.dest-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .grid.home-specials > :nth-child(n+3) { display: flex; }
  .card-name { font-size: 15px; }
  .card-title { min-height: 56px; }
  .val-row .val { font-size: 22px; }
  .price-local { font-size: 12px; }
  .price-home { font-size: 13px; }
  .saving { padding: 7px 10px; }
  .saving-lbl { font-size: 12px; }
  .saving-val { font-size: 16px; }
  .results-page .sort-mobile { display: none; }
  .hero h1 { line-height: 1.08; }
  .hero-card .picker, .hero-card .search { min-height: 46px; }
  .source, .tax-note, .offer-note { font-size: 12px; }
  .special-block { margin-top: 36px; padding: 22px; border-radius: 22px; }
  .range { font-size: 19px; }
  .small-muted { font-size: 12px; }
  .note { font-size: 13px; }

  .title-band .wrap { padding-top: 30px; padding-bottom: 30px; }
  .title-band h1 { font-size: 36px; letter-spacing: -0.8px; }
  .title-band p { font-size: 15px; }
  .crumbs { font-size: 13px; }

  .results-page .chips { display: none; }
  .results-layout { padding-top: 28px; }
  .filters { display: flex; flex: 1 1 220px; max-width: 260px; flex-direction: column; gap: 20px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; position: sticky; top: 16px; }
  .filters fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
  .filters legend, .filters .flabel { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 800; }
  .filters label.check { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 28px; }
  .filters input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--petrol); }
  .filters select { min-height: 44px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); font-size: 15px; }
  .filters p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
  .results-main .section:first-child { padding-top: 0; }
  .results-main .section-head h2 { font-size: 23px; }
  .results-page .note.mobile-only { display: none; }

  .trip-help { margin-top: 40px; padding: 24px; }
  .trip-help h2 { font-size: 22px; }
  .trip-help-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trip-help .item { min-height: 56px; font-size: 16px; }

  .site-footer { margin-top: 40px; font-size: 13px; }

  .modal { align-items: center; }
  .sheet { border-radius: 18px; max-height: 80vh; }
}
/* ---------- iPad paysage et ordinateur : version intermédiaire ---------- */
@media (min-width: 900px) {
  /* bandeau ~70-75 % de sa hauteur d'origine, titre toujours grand */
  .hero .wrap { padding-top: 30px; padding-bottom: 32px; gap: 26px; }
  .hero h1 { font-size: 42px; letter-spacing: -1.1px; max-width: 760px; }
  .hero p { font-size: 17px; max-width: 760px; margin-top: 12px; }
  .hero-card { padding: 14px 16px 16px; }
  .hero-card .picker .inline-label { display: none; }
  .hero-bg { object-position: 50% 45%; }

  /* séparation confortable avant « Top économies » ; le choix du classement passe à droite du titre */
  .section { padding-top: 34px; gap: 14px; }
  .section.deals { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 24px; }
  .section.deals > .section-head { grid-column: 1; justify-content: flex-start; column-gap: 20px; }
  .section.deals > .sort-switch { grid-column: 2; justify-content: flex-end; }
  .section.deals > .grid, .section.deals > .empty { grid-column: 1 / -1; }
}
@media (min-width: 900px) and (max-height: 760px) {
  /* écrans peu hauts (iPad paysage, MacBook Air) : un peu moins d'air, mêmes tailles de texte */
  .hero .wrap { padding-top: 26px; padding-bottom: 28px; gap: 22px; }
  .section { padding-top: 28px; }
}
@media (min-width: 1150px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .mode-tabs { display: inline-flex; margin-bottom: 12px; }
  .mode-tabs button { flex: 0 0 auto; padding: 0 18px; }
  .hero-card .product-bar { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
  .hero-card .product-bar .home-field { flex: 0 1 240px; }
  .hero-card .product-bar .search-field { flex: 3 1 320px; }
  .product-top .product-bar { flex-direction: row; align-items: center; gap: 12px; }
  .product-top .product-bar .home-field { flex: 0 1 240px; }
  .product-top .product-bar .search-field { flex: 1 1 320px; }
  .pv-head { grid-template-columns: 380px minmax(0, 560px); grid-template-areas: "media intro" "media best"; column-gap: 32px; row-gap: 14px; align-items: start; padding-top: 32px; }
  .pv-head .card-media { border-radius: var(--radius); }
  .pv-head .card-media .placeholder-media span { display: inline; }
  .pv-intro { padding-top: 6px; }
  .product-top .trip-label { display: none; }
  .pv-name { font-size: 34px; letter-spacing: -0.8px; }
  .pv-best { padding: 18px 20px; align-self: start; }
  .pv-row { grid-template-columns: 34px 190px 190px 110px minmax(0, 1fr); grid-template-areas: "rank country price diff notes"; column-gap: 18px; padding: 14px 18px; }
  .pv-rank { align-self: center; }
  .pv-diff { justify-self: start; }
  .pv-dest { max-width: 420px; }
}

/* ---------- Détaxe et douane ---------- */
.star { font-size: .55em; font-weight: 700; color: var(--muted); margin-left: 2px; vertical-align: super; line-height: 0; cursor: help; }
.guide-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
.guide-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.guide-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 18px; line-height: 1.25; color: var(--navy); }
.guide-card h2 .flag { width: 26px; height: 18px; flex: none; }
.guide-card h3 { margin: 16px 0 8px; font-size: 15px; color: var(--navy); }
.guide-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.guide-src { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.guide-page .section.guide-card { margin-top: 24px; }
.site-footer .footer-links a { color: inherit; }
@media (min-width: 900px) {
  .guide-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .guide-card { padding: 20px 22px; }
}

/* ---------- Pages pour Google (pages fixes) ---------- */
.seo-page .lang-btn { text-decoration: none; color: var(--text); }
.seo-body { padding-top: 8px; }
.seo-body h2 { margin: 28px 0 12px; font-size: 20px; line-height: 1.25; color: var(--navy); }
.seo-lead, .seo-intro p { margin: 18px 0 0; font-size: 16px; line-height: 1.55; color: var(--text-2); max-width: 760px; }
.seo-intro { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.seo-intro img { width: 100%; max-width: 360px; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.seo-intro p { margin: 0; }
.seo-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.seo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.seo-table th, .seo-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.seo-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); background: var(--bg); }
.seo-table tbody tr:last-child th, .seo-table tbody tr:last-child td { border-bottom: 0; }
.seo-table tr.is-best { background: var(--mint); }
.seo-table td:nth-child(3), .seo-table td:nth-child(4), .seo-table td:nth-child(5) { white-space: nowrap; }
.seo-src { min-width: 180px; font-size: 12px; color: var(--muted); }
.seo-src a { color: var(--muted); }
.seo-cta { display: inline-flex; margin-top: 20px; text-decoration: none; }
.seo-badge { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: var(--petrol); color: #FFFFFF; font-size: 12px; font-weight: 800; }
.seo-line { font-size: 13px; color: var(--text-2); }
.seo-save { font-weight: 800; color: var(--petrol-dark); }
.seo-plan { columns: 1; }
@media (min-width: 900px) {
  .seo-intro { flex-direction: row; align-items: center; gap: 24px; }
  .seo-intro img { max-width: 300px; }
  .seo-plan { columns: 2; column-gap: 40px; }
  .seo-plan li { break-inside: avoid; }
}
.seo-page .lang-btn { display: inline-flex; align-items: center; }

/* ---------- Accueil (nouvelle version) ---------- */
.home-tools { display: flex; flex-direction: column; gap: 10px; }
.home-chips { padding-top: 0; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.best-deals .btn-outline { margin-top: 4px; }
.dest-pill { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 16px); padding: 3px 9px 3px 5px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--navy); font-size: 12px; font-weight: 800; box-shadow: 0 1px 4px rgba(0,0,0,.12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dest-pill .flag { width: 18px; height: 12px; flex: none; border-radius: 2px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat-tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 0; border-radius: var(--radius); background: var(--navy); color: #FFFFFF; text-align: left; cursor: pointer; font: inherit; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,38,58,0) 30%, rgba(18,38,58,.88) 100%); }
.cat-text { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; flex-direction: column; gap: 2px; }
.cat-name { font-size: 16px; font-weight: 800; line-height: 1.2; }
.cat-stats { font-size: 12px; font-weight: 600; color: #DDF1EC; }
.dest-card { padding: 0; text-align: left; cursor: pointer; font: inherit; }
.dest-card .dest-name { display: flex; align-items: center; gap: 8px; }
.dest-card .dest-name .flag { width: 22px; height: 15px; flex: none; border-radius: 2px; }
.dest-card .dest-stats { padding: 2px 10px 0; font-size: 13px; font-weight: 800; color: var(--petrol-dark); }
.dest-card .dest-hint { padding-top: 2px; line-height: 1.35; }
.dest-card .dest-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; padding: 0 10px 12px; font-size: 13px; font-weight: 700; color: var(--petrol); }
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.how-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.how-num { grid-row: span 2; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mint); color: var(--petrol-dark); font-weight: 800; }
.how-t { font-weight: 800; color: var(--navy); }
.how-d { font-size: 14px; line-height: 1.45; color: var(--text-2); }
.trust { margin: 4px 0 0; padding: 12px 16px; border-radius: var(--radius); background: var(--navy); color: #FFFFFF; font-size: 14px; font-weight: 700; text-align: center; }
@media (min-width: 900px) {
  .home-tools { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  .home-chips { margin: 0; padding: 0; flex-wrap: wrap; }
  .best-deals .btn-outline { width: auto; align-self: center; padding: 0 28px; }
  .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .cat-name { font-size: 18px; }
  .grid.dest-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .how-step { padding: 18px 20px; }
}
.cat-tile { background: linear-gradient(135deg, #12263A 0%, #0F766E 100%); }
@media (max-width: 899px) { .best-deals .grid > :nth-child(n+7) { display: none; } }
