.journal-page {
  margin: 0;
  min-height: 100vh;
  background: var(--mist, #f2f7fb);
  color: var(--ink, #163a5c);
  font-family: var(--font-body), Outfit, system-ui, sans-serif;
}
.journal-page h1,
.journal-page h2 {
  font-family: var(--font-display), Syne, system-ui, sans-serif;
}
.journal-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.journal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid rgba(22, 58, 92, 0.14);
}
.journal-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.journal-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
}
.journal-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(22, 58, 92, 0.65);
}
.journal-title {
  margin: 0.1rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.journal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.journal-link {
  color: #2a6fa0;
  font-weight: 600;
  text-decoration: none;
}
.journal-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.journal-main {
  width: 100%;
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}
.journal-banner {
  background: #fff7ed;
  border: 1px solid rgba(180, 83, 9, 0.28);
  color: #9a3412;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
}
.journal-lead {
  margin: 0;
  color: rgba(22, 58, 92, 0.75);
  font-size: 0.95rem;
}
.journal-filtres {
  background: #fff;
  border: 1px solid rgba(22, 58, 92, 0.14);
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
}
.journal-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.journal-field--large { grid-column: span 2; }
.journal-field label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(22, 58, 92, 0.65);
}
.journal-field input,
.journal-field select {
  width: 100%;
  border: 1px solid rgba(22, 58, 92, 0.18);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font: inherit;
  color: inherit;
  background: #fff;
}
.journal-field input:focus,
.journal-field select:focus {
  outline: 2px solid rgba(61, 143, 196, 0.45);
  border-color: #3d8fc4;
}
.journal-raccourcis,
.journal-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.journal-raccourcis { grid-column: 1 / -1; }
.journal-boutons { grid-column: 1 / -1; justify-content: flex-end; }
.journal-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: #3d8fc4;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
}
.journal-btn:hover { background: #2a6fa0; }
.journal-btn--second {
  background: #fff;
  color: #163a5c;
  border: 1px solid rgba(22, 58, 92, 0.15);
}
.journal-btn--second:hover { background: #f2f7fb; }
.journal-btn:disabled { opacity: 0.55; cursor: default; }
.journal-etat {
  margin: 0;
  color: rgba(22, 58, 92, 0.7);
  font-size: 0.9rem;
}
.journal-alerte {
  background: #fef3f2;
  border: 1px solid rgba(180, 35, 24, 0.25);
  color: #b42318;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}
.journal-table-wrap {
  overflow: auto;
  max-height: 65vh;
  background: #fff;
  border: 1px solid rgba(22, 58, 92, 0.14);
  border-radius: 12px;
  width: 100%;
}
.journal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.journal-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7fafc;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(22, 58, 92, 0.65);
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(22, 58, 92, 0.14);
}
.journal-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(22, 58, 92, 0.1);
  vertical-align: top;
}
.journal-table tr:hover td { background: rgba(61, 143, 196, 0.1); }
.journal-personne { display: flex; flex-direction: column; gap: 0.1rem; }
.journal-personne small { color: rgba(22, 58, 92, 0.6); }
.journal-chemin {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  word-break: break-all;
}
.journal-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: #ecfdf3;
  color: #027a48;
}
.journal-badge--ko { background: #fef3f2; color: #b42318; }
.journal-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .journal-field--large { grid-column: span 1; }
  .journal-top { align-items: flex-start; flex-direction: column; }
}
