:root {
  --ink: #211d18;
  --ink-rgb: 33, 29, 24;
  --muted: #6d655b;
  --line: #ded2c2;
  --paper: #f4ede2;
  --surface: #fbf6ee;
  --white: #fffdf8;
  --white-rgb: 255, 253, 248;
  --navy: #20292b;
  --navy-rgb: 32, 41, 43;
  --gold: #c6922e;
  --gold-rgb: 198, 146, 46;
  --gold-soft: #ead8ad;
  --soft: #ece3d6;
  --danger: #9f2d2d;
  --shadow: 0 20px 46px rgba(var(--ink-rgb), 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(var(--white-rgb), 0.94);
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(var(--ink-rgb), 0.05);
}

.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.88rem;
}

.topbar__inner,
.nav,
.section__inner,
.footer__inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
}

.brand__logo {
  width: 48px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand__text {
  display: grid;
  gap: 0;
}

.brand__name {
  font-size: 1.42rem;
  line-height: 1.1;
  color: var(--navy);
}

.brand__meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  color: var(--ink);
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

.nav__links a {
  text-decoration: none;
  color: var(--ink);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--gold);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button--primary {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 10px 22px rgba(var(--gold-rgb), 0.24);
}

.button--secondary {
  color: var(--ink);
  background: var(--white);
  border-color: rgba(var(--ink-rgb), 0.16);
}

.button--dark {
  color: var(--gold-soft);
  background: var(--navy);
}

.button:hover {
  transform: translateY(-1px);
}

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(var(--navy-rgb), 0.9), rgba(var(--navy-rgb), 0.64) 42%, rgba(var(--navy-rgb), 0.18) 78%),
    linear-gradient(180deg, rgba(var(--ink-rgb), 0.08), rgba(var(--ink-rgb), 0.22)),
    linear-gradient(0deg, rgba(var(--gold-rgb), 0.08), rgba(var(--gold-rgb), 0.08)),
    url("/assets/images/fond-accueil-justice-statue.png") center 48% / cover no-repeat;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  display: none;
}

.hero::after {
  display: none;
}

.hero__inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 72px;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.83rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  max-width: 880px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  max-width: 720px;
  color: inherit;
}

.hero__actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  padding: 76px 0;
}

.section--white {
  background: var(--surface);
}

.section--soft {
  background:
    linear-gradient(180deg, rgba(var(--white-rgb), 0.6), rgba(var(--white-rgb), 0)),
    var(--soft);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section__header {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 36px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 14px 34px rgba(var(--ink-rgb), 0.07);
}

.card--image {
  padding: 0;
  overflow: hidden;
}

.card--image img {
  height: 220px;
  object-fit: cover;
}

.card--image .card__body {
  padding: 24px;
}

.muted {
  color: var(--muted);
}

.list {
  margin: 18px 0 0;
  padding-left: 20px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 48px;
  align-items: center;
}

.portrait,
.courthouse-panel {
  border-radius: var(--radius);
  overflow: hidden;
}

.portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.courthouse-panel {
  min-height: 430px;
  position: relative;
  display: grid;
  align-items: end;
  background: url("/assets/images/tribunal-pj-final-cropped.png") center right / contain no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 22px 34px rgba(var(--ink-rgb), 0.12));
  mix-blend-mode: normal;
}

.courthouse-panel::before {
  display: none;
}

.courthouse-panel__roof,
.courthouse-panel__arches,
.courthouse-panel__steps {
  position: absolute;
  left: 12%;
  right: 12%;
}

.courthouse-panel__roof {
  display: none;
}

.courthouse-panel__arches {
  display: none;
}

.courthouse-panel__steps {
  display: none;
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(var(--gold-rgb), 0.18), rgba(var(--gold-rgb), 0)),
    var(--navy);
  color: var(--white);
  padding: 78px 0;
}

.page-hero__inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  max-width: var(--max);
}

.breadcrumb {
  color: rgba(var(--white-rgb), 0.72);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.news-list {
  display: grid;
  gap: 18px;
}

.news-item {
  background: var(--white);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 28px rgba(var(--ink-rgb), 0.06);
}

.news-item time {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.9rem;
}

.news-item h3 a {
  text-decoration: none;
}

.news-item h3 a:hover {
  color: var(--gold);
}

.news-item__body {
  margin-top: 14px;
}

.news-item__body p {
  margin: 0 0 12px;
}

.news-item__body p:last-child {
  margin-bottom: 0;
}

.news-item__source a {
  color: var(--gold);
  font-weight: 800;
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(var(--ink-rgb), 0.16);
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px 14px;
  font: inherit;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 3px solid rgba(var(--gold-rgb), 0.28);
  border-color: var(--gold);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.notice {
  border-left: 4px solid var(--gold);
  background: rgba(var(--gold-rgb), 0.14);
  padding: 16px 18px;
}

.legal-document {
  max-width: 860px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.legal-document section {
  padding: 0 0 14px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.legal-document section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-document h2 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.legal-document p {
  margin: 0 0 6px;
}

.legal-document p:last-child {
  margin-bottom: 0;
}

.fees-document {
  font-size: 1.02rem;
  line-height: 1.55;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 54px 0 24px;
}

.footer__inner {
  display: grid;
  gap: 34px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer__links {
  display: grid;
  gap: 8px;
}

.footer__links a {
  color: rgba(var(--white-rgb), 0.82);
  text-decoration: none;
}

.footer__bottom {
  border-top: 1px solid rgba(var(--white-rgb), 0.16);
  padding-top: 20px;
  color: rgba(var(--white-rgb), 0.68);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .topbar__inner {
    display: grid;
    gap: 4px;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: var(--white);
    border-bottom: 1px solid rgba(var(--ink-rgb), 0.1);
    padding: 16px;
    box-shadow: 0 16px 32px rgba(var(--ink-rgb), 0.1);
  }

  .nav__links.is-open {
    display: grid;
  }

  .nav__links .button {
    width: 100%;
  }

  .hero {
    min-height: 620px;
  }

  .hero::before,
  .hero::after {
    right: -90px;
    width: 420px;
    opacity: 0.38;
  }

  .grid--2,
  .grid--3,
  .split,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .courthouse-panel {
    min-height: 340px;
  }
}

@media (max-width: 520px) {
  .topbar {
    display: none;
  }

  .brand__name {
    font-size: 1.08rem;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand__logo {
    width: 40px;
    height: 45px;
  }

  .hero__inner {
    padding: 72px 0 48px;
  }

  .hero::before,
  .hero::after {
    opacity: 0.24;
  }

  .button {
    width: 100%;
  }
}
