/* Cyril en voyage · carnet de route
   Tokens first, then the page's own classes. The engine's [data-sc-*]
   selectors and .sc-* mechanism classes are never restyled here. */

:root {
  color-scheme: dark;
  --sc-canvas:     #17140f;
  --sc-surface:    #221d16;
  --sc-ink:        #f3ebdd;
  --sc-ink-soft:   #c4b6a0;
  --sc-accent:     #f6b72b;
  --sc-accent-ink: #17140f;
  --sc-font-display: "Big Shoulders Display", "Overpass", system-ui, sans-serif;
  --sc-font-text:    "Overpass", system-ui, sans-serif;
  --sc-shadow-color: 30 40% 4%;

  --paper: #f6efe2;
  --paper-ink: #2a2219;
  --rust: #6f2e1b;
  --lagoon: #0f3634;
  --jungle: #1b2618;
  --night: #0e0c0a;

  --road-w: 84px;
  --edge-l: calc(var(--road-w) + var(--sc-gutter));
  --r: 4px;
}
@media (max-width: 760px) {
  :root { --road-w: 38px; --sc-gutter: 1rem; }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--sc-canvas);
  color: var(--sc-ink);
  font-family: var(--sc-font-text);
  line-height: var(--sc-leading-body);
  letter-spacing: 0.005em;
  overflow-x: clip;
}
img { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--sc-accent); color: var(--sc-accent-ink); padding: .6rem 1rem; border-radius: var(--r); font-weight: 600; }
.skip:focus-visible { top: 1rem; }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }

/* ---------------------------------------------------------------- type -- */
.t-display {
  font-family: var(--sc-font-display);
  font-weight: 760;
  line-height: var(--sc-leading-none);
  letter-spacing: var(--sc-track-tight);
  text-wrap: balance;
  margin: 0;
}
.t-display--xl { font-size: var(--sc-t-4xl); }
.t-display--lg { font-size: var(--sc-t-3xl); }
.t-body { font-size: var(--sc-t-base); color: var(--sc-ink-soft); max-width: 46ch; text-wrap: pretty; margin: 0; }
.t-lede { font-family: var(--sc-font-display); font-weight: 650; font-size: var(--sc-t-xl); line-height: 1.12; letter-spacing: var(--sc-track-snug); margin: 0; }
.ch__tag {
  display: inline-block; margin: 0 0 var(--sc-4);
  font-family: var(--sc-font-display); font-weight: 700; font-size: var(--sc-t-sm);
  letter-spacing: var(--sc-track-wide); text-transform: uppercase;
  color: var(--sc-accent-ink); background: var(--sc-accent); padding: .2em .6em; border-radius: var(--r);
  transform: rotate(-2deg);
}

