/* ==========================================================================
   Distillerie de Lyon — Fiche produit
   (s'appuie sur style.css : tokens, boutons, pastille, damier, footer…)
   ========================================================================== */

:root { --muted: #6b7088; }

/* ---------- 00 — Bandeau infos ---------- */

/* ==========================================================================
   01 — Achat
   ========================================================================== */
.buy { padding: 32px 0 60px; }
.crumbs { display: flex; gap: 10px; font-weight: 500; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--navy); }
.crumbs [aria-current] { color: var(--navy); }

.buy__grid { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 540px); gap: 60px; justify-content: space-between; align-items: start; }

/* Galerie */
.gallery { position: sticky; top: 120px; }
.stage {
  position: relative; aspect-ratio: 680 / 700; border-radius: 32px; overflow: hidden;
  background: var(--navy);
}
.stage__watermark { position: absolute; left: -29%; top: -26%; width: 103%; opacity: .06; pointer-events: none; }
.stage__slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s .6s;
}
.stage__slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.stage__bottle {
  position: absolute; left: 50%; top: 7%; height: 88.5%; width: auto; translate: -50% 0;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .25));
  animation: float 6s ease-in-out infinite;
}
.stage__slide.is-active .stage__bottle { animation-play-state: running; }
.stage__photo { width: 100%; height: 100%; object-fit: cover; scale: 1.08; transition: scale 1.2s var(--ease); }
.stage__slide.is-active .stage__photo { scale: 1; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

.stage__pastille { position: absolute; right: 4%; top: 6%; font-size: 19px; }
.js .stage__pastille[data-pop].is-in { rotate: 10deg; animation-name: wobble-right; }
@keyframes wobble-right { 0%, 100% { rotate: 10deg; } 50% { rotate: 3deg; } }

.stage__dots { display: none; }

.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.thumb {
  height: 120px; padding: 0; border: 3px solid transparent; border-radius: 16px; overflow: hidden;
  background: none; cursor: pointer; transition: border-color .25s, transform .3s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--bottle img { object-fit: contain; }
.thumb:hover { transform: translateY(-4px); }
.thumb.is-active { border-color: var(--red); }
.thumb:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* Infos */
.buy__info { padding-top: 16px; }
.buy__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(52px, 6.67vw, 96px); line-height: .92; margin-top: 14px;
}
.buy__script { font-size: 38px; color: var(--red); rotate: 3deg; transform-origin: left; margin: 14px 0 10px 8px; }
.buy__lead { font-size: 18px; line-height: 1.6; color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 26px; padding: 0; list-style: none; }
.chips li {
  background: var(--sand); padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: 13px;
}

.profile { display: flex; align-items: center; gap: 32px; }

.profile .scale { flex: 1; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }

.buy__sep { height: 1px; background: rgba(35, 48, 93, .15); margin: 32px 0 22px; }

.format__options { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 10px; }
.format__opt {
  font: 600 14px var(--f-body); padding: 10px 20px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid #b9bcc8; background: none; color: #8a8f9e;
}
.format__opt.is-active { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.format__opt:disabled { cursor: not-allowed; }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 24px 0 14px; }
.price__value { font-family: var(--f-display); font-size: 44px; }
.price__meta { font-weight: 500; font-size: 14px; color: var(--muted); }

.purchase { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.qty {
  display: inline-flex; align-items: center; border: 2px solid var(--navy); border-radius: 999px;
  font-weight: 700; font-size: 18px;
}
.qty button {
  width: 44px; height: 50px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
  border-radius: 999px; transition: background-color .2s;
}
.qty button:hover { background: var(--sand); }
.qty output { min-width: 22px; text-align: center; }
.qty output.is-bump { animation: bump .35s var(--ease-back); }
@keyframes bump { 50% { transform: scale(1.4); } }

.cart__count.is-bump { animation: bump .45s var(--ease-back); }

/* ==========================================================================
   02 — Présentation & profil aromatique
   ========================================================================== */
.intro { padding: 110px 0 90px; }

.aroma { background: var(--sand); border-radius: var(--radius); padding: 48px; }

.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 40px; }
.bars li { display: grid; grid-template-columns: 1fr 300px; align-items: center; gap: 20px; font-weight: 600; font-size: 15px; }

.bars li:nth-child(2) i { transition-delay: .1s; }
.bars li:nth-child(3) i { transition-delay: .2s; }
.bars li:nth-child(4) i { transition-delay: .3s; }
.bars li:nth-child(5) i { transition-delay: .4s; }

/* ==========================================================================
   03 — Conseils de dégustation
   ========================================================================== */
.tips { position: relative; background: var(--navy); color: var(--paper); padding: 100px 0 60px; overflow: hidden; }

.tip {
  background: var(--paper); color: var(--navy); border-radius: 24px; padding: 28px 32px 40px; min-height: 260px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tip:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 8px 8px 0 var(--red); }

/* ==========================================================================
   04 — Savoir-faire & distinctions
   ========================================================================== */
.know { position: relative; padding: 80px 0; overflow: hidden; }

/* ==========================================================================
   05 — Son acolyte
   ========================================================================== */
.buddy { background: var(--sand); padding: 80px 0; }

.mini {
  position: relative; display: flex; align-items: center; height: 400px;
  background: var(--paper); border-radius: var(--radius); text-decoration: none; overflow: hidden;
}

/* ---------- Footer : lion ---------- */

/* ==========================================================================
   Barre d'achat sticky
   ========================================================================== */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--paper); box-shadow: 0 -4px 16px rgba(35, 48, 93, .18);
  transform: translateY(110%); transition: transform .5s var(--ease);
}
.stickybar.is-visible { transform: none; }
.stickybar__inner {
  max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto;
  padding: 12px var(--gutter); display: flex; align-items: center; gap: 16px;
}
.stickybar__bottle { height: 56px; width: auto; }
.stickybar__name { font-family: var(--f-display); font-size: 18px; }
.stickybar__meta { font-weight: 500; font-size: 13px; color: var(--muted); margin-top: 2px; }
.stickybar .btn { margin-left: auto; }

