/* feetch : le voyage d'un souvenir. Sobre, fin, chaleureux. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip; color: var(--ink); background: var(--ivory);
  font-family: "Poppins", system-ui, sans-serif; font-size: 1rem; font-weight: 400; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
p, h1, h2, figure { margin: 0; }
h1, h2 { font-weight: 500; text-wrap: balance; }
em { font-style: italic; font-weight: 400; }
::selection { background: var(--amber-hi); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 10px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 90; padding: 10px 16px; border-radius: 999px; background: var(--forest); color: var(--ivory); text-decoration: none; }
.skip-link:focus { top: 16px; }
.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Navigation : fine, transparente sur la vidéo, voilée ensuite */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(20px, 3.4vw, 44px); color: var(--ivory); transition: color .5s var(--ease-out), background-color .5s var(--ease-out), padding .5s var(--ease-out), box-shadow .5s;
}
.nav.is-solid { color: var(--ink); padding-block: 12px; background: rgba(244, 239, 228, .78); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 1px 0 rgba(19, 33, 27, .06); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: 1.15rem; letter-spacing: -0.03em; }
.brand img { height: 22px; width: auto; transition: filter .5s; }
.nav:not(.is-solid) .brand img { filter: brightness(0) invert(95%) sepia(6%) saturate(300%); }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 34px); font-size: .86rem; }
.nav-links a { position: relative; text-decoration: none; opacity: .82; transition: opacity .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
@media (hover: hover) { .nav-links a:hover { opacity: 1; } .nav-links a:hover::after { transform: scaleX(1); } }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { height: 36px; min-width: 42px; padding: 0 10px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: 500 .78rem "Poppins", sans-serif; opacity: .8; cursor: pointer; transition: opacity .3s, transform .16s var(--ease-out); }
.lang:active { transform: scale(.95); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  background: var(--ivory); color: var(--forest); font-size: .84rem; font-weight: 500; transition: transform .16s var(--ease-out), background-color .4s, color .4s, box-shadow .4s;
}
.nav.is-solid .pill { background: var(--forest); color: var(--ivory); }
.pill:active { transform: scale(.97); }
.pill i { font-size: 1rem; transition: transform .4s var(--ease-out); }
@media (hover: hover) { .pill:hover i { transform: translate(2px, -2px); } }
.pill-lg { height: 54px; padding: 0 24px; font-size: 1rem; background: var(--g-amber); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 34px -16px rgba(199, 122, 44, .8); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .pill span { display: none; } .nav .pill { width: 38px; padding: 0; justify-content: center; } }

/* Ouverture */
.hero { padding: 12px; }
.hero-frame { position: relative; height: calc(100svh - 24px); min-height: 520px; border-radius: 28px; overflow: hidden; background: var(--forest-deep); isolation: isolate; }
.montage, .shot { position: absolute; inset: 0; }
.shot { opacity: 0; transition: opacity 1.8s var(--ease-io); }
.shot.is-on { opacity: 1; }
.shot img, .shot video, .scene-clip img, .scene-clip video { width: 100%; height: 100%; object-fit: cover; }
.shot.is-on img { animation: drift 9s linear both; }
@keyframes drift { from { transform: scale(1.1) translate3d(-1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(1%, -1%, 0); } }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11, 26, 20, .45) 0%, rgba(11, 26, 20, 0) 26%, rgba(11, 26, 20, 0) 45%, rgba(11, 26, 20, .78) 100%), radial-gradient(80% 60% at 0% 100%, rgba(11, 26, 20, .55), transparent 70%); }
.hero-copy { position: absolute; left: clamp(22px, 4vw, 56px); right: clamp(22px, 4vw, 56px); bottom: clamp(26px, 6vh, 60px); z-index: 2; color: var(--ivory); max-width: 44rem; }
.hero-title { font-size: clamp(2rem, 4.3vw, 3.9rem); line-height: 1.04; letter-spacing: -0.04em; }
.hero-title em { color: var(--amber-hi); }
.hero-sub { margin-top: 16px; max-width: 34ch; font-size: clamp(.95rem, 1.1vw, 1.05rem); color: rgba(244, 239, 228, .82); }
.hero-scroll { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: .84rem; text-decoration: none; color: rgba(244, 239, 228, .9); }
.hero-scroll::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.hero-scroll i { animation: nudge 2.2s var(--ease-io) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.seal { position: absolute; right: clamp(20px, 3.4vw, 44px); bottom: clamp(24px, 5vh, 52px); z-index: 2; width: clamp(96px, 9vw, 132px); height: auto; overflow: visible; }
.seal text { font: 500 13.5px "Poppins", sans-serif; letter-spacing: 3.1px; fill: rgba(244, 239, 228, .8); }
.seal { animation: spin 38s linear infinite; }
.seal-leaf { filter: brightness(0) invert(88%) sepia(40%) saturate(500%) hue-rotate(350deg); transform-origin: 100px 100px; animation: spin 38s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .seal { top: 76px; bottom: auto; width: 88px; } }

/* L'histoire : un écran qui reste en place, la scène change au scroll */
.story { position: relative; height: 440vh; }
.story-stage {
  position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); align-items: center;
  gap: clamp(28px, 5vw, 80px); padding: clamp(80px, 11vh, 110px) clamp(20px, 4vw, 56px) clamp(96px, 14vh, 130px);
}
.scene-media { position: relative; height: min(66vh, 640px); border-radius: 24px; overflow: hidden; background: var(--sand); box-shadow: 0 40px 80px -50px rgba(16, 36, 28, .55); }
.scene-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); pointer-events: none; }
.scene-clip { position: absolute; inset: 0; opacity: 0; transform: scale(1.05); transition: opacity 1.1s var(--ease-io), transform 1.8s var(--ease-out); }
.scene-clip.is-active { opacity: 1; transform: none; }
.scene-clip.is-active img { animation: drift 12s linear both; }
.scene-clip.has-video img, .shot.has-video img { display: none; }
.scene-texts { position: relative; min-height: 18rem; }
.scene-text { position: absolute; inset: 50% 0 auto; transform: translateY(-40%); opacity: 0; filter: blur(6px); pointer-events: none; transition: opacity .8s var(--ease-out), transform 1s var(--ease-out), filter .8s var(--ease-out); }
.scene-text.is-active { opacity: 1; transform: translateY(-50%); filter: none; pointer-events: auto; transition-delay: .15s; }
.caption { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; letter-spacing: .01em; color: var(--ink-soft); }
.caption i { color: var(--amber-deep); font-size: 1rem; }
.scene-title { margin-top: 14px; font-size: clamp(1.8rem, 2.9vw, 2.8rem); line-height: 1.08; letter-spacing: -0.035em; }
.scene-title em, .join-title em { background: var(--g-text-light); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.scene-detail { margin-top: 16px; max-width: 34ch; font-size: .97rem; color: var(--ink-soft); }

/* Le trajet : progression et menu discret */
.route { position: absolute; left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px); bottom: clamp(22px, 4vh, 40px); }
.route-line { position: absolute; left: 0; right: 0; top: -2px; width: 100%; height: 30px; overflow: visible; pointer-events: none; }
.route-line path { fill: none; stroke-linecap: round; }
.route-base { stroke: rgba(19, 33, 27, .22); stroke-width: 1.2; stroke-dasharray: .004 .008; }
.route-done { stroke: var(--forest); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.route ol { position: relative; list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; }
.route button { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 4px; border: 0; background: none; cursor: pointer; font: 500 .74rem "Poppins", sans-serif; color: var(--ink-soft); transition: color .4s; }
.route li:first-child button { align-items: flex-start; }
.route li:last-child button { align-items: flex-end; }
.route .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ivory); box-shadow: inset 0 0 0 1.5px rgba(19, 33, 27, .35); transition: background-color .4s, box-shadow .4s, transform .4s var(--ease-out); }
.route button[aria-current] { color: var(--ink); }
.route button[aria-current] .dot { background: var(--amber); box-shadow: 0 0 0 5px rgba(231, 167, 74, .22); transform: scale(1.1); }
.route button.is-done .dot { background: var(--forest); box-shadow: none; }
@media (hover: hover) { .route button:hover { color: var(--ink); } }

