/* La typographie garde ses retours à la ligne et ses espaces insécables. */
.motion-word, .motion-ink { display:inline-block; vertical-align:baseline; }
.motion-word { clip-path:inset(-.22em -.17em -.22em -.17em); }
#top .edition-heading h1 { animation:none; }
@media (prefers-reduced-motion:no-preference) {
  #top { --move-out:cubic-bezier(.16,.84,.18,1); }
  .motion-enter .motion-ink {
    animation:civic-typeset .78s var(--move-out) backwards;
    animation-delay:var(--beat,0ms);
  }
  @keyframes civic-typeset {
    from { transform:translateY(118%) rotate(4deg); opacity:.25; }
    to { transform:translateY(0) rotate(0); opacity:1; }
  }
  .edition-heading .edition-intro { animation:civic-caption .72s .16s var(--move-out) backwards; }
  @keyframes civic-caption { from { opacity:.25; transform:translateY(14px); } }
  .edition .street-card { animation:civic-contact-sheet .85s var(--move-out) backwards; }
  .edition .street-card:nth-child(2) { animation-delay:75ms; }
  .edition .street-card:nth-child(3) { animation-delay:150ms; }
  @keyframes civic-contact-sheet {
    from { clip-path:inset(17% 0 0); transform:translateY(12px); }
    to { clip-path:inset(0); transform:translateY(0); }
  }
  #top #main-nav {
    clip-path:inset(0 0 100%); transform:none;
    transition:clip-path .4s var(--move-out), opacity .24s ease, visibility 0s .4s;
  }
  #top #main-nav.open {
    clip-path:inset(0); transition:clip-path .52s var(--move-out), opacity .18s ease, visibility 0s;
  }
  #main-nav.open .menu-label { animation:civic-menu-line .52s var(--move-out) backwards; animation-delay:var(--beat); }
  @keyframes civic-menu-line {
    from { transform:translateY(.6em); clip-path:inset(0 0 95%); }
    to { transform:none; clip-path:inset(-.15em); }
  }
  #top #main-nav a::after { transition:translate .25s var(--move-out); }
  #top #main-nav a:is(:hover,:focus-visible)::after { translate:3px 0; }
  .news-grid .news-photo { overflow:hidden; }
  .site-header .nav-photo img { pointer-events:none; }
  @supports (animation-timeline:view()) {
    .edition .street-index { view-timeline-name:--contact-sheet; }
    .edition .street-image img {
      animation:civic-photo-travel linear both;
      animation-timeline:--contact-sheet; animation-range:exit 0% exit 100%;
    }
    @keyframes civic-photo-travel {
      from { transform:scale(1.025) translateY(0); }
      to { transform:scale(1.14) translateY(3%); }
    }
    @media (min-width:761px) and (min-height:540px) {
      .story-runway {
        position:relative; height:145svh; background:#192922;
        view-timeline-name:--visite;
      }
      #top .story-runway #ensemble {
        position:sticky; top:0; height:100svh; overflow:hidden; border-radius:0;
        background:#192922;
      }
      #top #ensemble::before { content:none; }
      #top #ensemble .human-photo {
        animation:civic-aperture linear both; animation-timeline:--visite;
        animation-range:entry 12% contain 76%;
      }
      #top #ensemble .human-photo::after {
        content:''; position:absolute; inset:0;
        background:linear-gradient(90deg,#12271be8,#12271b9c 40%,#12271b15 78%),linear-gradient(0deg,#15251c40,transparent 40%);
      }
      @keyframes civic-aperture {
        from { clip-path:inset(12% 8% 10% 28%); }
        to { clip-path:inset(0); }
      }
      #top #ensemble .human-story-copy {
        animation:civic-visit-copy linear both; animation-timeline:--visite;
        animation-range:contain 0% exit 45%;
      }
      @keyframes civic-visit-copy { from { transform:translateY(2.5svh); } to { transform:translateY(-5svh); } }
    }
    @media (max-width:760px) {
      #top #ensemble .human-photo {
        animation:civic-mobile-aperture linear both; animation-timeline:view();
        animation-range:entry 0% entry 88%;
      }
      @keyframes civic-mobile-aperture { from { clip-path:inset(4% 5%); } to { clip-path:inset(0); } }
    }
  }
}
@media (max-width:760px) {
  .motion-enter .motion-ink { animation-duration:.57s; }
}
@media print {
  .story-runway, #top .story-runway #ensemble { position:relative; height:auto; }
  .motion-ink { animation:none!important; }
}

