/* The Quiet Adventure — carnet de voyage */
:root {
  --paper: #F3ECDF;
  --paper-deep: #E9DFCC;
  --card: #FFFDF8;
  --ink: #2A2521;
  --ink-soft: #4A433C;
  --muted: #6B6157;
  --line: #D8CCB6;
  --forest: #2F5D50;
  --forest-deep: #1E3E35;
  --ochre: #A8641F;
  --sand: #E7C489;
  --on-forest: #F3ECDF;
  --on-forest-soft: #D6DED6;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --shadow: 0 1px 0 #E2D7C3, 0 10px 26px rgba(60, 45, 30, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* ---------- Header ---------- */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brand b { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -.5px; }
.brand span { font-family: var(--hand); font-size: 22px; color: var(--ochre); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; }
.lang { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; font-size: 14px; }
.lang a, .lang span { padding: 5px 13px; text-decoration: none; color: var(--ink); }
.lang .on { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: none; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav.open { display: flex; }
}

/* ---------- Type helpers ---------- */
.kicker { margin: 0; font-family: var(--hand); font-size: 26px; color: var(--ochre); line-height: 1.2; }
.h-sec { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 44px); letter-spacing: -.8px; line-height: 1.1; }
.label { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.label.ochre { color: var(--ochre); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.sec-head > div { display: flex; flex-direction: column; gap: 6px; max-width: 680px; }
.sec-head p.aside { margin: 0; max-width: 400px; color: var(--ink-soft); }
.section { padding: 88px 0; }
.band { background: var(--paper-deep); }
.forest { background: var(--forest); color: var(--on-forest); }
.forest a { color: var(--sand); }
.forest .kicker { color: var(--sand); }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 700; border: 1.5px solid var(--ink); color: var(--ink); }
.btn.solid { background: var(--forest); border-color: var(--forest); color: #F7F2E8; }
.btn.solid:hover { background: var(--forest-deep); color: #F7F2E8; }

/* ---------- Grids & cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
@media (max-width: 960px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid3, .grid2 { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--card); box-shadow: var(--shadow); transition: transform .2s ease; }
.card:hover { transform: translateY(-3px); color: var(--ink); }
.card .ph { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: var(--line); }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.2; }
.card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.story { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.story .ph { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--line); }
.story h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.story p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.story:hover h3 { text-decoration: underline; text-decoration-color: var(--ochre); }

/* ---------- Hero ---------- */
.hero { padding: 32px 0 88px; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 68px); line-height: 1.03; letter-spacing: -1.5px; }
.hero .lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 520px; }
.hero .txt { display: flex; flex-direction: column; gap: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.polaroid { position: relative; padding: 20px; }
.polaroid .frame { background: var(--card); padding: 14px 14px 52px; box-shadow: 0 2px 0 #E2D7C3, 0 18px 40px rgba(60, 45, 30, .16); transform: rotate(-2deg); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%; }
.polaroid figcaption { margin-top: 14px; font-family: var(--hand); font-size: 26px; text-align: center; }
.polaroid .tape { position: absolute; top: 6px; left: 42%; width: 110px; height: 30px; background: rgba(214, 190, 140, .75); transform: rotate(4deg); }
.polaroid .stamp { position: absolute; right: -4px; bottom: 40px; width: 118px; height: 118px; border-radius: 50%; border: 2.5px solid var(--ochre); color: var(--ochre); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(12deg); background: var(--paper); font-weight: 700; text-align: center; line-height: 1.1; }
.polaroid .stamp b { font-family: var(--serif); font-size: 32px; }
.polaroid .stamp span { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.polaroid.tilt-r .frame { transform: rotate(1.5deg); }
.polaroid.tilt-r img { aspect-ratio: 1 / 1; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats b { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1.1; }
.stats span { font-size: 15px; color: var(--on-forest-soft); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Maps ---------- */
.map { width: 100%; aspect-ratio: 16 / 8; min-height: 320px; background: #DCE3DA; border: 1px solid var(--line); }
.forest .map { border-color: rgba(243, 236, 223, .25); }
.map.tall { aspect-ratio: auto; height: min(78vh, 720px); }
.leaflet-container { font-family: var(--sans) !important; }
.leaflet-popup-content { margin: 12px 14px !important; font-size: 14px; line-height: 1.4; }
.leaflet-popup-content a { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; }
.map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* ---------- Trip page ---------- */
.trip-hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; color: #FFFDF8; }
.trip-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28, 22, 16, .78), rgba(28, 22, 16, .15) 60%, rgba(28, 22, 16, 0)); }
.trip-hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 48px; width: 100%; }
.trip-hero h1 { margin: 6px 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -1.5px; }
.trip-hero p { margin: 0; max-width: 680px; font-size: 19px; line-height: 1.55; }
.trip-hero .kicker { color: var(--sand); }
.crumbs { font-size: 15px; font-weight: 700; }
.trip-hero .crumbs a { color: #FFFDF8; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; margin-top: 18px; }
.chips span { padding: 5px 14px; border: 1.5px solid currentColor; border-radius: 999px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 64px 220px minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { font-family: var(--hand); font-size: 34px; color: var(--ochre); text-align: center; }
.steps img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
.steps a { text-decoration: none; color: var(--ink); }
.steps h3 { margin: 4px 0 6px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.steps a:hover h3 { text-decoration: underline; text-decoration-color: var(--ochre); }
@media (max-width: 760px) { .steps li { grid-template-columns: 44px minmax(0, 1fr); } .steps li img { grid-column: 2; } .steps .n { grid-row: span 2; font-size: 28px; } }
.book-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.book-strip img { box-shadow: 0 2px 0 var(--line), 0 16px 30px rgba(60, 45, 30, .18); }
@media (max-width: 760px) { .book-strip { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Article ---------- */
.post-head { padding: 24px 0 40px; display: flex; flex-direction: column; gap: 16px; }
.post-head h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.5vw, 66px); line-height: 1.04; letter-spacing: -1.2px; max-width: 920px; }
.post-head .meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.post-head .meta span { padding: 5px 14px; border: 1.5px solid var(--ink); border-radius: 999px; }
.post-cover img { width: 100%; max-height: 640px; object-fit: cover; }
.post-wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding: 56px 0 96px; }
.post-aside { flex: 1 1 240px; max-width: 290px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
@media (max-width: 960px) { .post-aside { position: static; max-width: none; } }
.aside-card { background: var(--card); padding: 22px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.aside-card .kicker { font-size: 24px; }
.aside-card nav { display: flex; flex-direction: column; gap: 6px; }
.prose { flex: 999 1 560px; min-width: 0; max-width: 740px; font-family: var(--serif); font-size: 21px; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2, .prose h3, .prose h4, .prose h5 { font-weight: 400; line-height: 1.2; margin: 1.8em 0 0; }
.prose h2 { font-size: 36px; }
.prose h3, .prose h4 { font-size: 30px; display: flex; align-items: baseline; gap: 12px; }
.prose h4::before, .prose h3::before { content: "✎"; font-family: var(--hand); color: var(--ochre); font-size: 24px; }
.prose h5 { font-size: 24px; }
.prose img { margin-left: auto; margin-right: auto; }
.prose figure { margin: 1.4em 0 0; }
.prose figcaption { font-family: var(--hand); font-size: 24px; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin: 1.6em 0 0; padding: 0 0 0 0; font-family: var(--hand); font-size: 32px; line-height: 1.3; color: var(--forest); text-align: center; }
.prose blockquote p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose hr { border: 0; border-top: 1.5px solid var(--line); margin: 2em 0; }
.prose video { width: 100%; background: #000; }
.prose iframe { width: 100%; height: 460px; border: 0; }
.prose table { border-collapse: collapse; font-family: var(--sans); font-size: 15px; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.gallery { display: grid; gap: 10px; }
.gallery.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; cursor: zoom-in; }
.gallery.g1 img { aspect-ratio: auto; }
@media (max-width: 560px) { .gallery.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose > img, .prose figure img { cursor: zoom-in; }
.strava-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; background: var(--card); padding: 18px 22px; box-shadow: var(--shadow); font-family: var(--sans); font-size: 15px; text-decoration: none; color: var(--ink); }
.strava-card:hover { color: var(--ink); }
.strava-card .t { display: flex; align-items: center; gap: 12px; }
.strava-card svg.ic { flex: none; }
.strava-card .go { color: var(--forest); font-weight: 700; }
.post-nav { margin-top: 3em; padding-top: 2em; border-top: 1.5px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-family: var(--sans); font-size: 16px; }
.post-nav a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); max-width: 46%; }
.post-nav a.next { text-align: right; margin-left: auto; }
.post-nav b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.25; }
@media (max-width: 560px) { .post-nav a { max-width: 100%; } .post-nav a.next { text-align: left; margin-left: 0; } }

/* ---------- Archives ---------- */
.year { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.year h2 { margin: 0; font-family: var(--hand); font-weight: 400; font-size: 44px; color: var(--ochre); line-height: 1; }
.year ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.year li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.year li a { font-family: var(--serif); font-size: 21px; text-decoration: none; color: var(--ink); }
.year li a:hover { text-decoration: underline; text-decoration-color: var(--ochre); }
.year li span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .year { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.also { margin: 32px 0 0; font-size: 16px; line-height: 1.8; color: var(--ink-soft); }

/* ---------- Books ---------- */
.book { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.book img { width: 100%; aspect-ratio: 794 / 595; object-fit: cover; box-shadow: 0 2px 0 var(--line), 0 16px 30px rgba(60, 45, 30, .18); transition: transform .2s ease; }
.book:hover img { transform: translateY(-3px) rotate(-.5deg); }
.book h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.book h3 small { font-size: 16px; color: var(--muted); }
.book p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E9DFCC; padding: 64px 0 40px; }
.site-footer a { color: #E9DFCC; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .top b { font-family: var(--serif); font-weight: 400; font-size: 30px; display: block; margin-bottom: 8px; }
.site-footer .top p { margin: 0; color: #BDB2A2; max-width: 460px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.site-footer .bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid #4A433C; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: #BDB2A2; }

/* ---------- Lightbox ---------- */

/* ---------- Misc ---------- */
.notice { background: var(--card); border-left: 0; padding: 14px 18px; box-shadow: var(--shadow); font-size: 15px; color: var(--ink-soft); }
.lang-note { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 2px 8px; border-radius: 999px; background: var(--paper-deep); color: var(--ink-soft); vertical-align: 3px; }
.center { text-align: center; }
@media (max-width: 640px) {
  .polaroid .stamp { width: 84px; height: 84px; bottom: auto; top: 0; right: 0; }
  .polaroid .stamp b { font-size: 24px; }
  .polaroid figcaption { font-size: 22px; }
}

/* fond de carte aux tons du carnet */
.leaflet-tile-pane { filter: sepia(.28) saturate(.85) brightness(1.02); }

/* ---------- Filtres des voyages ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 18px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fgroup .label { margin-right: 4px; }
.chip { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.chip small { color: var(--muted); font-size: 13px; margin-left: 2px; }
.chip:hover { background: var(--paper-deep); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] small { color: #CFC4B4; }
.filter-count { margin: 0 0 22px; }
.filter-empty { margin: 24px 0 0; color: var(--ink-soft); }
.card[hidden] { display: none; }

/* ---------- Menu déroulant « Voyages » ---------- */
.dd { position: relative; display: inline-flex; }
.dd-menu { display: none; position: absolute; top: 100%; left: -16px; z-index: 50; min-width: 200px; padding: 10px 0; background: var(--card); box-shadow: 0 12px 30px rgba(60, 45, 30, .18); flex-direction: column; }
.dd-menu a { padding: 7px 18px; font-weight: 500; }
.dd-menu a:hover { background: var(--paper-deep); text-decoration: none; }
.dd-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: flex; }
@media (max-width: 760px) { .dd-menu { display: none !important; } }

/* ---------- Décor des voyages ---------- */
.card-media { position: relative; }
.card-stamp { position: absolute; right: 10px; bottom: -30px; width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 253, 248, .92); transform: rotate(-12deg); transition: transform .35s ease; box-shadow: 0 4px 12px rgba(60, 45, 30, .12); }
.card:hover .card-stamp { transform: rotate(4deg) scale(1.06); }
.card .body { padding-top: 24px; }
.card-stamp svg, .hero-stamp svg, .aside-stamp svg { display: block; }

.trip-hero { overflow: hidden; }
.hero-stamp { position: absolute; z-index: 2; top: 28px; right: 6%; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 253, 248, .9); transform: rotate(-10deg); animation: stamp-in .9s cubic-bezier(.2, 1.4, .4, 1) .3s both; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
@keyframes stamp-in { 0% { opacity: 0; transform: rotate(-30deg) scale(1.9); } 60% { opacity: 1; } 100% { opacity: 1; transform: rotate(-10deg) scale(1); } }
@media (max-width: 640px) { .hero-stamp { width: 96px; height: 96px; top: 16px; right: 16px; } .hero-stamp svg { width: 96px; height: 96px; } }

.hero-route { position: absolute; z-index: 1; left: 0; right: 0; bottom: 16px; height: 40px; pointer-events: none; }
.hero-route::before { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; border-top: 2px dashed rgba(255, 253, 248, .45); }
.traveller { position: absolute; bottom: 4px; left: -60px; animation: ride 26s linear 1s infinite; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.traveller svg { display: block; animation: bob 1.1s ease-in-out infinite alternate; }
@keyframes ride { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 120px)); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-2px); } }

.hero-particles, .hero-heat { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-particles i { position: absolute; top: -30px; display: block; animation: fall linear infinite; }
.hero-particles i svg { display: block; animation: sway ease-in-out infinite alternate; }
.hero-particles[data-kind="butterflies"] i { top: auto; bottom: -30px; animation-name: flutter; }
@keyframes fall { to { transform: translateY(560px) rotate(260deg); } }
@keyframes flutter { 0% { transform: translate(0, 0); } 50% { transform: translate(40px, -240px); } 100% { transform: translate(-10px, -520px); opacity: 0; } }
@keyframes sway { from { transform: translateX(-14px) rotate(-18deg); } to { transform: translateX(14px) rotate(18deg); } }
.hero-heat { background: radial-gradient(ellipse at 80% 0%, rgba(255, 196, 92, .35), transparent 55%); animation: shimmer 6s ease-in-out infinite alternate; }
@keyframes shimmer { from { opacity: .55; } to { opacity: 1; } }

.aside-stamp { align-self: flex-end; margin: -50px -38px -6px 0; transform: rotate(-12deg); width: 96px; height: 96px; border-radius: 50%; background: var(--card); }
@media (max-width: 960px) { .aside-stamp { margin: 0; align-self: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  .hero-stamp, .traveller, .traveller svg, .hero-particles i, .hero-particles i svg, .hero-heat { animation: none !important; }
  .traveller { left: 8%; }
  .hero-particles { display: none; }
}

/* ---------- Le fil du voyage (page voyage) ---------- */
.trip-hero a.crumbs { color: #FFFDF8; }
.route { --trip: var(--ochre); list-style: none; margin: 0; padding: 12px 0 0; position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 112px; row-gap: 36px; }
.route::before { content: ""; position: absolute; top: 0; bottom: 30px; left: 50%; margin-left: -1.5px; border-left: 3px dashed var(--trip); opacity: .55; }
.route-month, .route-end { grid-column: 1 / -1; position: relative; z-index: 1; text-align: center; margin: 12px 0 0; }
.route-month span, .route-end span { display: inline-block; padding: 6px 18px; border-radius: 999px; background: var(--trip); color: #FFFDF8; font-family: var(--hand); font-size: 24px; line-height: 1.2; box-shadow: 0 4px 12px rgba(60, 45, 30, .15); }
.route-end span { background: var(--ink); }
.leg { position: relative; display: flex; align-self: start; }
.leg.l { grid-column: 1; }
.leg.r { grid-column: 2; margin-top: 180px; }
.leg .pin { position: absolute; top: 40px; z-index: 2; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); border: 3px solid var(--trip); color: var(--trip); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; font-weight: 600; box-shadow: 0 0 0 6px var(--paper); }
.leg.l .pin { right: -82px; }
.leg.r .pin { left: -82px; }
.leg .pin::after { content: ""; position: absolute; top: 50%; width: 26px; border-top: 3px solid var(--trip); opacity: .55; }
.leg.l .pin::after { right: 100%; margin-right: 3px; }
.leg.r .pin::after { left: 100%; margin-left: 3px; }
.leg-card { width: 100%; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--card); padding: 12px 12px 22px; box-shadow: 0 2px 0 #E2D7C3, 0 14px 32px rgba(60, 45, 30, .14); transition: transform .3s ease, box-shadow .3s ease; }
.leg.l .leg-card { transform: rotate(-1.2deg); }
.leg.r .leg-card { transform: rotate(1.2deg); }
.leg .leg-card:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 2px 0 #E2D7C3, 0 22px 44px rgba(60, 45, 30, .2); color: var(--ink); }
.snap { margin: 0; position: relative; }
.snap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.snap figcaption { position: absolute; left: 12px; bottom: -16px; padding: 2px 12px; background: var(--sand); color: var(--ink); font-family: var(--hand); font-size: 22px; transform: rotate(-3deg); box-shadow: 0 3px 8px rgba(60, 45, 30, .18); }
.leg-txt { padding: 26px 10px 0; display: flex; flex-direction: column; gap: 8px; }
.leg-txt h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; }
.leg-txt p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.leg-txt .go { margin-top: 4px; font-weight: 700; color: var(--trip); }
.leg-card:hover h3 { text-decoration: underline; text-decoration-color: var(--trip); text-decoration-thickness: 2px; }
.reveal { opacity: 0; translate: 0 30px; transition: opacity .7s ease, translate .7s ease; }
.reveal.in { opacity: 1; translate: 0 0; }
@media (max-width: 760px) {
  .route { grid-template-columns: minmax(0, 1fr); row-gap: 30px; padding-left: 64px; }
  .route::before { left: 26px; }
  .leg.l, .leg.r { grid-column: 1; margin-top: 0; }
  .leg.l .pin, .leg.r .pin { left: -60px; right: auto; top: 18px; width: 44px; height: 44px; font-size: 19px; }
  .leg .pin::after { display: none; }
  .route-month, .route-end { text-align: left; margin-left: -64px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; translate: none; transition: none; } }

/* ---------- Animations des récits ---------- */
.cover-frame { position: relative; overflow: hidden; }
.cover-frame .hero-particles i { top: -30px; }
.read-route { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 6px; background: rgba(42, 37, 33, .08); }
.read-done { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--trip); }
.read-route .rider { position: absolute; top: 4px; left: 0; transform: translateX(-50%); background: var(--paper); border-radius: 999px; padding: 3px 6px; box-shadow: 0 3px 10px rgba(60, 45, 30, .18); transition: opacity .3s; }
.read-route .rider svg { display: block; animation: bob 1s ease-in-out infinite alternate; }
.read-route .read-goal { position: absolute; top: 6px; right: 10px; opacity: .75; background: var(--paper); border-radius: 50%; padding: 3px; }
.read-route.idle .rider svg { animation: none; }
@media (max-width: 640px) { .read-route .read-goal { display: none; } .read-route .rider svg { width: 24px; height: 24px; } }

.prose .rv { opacity: 0; translate: 0 26px; transition: opacity .8s ease, translate .8s ease; }
.prose .rv.in { opacity: 1; translate: 0 0; }
.prose .gallery.rv img { opacity: 0; transform: scale(.94) rotate(-1.5deg); transition: opacity .6s ease, transform .6s ease; }
.prose .gallery.rv.in img { opacity: 1; transform: none; }
.prose .gallery.rv.in img:nth-child(2) { transition-delay: .12s; }
.prose .gallery.rv.in img:nth-child(3) { transition-delay: .24s; }
.prose .gallery.rv.in img:nth-child(n+4) { transition-delay: .32s; }
.prose h3, .prose h4 { position: relative; }
.prose h3.rv::after, .prose h4.rv::after { content: ""; position: absolute; left: 36px; bottom: -6px; height: 3px; width: 0; background: var(--ochre); opacity: .6; border-radius: 2px; transition: width 1s ease .3s; }
.prose h3.rv.in::after, .prose h4.rv.in::after { width: min(220px, 60%); }
.strava-card svg.ic { transition: transform .6s ease; }
.strava-card:hover svg.ic { transform: translateX(8px) rotate(-4deg); }
@media (prefers-reduced-motion: reduce) {
  .prose .rv, .prose .gallery.rv img { opacity: 1 !important; translate: none !important; transform: none !important; transition: none !important; }
  .read-route .rider svg { animation: none; }
}

/* ---------- Drapeaux ---------- */
.flag { display: inline-block; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(42, 37, 33, .15); object-fit: cover; }
.flags { display: flex; gap: 6px; margin-bottom: 2px; }
.flag-chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px !important; }
.trip-hero .flag-chip .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.story .label .flag { margin-right: 2px; }
.map-legend .flag { vertical-align: -1px; }

/* Guirlande de drapeaux en haut des voyages */
.bunting { position: absolute; z-index: 2; top: -4px; left: 0; right: 0; margin: 0; padding: 0 2%; list-style: none; display: flex; justify-content: space-between; pointer-events: none; }
.bunting::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40px; border-bottom: 2px solid rgba(255, 253, 248, .7); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.bunting li { position: relative; top: var(--y); transform-origin: 50% 0; animation: flap 2.4s ease-in-out calc(var(--i) * -.35s) infinite alternate; }
.bunting img { display: block; width: 46px; height: 34px; object-fit: cover; border-radius: 2px; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
@keyframes flap { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@media (max-width: 640px) { .bunting li:nth-child(odd) { display: none; } .bunting img { width: 34px; height: 25px; } }
@media (prefers-reduced-motion: reduce) { .bunting li { animation: none; } }
.trip-hero .wrap { padding-top: 150px; }

/* ---------- Récit suivant ---------- */
.post-nav2 { --trip: var(--ochre); margin-top: 3.2em; display: flex; flex-direction: column; gap: 18px; font-family: var(--sans); }
.post-nav2 .nx { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 300px; padding: 80px 30px 70px; overflow: hidden; text-decoration: none; color: #FFFDF8; background: var(--trip); box-shadow: 0 18px 40px rgba(60, 45, 30, .22); transform: rotate(-.6deg); transition: transform .35s ease, box-shadow .35s ease; }
.post-nav2 .nx:hover { transform: rotate(0) translateY(-4px); color: #FFFDF8; box-shadow: 0 26px 50px rgba(60, 45, 30, .28); }
.post-nav2 .nx .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s ease; cursor: pointer; }
.post-nav2 .nx:hover .bg { transform: scale(1.14); }
.post-nav2 .nx > .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(24, 19, 14, .9), rgba(24, 19, 14, .45) 60%, rgba(24, 19, 14, .35)); }
.nx-title { text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.post-nav2 .nx > span { position: relative; }
.nx-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: absolute !important; top: 22px; left: 30px; right: 30px; }
.nx-kicker { font-family: var(--hand); font-size: 30px; color: var(--sand); animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.nx-step { padding: 4px 12px; border: 1.5px solid rgba(255, 253, 248, .7); border-radius: 999px; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.nx-title { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.5px; max-width: 90%; }
.nx-date { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .85; }
.nx-road { position: absolute !important; left: 30px; right: 30px; bottom: 22px; height: 34px; border-bottom: 2px dashed rgba(255, 253, 248, .55); }
.nx-rider { position: absolute; left: 0; bottom: 2px; transition: left 1.6s cubic-bezier(.3, .1, .2, 1); }
.nx-rider svg { display: block; animation: bob 1s ease-in-out infinite alternate; }
.post-nav2 .nx:hover .nx-rider, .post-nav2 .nx:focus-visible .nx-rider { left: calc(100% - 70px); }
.nx-arrow { position: absolute; right: 0; bottom: 4px; font-size: 26px; line-height: 1; transition: transform .3s ease; }
.post-nav2 .nx:hover .nx-arrow { transform: translateX(6px); }
.post-nav2 .nx.end { min-height: 200px; }
.prose > .pv, .post-nav2 .pv { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); padding: 10px; background: var(--card); box-shadow: var(--shadow); max-width: 480px; transition: transform .3s ease; }
.prose > .pv:hover { transform: translateX(-4px); color: var(--ink); }
.prose > .pv img { width: 96px; height: 72px; object-fit: cover; flex: none; cursor: pointer; margin: 0; }
.prose > .pv > span { margin: 0; }
.prose > .pv b { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.25; margin-top: 2px; }
@media (max-width: 560px) { .post-nav2 .nx { min-height: 240px; padding: 76px 20px 64px; } .nx-title { font-size: 26px; } .nx-top, .nx-road { left: 20px; right: 20px; } }
@media (prefers-reduced-motion: reduce) { .nx-kicker, .nx-rider svg { animation: none; } .nx-rider, .post-nav2 .nx .bg { transition: none; } }

/* ---------- Accueil : le dernier voyage ---------- */
.latest { --trip: var(--forest); position: relative; padding: 96px 0; color: #FFFDF8; background-color: #22362F;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23F3ECDF' stroke-opacity='.07' stroke-width='1.5'%3E%3Cpath d='M-50 120 C80 60 160 180 300 110 S520 40 650 120'/%3E%3Cpath d='M-50 170 C90 110 170 230 300 160 S510 90 650 170'/%3E%3Cpath d='M-50 220 C100 160 180 280 300 210 S500 140 650 220'/%3E%3Cpath d='M-50 360 C60 300 200 420 320 350 S520 280 650 360'/%3E%3Cpath d='M-50 410 C70 350 210 470 320 400 S510 330 650 410'/%3E%3Cpath d='M-50 460 C80 400 220 520 320 450 S500 380 650 460'/%3E%3Cpath d='M-50 510 C90 450 230 570 320 500 S490 430 650 510'/%3E%3C/g%3E%3C/svg%3E"); }
.latest .kicker { color: var(--sand); }
.latest .h-sec { color: #FFFDF8; font-size: clamp(40px, 5vw, 60px); }
.latest-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 44px; }
.latest-head > div { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.latest-lead { margin: 4px 0 0; font-size: 18px; line-height: 1.6; color: #D6DED6; }
.latest-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-size: 14px; }
.latest-meta > span { padding: 5px 14px; border: 1.5px solid rgba(255, 253, 248, .45); border-radius: 999px; }
.latest-stamp { flex: none; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 253, 248, .94); transform: rotate(-10deg); transition: transform .4s cubic-bezier(.2, 1.4, .4, 1); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.latest-stamp:hover { transform: rotate(6deg) scale(1.05); }
.latest-stamp svg { display: block; }
.latest-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 22px; min-height: 600px; }
.lt { position: relative; display: flex; align-items: flex-end; overflow: hidden; text-decoration: none; color: #FFFDF8; box-shadow: 0 20px 44px rgba(0, 0, 0, .35); }
.lt:hover { color: #FFFDF8; }
.lt0 { grid-row: 1 / span 2; }
.lt .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 5s ease; }
.lt:hover .bg { transform: scale(1.1); }
.lt > .lt-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 26, 22, .92), rgba(18, 26, 22, .35) 55%, rgba(18, 26, 22, .05)); transition: background .4s; }
.lt:hover > .lt-shade { background: linear-gradient(to top, rgba(18, 26, 22, .95), rgba(18, 26, 22, .45) 60%, rgba(18, 26, 22, .15)); }
.lt-pin { position: absolute; top: 18px; left: 18px; width: 50px; height: 50px; border-radius: 50%; background: var(--sand); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transform: rotate(-8deg); }
.lt-body { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 28px 26px; }
.lt-meta { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #E7DCC8; display: flex; align-items: center; gap: 8px; }
.lt-title { font-family: var(--serif); font-size: 28px; line-height: 1.12; letter-spacing: -.4px; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.lt0 .lt-title { font-size: clamp(34px, 3.6vw, 48px); }
.lt-ex { font-size: 16px; line-height: 1.55; color: #E3DACB; max-width: 560px; }
.lt-go { font-weight: 700; color: var(--sand); }
.lt-go b { display: inline-block; transition: transform .3s ease; }
.lt:hover .lt-go b { transform: translateX(8px); }
.latest-foot { margin-top: 34px; display: flex; justify-content: center; }
.btn.light { border-color: rgba(255, 253, 248, .8); color: #FFFDF8; }
.btn.light:hover { background: #FFFDF8; color: var(--ink); }
@media (max-width: 860px) {
  .latest-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; min-height: 0; }
  .lt0 { grid-row: auto; min-height: 440px; }
  .lt1, .lt2 { min-height: 300px; }
  .latest-stamp { width: 110px; height: 110px; } .latest-stamp svg { width: 110px; height: 110px; }
}
@media (prefers-reduced-motion: reduce) { .lt .bg, .latest-stamp { transition: none; } }
@media (max-width: 860px) {
  .latest { padding: 72px 0; }
  .latest-head { position: relative; padding-right: 0; }
  .latest-stamp { position: absolute; top: -44px; right: -8px; width: 92px; height: 92px; }
  .latest-stamp svg { width: 92px; height: 92px; }
  .lt-ex { display: none; }
  .lt0 { min-height: 380px; }
}
.prose > .pv { font-family: var(--sans); margin: 0 0 2em; max-width: 420px; padding: 8px; gap: 14px; transform: rotate(-.8deg); }
.prose > .pv img { width: 72px; height: 54px; }
.prose > .pv b { font-size: 17px; }
.prose > .pv:hover { transform: rotate(0) translateX(-4px); }

/* ---------- Traces Strava ---------- */
.post-head .meta .km-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px 5px 10px; border-radius: 999px; background: var(--forest); color: var(--on-forest); text-decoration: none; font-weight: 700; }
.post-head .meta .km-chip:hover { background: var(--forest-deep); color: var(--on-forest); }
.post-head .meta .km-chip svg { flex: none; }

.trk { margin: 34px 0; list-style: none; }
.trk > a { display: grid; grid-template-columns: 132px 1fr; gap: 0; background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-left: 4px solid var(--trip, var(--forest)); transition: transform .35s ease, box-shadow .35s ease; }
.trk > a:hover { color: var(--ink); transform: translateY(-3px) rotate(-.3deg); box-shadow: 0 1px 0 #E2D7C3, 0 18px 34px rgba(60, 45, 30, .14); }
.trk-svg { width: 132px; height: 100%; min-height: 96px; display: block; background-color: var(--paper-deep);
  background-image: radial-gradient(rgba(74, 67, 60, .16) 1px, transparent 1.2px); background-size: 9px 9px; }
.prose .trk-svg { margin: 0; }
.trk-bg { fill: none; stroke: #FFFDF8; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.trk-line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.trk-a { fill: #FFFDF8; stroke: var(--ink); stroke-width: 1.6; }
.trk-b { stroke: #FFFDF8; stroke-width: 1.6; }
.trk.rv:not(.in) .trk-line, .tracks.rv:not(.in) .trk-line { stroke-dashoffset: 1; }
.trk.rv:not(.in) .trk-b, .tracks.rv:not(.in) .trk-b { opacity: 0; }
.trk.in .trk-line, .tracks.in .trk-line { transition: stroke-dashoffset 1.8s ease-in-out .25s; }
.trk.in .trk-b, .tracks.in .trk-b { transition: opacity .3s ease 2s; }
.trk-txt { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 14px 20px; min-width: 0; }
.trk-kind { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.trk-name { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.trk-stats { font-size: 15px; color: var(--ink-soft); }
.trk-stats b { color: var(--ink); }
.trk-go { font-size: 14px; font-weight: 700; color: var(--forest); margin-top: 2px; }
.trk > a:hover .trk-go { text-decoration: underline; }

.tracks { margin: 56px 0 40px; padding: 30px 30px 26px; background: var(--paper-deep); position: relative; }
.tracks::before { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(74, 67, 60, .28); pointer-events: none; }
.tracks-head { position: relative; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; margin-bottom: 18px; }
.tracks-head .kicker { margin: 0 0 2px; flex-basis: 100%; }
.prose .tracks-head h2 { margin: 0; font-size: 30px; }
.tk-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--ink-soft); }
.tk-stats b { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--trip, var(--forest)); margin-right: 3px; }
.tracks .tk-map { position: relative; aspect-ratio: 16 / 10; min-height: 280px; border: 0; box-shadow: var(--shadow); }
.prose .trk-list, .trk-list { position: relative; list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.trk-list .trk { margin: 0; }
.trk-list .trk > a { grid-template-columns: 96px 1fr; }
.trk-list .trk-svg { width: 96px; min-height: 84px; }
.trk-list .trk-name { font-size: 17px; }
.trk-list .trk-txt { padding: 10px 14px; }
.trk-list .trk-go { display: none; }
.leaflet-interactive { cursor: pointer; }

@media (max-width: 640px) {
  .trk > a { grid-template-columns: 96px 1fr; }
  .trk-svg { width: 96px; }
  .trk-name { font-size: 18px; }
  .tracks { margin-left: -16px; margin-right: -16px; padding: 24px 18px 20px; }
  .tracks .tk-map { aspect-ratio: 4 / 5; }
  .tk-stats b { font-size: 22px; }
}

/* ---------- Fin de voyage : la route continue vers le voyage suivant ---------- */
.route-end a { text-decoration: none; }
.route-next { --next: var(--ochre); grid-column: 1 / -1; position: relative; z-index: 1; margin: 12px 0 0; padding-bottom: 8px; background: var(--paper); }
.rn { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); }
.rn:hover { color: var(--ink); }
.rn-end span { display: inline-block; padding: 6px 18px; border-radius: 999px; background: var(--ink); color: #FFFDF8; font-family: var(--hand); font-size: 24px; line-height: 1.2; box-shadow: 0 4px 12px rgba(60, 45, 30, .15); }
.rn-road { position: relative; z-index: 2; display: block; width: 120px; height: 220px; margin: -2px 0 -6px; }
.rn-road > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: clip-path 1.6s ease-in-out; clip-path: inset(0 0 0 0); }
.rn-road > svg path { fill: none; stroke: var(--next); stroke-width: 3; stroke-dasharray: .028 .022; opacity: .8; }
.rn-rider { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--next); border: 3px solid #FFFDF8; box-shadow: 0 6px 16px rgba(60, 45, 30, .25);
  offset-path: path("M60 0 C60 60 20 70 30 120 S100 170 60 220"); offset-rotate: 0deg; offset-distance: 100%; transition: offset-distance 1.7s cubic-bezier(.45, .05, .25, 1); }
.rn-rider svg { width: 30px; height: 30px; animation: bob 1s ease-in-out infinite alternate; }
.rn-card { position: relative; display: block; width: min(760px, 100%); aspect-ratio: 16 / 8; min-height: 260px; overflow: hidden; background: var(--next); box-shadow: 0 22px 46px rgba(60, 45, 30, .25);
  transform: rotate(-1deg); transition: transform .5s ease, box-shadow .5s ease, opacity .7s ease; text-align: left; }
.rn-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 6s ease; }
.rn-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(24, 19, 14, .88), rgba(24, 19, 14, .3) 55%, rgba(24, 19, 14, .1)); }
.rn-stamp { position: absolute; top: 16px; right: 18px; border-radius: 50%; background: rgba(255, 253, 248, .88); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); animation: rn-spin 26s linear infinite; }
.rn-stamp svg { display: block; }
.rn-txt { position: absolute; left: 30px; right: 30px; bottom: 26px; display: flex; flex-direction: column; gap: 6px; color: #FFFDF8; }
.rn-kicker { font-family: var(--hand); font-size: 30px; color: var(--sand); line-height: 1; }
.rn-title { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.5px; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.rn-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .9; }
.rn-meta .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.rn-go { align-self: flex-start; margin-top: 8px; padding: 9px 18px; border-radius: 999px; background: #FFFDF8; color: var(--ink); font-weight: 700; font-size: 15px; }
.rn-go b { display: inline-block; transition: transform .3s ease; }
.rn:hover .rn-card, .rn:focus-visible .rn-card { transform: rotate(0) translateY(-6px); box-shadow: 0 30px 60px rgba(60, 45, 30, .3); }
.rn:hover .rn-img { transform: scale(1.12); }
.rn:hover .rn-go b { transform: translateX(6px); }
.rn:hover .rn-rider { animation: rn-hop .5s ease-in-out infinite alternate; }
@keyframes rn-spin { to { transform: rotate(360deg); } }
@keyframes rn-hop { to { translate: 0 -6px; } }
/* état avant l'apparition (le script ajoute .armed, puis .in quand on arrive au bout de la route) */
.route-next.armed:not(.in) .rn-road > svg { clip-path: inset(0 0 100% 0); }
.route-next.armed:not(.in) .rn-rider { offset-distance: 0%; }
.route-next.armed:not(.in) .rn-card { opacity: 0; transform: rotate(-4deg) translateY(40px) scale(.94); }
.route-next.armed .rn-card { transition: transform .8s cubic-bezier(.2, .9, .3, 1.2) 1.3s, box-shadow .5s ease, opacity .6s ease 1.3s; }
.route-next.armed.in.done .rn-card { transition: transform .5s ease, box-shadow .5s ease, opacity .7s ease; }
@media (max-width: 760px) {
  .route-next { margin-left: -64px; }
  .rn-road { height: 160px; }
  .rn-road > svg { transform: scaleY(.727); transform-origin: top; }
  .rn-rider { offset-path: path("M60 0 C60 44 20 51 30 87 S100 124 60 160"); }
  .rn-card { aspect-ratio: 4 / 5; min-height: 0; }
  .rn-stamp svg { width: 80px; height: 80px; }
  .rn-txt { left: 20px; right: 20px; bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { .rn-stamp, .rn-rider svg, .rn:hover .rn-rider { animation: none; } .rn-rider { transition: none; } }


/* =================================================================
   Le site en grand : transitions, mode nuit, recherche, visionneuse,
   globe, récit au fil de la route, passeport
   ================================================================= */
/* ---------- Transitions entre pages (navigateurs récents) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Mode nuit ---------- */
:root[data-theme="dark"] {
  --paper: #1C1A16; --paper-deep: #24211C; --card: #2A2721; --ink: #EDE4D3; --ink-soft: #CFC5B3; --muted: #A2978A;
  --line: #3D3830; --forest: #86BBA6; --forest-deep: #A9D3C2; --ochre: #E2A75E; --sand: #B98E4E;
  --shadow: 0 1px 0 #13110E, 0 10px 26px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
:root[data-theme="dark"] body { background: var(--paper); }
:root[data-theme="dark"] img:not(.flag) { filter: brightness(.9) contrast(1.04); }
:root[data-theme="dark"] .site-footer { background: #13110E; }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.82) contrast(.92) saturate(.5); }
:root[data-theme="dark"] .map, :root[data-theme="dark"] .lr-map { background: #23262A; }
:root[data-theme="dark"] .lang .on { color: var(--paper); }
/* ---------- Visionneuse ---------- */
.vw { position: fixed; inset: 0; z-index: 1200; display: none; flex-direction: column; background: rgba(16, 13, 10, .96); color: #F3ECDF; touch-action: none; }
.vw.on { display: flex; }
.vw-stage { position: relative; flex: 1; overflow: hidden; }
.vw-track { position: absolute; inset: 0; display: flex; will-change: transform; }
.vw-slide { flex: 0 0 100%; display: grid; place-items: center; padding: 56px 16px 12px; }
.vw-slide { min-height: 0; }
.vw-slide img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; user-select: none; -webkit-user-drag: none; transition: transform .25s ease; }
.vw-slide img.zoom { transform: scale(2); cursor: zoom-out; }
.vw-top { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.vw-count { font-family: var(--sans); font-size: 14px; letter-spacing: 1px; color: #CFC4B4; }
.vw-cap { min-height: 38px; margin: 0; padding: 4px 16px 0; text-align: center; font-family: var(--hand); font-size: 26px; color: #E7C489; }
.vw button { border: 0; background: rgba(255, 253, 248, .12); color: #FFFDF8; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.vw button:hover { background: rgba(255, 253, 248, .24); }
.vw-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); }
.vw-prev { left: 16px; } .vw-next { right: 16px; }
.vw-thumbs { display: flex; gap: 6px; justify-content: center; padding: 10px 16px 18px; overflow-x: auto; }
.vw-thumbs img { width: 54px; height: 54px; object-fit: cover; opacity: .45; cursor: pointer; border-radius: 3px; flex: none; }
.vw-thumbs img.on { opacity: 1; outline: 2px solid #E7C489; outline-offset: 2px; }
@media (max-width: 700px) { .vw-nav { display: none; } .vw-thumbs img { width: 42px; height: 42px; } }

/* ---------- Recherche ---------- */
.sr-ov { position: fixed; inset: 0; z-index: 1100; display: none; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; background: rgba(28, 22, 16, .55); backdrop-filter: blur(6px); }
.sr-ov.on { display: flex; }
.sr-ov .sr-box { width: min(720px, 100%); max-height: 84vh; display: flex; flex-direction: column; background: var(--paper); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); border-radius: 6px; overflow: hidden; }
.sr-field { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1.5px solid var(--line); color: var(--muted); }
.sr-field input { flex: 1; min-width: 0; border: 0; background: none; font-family: var(--serif); font-size: 26px; color: var(--ink); outline: none; }
.sr-field input::placeholder { color: var(--muted); opacity: .7; }
.sr-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; }
.sr-tags button { border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); padding: 4px 12px; font: inherit; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.sr-tags button:hover { border-color: var(--ochre); color: var(--ink); }
.sr-results { list-style: none; margin: 0; padding: 4px 8px 12px; overflow-y: auto; }
.sr-results li a { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 10px 12px; text-decoration: none; color: var(--ink); border-radius: 4px; }
.sr-results li a:hover, .sr-results li a.on { background: var(--card); }
.sr-results img.c { width: 76px; height: 76px; object-fit: cover; border-radius: 3px; }
.sr-results b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.2; }
.sr-results .m { display: block; margin: 2px 0 4px; font-size: 13px; color: var(--muted); }
.sr-results .s { display: block; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.sr-results mark { background: none; color: var(--ink); font-weight: 700; box-shadow: inset 0 -.45em 0 rgba(231, 196, 137, .7); }
:root[data-theme="dark"] .sr-results mark { box-shadow: inset 0 -.45em 0 rgba(185, 142, 78, .55); }
.sr-results .none { padding: 18px 12px; color: var(--muted); }
.sr-results .flag { display: inline-block; margin-right: 4px; }
/* ---------- 1. Globe ---------- */
.gl { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); align-items: center; gap: 24px; min-height: calc(100vh - 90px); padding: 0 32px 40px; max-width: 1440px; margin: 0 auto; }
.gl-stage { position: relative; aspect-ratio: 1; width: 100%; max-height: calc(100vh - 110px); justify-self: center; }
.gl-canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.gl-canvas:active { cursor: grabbing; }
.gl-hint { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); margin: 0; font-family: var(--hand); font-size: 22px; color: var(--muted); opacity: 0; transition: opacity .6s; }
.gl.done .gl-hint { opacity: 1; }
.gl-side { display: flex; flex-direction: column; gap: 14px; }
.gl-year { margin: 0; font-family: var(--hand); font-size: clamp(80px, 11vw, 150px); line-height: .8; color: var(--ochre); }
.gl-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -.8px; max-width: 13ch; }
.gl-trip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 6px 0 0; min-height: 56px; }
.gl-flags { display: inline-flex; gap: 4px; }
.gl-name { font-family: var(--serif); font-size: 24px; color: var(--ink); text-decoration-color: var(--trip, var(--ochre)); text-decoration-thickness: 2px; }
.gl-period { width: 100%; font-size: 15px; color: var(--muted); }
.gl-count { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 36px; margin: 8px 0; padding: 18px 0; border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.gl-count div { display: flex; flex-direction: column-reverse; }
.gl-count dt { font-size: 15px; color: var(--muted); }
.gl-count dd { margin: 0; font-family: var(--serif); font-size: clamp(34px, 3.4vw, 46px); line-height: 1; font-variant-numeric: tabular-nums; }
.gl-legend { list-style: none; margin: 0; padding: 14px 0 4px; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 6px 26px; min-height: 64px; align-content: start; }
.gl-legend li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-soft); animation: glfade .5s both; }
.gl-legend li b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
@keyframes glfade { from { opacity: 0; transform: translateY(4px); } }
.gl-line { list-style: none; margin: 6px 0 0; padding: 22px 0 0; display: flex; gap: 0; position: relative; }
.gl-line::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; border-top: 2px dotted var(--line); }
.gl-line li { flex: 1; position: relative; }
.gl-line button { position: relative; display: block; width: 100%; height: 18px; border: 0; background: none; padding: 0; cursor: pointer; }
.gl-line button::after { content: ""; position: absolute; left: 50%; top: 4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--paper); border: 2px solid var(--c); transition: transform .3s, background .3s; }
.gl-line li.done button::after { background: var(--c); }
.gl-line li.on button::after { transform: scale(1.6); background: var(--c); }
.gl-line .y { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); font-family: var(--hand); font-size: 18px; color: var(--muted); white-space: nowrap; }
.gl-ctrl { display: flex; gap: 10px; margin-top: 10px; }
.gl-ctrl button { border: 1.5px solid var(--ink); border-radius: 999px; background: none; padding: 7px 16px; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; }
.gl-ctrl button:hover { background: var(--ink); color: var(--paper); }
.gl-after { padding-bottom: 72px; color: var(--muted); }
@media (max-width: 900px) {
  .gl { grid-template-columns: 1fr; padding: 0 16px 24px; min-height: 0; }
  .gl-stage { max-width: 560px; max-height: none; }
  .gl-year { font-size: 84px; }
  .gl-count { gap: 6px 24px; }
}

/* ---------- 3. Passeport ---------- */
.ps { padding: 24px 0 110px; perspective: 2200px; }
.ps-intro h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 72px); letter-spacing: -1.5px; }
.ps-intro p { max-width: 58ch; color: var(--ink-soft); }
.ps-book { position: relative; width: min(1080px, calc(100% - 32px)); margin: 40px auto 0; min-height: 640px; }
.ps-cover { position: absolute; z-index: 3; top: 0; left: 50%; width: min(460px, 100%); height: 640px; margin-left: min(-230px, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; border: 0; border-radius: 6px 16px 16px 6px; cursor: pointer;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .08), transparent 50%), repeating-linear-gradient(45deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 5px), #4A1F24;
  color: #D9B56B; font-family: var(--serif); box-shadow: inset 8px 0 14px rgba(0, 0, 0, .35), 0 30px 60px rgba(40, 20, 15, .35); transform-origin: left center; transition: transform 1.1s cubic-bezier(.3, .7, .2, 1), opacity .3s 1s, left 1.1s cubic-bezier(.3, .7, .2, 1); transform-style: preserve-3d; }
.ps-cover:hover { transform: rotateY(-8deg); }
.ps-cv-top, .ps-cv-sub { font-family: var(--sans); font-size: 13px; letter-spacing: 4px; text-transform: uppercase; }
.ps-cv-title { font-size: 40px; letter-spacing: 1px; text-align: center; line-height: 1.05; padding: 0 30px; }
.ps-emblem { color: #D9B56B; }
.ps-cv-open { margin-top: 30px; font-family: var(--hand); font-size: 26px; color: #E9CF95; }
.ps-pages { display: grid; grid-template-columns: 1fr 1.6fr; min-height: 640px; background: var(--card); border-radius: 8px; box-shadow: 0 30px 60px rgba(40, 20, 15, .22); opacity: 0; transform: scale(.96); transition: opacity .6s .5s, transform .8s .5s; overflow: hidden;
  background-image: repeating-linear-gradient(0deg, transparent 0 22px, rgba(42, 37, 33, .035) 22px 23px), radial-gradient(circle at 80% 30%, rgba(168, 100, 31, .06), transparent 60%); }
.ps-book[data-open="true"] .ps-cover { transform: rotateY(-170deg); opacity: 0; pointer-events: none; }
.ps-book[data-open="true"] .ps-pages { opacity: 1; transform: none; }
.ps-id { position: relative; padding: 40px 34px; border-right: 2px dashed var(--line); display: flex; flex-direction: column; gap: 22px; }
.ps-photo { width: 120px; height: 150px; display: grid; place-items: center; background: var(--paper-deep); color: var(--muted); border: 1px solid var(--line); }
.ps-id dl { margin: 0; display: grid; gap: 12px; }
.ps-id dt { font-size: 12px; letter-spacing: 1.5px; color: var(--muted); }
.ps-id dd { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.ps-mrz { margin: auto 0 0; font-family: ui-monospace, "Courier New", monospace; font-size: 12.5px; line-height: 1.6; letter-spacing: 1.5px; color: var(--ink-soft); word-break: break-all; }
.ps-visas { padding: 34px 34px 40px; }
.ps-visas h2 { margin: 0 0 18px; font-family: var(--hand); font-weight: 500; font-size: 34px; color: var(--ochre); }
.ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; }
.ps-stamp { --c: #A8641F; position: relative; display: grid; place-items: center; aspect-ratio: 1; color: var(--c); text-decoration: none; transform: rotate(var(--r)); opacity: 0; mix-blend-mode: multiply; }
:root[data-theme="dark"] .ps-stamp { mix-blend-mode: screen; filter: brightness(1.4); }
.ps-book[data-open="true"] .ps-stamp { animation: thump .45s cubic-bezier(.2, .9, .3, 1.3) forwards; animation-delay: calc(1.2s + var(--i, 0) * .14s); }
@keyframes thump { 0% { opacity: 0; transform: rotate(var(--r)) scale(1.9); filter: blur(2px); } 70% { opacity: .95; transform: rotate(var(--r)) scale(.96); filter: none; } 100% { opacity: .9; transform: rotate(var(--r)) scale(1); } }
.ps-stamp:hover { color: var(--c); opacity: 1 !important; transform: rotate(0) scale(1.06) !important; }
.ps-in { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; height: 100%; padding: 12px; text-align: center; border: 3px solid currentColor; outline: 1.5px solid currentColor; outline-offset: -9px;
  -webkit-mask: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, .75) 61%, #000 75%); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)'/%3E%3C/svg%3E") center / 100% 100%; }
.ps-stamp.round .ps-in { border-radius: 50%; }
.ps-stamp.oval .ps-in { border-radius: 50%; height: 78%; }
.ps-stamp.rect .ps-in { height: 74%; border-radius: 4px; }
.ps-stamp.hex .ps-in { clip-path: polygon(25% 3%, 75% 3%, 98% 50%, 75% 97%, 25% 97%, 2% 50%); border: 0; outline: 0; background: linear-gradient(currentColor, currentColor) center / 100% 0 no-repeat; }
.ps-stamp.hex .ps-in::before { content: ""; position: absolute; inset: 0; clip-path: inherit; background: currentColor; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 4px; }
.ps-in b { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.1; }
.ps-city { font-family: var(--serif); font-style: italic; font-size: 14px; }
.ps-date { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; padding: 1px 6px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.ps-n { font-family: var(--hand); font-size: 18px; }
@media (max-width: 760px) {
  .ps-pages { grid-template-columns: minmax(0, 1fr); }
  .ps-pages > * { min-width: 0; }
  .ps-visas { padding: 28px 18px 34px; }
  .ps-grid { gap: 14px 10px; }
  .ps-in b { font-size: 13px; letter-spacing: 1px; }
  .ps-mrz { font-size: 10.5px; letter-spacing: .5px; }
  .ps-id { border-right: 0; border-bottom: 2px dashed var(--line); }
  .ps-cover { height: 560px; }
  .ps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ps-book[data-open="true"] .ps-stamp { animation: none; opacity: .9; }
  .ps-cover, .ps-pages { transition: none; }
}


/* ---------- En-tête : recherche et mode nuit ---------- */
.tools { display: inline-flex; align-items: center; gap: 8px; }
.search-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.search-btn:hover { border-color: var(--ink); color: var(--ink); }
.search-btn kbd { font: inherit; font-size: 12px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; }
.theme-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .sun, :root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
@media (max-width: 1440px) { .search-btn > span, .search-btn kbd { display: none; } .search-btn { width: 36px; padding: 0; justify-content: center; border-color: var(--ink); color: var(--ink); background: none; } }
@media (min-width: 761px) and (max-width: 1440px) { .nav { gap: 6px 18px; } .brand span { font-size: 20px; } }
@media (max-width: 760px) { .tools { margin-top: 6px; } }
.sr-x { margin-left: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper-deep); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------- Photos : aperçu flou, puis nettes ---------- */
img[data-lq] { background-size: cover; background-position: center; background-repeat: no-repeat; }

/* ---------- Transitions : la vignette devient la photo du récit ---------- */
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

/* ---------- Mode nuit : compléments ---------- */
:root[data-theme="dark"] { --on-forest: #EDE4D3; --on-forest-soft: #CFC5B3; }
:root[data-theme="dark"] .btn.solid { background: var(--forest); border-color: var(--forest); color: #14120F; }
:root[data-theme="dark"] .btn.solid:hover { background: var(--forest-deep); color: #14120F; }
:root[data-theme="dark"] .forest { background: #1F2E29; }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .aside-card { box-shadow: var(--shadow); }
:root[data-theme="dark"] .stamp-svg, :root[data-theme="dark"] .ps-emblem { filter: brightness(1.35); }
:root[data-theme="dark"] .leaflet-container { background: #23262A; }
:root[data-theme="dark"] .leaflet-bar a, :root[data-theme="dark"] .leaflet-popup-content-wrapper, :root[data-theme="dark"] .leaflet-popup-tip { background: var(--card); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .leaflet-control-attribution { background: rgba(28, 26, 22, .8); color: var(--muted); }
:root[data-theme="dark"] .leaflet-control-attribution a { color: var(--ink-soft); }

/* ---------- Le globe sur l'accueil ---------- */
.gl-sec { padding: 40px 0 0; background: radial-gradient(ellipse at 30% 50%, var(--card) 0, transparent 60%), var(--paper); border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.gl-sec .gl { min-height: min(860px, calc(100vh - 40px)); }
.gl-sec .gl-title { font-size: clamp(30px, 3vw, 42px); }
.gl-sec .gl-after { margin: 0; padding: 0 32px 40px; max-width: 1200px; font-size: 15px; }
.gl.done .gl-year { font-size: clamp(56px, 6.2vw, 92px); white-space: nowrap; }
.gl-name { --trip: var(--ochre); }

/* ---------- Le récit au fil de la route ---------- */
.rt { display: flex; flex-direction: column; margin: 6px -24px 0; background: var(--paper-deep); border-top: 1.5px solid var(--line); }
.rt-map { height: 280px; background: #DCE3DA; }
.rt-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 10px 18px 0; font-variant-numeric: tabular-nums; }
.rt-now b { width: 100%; font-family: var(--hand); font-size: 25px; font-weight: 500; line-height: 1.1; color: var(--trip); }
.rt-now span { color: var(--ink-soft); font-size: 14.5px; }
.rt-prof { display: block; width: 100%; height: 92px; margin-top: 4px; }
.rt.no-alt .rt-prof { display: none; }
.rt.no-alt .rt-now { padding-bottom: 14px; }
.rt-prof .area { fill: var(--trip); opacity: .14; }
.rt-prof .done { fill: var(--trip); opacity: .5; }
.rt-prof .line { fill: none; stroke: var(--ink-soft); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.rt-prof .sep { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.rt-prof .cur { stroke: var(--trip); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rt-bike { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--trip); color: #FFFDF8; border: 3px solid #FFFDF8; box-shadow: 0 5px 14px rgba(0, 0, 0, .3); }
.rt-bike svg { width: 18px; height: 18px; }
.aside-list summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.aside-list nav { padding-top: 6px; max-height: 40vh; overflow-y: auto; }
.has-route .post-aside { max-width: 330px; flex-basis: 300px; }
.rt-top { position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: 30px; pointer-events: none; color: var(--ink); background: var(--paper); box-shadow: 0 1px 0 var(--line); opacity: 0; transform: translateY(-100%); transition: opacity .3s, transform .3s; }
.rt-top.on { opacity: 1; transform: none; }
.rt-top-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rt-top-svg .bg { fill: var(--line); opacity: .7; }
.rt-top-svg .done { fill: var(--trip); opacity: .85; }
.rt-top-svg .tick { stroke: var(--paper); stroke-width: 2; }
.rt-top-bike { position: absolute; top: 2px; left: 0; display: grid; place-items: center; width: 34px; height: 26px; margin-left: -17px; border-radius: 999px; background: var(--paper); color: var(--trip); box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.rt-btn { display: none; }
@media (max-width: 960px) {
  .has-route .post-aside { max-width: none; }
  .rt { position: fixed; z-index: 80; left: 10px; right: 10px; bottom: 10px; margin: 0; border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); transform: translateY(115%); visibility: hidden; transition: transform .35s ease, visibility 0s .35s; }
  .rt.sheet { transform: none; visibility: visible; transition: transform .35s ease; }
  .rt-map { height: 44vh; }
  .rt-btn { position: fixed; z-index: 81; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--trip); color: #FFFDF8; font: inherit; font-weight: 700; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .rt-btn.on { opacity: 1; pointer-events: auto; }
  .rt-btn[aria-expanded="true"] { bottom: calc(44vh + 190px); }
}
@media (prefers-reduced-motion: reduce) { .rt, .rt-top { transition: none; } }

.sr-field input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.has-route .post-aside { top: 44px; }
.ps-cover { left: 0; right: 0; margin: 0 auto; }
:root[data-theme="dark"] .rt-now b { color: color-mix(in srgb, var(--trip) 55%, #FFFFFF); }
