:root {
  --ink: #14243a;
  --navy: #112841;
  --red: #da2131;
  --paper: #fff;
  --sheet: #fff;
  --line: #dfe4ea;
  --muted: #687386;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.68; }
a { color: inherit; }

.document-nav {
  position: sticky; top: 0; z-index: 20; min-height: 62px; padding: 0 max(22px, calc((100vw - 1120px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  color: #fff; background: rgba(17, 40, 65, .97); border-bottom: 3px solid var(--red); backdrop-filter: blur(12px);
}
.document-nav a { font-size: 12px; text-decoration: none; }
.document-nav span { color: #b8c6d4; font: 700 9px var(--mono); letter-spacing: .12em; }

header.masthead { padding: 54px 24px 44px; color: #fff; background: var(--navy); text-align: left; border: 0; }
header.masthead > * { width: min(920px, 100%); margin-left: auto; margin-right: auto; }
.eyebrow { margin-bottom: 12px; color: #e1606b; font: 700 9px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.eyebrow a { color: inherit; text-decoration: none; }
.title { margin: 0 0 10px; font: 500 clamp(34px, 5vw, 55px)/1.05 var(--serif); letter-spacing: -.045em; }
.subtitle { color: #b9c5d2; font: 11px/1.6 var(--sans); }
.docket { margin-top: 28px; display: flex; gap: 42px; color: #91a1b4; font: 9px var(--mono); }
.docket strong { display: block; margin-bottom: 3px; color: #fff; font: 500 24px var(--serif); }

main { width: min(920px, calc(100% - 34px)); margin: 38px auto 70px; padding: 46px clamp(24px, 6vw, 70px) 64px; background: var(--sheet); border: 1px solid var(--line); box-shadow: 0 22px 60px rgba(20, 36, 58, .08); }
.case-box { margin-bottom: 32px; padding: 20px 22px; background: #f0f2f4; border: 1px solid var(--line); border-radius: 10px; font: 10px/1.55 var(--mono); }
.case-box table { width: 100%; border-collapse: collapse; }
.case-box td { padding: 4px 12px 4px 0; vertical-align: top; color: var(--muted); }
.case-box td.val { color: var(--ink); font-weight: 700; }
.parties { margin-bottom: 38px; padding: 24px 26px; background: #f7f3ed; border-left: 4px solid var(--red); border-radius: 0 10px 10px 0; }
.parties h3 { margin: 16px 0 5px; color: var(--red); font: 700 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.parties h3:first-child { margin-top: 0; }
.parties p { margin: 0 0 11px; font: 13px/1.6 var(--sans); text-align: left; }
.parties .role { color: var(--muted); font-size: 11px; }

section.chapter, .page-section { margin: 0 0 42px; }
.chapter-title, .decision-h1 { margin: 38px 0 18px; padding-bottom: 9px; border-bottom: 2px solid var(--ink); font: 600 23px/1.2 var(--serif); letter-spacing: -.02em; }
.chapter-subtitle, .decision-h2 { margin: 28px 0 12px; color: var(--ink); font: 650 17px/1.3 var(--serif); }
.chapter-subsubtitle, .decision-h3, .decision-h4 { margin: 22px 0 9px; color: #9d2731; font: italic 600 14px/1.4 var(--serif); }
.art-num { margin-right: 5px; color: var(--red); font: 700 10px var(--mono); }
main p { margin: 0 0 15px; font: 14px/1.78 var(--serif); text-align: justify; hyphens: auto; }
main ul { margin: 0 0 18px; padding-left: 23px; }
main li { margin-bottom: 8px; font: 14px/1.68 var(--serif); }
blockquote { margin: 15px 0 18px; padding: 12px 17px; color: #556174; background: #f2f4f6; border-left: 3px solid var(--red); font: italic 13px/1.7 var(--serif); }
.footnote { margin-top: 28px; padding-top: 10px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }

.section-head { margin: 42px 0 20px; padding: 21px 24px; background: var(--navy); color: #fff; border-radius: 10px; cursor: default; }
.section-head:hover { background: var(--navy); }
.toggle-chevron { display: none; }
.section-body, .section-body:not(.open) { overflow: visible; max-height: none; }
.page-section-head { padding: 22px 25px; background: var(--navy); color: #fff; border: 0; border-radius: 10px; }
.page-section-num { color: #e1606b; font: 700 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.page-section-title { margin: 5px 0; font: 500 25px/1.2 var(--serif); }
.page-section-sub { color: #b9c5d2; font: 10px var(--sans); }
.lang-note, .sig-note { margin: 22px 0; padding: 16px 18px; color: #5e6978; background: #f1ede6; border-left: 3px solid var(--red); border-radius: 0 8px 8px 0; font: 12px/1.6 var(--sans); }
.decision-box, .decision-final { margin: 26px 0; padding: 25px 28px; background: #fff; border: 2px solid var(--navy); border-radius: 10px; }
.decision-box strong, .decision-final strong { color: #9d2731; }
.decision-final ul { padding-left: 22px; }
.decision-final ul ul { margin-top: 5px; }
.signatures { margin-top: 34px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; border-top: 1px dashed #bfc7d1; }
.sig-block { flex: 1 1 28%; min-width: 170px; text-align: center; }
.sig-block .role { margin-bottom: 8px; color: var(--muted); font: 700 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sig-block img { max-width: 100%; max-height: 100px; mix-blend-mode: multiply; }

footer { padding: 31px 20px 42px; display: flex; flex-direction: column; gap: 6px; align-items: center; color: #8e9bad; background: var(--navy); text-align: center; }
footer strong { color: #fff; font: 600 12px var(--sans); }
footer span { font: 9px var(--mono); }

@media (max-width: 640px) {
  .document-nav { padding: 0 16px; }
  .document-nav span { display: none; }
  header.masthead { padding: 38px 20px 34px; }
  .docket { gap: 24px; }
  main { width: calc(100% - 18px); margin-top: 12px; padding: 28px 19px 42px; }
  main p, main li { font-size: 13px; text-align: left; }
  .parties { padding: 19px; }
  .case-box { overflow-x: auto; }
  .chapter-title, .decision-h1 { font-size: 20px; }
  .page-section-title { font-size: 21px; }
  .sig-block { flex: 1 1 100% !important; }
}

@media print {
  .document-nav { display: none; }
  body { background: #fff; }
  main { width: 100%; margin: 0; border: 0; box-shadow: none; }
  section.chapter, .page-section { break-inside: auto; }
  .chapter-title, .chapter-subtitle, .chapter-subsubtitle { break-after: avoid-page; }
  .signatures, .sig-block { break-inside: avoid-page; }
}

/* Navigation repliable et gabarit harmonisé avec les conclusions de Jean Muls. */
.judgment-controls {
  position: sticky;
  top: 76px;
  z-index: 12;
  margin: 28px 0;
  padding: 9px;
  display: flex;
  justify-content: center;
  gap: 7px;
  border: 1px solid #d8d4cd;
  background: rgba(255, 254, 251, .96);
}
.judgment-controls button {
  padding: 7px 11px;
  border: 1px solid #aaa49b;
  background: #fff;
  color: #112841;
  font: 700 10px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.judgment-controls button:last-child { background: #112841; color: #fff; }
.judgment-section { max-width: 720px; margin: 0 auto 16px; border-top: 1px solid #1d1d1d; }
.judgment-section > summary {
  padding: 18px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  background: #fff;
}
.judgment-section > summary::-webkit-details-marker { display: none; }
.judgment-section > summary .chapter-title {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #112841;
  font-size: 20px !important;
  font-weight: 400 !important;
}
.judgment-toggle {
  flex: 0 0 auto;
  color: #b4232d;
  font: 700 9px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.judgment-section[open] .open-label,
.judgment-section:not([open]) .close-label { display: none; }
.judgment-section-body { padding: 4px 7px 28px; }

@media print {
  .judgment-controls { display: none !important; }
  .judgment-section { display: block !important; max-width: none; border: 0; break-inside: auto; }
  .judgment-section > summary { display: block !important; padding: 8px 0; border-bottom: 1px solid #222; }
  .judgment-section-body { display: block !important; padding: 0 0 12px; }
  .judgment-toggle { display: none !important; }
  .judgment-section > summary .chapter-title { font-size: 15pt !important; }
}
