/* Eunet Manifeste — bleu profond, blanc, accent jaune doré. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --marine: #0b1f66;
  --nuit: #06123f;
  --roi: #1d3fd1;
  --or: #f5c518;
  --or-fonce: #8a6a00;
  --blanc: #ffffff;
  --brume: #eef1fa;
  --trait: #d5dbef;
  --texte: #0d1638;
  --ardoise: #4a5378;
  --sur-bleu: #c9d3f5;
  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, Cambria, serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: clamp(56px, 8vw, 104px);
  --space-6: clamp(72px, 11vw, 152px);
  --rule: 3px solid var(--marine);
  --focus: 3px solid var(--or);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font: 400 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

a {
  color: var(--roi);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--marine); text-decoration-color: var(--or); }

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--marine);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-2);
  color: var(--marine);
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p { margin: 0 0 var(--space-2); }

::selection { background: var(--or); color: var(--nuit); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-5); }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--or);
  color: var(--nuit);
  font-weight: 700;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.icon { width: 1.1em; height: 1.1em; flex: none; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-3);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 40px;
  height: 4px;
  background: var(--or);
}

/* Boutons, liens, étiquettes */
.button,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 3px solid var(--or);
  border-radius: 0;
  background: var(--or);
  color: var(--nuit);
  font: 900 1rem/1 var(--display);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--blanc);
  color: var(--nuit);
  transform: translateY(-2px);
}
.button .icon { transition: transform 0.2s; }
.button:hover .icon { transform: translateX(4px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--marine);
  font: 900 0.95rem/1.2 var(--display);
  text-decoration: none;
  border-bottom: 3px solid var(--or);
  padding-bottom: 4px;
}
.text-link:hover { color: var(--roi); }
.text-link:hover .icon { transform: translateX(3px); }
.text-link .icon { transition: transform 0.2s; }
.text-link--light { color: var(--blanc); }
.text-link--light:hover { color: var(--or); }

.chip {
  display: inline-block;
  padding: 4px 10px;
  border: 2px solid var(--marine);
  color: var(--marine);
  font: 600 0.72rem/1.3 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.chip:hover { background: var(--marine); color: var(--blanc); }
.chip--light { border-color: var(--or); color: var(--or); }
.chip--light:hover { background: var(--or); color: var(--nuit); }

/* Bandeau supérieur */
.topbar {
  background: var(--nuit);
  color: var(--sur-bleu);
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  min-height: 38px;
}
.topbar-text { margin: 0; }
.topbar-mark { margin-right: 10px; color: var(--or); font-weight: 900; }
.topbar-date { white-space: nowrap; }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanc);
  border-bottom: var(--rule);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 76px;
}
.branding { margin-right: auto; }
.custom-logo { max-height: 56px; width: auto; }
.wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--marine);
  font: 900 clamp(1.6rem, 3vw, 2rem)/1 var(--display);
  letter-spacing: -0.04em;
  text-decoration: none;
}
.wordmark:hover { color: var(--marine); }
.wordmark-dot { color: var(--or); font-size: 1.3em; line-height: 0.5; }
.wordmark-tld { color: var(--roi); }

.nav-menu,
.nav-menu ul { margin: 0; padding: 0; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--marine);
  font: 600 0.95rem/1.2 var(--display);
  text-decoration: none;
}
.nav-menu a:hover,
.nav-menu [aria-current="page"],
.nav-menu .current-menu-item > a {
  color: var(--marine);
  box-shadow: inset 0 -4px 0 var(--or);
}

/* Sous-menus (bureau) */
.nav-menu .sub-menu {
  min-width: 240px;
  padding: 8px 0;
  background: var(--marine);
}
.nav-menu .sub-menu a { color: var(--blanc); }
.nav-menu .sub-menu a:hover { color: var(--or); box-shadow: none; }

