/* Carnet de voyage jour par jour (/voyages/) — scope .cj, aligné sur la charte du site (tokens.css : ivoire, bleu nuit, doré).
   Variables posées par le JS : --p (en %, sur .cj-nav-bar), --i (stagger) ; classes d'état : .is-on .is-done .is-current .is-in [hidden] [aria-pressed]. */
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
.cj {
  --cj-ink: var(--c-ink, #0a1628); --cj-ink2: var(--c-ink-soft, #1f2d44); --cj-muted: var(--c-muted, #6b7280);
  --cj-paper: var(--c-bg-alt, #f3ede3); --cj-paper2: var(--c-bg-deep, #ece4d6); --cj-edge: #e7e0d2; --cj-card: #fff;
  --cj-gold: var(--c-accent, #c9a961); --cj-gold-deep: var(--c-accent-deep, #a88840); --cj-gold-soft: var(--c-accent-soft, #e8d9b0);
  --cj-sea: #e9eef3; --cj-sea2: #dce4eb; --cj-land: #fdfcf9; --cj-coast: #b9ae98;
  --cj-serif: var(--f-serif, Georgia, "Times New Roman", serif);
  --cj-sans: var(--f-sans, system-ui, -apple-system, "Segoe UI", sans-serif);
  --cj-hand: "Caveat", "Bradley Hand", "Segoe Print", "Noteworthy", "Comic Sans MS", cursive;
  --cj-nav-h: 3.25rem;
  --cj-top: 0px;
  --cj-map-h: 38vh; --cj-map-h: 38svh;
  --cj-ease: cubic-bezier(.4, 0, .2, 1);
  --cj-out: cubic-bezier(.2, .8, .2, 1);
  background: var(--c-bg, #faf7f2); color: var(--cj-ink); font-family: var(--cj-sans);
}
.cj *, .cj *::before, .cj *::after { box-sizing: border-box; }
.cj :focus-visible { outline: 3px solid var(--cj-gold-deep); outline-offset: 3px; border-radius: 4px; }

/* ---------- en-tête ---------- */
.cj-hero { text-align: center; padding: clamp(2.5rem, 7vw, 5.5rem) 1.25rem clamp(1.75rem, 4vw, 3rem); max-width: 56rem; margin: 0 auto; }
.cj-hero h1 { font: 600 clamp(2.4rem, 6vw, 4.25rem)/1.05 var(--cj-serif); letter-spacing: -.01em; margin: 0 0 1rem; color: var(--cj-ink); }
.cj-hero > p { font: 400 clamp(1.05rem, 2vw, 1.25rem)/1.6 var(--cj-sans); color: var(--cj-ink2); margin: 0 auto; max-width: 38rem; }
.cj-stats { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.5rem; }
.cj-stat { display: flex; flex-direction: column; align-items: center; min-width: 4.5rem; }
.cj-stat b { font: 600 clamp(1.8rem, 4vw, 2.6rem)/1 var(--cj-sans); letter-spacing: -.02em; color: var(--cj-ink);
  font-variant-numeric: lining-nums tabular-nums; word-spacing: .14em; white-space: nowrap; }
.cj-stat span { font: 600 .72rem/1.2 var(--cj-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cj-muted); margin-top: .4rem; }

/* ---------- barre de jours collante ---------- */
.cj-nav { position: sticky; top: var(--cj-top); z-index: 30; height: var(--cj-nav-h); background: #faf7f2; border-bottom: 1px solid var(--cj-paper2); }
/* en-tête du site sur le carnet : fond opaque, un seul calque de flou en moins sous des contenus animés (cause du scintillement au scroll) */
body:has(main.cj[data-serie]) .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #faf7f2; }
.cj-nav ol { list-style: none; margin: 0; padding: 0 1rem; height: calc(100% - 3px); display: flex; align-items: center; gap: .4rem;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.cj-nav ol::-webkit-scrollbar { display: none; }
.cj-nav li { flex: 0 0 auto; scroll-snap-align: center; }
.cj-nav-day { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .65rem;
  border-radius: 999px; font: 600 .85rem/1 var(--cj-sans); color: var(--cj-ink2); text-decoration: none; border: 1px solid transparent;
  transition: background-color .25s var(--cj-ease), color .25s var(--cj-ease), border-color .25s var(--cj-ease); }
.cj-nav-day:hover { background: var(--cj-paper); color: var(--cj-ink); }
.cj-nav-day.is-done { color: var(--cj-gold-deep); background: var(--cj-paper); }
.cj-nav-day.is-on { background: var(--cj-ink); color: var(--c-bg, #faf7f2); border-color: var(--cj-ink); }
.cj-nav-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--cj-paper2); }
.cj-nav-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--cj-gold); transition: width .5s var(--cj-ease); }

/* ---------- mise en page ---------- */
.cj-layout { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); align-items: start; max-width: 96rem; margin: 0 auto; }
.cj-journal { list-style: none; margin: 0; padding: 1.5rem clamp(1rem, 3vw, 3rem) 4rem; counter-reset: none; }
.cj-journal > li { margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); padding: 0; }

.cj-map { position: sticky; top: calc(var(--cj-top) + var(--cj-nav-h)); height: calc(100vh - var(--cj-top) - var(--cj-nav-h)); height: calc(100svh - var(--cj-top) - var(--cj-nav-h)); padding: 1.5rem 1rem 1rem 0; order: 2; }
.cj-map-inner { position: relative; height: 100%; border-radius: 20px; overflow: hidden; border: 1px solid var(--cj-edge);
  background: linear-gradient(180deg, var(--cj-sea) 0%, var(--cj-sea2) 100%);
  box-shadow: var(--sh-lg, 0 12px 32px rgba(10, 22, 40, .08)); }
.cj-map-world, .cj-map-region { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .8s var(--cj-ease), transform 1s var(--cj-out), visibility 0s linear .8s; }
.cj-map-world { transform: scale(1.35); }
.cj-map-region { transform: scale(.82); }
.cj-map-world.is-on, .cj-map-region.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .8s var(--cj-ease), transform 1s var(--cj-out), visibility 0s; }
.cj-map svg { width: 100%; height: 100%; display: block; }

/* ---------- cartes SVG (classes vy-* existantes) ---------- */
.cj .vy-sea { fill: var(--cj-sea); fill-opacity: .6; }
.cj .vy-grid-line { stroke: var(--cj-ink); stroke-opacity: .06; stroke-width: 1; }
.cj .vy-land, .cj svg .vy-land path { fill: var(--cj-land); fill-opacity: 1; stroke: var(--cj-coast); stroke-width: 1.1; stroke-linejoin: round; }
.cj path.vy-admin { vector-effect: non-scaling-stroke; stroke-width: 1; stroke-opacity: .5; }
.cj .vy-labels { font: 600 11px/1 var(--cj-sans); fill: var(--cj-muted); letter-spacing: .1em; text-transform: uppercase; opacity: .8; pointer-events: none; }
.cj .vy-labels text { paint-order: stroke; stroke: rgba(253, 252, 249, .9); stroke-width: 3px; stroke-linejoin: round; }

/* éléments ajoutés par le JS */
.cj-route { fill: none; stroke: var(--cj-ink); stroke-width: 1.6; stroke-dasharray: 2 7; stroke-linecap: round; stroke-opacity: .3; vector-effect: non-scaling-stroke; }
.cj-route-done { fill: none; stroke: var(--cj-gold-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 1px rgba(10, 22, 40, .2)); }
.cj-pin { cursor: pointer; }
.cj-pin circle { fill: var(--cj-ink2); stroke: #fff; stroke-width: 1.6; paint-order: stroke; filter: drop-shadow(0 2px 2px rgba(10, 22, 40, .25));
  transition: fill .4s var(--cj-ease); }
.cj-pin text { font: 700 9px/1 var(--cj-sans); fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.cj-pin.is-on circle { fill: var(--cj-gold); stroke: var(--cj-ink); stroke-width: 2; }
.cj-pin.is-on text { fill: var(--cj-ink); }
.cj-veh { fill: var(--cj-ink); stroke: #fff; stroke-width: 1.4; paint-order: stroke; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(10, 22, 40, .3)); }
.cj-label { font: 600 10px/1 var(--cj-sans); fill: var(--cj-ink); paint-order: stroke; stroke: rgba(253, 252, 249, .95); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }

/* ---------- bandeau « Reprendre au jour N » ---------- */
.cj-resume { position: absolute; left: .75rem; right: 1.75rem; bottom: 1.75rem; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .7rem 1rem; border-radius: 14px; background: var(--cj-ink); color: var(--c-bg, #faf7f2); font: 500 .9rem/1.3 var(--cj-sans);
  box-shadow: 0 10px 28px -10px rgba(10, 22, 40, .5); animation: cj-rise .5s var(--cj-ease) both; }
.cj-resume[hidden] { display: none; }
.cj-resume a, .cj-resume button { color: var(--cj-gold); font: 700 .9rem/1 var(--cj-sans); background: none; border: 0; padding: .4rem .2rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cj-resume :focus-visible { outline-color: var(--cj-gold); }
@keyframes cj-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- page de carnet (un jour) ---------- */
.cj-day { position: relative; padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.1rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.2rem) clamp(2.6rem, 4.6vw, 3.6rem);
  background: radial-gradient(120% 90% at 0% 0%, rgba(232, 217, 176, .34), transparent 55%), linear-gradient(180deg, #fffdf7 0%, #fbf5e8 100%);
  border: 1px solid var(--cj-edge); border-radius: 18px; box-shadow: var(--sh-sm, 0 1px 2px rgba(10, 22, 40, .05)), inset 0 0 2.6rem rgba(168, 136, 64, .09);
  scroll-margin-top: calc(var(--cj-top) + var(--cj-nav-h) + .75rem); transition: box-shadow .5s var(--cj-ease), border-color .5s var(--cj-ease); }
.cj-day.is-current { border-color: var(--cj-gold-soft); box-shadow: var(--sh-lg, 0 12px 32px rgba(10, 22, 40, .08)), inset 0 0 2.6rem rgba(168, 136, 64, .09); }
/* filet de marge façon cahier */
.cj-day-head::before { content: ""; position: absolute; left: clamp(2.1rem, 3.6vw, 2.9rem); top: 0; bottom: 0; width: 1px; background: rgba(201, 169, 97, .38); pointer-events: none; }
/* perforations de carnet (marge gauche) et scotch discret */
.cj-day::before { content: ""; position: absolute; left: clamp(.8rem, 1.6vw, 1.1rem); top: 1.4rem; bottom: 1.4rem; width: .6rem; pointer-events: none;
  background: radial-gradient(circle at center, var(--cj-paper2) 0 .22rem, transparent .24rem) center top / .6rem 1.7rem repeat-y; opacity: .9; }
.cj-day::after { content: ""; position: absolute; top: -.6rem; right: 2.2rem; width: 4rem; height: 1.2rem; background: rgba(201, 169, 97, .32); rotate: 2.5deg; pointer-events: none; }
.cj-day-head { position: static; display: grid; grid-template-columns: auto 1fr auto; column-gap: 1rem; row-gap: .4rem; align-items: baseline; margin-bottom: clamp(1.2rem, 3vw, 1.75rem); }
.cj-day-n { grid-column: 1 / -1; justify-self: start; rotate: -3deg; padding: .3rem .7rem .26rem; border: 2px solid var(--cj-gold-deep); border-radius: 6px;
  font: 700 .72rem/1 var(--cj-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--cj-gold-deep); background: rgba(201, 169, 97, .08); }
.cj-day-date { grid-column: 1 / -1; font: 500 .9rem/1.2 var(--cj-sans); color: var(--cj-muted); text-transform: capitalize; margin-top: .2rem; }
.cj-day-title { grid-column: 1 / -1; font: 600 clamp(2.2rem, 4.6vw, 3.3rem)/1.05 var(--cj-hand); letter-spacing: 0; margin: .1rem 0 .3rem; text-wrap: balance; color: var(--cj-ink); }
.cj-day-route { grid-column: 1 / 3; margin: 0; font: 500 1.45rem/1.3 var(--cj-hand); color: var(--cj-ink2); rotate: -.8deg; transform-origin: left center;
  text-decoration: underline wavy rgba(201, 169, 97, .7) 1px; text-underline-offset: .28em; text-decoration-skip-ink: none; }
.cj-day-km { justify-self: end; font: 600 .8rem/1 var(--cj-sans); letter-spacing: .04em; padding: .45rem .75rem; border-radius: 999px; background: var(--cj-paper); color: var(--cj-ink2);
  font-variant-numeric: lining-nums tabular-nums; word-spacing: .12em; white-space: nowrap; }
.cj-listen { grid-column: 1 / -1; justify-self: start; margin-top: .6rem; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: .35rem .9rem;
  font: 600 .82rem/1 var(--cj-sans); color: var(--cj-ink2); background: transparent; border: 1px solid var(--cj-ink); border-radius: 999px; cursor: pointer;
  transition: background-color .25s var(--cj-ease), color .25s var(--cj-ease); }
.cj-listen::before { content: ""; width: 0; height: 0; border-left: .6rem solid currentColor; border-top: .38rem solid transparent; border-bottom: .38rem solid transparent; }
.cj-listen:hover { background: var(--cj-ink); color: var(--c-bg, #faf7f2); }
.cj-listen[aria-pressed="true"] { background: var(--cj-ink); color: var(--c-bg, #faf7f2); }
.cj-listen[aria-pressed="true"]::before { width: .6rem; height: .7rem; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }

.cj-body { font: 400 clamp(1rem, 1.3vw, 1.1rem)/1.75 var(--cj-sans); color: var(--cj-ink2); max-width: 40rem; }
.cj-body > p { margin: 0 0 1.2em; }
.cj-lead .cj-hand { font: 500 clamp(1.45rem, 2.3vw, 1.75rem)/1.4 var(--cj-hand); color: var(--cj-ink); letter-spacing: .005em; }
.cj-lead .cj-w { display: inline-block; }

/* ---------- tirages Polaroid (surcharge de .article-images du main.css) ---------- */
.cj .article-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.3rem; margin: 2rem 0 2.25rem; max-width: none; padding: .4rem .2rem; }
.cj .article-images figure { position: relative; margin: 0; padding: .55rem .55rem 0; background: #fff; border-radius: 3px; display: flex; flex-direction: column;
  rotate: var(--r, 0deg); box-shadow: 0 1px 2px rgba(10, 22, 40, .12), 0 14px 24px -14px rgba(10, 22, 40, .38);
  transition: transform .4s var(--cj-out), rotate .4s var(--cj-out), box-shadow .4s var(--cj-ease); }
.cj .article-images figure:nth-child(4n+1) { --r: -2.2deg; }
.cj .article-images figure:nth-child(4n+2) { --r: 1.6deg; }
.cj .article-images figure:nth-child(4n+3) { --r: -.9deg; }
.cj .article-images figure:nth-child(4n) { --r: 2.4deg; }
.cj .article-images figure:first-child:nth-last-child(n+4), .cj .article-images figure:nth-child(7n+1) { grid-column: 1 / -1; }
.cj .article-images figure::before { content: ""; position: absolute; top: -.55rem; left: 50%; width: 3.3rem; height: 1.1rem; translate: -50% 0; rotate: -3deg;
  background: rgba(201, 169, 97, .34); opacity: 0; pointer-events: none; }
.cj .article-images figure:nth-child(3n+1)::before { opacity: 1; }
.cj .article-images figure:nth-child(3n+2)::before { opacity: 1; left: 18%; rotate: 4deg; width: 2.6rem; }
.cj .article-images figure::after { content: ""; display: block; height: 1.9rem; }
.cj .article-images figure:has(figcaption)::after { display: none; }
.cj .article-images figcaption { padding: .55rem .25rem .7rem; font: 400 .98rem/1.25 var(--cj-hand); color: var(--cj-ink2); text-align: left; margin: 0; font-style: normal; }
.cj .article-images img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin: 0; border-radius: 1px; box-shadow: none;
  background: var(--cj-paper2); cursor: zoom-in; }
.cj .article-images figure:first-child:nth-last-child(n+4) img, .cj .article-images figure:nth-child(7n+1) img { aspect-ratio: 3 / 2; }
.cj .article-images figure:hover { transform: translateY(-4px) scale(1.02); rotate: 0deg; box-shadow: 0 2px 4px rgba(10, 22, 40, .1), 0 22px 32px -16px rgba(10, 22, 40, .45); z-index: 2; }
.cj-body .article-images { width: min(100%, 52rem); }

/* ---------- chargement des photos : placeholder aux dimensions finales (aspect-ratio), shimmer, repli d'erreur ---------- */
.cj .cj-photo img.is-wait { background: linear-gradient(100deg, var(--cj-paper2) 30%, #f7f1e4 50%, var(--cj-paper2) 70%) 0 0 / 200% 100%; animation: cj-shimmer 1.4s linear infinite; }
.cj .cj-photo.is-err img { opacity: 1; pointer-events: none; cursor: default;
  background: repeating-linear-gradient(45deg, var(--cj-paper2) 0 .55rem, #e4dac7 .55rem 1.1rem); }
.cj .cj-photo img:focus-visible { outline-offset: 2px; }

/* ---------- lots de photos : pêle-mêle jeté sur la table (rotations/décalages déterministes via nth-child) ---------- */
.cj .article-gallery { --k: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1rem .8rem; width: 100%; max-width: none;
  margin: 2rem 0 2.6rem; padding: 1.1rem .8rem 1.4rem; }
.cj .article-gallery figure { --r: 0deg; --dx: 0rem; --dy: 0rem; --tx: 0rem; --spin: 14deg; position: relative; z-index: 1; margin: -.25rem; padding: .45rem .45rem .45rem; background: #fff; border-radius: 2px;
  rotate: calc(var(--r) * var(--k)); translate: calc(var(--dx) * var(--k)) calc(var(--dy) * var(--k));
  box-shadow: 0 1px 2px rgba(10, 22, 40, .14), 0 12px 20px -12px rgba(10, 22, 40, .45);
  transition: rotate .4s var(--cj-out), translate .4s var(--cj-out), scale .4s var(--cj-out), box-shadow .4s var(--cj-ease); }
.cj .article-gallery figure:nth-child(7n+1) { --r: -4.5deg; --dx: .1rem; --dy: .3rem; }
.cj .article-gallery figure:nth-child(7n+2) { --r: 3deg; --dx: -.35rem; --dy: -.2rem; }
.cj .article-gallery figure:nth-child(7n+3) { --r: -1.5deg; --dx: .3rem; --dy: .5rem; }
.cj .article-gallery figure:nth-child(7n+4) { --r: 5.5deg; --dx: -.2rem; --dy: .1rem; }
.cj .article-gallery figure:nth-child(7n+5) { --r: -3deg; --dx: .35rem; --dy: -.35rem; }
.cj .article-gallery figure:nth-child(7n+6) { --r: 1.8deg; --dx: 0rem; --dy: .25rem; }
.cj .article-gallery figure:nth-child(7n) { --r: -6deg; --dx: -.3rem; --dy: .4rem; }
.cj .article-gallery figure:nth-child(2n) { --spin: -18deg; --tx: 1.6rem; }
.cj .article-gallery figure:nth-child(2n+1) { --tx: -1.4rem; }
.cj .article-gallery figure:nth-child(4n+1), .cj .article-gallery figure:nth-child(4n+4) { padding-bottom: 1.6rem; }
.cj .article-gallery figure:nth-child(3n+1)::before, .cj .article-gallery figure:nth-child(5n+2)::before { content: ""; position: absolute; top: -.5rem; left: 50%; width: 3rem; height: 1rem; translate: -50% 0; rotate: -4deg;
  background: rgba(201, 169, 97, .38); pointer-events: none; }
.cj .article-gallery figure:nth-child(5n+2)::before { left: 22%; rotate: 5deg; width: 2.4rem; background: rgba(168, 136, 64, .3); }
.cj .article-gallery figure:nth-child(7n+4)::after { content: ""; position: absolute; top: -.7rem; right: .9rem; width: .55rem; height: 1.6rem; border: 2px solid #aeb4bd; border-radius: .4rem; rotate: 6deg;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); pointer-events: none; }
.cj .article-gallery figure:nth-child(7n+4)::before { content: none; }
.cj .article-gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 1px; background: var(--cj-paper2); cursor: zoom-in; transition: none; }
.cj .article-gallery figure:nth-child(5n+3) img { aspect-ratio: 1 / 1; }
.cj .article-gallery img:hover { transform: none; }
.cj .article-gallery figure:hover, .cj .article-gallery figure:focus-within { rotate: 0deg; translate: 0 -.35rem; scale: 1.06; z-index: 5; box-shadow: 0 2px 4px rgba(10, 22, 40, .12), 0 22px 30px -14px rgba(10, 22, 40, .5); }

/* ---------- vidéos : cadre « télé » du carnet + lecteur maison ---------- */
.cj-tv { margin: 2rem 0 2.4rem; max-width: 40rem; }
.cj-tv-case { position: relative; padding: .8rem .8rem .55rem; border-radius: 22px; background: linear-gradient(180deg, #16243a 0%, #0a1628 100%); color: #f4ecd8;
  box-shadow: 0 0 0 1px rgba(201, 169, 97, .55), inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 30px -16px rgba(10, 22, 40, .6); rotate: -.5deg; }
.cj-tv-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #05080f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 0 2rem rgba(0, 0, 0, .7); }
.cj-tv-screen iframe, .cj-tv-thumb { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.cj-tv-thumb { object-fit: cover; opacity: .82; filter: saturate(.9) contrast(1.05); transition: opacity .4s var(--cj-ease); }
.cj-tv.is-started .cj-tv-thumb { opacity: 0; pointer-events: none; }
.cj-tv-fx { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: .55; transition: opacity .6s var(--cj-ease);
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px), radial-gradient(120% 120% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%); }
.cj-tv.is-playing .cj-tv-fx { opacity: .22; }
.cj-tv-start { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; color: #fff; }
.cj-tv .cj-tv-start .cj-ico { width: 4.2rem; height: 4.2rem; padding: 1.15rem 1.05rem 1.15rem 1.3rem; border-radius: 50%; background: rgba(10, 22, 40, .66); border: 2px solid var(--cj-gold);
  fill: var(--cj-gold); transition: transform .3s var(--cj-out), background-color .3s var(--cj-ease); }
.cj-tv .cj-tv-start:hover .cj-ico { transform: scale(1.08); background: rgba(10, 22, 40, .85); }
.cj-tv.is-started .cj-tv-start { display: none; }
.cj-tv-bar { display: flex; align-items: center; gap: .6rem; padding: .55rem .2rem .1rem; }
.cj-tv-btn { flex: 0 0 auto; display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #f4ecd8; cursor: pointer;
  transition: background-color .25s var(--cj-ease), color .25s var(--cj-ease); }
.cj-tv-btn:hover { background: rgba(255, 255, 255, .1); color: var(--cj-gold); }
.cj-tv-btn[hidden] { display: none; }
.cj-tv .cj-ico { width: 1.3rem; height: 1.3rem; display: block; }
.cj-tv .cj-ico .is-fill { fill: currentColor; }
.cj-tv .cj-ico .is-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cj-tv-start .cj-ico .is-fill { fill: var(--cj-gold); }
.cj-tv-time { flex: 0 0 auto; font: 600 .78rem/1 var(--cj-sans); letter-spacing: .02em; color: #d9cfb6; font-variant-numeric: lining-nums tabular-nums; min-width: 5.4rem; text-align: center; }
.cj-tv-seek { position: relative; flex: 1 1 auto; height: 2.5rem; cursor: pointer; touch-action: none; }
.cj-tv-seek::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 3px; background: rgba(255, 255, 255, .16); }
.cj-tv-seek i { position: absolute; left: 0; right: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 3px; background: var(--cj-gold); transform-origin: left center; transform: scaleX(var(--p, 0)); }
.cj-tv-seek:focus-visible, .cj-tv-btn:focus-visible, .cj-tv-start:focus-visible { outline: 3px solid var(--cj-gold); outline-offset: 2px; }
.cj-tv-case:fullscreen { display: flex; flex-direction: column; border-radius: 0; padding: 0; rotate: none; background: #000; }
.cj-tv-case:fullscreen .cj-tv-screen { flex: 1 1 auto; aspect-ratio: auto; border-radius: 0; }
.cj-tv-case:-webkit-full-screen { display: flex; flex-direction: column; border-radius: 0; padding: 0; rotate: none; background: #000; }
.cj-tv-case:-webkit-full-screen .cj-tv-screen { flex: 1 1 auto; aspect-ratio: auto; border-radius: 0; }
.cj-tv-case:fullscreen .cj-tv-bar { padding: .5rem 1rem; background: #0a1628; }

/* ---------- fin du voyage ---------- */
.cj-end { max-width: 72rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem); text-align: center; border-top: 1px solid var(--cj-paper2); }
.cj-end h2 { font: 600 clamp(1.9rem, 4.5vw, 3rem)/1.1 var(--cj-serif); margin: 0 0 2rem; }
.cj-end-map { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; border: 1px solid var(--cj-edge);
  background: linear-gradient(180deg, var(--cj-sea) 0%, var(--cj-sea2) 100%); box-shadow: var(--sh-lg, 0 12px 32px rgba(10, 22, 40, .08)); margin-bottom: 2rem; }
.cj-end-map svg { width: 100%; height: 100%; display: block; }
.cj-end a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .6rem 1.4rem; border-radius: 999px; background: var(--cj-ink); color: var(--c-bg, #faf7f2);
  font: 600 .95rem/1 var(--cj-sans); text-decoration: none; transition: background-color .25s var(--cj-ease), color .25s var(--cj-ease), transform .25s var(--cj-ease); }
.cj-end a:hover { background: var(--cj-gold); color: var(--cj-ink); transform: translateY(-1px); }

/* ---------- mobile : carte en bandeau collant ---------- */
@media (max-width: 800px) {
  .cj { --cj-nav-h: 3rem; }
  .cj-layout { display: flex; flex-direction: column; align-items: stretch; }
  .cj-map { order: -1; position: sticky; top: calc(var(--cj-top) + var(--cj-nav-h)); height: var(--cj-map-h); padding: 0; z-index: 20; }
  .cj-map-inner { border-radius: 0 0 16px 16px; border-width: 0 0 1px; box-shadow: 0 10px 22px -16px rgba(10, 22, 40, .4); }
  .cj-resume { right: .75rem; bottom: .75rem; }
  .cj-journal { padding: 1rem .75rem 3rem; }
  .cj-day { scroll-margin-top: calc(var(--cj-top) + var(--cj-nav-h) + var(--cj-map-h) + .5rem); padding-left: 2.2rem; padding-right: 1rem; }
  .cj-day-head { grid-template-columns: 1fr auto; }
  .cj-day-route { grid-column: 1 / 2; }
  .cj .article-images { gap: 1.3rem .9rem; }
  .cj .article-gallery { --k: .75; gap: .9rem .6rem; padding-inline: .6rem; }
  .cj-end { padding-inline: 1rem; }
  .cj-end-map { aspect-ratio: 4 / 3; border-radius: 16px; }
}
@media (max-width: 480px) {
  .cj .article-gallery { --k: .5; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem .5rem; padding: .9rem .55rem 1.1rem; }
  .cj .article-gallery figure { margin: -.12rem; padding: .35rem .35rem .35rem; }
  .cj .article-gallery figure:nth-child(4n+1), .cj .article-gallery figure:nth-child(4n+4) { padding-bottom: 1.2rem; }
  .cj .article-images { grid-template-columns: 1fr; }
  .cj .article-images figure, .cj .article-images figure:first-child:nth-last-child(n+4), .cj .article-images figure:nth-child(7n+1) { grid-column: auto; }
}

/* ---------- libellés de pins / repères (ajoutés par carnet.js) ---------- */
.cj-pin .cj-label { opacity: 0; transition: opacity .3s var(--cj-ease); }
.cj-pin.is-on .cj-label, .cj-end-map .cj-pin .cj-label { opacity: 1; }
.cj-wp circle { fill: var(--cj-ink2); stroke: #fff; stroke-width: 1.4; }
.cj-wp .cj-ring { fill: none; stroke: var(--cj-gold-deep); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: cj-ring 2.4s ease-out infinite; }
.cj-pin:focus-visible { outline: none; }
.cj-pin:focus-visible circle { stroke: var(--cj-gold-deep); stroke-width: 3; }
.cj-pin text.cj-label { fill: var(--cj-ink); font-size: 10px; text-anchor: start; dominant-baseline: auto; }
.cj-pin text.cj-label.is-end { text-anchor: end; }
@keyframes cj-ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }

/* ---------- apparitions (actives seulement si le JS pose .js-reveal ; sinon tout est visible) ---------- */
.cj.js-reveal .rv:not(.is-in) { opacity: 0; }
.cj .rv-up.is-in { animation: cj-up .8s var(--cj-out) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.cj .rv-card.is-in { animation: cj-card .9s var(--cj-out) backwards; }
.cj .rv-stamp.is-in { animation: cj-stamp .75s var(--cj-out) .05s backwards; }
.cj .rv-tirage.is-in { animation: cj-tirage .95s var(--cj-out) backwards; animation-delay: calc(var(--i, 0) * 120ms); }
.cj .rv-throw.is-in { animation: cj-throw .9s var(--cj-out) backwards; animation-delay: calc(var(--i, 0) * 150ms); }
.cj .cj-lead.is-in .cj-w { animation: cj-ink .55s var(--cj-ease) backwards; animation-delay: calc(var(--d, 0ms) + 300ms); }
.cj.js-reveal .cj-photo.is-loaded:not(.is-dev) img { opacity: 0; }
.cj .cj-photo.is-dev img { animation: cj-develop 1.5s ease-out backwards; animation-delay: calc(var(--i, 0) * 150ms + 200ms); }
@keyframes cj-up { from { opacity: 0; translate: 0 22px; } }
@keyframes cj-card { from { opacity: 0; translate: 0 36px; scale: .985; } }
@keyframes cj-stamp { from { opacity: 0; scale: 1.9; rotate: -14deg; } 55% { opacity: 1; scale: .92; } }
@keyframes cj-tirage { from { opacity: 0; translate: 0 36px; scale: .86; rotate: calc(var(--r, 0deg) + 8deg); } 55% { opacity: 1; } }
@keyframes cj-develop { from { opacity: 0; filter: blur(12px) brightness(1.5) saturate(.3); } 30% { opacity: 1; } }
@keyframes cj-throw { from { opacity: 0; translate: calc(var(--dx, 0rem) + var(--tx, 0rem)) calc(var(--dy, 0rem) - 2.6rem); rotate: calc(var(--r, 0deg) * var(--k, 1) + var(--spin, 14deg)); scale: 1.24; } 55% { opacity: 1; } 78% { scale: .97; } }
@keyframes cj-ink { from { opacity: 0; clip-path: inset(-12% 100% -12% 0); } to { opacity: 1; clip-path: inset(-12% -6% -12% 0); } }
@keyframes cj-shimmer { to { background-position: -200% 0; } }

/* ---------- mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .cj *, .cj *::before, .cj *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; scroll-behavior: auto !important; }
  .cj .article-images figure:hover { transform: none; }
  .cj .article-gallery figure:hover { scale: none; }
  .cj .cj-photo img.is-wait { animation: none; }
  .cj-map-world, .cj-map-region { transform: none; }
  .cj .rv { opacity: 1 !important; }
}

/* ---------- accueil /voyages/ ---------- */
.cj-home .cj-kicker { font: 600 .75rem/1.2 var(--cj-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--cj-gold-deep); margin: 0 0 1rem; font-style: normal; }
.cj-home .cj-kicker a { color: inherit; }
.cj-home-hero { padding-bottom: clamp(1rem, 3vw, 2rem); }
.cj-home-atlas { max-width: 80rem; margin: 0 auto; padding: 0 clamp(.75rem, 3vw, 2rem); }
.cj-home-map { position: relative; aspect-ratio: 440 / 165; border-radius: 20px; overflow: hidden; border: 1px solid var(--cj-edge);
  background: linear-gradient(180deg, var(--cj-sea) 0%, var(--cj-sea2) 100%); box-shadow: var(--sh-lg, 0 12px 32px rgba(10, 22, 40, .08)); }
.cj-home-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cj-home-map .vy-land, .cj-home-map svg .vy-land path { fill: var(--cj-land); fill-opacity: 1; stroke: var(--cj-coast); stroke-width: 1; stroke-linejoin: round; }
.cj-home-trip { cursor: pointer; outline: none; }
.cj-home-trace { fill: none; stroke: var(--cj-gold-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .9; }
.cj-home-flight { fill: none; stroke: var(--cj-ink); stroke-width: 1.3; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; opacity: .45; }
.cj-home-hit { fill: transparent; }
.cj-home-dot { fill: var(--cj-ink); stroke: #fff; stroke-width: 1.6; paint-order: stroke; transition: transform .25s var(--cj-ease); transform-box: fill-box; transform-origin: center; }
.cj-home-lbl { font: 700 8px/1 var(--cj-sans); fill: var(--cj-ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.cj-home-trip.is-hot .cj-home-dot, .cj-home-trip:focus-visible .cj-home-dot { transform: scale(1.5); fill: var(--cj-gold); stroke: var(--cj-ink); }
.cj-home-trip.is-hot .cj-home-trace, .cj-home-trip:focus-visible .cj-home-trace { stroke-width: 3.6; opacity: 1; }
.cj-home-trip:focus-visible .cj-home-hit { stroke: var(--cj-gold-deep); stroke-width: 2; }

.cj-home-cards { max-width: 80rem; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) clamp(.75rem, 3vw, 2rem) clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.cj-card { display: flex; flex-direction: column; background: var(--cj-card); border: 1px solid var(--cj-edge); border-radius: 18px; overflow: hidden;
  box-shadow: var(--sh-sm, 0 1px 2px rgba(10, 22, 40, .05)); transition: transform .3s var(--cj-ease), box-shadow .3s var(--cj-ease), border-color .3s var(--cj-ease); }
.cj-card.is-hot { transform: translateY(-6px); border-color: var(--cj-gold); box-shadow: var(--sh-lg, 0 12px 32px rgba(10, 22, 40, .1)); }
.cj-card-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cj-paper2); }
.cj-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--cj-ease); }
.cj-card.is-hot .cj-card-img img { transform: scale(1.04); }
.cj-card-year { position: absolute; left: .8rem; bottom: .8rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(10, 22, 40, .78); color: #fff; font: 600 .8rem/1.2 var(--cj-sans); letter-spacing: .08em; }
.cj-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.4rem 1.5rem; }
.cj-card-body h2 { font: 600 clamp(1.4rem, 2.4vw, 1.75rem)/1.2 var(--cj-serif); margin: 0 0 .6rem; color: var(--cj-ink); }
.cj-card-body > p { font: 400 .98rem/1.55 var(--cj-sans); color: var(--cj-ink2); margin: 0 0 1rem; }
.cj-card-stats { margin: 0 0 1.25rem; gap: .5rem 1.4rem; justify-content: flex-start; }
.cj-card-stats .cj-stat { align-items: flex-start; min-width: 0; }
.cj-card-stats .cj-stat b { font-size: 1.5rem; }
.cj-card-cta { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 2.75rem; padding: .6rem 1.4rem; border-radius: 999px; background: var(--cj-ink); color: var(--c-bg, #faf7f2); font: 600 .95rem/1 var(--cj-sans); text-decoration: none; transition: background-color .25s var(--cj-ease), color .25s var(--cj-ease); }
.cj-card-cta:hover, .cj-card.is-hot .cj-card-cta { background: var(--cj-gold); color: var(--cj-ink); }
@media (max-width: 62rem) { .cj-home-cards { grid-template-columns: 1fr; max-width: 34rem; } .cj-home-map { aspect-ratio: 16 / 8; } }
@media (prefers-reduced-motion: reduce) { .cj-card, .cj-card-img img, .cj-home-dot { transition: none; } }

/* lien article -> carnet */
.cj-art-link { margin: 1.25rem 0; }
