/**** Book Mockup animé ****/
.box-all-book-card {
  display: flex;
  gap: 4rem; /* espace entre les mockups */
  overflow-x: auto;
  scroll-snap-type: x mandatory; /* pour un scroll qui "snappe" si tu veux */
  scrollbar-width: 2rem;
  scrollbar-color: #981653 transparent;
  scroll-padding-left: 1rem;
  max-width: 1400px;
  width: 100%;
  height: auto;
  padding: 3rem 0 3rem 1rem;
}

/* Style de la scrollbar (Firefox) */
.box-all-book-card::-webkit-scrollbar {
  height: 2rem;
}

.box-all-book-card::-webkit-scrollbar-track {
  background: transparent;
}

.box-all-book-card::-webkit-scrollbar-thumb {
  background-color: #981653;
  border-radius: 10px;
}

.book-card {
  width: 156px;
  position: relative;
  overflow: visible;
  text-align: center;
  flex: 0 0 auto; /* empêche le shrink */
  scroll-snap-align: start; /*snappe chaque élément */
}

.book-card .book-cover,
.book-card .book-shadow {
  transition: transform 0.3s ease-in-out;
  transform-origin: bottom center;
  perspective: 500px;
}

.book-card:hover .book-cover {
  transform: scale(1.1) rotate(-0.8deg);
}

.book-card:hover .book-shadow {
  transform: translateY(1px) scale(0.95);
}

.book-mockup {
  width: 156px;
  position: relative;
  margin: 0 1.5rem 0 0;
  float: none;
}

.book-cover {
  position: relative;
  background-color: #fff;
  border-radius: 1px 4px 4px 1px;
}

.book-cover img {
  display: block;
  width: 156px;
  height: 221px;
  background: #fff;
  border-radius: 1px 4px 4px 1px;
}

.book-cover-effect {
  position: absolute;
  display: block;
  background: transparent url("imagesCSS/cover-mockup.png") no-repeat;
  width: 156px;
  height: 221px;
  border-radius: 1px 4px 4px 1px;
}

.book-shadow {
  position: absolute;
  display: block;
  top: 6rem;
  width: 156px;
  height: 221px;
  background: transparent url("imagesCSS/book-shadow.png") no-repeat;
  overflow: hidden;
}

.book-title h1 {
  font-weight: bold;
  font-style: normal;
  font-size: var(--step-0);
  margin: 1rem 0 0.5rem;
}

.book-subtitle {
  font-weight: normal;
  font-style: normal;
  font-size: var(--step--1);
  margin-bottom: 1rem;
}

.book-scroll-controls {
  position: absolute;
  display: none;
  top: 32%;
  transform: translateY(-32%);
  font-size: var(--step-2);
  background: #ffffff40;
  border-radius: 4rem;
  color: #ffffff8a;
  border: none;
  cursor: pointer;
  z-index: 10;
  user-select: none;
}

.box-all-book-card:hover .book-scroll-controls {
  display: block;
}

.book-scroll-controls:hover {
  background: #ffffff70;
  color: #ffffff;
}

.book-scroll-controls.scroll-left {
  padding: 0.6rem 0.9rem 0.6rem 0.5rem;
  left: 3.6rem;
}

.book-scroll-controls.scroll-right {
  padding: 0.6rem 0.5rem 0.6rem 0.9rem;
  right: 3.5rem;
}