body {
  font-family: 'Berkshire Swash', cursive;
  font-size: 20px;
  line-height: 1.5;
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: url('https://spooky-town.soins.me/wp-content/uploads/plume/assets/parchemin.jpg') center center no-repeat;
  background-size: cover;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* Conteneur intro + boutons */
.intro-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.intro-text {
  flex: 1 1 300px;
}

.chapter-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 40px;
}

.titre-page {
  font-family: 'IM Fell English', serif;
  font-size: 2.5em;
  text-align: center;
  margin-top: 20px;
  color: #000;
}

.lettrine {
  float: left;
  font-size: 4.5em;
  line-height: 0.8;
  padding-right: 0.2em;
  padding-top: 0.05em;
  color: #6a4e35;
  font-style: italic;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.page {
  display: none;
  text-align: justify;
}

.page.active {
  display: block;
}

.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination .btn {
  padding: 10px 20px;
  margin: 0 10px;
  font-size: 16px;
  cursor: pointer;
  font-family: 'Berkshire Swash', cursive;
}

.page.tirage {
  animation: tirerPage 1.2s ease-out;
  position: relative;
  z-index: 2;
}

@keyframes tirerPage {
  0% {
    transform: rotateY(-90deg) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
  }
}

/* Paroles et personnages */
.parole {
  position: relative;
  padding-left: 1.6em;
  font-style: italic;
  color: #d97400;
  opacity: 0.9;
  text-indent: 0;
  margin: 0 0 1.4em;
}

.parole::before {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.4em;
}

.parole-chat::before {
  content: "🐈‍⬛";
}

.parole-citrouille::before {
  content: "🎃";
}

.parole-spider::before {
  content: "🕷️";
}

.parole-humain::before {
  content: "👤";
}

.parole-plume::before {
  content: "🪶";
}

.parole-fantome::before {
  content: "👻";
}

.parole-enfant::before {
  content: "👼";
}



img.plume {
  width: 100vw;      /* largeur totale de la fenêtre */
  height: auto;      /* garder les proportions */
  display: block;
  margin: 20px 0 0 0;
  object-fit: cover; /* si tu veux que ça couvre bien */
  position: relative; /* au besoin */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: none;   /* supprimer toute limite */
}

img.plume:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

@media print {
  .page-break {
    page-break-before: always;
    /* Pour plus de compatibilité avec les navigateurs récents : */
    break-before: page;
  }
}