/* ── STATUT ── */
.statute-page { padding: 5rem 6rem; }

.pdf-upload-zone {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  background: var(--gray-50);
  transition: all .2s;
  margin-bottom: 2rem;
}

.pdf-upload-zone.drag-over {
  border-color: var(--green-500);
  background: var(--green-50);
}

.pdf-upload-icon { font-size: 3.5rem; margin-bottom: 1rem; }

.pdf-upload-zone h3 {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .5rem;
}

.pdf-upload-zone p { font-size: .9rem; color: var(--gray-400); margin-bottom: 1.5rem; }

.pdf-input { display: none; }

.pdf-book-wrap { display: none; }
.pdf-book-wrap.visible { display: block; }

.book-viewer {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.book-canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  perspective: 1800px;
  margin-bottom: 1.5rem;
  min-height: 600px;
}

.book-page {
  background: white;
  box-shadow: 4px 0 20px rgba(0,0,0,.15), inset -2px 0 8px rgba(0,0,0,.07);
  border-radius: 2px 0 0 2px;
  overflow: hidden;
  position: relative;
  transform-origin: right center;
  transition: transform .5s ease;
}

.book-page-right {
  background: white;
  box-shadow: -4px 0 20px rgba(0,0,0,.15), inset 2px 0 8px rgba(0,0,0,.07);
  border-radius: 0 2px 2px 0;
  overflow: hidden;
  position: relative;
}

.book-spine {
  width: 16px;
  background: linear-gradient(to right, #166534, #22c55e, #166534);
  flex-shrink: 0;
  align-self: stretch;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.book-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}

.book-btn {
  background: var(--green-600);
  color: white; border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: var(--font-body); font-size: .9rem; font-weight: 500;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; gap: 6px;
}

.book-btn:hover { background: var(--green-700); }
.book-btn:disabled { opacity: .35; cursor: not-allowed; }

.book-page-info {
  font-family: var(--font-head);
  font-size: .9rem; font-weight: 600;
  color: var(--gray-600);
  min-width: 100px; text-align: center;
}

.book-zoom-btns { display: flex; gap: 6px; }

.book-zoom-btn {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gray-200);
  background: white; border-radius: 8px;
  cursor: pointer; font-size: 1.1rem;
  transition: all .2s; display: flex; align-items: center; justify-content: center;
}

.book-zoom-btn:hover { background: var(--green-50); border-color: var(--green-300, #86efac); }

.loading-bar {
  display: none;
  width: 100%; height: 4px;
  background: var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.loading-bar.visible { display: block; }

.loading-bar-fill {
  height: 100%;
  background: var(--green-500);
  border-radius: 999px;
  transition: width .3s;
  width: 0%;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .statute-page { padding: 3rem 2rem; }
}
