:root {
  --ink: #1a1a1a;
  --muted: #555;
  --bg: #f7f5f1;
  --accent: #0b5fff;
  --line: #d9d4cb;
  --max: 960px;
  --font: "Source Serif 4", "Libertinus Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, #e8efe8 0%, transparent 60%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 40%, #efebe3 100%);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration-thickness: 1px; }
a:hover { text-decoration: none; }
.site-header, .main, .site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand-text {
  font-family: var(--font);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
}
.brand img { max-width: 100%; height: auto; display: block; }
.search { display: flex; gap: .35rem; }
.search input, .search button, form input, form button {
  font: inherit;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  background: #fff;
}
.search button, form button {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  cursor: pointer;
}
h1, h2 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin: .5rem 0 1rem; }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin: 1.7rem 0 .55rem; }
h3 { font-size: clamp(1.15rem, 1.4vw, 1.25rem); margin: 1.3rem 0 .4rem; }
h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.28; }
.list, .deps { padding-left: 1.1rem; }
.deps { columns: 2; gap: 1.5rem; }
@media (max-width: 640px) { .deps { columns: 1; } }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.error { color: #8b1a1a; }
.admin .site-header nav { display: flex; gap: 1rem; }
.editorial, .description { max-width: 70ch; }
/* Pages éditoriales (articles) */
.editorial { font-size: 1.02rem; line-height: 1.68; }
.editorial h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  margin: 2rem 0 .6rem;
  padding-top: .2rem;
}
.editorial h3 { font-size: clamp(1.15rem, 1.4vw, 1.25rem); margin: 1.4rem 0 .4rem; font-family: var(--sans); }
.editorial p { margin: 0 0 1rem; }
.editorial ul, .editorial ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.editorial li { margin: .3rem 0; }
.editorial figure.illus { margin: 0 0 1.6rem; }
.editorial figure.illus img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  background: #e6e1d8;
}
.editorial em { color: var(--muted); }
.editorial strong { color: var(--ink); }
.dist { color: var(--muted); font-size: .85em; }
.muted { color: var(--muted); }
.fiche address { font-style: normal; margin-bottom: 1rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.main > article { animation: rise .45s ease-out both; }
.brand-text { transition: letter-spacing .3s ease; }
.brand:hover .brand-text { letter-spacing: .02em; }
