/* Styles pour les catégories d'achats */
#categories-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.category-container {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid;
  border-radius: 8px;
  padding: 8px;
  margin: 4px;
  min-width: 120px;
  max-width: 140px;
  flex-grow: 1;
  text-align: center;
}

.category-title {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
  text-shadow: 0 0 5px currentColor;
}

.category-commun {
  border-color: #4CAF50;
  box-shadow: 0 0 10px #4CAF50;
}
.category-epic {
  border-color: #9C27B0;
  box-shadow: 0 0 10px #9C27B0;
}
.category-legendaire {
  border-color: #FF9800;
  box-shadow: 0 0 10px #FF9800;
}
.category-secret {
  border-color: #E91E63;
  box-shadow: 0 0 10px #E91E63;
}
.category-event {
  border-color: #FFD700;
  box-shadow: 0 0 15px #FFD700;
  background: linear-gradient(45deg, rgba(255,215,0,0.1), rgba(255,140,0,0.2));
}
.category-event .category-title {
  background: linear-gradient(45deg, #ffea00, #ff9100);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}
.category-wheel-inventory {
  border-color: #FF6B35;
  box-shadow: 0 0 10px #FF6B35;
}

@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.purchased-items-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 60px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 6px;
}

.purchased-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px;
  margin: 4px 0;
  border-radius: 6px;
  background: rgba(255,255,255,0.15);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s;
}
.purchased-item:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.05);
}
.purchased-item.animated {
  animation: itemPop 0.5s cubic-bezier(.68,-0.55,.27,1.55) forwards;
}
@keyframes itemPop {
  0% { transform: scale(0.7) translateY(10px); opacity: 0; }
  60% { transform: scale(1.1) translateY(-2px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.purchased-item img {
  display: block;
  margin: 0 auto;
  max-width: 45px;
  max-height: 45px;
  transition: transform 0.2s ease;
}

.item-quantity {
  color: white;
  font-size: 0.9em;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.shop-item.leg {
  background: linear-gradient(45deg, rgba(255,215,0,0.1), rgba(255,215,0,0.2));
  border: 1px solid rgba(255,215,0,0.3);
}

.shop-item.secret {
  background: linear-gradient(45deg, rgba(255,0,255,0.1), rgba(255,0,255,0.2));
  border: 1px solid rgba(255,0,255,0.3);
  box-shadow: 0 0 10px rgba(255,0,255,0.2);
}


/* ====== Top 100 (PC & Mobile) ====== */
.category-top100 {
  width: 100%;
  height: 100vh; /* plein écran */
  overflow-y: auto;
  background: rgba(20, 20, 20, 0.95);
  border-radius: 15px;
  padding: 20px;
  box-sizing: border-box;
}

.category-top100 .category-title {
  background: linear-gradient(45deg, #ffcc00, #ff4444);
  color: white;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  font-size: 1.2em;
}

#top100-list, #top100List {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
  color: #fff;
  margin-top: 15px;
}

.rank-item {
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid #666;
  border-radius: 8px;
  padding: 10px;
  transition: background-color 0.2s;
}

.rank-item:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

#mobilePage {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  background: rgba(15, 15, 15, 0.95);
  color: white;
  padding: 15px;
  box-sizing: border-box;
}

/* ====== Roue de la Chance ====== */
.wheel-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
}

.wheel-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden; /* Empêche les images de sortir du cercle */
}
.wheel-ring img {
  position: absolute;
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid #fff;
  outline: 3px solid #000;
  box-shadow: 0 6px 12px rgba(0,0,0,0.35);
}

/* Glow pour la catégorie Event */
.category-event {
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}
.category-event .category-title {
  background: linear-gradient(45deg, #ffcc00, #ff8800);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}

#wheel-canvas {
  border-radius: 50%;
  border: 10px solid #fff; /* style sticker */
  outline: 6px solid #000; /* contour cartoon */
  box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 25px rgba(255, 215, 0, 0.5);
  transition: transform 0.1s ease, filter 0.2s ease;
  filter: saturate(1.25) contrast(1.1);
}


/* fond cartoon derrière la roue */
.wheel-container::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 230, 0, 0.4) 0%, rgba(255, 230, 0, 0) 60%),
              radial-gradient(circle at 70% 60%, rgba(255, 120, 0, 0.35) 0%, rgba(255, 120, 0, 0) 60%),
              radial-gradient(circle at 50% 80%, rgba(255, 50, 50, 0.35) 0%, rgba(255, 50, 50, 0) 60%);
  z-index: 0;
}
.wheel-container > * { position: relative; z-index: 1; }

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.wheel-pointer {
  width: 24px;
  height: 24px;
  background: #fff;
  border: 4px solid #000;
  border-radius: 6px;
  transform: translate(-50%, -115px) rotate(0deg);
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%); /* pointe triangulaire cartoon */
}

/* pointer qui tremble pendant le spin */
#wheel-canvas.wheel-spinning ~ .wheel-center .wheel-pointer {
  animation: pointerJitter 0.35s ease-in-out infinite;
}

