/* -------------------------------
   FONTS
-------------------------------- */
@font-face {
  font-family: 'Louche';
  src: url('Louche-Regular.ttf') format('truetype');
}

body {
    background: url('Journal/oakDither1.png') repeat;
    font-family: 'Louche', cursive;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.journal {
    background-color: #fff;
    border: 2px solid #000;
    padding: 20px;
    max-width: 600px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
    position: relative;
}

.entry {
    border-bottom: 1px dashed #000;
    padding: 10px 0;
}

.entry:last-child {
    border-bottom: none;
}

.entry:hover {
    background-color: #f0f0f0;
}

.date {
    font-weight: bold;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    cursor: pointer;
}

.nav.left {
    left: -40px;
}

.nav.right {
    right: -40px;
}

.element {
  position: absolute;
  max-width: 300px;
  padding: 1rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

/* Bloc retour */
.retour {
  background-color: #f5f0e6;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  border: 1px solid #aaa;
  padding: 0.5rem;
}

.retour a {
  text-decoration: none;
  color: #000;
}

.retour a:hover {
  text-decoration: underline;
}

.fixed-retour {
  position: fixed;
  bottom: 3rem; /* positionnement vertical */
  left: 1rem;
  transform: rotate(-2deg); /* inclinaison */
  z-index: 1000;
}

/* -------------------------------
   ANIMATIONS
-------------------------------- */
@keyframes flotter {
  0%   { transform: translateY(0) rotate(-2deg); }
  50%  { transform: translateY(-5px) rotate(-2.5deg); }
  100% { transform: translateY(0) rotate(-2deg); }
}

.floating {
  animation: flotter 3s ease-in-out infinite;
}