/* ------------------------------------------------- signature: la route -- */
.route { position: absolute; left: 0; top: 0; width: var(--road-w); z-index: 20; pointer-events: none; }
.route__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.route__asphalt { fill: none; stroke: #2b251d; stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .35)); }
.route__line { fill: none; stroke: var(--sc-accent); stroke-width: 2.4; stroke-dasharray: 14 16; opacity: .9; }
.route__trace { fill: none; stroke: #0b0907; stroke-width: 5; stroke-linecap: round; opacity: .55; stroke-dasharray: 3 3; }
.route__future { fill: none; stroke: var(--sc-accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 12; opacity: .85; }
@media (max-width: 760px) {
  .route__asphalt { stroke-width: 14; }
  .route__line { stroke-width: 1.6; stroke-dasharray: 8 10; }
  .route__trace { stroke-width: 3; }
}

.moto {
  position: fixed; left: 0; top: 0; z-index: 35; pointer-events: none;
  width: 40px; height: 72px; margin: -36px 0 0 -20px;
  will-change: transform;
  filter: drop-shadow(0 4px 6px rgb(0 0 0 / .45));
}
.moto svg { display: block; width: 100%; height: 100%; }
@media (max-width: 760px) { .moto { width: 22px; height: 40px; margin: -20px 0 0 -11px; } }

.fin__cta {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font-family: var(--sc-font-display); font-weight: 750; font-size: var(--sc-t-sm);
  padding: 0 18px; min-height: 44px; border-radius: 10px; text-decoration: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), var(--sc-e1);
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .fin__cta:hover { background: #ffc844; } }
.fin__cta:active { transform: translateY(1px) scale(.98); }

/* ----------------------------------------------------------------- hero -- */
.hero__stage { overflow: hidden; background: var(--sc-canvas); }
.hero__plane { position: absolute; inset: 0; }
.hero__plane img, .hero__plate img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hero__plate { transform: translate3d(0, calc(var(--sc-p, 0) * -3vh), 0) scale(calc(1.04 + var(--sc-p, 0) * 0.07)); transform-origin: 62% 52%; will-change: transform; }
.hero__plate img { object-position: 50% 60%; }
.hero__sun {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60vmax 40vmax at 0% 38%, rgb(255 196 120 / .38), transparent 60%);
  opacity: calc(1 - var(--sc-p, 0) * 0.7);
  mix-blend-mode: screen;
}
.hero__wash { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(48% 42% at 14% 30%, rgb(250 226 196 / .78), rgb(250 226 196 / .42) 55%, transparent 80%);
  opacity: calc(1 - var(--sc-p, 0) * 2.2); }
@media (max-width: 760px) { .hero__wash { background: radial-gradient(90% 40% at 30% 24%, rgb(250 226 196 / .7), transparent 80%); } }
.hero__copy { color: #23150c; position: absolute; left: var(--edge-l); top: clamp(4rem, 9vh, 6.5rem); right: var(--sc-gutter); z-index: 3; }
.hero__copy-in { transform: translate3d(0, calc(var(--sc-p, 0) * -10vh), 0); width: min(60rem, 62vw); }
.hero__kicker { font-family: var(--sc-font-display); font-weight: 750; font-size: var(--sc-t-lg); letter-spacing: var(--sc-track-snug); color: #3a2414; margin: 0 0 var(--sc-3); }
.hero__title {
  font-family: var(--sc-font-display); font-weight: 800;
  font-size: clamp(3.4rem, 1.2rem + 6.4vw, 7.4rem); line-height: .9; letter-spacing: -0.04em;
  color: #23150c; margin: 0; text-wrap: balance; max-width: 9.6ch;
}
.hero__title em { font-style: normal; color: #8a3410; }
.hero__sub { margin: var(--sc-5) 0 0; font-size: var(--sc-t-lg); line-height: 1.4; color: #3a2414; max-width: 30ch; font-weight: 500; }
.hero__brush { z-index: 5; transform-origin: 0 100%; transform: translate3d(0, calc(var(--sc-p, 0) * 2vh), 0) scale(calc(1 + var(--sc-p, 0) * 0.2)); will-change: transform; }
.hero__brush img { object-position: 50% 60%; }
.hero__dust { position: absolute; inset: auto 0 0 0; height: 34vh; z-index: 6; pointer-events: none;
  background: linear-gradient(to top, var(--sc-canvas) 0%, rgb(23 20 15 / calc(.5 + var(--sc-p, 0) * .45)) 40%, transparent 100%); }
.hero__beat { position: absolute; z-index: 7; left: var(--edge-l); bottom: clamp(6rem, 16vh, 10rem); right: var(--sc-gutter); }
.hero__beat-in::before { content: ""; position: absolute; inset: -30vh -30vw -20vh calc(-1 * var(--edge-l)); z-index: -1; pointer-events: none;
  background: radial-gradient(70% 70% at 15% 70%, rgb(23 20 15 / .82), rgb(23 20 15 / .4) 55%, transparent 80%); }
.hero__beat-in { position: relative; }
.hero__line { font-family: var(--sc-font-display); font-weight: 760; font-size: var(--sc-t-3xl); line-height: .98; letter-spacing: var(--sc-track-tight); margin: 0; }
.hero__line--last { margin-top: var(--sc-4); font-size: var(--sc-t-xl); font-weight: 600; color: var(--sc-accent); letter-spacing: var(--sc-track-snug); }
@media (max-width: 760px) {
  .hero__copy { top: 5.5rem; }
  .hero__copy-in { width: auto; }
  .hero__title { font-size: clamp(2.8rem, 13vw, 4rem); }
  .hero__sub { font-size: var(--sc-t-base); max-width: 24ch; }
  .hero__brush { display: none; }
  .hero__beat { bottom: 7.5rem; }
}

/* ----------------------------------------------------------------- carte -- */
.carte { background: var(--sc-canvas); padding: var(--sc-section) var(--sc-gutter) var(--sc-section) var(--edge-l); }
.carte__wrap { max-width: var(--sc-maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(16rem, 1fr) 2.4fr; grid-template-areas: "head fig" "card fig"; gap: var(--sc-6) var(--sc-8); align-items: start; }
.carte__head { grid-area: head; }
.carte__fig { grid-area: fig; margin: 0; }
.carte__card { grid-area: card; align-self: end; border-top: 1px solid var(--sc-hairline-strong); padding-top: var(--sc-4); min-height: 7.5rem; }
.carte__card-name { font-family: var(--sc-font-display); font-weight: 750; font-size: var(--sc-t-xl); line-height: 1.05; margin: 0 0 var(--sc-2); }
.carte__card-note { margin: 0; color: var(--sc-ink-soft); }
.carte__card a { color: var(--sc-accent); text-underline-offset: .2em; }
.carte__map { width: 100%; height: auto; display: block; overflow: visible; }
.land { fill: #2c261e; stroke: #17140f; stroke-width: .5; transition: fill 160ms var(--sc-ease-out); }
.land--visited { fill: #b4532c; cursor: pointer; }
.land.is-hot { fill: var(--sc-accent); }
.pin { cursor: pointer; }
.pin circle.pin__dot { fill: var(--sc-accent); stroke: #17140f; stroke-width: 2; }
.pin circle.pin__ring { fill: none; stroke: var(--sc-accent); stroke-width: 1.5; opacity: .6; transform-box: fill-box; transform-origin: center; animation: ping 2.4s var(--sc-ease-out) infinite; }
.pin text { font-family: var(--sc-font-display); font-weight: 750; font-size: 15px; fill: var(--sc-ink); paint-order: stroke; stroke: #17140f; stroke-width: 4px; stroke-linejoin: round; }
.pin:focus-visible { outline: none; }
.pin:focus-visible circle.pin__dot { stroke: var(--sc-ink); stroke-width: 3; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
.carte__legend { display: flex; flex-wrap: wrap; gap: var(--sc-5); margin-top: var(--sc-4); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }
.dot--visited { background: #b4532c; }
@media (max-width: 900px) {
  .carte__wrap { grid-template-columns: 1fr; grid-template-areas: "head" "fig" "card"; }
}

/* -------------------------------------------------------------- polaroid -- */
.pola {
  position: relative; margin: 0; background: var(--paper); color: var(--paper-ink);
  padding: 10px 10px 0; border-radius: 2px;
  box-shadow: var(--sc-e2);
}
.pola img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 1px; }
.pola__caption { display: block; font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-sm); line-height: 1.25; padding: 12px 4px 16px; }
.pola::before { content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; margin-left: -46px;
  background: rgb(246 214 140 / .62); transform: rotate(-4deg); box-shadow: 0 1px 2px rgb(0 0 0 / .15); }

/* -------------------------------------------------------------- voyages -- */
.ch--voyages { background: var(--rust); color: var(--sc-ink); }
.ch__stage { overflow: hidden; display: flex; align-items: center; background: var(--rust); }
.rail { display: flex; align-items: center; gap: clamp(2rem, 4vw, 4.5rem); padding: 0 var(--sc-gutter) 0 var(--edge-l); width: max-content; }
.rail__lead { width: clamp(18rem, 34vw, 32rem); flex: none; }
.rail__lead .t-body { margin-top: var(--sc-5); color: #f0d9c4; }
.ch--voyages .pola { width: clamp(14rem, 23vw, 21rem); flex: none; }
.pola--a { transform: rotate(-3deg) translateY(-3vh); }
.pola--b { transform: rotate(2.5deg) translateY(4vh); }
.pola--c { transform: rotate(-1.5deg) translateY(-5vh); }
@media (prefers-reduced-motion: no-preference) {
  .ch--voyages .pola { opacity: calc(.55 + min(1, var(--sc-p, 0) * 4) * .45); }
}

/* -------------------------------------------------------------- silence -- */
.silence { background: var(--night); min-height: clamp(4.5rem, 10svh, 8rem); display: grid; place-items: center; padding: 0 var(--sc-gutter) 0 var(--edge-l); }
.silence__line { font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-lg); color: var(--sc-ink-soft); margin: 0; letter-spacing: var(--sc-track-snug); }

/* ---------------------------------------------------- prochaine aventure -- */
.ch--next { background: var(--night); }
.next__stage { overflow: hidden; background: var(--night); }
.next__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.next__img { object-fit: cover; object-position: 50% 50%; transform: scale(calc(1.14 - var(--sc-p, 0) * 0.12)); transform-origin: calc(var(--vp-x) * 1%) calc(var(--vp-y) * 1%); will-change: transform; }
.next__scrim { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(62% 78% at 0% 8%, rgb(14 12 10 / .9), rgb(14 12 10 / .55) 45%, transparent 78%), radial-gradient(60% 52% at 0% 100%, rgb(14 12 10 / .94), rgb(14 12 10 / .6) 50%, transparent 78%); }
@media (max-width: 760px) { .next__scrim { background: linear-gradient(to bottom, rgb(14 12 10 / .95) 0%, rgb(14 12 10 / .8) 34%, rgb(14 12 10 / .3) 50%, transparent 56%, rgb(14 12 10 / .55) 66%, rgb(14 12 10 / .94) 86%); } }
.next__content {
  position: absolute;
  inset: clamp(2rem, 9svh, 8rem) var(--sc-gutter) clamp(1.5rem, 18svh, 13rem) var(--edge-l);
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  text-shadow: 0 2px 18px rgb(14 12 10 / .65);
  pointer-events: none;
}
.next__heading .t-display { font-size: clamp(2.6rem, min(11vw, 14svh), 8.6rem); }
.next__details { max-width: 30rem; }
.next__details .t-body { margin-top: var(--sc-3); color: #e2d6c4; }
.next__details a { pointer-events: auto; }
.next__details::before {
  content: "";
  position: absolute;
  inset: 44% 0 calc(-1 * clamp(1.5rem, 18svh, 13rem)) calc(-1 * var(--edge-l));
  z-index: -1;
  background: radial-gradient(70% 95% at 5% 100%, rgb(14 12 10 / .93), rgb(14 12 10 / .52) 60%, transparent 95%);
}

/* --------------------------------------------------------------- vidéos -- */
.videos { background: var(--sc-canvas); padding: var(--sc-section) var(--sc-gutter) var(--sc-section) var(--edge-l); }
.videos__wrap { max-width: var(--sc-maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.8fr; gap: var(--sc-8); align-items: start; }
.videos__wrap header .t-body { margin-top: var(--sc-4); }
.tapes { list-style: none; margin: 0; padding: 0; }
.tape { display: grid; grid-template-columns: clamp(6rem, 11vw, 9rem) 1fr; gap: var(--sc-5); align-items: center; padding: var(--sc-4) 0; border-top: 1px solid var(--sc-hairline-strong); }
.tape:last-child { border-bottom: 1px solid var(--sc-hairline-strong); }
.tape img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); filter: saturate(.85); }
.tape__ep { margin: 0; font-size: var(--sc-t-xs); letter-spacing: var(--sc-track-wide); text-transform: uppercase; color: var(--sc-ink-soft); }
.tape__title { margin: 2px 0 2px; font-family: var(--sc-font-display); font-weight: 720; font-size: var(--sc-t-xl); line-height: 1.08; letter-spacing: var(--sc-track-snug); }
.tape__note { margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.tape--next .tape__ep { color: var(--sc-accent); }
@media (max-width: 860px) { .videos__wrap { grid-template-columns: 1fr; gap: var(--sc-6); } }

/* ------------------------------------------------------------------ fin -- */
.fin__stage { overflow: hidden; background: var(--night); }
.fin__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fin__scrim { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(75% 70% at 10% 78%, rgb(14 12 10 / .86), rgb(14 12 10 / .3) 60%, transparent 85%); }
.fin__sign { position: absolute; left: var(--edge-l); right: var(--sc-gutter); bottom: clamp(6rem, 15vh, 10rem); max-width: 34rem; z-index: 3; }
.fin__sign .t-body { margin: var(--sc-4) 0 var(--sc-6); color: #e2d6c4; }
.fin__cta { min-height: 52px; padding: 0 26px; font-size: var(--sc-t-base); }
.fin__foot { position: absolute; left: var(--edge-l); right: var(--sc-gutter); bottom: 2rem; z-index: 3; display: flex; justify-content: space-between; gap: var(--sc-4); font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.fin__foot p { margin: 0; }
.fin__foot a { color: var(--sc-ink); text-underline-offset: .2em; }
@media (max-width: 760px) { .fin__foot { flex-direction: column; gap: 2px; bottom: 2rem; } .fin__sign { bottom: 7rem; } }

/* ---------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .hero__plate, .hero__brush, .hero__copy-in, .next__img { transform: none !important; }
  .pin circle.pin__ring { animation: none; opacity: 0; }
  .moto { display: none; }
}

/* Point de fuite où la moto quitte la scène. */
.ch--next { --vp-x: 57; --vp-y: 63; }
@media (max-width: 760px) { .ch--next { --vp-x: 55; --vp-y: 63; } }
@media (max-width: 760px) {
  .fin__img { object-position: 70% 50%; }
  .fin__scrim { background: linear-gradient(to bottom, transparent 18%, rgb(14 12 10 / .55) 40%, rgb(14 12 10 / .9) 62%, rgb(14 12 10 / .96) 100%); }
}

/* Big Shoulders is condensed: more size, looser tracking for display;
   small UI and captions go to Overpass, which holds up at small sizes. */
.t-display, .hero__title, .hero__line { letter-spacing: -0.01em; }
.t-display--xl { font-size: clamp(3.9rem, 2.2rem + 7.6vw, 8.6rem); }
.t-display--lg { font-size: clamp(3.2rem, 2.2rem + 4.8vw, 5.8rem); }
.hero__title { font-size: clamp(3.9rem, 1.4rem + 7.4vw, 8.5rem); max-width: 10ch; }
.hero__line { max-width: 18ch; font-size: clamp(2.5rem, 1.25rem + 4vw, 5.6rem); text-wrap: balance; }
.hero__line--last { max-width: 46ch; font-family: var(--sc-font-text); font-size: clamp(1rem, .8rem + 1vw, 1.75rem); font-weight: 650; line-height: 1.35; letter-spacing: 0; }
.hero__kicker, .ch__tag, .pola__caption, .fin__cta, .tape__ep, .silence__line, .carte__card-name { font-family: var(--sc-font-text); }
.pola__caption { font-style: italic; font-weight: 500; }
@media (max-width: 760px) { .hero__title { font-size: clamp(3.2rem, 15vw, 4.6rem); } }

/* Navigation commune */
.site-header {
  position: absolute;
  inset: max(clamp(1rem, 3.3svh, 2.75rem), env(safe-area-inset-top)) var(--sc-gutter) auto var(--edge-l);
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.site-nav {
  display: flex;
  gap: clamp(.1rem, .65vw, .8rem);
  margin-inline-start: auto;
  padding: .25rem;
  border: 1px solid rgb(255 240 210 / .16);
  border-radius: 14px;
  background: #1d1913;
  box-shadow: var(--sc-e2);
}
.site-nav a, .site-home {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding-inline: clamp(.45rem, 1.1vw, 1.5rem);
  border-radius: 9px;
  color: var(--sc-ink);
  font-size: var(--sc-t-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-home {
  display: inline-flex;
  gap: .45rem;
  padding: .25rem .8rem .25rem .45rem;
  background: #1d1913;
}
.site-home img { width: 42px; height: 42px; object-fit: cover; }
.site-nav a:hover, .site-home:hover { color: var(--sc-accent); }
.site-nav a[aria-current="page"] { background: var(--sc-accent); color: var(--sc-accent-ink); }
.text-link { display: inline-block; color: var(--sc-accent); font-weight: 750; margin-top: 1rem; text-underline-offset: .2em; }

/* Réseaux près de la présentation */
.social-icons { display: flex; gap: .5rem; padding: 0; margin: clamp(.7rem, 2svh, 1.5rem) 0 0; list-style: none; }
.social-icons a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgb(255 240 210 / .24);
  border-radius: 10px;
  background: #1d1913;
  color: var(--sc-ink);
}
.social-icons a:hover { border-color: var(--sc-accent); color: var(--sc-accent); }
.social-icons svg { width: 24px; height: 24px; }
.hero__brush { pointer-events: none; }

/* Projet au centre du paysage et invitation à défiler */
.hero { position: relative; }
.hero__intro { position: absolute; inset: 0 0 auto; z-index: 8; height: 100svh; pointer-events: none; }
.hero__intro a { pointer-events: auto; }
.hero-project {
  position: absolute;
  inset: 58% auto auto 50%;
  translate: -50% -50%;
  display: grid;
  grid-template-columns: clamp(6rem, 8vw, 12rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.75rem, 1.5vw, 1.75rem);
  width: min(48rem, calc(100% - 2 * var(--edge-l)));
  padding: .7rem clamp(1rem, 2vw, 2rem) .7rem .7rem;
  border: 1px solid rgb(255 240 210 / .26);
  border-radius: 14px;
  background: #1d1913;
  color: var(--sc-ink);
  box-shadow: var(--sc-e3);
  text-decoration: none;
}
.hero-project:hover { border-color: var(--sc-accent); }
.hero-project img { width: 100%; height: clamp(4.5rem, 9svh, 8rem); object-fit: cover; border-radius: 7px; }
.hero-project__copy { display: grid; gap: .35rem; }
.hero-project__label { color: var(--sc-accent); font-size: .73rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.hero-project__title { font-family: var(--sc-font-display); font-size: clamp(2rem, 2.8vw, 3.6rem); font-weight: 800; line-height: 1; }
.hero-project__arrow { color: var(--sc-accent); font-size: 1.5rem; }
.hero__scroll {
  position: absolute;
  inset: auto auto max(1.5rem, 6svh) 50%;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .25rem .85rem .25rem .3rem;
  border: 1px solid rgb(255 240 210 / .23);
  border-radius: 999px;
  background: #1d1913;
  color: var(--sc-ink);
  font-size: var(--sc-t-sm);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.hero__scroll:hover { color: var(--sc-accent); border-color: var(--sc-accent); }
.back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(255 240 210 / .25);
  border-radius: 50%;
  background: #1d1913;
  color: var(--sc-accent);
  box-shadow: var(--sc-e2);
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: var(--sc-accent); color: var(--sc-accent-ink); }
.back-to-top svg { width: 22px; height: 22px; }
.hero__arrow { order: -1; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sc-accent); color: var(--sc-accent-ink); font-size: 1.15rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero__arrow { animation: route-hint 2.4s ease-in-out 3; }
}
@keyframes route-hint { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(3px); } }

/* Carnet des aventures */
.aventures { padding: var(--sc-section) var(--sc-gutter) var(--sc-section) var(--edge-l); background: var(--lagoon); }
.aventures__wrap { max-width: var(--sc-maxw); margin-inline: auto; }
.aventures__head .t-body { margin-top: var(--sc-4); color: #cfe0d8; }
.aventures__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 3rem); padding: 0; margin: clamp(2rem, 7vh, 5rem) 0 0; list-style: none; }
.aventure {
  overflow: hidden;
  border-radius: var(--r);
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: var(--sc-e2);
}
.aventure:target { outline: 3px solid var(--sc-accent); outline-offset: 4px; }
.aventure__link { display: block; color: inherit; text-decoration: none; }
.aventure__link:focus-visible { outline-offset: -4px; }
.aventure__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.aventure__caption { padding: clamp(.85rem, 2vw, 1.65rem); }
.aventure__link .aventure__caption { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.aventure__title, .trip-grid h3 { font-family: var(--sc-font-display); font-size: var(--sc-t-xl); font-weight: 750; line-height: 1.08; margin: 0; }
.aventure__arrow, .aventure__link:hover .aventure__title { color: var(--rust); }
.aventure__caption p { margin: .6rem 0 0; max-width: 45ch; }

.aventures--preview .aventures__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}
.aventures--preview .aventures__list {
  grid-template-columns: repeat(2, minmax(0, 18rem));
  gap: clamp(.9rem, 3vw, 2.5rem);
  margin: 1rem 0;
}
.aventure-preview .pola { padding: 8px 8px 0; color: var(--paper-ink); }
.aventure-preview:nth-child(1) { rotate: -2deg; }
.aventure-preview:nth-child(2) { rotate: 2deg; }
.aventure-preview .aventure__img { aspect-ratio: 4 / 3; }
.aventure-preview .aventure__caption { padding: .75rem .25rem; }
.aventure-preview .aventure__title { font-size: clamp(1rem, 2vw, 1.7rem); }

/* Pages du carnet */
.inner-page { --edge-l: var(--sc-gutter); }
.page-hero { position: relative; isolation: isolate; min-height: 74svh; display: grid; align-items: end; padding: 9rem var(--sc-gutter) clamp(3rem, 10svh, 7rem); }
.page-hero__img, .page-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero__img { z-index: -2; object-fit: cover; }
.page-hero::after { content: ""; z-index: -1; background: linear-gradient(to top, rgb(14 12 10 / .97), rgb(14 12 10 / .55) 42%, rgb(14 12 10 / .12) 80%); }
.page-hero__copy, .page-content { width: 100%; max-width: var(--sc-maxw); margin-inline: auto; }
.page-hero__copy .t-body { margin-top: 1rem; color: var(--sc-ink); }
.page-hero__action { margin-top: 1.25rem; }
.page-content { padding: var(--sc-section) var(--sc-gutter); }
.page-content--paper { max-width: none; background: var(--paper); color: var(--paper-ink); }
.page-content--paper :is(.t-body, .text-link) { color: var(--paper-ink); }
.page-content .t-body { margin-top: 1rem; }
.about-story > .t-body {
  max-width: 54rem;
  margin: 0 auto;
  line-height: 1.65;
}
.about-story > .t-body + .t-body { margin-top: 1.65rem; }
.about-story__photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.5rem, 2vw, 1rem);
  max-width: 32rem;
  margin: 2.5rem auto 1.75rem;
}
.about-story__photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.about-story .text-link { margin-top: 0; }
.trip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 4vw, 3rem); margin-top: 2.5rem; }
.trip-grid .pola { padding-bottom: .9rem; }
.trip-grid .pola:target { outline: 3px solid var(--sc-accent); outline-offset: 4px; }
.trip-grid img { aspect-ratio: 4 / 3; }
.trip-grid h3 { margin: .9rem .35rem .35rem; }
.trip-grid p { margin: 0 .35rem; font-size: var(--sc-t-sm); }
.page-foot { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem var(--sc-gutter); border-top: 1px solid var(--sc-hairline); color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.page-foot a { color: var(--sc-ink); text-underline-offset: .2em; }

@media (min-width: 761px) and (max-height: 900px) {
  .hero-project { top: 73%; }
}
@media (max-width: 760px) {
  .rail__lead { width: min(18rem, calc(100vw - var(--edge-l) - var(--sc-gutter))); }
  .site-nav { width: 100%; justify-content: space-evenly; gap: 0; }
  .site-nav a { padding-inline: .25rem; font-size: clamp(.64rem, 2.55vw, .9rem); }
  .hero-project {
    inset: auto var(--sc-gutter) clamp(6.25rem, 15svh, 8rem) var(--edge-l);
    translate: none;
    width: auto;
    grid-template-columns: clamp(3.25rem, 15vw, 5rem) minmax(0, 1fr) auto;
    gap: .6rem;
    padding: .5rem .65rem .5rem .5rem;
  }
  .hero-project img { height: clamp(3.2rem, 8svh, 4.25rem); }
  .hero-project__title { font-size: clamp(1.55rem, 6vw, 2.1rem); }
  .hero-project__label { font-size: .66rem; }
  .hero__scroll { inset: auto auto max(1.3rem, 5svh) var(--edge-l); translate: none; }
  .aventures__list, .trip-grid { grid-template-columns: 1fr; }
  .trip-grid { gap: 2rem; }
}
@media (max-width: 760px) and (max-height: 680px) {
  .hero__copy { top: 4.8rem; }
  .hero__title { font-size: clamp(2.45rem, 12vw, 3.75rem); }
  .hero__kicker { margin-bottom: .35rem; }
  .hero__sub { margin-top: .65rem; }
}
@media (orientation: landscape) and (max-height: 540px) {
  .hero__copy { top: 2.75rem; }
  .hero__title { font-size: clamp(2.4rem, 7vw, 4rem); }
  .hero-project { inset: auto var(--sc-gutter) 5.5rem auto; translate: none; width: min(38%, 26rem); grid-template-columns: 3rem minmax(0, 1fr) auto; gap: .5rem; }
  .hero-project img { height: 3rem; }
  .hero-project__title { font-size: 1.5rem; }
  .hero__scroll { inset: auto var(--sc-gutter) 1.25rem auto; translate: none; }
  .site-nav { width: auto; }
}

@media (max-width: 360px) {
  body:not(.inner-page) .site-header {
    left: calc(var(--road-w) + .25rem);
    right: .5rem;
  }
  .site-nav a { padding-inline: .125rem; }
}

/* Contact */
.contact-dialog {
  width: min(30rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgb(255 240 210 / .24);
  border-radius: 14px;
  background: var(--sc-surface);
  color: var(--sc-ink);
  box-shadow: var(--sc-e3);
}
.contact-dialog::backdrop { background: rgb(14 12 10 / .75); }
.contact-dialog .t-display { font-size: var(--sc-t-2xl); }
.contact-dialog p { color: var(--sc-ink-soft); margin: .55rem 0 1rem; }
.contact-dialog a { color: var(--sc-accent); text-underline-offset: .18em; overflow-wrap: anywhere; }
.contact-dialog__close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--sc-canvas);
  color: var(--sc-ink);
  font: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}
.contact-dialog__form { display: grid; gap: .45rem; }
.contact-dialog__form :is(input, textarea) {
  width: 100%;
  padding: .65rem;
  border: 1px solid rgb(255 240 210 / .24);
  border-radius: 6px;
  background: var(--sc-canvas);
  color: var(--sc-ink);
  font: inherit;
}
.contact-dialog__form textarea { resize: vertical; }
.contact-dialog__form label { font-weight: 700; }
.contact-dialog__form label:not(:first-child) { margin-top: .45rem; }
.contact-dialog__form p { margin: .4rem 0; font-size: var(--sc-t-sm); }
.contact-dialog__form button { justify-self: start; border: 0; cursor: pointer; }

@media (max-width: 760px) {
  .aventures--preview .aventures__wrap { grid-template-columns: 1fr; }
  .next__heading .t-display { font-size: clamp(2.8rem, min(13vw, 11svh), 4.7rem); }
}
@media (max-width: 400px) and (orientation: portrait) {
  .site-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__copy { top: max(8.1rem, calc(118px + env(safe-area-inset-top))); }
}
@media (max-height: 500px) {
  .next__content { inset-block: 1.4rem; }
  .next__heading .ch__tag { margin-bottom: .5rem; }
  .hero__beat { bottom: 2.25rem; }
}

.story-card-link { display: block; color: inherit; text-decoration: none; }
.story-card-link:hover :is(h3, .pola__caption, .story-card-cta) { text-decoration: underline; }
.story-card-link:focus-visible { outline-offset: 4px; }

.story-card-cta {
  display: block;
  margin: 0 .35rem;
  padding-top: .85rem;
  font-weight: 700;
}

.aventure .story-card-cta { margin: 0; }

.project-motivation, .story-motivation { padding-bottom: 0; }

.social-updates__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-updates__card {
  align-self: start;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--sc-hairline);
  border-radius: .75rem;
}

.social-updates__card h3 { margin: 0 0 .75rem; }
.social-updates__card a { color: inherit; text-underline-offset: .2em; }

.social-updates__preview {
  display: block;
  width: 100%;
  margin-bottom: .75rem;
  border: 0;
  border-radius: .4rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.social-updates__preview--instagram {
  aspect-ratio: auto;
  height: clamp(25rem, 70vw, 38rem);
  background: #fff;
}