/* Recherche de l’en-tête */
.header-search { position: relative; }
.header-search summary {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--marine);
  color: var(--marine);
  cursor: pointer;
  list-style: none;
}
.header-search summary::-webkit-details-marker { display: none; }
.header-search summary:hover { background: var(--marine); color: var(--blanc); }
.header-search summary .icon:last-child,
.header-search[open] summary .icon:first-child { display: none; }
.header-search[open] summary .icon:last-child { display: block; }
.header-search[open] summary { background: var(--marine); color: var(--or); }
.header-search-panel {
  position: absolute;
  top: calc(100% + 17px);
  right: 0;
  width: min(460px, calc(100vw - 32px));
  padding: var(--space-3);
  background: var(--marine);
  box-shadow: 8px 8px 0 var(--or);
}

/* Bouton du menu mobile */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 2px solid var(--marine);
  background: var(--blanc);
  color: var(--marine);
  font: 600 0.9rem/1 var(--display);
  cursor: pointer;
}
.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 20px;
  height: 3px;
  background: currentColor;
  transition: transform 0.2s;
}
.menu-lines { position: relative; }
.menu-lines::before,
.menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -7px; }
.menu-lines::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 961px) {
  .nav-menu { display: flex; flex-wrap: wrap; align-items: center; }
  .nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  }
  .nav-menu li:hover > .sub-menu,
  .nav-menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; gap: var(--space-2); }
  /* Sans JavaScript, la navigation reste visible sous l’en-tête. */
  .primary-nav { order: 4; flex-basis: 100%; }
  .nav-menu { display: flex; flex-wrap: wrap; padding-bottom: 12px; }
  .js .menu-toggle { display: inline-flex; }
  .js .primary-nav {
    display: none;
    padding-bottom: var(--space-2);
  }
  .js .primary-nav.is-open { display: block; }
  .js .primary-nav .nav-menu { display: block; border-top: 2px solid var(--marine); }
  .js .nav-menu a {
    padding: 14px 0;
    border-bottom: 1px solid var(--trait);
    font-size: 1.15rem;
  }
  .nav-menu .sub-menu { padding: 0 0 0 20px; background: none; }
  .nav-menu .sub-menu a { color: var(--marine); }
  .header-search-panel { top: calc(100% + 12px); }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
  .topbar-date { display: none; }
}

/* Préambule : la grande déclaration */
.preamble,
.not-found {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-6) var(--space-5);
  background: var(--marine);
  color: var(--blanc);
}
.preamble::after,
.not-found::after {
  content: "§";
  position: absolute;
  right: -0.08em;
  bottom: -0.32em;
  color: rgba(255, 255, 255, 0.05);
  font: 900 clamp(18rem, 42vw, 40rem)/1 var(--display);
  pointer-events: none;
}
.preamble .container,
.not-found .container { position: relative; z-index: 1; }
.preamble .kicker,
.not-found .kicker { color: var(--or); }
.declaration {
  max-width: 15ch;
  margin-bottom: var(--space-5);
  color: var(--blanc);
  font-size: clamp(3rem, 9.5vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.declaration::after {
  content: "";
  display: block;
  width: min(220px, 40%);
  height: 12px;
  margin-top: clamp(24px, 4vw, 48px);
  background: var(--or);
}
.preamble-foot {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.preamble-text {
  max-width: 60ch;
  margin: 0;
  color: var(--sur-bleu);
  font: 400 clamp(1.1rem, 1.6vw, 1.3rem)/1.6 var(--serif);
}
.preamble-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
}
.preamble-stats {
  display: flex;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--sur-bleu);
  font-size: 0.9rem;
}
.preamble-stats strong {
  display: block;
  color: var(--or);
  font: 900 2.2rem/1 var(--display);
}
@media (min-width: 900px) {
  .preamble-foot { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .preamble-actions { justify-content: flex-end; }
}
.not-found .declaration { max-width: 12ch; margin-bottom: var(--space-4); }
.not-found .preamble-text { margin-bottom: var(--space-3); }
.not-found .search-form { max-width: 560px; margin-bottom: var(--space-3); }

/* En-tête de section numérotée */
.article-head {
  display: grid;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
  padding-top: var(--space-3);
  border-top: var(--rule);
}
.article-num {
  margin: 0;
  color: var(--ardoise);
  font: 600 0.8rem/1 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.article-num strong {
  display: block;
  margin-top: 6px;
  color: var(--marine);
  font: 900 clamp(3.2rem, 6vw, 5rem)/0.85 var(--display);
  letter-spacing: -0.05em;
}
.article-num strong::after { content: "."; color: var(--or); }
.article-head h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); }
.article-lede {
  max-width: 52ch;
  margin: 12px 0 0;
  color: var(--ardoise);
  font: 400 1.15rem/1.55 var(--serif);
}
.article-head .text-link { justify-self: start; }
@media (min-width: 800px) {
  .article-head { grid-template-columns: 160px 1fr auto; align-items: end; }
  .article-head .text-link { justify-self: end; }
}

/* Article 01 : principes */
.principles {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.principles li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-3);
  align-items: baseline;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--trait);
}
.principle-num {
  color: var(--or-fonce);
  font: 900 2.2rem/1 var(--display);
}
.principles p {
  margin: 0;
  color: var(--marine);
  font: 900 clamp(1.3rem, 2.4vw, 1.9rem)/1.2 var(--display);
  letter-spacing: -0.02em;
}
@media (min-width: 800px) {
  .principles { margin-left: calc(160px + var(--space-4)); }
}

