/* ===== BOUTIQUE — page produit immersive (façon dribbble winery) ===== */
:root{
  --bq-side:#1f120d;      /* sidebar très sombre (oxblood-noir) */
  --bq-rail:#2a1a12;      /* rail */
  --bq-stage:#877d33;     /* panneau olive */
  --bq-cream:#f4ecd9;
  --bq-gold:#e3c05a;      /* or vif (accents) */
  --bq-gold-d:#a07c1e;
  --bq-ink:#1f120d;
}
*{margin:0;padding:0;box-sizing:border-box}
.bq-body{font-family:'Inter',system-ui,sans-serif;height:100vh;overflow:hidden;background:var(--bq-stage)}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}

/* width:100% et non 100vw : 100vw inclut la barre de défilement verticale et provoque
   donc un débordement horizontal de ~15 px dès qu'elle est présente. */
.bq{display:flex;height:100vh;width:100%;max-width:100%;overflow:hidden;position:relative}

/* ---------- SIDEBAR (façon GIF : texture ghost + menu aligné à droite avec filets) ---------- */
.bq-side{width:clamp(206px,17.5vw,258px);flex-shrink:0;color:var(--bq-cream);
  display:flex;flex-direction:column;justify-content:space-between;gap:1.3rem;
  padding:2.1rem 1.6rem 1.7rem;position:relative;z-index:4;overflow:hidden;
  background:#160b08 url('../assets/side-texture.webp') center/cover no-repeat}
.bq-side::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(20,10,7,.30),rgba(16,8,6,.55) 55%,rgba(12,6,5,.78))}
.bq-side::after{content:"";position:absolute;top:0;right:0;bottom:0;width:1px;z-index:1;
  background:linear-gradient(180deg,transparent,rgba(227,192,90,.30),transparent)}
.bq-side>*{position:relative;z-index:2}
.bq-logo{display:flex;justify-content:center}
.bq-logo img{height:78px;width:auto;filter:drop-shadow(0 3px 12px rgba(0,0,0,.55))}

.bq-menu{display:flex;flex-direction:column;gap:1.05rem}
.bq-menu a,.bq-menu-btn{display:flex;align-items:center;justify-content:flex-end;gap:.65rem;
  color:rgba(244,236,217,.74);font-size:1rem;letter-spacing:.02em;background:none;border:0;
  cursor:pointer;padding:0;font-family:inherit;text-align:right;line-height:1.1;transition:.25s}
