/* Style spécifique pour les livres */
.book-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.book-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  border-top: 3px solid #a51c30;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.book-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.book-details {
  padding: 20px;
}

.book-title {
  font-size: 1.2rem;
  color: #a51c30;
  margin-bottom: 10px;
  font-weight: 600;
}

.book-author {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.book-description {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.5;
}

.book-link {
  margin-top: auto;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #eee;
  text-align: center;
  transition: all 0.3s ease;
}

.book-link:hover {
  background-color: #f1f1f1;
  border-color: #ddd;
}

.book-link a {
  color: #a51c30;
  text-decoration: none;
  font-weight: 500;
  display: block;
}

.book-placeholder {
  background-color: #f9f9f9;
  color: #888;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  padding: 20px;
}

.book-placeholder i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #ccc;
}