* {
    padding: 0;
    margin: 0;
}
.flipBookContainer {
  background-color: #525659; /* Fond gris identique au modèle */
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Zone de visualisation principale */
.viewer-container {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 40px 80px 40px; /* Espace réservé pour la barre du bas */
}

#flipbook {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  visibility: hidden;
  transition: transform 0.2s ease;
}

/* Styles des pages */
.page {
  background-color: #ffffff;
  box-sizing: border-box;
  position: relative;
}

/* Cadre magenta intérieur selon l'image */
.page-border-wrapper {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 15px;
  right: 15px;
  border: 2px solid #b02a7b; /* Couleur magenta/rose */
  pointer-events: none;
  z-index: 2;
}

.page canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Flèches de navigation latérales */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  background-color: rgba(255, 255, 255, 0.85);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-arrow:hover {
  background-color: rgba(255, 255, 255, 1);
}

.nav-arrow.prev {
  left: 10px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.nav-arrow.next {
  right: 10px;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

/* Barre d'outils flottante en bas */
.floating-toolbar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  border-radius: 6px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.toolbar-item {
  color: #6c757d;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.toolbar-item:hover {
  color: #212529;
  background-color: #f8f9fa;
}

.page-indicator {
  font-size: 0.95rem;
  color: #6c757d;
  font-weight: 500;
  min-width: 60px;
  text-align: center;
}

/* Spinner */
#loader {
  position: absolute;
  text-align: center;
  color: #ffffff;
}
