/* Module optionnel — Book Photo
   Désactivé par défaut dans site-config.js.
*/

#optional-modules:empty {
  display: none;
}

#optional-modules .section-panel {
  margin-top: 14px;
}

/* Book */
.book-layout {
  max-width: 680px;
  margin: auto;
}

.book-card {
  position: relative;
  aspect-ratio: 4 / 5.25;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #020503;
}

.book-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      transparent 58%,
      rgba(1, 5, 3, 0.86) 100%
    );
}

.book-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(3, 8, 6, 0.46);
}

.book-meta span {
  display: block;
  color: var(--green);
  font: 600 9px Orbitron, sans-serif;
}

.book-meta strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.book-actions {
  display: grid;
  grid-template-columns: 96px 1fr 96px;
  gap: 12px;
  margin-top: 18px;
}

.vote-button {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(14, 22, 19, 0.86);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.vote-icon {
  display: grid;
  place-items: center;
}

.vote-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vote-label {
  font: 600 10px Orbitron, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.vote-button.pass {
  color: #ff8c99;
}

.vote-button.pass:hover {
  color: #ffb3bc;
  transform: translateY(-2px);
  border-color: rgba(255, 91, 111, 0.78);
  background:
    linear-gradient(
      145deg,
      rgba(83, 13, 23, 0.88),
      rgba(35, 8, 12, 0.92)
    );
  box-shadow: 0 0 25px rgba(255, 91, 111, 0.20);
}

.vote-button.like {
  color: #6ee7a5;
}

.vote-button.like:hover {
  color: #baf7d4;
  transform: translateY(-2px);
  border-color: rgba(85, 230, 149, 0.82);
  background:
    linear-gradient(
      145deg,
      rgba(19, 70, 45, 0.88),
      rgba(7, 30, 19, 0.94)
    );
  box-shadow: 0 0 25px rgba(85, 230, 149, 0.20);
}

.vote-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid rgba(199, 220, 211, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 10px;
}

.vote-stats strong {
  display: block;
  color: #fff;
  font: 700 17px Orbitron, sans-serif;
  text-align: center;
}

.book-selector {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.selector-dot {
  width: 38px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.selector-dot.active {
  background: linear-gradient(90deg, #76e4aa, #9ad7f5);
}

.vote-note {
  color: #7f9188;
  font-size: 10px;
  text-align: center;
}