@keyframes pointerJitter {
  0% { transform: translate(-50%, -115px) rotate(-8deg); }
  50% { transform: translate(-50%, -115px) rotate(8deg); }
  100% { transform: translate(-50%, -115px) rotate(-8deg); }
}

.wheel-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.spin-button {
  background: linear-gradient(45deg, #FFD700, #FFA500);
  border: 2px solid #FFD700;
  border-radius: 8px;
  padding: 12px 20px;
  color: #000;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 140px;
  box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.spin-button:hover {
  background: linear-gradient(45deg, #FFA500, #FFD700);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 215, 0, 0.4);
}

.spin-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.spin-button:disabled {
  background: #666;
  border-color: #666;
  color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.spin-text {
  display: block;
  font-size: 16px;
}

.spin-cost {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

.ad-button {
  background: linear-gradient(45deg, #FF6B35, #F7931E);
  border: 2px solid #FF6B35;
  border-radius: 8px;
  padding: 10px 16px;
  color: white;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.ad-button:hover {
  background: linear-gradient(45deg, #F7931E, #FF6B35);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 107, 53, 0.4);
}

.mute-button {
  background: linear-gradient(45deg, #6b7280, #4b5563);
  border: 2px solid #4b5563;
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.mute-button:hover {
  background: linear-gradient(45deg, #4b5563, #6b7280);
  transform: translateY(-2px);
}

@keyframes wheelSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(1800deg); }
}

.wheel-spinning {
  animation: wheelSpin 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Effet de récompense */
@keyframes rewardPop {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(0deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.reward-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(45deg, #FFD700, #FFA500);
  color: #000;
  padding: 20px;
  border-radius: 15px;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: rewardPop 0.6s ease-out forwards;
}


/* Modale pub récompensée */
#ad-countdown { font-weight: 700; }

.ad-modal {
  position: fixed;
  inset: 0;
  display: none; /* basculé en flex au runtime */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
}

.ad-modal-content {
  width: min(520px, 92vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  overflow: hidden;
}

.ad-modal-header {
  padding: 12px 16px;
  font-size: 18px;
  font-weight: 700;
  background: #222;
  color: #fff;
}

.ad-unit {
  min-height: 160px; /* ad block responsive */
  display: block;
}

.ad-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 16px 16px;
}

#ad-close-btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  color: #fff;
  background: #3b82f6;
}
#ad-close-btn:disabled {
  background: #9aa7c7;
  cursor: not-allowed;
}


/* Bouton de fermeture pour modales */
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { opacity: 0.85; }

/* Contenu de mise à jour */
.update-content h3 { color: #111; }
.update-list li { margin-bottom: 6px; }
#ad-close-btn:disabled {
  background: #9aa7c7;
  cursor: not-allowed;
}


/* ====== Trade Page ====== */
#trade-page {
  max-width: 1100px;
  margin: 0 auto;
}
#trade-page h2 { margin-top: 0; }
#trade-layout {
  display: grid;
  grid-template-columns: 1fr 1fr; /* was 1fr 1fr 1fr */
  gap: 16px;
}
#trade-my-items, #trade-offers, #trade-catalog {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px;
}
#trade-my-items-list, #trade-offers-list, #trade-catalog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.trade-request-form {
  margin-bottom: 12px;
}

/* ====== Pickers avec images ====== */
.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.picker-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.picker-card img {
  width: 64px; height: 64px; object-fit: contain; display:block; margin: 0 auto 6px;
}

.picker-card .picker-name { font-weight: 700; }
.picker-card .picker-meta { font-size: 12px; opacity: 0.85; }

.picker-card:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.25); }
.picker-card.selected { border-color: #4CAF50; box-shadow: 0 6px 14px rgba(76,175,80,0.35); }
.picker-card.disabled { opacity: 0.5; cursor: not-allowed; }

.trade-item {
  position: relative;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 10px;
  overflow: hidden;
}
.trade-item:hover { transform: translateY(-2px); }
.trade-item img {
  width: 80px; height: 80px; object-fit: contain; display:block; margin-bottom:6px;
}
.trade-item .trade-item-name { font-weight: 700; }
.trade-item .trade-item-value, .trade-item .trade-item-rarity, .trade-item .trade-item-qty { font-size: 0.9em; opacity: 0.85; }
.trade-item .actions { margin-top: 6px; }
.trade-item::after {
  content: "";
  position: absolute; inset: 0; opacity: 0; transition: opacity .2s ease; pointer-events:none;
}
.trade-item:hover::after { opacity: 1; filter: blur(6px); }
/* Blur par rareté (majuscules et minuscules) */
.trade-item[data-rarity="Commun"]::after, .trade-item[data-rarity="commun"]::after { background: rgba(76,175,80,0.25); }
.trade-item[data-rarity="Rare"]::after, .trade-item[data-rarity="rare"]::after { background: rgba(33,150,243,0.25); }
.trade-item[data-rarity="Épique"]::after, .trade-item[data-rarity="epic"]::after { background: rgba(156,39,176,0.25); }
.trade-item[data-rarity="Légendaire"]::after, .trade-item[data-rarity="legendaire"]::after { background: rgba(255,152,0,0.25); }
.trade-item[data-rarity="Secret"]::after, .trade-item[data-rarity="secret"]::after { background: rgba(233,30,99,0.25); }

/* ====== Styles pour les nouvelles offres améliorées ====== */
.trade-offer {
  position: relative;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.trade-offer:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.trade-offer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.trade-offer-owner {
  font-weight: bold;
  font-size: 16px;
  color: #4CAF50;
}

.trade-offer-status {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
}

.trade-offer-status.open {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.trade-offer-status.completed {
  background: rgba(158, 158, 158, 0.2);
  color: #9E9E9E;
  border: 1px solid rgba(158, 158, 158, 0.4);
}

.trade-offer-items {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.trade-offer-item {
  flex: 1;
  text-align: center;
  padding: 15px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}

.trade-offer-item.offered {
  border-left: 3px solid #4CAF50;
}

.trade-offer-item.desired {
  border-left: 3px solid #FF9800;
}

.trade-offer-label {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 8px;
  opacity: 0.8;
}

.trade-item-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 8px;
  display: block;
  border-radius: 6px;
}

.trade-offer-arrow {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.trade-item-rarity {
  font-size: 13px;
  font-weight: bold;
  margin: 4px 0;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.trade-item-rarity[data-rarity="commun"] {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.trade-item-rarity[data-rarity="rare"] {
  background: rgba(33, 150, 243, 0.2);
  color: #2196F3;
  border: 1px solid rgba(33, 150, 243, 0.4);
}

.trade-item-rarity[data-rarity="épique"] {
  background: rgba(156, 39, 176, 0.2);
  color: #9C27B0;
  border: 1px solid rgba(156, 39, 176, 0.4);
}

.trade-item-rarity[data-rarity="légendaire"] {
  background: rgba(255, 152, 0, 0.2);
  color: #FF9800;
  border: 1px solid rgba(255, 152, 0, 0.4);
}

.trade-item-rarity[data-rarity="secret"] {
  background: rgba(233, 30, 99, 0.2);
  color: #E91E63;
  border: 1px solid rgba(233, 30, 99, 0.4);
}

.trade-item-value {
  font-size: 14px;
  font-weight: bold;
  color: #FFD700;
  margin-top: 4px;
}

.accept-trade-btn {
  background: linear-gradient(45deg, #4CAF50, #45a049);
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.accept-trade-btn:hover {
  background: linear-gradient(45deg, #45a049, #4CAF50);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.trade-no-item {
  color: #f44336;
  font-weight: bold;
}

.trade-empty {
  text-align: center;
  padding: 30px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

@media (max-width: 900px) {
  #trade-layout { grid-template-columns: 1fr; }
  
  .trade-offer-items {
    flex-direction: column;
    gap: 10px;
  }
  
  .trade-offer-arrow {
    transform: rotate(90deg);
    font-size: 20px;
  }
}
}
.spin-button:hover {
  background: linear-gradient(45deg, #FFA500, #FFD700);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 215, 0, 0.4);
}

.spin-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.spin-button:disabled {
  background: #666;
  border-color: #666;
  color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.spin-text {
  display: block;
  font-size: 16px;
}

.spin-cost {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

.ad-button {
  background: linear-gradient(45deg, #FF6B35, #F7931E);
  border: 2px solid #FF6B35;
  border-radius: 8px;
  padding: 10px 16px;
  color: white;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.ad-button:hover {
  background: linear-gradient(45deg, #F7931E, #FF6B35);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 107, 53, 0.4);
}

.mute-button {
  background: linear-gradient(45deg, #6b7280, #4b5563);
  border: 2px solid #4b5563;
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.mute-button:hover {
  background: linear-gradient(45deg, #4b5563, #6b7280);
  transform: translateY(-2px);
}

@keyframes wheelSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(1800deg); }
}

.wheel-spinning {
  animation: wheelSpin 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Effet de récompense */
@keyframes rewardPop {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(0deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.reward-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(45deg, #FFD700, #FFA500);
  color: #000;
  padding: 20px;
  border-radius: 15px;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: rewardPop 0.6s ease-out forwards;
}


/* Modale pub récompensée */
#ad-countdown { font-weight: 700; }

.ad-modal {
  position: fixed;
  inset: 0;
  display: none; /* basculé en flex au runtime */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
}

.ad-modal-content {
  width: min(520px, 92vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  overflow: hidden;
}

.ad-modal-header {
  padding: 12px 16px;
  font-size: 18px;
  font-weight: 700;
  background: #222;
  color: #fff;
}

.ad-unit {
  min-height: 160px; /* ad block responsive */
  display: block;
}

.ad-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 16px 16px;
}

#ad-close-btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  color: #fff;
  background: #3b82f6;
}
#ad-close-btn:disabled {
  background: #9aa7c7;
  cursor: not-allowed;
}


/* Bouton de fermeture pour modales */
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { opacity: 0.85; }

/* Contenu de mise à jour */
.update-content h3 { color: #111; }
.update-list li { margin-bottom: 6px; }
#ad-close-btn:disabled {
  background: #9aa7c7;
  cursor: not-allowed;
}

