/* ===== POPUP BOOSTER (reveal) ===== */
.booster-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
}
.booster-box{
  background: #1a1a1a;
  border: 1px solid #555;
  border-radius: 12px;
  padding: 28px 24px 24px;
  max-width: min(1100px, 96vw);
  width: 100%;
  text-align: center;
}
.booster-box h2{
  margin-bottom: 18px;
  font-size: 24px;
  color: #eee;
  letter-spacing: 2px;
}
#boosterCardsRow{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  min-height: 200px;
  margin-bottom: 20px;
}
.booster-card-reveal{
  animation: boosterPop 0.35s ease-out;
}
@keyframes boosterPop{
  from{ opacity: 0; transform: scale(0.6) translateY(12px); }
  to{ opacity: 1; transform: scale(1) translateY(0); }
}

/* Actions Continuer + Un de plus */
.booster-actions{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
#btnBoosterContinue{
  display: none;
  margin: 0;
  padding: 12px 36px;
  background: #2a2a2a;
  border: 1px solid #888;
  color: #fff;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  font-family: Georgia, serif;
}
#btnBoosterContinue:hover{
  background: #3a3a3a;
  border-color: #aaa;
}
#btnBoosterAgain,
.btn-booster-again{
  display: none;
  margin: 0;
  padding: 12px 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-family: Georgia, serif;
}
#btnBoosterAgain.btn-pay-ok,
.btn-booster-again.btn-pay-ok{
  background: #2a2218;
  border: 1px solid #c9a227;
  color: #f0d78c;
}
#btnBoosterAgain.btn-pay-ok:hover,
.btn-booster-again.btn-pay-ok:hover{
  background: #3a3218;
  border-color: #e8c84a;
}
#btnBoosterAgain.btn-pay-no,
.btn-booster-again.btn-pay-no{
  background: #2a2a2a;
  border: 1px solid #555;
  color: #888;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Canettes / excédents */
.booster-canette-wrap{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  border-radius: 8px;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.booster-canette-wrap.booster-canette-fade{
  opacity: 1;
}
.booster-canette-img{
  max-width: 90px;
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px #000);
}
.booster-canette-count{
  margin-top: 6px;
  font-size: 18px;
  font-weight: bold;
  color: #f0d78c;
  text-shadow: 0 1px 3px #000;
}
.booster-card-excess{
  filter: grayscale(1) brightness(0.55);
  opacity: 0.7;
  transition: filter 0.4s ease, opacity 0.4s ease;
}
.booster-canette-summary{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  transition: opacity 0.45s ease;
}
.booster-canette-summary .booster-canette-img{
  max-width: 100px;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px #000);
}
.booster-canette-summary .booster-canette-count{
  margin-top: 8px;
  font-size: 22px;
  font-weight: bold;
  color: #f0d78c;
  text-shadow: 0 1px 4px #000;
}

/* ===== BOUTON BOOSTER OFFERT (accueil, désactivé : mail starter) ===== */
#btnFreeBooster{
  display: none !important;
}

/* ===== INTRO BOUTIQUE ===== */
.boutique-intro-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 280;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.boutique-intro-box{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: min(900px, 96vw);
}
.boutique-intro-art{
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px #000;
}
.boutique-dialogue{
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #555;
  border-radius: 10px;
  padding: 20px 24px;
}
.boutique-dialogue-text{
  min-height: 60px;
  font-size: 16px;
  color: #eee;
  line-height: 1.5;
  margin-bottom: 16px;
}
.boutique-dialogue-text .boutique-reward{
  text-align: center;
  font-size: 20px;
  color: #f0d78c;
  margin: 12px 0;
}
.boutique-dialogue-btns{
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.boutique-dialogue-btns button{
  padding: 10px 22px;
  background: #2a2a2a;
  border: 1px solid #666;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-family: Georgia, serif;
}
.boutique-dialogue-btns button:hover{
  background: #3a3a3a;
  border-color: #888;
}
#btnBoutiqueSuivant{
  background: #2a2218;
  border-color: #c9a227;
  color: #f0d78c;
}
#btnBoutiqueSuivant:hover{
  background: #3a3218;
  border-color: #e8c84a;
}

/* ===== SIDEBAR BOUTIQUE ===== */
#boutiqueSidebar h3{
  font-size: 18px;
  color: #eee;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.boutique-info{
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
}
.boutique-info span{
  color: #f0d78c;
  font-weight: bold;
}
#view-boutique .sidebar{
  width: 200px;
}
#view-boutique .main{
  margin-left: 200px;
  position: relative;
  overflow: visible;
}

