/* Styles dedies a la page Journaux d'Em */

body.journal-em-page {
  background-image:
    radial-gradient(circle at 8% 8%, rgba(225, 177, 77, 0.24), transparent 28%),
    radial-gradient(circle at 92% 5%, rgba(110, 48, 113, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 243, 242, 0.98));
}

.journal-em-page .container {
  max-width: 1020px;
}

.journal-em-page h1 {
  text-align: left;
  margin-top: 0.2rem;
  margin-bottom: 1.1rem;
}

.journal-em-page .story-kicker {
  margin-bottom: 0.15rem;
  letter-spacing: 0.11em;
}

.journal-em-page .mood-ribbon {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid transparent;
}

.journal-em-page[data-mood="melancolique"] .mood-ribbon {
  color: #38516d;
  background: rgba(150, 184, 211, 0.2);
  border-color: rgba(56, 81, 109, 0.24);
}

.journal-em-page .story-meta {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.7rem;
  margin-bottom: 1.2rem;
}

.journal-em-page .story-meta-row {
  display: grid;
  gap: 0.7rem;
}

.journal-em-page .story-meta-row-main {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.journal-em-page .story-meta-row-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.journal-em-page .story-meta-card {
  border: 1px solid rgba(137, 134, 147, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, rgba(223, 213, 235, 0.17) 100%);
}

.journal-em-page .story-meta-card p {
  font-weight: 600;
  color: #3d2a3e;
}

.journal-em-page .date-card {
  border-style: dashed;
  border-color: rgba(38, 67, 93, 0.35);
  background: linear-gradient(180deg, #fffdf9 0%, rgba(243, 236, 222, 0.85) 100%);
}

.journal-em-page .date-card p {
  color: #26435d;
}

.journal-em-page .consult-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  background: rgba(110, 48, 113, 0.14);
  color: #4d1f52;
  font-weight: 700;
  border: 1px solid rgba(110, 48, 113, 0.24);
}

.journal-em-page .meter {
  height: 8px;
  margin-top: 0.55rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(137, 134, 147, 0.22);
}

.journal-em-page .meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 280ms ease;
}

.journal-em-page .meter-fill.energie {
  background: linear-gradient(90deg, #90c56f 0%, #59a04f 100%);
}

.journal-em-page .meter-fill.stress {
  background: linear-gradient(90deg, #e8bf6b 0%, #db9441 100%);
}

.journal-em-page .meter-fill.migraine {
  background: linear-gradient(90deg, #d99988 0%, #b95757 100%);
}

.journal-em-page .timeline {
  padding-left: 1.2rem;
  border-left-width: 4px;
}

.journal-em-page .event {
  background: linear-gradient(180deg, #ffffff 0%, rgba(243, 243, 242, 0.92) 100%);
  position: relative;
}

.journal-em-page .event::before {
  content: "";
  position: absolute;
  left: -1.72rem;
  top: 1.12rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(137, 134, 147, 0.25);
}

.journal-em-page .event-label {
  display: inline-block;
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #5a4d5b;
}

.journal-em-page .event[data-kind="memoire"]::before {
  background: #7f9fbf;
}

.journal-em-page .event[data-kind="douleur"]::before {
  background: #c7756f;
}

.journal-em-page .event[data-kind="reflexion"]::before {
  background: #9081c5;
}

.journal-em-page .event[data-kind="signal"]::before {
  background: #d29c56;
}

.journal-em-page .event[data-kind="questions"]::before {
  background: #4f8ca0;
}

.journal-em-page .event[data-kind="decision"]::before {
  background: #4ca07f;
}

.journal-em-page .event[data-kind="images"]::before {
  background: #6a7aa8;
}

.journal-em-page .open-questions {
  border-style: dashed;
  border-width: 1px;
}

.journal-em-page .future-images {
  border-style: dashed;
  border-width: 1px;
  border-color: rgba(106, 122, 168, 0.4);
}

.journal-em-page .future-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-top: 0.75rem;
}

.journal-em-page .future-image-slot {
  margin: 0;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px dashed rgba(90, 108, 156, 0.45);
  background: rgba(235, 240, 251, 0.55);
}

.journal-em-page .slot-art {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  border: 1px solid rgba(90, 108, 156, 0.32);
  color: #54699a;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(217, 226, 245, 0.75) 100%);
}

.journal-em-page .slot-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(90, 108, 156, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(217, 226, 245, 0.75) 100%);
}

.journal-em-page .future-image-slot figcaption {
  margin-top: 0.35rem;
  font-size: 0.83rem;
  color: #485172;
}

.journal-em-page .event h3 {
  font-size: 1.05rem;
}

.journal-em-page .event p,
.journal-em-page .event li {
  font-size: 0.98rem;
}

.journal-em-page .event ul {
  margin-top: 0.45rem;
  margin-bottom: 0;
  padding-left: 1.15rem;
}

@media (max-width: 640px) {
  .journal-em-page h1 {
    font-size: 1.55rem;
  }

  .journal-em-page .story-meta-row-main,
  .journal-em-page .story-meta-row-secondary {
    grid-template-columns: 1fr;
  }

  .journal-em-page .page-topbar {
    position: sticky;
    top: 0;
    z-index: 8;
    background: var(--couleur-fond-principal);
    padding-top: 0.4rem;
  }

  .journal-em-page .event {
    padding: 0.85rem;
  }
}