/* Grilles */
.post-grid {
  display: grid;
  gap: var(--space-4) var(--space-3);
}
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

/* Cartes sobres */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--blanc);
}
.card--default { border-top: var(--rule); padding-top: var(--space-2); }
.card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: var(--space-2);
  background: var(--marine);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.card:hover .card-media img { transform: scale(1.03); }
.placeholder {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  padding: 18px 20px;
  background:
    linear-gradient(90deg, transparent calc(100% - 14px), var(--or) 0) no-repeat,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 22px),
    var(--marine);
  color: var(--blanc);
}
.placeholder-mark { font: 900 clamp(4rem, 9vw, 6.5rem)/0.8 var(--display); color: var(--or); }
.placeholder-num { margin-right: 18px; font: 900 1.6rem/1 var(--display); color: var(--sur-bleu); }
.card-body { display: flex; flex-direction: column; flex: 1; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 12px;
}
.card-time,
.card-date {
  color: var(--ardoise);
  font-size: 0.82rem;
}
.card-title {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.card-title a { color: var(--marine); text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 4px; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-meta .chip { position: relative; z-index: 1; }
.card-excerpt { color: var(--ardoise); font-size: 0.98rem; }
.card-date { margin-top: auto; padding-top: 8px; }

/* Carte principale : grande déclaration */
.card--lead .card-media { aspect-ratio: 16 / 9; margin-bottom: var(--space-3); }
.card--lead .card-title { font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.035em; }
.card--lead .card-excerpt { font: 400 1.15rem/1.6 var(--serif); color: var(--texte); max-width: 60ch; }

/* Carte texte, numérotée */
.card--text {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 var(--space-2);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--trait);
  background: transparent;
}
.card--text:not(:has(.card-index)) { grid-template-columns: 1fr; }
.card-index {
  color: var(--or-fonce);
  font: 900 1.9rem/1 var(--display);
  letter-spacing: -0.04em;
}
.card--text .card-title { font-size: 1.2rem; }
.card--text .card-date { padding-top: 0; }

/* Article : à la une */
.une-layout { display: grid; gap: var(--space-4); }
.une-list { border-top: var(--rule); }
@media (min-width: 960px) {
  .une-layout { grid-template-columns: 1.7fr 1fr; gap: var(--space-5); }
  .une-list .card--text:first-child { padding-top: var(--space-2); }
}

/* Article : chapitres */
.chapter-index { margin: 0; padding: 0; list-style: none; border-top: var(--rule); }
.chapter-index a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: var(--space-2);
  padding: 20px 4px;
  border-bottom: 1px solid var(--trait);
  color: var(--marine);
  text-decoration: none;
  transition: background-color 0.2s, padding 0.2s;
}
.chapter-num { color: var(--or-fonce); font: 900 1.4rem/1 var(--display); }
.chapter-name { font: 900 clamp(1.4rem, 3.4vw, 2.6rem)/1.05 var(--display); letter-spacing: -0.03em; }
.chapter-count { grid-column: 2; color: var(--ardoise); font-size: 0.9rem; }
.chapter-index .icon { grid-column: 3; grid-row: 1 / span 2; width: 28px; height: 28px; transition: transform 0.2s; }
.chapter-index a:hover { background: var(--marine); color: var(--blanc); padding-inline: 20px; }
.chapter-index a:hover .chapter-num,
.chapter-index a:hover .icon { color: var(--or); }
.chapter-index a:hover .chapter-count { color: var(--sur-bleu); }
.chapter-index a:hover .icon { transform: translateX(6px); }
@media (min-width: 800px) {
  .chapter-index a { grid-template-columns: 100px 1fr auto 40px; }
  .chapter-num { font-size: 2rem; }
  .chapter-count { grid-column: 3; }
  .chapter-index .icon { grid-column: 4; grid-row: 1; }
}

