.zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 1rem;
  border: 0;
  background: transparent;
  color: #13283a;
  cursor: zoom-in;
}
.zoom > span {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #c7bfae;
  border-radius: 50%;
  background: #faf9f5;
  font: 1.5rem/1 NotoSans, Arial, sans-serif;
  transition: background-color .18s ease, border-color .18s ease;
}
.zoom:focus-visible { outline-offset: -4px; }
.zoom[hidden], .packshotDialog:not([open]) { display: none; }
@media (hover: hover) {
  .zoom:hover > span { background: white; border-color: currentColor; }
}
.packshotDialog {
  width: min(calc(100% - 1.5rem), 38rem);
  max-height: calc(100vh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: clamp(1rem, 4vw, 1.75rem);
  border: 1px solid #d6d1c5;
  border-radius: 12px;
  color: var(--ink);
  background: #faf9f5;
  box-shadow: 0 8px 22px #08101842, 0 24px 72px #08101860;
  overscroll-behavior: contain;
}
.packshotDialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: .75rem;
}
html:has(.packshotDialog[open]) { overflow: hidden; }
.packshotDialog::backdrop { background: rgb(8 19 29 / 72%); }
.dialogHeading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.dialogHeading h2 { margin: 0; font-size: clamp(1.35rem, 4.5vw, 1.9rem); line-height: 1.2; }
.dialogHeading form { flex: none; }
.dialogHeading button {
  min-height: 44px;
  padding: .45rem .85rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--ink);
  color: white;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 3px 10px #10223726;
}
.dialogHeading button:is(:hover, :focus-visible) { background: #244263; }
.packshotDialog > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 1;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  .packshotDialog[open] { animation: show-packshot .2s ease-out; }
  .packshotDialog[open]::backdrop { animation: show-backdrop .2s ease-out; }
  @keyframes show-packshot {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes show-backdrop { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .zoom > span { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .heroText > * { animation: hero-entrance .65s cubic-bezier(.2, .65, .3, 1) both; }
  .heroText h1 { animation-delay: .06s; }
  .heroText .intro { animation-delay: .12s; }
  .heroActions { animation-delay: .16s; }

  /* Les deux photos du duo alternent : environ 6 s chacune, fondu de 1,4 s. */
  .heroBottleAlt { animation: hero-swap 14s ease-in-out infinite; }
  @keyframes hero-swap {
    0%, 40% { opacity: 0; }
    50%, 90% { opacity: 1; }
    100% { opacity: 0; }
  }

  @keyframes hero-entrance {
    from { opacity: .85; translate: 0 10px; }
    to { opacity: 1; translate: 0 0; }
  }

  .is-revealing { animation: rise-in .48s ease-out both; }
  @keyframes rise-in {
    from { opacity: .8; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
