/* Aeromo Kiosque — noir, blanc, rouge d’encre. Tout est carré : aucun angle arrondi. */

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

:root {
  --ink: #0c0c0d;
  --ink-soft: #2c2b28;
  --paper: #ffffff;
  --newsprint: #f3f1ec;
  --red: #d2210f;
  --red-deep: #9c1608;
  --rule: #d7d3ca;
  --rule-dark: #b6b1a7;
  --muted: #57544d;
  --gutter: clamp(16px, 3.6vw, 34px);
  --font-display: "Archivo Narrow", "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", system-ui, sans-serif;
  --font-body: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --font-meta: "Archivo Narrow", "Arial Narrow", system-ui, sans-serif;
  --col-gap: clamp(20px, 2.4vw, 38px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.05rem/1.62 var(--font-body);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}

img, video, svg, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
.icon { width: 1.05em; height: 1.05em; flex: none; }
::selection { background: var(--red); color: #fff; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(40px, 5.5vw, 76px); }
.section--inverse { background: var(--ink); color: #efece5; }
.section--inverse a { color: #fff; }
.section--inverse a:hover { color: #ff7d6a; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 10px; top: -120px;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  font: 700 0.95rem/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.skip-link:focus { top: 10px; color: #fff; }

/* Surtitres, filets et boutons */
.eyebrow {
  margin: 0 0 10px;
  font: 700 0.78rem/1 var(--font-display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
}
.kicker {
  display: inline-block;
  margin: 0 0 8px;
  padding: 0;
  font: 700 0.76rem/1.2 var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
a.kicker:hover { color: var(--red-deep); border-bottom-color: currentColor; }
.kicker--static { color: var(--muted); }

.button, .search-form button, .comment-form .submit, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  font: 700 0.92rem/1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s linear, color 0.15s linear;
}
.button:hover, .search-form button:hover, .comment-form .submit:hover, .wp-block-button__link:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 0.84rem/1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
}
.text-link:hover { color: var(--red); }
.text-link .icon { transition: transform 0.18s ease; }
.text-link:hover .icon { transform: translateX(4px); }

/* Formulaire de recherche */
.search-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 540px;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 11px 14px;
  font: 400 1rem/1.3 var(--font-body);
  outline: none;
}
.search-form input::placeholder { color: var(--muted); opacity: 1; }
.search-form:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.search-form button { border: 0; border-left: 2px solid var(--ink); padding: 11px 18px; }
.search-form button:hover { border-left-color: var(--red); }

/* Bandeau supérieur */
.ribbon {
  background: var(--ink);
  color: #e8e5de;
  font-family: var(--font-meta);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
}
.ribbon p { margin: 0; }
.ribbon-devise { font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; }
.ribbon-edition { display: inline-flex; gap: 8px; color: #b9b5ac; }
.ribbon-date::first-letter { text-transform: uppercase; }
.ribbon-rss {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.ribbon-rss:hover { color: #ff7d6a; }

/* Bandeau-titre */
.masthead {
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
}
.masthead-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding-block: clamp(16px, 2.6vw, 30px);
}
.masthead-side { display: flex; align-items: center; gap: 14px; min-width: 0; }
.masthead-side--right { justify-content: flex-end; }
.masthead-note {
  margin: 0;
  font: 600 0.74rem/1.3 var(--font-meta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 16ch;
}
.branding { text-align: center; min-width: 0; }
.custom-logo { max-height: 76px; width: auto; margin-inline: auto; }
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
}
.wordmark-name {
  font: 700 clamp(2.3rem, 6.2vw, 4.4rem)/0.9 var(--font-display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.wordmark-dot { width: 0.42em; height: 0.42em; background: var(--red); flex: none; align-self: center; }
.wordmark:hover { color: var(--ink); }
.wordmark:hover .wordmark-dot { background: var(--ink); }
.tagline {
  margin: 8px 0 0;
  font: 600 0.78rem/1.3 var(--font-meta);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Recherche du bandeau-titre */
.masthead-search { position: relative; }
.masthead-search summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  font: 700 0.78rem/1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.masthead-search summary::-webkit-details-marker { display: none; }
.masthead-search summary:hover { background: var(--ink); color: #fff; }
.masthead-search summary .icon + .icon,
.masthead-search[open] summary .icon:first-child { display: none; }
.masthead-search[open] summary .icon + .icon { display: block; }
.masthead-search[open] summary { background: var(--ink); color: #fff; }
.masthead-search-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
  width: min(430px, calc(100vw - 32px));
  padding: 14px;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 rgb(12 12 13 / 12%);
}
.masthead-search-panel .search-form { max-width: none; }

/* Barre des rubriques */
.navbar {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 30;
}
.admin-bar .navbar { top: 32px; }
.nav-menu, .nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  border-inline: 1px solid var(--rule);
}
.nav-menu > li { position: relative; border-right: 1px solid var(--rule); }
.nav-menu > li:first-child { border-left: 1px solid var(--rule); }
.nav-menu a {
  display: block;
  padding: 13px 18px;
  text-decoration: none;
  font: 700 0.86rem/1 var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-menu a:hover,
.nav-menu [aria-current="page"],
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-parent > a {
  background: var(--ink);
  color: #fff;
}
.nav-menu .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: var(--paper);
  border: 2px solid var(--ink);
  opacity: 0;
  visibility: hidden;
  z-index: 20;
}
.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.nav-menu .sub-menu li + li { border-top: 1px solid var(--rule); }
.nav-menu .sub-menu a { letter-spacing: 0.1em; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font: 700 0.78rem/1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle:hover { background: var(--ink); color: #fff; }
.menu-lines { position: relative; width: 18px; height: 2px; background: currentColor; }
.menu-lines::before, .menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }
.menu-toggle[aria-expanded="true"] { background: var(--red); border-color: var(--red); color: #fff; }

/* Pavés de date */
.datestamp {
  display: grid;
  justify-items: center;
  align-content: start;
  font-family: var(--font-meta);
  line-height: 1;
  color: var(--ink);
}
.datestamp-day { font-weight: 700; font-size: 2.1rem; letter-spacing: -0.03em; }
.datestamp-month {
  margin-top: 3px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.datestamp-year { margin-top: 3px; font-size: 0.7rem; letter-spacing: 0.12em; color: var(--muted); }
.datestamp--list {
  width: 62px;
  padding-top: 2px;
  border-right: 1px solid var(--rule);
  padding-right: 12px;
}
.datestamp--article {
  width: 74px;
  padding: 10px 0;
  border: 2px solid var(--ink);
  justify-self: center;
}
.datestamp--article .datestamp-day { font-size: 2.5rem; }

/* Blocs d’articles */
.story { min-width: 0; }
.story-title { margin: 0 0 8px; letter-spacing: -0.015em; }
.story-title a {
  text-decoration: none;
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.22s ease;
}
.story-title a:hover { color: var(--ink); background-size: 100% 2px; }
.story-standfirst { margin: 0 0 10px; color: var(--ink-soft); }
.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 0;
  font: 600 0.76rem/1.2 var(--font-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.story-author { color: var(--ink); }
.story-meta > * + *::before { content: "·"; margin-right: 14px; color: var(--rule-dark); }
.story-art { display: block; text-decoration: none; overflow: hidden; }
.story-art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter 0.3s ease, transform 0.5s ease; }
.story:hover .story-art img { filter: none; transform: scale(1.03); }
.story-plate {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 140px;
  background:
    repeating-linear-gradient(135deg, var(--newsprint) 0 9px, #e7e3da 9px 18px);
  border: 1px solid var(--rule);
}
.story-plate span {
  font: 700 3.4rem/1 var(--font-display);
  text-transform: uppercase;
  color: var(--ink);
}

/* Variante « une » */
.story--une { display: flex; flex-direction: column; gap: 16px; }
.story--une .story-art--une { aspect-ratio: 16 / 9; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.story--une .story-title { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 0.96; letter-spacing: -0.028em; }
.story--une .story-standfirst {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  columns: 2;
  column-gap: var(--col-gap);
  column-rule: 1px solid var(--rule);
}

/* Variante « feature » */
.story--feature { display: flex; flex-direction: column-reverse; gap: 12px; }
.story--feature .story-art { aspect-ratio: 4 / 3; border-bottom: 1px solid var(--ink); }
.story--feature .story-title { font-size: 1.35rem; line-height: 1.08; }
.story--feature .story-standfirst { font-size: 0.98rem; }

/* Variante « list » */
.story--list {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  padding-block: 18px;
  border-top: 1px solid var(--rule);
}
.story--list .story-title { font-size: 1.28rem; line-height: 1.1; }
.story--list .story-standfirst { font-size: 0.95rem; margin-bottom: 8px; }

/* Variante « brief » */
.story--brief { padding-block: 12px; border-top: 1px solid var(--rule); }
.story--brief .kicker { font-size: 0.68rem; letter-spacing: 0.16em; margin-bottom: 5px; }
.story--brief .story-title { font-size: 1.05rem; line-height: 1.16; margin-bottom: 6px; }
.story--brief .story-meta { font-size: 0.7rem; }

/* La une */
.une { padding-block: clamp(24px, 3.5vw, 44px) clamp(36px, 5vw, 64px); }
.une-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 14px;
  border-bottom: 3px double var(--ink);
  margin-bottom: clamp(20px, 3vw, 34px);
}
.une-head .eyebrow { margin: 0; }
.une-head h1 {
  flex: 1 1 100%;
  margin: 0;
  font-size: clamp(1.7rem, 3.3vw, 2.7rem);
  line-height: 1.04;
  max-width: 24ch;
}
.une-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 3fr);
  gap: var(--col-gap);
}
.une-rail { min-width: 0; }
.une-rail--left { border-right: 1px solid var(--rule); padding-right: var(--col-gap); }
.une-rail--right { border-left: 1px solid var(--rule); padding-left: var(--col-gap); }
.rail-title {
  margin: 0 0 6px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.rail-empty { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }
.brief-list { list-style: none; margin: 0; padding: 0; counter-reset: brief; }
.brief-list > li { counter-increment: brief; position: relative; padding-left: 30px; }
.brief-list > li::before {
  content: counter(brief, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  font: 700 0.82rem/1 var(--font-meta);
  color: var(--red);
  letter-spacing: 0.04em;
}
.une-main { min-width: 0; }
.une-secondaires {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--col-gap);
  margin-top: clamp(22px, 3vw, 34px);
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 3px double var(--ink);
}
.une-placeholder { border: 3px double var(--ink); padding: clamp(22px, 4vw, 40px); }
.une-placeholder h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.une-placeholder p:last-of-type { color: var(--muted); margin-bottom: 26px; }
.plate-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.plate-grid span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--newsprint);
  border: 1px solid var(--rule);
  font: 700 clamp(1.4rem, 3vw, 2.4rem)/1 var(--font-display);
}
.plate-grid span:nth-child(2n) { background: var(--ink); color: #fff; border-color: var(--ink); }
.plate-grid span:nth-child(3n) { color: var(--red); }

.edito { border-bottom: 1px solid var(--rule); padding-bottom: 20px; }
.edito-text { margin: 14px 0 20px; font-size: 0.99rem; line-height: 1.62; }
.compteurs { display: grid; gap: 0; margin: 0; padding: 0; }
.compteurs > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.compteurs dt {
  font: 600 0.74rem/1.2 var(--font-meta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.compteurs dd { margin: 0; font: 700 1.5rem/1 var(--font-display); letter-spacing: -0.02em; }

/* Têtes de section */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: clamp(18px, 2.4vw, 28px);
}
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; letter-spacing: -0.01em; }
.section-note {
  margin: 0;
  font: 600 0.78rem/1.3 var(--font-meta);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 24px;
}

/* Sommaire des rubriques */
.sommaire { background: var(--newsprint); }
.sommaire-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-dark); }
.sommaire-list li { border-bottom: 1px solid var(--rule-dark); }
.sommaire-list a {
  display: grid;
  grid-template-columns: 54px minmax(160px, 2fr) minmax(0, 4fr) auto 28px;
  align-items: baseline;
  gap: 16px;
  padding: 16px 6px;
  text-decoration: none;
  transition: background-color 0.15s linear, padding-left 0.15s linear;
}
.sommaire-list a:hover { background: var(--paper); padding-left: 16px; color: var(--ink); }
.sommaire-num { font: 700 0.9rem/1 var(--font-meta); color: var(--red); letter-spacing: 0.06em; }
.sommaire-name {
  font: 700 clamp(1.3rem, 2.2vw, 1.85rem)/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.sommaire-desc { color: var(--muted); font-size: 0.96rem; }
.sommaire-count {
  font: 600 0.76rem/1 var(--font-meta);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.sommaire-arrow { font-size: 1.2rem; color: var(--red); justify-self: end; }
.sommaire-list a:hover .sommaire-arrow { transform: translateX(4px); }

/* Colonnes de dépêches */
.story-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.story-columns > .story:nth-child(2n) { border-left: 1px solid var(--rule); padding-left: var(--col-gap); }
.story-columns > .story:nth-child(-n + 2) { border-top: 2px solid var(--ink); }

/* Cahiers par rubrique */
.cahier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.cahier { min-width: 0; }
.cahier + .cahier { border-left: 1px solid rgb(255 255 255 / 18%); padding-left: var(--col-gap); }
.cahier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--red);
  margin-bottom: 16px;
}
.cahier-head h2 { margin: 0; font-size: 1.5rem; text-transform: uppercase; }
.cahier .text-link { color: #fff; border-bottom-color: var(--red); }
.cahier .text-link:hover { color: #ff7d6a; }
.cahier .story--feature .story-art { border-bottom-color: rgb(255 255 255 / 30%); }
.cahier .story--feature .story-art img { filter: grayscale(1) contrast(1.1) brightness(0.95); }
.cahier .story--brief { border-top-color: rgb(255 255 255 / 18%); }
.cahier .story-standfirst { color: #d9d5cc; }
.cahier .story-meta { color: #b3aea4; }
.cahier .story-author { color: #fff; }
.cahier .kicker { color: #ff7d6a; }
.cahier .story-title a:hover { color: #fff; }
.cahier .story-plate { background: repeating-linear-gradient(135deg, #1b1b1c 0 9px, #232323 9px 18px); border-color: rgb(255 255 255 / 20%); }
.cahier .story-plate span { color: #fff; }

/* Bandeau de recherche */
.bandeau { background: var(--red); color: #fff; padding-block: clamp(34px, 5vw, 60px); }
.bandeau-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}
.bandeau h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.3rem); max-width: 22ch; }
.bandeau .search-form { border-color: #fff; background: #fff; max-width: none; }
.bandeau .search-form button { background: var(--ink); border-left-color: var(--ink); }
.bandeau .search-form button:hover { background: var(--red-deep); border-left-color: var(--red-deep); }
.bandeau .search-form:focus-within { outline-color: #fff; }

/* Têtes de page et états vides */
.page-head { margin-bottom: clamp(22px, 3vw, 34px); padding-bottom: 16px; border-bottom: 3px double var(--ink); }
.page-head h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.6rem); text-transform: uppercase; letter-spacing: -0.02em; }
.page-head--archive { background: var(--newsprint); padding-block: clamp(26px, 4vw, 46px) 20px; border-bottom-width: 3px; }
.page-count {
  margin: 12px 0 0;
  font: 600 0.78rem/1 var(--font-meta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.archive-description { max-width: 68ch; margin-top: 12px; color: var(--ink-soft); }
.archive-description p:last-child { margin: 0; }
.page-head--archive .search-form { margin-top: 18px; }
.empty-state { border: 3px double var(--ink); padding: clamp(24px, 4vw, 44px); max-width: 720px; }
.empty-state h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.empty-state p { color: var(--muted); }
.empty-state .search-form { margin-top: 20px; }

/* Pagination */
.pagination { margin-top: clamp(30px, 4vw, 48px); padding-top: 20px; border-top: 3px double var(--ink); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font: 700 0.86rem/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-numbers.current { background: var(--ink); color: #fff; }
a.page-numbers:hover { background: var(--red); border-color: var(--red); color: #fff; }
.page-numbers.dots { border-color: transparent; }

/* Article */
.reading-rule { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; background: rgb(12 12 13 / 8%); }
.admin-bar .reading-rule { top: 32px; }
.reading-rule span { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
.single-main { max-width: 1040px; }
.article-head { max-width: 780px; margin: 0 auto clamp(24px, 3.4vw, 40px); text-align: center; }
.article-head h1 { font-size: clamp(2.1rem, 5.4vw, 4.1rem); line-height: 0.98; letter-spacing: -0.03em; text-transform: uppercase; }
.article-head .kicker { margin-bottom: 14px; }
.article-standfirst {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 auto 24px;
}
.article-byline {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 3px double var(--ink);
}
.byline-text { display: grid; gap: 5px; justify-items: center; }
.byline-author {
  font: 700 0.92rem/1 var(--font-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.byline-details {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font: 400 0.9rem/1.3 var(--font-body);
  color: var(--muted);
}
.article-cover { margin: 0 0 clamp(26px, 4vw, 44px); }
.article-cover img { width: 100%; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.article-cover figcaption {
  margin-top: 8px;
  font: 400 0.86rem/1.4 var(--font-body);
  color: var(--muted);
  text-align: center;
}

/* Corps de texte */
.entry-content { max-width: 720px; margin-inline: auto; font-size: 1.12rem; line-height: 1.72; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > * { margin-block: 0 1.25em; }
.entry-content h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: 1.7em; text-transform: uppercase; }
.entry-content h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-top: 1.5em; }
.entry-content h2 + p, .entry-content h3 + p { margin-top: 0.2em; }
.entry-content a { color: var(--red-deep); text-decoration-thickness: 2px; }
.entry-content a:hover { color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li::marker { color: var(--red); font-weight: 700; }
.entry-content--article > p:first-of-type::first-letter {
  float: left;
  margin: 8px 10px 0 0;
  font: 700 4.2rem/0.78 var(--font-display);
  color: var(--red);
}
.entry-content blockquote, .entry-content .wp-block-quote {
  margin-inline: 0;
  padding: 6px 0 6px 22px;
  border-left: 4px solid var(--red);
  font: 700 1.3rem/1.32 var(--font-display);
  letter-spacing: -0.01em;
}
.entry-content blockquote cite, .entry-content .wp-block-quote cite {
  display: block;
  margin-top: 10px;
  font: 400 0.92rem/1.4 var(--font-body);
  color: var(--muted);
}
.entry-content pre { overflow-x: auto; padding: 16px; background: var(--ink); color: #f4f2ec; font-size: 0.9rem; }
.entry-content code { font-size: 0.92em; }
.entry-content :not(pre) > code { padding: 2px 5px; background: var(--newsprint); border: 1px solid var(--rule); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.entry-content th, .entry-content td { padding: 9px 11px; border-bottom: 1px solid var(--rule); text-align: left; }
.entry-content th { font-family: var(--font-meta); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; }
.entry-content hr, .wp-block-separator { border: 0; height: 3px; width: 100%; background: var(--ink); margin-block: 2em; }
.entry-content img { border: 1px solid var(--rule); }
.entry-content figcaption, .wp-caption-text, .gallery-caption { font-size: 0.86rem; color: var(--muted); text-align: center; margin-top: 7px; }
.entry-content .alignwide { max-width: 1040px; margin-inline: calc(50% - min(520px, 50vw - var(--gutter))); width: auto; }
.entry-content .alignfull { max-width: none; margin-inline: calc(50% - 50vw); 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; }
.page-links { font-family: var(--font-meta); font-weight: 700; letter-spacing: 0.1em; }
.post-password-form { max-width: 720px; margin-inline: auto; padding: 20px; border: 3px double var(--ink); }
.post-password-form input[type="password"] { padding: 10px 12px; border: 2px solid var(--ink); }
.post-password-form input[type="submit"] {
  padding: 11px 18px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: 700 0.86rem/1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Pied d’article, partage, navigation */
.article-footer {
  max-width: 720px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding-top: 20px;
  border-top: 3px double var(--ink);
  display: grid;
  gap: 18px;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a {
  padding: 6px 11px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font: 600 0.78rem/1 var(--font-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.article-tags a::before { content: "#"; color: var(--red); margin-right: 2px; }
.article-tags a:hover { background: var(--ink); color: #fff; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-label {
  font: 700 0.76rem/1 var(--font-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.share a, .copy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid var(--ink);
  background: transparent;
  text-decoration: none;
  font: 700 0.78rem/1 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.share a:hover, .copy-link:hover { background: var(--ink); color: #fff; }
.copy-link.is-done { background: var(--red); border-color: var(--red); color: #fff; }
.post-navigation { max-width: 720px; margin: clamp(30px, 4vw, 44px) auto 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 16px 18px;
  text-decoration: none;
  font: 700 1.05rem/1.2 var(--font-display);
}
.post-navigation .nav-next { grid-column: 2; text-align: right; border-left: 1px solid var(--rule); }
.post-navigation a span {
  font: 600 0.72rem/1 var(--font-meta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.post-navigation a:hover { background: var(--newsprint); color: var(--ink); }
.related { margin-top: clamp(40px, 5vw, 70px); padding-top: clamp(24px, 3vw, 36px); border-top: 3px double var(--ink); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.related-grid > .story + .story { border-left: 1px solid var(--rule); padding-left: var(--col-gap); }

/* Réactions */
.comments { max-width: 720px; margin: clamp(40px, 5vw, 70px) auto 0; }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .children { padding-left: clamp(14px, 3vw, 34px); border-left: 2px solid var(--rule); margin-left: 6px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--font-meta); font-weight: 700; letter-spacing: 0.06em; }
.comment-author .avatar { border: 1px solid var(--rule); filter: grayscale(1); }
.comment-author .says { display: none; }
.comment-metadata { font: 400 0.8rem/1.4 var(--font-body); color: var(--muted); margin: 4px 0 10px 54px; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content p:last-child { margin: 0; }
.reply a { font: 700 0.76rem/1 var(--font-meta); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); text-decoration: none; }
.reply a:hover { color: var(--ink); }
.bypostauthor > .comment-body { border-left: 3px solid var(--red); padding-left: 14px; }
.comment-respond { margin-top: 28px; padding: clamp(18px, 3vw, 28px); background: var(--newsprint); border: 1px solid var(--rule); }
.comment-reply-title { font-size: 1.4rem; text-transform: uppercase; }
.comment-form { display: grid; gap: 13px; }
.comment-form label { display: block; font: 600 0.8rem/1.2 var(--font-meta); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 5px; }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.comment-form input:focus-visible, .comment-form textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-family: var(--font-body); font-weight: 400; text-transform: none; letter-spacing: 0; margin: 0; }
.comment-form .submit { justify-self: start; }
.comments-closed { color: var(--muted); }
.comment-navigation .nav-links { display: flex; gap: 14px; font-family: var(--font-meta); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; }

/* 404 */
.not-found { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.not-found-code {
  margin: 0;
  font: 700 clamp(5rem, 16vw, 12rem)/0.82 var(--font-display);
  letter-spacing: -0.05em;
  color: var(--red);
}
.not-found h1 { font-size: clamp(1.8rem, 4vw, 3rem); text-transform: uppercase; }
.not-found .search-form { margin: 20px 0; }
.not-found-text p { color: var(--ink-soft); }

/* Pied de page */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--ink);
  color: #cfcbc2;
  border-top: 6px solid var(--red);
  font-family: var(--font-body);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(20px, 3vw, 44px);
  padding-block: clamp(34px, 4.5vw, 58px);
}
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark-name { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.site-footer .wordmark:hover .wordmark-dot { background: #fff; }
.footer-ours p { margin: 14px 0 0; max-width: 36ch; font-size: 0.95rem; }
.footer-signature { color: #8f8b83; font-style: italic; }
.footer-col h2 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgb(255 255 255 / 22%);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: #e2ded5; text-decoration: none; display: flex; justify-content: space-between; gap: 12px; }
.footer-col a:hover { color: #ff7d6a; }
.footer-col a span { font: 600 0.76rem/1.4 var(--font-meta); color: #8f8b83; letter-spacing: 0.08em; }
.footer-search .search-form { border-color: #fff; background: rgb(255 255 255 / 6%); max-width: none; }
.footer-search .search-form input { color: #fff; }
.footer-search .search-form input::placeholder { color: #8f8b83; }
.footer-search .search-form button { background: var(--red); border-left-color: #fff; color: #fff; }
.footer-search .search-form button:hover { background: #fff; color: var(--ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  padding-block: 18px;
  border-top: 1px solid rgb(255 255 255 / 18%);
  font: 600 0.78rem/1.4 var(--font-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f8b83;
}
.footer-bottom a { color: #e2ded5; text-decoration: none; }
.footer-bottom a:hover { color: #ff7d6a; }

/* Responsive */
@media (max-width: 1180px) {
  .une-grid { grid-template-columns: minmax(0, 3.4fr) minmax(0, 6.6fr); }
  .une-rail--left { grid-column: 1; grid-row: 1; }
  .une-main { grid-column: 2; grid-row: 1; }
  .une-rail--right {
    grid-column: 1 / -1;
    grid-row: 2;
    border-left: 0;
    padding-left: 0;
    padding-top: 22px;
    border-top: 3px double var(--ink);
  }
  .une-rail--right { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--col-gap); align-items: start; }
  .edito { border-bottom: 0; padding-bottom: 0; }
  .sommaire-list a { grid-template-columns: 46px minmax(140px, 1.4fr) minmax(0, 3fr) auto 24px; }
}

@media (max-width: 980px) {
  .masthead-inner { grid-template-columns: auto minmax(0, 1fr) auto; text-align: left; }
  .masthead-note { display: none; }
  .branding { text-align: center; }
  .menu-toggle { display: inline-flex; }
  .masthead-search-text { display: none; }
  .navbar { position: static; }
  .navbar > .container { padding-inline: 0; }
  .nav-menu {
    display: none;
    flex-direction: column;
    border: 0;
    border-bottom: 1px solid var(--ink);
  }
  .nav-menu.is-open, .navbar.is-open .nav-menu { display: flex; }
  .nav-menu > li, .nav-menu > li:first-child { border: 0; border-top: 1px solid var(--rule); }
  .nav-menu a { padding: 14px var(--gutter); }
  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    border: 0;
    border-top: 1px solid var(--rule);
    background: var(--newsprint);
  }
  .nav-menu .sub-menu a { padding-left: calc(var(--gutter) + 18px); }
  .story--une .story-standfirst { columns: 1; }
  .cahier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .cahier:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .related-grid > .story:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .bandeau-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .navbar { top: 46px; }
  .admin-bar .reading-rule { top: 46px; }
}

@media (max-width: 720px) {
  .ribbon-inner { flex-wrap: wrap; justify-content: center; text-align: center; gap: 4px 14px; padding-block: 8px; }
  .ribbon-devise { flex: 1 1 100%; }
  .une-grid { grid-template-columns: minmax(0, 1fr); }
  .une-rail--left {
    grid-column: 1;
    grid-row: 2;
    border-right: 0;
    padding-right: 0;
    padding-top: 22px;
    border-top: 3px double var(--ink);
  }
  .une-main { grid-column: 1; grid-row: 1; }
  .une-rail--right { grid-row: 3; grid-template-columns: minmax(0, 1fr); }
  .une-secondaires { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .une-secondaires .story--feature + .story--feature { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 18px; }
  .story-columns { grid-template-columns: minmax(0, 1fr); }
  .story-columns > .story:nth-child(2n) { border-left: 0; padding-left: 0; }
  .story-columns > .story:nth-child(2) { border-top: 1px solid var(--rule); }
  .story-columns > .story:first-child { border-top: 2px solid var(--ink); }
  .sommaire-list a { grid-template-columns: 34px minmax(0, 1fr) auto; row-gap: 4px; }
  .sommaire-desc { grid-column: 2 / -1; }
  .cahier-grid { grid-template-columns: minmax(0, 1fr); }
  .cahier + .cahier { border-left: 0; padding-left: 0; border-top: 1px solid rgb(255 255 255 / 18%); padding-top: 26px; }
  .related-grid { grid-template-columns: minmax(0, 1fr); }
  .related-grid > .story + .story { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 20px; }
  .not-found { grid-template-columns: minmax(0, 1fr); }
  .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
  .post-navigation .nav-next { grid-column: 1; text-align: left; border-left: 0; border-top: 1px solid var(--rule); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .plate-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .story--list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .datestamp--list {
    width: auto;
    display: flex;
    align-items: baseline;
    gap: 7px;
    border-right: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 6px;
  }
  .datestamp--list .datestamp-day { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media print {
  .ribbon, .navbar, .masthead-search, .menu-toggle, .site-footer, .bandeau, .share, .post-navigation, .reading-rule, .comments { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .masthead { border-bottom: 2px solid #000; }
  a { text-decoration: none; }
  .entry-content { max-width: none; }
}
