/* Les mouvements suivent les photographies. Les informations pratiques restent fixes. */
.tour-frame { display: block; position: relative; overflow: hidden; }
.product-photo { overflow: hidden; }
.contact-label { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  ::view-transition-group(*) { animation-duration: 340ms; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; }
  ::view-transition-group(photo-saison) { animation-timing-function: cubic-bezier(.2,.75,.25,1); }
  ::view-transition-old(photo-saison), ::view-transition-new(photo-saison) {
    height: 100%;
    object-fit: cover;
  }

  .nursery-tour figure[data-arriving]:not([hidden]) .tour-frame > img {
    animation: entrer-dans-la-serre 780ms cubic-bezier(.16,.74,.25,1) both;
  }
  .nursery-tour figure[data-arriving]:not([hidden]) .tour-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(108deg, transparent 30%, rgb(251 248 238 / 11%) 48%, transparent 66%);
    animation: lumiere-verriere 820ms ease-out both;
  }
  .nursery-tour figure[data-arriving]:not([hidden]) figcaption,
  .small-nav[open] nav { animation: legende 210ms ease-out; }
  .arrival-hours summary::after { transition: transform 180ms ease; }

  .wide-nav a {
    background: linear-gradient(currentColor,currentColor) left .4rem bottom .35em / 0 2px no-repeat;
    transition: background-size 200ms ease;
  }
  .wide-nav a:is(:hover,:focus-visible,[aria-current]) {
    text-decoration: none;
    background-size: calc(100% - .8rem) 2px;
  }
  .product-photo img, .film-playmark, .calendar-link span, .season-action {
    transition: transform 320ms cubic-bezier(.2,.7,.25,1), box-shadow 240ms ease;
  }
  .season-card:focus-visible .season-action, .calendar-link:focus-visible span { transform: translateX(3px); }
  .film-start:focus-visible .film-playmark { box-shadow: 0 0 0 .35rem rgb(255 255 255 / 24%); }
  .photo-viewer[open]::backdrop { animation: tirer-le-rideau 180ms ease-out; }

  @media (hover: hover) and (pointer: fine) {
    .contact-label { transition: transform 130ms ease-out; transform: translate(var(--contact-x,0), var(--contact-y,0)); }
    .product-photo:hover img { transform: scale(1.035); }
    .season-card:hover .season-action, .calendar-link:hover span { transform: translateX(4px); }
    .film-start:hover .film-playmark { transform: scale(1.07); box-shadow: 0 0 0 .4rem rgb(255 255 255 / 18%); }
  }

  @supports (animation-timeline: view()) {
    @media (min-width: 48rem) {
      .florist-photo {
        animation: profondeur-florale linear both;
        animation-timeline: view();
        animation-range: entry 0% exit 100%;
      }
    }
  }
}

@keyframes entrer-dans-la-serre {
  from { transform: scale(1.035); opacity: .84; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes lumiere-verriere {
  from { transform: translateX(-70%); opacity: .6; }
  to { transform: translateX(70%); opacity: 0; }
}
@keyframes legende {
  from { opacity: .7; translate: 0 3px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes profondeur-florale { from { translate: 0 8px; } to { translate: 0 -8px; } }
@keyframes tirer-le-rideau { from { opacity: .65; } to { opacity: 1; } }
@media (forced-colors: active) {
  .wide-nav a:is(:hover,:focus-visible,[aria-current]) { text-decoration: underline; }
}