/* Section en bleu : chapitre par chapitre */
.section--blue { background: var(--marine); color: var(--blanc); }
.section--blue .article-head { border-top-color: var(--or); }
.section--blue .article-num { color: var(--sur-bleu); }
.section--blue .article-num strong,
.section--blue h2,
.section--blue h3,
.section--blue h4 { color: var(--blanc); }
.chapter-blocks { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .chapter-blocks { grid-template-columns: repeat(3, 1fr); } }
.chapter-block-title { margin: 0; padding-bottom: 12px; border-bottom: 3px solid var(--or); font-size: 1.5rem; }
.chapter-block-title a { display: flex; gap: 12px; align-items: baseline; color: var(--blanc); text-decoration: none; }
.chapter-block-title a:hover { color: var(--or); }
.chapter-block-title span { color: var(--or); }
.section--blue .card { background: transparent; }
.section--blue .card--text { border-bottom-color: rgba(255, 255, 255, 0.18); }
.section--blue .card-index { color: var(--or); }
.section--blue .card-title a { color: var(--blanc); }
.section--blue .card-time,
.section--blue .card-date { color: var(--sur-bleu); }
.section--blue .chip { border-color: var(--sur-bleu); color: var(--sur-bleu); }
.section--blue .chip:hover { background: var(--or); border-color: var(--or); color: var(--nuit); }
.section--blue .text-link { color: var(--blanc); }

/* États vides */
.empty-state {
  max-width: 720px;
  padding: var(--space-4);
  border: var(--rule);
  box-shadow: 10px 10px 0 var(--or);
}
.empty-state--soft { box-shadow: none; border-width: 0 0 0 6px; border-color: var(--or); padding: var(--space-3); }
.empty-state--soft p { margin: 0; }
.empty-mark { margin: 0 0 var(--space-2); color: var(--or-fonce); font: 900 4rem/0.8 var(--display); }
.empty-state .search-form { margin-top: var(--space-3); }

/* Formulaires */
.search-form { display: flex; width: 100%; }
input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 3px solid var(--marine);
  border-radius: 0;
  background: var(--blanc);
  color: var(--texte);
  font: 400 1rem/1.4 var(--sans);
}
textarea { min-height: 160px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6b7394; }
.search-form input { border-right: 0; }
.search-form button { flex: none; border-color: var(--marine); background: var(--marine); color: var(--blanc); padding-inline: 18px; }
.search-form button:hover { background: var(--or); border-color: var(--or); color: var(--nuit); transform: none; }
.search-form button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.header-search-panel .search-form input,
.search-band .search-form input,
.not-found .search-form input { border-color: var(--blanc); }
.header-search-panel .search-form button,
.search-band .search-form button,
.not-found .search-form button { border-color: var(--or); background: var(--or); color: var(--nuit); }
.header-search-panel .search-form button:hover,
.search-band .search-form button:hover,
.not-found .search-form button:hover { background: var(--blanc); border-color: var(--blanc); }

