/* Literie Store — démo : les vraies photos (premier écran, bandes, photos de section) */

/* ---------- Premier écran : photo plein cadre ---------- */
.hero-photo { padding: 12px var(--gutter) 0; }
.hero-photo__frame {
  position: relative; overflow: hidden; isolation: isolate;
  height: calc(100svh - var(--header-h) - 60px); min-height: 560px; max-height: 980px;
  border-radius: var(--r-lg, 28px);
  background: var(--sand, #efe6da);
}
.hero-photo__img {
  position: absolute; inset: -6% 0 0 0; width: 100%; height: 106%; object-fit: cover; object-position: 55% 50%;
  transform-origin: 60% 40%;
  animation: settle 2.2s var(--ease-out) both, drift 26s ease-in-out 2.2s infinite alternate;
}
@keyframes settle { from { transform: scale(1.14); filter: saturate(.8); } to { transform: scale(1.02); filter: none; } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, 1%); } }
/* Voile neutre sous le texte : la seule exception admise pour lire sur une photo */
.hero-photo__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(28, 20, 14, .72) 0%, rgba(28, 20, 14, .38) 38%, rgba(28, 20, 14, 0) 66%);
}
.hero-photo__copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px 24px 28px; color: #fff; }
.hero-photo__title {
  margin: 0; font-family: var(--serif); font-weight: 400; color: #fff;
  font-size: clamp(44px, 12vw, 148px); line-height: .94; letter-spacing: -.015em; text-wrap: balance; max-width: 13ch;
}
.hero-photo__lead { margin-top: 16px; max-width: 36ch; font-size: 17px; color: rgba(255, 255, 255, .9); }
.hero-photo__actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn--glass { background: #fff; color: var(--ink); }
.btn--glass:hover { background: var(--ink); color: #fff; }
.hero-photo__price {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--paper, #fffdf9); color: var(--ink); text-decoration: none;
  border-radius: 999px; padding: 10px 16px; font-size: 15px;
  transition: transform .4s var(--ease-out);
}
.hero-photo__price strong { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-left: 2px; }
.hero-photo__price:hover { transform: translateY(-2px); }

/* Entrée du texte */
.hero-photo__copy > * { animation: rise 1s var(--ease-out) both; }
.hero-photo__lead { animation-delay: .12s; }
.hero-photo__actions { animation-delay: .22s; }
.hero-photo__price { animation: rise 1s var(--ease-out) .35s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* L'affiche de saison se pose sur la photo */
.hero-photo .sticker { top: 16px; right: 16px; left: auto; width: clamp(110px, 30vw, 230px); }

@media (min-width: 1000px) {
  .hero-photo { padding-top: 16px; }
  .hero-photo__frame { height: calc(100svh - var(--header-h) - 72px); }
  .hero-photo__copy { padding: 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
  .hero-photo__title { grid-column: 1; }
  .hero-photo__lead { grid-column: 1; font-size: 20px; }
  .hero-photo__actions { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
  .hero-photo__price { top: 28px; left: 28px; padding: 12px 20px; }
  .hero-photo .sticker { top: 28px; right: 28px; }
}

/* La scène du matelas, sous le premier écran */
.anatomy { margin-top: 24px; }

/* ---------- Photo de section (bien-être) ---------- */
.well__head { display: grid; gap: 28px; }
.photo { margin: 0; overflow: hidden; border-radius: var(--r-lg, 28px); background: var(--sand); }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform: scale(1.12); will-change: transform; }
@media (min-width: 1000px) {
  .well__head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: 56px; }
  .photo--well img { aspect-ratio: 16 / 10; }
}

/* ---------- Bande photo avant les magasins ---------- */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0 var(--gutter); height: 72svh; min-height: 420px; border-radius: var(--r-lg, 28px);
}
.band__img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(28, 20, 14, .6), rgba(28, 20, 14, 0) 55%);
}
.band__text {
  position: absolute; left: 24px; right: 24px; bottom: 28px; z-index: 2; margin: 0;
  font-family: var(--serif); color: #fff; font-size: clamp(34px, 8.6vw, 88px); line-height: 1; letter-spacing: -.01em; max-width: 14ch;
}
@media (min-width: 1000px) { .band__text { left: 56px; bottom: 56px; } }

/* Fiche produit : la vue « En situation » */
.gallery__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__photo[hidden] { display: none; }
.gallery__caption { position: absolute; left: 14px; bottom: 14px; z-index: 1; background: var(--paper); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.gallery__caption[hidden] { display: none; }
.gallery__views { grid-template-columns: repeat(4, 1fr); }

@media (prefers-reduced-motion: reduce) {
  .hero-photo__img, .hero-photo__copy > *, .hero-photo__price { animation: none; }
  .photo img, .band__img { transform: none; }
}
