/* Barre de recherche */
.search-bar-jeux {
  position: relative;
  max-width: 1200px;
  margin: auto;
}

#form-recherche-jeux {
  display: flex;
  align-items: center;
  position: relative;
}

#search-jeux {
  flex: 1;
  padding: 0.8rem 3rem 0.8rem 1rem;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 25px;
  outline: none;
  transition: border 0.2s;
}

#search-jeux:focus {
  border-color: #007bff;
}

.search-btn {
  position: absolute;
  right: 5px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  font-size: 1.2rem;
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestions {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  z-index: 999;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 0.6rem;
  cursor: pointer;
  transition: background 0.2s;
}

.suggestion-item:hover {
  background: #f5f5f5;
}

.suggestion-thumb img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 0.6rem;
}

.suggestion-title {
  font-size: 0.95rem;
  color: #333;
}

.suggestion-empty {
  padding: 0.6rem;
  font-size: 0.9rem;
  color: #888;
}

@media (max-width: 600px) {
  .search-bar-jeux {
    max-width: 100%;
  }
}