/* JZRPA - style éditorial "journal" : serif système, fond papier, filets fins */
:root {
  --ink: #1c1f23;
  --paper: #fbfaf7;
  --card: #ffffff;
  --accent: #0e6e6a;
  --accent-dark: #0a5350;
  --muted: #5a6170;
  --rule: #d8d2c4;
  --max: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.masthead {
  border-top: 6px double var(--ink);
  border-bottom: 1px solid var(--ink);
  text-align: center;
  padding: 1.5rem 1rem 1.1rem;
}
.brand {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
}
.brand a { color: var(--ink); text-decoration: none; }
.tagline {
  margin: 0.35rem 0 0;
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
}

.topnav ul {
  list-style: none;
  margin: 0;
  padding: 0.7rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.topnav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.topnav a:hover,
.topnav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.4rem);
  line-height: 1.22;
  margin: 0 0 0.9rem;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2.4rem 0 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
h3 { font-size: 1.12rem; margin: 1.5rem 0 0.4rem; }
p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
li { margin-bottom: 0.45rem; }

.dek {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

figure { margin: 1.6rem 0 2rem; }
img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.note {
  background: var(--card);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
  font-size: 0.97rem;
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 0.8rem 0;
}
.faq summary { cursor: pointer; font-weight: 700; }

.topnav, .wrap, .site-footer { position: relative; }

.site-footer {
  border-top: 6px double var(--ink);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1.6rem 1rem 2rem;
}
.site-footer p { margin: 0.3rem 0; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 1.5rem 1rem 2.5rem; }
  .topnav ul { gap: 0.25rem 0.9rem; }
  .topnav a { font-size: 0.78rem; }
  h2 { font-size: 1.3rem; margin-top: 2rem; }
  table { font-size: 0.88rem; }
}
