.recette-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 15px;
}

.recette-container:has(.no-results) {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.no-results {
  text-align: center;
  padding: 15px;
  font-size: 14px;
}

.recette-card {
  position: relative;
  cursor: pointer;
  border-radius: 0;
  overflow: hidden;
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.recette-card:hover {
  transform: scale(1.05);
}

.recette-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  text-align: center;
  font-size: 14px;
  margin: 0;
}

.card-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  text-align: center;
  font-size: 14px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recette-card:hover .overlay {
  opacity: 1;
}

.overlay-text {
  font-size: 16px;
  text-align: center;
}
