body {
  background-image: url(../Image/Fondhackhome.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'Roboto', sans-serif;
  background-color: #0a0a0a;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

/* Cartes de jeux */
a.card {
  text-decoration: none;
  color: inherit;
  display: block;
  background-color: #111;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #222;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  padding: 10px;
}

a.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border-color: #ff8000;
}

.card img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-name {
  margin-top: 10px;
  font-weight: bold;
  text-align: center;
  color: #ff8000;
  font-size: 1.1rem;
}

/* Navbar */
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
  padding: 15px;
}

.button-container {
  display: flex;
  gap: 20px;
  padding: 20px;
  align-items: center;
}

/* Boutons Globaux */
.btn, .sort-btn, .filter-switch {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  background: #111 !important;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 12px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn:hover, .sort-btn:hover:not(.active), .filter-switch:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 128, 0, 0.3);
  border-color: rgba(255, 128, 0, 0.6) !important;
  background: #1a1a1a !important;
  color: #ff8000 !important;
}

/* Effet Shine */
.btn::after, .sort-btn::after, .filter-switch::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: 0.5s;
}

.btn:hover::after, .sort-btn:hover::after, .filter-switch:hover::after {
  left: 100%;
}

/* Logo */
.hack-home-btn {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
}

.hack-home-btn img {
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: block;
}

.hack-home-btn:hover img {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(255, 128, 0, 0.3);
}

/* Recherche */
.search-container {
  display: flex;
  align-items: center;
  background-color: #111 !important;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  width: 300px;
  transition: all 0.3s ease;
}

.search-container:focus-within {
  border-color: #ff8000;
  box-shadow: 0 0 15px rgba(255, 128, 0, 0.2);
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  outline: none;
  background-color: transparent !important;
  color: #fff !important;
  font-size: 0.95rem;
}

.search-btn {
  background-color: transparent !important;
  border: none;
  color: #ff8000 !important;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.search-btn:hover {
  color: #fff !important;
  transform: scale(1.1);
}

footer {
  text-align: center;
  padding: 20px;
  color: #777;
  font-size: 0.9rem;
}
