
/* Layout : guide de voyage clair — phrase de recherche en tête, filtres latéraux en langage simple, cartes-photo ; fiche pays en sections avec sommaire collant */
:root {
  --bg: #f2f5f7;
  --surface: #ffffff;
  --ink: #13222c;
  --muted: #5a6a76;
  --faint: #8a98a3;
  --line: #dde4e9;
  --sea: #0d6c77;
  --sea-deep: #0a4f58;
  --sea-soft: #e0eff0;
  --sun: #f2b234;
  --sun-soft: #fff2d6;
  --coral: #e0533a;
  --good: #1f8a5b;
  --rain: #3d8fd6;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(19 34 44 / .06), 0 8px 24px -12px rgb(19 34 44 / .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); }
body { font-family: var(--font-body); font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--sea); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -.015em; line-height: 1.12; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.num { font-variant-numeric: tabular-nums; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sea); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14.5px; border: 1.5px solid transparent; text-decoration: none; transition: background .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-deep); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { box-shadow: 0 6px 20px -6px rgb(242 178 52 / .8); }
.btn-line { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { padding: 7px 13px; font-size: 13.5px; }
.ico { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgb(255 255 255 / .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 750; font-size: 21px; letter-spacing: -.03em; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--sea); display: grid; place-items: center; color: #fff; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav button { border: 0; background: none; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; }
.nav button:hover { background: var(--bg); color: var(--ink); }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pill-count { min-width: 20px; height: 20px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 11.5px; display: inline-grid; place-items: center; padding: 0 6px; }
@media (max-width: 760px) { .nav { display: none; } .hide-sm { display: none; } }

/* ---------- Hero + phrase de recherche ---------- */
.hero { padding-block: 44px 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-art { display: none; } }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 750; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--sea); }
.hero-sub { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 48ch; }
.sentence { margin-top: 26px; background: var(--surface); border-radius: 24px; padding: 22px 22px 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.sentence-text { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; line-height: 1.75; letter-spacing: -.01em; }
.token { display: inline-flex; align-items: center; gap: 6px; border: 0; border-bottom: 2.5px dashed var(--sea); background: var(--sea-soft); color: var(--sea-deep); padding: 0 10px; border-radius: 10px 10px 4px 4px; font-weight: 650; font-family: var(--font-display); font-size: inherit; line-height: 1.5; transition: background .2s, transform .15s var(--ease); }
.token:hover { background: #cde6e8; }
.token.unset { color: var(--muted); background: var(--bg); border-bottom-color: var(--faint); font-weight: 500; }
.token svg { width: 14px; height: 14px; opacity: .7; }
.sentence-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.sentence-foot .hint { color: var(--muted); font-size: 13.5px; }
.sentence-foot .btn { margin-left: auto; }
.hero-art { position: relative; height: 420px; }
.hero-art .art { position: absolute; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 4px solid var(--surface); }
.ph { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-art .a { inset: 0 32% 26% 0; transform: rotate(-2deg); }
.hero-art .b { inset: 18% 0 30% 46%; transform: rotate(3deg); }
.hero-art .c { inset: 58% 18% 0 14%; transform: rotate(-1deg); }
.hero-art .cap { position: absolute; left: 12px; bottom: 10px; background: rgb(255 255 255 / .92); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; }

/* Popover / feuille de choix */
.pop { position: absolute; z-index: 70; width: min(420px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -20px rgb(19 34 44 / .35); padding: 16px; animation: popin .22s var(--ease); }
@keyframes popin { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.pop h4 { font-size: 16px; margin-bottom: 4px; }
.pop .pop-sub { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt { text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, background .15s; }
.opt b { font-weight: 600; font-size: 14.5px; }
.opt small { color: var(--muted); font-size: 12.5px; }
.opt:hover { border-color: var(--sea); }
.opt[aria-pressed="true"] { border-color: var(--sea); background: var(--sea-soft); }
.month-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.month-grid .opt { align-items: center; padding: 9px 4px; }
.pop-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.linkish { border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 0; font-size: 13.5px; }
.linkish:hover { color: var(--ink); }
.scrim { position: fixed; inset: 0; z-index: 65; background: rgb(19 34 44 / .25); }
@media (max-width: 640px) {
  .pop { position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; border-radius: 22px 22px 0 0; padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); max-height: 80vh; overflow: auto; animation: sheet .3s var(--ease); }
  @keyframes sheet { from { transform: translateY(100%); } }
}

/* ---------- Collections ---------- */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 650; }
.sec-head p { color: var(--muted); font-size: 14.5px; }
.collections { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.coll { position: relative; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.coll:hover { border-color: var(--sea); transform: translateY(-2px); box-shadow: var(--shadow); }
.coll[aria-pressed="true"] { border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-soft); }
.coll .ph { height: 92px; }
.coll .txt { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.coll b { font-family: var(--font-display); font-weight: 650; font-size: 16px; }
.coll small { color: var(--muted); font-size: 13px; }

/* ---------- Explorer : filtres + résultats ---------- */
.explore { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding-block: 34px 120px; align-items: start; }
@media (max-width: 980px) { .explore { grid-template-columns: minmax(0, 1fr); } .side { display: none; } .side.open { display: block; position: fixed; inset: 0; z-index: 75; overflow: auto; background: var(--surface); padding: calc(16px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(90px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); } }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 78px); max-height: calc(100vh - 96px); overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.side-head h3 { font-size: 19px; }
.fgroup { border-top: 1px solid var(--line); padding-block: 14px; }
.fgroup > button.fg-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; border: 0; background: none; padding: 0; font-weight: 600; font-size: 15px; text-align: left; }
.fgroup .fg-q { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.fg-body { display: flex; flex-wrap: wrap; gap: 6px; }
.fgroup.closed .fg-body, .fgroup.closed .fg-q { display: none; }
.fg-toggle svg { transition: transform .2s; }
.fgroup.closed .fg-toggle svg { transform: rotate(-90deg); }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 500; color: var(--ink); transition: all .15s; }
.chip:hover { border-color: var(--sea); }
.chip[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }
.switch-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; width: 100%; padding: 4px 0; font-size: 14px; }
.switch-row small { display: block; color: var(--muted); font-size: 12.5px; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--sea); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2.5px solid var(--sea); outline-offset: 2px; }
.side-apply { display: none; }
@media (max-width: 980px) { .side.open { max-height: none; } .side.open .side-apply { display: flex; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--surface); border-top: 1px solid var(--line); } .side-apply .btn { flex: 1; } }

.results-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.results-bar h2 { font-size: 22px; font-weight: 650; margin-right: auto; }
.mobile-filters { display: none; }
@media (max-width: 980px) { .mobile-filters { display: inline-flex; } }
select.sort { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-weight: 500; font-size: 14px; }
.active-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.apill { display: inline-flex; align-items: center; gap: 6px; background: var(--sea-soft); color: var(--sea-deep); border: 0; border-radius: 999px; padding: 5px 8px 5px 12px; font-size: 13px; font-weight: 600; }
.apill:hover { background: #cde6e8; }
.apill svg { width: 14px; height: 14px; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card { background: var(--surface); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; height: 100%; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgb(19 34 44 / .4); }
.card-media { position: relative; aspect-ratio: 16/11; max-width: 100%; overflow: hidden; display: block; }
.card-media .ph { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.card:hover .card-media .ph { transform: scale(1.06); }
.match { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border-radius: 999px; padding: 5px 11px 5px 6px; font-weight: 700; font-size: 13px; box-shadow: 0 4px 14px -4px rgb(0 0 0 / .25); }
.match i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 10px; }
.match.hi i { background: var(--good); } .match.mid i { background: var(--sun); color: var(--ink); } .match.lo i { background: var(--faint); }
.heart { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .94); display: grid; place-items: center; color: var(--ink); box-shadow: 0 4px 14px -4px rgb(0 0 0 / .25); transition: transform .2s var(--ease); }
.heart:hover { transform: scale(1.08); }
.heart[aria-pressed="true"] { color: var(--coral); }
.heart[aria-pressed="true"] svg { fill: var(--coral); animation: beat .35s var(--ease); }
@keyframes beat { 50% { transform: scale(1.3); } }
.best-tag { position: absolute; left: 12px; bottom: 12px; background: var(--sun); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.card-body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-title h3 { font-size: 22px; font-weight: 650; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--sea); }
.card-title span { color: var(--faint); font-size: 13px; }
.card-tl { color: var(--muted); font-size: 14px; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.kv div { background: var(--bg); border-radius: 12px; padding: 7px 9px; min-width: 0; }
.kv small { display: block; font-size: 11px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kv b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.mini-cal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.mini-cal span { height: 22px; border-radius: 5px; background: var(--bg); font-size: 10px; display: grid; place-items: center; color: var(--faint); font-weight: 600; }
.mini-cal span.ok { background: var(--sun-soft); color: #8a5a00; }
.mini-cal span.sel { outline: 2px solid var(--ink); outline-offset: -2px; }
.why-line { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }
.why-line .bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 32px; gap: 8px; align-items: center; }
.why-line .bar-row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 6px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--sea); }
.card-foot { margin-top: auto; display: flex; gap: 8px; align-items: center; padding-top: 4px; }
.card-foot .btn-primary { flex: 1; }
.cmp { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.cmp input { width: 16px; height: 16px; accent-color: var(--sea); }
.empty { background: var(--surface); border: 1.5px dashed var(--line); border-radius: 22px; padding: 40px 24px; text-align: center; color: var(--muted); grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* Barre de comparaison */
.tray { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 20px 50px -14px rgb(19 34 44 / .6); max-width: calc(100vw - 32px); animation: rise .35s var(--ease); }
@keyframes rise { from { transform: translate(-50%, 120%); } }
.tray span { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal { position: fixed; inset: 0; z-index: 80; background: rgb(19 34 44 / .45); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { background: var(--surface); border-radius: 24px; width: min(900px, 100%); max-height: 88vh; overflow: auto; padding: 22px; animation: popin .3s var(--ease); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; flex-shrink: 0; }
.x:hover { border-color: var(--ink); }
.table-wrap { overflow-x: auto; }
table.cmp-t { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
.cmp-t th, .cmp-t td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-t th[scope="row"] { color: var(--muted); font-weight: 500; width: 170px; }
.cmp-t thead th { font-family: var(--font-display); font-size: 18px; }
.cmp-t td.win { background: var(--sun-soft); font-weight: 600; }

/* Roulette */
.spin-stage { text-align: center; color: #fff; }
.spin-stage small { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.spin-name { font-family: var(--font-display); font-size: clamp(44px, 9vw, 86px); font-weight: 750; letter-spacing: -.04em; animation: slot .14s var(--ease); }
@keyframes slot { from { transform: translateY(24px); opacity: 0; } }
.reveal { width: min(440px, 100%); background: var(--surface); border-radius: 26px; overflow: hidden; animation: popin .5s var(--ease); }
.reveal .ph-wrap { position: relative; height: 220px; }
.reveal .ph-wrap .match { z-index: 2; }
.reveal .body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.reveal h3 { font-size: 34px; font-weight: 750; }

/* ---------- Fiche pays ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); padding-block: 16px 12px; flex-wrap: wrap; }
.crumbs button { border: 0; background: none; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.c-hero { position: relative; border-radius: 28px; overflow: hidden; height: clamp(320px, 52vh, 520px); max-width: 100%; }
.c-hero .ph { position: absolute; inset: 0; }
.c-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(10 20 28 / .75), rgb(10 20 28 / .1) 55%, transparent); pointer-events: none; }
.c-hero-txt { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 26px; color: #fff; display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; }
.c-hero h1 { font-size: clamp(42px, 7vw, 76px); font-weight: 750; letter-spacing: -.04em; }
.c-hero .tl { font-size: 18px; max-width: 44ch; margin-top: 8px; opacity: .92; }
.c-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.glassbtn { background: rgb(255 255 255 / .94); color: var(--ink); }
.c-match { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; max-width: 340px; }
.c-match .big { font-family: var(--font-display); font-size: 32px; font-weight: 750; color: var(--good); line-height: 1; }
.c-match small { color: var(--muted); font-size: 12.5px; display: block; }

.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 62px); z-index: 30; background: rgb(242 245 247 / .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); margin-top: 18px; }
.toc .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.toc button { border: 0; background: none; padding: 14px 12px 12px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.toc button:hover { color: var(--ink); }
.toc button.on { color: var(--sea); border-bottom-color: var(--sea); }
.csec { padding-block: 40px 8px; scroll-margin-top: 130px; }
.csec > h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin-bottom: 6px; }
.csec > .lead { color: var(--muted); margin-bottom: 20px; max-width: 70ch; }
.csec > .lead-intro { color: var(--ink); font-size: 19px; line-height: 1.6; max-width: 62ch; margin-bottom: 26px; text-wrap: pretty; }
.why-list li span b { display: block; font-weight: 700; margin-bottom: 2px; }
.why-list li span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.why-list li span b { color: var(--ink); font-size: 16px; }
.scard-main .pitch { font-size: 15.5px; line-height: 1.55; color: var(--ink); margin: 0 0 10px; text-wrap: pretty; }
.verified { display: inline-block; font-size: 12.5px; font-weight: 600; color: #1f6b45; background: #e3f4ea; border-radius: 999px; padding: 3px 10px; margin: -6px 0 10px; }
.take-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.take-ctx h3, .take-grid h3 { font-size: 17px; margin: 0 0 10px; }
.take-ctx p { font-size: 16px; line-height: 1.65; margin: 0 0 12px; max-width: 64ch; text-wrap: pretty; }
.take-tip { background: var(--sea-deep); color: #fff; border-radius: 18px; padding: 22px 24px; align-self: start; }
.take-tip .kicker { color: #ffe3a6; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.take-tip p { font-size: 16.5px; line-height: 1.6; margin: 10px 0 0; text-wrap: pretty; }
.take-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.take-grid .items li { font-size: 15px; line-height: 1.5; }
.take-yes h3::before { content: "✓ "; color: #1f8a4c; } .take-no h3::before { content: "✕ "; color: #c2412d; }
.take-down h3::before { content: "! "; color: #b7791f; } .take-better h3::before { content: "♻ "; color: var(--sea); }
.scard-main .know { background: #fff6e0; border-radius: 10px; padding: 9px 12px; font-size: 14px; line-height: 1.5; margin: 0 0 10px; color: #5c4300; }
.scard-main .know b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
@media (max-width: 760px) { .take-top, .take-grid { grid-template-columns: 1fr; } }
.plan b.dt { display: block; font-weight: 700; color: var(--ink); margin-bottom: 1px; }
.plan em.arr { font-style: normal; color: var(--sea-deep); font-weight: 600; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; min-width: 0; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 900px) { .ov-grid { grid-template-columns: minmax(0, 1fr); } }
.why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.why-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; }
.why-list li i { width: 34px; height: 34px; border-radius: 10px; background: var(--sun-soft); color: #8a5a00; display: grid; place-items: center; font-style: normal; font-weight: 700; }
.facts .fact { background: var(--surface); border: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fact { background: var(--bg); border-radius: 14px; padding: 12px; min-width: 0; }
.fact small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.fact b { font-size: 16px; font-weight: 650; display: block; margin-top: 2px; }
.fact span { font-size: 12.5px; color: var(--muted); }

.itin-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 18px; }
.itin-opt { text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, box-shadow .2s; }
.itin-opt:hover { border-color: var(--sea); }
.itin-opt[aria-pressed="true"] { border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-soft); }
.itin-opt .d { font-family: var(--font-display); font-size: 28px; font-weight: 750; color: var(--sea); line-height: 1; }
.itin-opt .d small { font-size: 14px; font-weight: 500; color: var(--muted); }
.itin-opt b { font-size: 17px; font-family: var(--font-display); font-weight: 650; }
.itin-opt p { color: var(--muted); font-size: 13.5px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.tag { background: var(--bg); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; color: var(--muted); }
.itin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .itin { grid-template-columns: minmax(0, 1fr); } }
.mapbox { position: sticky; top: 130px; height: 540px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #dfeef2; }
@media (max-width: 980px) { .mapbox { position: relative; top: 0; height: 320px; } }
.mapbox svg { width: 100%; height: 100%; display: block; }
.map-sum { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.map-sum span { background: rgb(255 255 255 / .94); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; }
.mk { cursor: pointer; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { position: relative; padding-left: 52px; padding-bottom: 14px; }
.step::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, var(--line) 0 6px, transparent 6px 11px); }
.step:last-child::before { display: none; }
.step-n { position: absolute; left: 0; top: 4px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); font-weight: 700; font-size: 14px; transition: all .25s var(--ease); }
.step.on .step-n { background: var(--sea); border-color: var(--sea); color: #fff; box-shadow: 0 0 0 5px var(--sea-soft); }
.leg { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 13px; color: var(--muted); text-decoration: none; background: var(--surface); border: 1px dashed var(--line); border-radius: 999px; padding: 4px 12px; max-width: 100%; }
.leg:hover { border-color: var(--sea); color: var(--sea); }
.leg em { font-style: normal; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.step.on .scard { border-color: var(--sea); box-shadow: var(--shadow); }
.scard-top { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
@media (max-width: 520px) { .scard-top { grid-template-columns: minmax(0, 1fr); } .scard-top .ph-box { height: 120px; } }
.ph-box { position: relative; min-height: 120px; }
.ph-box .ph { position: absolute; inset: 0; }
.scard-main { padding: 14px 16px; min-width: 0; }
.scard-main header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.scard-main h3 { font-size: 20px; font-weight: 650; }
.days { background: var(--sun-soft); color: #8a5a00; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.stay { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.stay b { color: var(--ink); font-weight: 600; }
.tabs { display: flex; gap: 4px; margin-top: 10px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 6px 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--sun); }
.items { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; animation: fade .2s; }
.items li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; }
.items li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); margin-top: 9px; }
.scard-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px 14px; border-top: 1px solid var(--line); background: #fafcfd; }

.act-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.act { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.act:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.act .ph-box { height: 130px; min-height: 0; }
.act .cat { position: absolute; left: 10px; top: 10px; background: rgb(255 255 255 / .95); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.act-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.act-body b { font-size: 15.5px; font-weight: 650; line-height: 1.3; }
.act-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: auto; }
.act-meta span:last-child { color: var(--sea); font-weight: 600; }

.season { overflow-x: auto; }
.season-grid { display: grid; grid-template-columns: 110px repeat(12, minmax(46px, 1fr)); min-width: 700px; font-size: 13px; }
.season-grid > div { padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.season-grid .rh { text-align: left; color: var(--muted); font-weight: 600; padding-left: 0; }
.season-grid .mh button { border: 0; background: none; font-weight: 700; padding: 6px 8px; border-radius: 10px; }
.season-grid .mh button:hover { background: var(--bg); }
.season-grid .mh button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.season-grid .col-sel { background: #f6fafb; }
.tcell { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tbar { width: 14px; height: 54px; border-radius: 8px; background: var(--bg); display: flex; align-items: end; overflow: hidden; }
.tbar i { width: 100%; border-radius: 8px; background: linear-gradient(to top, #f7c96a, #e8743b); }
.dots { display: flex; gap: 2px; justify-content: center; flex-wrap: wrap; max-width: 34px; margin: 0 auto; }
.dots b { width: 5px; height: 5px; border-radius: 50%; background: var(--rain); }
.crowd { display: inline-block; height: 8px; border-radius: 4px; }
.verdict { display: inline-block; width: 26px; height: 26px; border-radius: 50%; line-height: 26px; font-weight: 700; font-size: 12px; }
.verdict.ok { background: #dcf3e6; color: var(--good); }
.verdict.meh { background: var(--sun-soft); color: #8a5a00; }
.verdict.no { background: #f6e1dd; color: var(--coral); }
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.event { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: start; }
.event .m { background: var(--sun-soft); color: #8a5a00; border-radius: 12px; text-align: center; padding: 8px 0; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.event b { display: block; font-weight: 650; }
.event span { color: var(--muted); font-size: 13.5px; }

.budget { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 860px) { .budget { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field .lab { font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; }
.field label output { color: var(--sea); }
input[type="range"] { width: 100%; accent-color: var(--sea); }
.seg { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / .12); }
.total { font-family: var(--font-display); font-size: clamp(40px, 5vw, 56px); font-weight: 750; letter-spacing: -.03em; line-height: 1; }
.total-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.split { display: flex; height: 14px; border-radius: 8px; overflow: hidden; margin: 18px 0 12px; }
.split i { display: block; height: 100%; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 13.5px; }
.legend div { display: flex; justify-content: space-between; gap: 8px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

.prat { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.prat .fact { background: var(--surface); border: 1px solid var(--line); }
.conv { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; font-size: 14px; }
.conv input { width: 84px; border: 1.5px solid var(--line); border-radius: 10px; padding: 5px 8px; }
.fact.esim { grid-column: span 2; }
.prat .fact.esim, .esim { display: flex; flex-direction: column; gap: 10px; justify-content: space-between; background: linear-gradient(135deg, var(--sea), var(--sea-deep)); color: #fff; border: 0; }
.prat .esim b { color: #fff; }
.prat .esim small, .prat .esim span, .esim small, .esim span { color: rgb(255 255 255 / .8); }
.culture { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.culture h3 { font-size: 18px; margin-bottom: 10px; }
.phr { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.phr:last-child { border-bottom: 0; }
.phr span { color: var(--muted); }
.phr b { font-weight: 650; text-align: right; }
.note { font-size: 12.5px; color: var(--faint); margin-top: 12px; }
.sim { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.sim-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-align: left; padding: 0; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; }
.sim-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sim-card .ph-box { height: 120px; min-height: 0; }
.sim-card div.t { padding: 12px 14px; }
.sim-card b { font-family: var(--font-display); font-size: 18px; }
.sim-card p { color: var(--muted); font-size: 13.5px; }
.foot { padding-block: 40px; color: var(--faint); font-size: 13px; border-top: 1px solid var(--line); margin-top: 40px; }
.toast { position: fixed; left: 50%; top: calc(76px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 18px; font-size: 14px; z-index: 90; animation: fade .2s; }

.credit { display: none; }
.has-photo > .credit { display: inline-block; }
.credit { position: absolute; right: 10px; top: 10px; z-index: 3; font-size: 11px; color: #fff; background: rgb(0 0 0 / .4); padding: 3px 9px; border-radius: 999px; text-decoration: none; backdrop-filter: blur(6px); }
.credit:hover { background: rgb(0 0 0 / .65); }
.scard-hero { position: relative; height: 170px; overflow: hidden; }
.scard-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(10 20 28 / .7), transparent 60%); pointer-events: none; }
.scard-hero-txt { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 12px; color: #fff; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.scard-hero-txt h3 { font-size: 24px; font-weight: 700; }
.scard-main { padding: 14px 16px; min-width: 0; }
.plan { list-style: none; margin: 12px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; font-size: 14.5px; line-height: 1.5; }
.plan .pd { background: var(--sea-soft); color: var(--sea-deep); border-radius: 8px; font-weight: 700; font-size: 12.5px; text-align: center; padding: 3px 0; height: fit-content; }
.plan b { font-weight: 600; }
.before { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.before h3 { font-size: 17px; margin-bottom: 10px; }
.before .txt { color: var(--ink); font-size: 14.5px; }
.tr { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tr:last-child { border-bottom: 0; }
.tr span { color: var(--muted); }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 16px; }
.prices div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.prices span { color: var(--muted); }
.foot a { color: var(--sea); }

/* Cartes */
.mv { position: relative; width: 100%; height: 100%; background: #cfe5ee; overflow: hidden; }
.mv-svg { width: 100%; height: 100%; display: block; cursor: grab; font-family: var(--font-body); }
.mv-svg.grabbing { cursor: grabbing; }
.mv .mk { cursor: pointer; }
.mv .mk:focus-visible circle { stroke: var(--coral); }
.mv-ctrl { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.mv-ctrl button { width: 36px; height: 36px; border: 0; background: none; font-size: 20px; font-weight: 600; display: grid; place-items: center; color: var(--ink); }
.mv-ctrl button + button { border-top: 1px solid var(--line); }
.mv-ctrl button:hover { background: var(--bg); }
.mv-loc { position: absolute; left: 12px; top: 12px; width: 132px; height: 88px; border-radius: 12px; overflow: hidden; border: 2px solid var(--surface); box-shadow: var(--shadow); background: #d5e9f0; }
.mv-loc svg { width: 100%; height: 100%; display: block; }
.mv-scale { position: absolute; left: 14px; bottom: 54px; display: flex; flex-direction: column; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); pointer-events: none; }
.mv-scale i { display: block; height: 5px; border: 2px solid var(--muted); border-top: 0; }
.mv-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgb(19 34 44 / .82); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; pointer-events: none; }
.mv-sum { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mv-sum span, .mv-gm { background: rgb(255 255 255 / .95); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; box-shadow: 0 2px 8px rgb(0 0 0 / .08); }
.mv-gm { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--sea); text-decoration: none; }
.mv-gm .ico { width: 14px; height: 14px; }
.ovmap { height: 480px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 640px) { .ovmap { height: 360px; } .mv-loc { width: 96px; height: 64px; } }
.mapbox { background: none; }
/* Frise des jours */
.strip { display: flex; gap: 4px; margin-bottom: 18px; border-radius: 16px; overflow: hidden; }
.strip-seg { min-width: 0; border: 0; padding: 10px 10px 9px; text-align: left; display: flex; flex-direction: column; gap: 1px; background: var(--sea-soft); color: var(--sea-deep); transition: background .2s, color .2s; }
.strip-seg:nth-child(even) { background: #e8f3f4; }
.strip-seg b { font-size: 11.5px; opacity: .7; }
.strip-seg span { font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-seg small { font-size: 12px; opacity: .8; }
.strip-seg:hover { background: #cde6e8; }
.strip-seg.on { background: var(--sea); color: #fff; }
@media (max-width: 640px) { .strip-seg span { display: none; } }
/* Plan de réservation */
.plan-box { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.plan-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.plan-head h3 { font-size: 22px; }
.plan-head p { color: var(--muted); font-size: 14px; }
.plan-prog { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.plan-prog .bar { flex: 1; height: 8px; }
.plan-prog .bar i { background: var(--good); transition: width .4s var(--ease); }
.plan-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan-groups h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; font-family: var(--font-body); }
.plan-it { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.plan-it input { width: 17px; height: 17px; accent-color: var(--good); }
.plan-it.done span { text-decoration: line-through; color: var(--faint); }
.plan-it a { color: var(--sea); font-weight: 600; font-size: 13px; text-decoration: none; display: inline-flex; gap: 3px; align-items: center; white-space: nowrap; }
.plan-it a .ico { width: 13px; height: 13px; }
.scard-hero { cursor: zoom-in; }
/* Carte du monde accueil */
.wm { background: #d9ecf2; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; position: relative; }
.wm svg { display: block; width: 100%; height: auto; font-family: var(--font-body); }
.wm-pin { cursor: pointer; }
.wm-pin:hover rect { stroke: var(--sea); }
.wm-leg { position: absolute; left: 12px; bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; background: rgb(255 255 255 / .9); padding: 6px 10px; border-radius: 999px; }
.wm-leg span { display: inline-flex; align-items: center; gap: 5px; }
.wm-leg span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
/* Roulette */
.spinm { background: rgb(19 34 44 / .6); }
.spin-card { width: min(980px, 100%); max-height: 92vh; overflow: auto; background: var(--surface); border-radius: 26px; display: grid; grid-template-columns: minmax(0, 1fr); animation: popin .3s var(--ease); }
.spin-map { position: relative; height: min(52vh, 440px); background: #d9ecf2; }
.spin-map svg { width: 100%; height: 100%; display: block; }
.spin-name { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.spin-name small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sea-deep); background: rgb(255 255 255 / .85); padding: 3px 10px; border-radius: 999px; }
.spin-name b { font-family: var(--font-display); font-size: clamp(30px, 6vw, 54px); font-weight: 750; letter-spacing: -.03em; color: var(--ink); text-shadow: 0 2px 0 #fff, 0 0 20px #fff; animation: slot .16s var(--ease); }
.spin-x { position: absolute; right: 14px; top: 14px; }
.spin-reveal { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); animation: rise2 .5s var(--ease); }
@keyframes rise2 { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 760px) { .spin-reveal { grid-template-columns: minmax(0, 1fr); } }
.sr-photo { position: relative; min-height: 240px; }
.sr-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.sr-body h3 { font-size: 36px; font-weight: 750; letter-spacing: -.03em; }
.sr-tl { color: var(--muted); }
.teasers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.teasers li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; font-size: 14.5px; align-items: start; }
.ti { width: 30px; height: 30px; border-radius: 9px; background: var(--sun-soft); display: block; position: relative; }
.ti::after { content: ""; position: absolute; inset: 7px; background: #8a5a00; mask: var(--m) center / contain no-repeat; -webkit-mask: var(--m) center / contain no-repeat; }
.ti-star { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3 7h7l-5.5 4.5 2 7.5L12 17l-6.5 4 2-7.5L2 9h7z'/></svg>"); }
.ti-act { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 9a3 3 0 0 0 0 6v4h18v-4a3 3 0 0 0 0-6V5H3z'/></svg>"); }
.ti-cal { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 6h18v15H3zM7 2v5M17 2v5M3 10h18' stroke='black' stroke-width='3' fill='none'/></svg>"); }
.sr-facts { display: flex; gap: 6px; flex-wrap: wrap; }
.sr-facts span { background: var(--bg); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; }
.sr-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sr-btns .btn-primary { flex: 1; }
/* Comparateur */
.cmp-card { width: min(1120px, 100%); }
.cmp-heads { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cmp-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 2px solid var(--c); border-radius: 16px; padding: 8px; }
.cmp-head .ph-box { height: 56px; min-height: 0; border-radius: 10px; overflow: hidden; display: block; }
.cmp-head b { display: block; font-family: var(--font-display); font-size: 18px; }
.cmp-head span { font-size: 13px; color: var(--muted); }
.badges-w { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.badge-w { background: var(--bg); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.badge-w small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.badge-w b { font-family: var(--font-display); font-size: 19px; }
.badge-w span { font-size: 13px; color: var(--muted); }
.cmp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cmp-grid .wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .cmp-grid { grid-template-columns: minmax(0, 1fr); } }
.cmp-grid h3 { font-size: 17px; margin-bottom: 4px; }
.cap { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.chart { width: 100%; height: auto; display: block; font-family: var(--font-body); }
.legend-l { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 600; margin-top: 6px; }
.legend-l span { display: inline-flex; gap: 6px; align-items: center; }
.legend-l span::before { content: ""; width: 14px; height: 4px; border-radius: 2px; background: var(--c); }
.hb { display: grid; grid-template-columns: 90px minmax(0, 1fr) 76px; gap: 10px; align-items: center; padding: 7px 0; font-size: 14px; }
.hb-n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-t { height: 12px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 6px; }
.hb b { text-align: right; font-weight: 600; }
.hb b.win { color: var(--good); }
.cmp-ctl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; align-items: center; margin: 8px 0 14px; font-size: 14px; font-weight: 600; }
.cmp-ctl label { display: flex; gap: 8px; }
.cmp-ctl output { color: var(--sea); }
.stk { margin-bottom: 12px; }
.stk-top { display: flex; justify-content: space-between; font-size: 14.5px; }
.stk-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--bg); margin: 5px 0 3px; }
.stk small { font-size: 12.5px; color: var(--muted); }
.bm { display: flex; flex-direction: column; gap: 8px; }
.bm-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; }
.bm-cells { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.bm-cells span { height: 26px; border-radius: 6px; background: var(--bg); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--faint); }
.bm-cells span.ok { color: #fff; }

/* ---- v8 : 103 pays, recherche, carte cliquable ---- */
.guide-tag { background: rgb(255 255 255 / .92); color: var(--sea-deep); }
.more-li { grid-column: 1 / -1; display: flex; justify-content: center; padding: 8px 0 4px; list-style: none; }
.more-li .btn { padding-inline: 22px; }
.searchbtn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 999px; padding: 6px 8px 6px 12px; font-size: 13.5px; font-weight: 500; transition: border-color .15s, color .15s; }
.searchbtn:hover { border-color: var(--sea); color: var(--ink); }
.searchbtn kbd, .srch kbd { font-family: var(--font-body); font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
@media (max-width: 640px) { .searchbtn { padding: 8px; } }
.srch-m { place-items: start center; padding-top: min(14vh, 120px); }
.srch { width: min(620px, 100%); background: var(--surface); border-radius: 22px; box-shadow: 0 30px 80px -20px rgb(19 34 44 / .45); overflow: hidden; animation: popin .22s var(--ease); }
.srch-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.srch-in .ico { width: 20px; height: 20px; flex: none; }
.srch-in input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 17px; background: transparent; color: var(--ink); }
.srch-in input::-webkit-search-cancel-button { display: none; }
.srch-list { list-style: none; margin: 0; padding: 8px; max-height: min(56vh, 460px); overflow: auto; }
.srch-h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 6px 10px 4px; }
.srch-it { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; color: inherit; text-decoration: none; }
.srch-it.on, .srch-it:hover { background: var(--sea-soft); }
.srch-ph .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.srch-ph { position: relative; width: 52px; height: 40px; border-radius: 10px; overflow: hidden; flex: none; display: block; }
.srch-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.srch-t b { font-size: 15.5px; }
.srch-t small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srch-sc { font-weight: 700; color: var(--good); font-size: 14px; }
.srch-tag { font-size: 11.5px; font-weight: 700; color: var(--sea-deep); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.srch-empty { padding: 26px 12px; text-align: center; color: var(--muted); }
.srch-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); background: #fafcfd; }
.srch-foot span:last-child { margin-left: auto; }
@media (max-width: 640px) { .srch-foot span:not(:last-child) { display: none; } .srch-m { padding-top: 12px; } }
.take-top.solo { grid-template-columns: 1fr; }
.take-top.solo .take-tip { max-width: 760px; }
.lcard-main { padding: 16px 18px 12px; cursor: pointer; }
.lcard-main .days { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sea); }
.lcard-main h3 { font-size: 21px; font-weight: 650; margin: 4px 0 6px; }
.lcard-main .pitch { font-size: 15.5px; line-height: 1.55; margin: 0 0 10px; text-wrap: pretty; }
.lcard-main .know { background: #fff6e0; border-radius: 10px; padding: 9px 12px; font-size: 14px; line-height: 1.5; margin: 0 0 6px; color: #5c4300; }
.lcard-main .know b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.wm-c { cursor: pointer; transition: opacity .15s, filter .15s; stroke: #fff; stroke-width: .35; }
.wm-c.on { opacity: .88; } .wm-c.off { opacity: .55; }
.wm-c:hover, .wm-dot:hover { opacity: 1; filter: brightness(.88); }
.wm-dot { cursor: pointer; }
.wm-lab { cursor: pointer; }
.wm-lab:hover rect { fill: var(--sea); }
.wm-hint { color: var(--muted); }
.wm-hint::before { display: none !important; }
@media (max-width: 640px) { .wm-leg { position: static; border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
/* ===== Mon voyage, concierge, phrase libre ===== */
.ai-only, .dl-only { display: none !important; }
.has-ai .ai-only { display: inline-flex !important; }
.has-dl .dl-only { display: inline-flex !important; }
.btn-ghost-w { background: rgb(255 255 255 / .16); color: #fff; border-color: rgb(255 255 255 / .4); }

/* Phrase libre */
.ask { margin-top: 14px; display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; transition: border-color .15s, box-shadow .15s; }
.ask:focus-within { border-color: var(--sea); box-shadow: 0 0 0 4px var(--sea-soft); }
.ask .ico { color: var(--muted); flex-shrink: 0; }
.ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 15.5px; color: var(--ink); padding: 6px 0; }
.ask-lbl { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; color: var(--muted); font-weight: 600; }
.ask-lbl .ai-cta { margin: 0; }
#ask-out:empty, #ask-ai:empty { display: none; }
.ask-got { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.ask-got .tag { text-decoration: none; background: var(--sea-soft); color: var(--sea-deep); border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 12.5px; }
.ask-got .btn { margin-left: auto; }
.ai-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; border: 0; background: linear-gradient(90deg, #fff2d6, #e0eff0); color: var(--ink); font-weight: 600; font-size: 13.5px; border-radius: 999px; padding: 8px 14px; cursor: pointer; text-align: left; }
.ai-cta:hover { box-shadow: 0 4px 14px -6px rgb(13 108 119 / .5); }
.ai-box { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); animation: popin .3s var(--ease); }
.ai-think { color: var(--muted); font-style: italic; margin: 0; }
.ai-think::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.ai-sum { font-family: var(--font-display); font-size: 19px; font-weight: 650; margin: 0 0 14px; }
.ai-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ai-pick { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); }
.ai-pick > .ph-box { display: block; position: relative; height: 130px; }
.ai-pick > div { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ai-pick h3 { font-size: 17px; }
.ai-pick p { margin: 0; font-size: 14px; color: var(--muted); flex: 1; }
.ai-pick-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ai-warn { margin: 12px 0 0; font-size: 13.5px; background: var(--sun-soft); border-radius: 12px; padding: 10px 12px; }
@media (max-width: 860px) { .ai-picks { grid-template-columns: minmax(0, 1fr); } .ai-pick { flex-direction: row; } .ai-pick > .ph-box { width: 110px; height: auto; flex-shrink: 0; } }

/* Prochain voyage (accueil) */
.next-trip { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 5px; margin-bottom: 16px; color: var(--ink); text-decoration: none; font-size: 14px; box-shadow: var(--shadow); max-width: 100%; }
.next-trip:hover { border-color: var(--sea); }
.next-trip .nt-ph { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; position: relative; flex-shrink: 0; display: block; }
.next-trip small { display: block; color: var(--muted); font-size: 12px; }
.next-trip > span:nth-child(2) { min-width: 0; }

/* Appel à planifier sur la fiche */
.plan-cta { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; background: linear-gradient(120deg, var(--sea-deep), var(--sea)); color: #fff; border-radius: 24px; padding: 22px 24px; }
.plan-cta h3 { font-size: 22px; }
.plan-cta p { margin: 4px 0 0; opacity: .88; font-size: 14.5px; max-width: 56ch; }
.plan-cta-f { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-cta input[type=date] { border: 0; border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; }
@media (max-width: 760px) { .plan-cta { grid-template-columns: minmax(0, 1fr); } }

/* Page voyage */
.trip { padding-bottom: 40px; }
.trip-hero { position: relative; border-radius: 28px; overflow: hidden; height: clamp(260px, 40vh, 380px); }
.trip-hero .ph { position: absolute; inset: 0; }
.trip-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(10 20 28 / .82), rgb(10 20 28 / .15) 65%, transparent); pointer-events: none; }
.trip-hero-txt { position: absolute; z-index: 2; inset: auto 0 0 0; padding: 24px 26px; color: #fff; display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; }
.trip-hero .kicker { color: #ffe3a6; }
.trip-hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 750; letter-spacing: -.035em; }
.trip-dates { margin: 6px 0 0; font-size: 17px; font-weight: 600; }
.trip-dates::first-letter { text-transform: uppercase; }
.trip-meta { margin: 2px 0 0; opacity: .85; font-size: 14px; }
.trip-cd { background: rgb(255 255 255 / .95); color: var(--ink); border-radius: 20px; padding: 12px 18px; text-align: center; min-width: 120px; }
.trip-cd b { display: block; font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--sea); }
.trip-cd span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.trip-ctrl { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: end; margin-top: 14px; position: sticky; top: calc(66px + env(safe-area-inset-top, 0px)); z-index: 30; box-shadow: var(--shadow); padding: 14px 18px; }
.tc { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 0; }
.tc b { font-size: 14.5px; color: var(--ink); padding: 7px 0; }
.tc input, .tc select { font: inherit; font-size: 14.5px; color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; padding: 7px 10px; background: var(--surface); max-width: 100%; }
.tc input:focus, .tc select:focus { outline: 0; border-color: var(--sea); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { border: 0; background: none; width: 34px; height: 34px; font-size: 18px; color: var(--ink); }
.stepper button:hover { background: var(--bg); }
.stepper b { min-width: 22px; text-align: center; font-size: 15px; color: var(--ink); padding: 0; }
.trip-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; margin-top: 26px; align-items: start; }
.trip-main > h2 { font-size: clamp(24px, 3vw, 32px); }
.trip-main > .lead { color: var(--muted); margin: 4px 0 18px; }
.trip-side { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 166px); overflow: auto; padding-bottom: 4px; scrollbar-width: thin; }
.trip-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; background: var(--sun-soft); border-radius: 18px; padding: 14px 16px; margin-bottom: 26px; }
.trip-next b { font-size: 16.5px; }
.trip-next > span:not(.kicker) { font-size: 13px; color: var(--muted); grid-column: 1; }
.trip-next .btn { grid-row: 1 / span 3; grid-column: 2; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.tl-day { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; margin-bottom: 12px; position: relative; scroll-margin-top: 150px; }
.tl-date { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; text-align: center; padding: 6px 0; align-self: start; position: relative; z-index: 1; line-height: 1.15; }
.tl-first .tl-date { border-color: var(--sea); }
.tl-date b { display: block; font-family: var(--font-display); font-size: 22px; }
.tl-date small { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.tl-first .tl-card { box-shadow: var(--shadow); }
.tl-ph { display: block; position: relative; height: 150px; }
.tl-body { padding: 14px 16px 16px; }
.tl-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.tl-n { font-size: 12px; font-weight: 700; color: var(--sea); text-transform: uppercase; letter-spacing: .06em; }
.wx { display: inline-flex; gap: 6px; align-items: baseline; font-size: 12.5px; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 3px 10px; }
.wx b { color: var(--ink); font-size: 13px; }
.tl-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sea-deep); background: var(--sea-soft); border-radius: 999px; padding: 4px 10px; margin-bottom: 8px; text-decoration: none; font-weight: 600; }
a.tl-leg:hover { background: #cfe6e8; }
.tl-body h3 { font-size: 18px; margin-bottom: 4px; }
.tl-body p { margin: 0; color: var(--ink); font-size: 14.5px; }
.tl-stay { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.tl-stay b { color: var(--ink); font-weight: 600; }
.tl-act { display: flex; gap: 8px; flex-wrap: wrap; }
.tl-end .tl-date { border-style: dashed; }
.trip-budget .total { font-family: var(--font-display); font-size: 34px; font-weight: 750; margin-top: 4px; }
.trip-budget .total-sub { color: var(--muted); font-size: 13.5px; margin: 0; }
.tb-rows { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.tb-rows div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.tb-fl { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.tb-fl input { accent-color: var(--sea); width: 16px; height: 16px; }
.tp-head { display: flex; justify-content: space-between; align-items: baseline; }
.tp-head h3 { font-size: 19px; }
.tp-head span { font-weight: 700; color: var(--sea); }
.bar { display: block; height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--good); border-radius: 99px; transition: width .4s var(--ease); }
.pp-list { list-style: none; margin: 6px 0 0; padding: 0; }
.pp { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.pp input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--good); cursor: pointer; }
.pp label { cursor: pointer; }
.pp b { font-size: 14.5px; font-weight: 650; }
.pp-due { display: block; font-size: 12px; font-weight: 600; color: var(--sea); margin-top: 1px; }
.pp.late .pp-due { color: var(--coral); }
.pp p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.pp-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; }
.pp-links a { color: var(--sea); font-weight: 600; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.pp-links a:hover { text-decoration: underline; }
.pp.done b { text-decoration: line-through; color: var(--muted); }
.pp.done p, .pp.done .pp-links, .pp.done .pp-due { display: none; }
.trip-acts { display: flex; flex-direction: column; gap: 8px; }
.trip-acts .btn { width: 100%; }
@media (max-width: 980px) {
  .trip-grid { grid-template-columns: minmax(0, 1fr); }
  .trip-side { position: static; max-height: none; overflow: visible; }
  .trip-ctrl { position: static; }
}
@media (max-width: 640px) {
  .trip-hero-txt { padding: 18px; }
  .trip-cd { min-width: 0; padding: 8px 14px; display: flex; gap: 8px; align-items: baseline; }
  .trip-cd b { font-size: 28px; display: inline; }
  .tl-day { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; }
  .tl::before { left: 24px; }
  .tl-ph { height: 120px; }
  .trip-ctrl { gap: 12px 16px; }
  .trip-next { grid-template-columns: minmax(0, 1fr); }
  .trip-next .btn { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 6px; }
}

/* Mes voyages */
.trip-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 20px 0 40px; }
.trip-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.tc-ph { position: relative; height: 170px; display: block; }
.tc-cd { position: absolute; z-index: 2; left: 12px; bottom: 12px; background: rgb(255 255 255 / .95); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.tc-cd b { color: var(--sea); font-size: 15px; }
.tc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.tc-body h3 { font-size: 21px; }
.tc-body p { margin: 0; color: var(--muted); font-size: 13.5px; }
.tc-left { margin-top: 6px !important; }
.tc-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.trips-empty { margin: 20px 0 40px; max-width: 720px; }
.trips-empty h3 { font-size: 21px; }
.trips-empty p { color: var(--muted); margin: 6px 0 0; }
.fav-plan { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.fav-plan .chip { text-decoration: none; }

/* Bouton et tiroir « Une question ? » */
.ask-fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 55; border: 0; border-radius: 999px; padding: 12px 18px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: 0 10px 30px -10px rgb(19 34 44 / .6); display: inline-flex; gap: 8px; align-items: center; animation: popin .35s var(--ease); max-width: calc(100vw - 32px); }
.ask-fab span { color: var(--sun); }
.ask-fab:hover { background: var(--sea-deep); }
body:has(.tray) .ask-fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.ask-m { place-items: end; padding: 0; }
.ask-drawer { background: var(--surface); width: min(460px, 100vw); height: 100%; max-height: 100dvh; display: flex; flex-direction: column; padding: 18px 18px calc(16px + env(safe-area-inset-bottom, 0px)); animation: slidein .3s var(--ease); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.ask-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ask-head h3 { font-size: 22px; }
.ask-log { flex: 1; overflow: auto; padding: 14px 2px; display: flex; flex-direction: column; gap: 10px; }
.ask-intro { color: var(--muted); margin: 0; font-size: 14.5px; }
.ask-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ask-chips .chip { text-align: left; }
.msg { border-radius: 18px; padding: 10px 14px; font-size: 14.5px; max-width: 92%; }
.msg p { margin: 0 0 6px; } .msg p:last-child { margin: 0; }
.msg ul { margin: 4px 0; padding-left: 18px; } .msg li { margin: 2px 0; }
.msg.me { align-self: flex-end; background: var(--sea); color: #fff; border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 6px; }
.ask-form { display: flex; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 14px; }
.ask-form:focus-within { border-color: var(--sea); }
.ask-form input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; background: none; }
@media (max-width: 640px) {
  .ask-fab { padding: 12px 16px; font-size: 14px; }
  .ask-drawer { width: 100vw; }
}
.c-hero .kicker { text-shadow: 0 1px 8px rgb(0 0 0 / .45); }
.next-trip .nt-ph, .tl-ph, .tc-ph, .ai-pick > .ph-box { min-height: 0; }
.c-match .big { white-space: nowrap; }
.trip-ctrl { align-items: flex-start; }
@media (max-width: 640px) {
  .c-hero { height: auto; min-height: 440px; display: flex; align-items: flex-end; }
  .c-hero-txt { position: relative; padding: 90px 18px 18px; }
  .c-hero .c-hero-actions .glassbtn[data-a="cmp-add"] { display: none; }
  .c-match { max-width: none; width: 100%; }
}
/* ===== v16 : navigation mobile, cartes compactes, carnet enrichi ===== */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* Cartes : toute la carte est cliquable, l'action devient discrète */
.card { position: relative; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .heart, .card .cmp { z-index: 2; }
.card .cmp { position: relative; }
.card-foot .btn-primary { background: none; color: var(--sea); border-color: transparent; padding-inline: 0; justify-content: flex-start; flex: 1; }
.card:hover .card-foot .btn-primary { background: none; color: var(--sea-deep); }
.card-foot .btn-primary .ico { transition: transform .25s var(--ease); }
.card:hover .card-foot .btn-primary .ico { transform: translateX(4px); }
.match em { font-style: normal; }
.season-tag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border-radius: 999px; padding: 5px 11px 5px 8px; font-weight: 700; font-size: 12.5px; box-shadow: 0 4px 14px -4px rgb(0 0 0 / .25); }
.season-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--sun-soft); }
.card-meta { display: none; margin: 0; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.res-sub { margin: -6px 0 14px; color: var(--muted); font-size: 14px; max-width: 70ch; }
.res-sub:empty { display: none; }

/* Vus récemment */
.recents { display: flex; align-items: center; gap: 14px; margin-top: 26px; min-width: 0; }
.rc-lbl { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.rc-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 2px; }
.rc { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px 4px 4px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; color: var(--ink); transition: border-color .2s; }
.rc:hover { border-color: var(--sea); }
.rc .ph-box { width: 30px; height: 30px; min-height: 0; border-radius: 50%; overflow: hidden; display: block; flex-shrink: 0; }

/* Sommaire de la fiche : action permanente */
.toc .wrap { align-items: center; gap: 10px; overflow: visible; }
.toc-scroll { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.toc .toc-cta { border: 0; background: var(--sun); border-radius: 999px; padding: 8px 15px; font-size: 13.5px; font-weight: 700; color: var(--ink); flex-shrink: 0; white-space: nowrap; }
.toc .toc-cta:hover { color: var(--ink); filter: brightness(1.05); }

/* Barre d'onglets mobile */
.tabbar { display: none; }
@media (max-width: 760px) {
  .top-x { display: none; }
  .topbar { position: static; }
  .toc { top: env(safe-area-inset-top, 0px); }
  .tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgb(255 255 255 / .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 5px max(8px, env(safe-area-inset-right, 0px)) calc(5px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .tabbar button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 6px 0 4px; border-radius: 12px; position: relative; min-height: 48px; }
  .tabbar button[aria-current="page"] { color: var(--sea); }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar .pill-count { position: absolute; top: 1px; left: calc(50% + 7px); min-width: 17px; height: 17px; font-size: 10.5px; padding: 0 4px; }
  #app { padding-bottom: 70px; }
  .tray { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .ask-fab { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  body:has(.tray) .ask-fab { bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
  .explore { padding-block: 26px 40px; }

  /* Carrousels : on fait défiler au pouce au lieu d'empiler */
  .acts, .sim, .itin-picker { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; scrollbar-width: none; }
  .acts > *, .sim > *, .itin-picker > * { scroll-snap-align: start; }
  .act-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .act-filter > * { flex-shrink: 0; }
  .recents { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 18px; }
  .rc-row { max-width: 100%; }
}

/* Cartes compactes au format liste sur téléphone */
@media (max-width: 640px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .card { flex-direction: row; border-radius: 18px; }
  .card:hover { transform: none; box-shadow: none; }
  .card-media { width: 118px; flex-shrink: 0; aspect-ratio: auto; align-self: stretch; min-height: 132px; }
  .card-body { padding: 11px 12px 11px 13px; gap: 4px; min-width: 0; justify-content: center; }
  .card-title h3 { font-size: 18.5px; }
  .card-title span { font-size: 12px; white-space: nowrap; }
  .card-tl { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card .kv, .card .mc, .card .why-line, .card-foot .btn, .card .best-tag { display: none; }
  .card-meta { display: block; margin-top: 3px; }
  .card-foot { margin-top: 2px; padding-top: 0; }
  .card .cmp { font-size: 12.5px; }
  .card .heart { left: 8px; right: auto; top: 8px; width: 32px; height: 32px; }
  .card .heart .ico { width: 16px; height: 16px; }
  .card .match, .card .season-tag { left: 6px; top: auto; bottom: 6px; padding: 3px 8px 3px 5px; font-size: 11.5px; gap: 4px; }
  .card .match i { width: 16px; height: 16px; font-size: 9px; }
  .card .match em { display: none; }
  .card .season-tag { padding-left: 7px; }
  .card .season-tag i { width: 7px; height: 7px; box-shadow: none; }
}

/* Carnet : carte du parcours, jours passés, valise, sur place */
.trip-map { height: 300px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; }
.tl-day.past .tl-card { opacity: .55; }
.tl-day.past .tl-ph { display: none; }
.tl-day.today .tl-date { background: var(--sea); border-color: var(--sea); }
.tl-day.today .tl-date b, .tl-day.today .tl-date small { color: #fff; }
.tl-day.today .tl-card { border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-soft); }
.trip-main > h2 { margin-top: 34px; }
.trip-main > .trip-next + h2, .trip-main > h2:first-child { margin-top: 0; }
.pk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 34px; }
.pk-head h2 { font-size: clamp(24px, 3vw, 32px); }
.pk-head span { font-weight: 700; color: var(--sea); }
.pk-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.trip-main { grid-column: 1; grid-row: 1; }
.trip-side { grid-column: 2; grid-row: 1 / span 2; }
.trip-extra { grid-column: 1; grid-row: 2; min-width: 0; }
.trip-extra > .pk-head:first-child { margin-top: 0; }
@media (max-width: 980px) { .trip-main, .trip-side, .trip-extra { grid-column: auto; grid-row: auto; } }
.pk-g { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; }
.pk-g h4 { font-family: var(--font-body); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.pk { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 8px 0; cursor: pointer; font-size: 14.5px; font-weight: 600; border-top: 1px solid var(--line); }
.pk-g h4 + .pk { border-top: 0; }
.pk input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--good); }
.pk small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.pk:has(input:checked) span { color: var(--faint); text-decoration: line-through; }
.pk:has(input:checked) small { display: none; }
.os-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.os-grid .fact { background: var(--surface); border: 1px solid var(--line); }
.os-grid .fact b { font-size: 15px; overflow-wrap: anywhere; }
.os-phr { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.os-phr span { background: var(--sea-soft); color: var(--sea-deep); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; }
.os-phr b { font-weight: 700; }
@media (max-width: 640px) { .trip-map { height: 240px; } }

/* Programme d'une journée */
.moments { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.moments li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.moments .mo-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sea); padding-top: 3px; }
.moments.nolabel li { grid-template-columns: 6px minmax(0, 1fr); gap: 10px; }
.moments.nolabel li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sea); margin-top: 8px; }
.plan .moments { margin-top: 2px; }
.lcard-main .stay { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.lcard-main .stay b { color: var(--ink); font-weight: 600; }
.lcard-main .plan { margin-top: 14px; }

/* Vols */
.fl { margin-bottom: 30px; display: flex; flex-direction: column; gap: 14px; }
.fl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.fl-head h3 { font-size: 22px; }
.fl-head h3 small { font-size: 14px; color: var(--muted); font-weight: 600; }
.fl-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.fl-go { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fl-go .note, .fl .note { margin: 0; }
.fl-note { margin: 0; }
.fl-days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.fl-days button { flex: 1 0 96px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--ink); }
.fl-days button:hover { border-color: var(--sea); }
.fl-days small { font-size: 12px; color: var(--muted); font-weight: 600; }
.fl-days b { font-size: 16px; }
.fl-days em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--good); text-transform: uppercase; letter-spacing: .04em; }
.fl-days button.best b { color: var(--good); }
.fl-days button[aria-pressed="true"] { border-color: var(--sea); background: var(--sea-soft); }
.fl-offers { display: flex; flex-direction: column; gap: 10px; }
.fl-offer { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.fl-price b { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.fl-price small { color: var(--muted); font-size: 12.5px; }
.fl-tag { display: inline-block; margin-top: 6px; background: var(--sun-soft); border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 600; }
.fl-legs { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fl-leg { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; font-size: 14px; }
.fl-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sea); padding-top: 3px; }
.fl-leg small { display: block; color: var(--muted); font-size: 12.5px; }
.fl-bag { color: var(--muted); font-size: 12.5px; }
.fl-cmp { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px dashed var(--line); }
.fl-cmp > span { font-size: 13px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.fl-cmp .chip { text-decoration: none; display: inline-flex; gap: 5px; align-items: center; }
.fl-cmp .chip .ico { width: 13px; height: 13px; }
@media (max-width: 760px) { .fl-offer { grid-template-columns: minmax(0, 1fr); gap: 10px; } .fl-offer .btn { justify-self: start; } }

/* v19 : comparateur libre, page Vols, valeur de l'app */
.fq { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 14px; align-items: end; background: var(--bg); border-radius: 16px; padding: 14px; }
.fq .tc input, .fq .tc select { width: 100%; }
@media (max-width: 520px) { .fq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; } .fq .tc input, .fq .tc select { font-size: 13.5px; padding: 7px 6px; } }
.fl-acts { display: flex; flex-direction: column; gap: 6px; }
.fl-plan { display: flex; gap: 8px; flex-wrap: wrap; }
.fl-sec { margin-top: 26px; }
.fl-sec > h3 { font-size: 22px; margin-bottom: 4px; }
.fl-sec > p { color: var(--muted); margin: 0 0 14px; }
.flp { padding-bottom: 40px; }
.flp-head { margin: 30px 0 22px; max-width: 760px; }
.flp-head h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.03em; }
.flp-head .lead { color: var(--muted); font-size: 17px; margin: 8px 0 0; }
.flp-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 8px; }
.flp-how b { font-family: var(--font-display); font-size: 17px; }
.flp-how p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.value { margin-top: 44px; }
.value > h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
.value-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); overflow: hidden; }
.value-steps li { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); position: relative; }
.value-steps li:first-child { border-left: 0; }
.vs-n { font-family: var(--font-display); font-size: 34px; font-weight: 750; color: var(--sea-soft); line-height: 1; -webkit-text-stroke: 1px var(--sea); position: absolute; right: 16px; top: 14px; }
.value-steps h3 { font-size: 18.5px; }
.value-steps p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.vs-link { border: 0; background: none; padding: 0; margin-top: 8px; color: var(--sea); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; align-self: flex-start; }
.vs-link:hover { color: var(--sea-deep); }
.vs-link .ico { width: 15px; height: 15px; }
@media (max-width: 900px) { .value-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .value-steps li:nth-child(3) { border-left: 0; } .value-steps li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .value-steps { grid-template-columns: minmax(0, 1fr); } .value-steps li { border-left: 0; border-top: 1px solid var(--line); } .value-steps li:first-child { border-top: 0; } .value { margin-top: 28px; } }
@media (max-width: 760px) { .tabbar { grid-template-columns: repeat(5, minmax(0, 1fr)); } .tabbar button { font-size: 11px; } }

/* v20 : saison, plus d'activités */
.season-box { border: 1px solid var(--line); background: var(--surface); border-radius: 22px; padding: 16px 18px; margin: 18px 0 14px; display: flex; flex-direction: column; gap: 12px; }
.sb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sb-head h3 { font-size: 21px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sb-head h3 select { font: inherit; font-size: 19px; font-weight: 700; color: var(--sea); border: 1.5px solid var(--line); border-radius: 12px; padding: 2px 8px; background: var(--surface); }
.sb-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.mchips { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; min-width: min(100%, 420px); }
.mchip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; padding: 5px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.mchip i { width: 70%; height: 4px; border-radius: 4px; background: var(--line); }
.mchip-ok i { background: var(--good); } .mchip-mid i { background: var(--sun); } .mchip-ko i { background: var(--coral); }
.mchip[aria-pressed="true"] { border-color: var(--sea); color: var(--ink); background: var(--sea-soft); }
.mchip:hover { border-color: var(--sea); }
.sb-adapt { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--sun-soft); border-radius: 14px; padding: 10px 14px; }
.sb-adapt p { margin: 0; font-size: 14px; flex: 1; min-width: 220px; }
.sfit { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px 3px 8px; font-size: 12px; font-weight: 700; background: rgb(255 255 255 / .94); color: var(--ink); margin-top: 6px; width: fit-content; }
.sfit i { width: 8px; height: 8px; border-radius: 50%; }
.sfit-ok i { background: var(--good); } .sfit-mid i { background: var(--sun); } .sfit-ko i, .sfit-warn i { background: var(--coral); } .sfit-warn i { opacity: .55; }
.sadd { display: inline-block; margin: 6px 0 0 6px; background: var(--sea); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; }
.sline { margin: 10px 0 0; font-size: 14px; border-radius: 12px; padding: 8px 12px; }
.sline.ok { background: var(--sea-soft); } .sline.mid { background: var(--sun-soft); } .sline.ko { background: color-mix(in srgb, var(--coral) 14%, transparent); }
.smove { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.smove b { color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-right: 8px; }
.lcard-main .tabs { margin-top: 14px; }
@media (max-width: 520px) { .moments li { grid-template-columns: minmax(0, 1fr); gap: 0; } .moments .mo-l { padding-top: 0; } .moments.nolabel li { grid-template-columns: 6px minmax(0, 1fr); gap: 10px; } .scard .tabs, .lcard .tabs { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; } .scard .tabs button, .lcard .tabs button { white-space: nowrap; flex-shrink: 0; } }
.prat .fact { min-width: 0; } .prat .fact span, .prat .fact b { overflow-wrap: anywhere; }
.rsv { font-style: normal; display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--coral); border: 1px solid currentColor; border-radius: 6px; padding: 0 5px; vertical-align: 1px; }
.trip-adapt { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--sun-soft); border-radius: 16px; padding: 12px 16px; margin-bottom: 22px; }
.trip-adapt p { margin: 0; font-size: 14px; flex: 1; min-width: 220px; }
@media (max-width: 640px) { .mchips { min-width: 0; width: 100%; gap: 3px; } .mchip { font-size: 10px; padding: 4px 0 5px; border-radius: 8px; } .sb-head h3 { font-size: 19px; } }

/* ===== v21 : mouvement et profondeur ===== */
@property --fy { syntax: "<length>"; inherits: false; initial-value: 0px; }
a, button, label, summary { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--sun); color: var(--ink); }
.topbar { transition: box-shadow .3s; }
.scrolled .topbar { box-shadow: 0 10px 28px -18px rgb(19 34 44 / .45); }
.logo-mark { transition: rotate .5s var(--ease), scale .5s var(--ease); }
.logo:hover .logo-mark { rotate: -14deg; scale: 1.08; }
.btn .ico:last-child { transition: translate .25s var(--ease); }
.btn:hover .ico:last-child { translate: 3px 0; }
.btn-sun { position: relative; overflow: hidden; }
.btn-sun::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .55) 50%, transparent 65%); translate: -110% 0; pointer-events: none; }
.btn-sun:hover::before { translate: 110% 0; transition: translate .7s var(--ease); }
.toast { animation: fxtoast .45s var(--ease); box-shadow: 0 14px 34px -14px rgb(19 34 44 / .6); }
@keyframes fxtoast { from { opacity: 0; transform: translate(-50%, -14px) scale(.94); } }
.card:active { scale: .985; }
.tabbar button svg { transition: scale .2s var(--ease); }
.tabbar button:active svg { scale: .82; }
.chk input:checked, input[data-a="chk"]:checked { animation: fxpop .35s var(--ease); }
@keyframes fxpop { 40% { scale: 1.35; } }

/* Photos : apparition douce au premier chargement seulement */
img.ph:not(.ld) { opacity: 0; }
.has-photo > img.ph:not(.ld) { opacity: 1; transition: opacity .7s ease, transform .8s var(--ease); }

/* Barre de progression de lecture (fiche pays, carnet) */
.fx-progress { position: fixed; left: 0; top: env(safe-area-inset-top, 0px); height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sea), var(--sun)); z-index: 61; pointer-events: none; display: none; }
@keyframes fxprog { to { transform: scaleX(1); } }
@supports (animation-timeline: scroll()) {
  body[data-view="country"] .fx-progress, body[data-view="trip"] .fx-progress { display: block; animation: fxprog linear both; animation-timeline: scroll(root); }
}

/* Transition partagée : la photo de la carte devient l'en-tête de la fiche */
.c-hero, .trip-hero { view-transition-name: wl-hero; }
::view-transition-group(wl-hero) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(wl-hero), ::view-transition-new(wl-hero) { width: 100%; height: 100%; object-fit: cover; }

@media print { .rv { opacity: 1 !important; transform: none !important; } }

@media (prefers-reduced-motion: no-preference) {
  /* Apparition au défilement */
  .fx .rv { opacity: 0; transform: translateY(22px); }
  .fx .rv.in { opacity: 1; transform: none; transition: opacity .6s var(--ease) calc(var(--i, 0) * 70ms), transform .8s var(--ease) calc(var(--i, 0) * 70ms); }

  /* Accueil : halo vivant, titre mot à mot, photos flottantes */
  .hero { position: relative; isolation: isolate; }
  .hero::before { content: ""; position: absolute; z-index: -1; inset: -30px 0 auto 0; height: 600px; pointer-events: none; filter: blur(34px); opacity: .9;
    background: radial-gradient(38% 46% at 16% 30%, rgb(13 108 119 / .22), transparent 70%), radial-gradient(34% 44% at 82% 18%, rgb(242 178 52 / .26), transparent 70%), radial-gradient(30% 40% at 62% 84%, rgb(224 83 58 / .13), transparent 70%);
    animation: fxaurora 16s ease-in-out infinite alternate; }
  @keyframes fxaurora { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 3%, 0) scale(1.12); } }
  .hero h1 .w { display: inline-block; }
  .fx-enter .hero h1 .w { animation: fxword .7s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
  @keyframes fxword { from { opacity: 0; transform: translateY(.5em) rotate(3deg); filter: blur(6px); } }
  .hero h1 em { background: linear-gradient(var(--sun-soft), var(--sun-soft)) no-repeat 0 88% / 100% .34em; }
  .fx-enter .hero h1 em { animation: fxmark .9s var(--ease) .75s both; }
  @keyframes fxmark { from { background-size: 0 .34em; } }
  .fx-enter .hero-sub, .fx-enter .hero .sentence, .fx-enter .hero .ask-lbl, .fx-enter .hero .ask { animation: rise2 .7s var(--ease) both; }
  .fx-enter .hero-sub { animation-delay: .35s; } .fx-enter .hero .sentence { animation-delay: .45s; } .fx-enter .hero .ask-lbl, .fx-enter .hero .ask { animation-delay: .55s; }
  .hero-art .art { translate: calc(var(--px, 0) * var(--k) * 1px) calc(var(--py, 0) * var(--k) * 1px + var(--fy)); animation: fxfloat 7s ease-in-out infinite alternate; transition: box-shadow .4s, scale .5s var(--ease); }
  .hero-art .a { --k: 10; } .hero-art .b { --k: -16; animation-duration: 9s; animation-delay: -3s; } .hero-art .c { --k: 22; animation-duration: 8s; animation-delay: -5s; }
  @keyframes fxfloat { from { --fy: -7px; } to { --fy: 7px; } }
  .fx-enter .hero-art { animation: fxart 1s var(--ease) both; }
  @keyframes fxart { from { opacity: 0; scale: .94; } }
  .art-in { position: absolute; inset: 0; animation: fade 1.1s ease both; }
  .hero-art .cap { transition: opacity .4s; }

  /* Fiche pays et carnet : en-tête qui respire */
  .fx-enter .c-hero-txt > div > *, .fx-enter .trip-hero-txt > div > * { animation: rise2 .7s var(--ease) both; }
  .fx-enter .c-hero-txt > div > :nth-child(2), .fx-enter .trip-hero-txt > div > :nth-child(2) { animation-delay: .08s; }
  .fx-enter .c-hero-txt > div > :nth-child(3), .fx-enter .trip-hero-txt > div > :nth-child(3) { animation-delay: .16s; }
  .fx-enter .c-hero-txt > div > :nth-child(4), .fx-enter .trip-hero-txt > div > :nth-child(4) { animation-delay: .24s; }
  .fx-enter .c-match, .fx-enter .trip-cd { animation: popin .6s var(--ease) .3s both; }
  @supports (animation-timeline: scroll()) {
    .c-hero > img.ph, .trip-hero > img.ph { animation: fxpar linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
    @keyframes fxpar { to { scale: 1.14; translate: 0 4%; } }
  }
}

/* Souris : relief et reflet sur les cartes */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); transition: transform .18s ease-out, box-shadow .3s; }
  .card::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .3), transparent 50%); opacity: 0; transition: opacity .35s; }
  .card:hover::after { opacity: 1; }
  .hero-art .art:hover { scale: 1.03; box-shadow: 0 26px 50px -22px rgb(19 34 44 / .55); }
  .value-steps li { transition: background .3s; }
  .value-steps li:hover { background: linear-gradient(180deg, var(--sea-soft), transparent 70%); }
  .value-steps li .vs-n { transition: translate .4s var(--ease), color .3s; }
  .value-steps li:hover .vs-n { translate: 0 -3px; color: var(--sun); }
}
.fx-bit { position: fixed; z-index: 95; pointer-events: none; width: 8px; height: 8px; border-radius: 50%; left: 0; top: 0; }

/* ===== v22 : convertisseur, galerie, visionneuse ===== */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) { background-color: var(--surface); color: var(--ink); color-scheme: light; }
.prat .cv-fact { grid-column: 1 / -1; }
@media (min-width: 900px) { .prat .cv-fact { grid-column: span 2; } }
.cv { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 10px; }
.cv-f { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 4px 12px 4px 4px; transition: border-color .2s, box-shadow .2s, background .2s; min-width: 0; cursor: text; }
.cv-f:focus-within { border-color: var(--sea); background: var(--surface); box-shadow: 0 0 0 4px var(--sea-soft); }
.cv-f input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 20px; padding: 8px 8px; font-variant-numeric: tabular-nums; }
.cv-f i { font-style: normal; font-weight: 700; font-size: 12.5px; letter-spacing: .04em; color: var(--sea-deep); background: var(--sea-soft); border-radius: 8px; padding: 4px 8px; flex-shrink: 0; }
.cv-eq { color: var(--faint); font-weight: 700; font-size: 18px; }
.cv-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.cv-chips button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; color: var(--muted); transition: border-color .2s, color .2s, background .2s; }
.cv-chips button:hover { border-color: var(--sea); color: var(--sea-deep); }
.cv-chips button[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }
.cv-fact > span { display: block; margin-top: 8px; }
@media (max-width: 520px) { .cv { grid-template-columns: minmax(0, 1fr); gap: 6px; } .cv-eq { display: none; } }

/* Galerie de la fiche */
.gal { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 170px); gap: 8px; margin: 4px 0 24px; border-radius: 22px; overflow: hidden; }
.gal button { position: relative; border: 0; padding: 0; overflow: hidden; background: var(--line); cursor: zoom-in; min-width: 0; }
.gal button:first-child { grid-row: span 2; }
.gal.n2 button:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.gal.n3 button:nth-child(n+2) { grid-column: span 2; }
.gal.n4 button:nth-child(2) { grid-column: span 2; }
.gal .ph { transition: transform .8s var(--ease), opacity .7s ease; }
.gal button:hover .ph { transform: scale(1.06); }
.gal button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(10 20 28 / .6), transparent 45%); pointer-events: none; }
.gal .gcap { position: absolute; left: 12px; bottom: 10px; right: 12px; z-index: 2; color: #fff; font-weight: 650; font-size: 14px; text-align: left; text-shadow: 0 1px 6px rgb(0 0 0 / .5); }
.gal .gmore { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgb(10 20 28 / .55); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
@media (max-width: 760px) {
  .gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 0; margin-inline: -16px; padding-inline: 16px; gap: 10px; scrollbar-width: none; }
  .gal::-webkit-scrollbar { display: none; }
  .gal button { flex: 0 0 78%; height: 190px; border-radius: 18px; scroll-snap-align: center; }
}
.steps .ph-box img.ph[data-k], .tl img.ph[data-k] { cursor: zoom-in; }

/* Cartes : survol = aperçu des autres photos */
.cm-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; pointer-events: none; }
.cm-alt.on { opacity: 1; }
.cm-alt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-bars { position: absolute; left: 10px; right: 10px; bottom: 5px; z-index: 2; display: flex; gap: 4px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.card:hover .cm-bars { opacity: 1; }
.cm-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .45); }
.cm-bars i.on { background: #fff; }
.cm-name { position: absolute; right: 10px; bottom: 14px; z-index: 2; background: rgb(10 20 28 / .65); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; pointer-events: none; }

/* Visionneuse */
.lb { position: fixed; inset: 0; z-index: 120; background: rgb(8 14 19 / .97); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #fff; animation: fade .25s; touch-action: pan-y; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 8px; font-size: 14px; }
.lb-top b { font-family: var(--font-display); font-size: 17px; }
.lb-top small { display: block; color: rgb(255 255 255 / .65); font-size: 12.5px; }
.lb-top a { color: rgb(255 255 255 / .75); }
.lb-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .14); color: #fff; font-size: 22px; display: grid; place-items: center; flex-shrink: 0; transition: background .2s; }
.lb-btn:hover { background: rgb(255 255 255 / .28); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 12px; }
.lb-stage img { max-width: min(1100px, 100%); max-height: 100%; width: 100%; height: 100%; object-fit: contain; border-radius: 14px; animation: rise2 .35s var(--ease); }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; }
.lb-nav.p { left: 18px; } .lb-nav.n { right: 18px; }
.lb-thumbs { display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); scrollbar-width: none; }
.lb-thumbs button { flex: 0 0 auto; width: 76px; height: 50px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; opacity: .55; background: #223; transition: opacity .2s, border-color .2s; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--sun); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-go { color: #fff; border-color: rgb(255 255 255 / .4); background: rgb(255 255 255 / .12); }
@media (max-width: 640px) { .lb-nav { display: none; } .lb-go { display: none; } }
