body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  width: 400px;
  padding: 20px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 20px;
  background-color: #ddd;
  border: none;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
  transition: all 0.3s;
}

.tab-button.active {
  background-color: #4CAF50;
  color: white;
}

.tab-button:hover:not(.active) {
  background-color: #ccc;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.circle-button {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  color: transparent;
  font-size: 18px;
  border: none;
  cursor: pointer;
  margin: 20px auto;
  display: block;
  background-image: url('../images/miaou.jpg');
  background-size: cover;
  background-position: center;
  transition: all 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.circle-button:hover {
  transform: scale(1.03);
}

.circle-button:active {
  transform: scale(0.98);
}

.button-text {
  user-select: none;
}

.upgrades {
  max-height: 400px; /* ou 60vh selon ce qui convient le mieux */
  overflow-y: auto;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #eee;
  border-radius: 5px;
}

.upgrade {
  height: auto;
  min-height: 120px;
  margin-bottom: 15px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.upgrade button {
  padding: 8px 15px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

.upgrade button:hover {
  background-color: #45a049;
}
.back-button {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.back-button:hover {
  background-color: #d32f2f;
}
.upgrade-tab>h2{
  padding-top: 1250px;
}

.upgrades-header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  padding-bottom: 10px;
}
.upgrades-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  position: sticky;
  top: 0;
  background: white;
  padding: 10px 0;
  z-index: 10;
}

.upgrade-counter {
  font-size: 16px;
  font-weight: bold;
  color: #4CAF50;
  background-color: #f8f8f8;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
}

.upgrade-counter span:first-child {
  color: #666;
  font-weight: normal;
}
/* Styles pour les deux types d'améliorations */
.upgrade-click {
  border-left: 5px solid #4CAF50;
  background-color: rgba(76, 175, 80, 0.1);
}

.upgrade-auto {
  border-left: 5px solid #2196F3;
  background-color: rgba(33, 150, 243, 0.1);
}

.upgrade h3 {
  margin-top: 0;
  color: #333;
}

.upgrade-desc {
  font-size: 0.9em;
  color: #666;
}

.upgrade-effect {
  font-weight: bold;
  margin: 5px 0;
}

.upgrade-price {
  font-size: 1.1em;
  color: #FF5722;
  margin: 10px 0;
}

.buy-btn {
  background-color: #FF9800;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.buy-btn:hover {
  background-color: #F57C00;
}

.catFact {
  margin: auto;
  text-align: center;
  font-style: italic;
  height:50px;
}

.groupe-separation {
  display: flex;
  padding-top: 20px;
  min-width: 100%;
  padding-bottom: 0px;
  margin-bottom: 20px;
  vertical-align: middle;
  align-items: center;
  margin: 0 auto;
}

.separation {
  width: 100%;
  border-color: #5a5a5a;
  background-color: #5a5a5a;
  height: 2px;
  margin-top: 2%;
  margin-bottom: 2%;
}

.sep-barre-gauche {
  margin-right: 15px;
}

.sep-barre-droite {
  margin-left: 15px;
}

.sep-image {
  height: 48px;
  vertical-align: middle;
}