/* Bandeau de recherche */
.search-band { padding-block: var(--space-5); background: var(--or); }
.search-band-inner { display: grid; gap: var(--space-3); align-items: center; }
.search-band h2 { margin: 0; color: var(--nuit); font-size: clamp(1.8rem, 4vw, 3rem); }
.search-band .search-form input { border-color: var(--nuit); }
.search-band .search-form button { border-color: var(--nuit); background: var(--nuit); color: var(--or); }
.search-band .search-form button:hover { background: var(--marine); border-color: var(--marine); color: var(--blanc); }
@media (min-width: 900px) { .search-band-inner { grid-template-columns: 1.2fr 1fr; gap: var(--space-5); } }

/* Pagination */
.pagination { margin-top: var(--space-5); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 50px;
  min-height: 50px;
  padding: 0 14px;
  border: 3px solid var(--marine);
  color: var(--marine);
  font: 900 1rem/1 var(--display);
  text-decoration: none;
}
.pagination a.page-numbers:hover { background: var(--marine); color: var(--blanc); }
.pagination .current { background: var(--or); border-color: var(--or); color: var(--nuit); }
.pagination .dots { border-color: transparent; }

/* En-têtes d’archives, de recherche et d’articles */
.archive-heading,
.article-heading {
  padding-block: var(--space-5) var(--space-4);
  background: var(--marine);
  color: var(--blanc);
}
.archive-heading .kicker { color: var(--or); }
.archive-heading .kicker strong { font-weight: 900; font-size: 1.1rem; }
.archive-heading h1,
.article-heading h1 {
  max-width: 20ch;
  margin-bottom: var(--space-3);
  color: var(--blanc);
  font-size: clamp(2.4rem, 6.5vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.archive-description { max-width: 64ch; color: var(--sur-bleu); font: 400 1.15rem/1.6 var(--serif); }
.archive-description p:last-child { margin: 0; }
.archive-count { margin: var(--space-2) 0 0; color: var(--or); font: 600 0.85rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.archive-heading .search-form { max-width: 600px; }
.archive-heading .search-form input { border-color: var(--blanc); }
.archive-heading .search-form button { border-color: var(--or); background: var(--or); color: var(--nuit); }

.article-heading h1 { max-width: 24ch; font-size: clamp(2.2rem, 5.2vw, 4.4rem); }
.article-heading--page h1 { margin: 0; }
.article-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: var(--space-3); }
.article-kicker-num { color: var(--or); font: 900 1.5rem/1 var(--display); }
.article-standfirst { max-width: 62ch; color: var(--sur-bleu); font: 400 clamp(1.15rem, 1.8vw, 1.35rem)/1.55 var(--serif); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--sur-bleu);
  font-size: 0.9rem;
}
.article-author { color: var(--blanc); font-weight: 700; }

.reading-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 5px; pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: var(--or); transform: scaleX(0); transform-origin: left; }
.admin-bar .reading-progress { top: 32px; }

.article-container { max-width: calc(760px + 2 * var(--gutter)); padding-block: var(--space-4) var(--space-2); }
.article-cover { margin: 0 0 var(--space-4); }
.article-cover img { width: 100%; }
.article-cover figcaption { margin-top: 8px; color: var(--ardoise); font-size: 0.85rem; }