@media (max-width: 900px) {
  .story-stage { grid-template-columns: 1fr; align-content: start; gap: 22px; padding-top: 76px; }
  .scene-media { height: 46svh; border-radius: 20px; }
  .scene-texts { min-height: 15rem; }
  .scene-text { inset: 0 0 auto; transform: translateY(12px); }
  .scene-text.is-active { transform: none; }
  .scene-title { font-size: clamp(1.55rem, 6.4vw, 2rem); }
  .route button span:not(.dot) { font-size: .68rem; }
}

/* Petite ligne pour les commerçants */
.merchant-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; padding: 8px 20px 0; font-size: .9rem; color: var(--ink-soft); }
.merchant-line a { display: inline-flex; align-items: center; gap: 6px; color: var(--forest); font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .45s var(--ease-out); }
@media (hover: hover) { .merchant-line a:hover { background-size: 0 1px; background-position: 100% 100%; } }

/* Demain */
.tomorrow { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(28px, 6vw, 96px); max-width: 1240px; margin: 0 auto; padding: clamp(110px, 18vh, 180px) clamp(20px, 4vw, 56px); }
.bag { position: relative; aspect-ratio: 4 / 3.4; border-radius: 24px; overflow: hidden; background: var(--sand); box-shadow: 0 40px 80px -50px rgba(16, 36, 28, .5); }
.bag img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease-out); }
.bag.is-in img { transform: none; }
.future { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.future li { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--ink-soft); }
.future i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 1.05rem; color: var(--forest); box-shadow: inset 0 0 0 1px rgba(19, 33, 27, .14); }
@media (max-width: 900px) { .tomorrow { grid-template-columns: 1fr; } .future { grid-template-columns: 1fr; } }

