/* Style global */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #fff;
}

/* Container principal */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Barre de recherche */
.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.search-input {
  width: 100%;
  max-width: 500px;
  padding: 15px;
  border: 2px solid #00d4ff;
  border-radius: 25px;
  background-color: rgba(0, 0, 0, 0.3); /* Transparence */
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: all 0.3s;
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.5); /* Effet néon */
}

.search-input:focus {
  border-color: #00aaff;
  box-shadow: 0 0 20px rgba(0, 170, 255, 1); /* Effet néon plus fort quand focus */
}

.search-button {
  background-color: transparent;
  border: 2px solid #00d4ff;
  border-radius: 25px;
  padding: 12px 20px;
  color: #00d4ff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
}

.search-button:hover {
  background-color: #00d4ff;
  color: #121212;
}

/* Liste des programmes */
.app-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
}

/* Cartes d'applications */
.app-item {
  background-color: #222;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  width: 250px;
  box-shadow: 0 4px 12px rgba(0, 170, 255, 0.2);
  transition: all 0.3s ease-in-out;
  overflow: hidden;  /* Pour s'assurer que le texte ne déborde pas */
}

.app-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 170, 255, 0.5);
}

.app-item h3 {
  font-size: 18px;
  margin: 10px 0;
  word-wrap: break-word; /* Pour empêcher le texte de dépasser */
  overflow: hidden;
  text-overflow: ellipsis; /* Lorsque le texte est trop long, on met des "..." */
  white-space: nowrap; /* Éviter que le texte soit sur plusieurs lignes */
}

.app-item a {
  text-decoration: none;
}

.app-item button {
  background-color: #00d4ff;
  border: none;
  padding: 10px 15px;
  border-radius: 25px;
  color: #121212;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.app-item button:hover {
  background-color: #00aaff;
}

@media (max-width: 768px) {
  .search-container {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input {
    margin-bottom: 10px;
  }
}