/**** 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: #811849 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: #811849;
  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;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  min-height: 4.4rem;
  padding: 0.8rem 1.2rem;

  border: 0.2rem solid #ffffff9f;
  border-radius: 4rem;
  background-color: #a1004b43;
  color: #ffffff;
  /*box-shadow: 0.1rem 0.1rem 0 #f3bfd5;*/
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.book-scroll-controls.scroll-left {
  left: 3.6rem;
}

.book-scroll-controls.scroll-right {
  right: 3.5rem;
}

.box-all-book-card.is-scrollable:hover .book-scroll-controls {
  opacity: 1;
  pointer-events: auto;
}

.book-scroll-controls:hover {
  border: 0.2rem solid #ffffffa8;
  border-radius: 4rem;
  background-color: #a1004b79;
  transform: translateY(-50%) scale(1.08);
}