/* Parole aux voyageurs (masquée tant qu'il n'y a pas de citation) */
.quotes { max-width: 1000px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px) clamp(90px, 14vh, 140px); }
.quotes-list { display: grid; gap: 36px; margin-top: 36px; }
.quote blockquote { margin: 0; max-width: 32ch; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.35; }
.quote figcaption { margin-top: 10px; font-size: .85rem; color: var(--ink-soft); }

/* Participer */
.join {
  position: relative; margin: 0 12px 12px; padding: clamp(90px, 16vh, 160px) clamp(22px, 4vw, 56px); border-radius: 28px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; color: var(--ivory); background: var(--g-forest);
}
.join::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 100%; width: 70vmax; height: 70vmax; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(231, 167, 74, .25), transparent 60%); }
.join-title { max-width: 18ch; font-size: clamp(2rem, 3.8vw, 3.3rem); line-height: 1.06; letter-spacing: -0.04em; }
.join-title em { background: var(--g-text-dark); -webkit-background-clip: text; background-clip: text; }
.join .scene-detail { color: rgba(244, 239, 228, .75); margin: 0; }
.join .pill-lg { margin-top: 10px; }
.social { display: flex; gap: 10px; margin-top: 8px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(244, 239, 228, .25); transition: background-color .3s, color .3s, transform .16s var(--ease-out); }
.social a:active { transform: scale(.95); }
@media (hover: hover) { .social a:hover { background: var(--ivory); color: var(--forest); } }

/* Pied de page */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 26px clamp(20px, 4vw, 56px) 34px; font-size: .84rem; color: var(--ink-soft); }
.footer .brand { color: var(--forest); font-size: 1.05rem; }
.footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.footer a { text-decoration: none; }
@media (hover: hover) { .footer a:hover { color: var(--forest); } }
.footer .lang { height: 30px; }

/* Apparitions douces */
.js [data-rise] { opacity: 0; transform: translateY(18px); filter: blur(5px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-rise].is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { transform: none; filter: none; transition: opacity .4s ease; }
  .shot.is-on img, .scene-clip.is-active img, .seal, .seal-leaf, .hero-scroll i { animation: none; }
  .scene-clip, .scene-text { transition-duration: .3s; }
}

/* Trajet Trouver → Maison : 4 étapes à égale distance, ligne tracée par le script entre les centres des points */
.route ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.route li { display: flex; justify-content: center; }
.route li:first-child button, .route li:last-child button { align-items: center; }
.route-line { top: 0; height: 100%; }
.route-base { stroke-width: 1.5; stroke-dasharray: 2 6; }
.route-done { stroke-width: 2; }
@media (min-width: 901px) { .route ol { margin-inline: -10%; } }
