/* Méridien Juridique — design tokens */
:root {
  --bg: #e7e9ee;
  --paper: #f6f5f1;
  --ink: #13151b;
  --muted: #5c606b;
  --line: #c5c8d0;
  --wine: #6e2433;
  --wine-deep: #45151f;
  --ok: #2c5a45;
  --bad: #8a2a2a;
  --warn: #8a5a12;
  --t: 220ms ease;
  --page: 1040px;
  --measure: 40rem;
  --serif: Didot, "Bodoni 72", "Times New Roman", serif;
  --sans: "Avenir Next", "Century Gothic", Futura, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  border-left: 6px solid var(--wine);
}
img { max-width: 100%; display: block; }
a { color: var(--wine); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--wine-deep); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

.frame {
  width: min(var(--page), calc(100% - 2.25rem));
  margin-inline: auto;
}
.matter { max-width: var(--measure); }

.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0 1.1rem;
}
.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}
.wordmark {
  color: var(--ink);
  display: grid;
  gap: 0.15rem;
}
.wordmark em {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.02em;
  line-height: 1;
}
.wordmark span {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}
.mast-meta {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  list-style: none;
}
.nav-menu a {
  color: var(--ink);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-menu a.active,
.nav-menu a:hover { color: var(--wine); }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  margin: 7px 0;
}

.hero {
  padding: 4.2rem 0 3.2rem;
}
.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 0.85rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
h2 { font-size: 1.55rem; margin-bottom: 0.6rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--wine);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background var(--t), color var(--t);
  cursor: pointer;
  font-family: inherit;
}
.btn-solid { background: var(--wine); color: #f6f5f1; }
.btn-solid:hover { background: var(--wine-deep); color: #f6f5f1; }
.btn-line { background: transparent; color: var(--wine); }
.btn-line:hover { background: var(--wine); color: #f6f5f1; }

.bleed {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  filter: grayscale(0.35);
}

.slab {
  padding: 3.4rem 0;
}
.slab-paper { background: var(--paper); border-block: 1px solid var(--line); }

.rule-list { list-style: none; display: grid; gap: 0; }
.rule-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.rule-list li:last-child { border-bottom: 0; }
.rule-list .num {
  font-family: var(--serif);
  color: var(--wine);
  font-size: 1.3rem;
}
.rule-list p { color: var(--muted); margin-top: 0.35rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.person { background: var(--paper); border: 1px solid var(--line); }
.person img { width: 100%; height: 210px; object-fit: cover; filter: grayscale(0.4); }
.person div { padding: 1rem 1rem 1.2rem; }
.person p { color: var(--muted); font-size: 0.92rem; margin-top: 0.35rem; }

.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.note {
  padding-top: 1rem;
  border-top: 2px solid var(--wine);
}
.note p { color: var(--muted); margin-top: 0.45rem; }

.band {
  background: var(--ink);
  color: #e7e9ee;
  padding: 3rem 0;
}
.band h2 { color: #f6f5f1; }
.band p { color: #c5c8d0; margin: 0.7rem 0 1.3rem; max-width: 34rem; }
.band .btn-solid { border-color: #f6f5f1; background: #f6f5f1; color: var(--ink); }
.band .btn-solid:hover { background: transparent; color: #f6f5f1; }

.catalog { display: grid; gap: 0; }
.catalog a {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.catalog a:hover { color: var(--wine); }
.catalog time { color: var(--muted); font-size: 0.82rem; }
.catalog span { color: var(--wine); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }

.form-grid { display: grid; gap: 0.9rem; }
label { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.35rem; }
input, select, textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.55rem 0;
  font: inherit;
  color: var(--ink);
  border-radius: 0;
}
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--wine); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; text-transform: none; letter-spacing: 0; }
.check input { width: auto; margin-top: 0.25rem; }

.aside p { color: var(--muted); margin-top: 0.4rem; margin-bottom: 1.2rem; }

.colophon {
  padding: 2rem 0 2.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.colophon-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}
.colophon h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  color: var(--ink);
}
.colophon ul { list-style: none; }
.colophon li { margin: 0.25rem 0; }
.colophon a { color: var(--muted); }
.legal-line { border-top: 1px solid var(--line); padding-top: 0.9rem; }

.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 420px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem;
  display: none;
  z-index: 50;
}
.cookie.is-on { display: block; }
.cookie p { font-size: 0.9rem; margin-bottom: 0.7rem; }
.cookie-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cookie button {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.dialog {
  position: fixed;
  inset: 0;
  background: rgba(19,21,27,0.45);
  display: none;
  place-items: center;
  z-index: 60;
  padding: 1rem;
}
.dialog.is-on { display: grid; }
.dialog-box {
  background: var(--paper);
  padding: 1.6rem;
  max-width: 26rem;
  width: 100%;
}

.article p { margin: 0.85rem 0; color: var(--ink); }
.article h2 { margin-top: 1.6rem; }

@media (max-width: 820px) {
  body { border-left-width: 4px; }
  .split, .people, .notes, .colophon-grid { grid-template-columns: 1fr; }
  .catalog a { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 0.6rem;
  }
  .nav-menu.is-open { display: flex; }
  .nav-row { align-items: flex-start; }
  .masthead-top { flex-direction: column; align-items: flex-start; }
  .mast-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