.bq-menu .r{flex:0 0 24px;height:1px;background:rgba(244,236,217,.4);transition:.25s}
.bq-menu a:hover,.bq-menu-btn:hover{color:#fff}
.bq-menu a:hover .r,.bq-menu-btn:hover .r{flex-basis:42px;background:var(--bq-gold)}
.bq-menu a.active{color:var(--bq-gold);font-family:'Fraunces',serif;font-size:1.7rem;font-weight:600;
  flex-direction:column;align-items:flex-start;justify-content:center;gap:.55rem;line-height:1.02}
.bq-menu a.active .r{flex:none;width:66px;height:2px;
  background:linear-gradient(90deg,var(--bq-gold),rgba(227,192,90,.1))}

.bq-side-foot{display:flex;gap:.7rem;justify-content:center}
.bq-side-foot a{width:38px;height:38px;border-radius:50%;background:rgba(9,4,3,.62);
  border:1px solid rgba(244,236,217,.18);display:grid;place-items:center;color:var(--bq-cream);transition:.22s}
.bq-side-foot svg{width:16px;height:16px}
.bq-side-foot a:hover{background:var(--bq-gold);border-color:var(--bq-gold);color:var(--bq-ink);transform:translateY(-2px)}

/* ---------- RAIL ---------- */
.bq-rail{width:clamp(112px,10vw,152px);flex-shrink:0;background:var(--bq-rail);overflow-y:auto;
  padding:1.3rem .55rem;display:flex;flex-direction:column;gap:.4rem;z-index:3;scroll-behavior:smooth}
.bq-rail::-webkit-scrollbar{width:5px}
.bq-rail::-webkit-scrollbar-thumb{background:rgba(255,255,255,.15);border-radius:3px}
.bq-thumb{background:none;border:0;cursor:pointer;padding:.7rem .35rem;border-radius:10px;
  display:flex;flex-direction:column;align-items:center;gap:.35rem;transition:.22s;opacity:.55}
.bq-thumb img{height:60px;width:auto;object-fit:contain;filter:drop-shadow(0 6px 8px rgba(0,0,0,.4))}
.bq-thumb span{font-size:.64rem;color:var(--bq-cream);text-align:center;line-height:1.15;letter-spacing:.01em}
.bq-thumb:hover{opacity:1}
.bq-thumb.active{opacity:1;background:rgba(255,255,255,.07)}
.bq-thumb.active span{color:var(--bq-gold)}

/* ---------- STAGE ---------- */
.bq-stage{flex:1;background:var(--bq-stage);color:var(--bq-cream);position:relative;
  display:grid;grid-template-columns:1fr 1fr;overflow:hidden}
.bq-info{padding:clamp(2rem,4vw,4rem);display:flex;flex-direction:column;justify-content:center;z-index:2;
  transition:opacity .4s ease,transform .55s cubic-bezier(.16,1,.3,1)}
.bq-info.swap{transform:translateX(-125%);transition-timing-function:cubic-bezier(.7,0,.84,0)}  /* le texte SORT à gauche */
.bq-cat{font-family:'Bebas Neue',sans-serif;letter-spacing:.22em;text-transform:uppercase;
  font-size:.95rem;color:rgba(244,236,217,.72)}
.bq-info h1{font-family:'Fraunces',serif;font-weight:600;font-size:clamp(2.1rem,3.6vw,3.4rem);
  line-height:1.02;margin:.3rem 0 1.3rem;color:#fff}
.bq-specs{display:flex;flex-wrap:wrap;gap:1.2rem 2rem;margin-bottom:1.5rem;padding-bottom:1.4rem;
  border-bottom:1px solid rgba(255,255,255,.22)}
.bq-spec b{font-family:'Fraunces',serif;display:block;font-size:1.02rem;color:#fff;line-height:1.1}
.bq-spec span{font-size:.68rem;text-transform:uppercase;letter-spacing:.1em;color:rgba(244,236,217,.62)}
.bq-desc{color:rgba(244,236,217,.9);line-height:1.7;margin-bottom:1.7rem;max-width:430px}
.bq-serve{display:flex;gap:1.5rem;margin-bottom:2rem;flex-wrap:wrap}
.bq-serve-i{display:flex;align-items:center;gap:.5rem;font-size:.8rem;color:rgba(244,236,217,.85)}
.bq-serve-i svg{width:22px;height:22px;color:var(--bq-gold);flex-shrink:0}
.bq-actions{display:flex;gap:.9rem;flex-wrap:wrap}
.bq-btn{display:inline-block;padding:.85rem 1.7rem;background:var(--bq-ink);color:var(--bq-cream);
  font-weight:600;font-size:.85rem;letter-spacing:.06em;border:1.5px solid var(--bq-ink);cursor:pointer;
  font-family:inherit;transition:.2s;text-transform:uppercase}
.bq-btn:hover{background:transparent;color:var(--bq-ink)}
.bq-btn.ghost{background:transparent;color:var(--bq-ink);border-color:rgba(31,18,13,.55)}
.bq-btn.ghost:hover{background:var(--bq-ink);color:var(--bq-cream)}

/* ---------- VISUEL (pot + botanique) ---------- */
.bq-visual{position:relative;overflow:visible;z-index:1;transition:transform .55s cubic-bezier(.6,0,.2,1)}
/* entrée : ease-out (revient du bord en douceur) ; sortie : ease-in (part lentement puis file hors écran) */
.bq-scene{position:absolute;inset:0;transition:transform .55s cubic-bezier(.16,1,.3,1)}
.bq-scene.swap{transform:translateX(125%);transition-timing-function:cubic-bezier(.7,0,.84,0)}  /* le pot SORT à droite */
/* fond botanique PLEINE PAGE (derrière le texte ET le pot) */
.bq-botanical{position:absolute;inset:0;z-index:0;background-position:center;background-repeat:no-repeat;background-size:cover;
  opacity:.22;mix-blend-mode:soft-light;pointer-events:none;transition:opacity .35s ease}
.bq-pot{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-height:80%;max-width:82%;
  width:auto;filter:drop-shadow(0 28px 40px rgba(20,12,6,.42));transition:transform .5s cubic-bezier(.6,0,.2,1)}
/* panneau recette ouvert : le texte de gauche s'efface, le pot se recentre à gauche (rétréci) */
.bq-stage.panel-open .bq-info{opacity:0;transform:translateX(-26px);pointer-events:none}
.bq-stage.panel-open .bq-pot{transform:translate(-50%,-50%) scale(.84)}
/* le décalage horizontal de .bq-visual est calculé en JS (centrage exact) */
.bq-counter{position:absolute;left:clamp(1rem,3vw,3rem);bottom:clamp(1rem,3vw,3rem);
  font-family:'Bebas Neue',sans-serif;letter-spacing:.1em;color:rgba(244,236,217,.8);font-size:1.05rem;z-index:2}
.bq-counter b{color:#fff;font-size:1.5rem}
.bq-share{position:absolute;right:clamp(1rem,3vw,2.4rem);bottom:clamp(1rem,3vw,2.4rem);width:52px;height:52px;
  border-radius:50%;background:var(--bq-ink);color:var(--bq-cream);border:0;cursor:pointer;display:grid;place-items:center;transition:.2s;z-index:2}
.bq-share svg{width:20px;height:20px}
.bq-share:hover{background:var(--bq-gold);color:var(--bq-ink)}

/* ---------- PANNEAU RECETTE ---------- */
.bq-panel{position:absolute;top:0;right:0;bottom:0;width:min(46%,560px);background:#fbf7ee;z-index:6;
  transform:translateX(100%);transition:transform .5s cubic-bezier(.7,0,.2,1);
  display:flex;flex-direction:column;box-shadow:-24px 0 70px rgba(0,0,0,.28);overflow:hidden}
.bq-panel.open{transform:translateX(0)}
.bq-close{position:absolute;top:1.2rem;right:1.2rem;width:48px;height:48px;border-radius:50%;
  background:#fff;border:0;font-size:1.7rem;line-height:1;cursor:pointer;color:var(--bq-ink);z-index:9;
  box-shadow:0 6px 22px rgba(0,0,0,.3);transition:.25s;display:grid;place-items:center}
.bq-close:hover{background:var(--bq-ink);color:#fff;transform:rotate(90deg)}
/* Bandeau du haut : une photo d'ambiance qui illustre le paragraphe << d'ou il
   vient >> juste en dessous. Pas le pot : il est deja affiche en grand a gauche,
   on le verrait deux fois. min-height + max-height, sinon le bandeau enfle sur
   mobile ou le panneau fait toute la hauteur du contenu. */
.bq-panel-photo{height:30%;min-height:150px;max-height:230px;flex-shrink:0;overflow:hidden;
  border-bottom:1px solid rgba(31,18,13,.1)}
.bq-panel-photo img{width:100%;height:100%;object-fit:cover;object-position:center 42%}
.bq-panel-body{padding:clamp(1.6rem,3vw,2.6rem);overflow-y:auto;flex:1}
.bq-panel-eyebrow{font-family:'Bebas Neue',sans-serif;letter-spacing:.2em;text-transform:uppercase;
  color:var(--bq-gold-d);font-size:.85rem}
.bq-panel-body h2{font-family:'Fraunces',serif;font-weight:600;font-size:clamp(1.5rem,2.6vw,2.3rem);
  margin:.25rem 0 1rem;color:var(--bq-ink)}
/* Le panneau est pose sur le plateau olive, qui impose color:var(--bq-cream).
   Sans couleur explicite, ces deux paragraphes heritaient du creme et
   devenaient invisibles sur le creme du panneau. */
.bq-panel{color:#4a4033}
.bq-r-desc{color:#3a322a;line-height:1.7;font-size:1rem}
.bq-r-origine{color:#4a4033;line-height:1.7;font-size:.95rem}
.bq-panel-sub{font-family:'Bebas Neue',sans-serif;letter-spacing:.15em;text-transform:uppercase;
  color:var(--bq-gold-d);font-size:.82rem;margin:1.4rem 0 .7rem}
.bq-r-ing{list-style:none;display:flex;flex-direction:column;gap:.5rem}
.bq-r-ing li{display:flex;gap:.6rem;color:#4a4033;font-size:.95rem}
.bq-r-ing li:before{content:"—";color:var(--bq-gold-d)}
.bq-r-steps{color:#4a4033;line-height:1.7;font-size:.95rem}
.bq-panel .bq-btn{margin-top:1.8rem}

/* ---------- RESPONSIVE ---------- */
@media(max-width:860px){
  .bq-body{overflow:visible;height:auto}          /* la PAGE scrolle (pas le body) -> le rail sticky s'accroche à l'écran */
  .bq{flex-direction:column;height:auto;min-height:100vh;overflow:visible}
  .bq-stage{overflow:hidden}                       /* clippe le glissement horizontal du pot et du texte (pas de débord) */
  .bq-side{width:auto;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.8rem;padding:1rem 1.2rem;background:var(--bq-side)}
  .bq-side::before,.bq-side::after{display:none}
  .bq-logo img{height:52px}
  .bq-menu{flex-direction:row;flex-wrap:wrap;gap:.9rem 1.2rem}
  .bq-menu a,.bq-menu-btn{justify-content:flex-start}
  .bq-menu .r{display:none}
  .bq-menu a.active{font-size:1.1rem;justify-content:flex-start}
  .bq-side-foot{display:none}
  /* rail collant : suit le scroll, on garde les produits visibles jusqu'en bas du texte */
  .bq-rail{width:auto;flex-direction:row;overflow-x:auto;padding:.7rem;position:sticky;top:0;z-index:5;box-shadow:0 8px 20px rgba(0,0,0,.35)}
  .bq-thumb{flex-shrink:0;width:92px}
  .bq-thumb img{height:46px}
  .bq-stage{grid-template-columns:1fr}
  .bq-visual{min-height:56vh;order:-1}
  .bq-info{padding:2rem 1.4rem 3rem}
  /* .bq est en overflow:visible (indispensable au rail sticky) -> le panneau translaté hors-champ déborderait à droite.
     On le retire du rendu tant qu'il est fermé : zéro débord horizontal, et il réapparaît plein écran à l'ouverture. */
  .bq-panel{width:100%}
  .bq-panel:not(.open){display:none}
}
@media(prefers-reduced-motion:reduce){
  .bq-botanical,.bq-pot{animation:none}
}

/* ---- entrée au chargement ---- */
@keyframes bqSlideL{from{opacity:0;transform:translateX(-26px)}to{opacity:1;transform:none}}
@keyframes bqFade{from{opacity:0}to{opacity:1}}
@keyframes bqRise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
.bq-side{animation:bqSlideL .6s cubic-bezier(.2,.7,.2,1) both}
.bq-rail{animation:bqFade .9s ease .15s both}
.bq-info>*{animation:bqRise .75s cubic-bezier(.2,.7,.2,1) both}
.bq-info .bq-cat{animation-delay:.2s}
.bq-info h1{animation-delay:.28s}
.bq-info .bq-specs{animation-delay:.36s}
.bq-info .bq-desc{animation-delay:.44s}
.bq-info .bq-serve{animation-delay:.52s}
.bq-info .bq-actions{animation-delay:.6s}
.bq-scene{animation:bqFade .9s ease .3s backwards}   /* opacité seule : le transform est réservé au swap JS */
.bq-counter,.bq-share{animation:bqFade 1s ease .7s both}
@media(prefers-reduced-motion:reduce){
  .bq-side,.bq-rail,.bq-info>*,.bq-scene,.bq-counter,.bq-share{animation:none}
}

