body {
  background: #111;
  color: #fff;
  font-family: sans-serif;
  margin: 0;
  padding: 1em;
}

.livre-container {
  max-width: 700px;
  margin: auto;
}

form {
  margin-bottom: 2em;
}

input, textarea {
  width: 100%;
  margin-bottom: 0.5em;
  padding: 10px;
  border-radius: 5px;
  border: none;
  font-size: 1em;
}

button {
  background: #444;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}
button:hover {
  background: #666;
}

.pages {
  background: #222;
  padding: 1em;
  border-radius: 8px;
  min-height: 200px;
}

.message {
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #444;
}

.message strong {
  display: block;
  color: #ccc;
}

.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 1em;
}

.retour {
  text-align: center;
  margin-top: 2em;
}
/* Effet livre visuel */
.effet-livre {
  background: #222;
  padding: 1em;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.message {
  background: #f4f4f4;
  color: #111;
  padding: 1em;
  border-radius: 8px;
  transform-origin: left center;
  transform: rotateY(0deg);
  transition: transform 0.4s;
}

.pages .message:nth-child(odd) {
  background: #fefefe;
}

.pages .message:hover {
  transform: rotateY(-2deg);
}

.livre-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 1em;
}

.hidden {
  display: none;
}
