/* copié de maquettes/oiseaux-intro par scripts/site.py */
.voyage { --or: #a8823c; --doux: #7a6a55; font-family: "Cormorant Garamond", Georgia, serif; }

  /* 720vh : 520vh pour le vol, puis un écran de plus où le bouvreuil reste posé */
  html { scroll-snap-type: y proximity; }  /* arrêt doux, une seule fois, quand le bouvreuil est posé */
  .voyage { height: 720vh; position: relative; }
  .arret { position: absolute; left: 0; width: 1px; height: 1px; top: calc(100% - 200vh); scroll-snap-align: start; }
  .scene { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 900px; perspective-origin: 50% 46%;
    background: radial-gradient(ellipse at 50% 42%, #fbf7ee 0%, var(--papier) 55%, #e6dcc6 100%); }
  .scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
    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'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

  .titre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 16px; }
  .titre h1 { margin: 0; font-weight: 500; font-size: clamp(64px, 13vw, 190px); line-height: .95; letter-spacing: .01em; }
  .titre h1 i { color: var(--or); }
  .titre p { margin: 18px 0 0; font-size: clamp(18px, 2.2vw, 24px); color: var(--doux); font-style: italic; }
  .filet { width: 120px; height: 1px; margin: 22px auto 0; background: linear-gradient(90deg, transparent, var(--or), transparent); }

  .oiseau { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; width: var(--w); will-change: transform, opacity, filter; opacity: 0; pointer-events: none; }
  .oiseau img { display: block; width: 100%; height: auto; position: relative; }
  /* ombre portée derrière le dernier oiseau, comme sur les planches en relief : une copie sombre et floue qui glisse à l opposé de la souris */
  /* le dernier oiseau en deux plans : la partie haute (mâle et rameau de mélèze) en avant, le reste derrière */
  .oiseau.dernier { transform-style: preserve-3d; }
  .oiseau .fond { position: absolute; left: 0; top: 0; transform: translateZ(40px) scale(.956); }  /* .956 = (900 - 40) / 900 : même taille à l écran au repos */
  .oiseau .ombre { position: absolute; left: 0; top: 0; filter: brightness(0) sepia(1) saturate(2) hue-rotate(-10deg) blur(7px); opacity: 0; }

  .fin { position: absolute; z-index: 9000; left: 0; right: 0; bottom: 9vh; text-align: center; opacity: 0; transform: translateY(12px); padding: 0 16px; }
  .fin h2 { margin: 0 0 14px; font-weight: 500; font-size: clamp(26px, 3.6vw, 40px); }
  .incliner { display: none; margin: 0 0 10px; font-size: 16px; color: var(--doux); letter-spacing: .06em; transition: opacity .8s; }
  @media (pointer: coarse) { .incliner { display: block; } }  /* seulement sur un écran tactile */
  .incliner.vu { opacity: 0; }
  .code { display: inline-flex; gap: 8px; background: #fffaf0; border: 1px solid #d8c8a6; border-radius: 999px; padding: 6px 6px 6px 20px; box-shadow: 0 8px 24px rgba(80, 60, 30, .12); max-width: 100%; }
  .code input { border: 0; background: none; font: inherit; font-size: 19px; width: 150px; min-width: 0; color: var(--encre); outline: none; text-transform: uppercase; }
  .code button { border: 0; border-radius: 999px; background: var(--encre); color: #fbf7ee; font: inherit; font-size: 18px; padding: 8px 20px; cursor: pointer; white-space: nowrap; }

  .indice { position: absolute; z-index: 9000; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 17px; color: var(--doux); text-align: center; letter-spacing: .08em; }
  .indice span { display: block; margin: 6px auto 0; width: 1px; height: 34px; background: linear-gradient(var(--doux), transparent); animation: descend 1.8s ease-in-out infinite; transform-origin: top; }
  @keyframes descend { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }


  @media (prefers-reduced-motion: reduce) {
    .voyage { height: auto; }
    .scene { position: relative; height: auto; min-height: 100vh; padding-bottom: 200px; }
    .oiseau, .indice { display: none; }
    .oiseau.dernier { display: block; position: relative; left: auto; top: auto; margin: 30px auto 0; opacity: 1; width: min(46vw, 240px); }
    .titre { position: relative; padding-top: 18vh; }
    .fin { opacity: 1; transform: none; }
  }
.titre .pose { position: relative; }
.titre .perche { position: absolute; width: .42em; bottom: .99em; left: -.16em; pointer-events: none; }
.titre .perche.retourne { transform: scaleX(-1); left: .26em; }