/* ==========================================================================
   Accordéons (mobile uniquement)
   ========================================================================== */

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .buy__grid { gap: 40px; grid-template-columns: 1fr 1fr; }
  .bars li { grid-template-columns: 100px 1fr; }

}

@media (max-width: 1024px) {
  .buy__grid { grid-template-columns: 1fr; }
  .gallery { position: static; max-width: 640px; }

  .tip { padding: 24px; }

  .mini { max-width: 560px; }
}

@media (max-width: 767px) {

  /* Achat */
  .buy { padding: 16px 0 36px; }
  .crumbs { font-size: 12px; margin-bottom: 14px; }

  .buy__grid { gap: 26px; }
  .stage { aspect-ratio: 350 / 440; border-radius: 24px; background: transparent; overflow: visible; }
  .stage::before {
    content: ""; position: absolute; left: 50%; top: 100px; width: 290px; height: 290px; translate: -50% 0;
    border-radius: 50%; background: var(--navy);
  }
  .stage__watermark { display: none; }
  .stage__slide { border-radius: 24px; overflow: hidden; }
  .stage__bottle { top: 30px; height: 385px; }
  .stage__pastille { width: 96px; height: 96px; font-size: 14px; right: 0; top: 24px; }
  .stage__dots { display: flex; gap: 6px; position: absolute; left: 50%; bottom: 18px; translate: -50% 0; }
  .stage__dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(35, 48, 93, .25); transition: width .3s var(--ease), background .3s; }
  .stage__dots i.is-active { width: 20px; background: var(--navy); }
  .thumbs { display: none; }
  .stage { touch-action: pan-y; }

  .buy__info { padding-top: 0; }
  .buy__title { font-size: 48px; margin-top: 8px; }
  .buy__script { font-size: 28px; margin: 6px 0 6px 4px; }
  .buy__lead { font-size: 16px; }
  .chips { margin: 28px 0 20px; gap: 6px; }
  .chips li { padding: 6px 12px; font-size: 12px; }
  .profile { gap: 14px; }
  .profile .scale { gap: 14px; font-size: 12px; }
  .buy__sep { margin: 24px 0 16px; }
  .format__options { gap: 10px; }
  .format__opt { font-size: 13px; padding: 9px 16px; }
  .price__value { font-size: 40px; }
  .purchase { gap: 16px; flex-wrap: nowrap; }
  .purchase .btn { flex: 1; justify-content: center; padding: 18px 16px; }
  .qty { font-size: 16px; flex: none; }
  .qty button { width: 34px; height: 45px; }

  /* Sections -> accordéons */

  .intro { padding-top: 8px; }

  .acc { border-top: 1.5px solid var(--navy); padding: 20px 0; background: none; border-radius: 0; }

  .acc > .overline,
.acc > .h2 { display: none; }

  

  

  

  @keyframes acc-in { from { opacity: 0; transform: translateY(-10px); } }

  /* Présentation */

  /* Profil aromatique */
  .aroma { padding: 20px 0; }
  .bars { gap: 16px; background: var(--sand); border-radius: 20px; padding: 20px; }
  .bars li { grid-template-columns: 1fr; gap: 6px; font-size: 13px; }

  /* Conseils */
  .tips .acc { color: var(--navy); }

  .tip { min-height: 0; padding: 20px; background: var(--sand); }

  /* Savoir-faire / distinctions */

  .know { padding-bottom: 20px; }

  /* Acolyte */
  .buddy { padding: 40px 0 48px; }

  .mini { display: none; }

  .stickybar__bottle { display: none; }
  .stickybar__inner { padding: 14px 20px 16px; }
  .stickybar__name { font-size: 16px; }
  .stickybar .btn { width: 150px; justify-content: center; }
  body.page-product { padding-bottom: 0; }
}