/* ===== Grille offres boutique ===== */
.boutique-pages {
  position: relative;
  z-index: 2;
  width: 100%;
}
.boutique-offers-page {
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
}
.boutique-tabs{
  display:flex;
  gap:10px;
  padding:16px 12px 8px;
  position:relative;
  z-index:3;
}
.boutique-tabs button{
  padding:8px 16px;
  background:#2a2218;
  border:1px solid #555;
  color:#ddd;
  border-radius:6px;
  cursor:pointer;
  font-family:Georgia, serif;
  font-size:14px;
}
.boutique-tabs button.is-active,
.boutique-tabs button:hover{
  border-color:#c9a227;
  color:#f0d78c;
  background:#3a3018;
}
.boutique-direct-grid{
  display:grid;
}
.boutique-direct-btn.is-bought{ opacity:.55; }
.boutique-direct-card{
  width:180px !important;
  height:270px !important;
  overflow:hidden;
  pointer-events:none;
  flex-shrink:0;
}
.boutique-direct-card .card{
  transform:scale(0.52) !important;
  transform-origin:top center;
}
.boutique-direct-box{
  max-width:min(560px,94vw);
}
.boutique-direct-box #boutiqueDirectArt{
  display:flex;
  justify-content:center;
  margin-bottom:12px;
}
.boutique-direct-box p{
  color:#eee;
  font-size:16px;
  margin:0 0 12px;
}
.boutique-pagination {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 24px;
}
.boutique-pagination button {
  min-width: 36px;
  height: 36px;
  background: #2a2218;
  border: 1px solid #c9a227;
  color: #f0d78c;
  border-radius: 6px;
  cursor: pointer;
}
.boutique-pagination button.active,
.boutique-pagination button:hover {
  background: #3a3218;
  border-color: #e8c84a;
}
.boutique-offers-grid{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 220px);
  gap: 24px;
  padding: 8px 16px 24px 12px;
  max-width: none;
  margin: 0;
  justify-content: start;
  justify-items: start;
}
.boutique-offer-btn{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #3a2a12 0%, #2a1f0e 100%);
  border: 1px solid #c9a227;
  border-radius: 10px;
  padding: 12px 10px 14px;
  cursor: pointer;
  width: 220px;
  color: #f0d78c;
  font-family: Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: background 0.15s, border-color 0.15s;
}
.boutique-offer-btn:hover:not(.disabled){
  background: linear-gradient(180deg, #4a3818 0%, #3a2a12 100%);
  border-color: #e8c84a;
}
.boutique-offer-btn img{
  width: 180px;
  height: 270px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}
.boutique-offer-price{
  font-weight: bold;
}
.boutique-offer-btn.disabled{
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

/* ===== Popup confirmation achat ===== */
.boutique-confirm-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 270;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.boutique-confirm-box{
  background: #1a1a1a;
  border: 1px solid #555;
  border-radius: 12px;
  padding: 28px 32px;
  max-width: min(520px, 94vw);
  text-align: center;
  color: #eee;
}
.boutique-confirm-art{
  width: 220px;
  height: 330px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.boutique-confirm-img{
  width: 220px;
  height: 330px;
  object-fit: contain;
  margin: 0;
  display: block;
  border-radius: 6px;
  box-shadow: 0 8px 24px #000;
}
.boutique-confirm-box h2{
  font-size: 22px;
  margin-bottom: 12px;
  color: #eee;
}
.boutique-confirm-drops{
  font-size: 13px;
  color: #aaa;
  line-height: 1.45;
  white-space: pre-line;
  margin-bottom: 22px;
  text-align: left;
}
.boutique-confirm-btns{
  display: flex;
  gap: 12px;
  justify-content: center;
}
.boutique-confirm-btns button{
  padding: 12px 22px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-family: Georgia, serif;
}
#btnBoutiqueConfirmPrev{
  background: transparent;
  border: 1px solid #555;
  color: #ccc;
}
#btnBoutiqueConfirmPrev:hover{
  border-color: #888;
  color: #fff;
}
.btn-pay-ok{
  background: #2a2218;
  border: 1px solid #c9a227;
  color: #f0d78c;
}
.btn-pay-ok:hover{
  background: #3a3218;
  border-color: #e8c84a;
}
.btn-pay-no{
  background: #2a2a2a;
  border: 1px solid #555;
  color: #888;
  cursor: not-allowed;
  opacity: 0.7;
}

.boutique-bg-oliver{ display: none !important; }