/* Trois tirages à feuilleter dans l'atelier. */
#top #esprit.atelier { grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); gap:clamp(34px,6vw,94px); }
.gesture-choices { padding:0; margin:0; border:0; min-width:0; position:relative; }
.gesture-radio,.gesture-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.gesture-choices label {
  display:flex; align-items:center; gap:.8em; cursor:pointer;
  padding:13px 4px; min-height:48px; border-top:1px solid #b8c2ab; color:#4a5a4e;
  font-weight:500; font-size:clamp(17px,1.55vw,26px); letter-spacing:-.04em;
}
.gesture-choices label:last-child { border-bottom:1px solid #b8c2ab; }
.gesture-choices label::before {
  content:''; width:.62em; height:.62em; flex:none; border-radius:50%; border:1px solid #7f8b77;
}
.gesture-radio:checked + label { color:#182c20; }
.gesture-radio:checked + label::before { background:#234432; box-shadow:inset 0 0 0 2px var(--ivoire); }
.gesture-radio:focus-visible + label { outline:2px solid #385f3e; outline-offset:2px; }
.gesture-details { display:grid; }
.gesture-details p { grid-area:1/1; visibility:hidden; line-height:1.48; margin:19px 0; max-width:43ch; }
.atelier:has(#choix-visite:checked) .gesture-details [data-gesture=visite],
.atelier:has(#choix-aide:checked) .gesture-details [data-gesture=aide],
.atelier:has(#choix-rue:checked) .gesture-details [data-gesture=rue] { visibility:visible; }
.gesture-links { display:flex; align-items:center; flex-wrap:wrap; gap:14px 22px; }
.gesture-album { position:relative; min-width:0; padding:4% 5% 5%; }
#esprit .gesture-prints { position:relative; overflow:visible; background:transparent; touch-action:pan-y pinch-zoom; aspect-ratio:1.19; isolation:isolate; }
.gesture-print {
  position:absolute; inset:0; margin:0; padding:clamp(6px,1vw,15px); border:1px solid #cccdbd; background:#faf9ef;
  display:grid; grid-template-rows:minmax(0,1fr) auto; box-shadow:0 10px 24px #25352017;
  transform-origin:50% 83%; user-select:none;
}
#esprit .gesture-print img {
  position:static; inset:auto; width:100%; height:100%; min-height:0; object-fit:cover; clip-path:none; pointer-events:none;
}
.gesture-print figcaption { padding:10px 1px 0; font:italic clamp(16px,1.7vw,29px)/1.12 Georgia,serif; letter-spacing:-.035em; color:#2c4635; }
.gesture-print[data-stack="1"] { z-index:2; transform:rotate(4deg) translate(1.2%,-1.5%) scale(.98); }
.gesture-print[data-stack="2"] { z-index:1; transform:rotate(-4deg) translate(-1%,-1%) scale(.97); }
.gesture-print.is-front,.atelier:has(#choix-visite:checked) figure[data-gesture=visite],
.atelier:has(#choix-aide:checked) figure[data-gesture=aide],.atelier:has(#choix-rue:checked) figure[data-gesture=rue] { z-index:3; }
.gesture-next:not([hidden]) {
  display:grid; place-items:center; position:absolute; z-index:4; bottom:2%; right:2%; width:48px; height:48px;
  border-radius:50%; border:2px solid var(--ivoire); background:#254332; color:#fff; cursor:pointer; font:23px/1 sans-serif;
}
.gesture-next:focus-visible { outline:3px solid #557747; outline-offset:3px; }
@media (prefers-reduced-motion:no-preference) {
  .gesture-print { transition:transform .54s cubic-bezier(.22,.8,.22,1); }
  .gesture-print.is-front { animation:turn-print .52s var(--move-out); }
  @keyframes turn-print { from { transform:translate(4%,-1%) rotate(3deg); clip-path:polygon(0 0,36% 0,16% 100%,0 100%); } to { transform:none; clip-path:polygon(0 0,120% 0,100% 100%,0 100%); } }
  .gesture-details p { animation:civic-caption .34s var(--move-out); }
  .gesture-next span { transition:translate .2s; }
  .gesture-next:hover span { translate:3px 0; }
}
@media(max-width:760px) {
  #top #esprit.atelier { grid-template-columns:1fr; gap:0; }
  .atelier-copy { display:contents; }
  #top #esprit .atelier-copy h2 { grid-row:1; margin-bottom:18px; }
  .gesture-album { grid-row:2; width:min(100%,530px); margin:0 auto 12px; padding:2% 4% 4%; }
  #esprit .gesture-prints { aspect-ratio:1.65; }
  .gesture-choices { grid-row:3; }
  .gesture-details { grid-row:4; }
  .gesture-links { grid-row:5; }
  .gesture-print figcaption { padding-top:7px; }
}