/* Contenu éditorial */
.entry-content {
  counter-reset: paragraphe;
  font: 400 1.15rem/1.75 var(--serif);
}
.entry-content > * { margin-block: 0 1.3em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 1.8em; margin-bottom: 0.6em; }
.entry-content h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.entry-content h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
.entry-content h4 { font-size: 1.2rem; }
/* Les intertitres sont numérotés comme les paragraphes d’un texte de loi. */
.single .entry-content h2::before {
  counter-increment: paragraphe;
  content: "§ " counter(paragraphe);
  display: block;
  margin-bottom: 6px;
  color: var(--or-fonce);
  font-size: 0.55em;
  letter-spacing: 0;
}
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li::marker { color: var(--roi); font-weight: 700; }
.entry-content blockquote,
.entry-content .wp-block-quote {
  margin-inline: 0;
  padding: 0 0 0 var(--space-3);
  border-left: 8px solid var(--or);
  color: var(--marine);
  font: 900 clamp(1.4rem, 2.6vw, 1.9rem)/1.25 var(--display);
  letter-spacing: -0.02em;
}
.entry-content blockquote cite { display: block; margin-top: 10px; color: var(--ardoise); font: 400 0.9rem/1.4 var(--sans); }
.entry-content .wp-block-pullquote { padding: var(--space-4) 0; border-block: var(--rule); }
.entry-content table { width: 100%; border-collapse: collapse; font: 400 0.95rem/1.5 var(--sans); }
.entry-content th,
.entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.entry-content th { background: var(--marine); color: var(--blanc); }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content code,
.entry-content pre { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9em; }
.entry-content pre { overflow-x: auto; padding: var(--space-2); background: var(--brume); }
.entry-content hr { height: 6px; border: 0; background: var(--or); width: 120px; margin-block: 2.4em; }
.entry-content figcaption { color: var(--ardoise); font: 400 0.85rem/1.5 var(--sans); }
.entry-content .alignwide { margin-inline: calc(-1 * min(12vw, 180px)); }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
@media (max-width: 1100px) { .entry-content .alignwide { margin-inline: 0; } }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin-inline: 0; } }
.wp-caption-text, .gallery-caption { color: var(--ardoise); font-size: 0.85rem; }
.post-password-form input[type="password"] { max-width: 320px; margin-right: 8px; }
.page-links { font-family: var(--display); font-weight: 600; }

/* Avertissement, étiquettes, partage */
.article-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: var(--brume);
  border-left: 6px solid var(--marine);
  color: var(--ardoise);
  font-size: 0.95rem;
}
.article-notice .icon { width: 28px; height: 28px; color: var(--marine); }
.article-notice p { margin: 0; }
.article-footer { display: grid; gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-3); border-top: var(--rule); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a {
  padding: 4px 10px;
  background: var(--brume);
  color: var(--marine);
  font: 600 0.85rem/1.3 var(--display);
  text-decoration: none;
}
.article-tags a::before { content: "#"; color: var(--or-fonce); }
.article-tags a:hover { background: var(--marine); color: var(--blanc); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-label { margin-right: 6px; color: var(--ardoise); font: 600 0.8rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.share a,
.copy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  border: 2px solid var(--marine);
  background: var(--blanc);
  color: var(--marine);
  font: 600 0.88rem/1 var(--display);
  text-decoration: none;
  cursor: pointer;
}
.share a:hover,
.copy-link:hover,
.copy-link.is-done { background: var(--marine); color: var(--blanc); }

/* Navigation entre articles */
.post-navigation { margin-top: var(--space-4); }
.post-navigation .nav-links { display: grid; gap: var(--space-2); }
@media (min-width: 700px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a {
  display: block;
  height: 100%;
  padding: var(--space-3);
  border: var(--rule);
  color: var(--marine);
  font: 900 1.2rem/1.2 var(--display);
  text-decoration: none;
}
.post-navigation a:hover { background: var(--marine); color: var(--blanc); }
.post-navigation .nav-next { text-align: right; }
.post-navigation a span {
  display: block;
  margin-bottom: 8px;
  color: var(--or-fonce);
  font: 600 0.78rem/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.post-navigation a:hover span { color: var(--or); }

.section-title {
  margin-bottom: var(--space-4);
  padding-top: var(--space-2);
  border-top: var(--rule);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}
.related { padding-block: var(--space-5) 0; }

/* Commentaires */
.comments { max-width: 820px; padding-block: var(--space-5); }
.comment-list,
.comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list .children { margin-left: clamp(16px, 5vw, 56px); }
.comment-body { padding: var(--space-3) 0; border-bottom: 1px solid var(--trait); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 10px; font-size: 0.88rem; }
.comment-author { display: flex; align-items: center; gap: 12px; }
.comment-author .avatar { border: 3px solid var(--marine); }
.comment-author .fn { color: var(--marine); font: 900 1.05rem/1.2 var(--display); font-style: normal; }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--ardoise); text-decoration: none; }
.comment-content { font: 400 1.05rem/1.7 var(--serif); }
.reply a,
.comment-reply-link { font: 600 0.85rem/1 var(--display); color: var(--roi); }
.comment-awaiting-moderation { color: var(--or-fonce); font-style: italic; }
.comment-respond { margin-top: var(--space-4); padding: var(--space-4); background: var(--brume); border-top: 6px solid var(--or); }
.comment-reply-title { font-size: 1.6rem; }
.comment-form { display: grid; gap: var(--space-2); }
.comment-form label { display: block; margin-bottom: 6px; color: var(--marine); font: 600 0.9rem/1.3 var(--display); }
.comment-form .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { margin: 0; font: 400 0.9rem/1.4 var(--sans); }
.comment-form input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--marine); }
.comment-notes, .logged-in-as { color: var(--ardoise); font-size: 0.9rem; }
.comments-closed { color: var(--ardoise); }

