/* Styles spécifiques à la page Journal de dates */

body {
  font-family: "Georgia", serif;
  background-color: var(--off-white);
  color: var(--charcoal);
  line-height: 1.6;
}

/* JOURNAL HEADER */
.journal-header {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--off-white) 100%);
}

.journal-header__title {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.journal-header__subtitle {
  font-size: 1.2rem;
  color: var(--rust);
  font-style: italic;
}

/* JOURNAL ENTRIES */
.journal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.entry:nth-child(1) {
  animation-delay: 0.1s;
}
.entry:nth-child(2) {
  animation-delay: 0.2s;
}
.entry:nth-child(3) {
  animation-delay: 0.3s;
}
.entry:nth-child(4) {
  animation-delay: 0.4s;
}
.entry:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.entry__content {
  padding: 2rem;
}

.entry__date {
  font-size: 0.9rem;
  color: var(--rust);
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-family: "Courier New", monospace;
}

.entry__title {
  font-size: 2rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.entry__text {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.entry__tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--cream);
  color: var(--charcoal);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid var(--mustard);
  font-family: "Courier New", monospace;
}

.entry__image {
  position: relative;
}

.image-frame {
  position: relative;
  padding: 15px;
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

.entry--left .image-frame {
  transform: rotate(1deg);
}

.image-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.image-frame img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.image-frame__corner {
  position: absolute;
  width: 25px;
  height: 25px;
  border: 2px solid var(--rust);
}

.image-frame__corner--tl {
  top: -5px;
  left: -5px;
  border-right: none;
  border-bottom: none;
}

.image-frame__corner--tr {
  top: -5px;
  right: -5px;
  border-left: none;
  border-bottom: none;
}

.image-frame__corner--bl {
  bottom: -5px;
  left: -5px;
  border-right: none;
  border-top: none;
}

.image-frame__corner--br {
  bottom: -5px;
  right: -5px;
  border-left: none;
  border-top: none;
}

.entry--right .entry__content {
  order: 1;
}
.entry--right .entry__image {
  order: 2;
}
.entry--left .entry__image {
  order: 1;
}
.entry--left .entry__content {
  order: 2;
}

@media (max-width: 968px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  .navbar__list {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .entry {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .entry--right .entry__content,
  .entry--right .entry__image,
  .entry--left .entry__content,
  .entry--left .entry__image {
    order: initial;
  }

  .journal-header__title {
    font-size: 2.5rem;
  }
  .entry__title {
    font-size: 1.6rem;
  }
  .image-frame img {
    height: 300px;
  }
}
