body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0e101a;
  color: #f2f2f2;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
}
/* Modal Styles */
.modal {
  display: none; /* Cache la modale au départ */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
  overflow: auto;
  padding-top: 60px;
  opacity: 0; /* Initialement invisible */
  transform: scale(0.9); /* Commence avec un léger zoom */
  transition: opacity 0.5s ease, transform 0.3s ease-in-out; /* Animation de fondu et zoom */
}

/* Quand la modale est ouverte, elle devient visible */
.modal.show {
  display: block; /* Affiche la modale */
  opacity: 1; /* Rend la modale visible */
  transform: scale(1); /* Agrandit la modale à sa taille normale */
}

.modal-content {
  background-color: #2c3e50;
  color: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  border: 2px solid #34495e;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
}

.close {
  color: #ccc;
  font-size: 28px;
  cursor: pointer;
}

.close:hover {
  color: #fff;
}

.modal-body {
  margin-top: 20px;
}

.modal-btn {
  margin-top: 20px;
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}

.modal-btn:hover {
  background-color: #45a049;
}

.download-btn {
  background-color: #3498db;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.download-btn:hover {
  background-color: #2980b9;
}

h1 {
  font-size: 2.5rem;
}

.search-bar {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #1c1f2b;
  padding: 10px;
  border-radius: 10px;
  width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.search-bar input {
  border: none;
  background: transparent;
  color: white;
  padding: 5px 10px;
  width: 100%;
  outline: none;
}

.search-bar .icon {
  margin-right: 10px;
}

.tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tags span {
  background: #2a2f40;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.mods-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.mod-card {
  background: #1a1d2b;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.mod-card h2 {
  margin-top: 0;
}

.badges {
  margin: 10px 0;
}

.badges span {
  background: #333b52;
  padding: 4px 10px;
  margin-right: 5px;
  border-radius: 15px;
  font-size: 0.75rem;
}

.mod-card select,
.mod-card button {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
}

.mod-card button {
  background-color: #2e85f7;
  color: white;
  cursor: pointer;
}

.mod-card button:hover {
  background-color: #1e66cc;
}