/* Pied de page */
.site-footer { background: var(--nuit); color: var(--sur-bleu); font-size: 0.95rem; }
.site-footer a { color: var(--blanc); text-decoration: none; }
.site-footer a:hover { color: var(--or); text-decoration: underline; }
.footer-statement { padding-block: var(--space-5) var(--space-4); border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.footer-statement p {
  max-width: 18ch;
  margin: 0;
  color: var(--blanc);
  font: 900 clamp(2.2rem, 6vw, 5rem)/0.95 var(--display);
  letter-spacing: -0.04em;
}
.footer-statement em { color: var(--or); font-style: normal; }
.footer-grid { display: grid; gap: var(--space-4); padding-block: var(--space-4); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1050px) { .footer-grid { grid-template-columns: 1.4fr 1.1fr 0.8fr 1.2fr; } }
.site-footer .wordmark { color: var(--blanc); margin-bottom: var(--space-2); }
.site-footer .wordmark-tld { color: var(--sur-bleu); }
.footer-disclaimer { font-size: 0.82rem; opacity: 0.85; }
.footer-col h2 {
  margin-bottom: var(--space-2);
  color: var(--or);
  font: 600 0.8rem/1 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-num { display: inline-block; min-width: 32px; color: var(--or); font: 900 0.85rem/1 var(--display); }
.footer-search .search-form input { border-color: var(--blanc); }
.footer-search .search-form button { border-color: var(--or); background: var(--or); color: var(--nuit); }
.footer-search .search-form button:hover { background: var(--blanc); border-color: var(--blanc); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

/* Page d’accueil statique */
.home-editor-content .entry-content { max-width: 760px; }

/* Accessibilité : mouvements réduits */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Impression */
@media print {
  .topbar, .site-header, .reading-progress, .share, .post-navigation, .related, .comments, .search-band, .site-footer, .article-notice .icon { display: none !important; }
  body { color: #000; }
  .article-heading, .archive-heading { background: none; padding: 0 0 20px; }
  .article-heading h1, .article-heading .article-standfirst, .article-heading .article-meta { color: #000; }
  a { color: #000; }
}

/* Ajustements de rythme et de césure */
.section--chapters { background: var(--brume); }
.section--principles + .section--une { padding-top: 0; }
h1, h2, .card-title, .chapter-name { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 420px) {
  .declaration { font-size: clamp(2.5rem, 12vw, 3rem); }
  .preamble-stats { gap: var(--space-3); }
}
