.member-strip {
  position: relative;
  z-index: 120;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px max(14px, calc((100vw - var(--page-width, 1180px)) / 2));
  border-bottom: 1px solid rgba(241, 223, 189, 0.2);
  background: #17110d;
  color: #f1dfbd;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.member-strip__brand { color: #fff1cf; white-space: nowrap; }
.member-strip__brand::before { content: "●"; margin-right: 7px; color: #9f221d; }
.member-strip__promise { flex: 1; color: #cdbb98; text-align: center; text-transform: none; }
.member-strip__actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.member-strip button {
  padding: 0;
  border: 0;
  border-bottom: 1px dotted #8e7659;
  background: transparent;
  color: #f1dfbd;
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
}
.member-strip button:hover, .member-strip button:focus-visible { color: #fff; border-bottom-color: #9f221d; }
.member-strip__status { min-width: 105px; color: #c87368; text-align: right; text-transform: none; }

.section-ribbon {
  margin-top: 12px;
  padding: 5px 0;
  border-top: 3px double var(--ink, #1e1812);
  border-bottom: 1px solid var(--ink, #1e1812);
  overflow-x: auto;
  scrollbar-width: thin;
}
.section-ribbon__list {
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.section-ribbon li + li::before { content: "◆"; padding: 0 9px; color: var(--red, #9f221d); font-size: 0.5rem; }
.section-ribbon a, .section-ribbon button {
  padding: 2px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink, #1e1812);
  font-family: var(--utility, "Courier New", monospace);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.section-ribbon a:hover, .section-ribbon a:focus-visible,
.section-ribbon button:hover, .section-ribbon button:focus-visible { color: var(--red-dark, #761712); border-bottom-color: var(--red, #9f221d); }
.section-ribbon [data-section-current="true"] { color: var(--red-dark, #761712); border-bottom-color: var(--red, #9f221d); }
.section-ribbon [data-coming-soon]::after { content: " bientôt"; color: var(--muted, #705c43); font-size: 0.52rem; font-weight: 700; }
.section-ribbon__status { min-height: 1em; margin: 3px 0 0; color: var(--red-dark, #761712); font-family: var(--utility, "Courier New", monospace); font-size: 0.62rem; text-align: center; }

.collection-brandbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft, #8d7458);
  text-align: left;
}
.collection-brandbar__title {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink, #1e1812);
  text-decoration: none;
  text-transform: uppercase;
}
.collection-brandbar__lead {
  font-family: var(--display, Georgia, serif);
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink, #1e1812);
  line-height: 1;
}
.collection-brandbar__name {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--display, Georgia, serif);
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0.01em;
}
.collection-brandbar__red {
  color: var(--red, #9f221d);
  font-weight: 900;
}
.collection-brandbar__dark {
  color: var(--ink, #1e1812);
  font-weight: 900;
}
.collection-brandbar__title:hover .collection-brandbar__red {
  color: var(--red-dark, #761712);
}
.collection-brandbar__pixel { display: grid; grid-template-columns: 42px auto; align-items: center; gap: 0 8px; min-width: 155px; padding: 6px 10px; border: 1px solid var(--rule-soft, #8d7458); border-radius: 999px; text-align: left; }
.collection-brandbar__pixel .pixel-stamp__avatar { grid-row: 1 / 3; width: 42px; height: 42px; overflow: hidden; border: 1px solid var(--ink, #1e1812); border-radius: 50%; }
.collection-brandbar__pixel img { width: 100%; height: 100%; object-fit: cover; }
.collection-brandbar__pixel > strong { font-family: var(--display, Georgia, serif); font-size: 1rem; }
.collection-brandbar__pixel > span { font-family: var(--utility, "Courier New", monospace); font-size: 0.56rem; }

/* Masthead unifié pour toutes les pages (Une, Articles, Collections) */
.masthead__topline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  font-family: var(--utility, "Courier New", Courier, monospace);
  font-size: clamp(0.66rem, 1.5vw, 0.82rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink, #1e1812);
}
.masthead__topline > :first-child { justify-self: start; }
.masthead__topline > :nth-child(2) { justify-self: center; }
.masthead__topline > :last-child { justify-self: end; }

.masthead__main {
  display: grid;
  grid-template-columns: minmax(100px, 150px) 1fr minmax(100px, 150px);
  gap: clamp(12px, 2.5vw, 24px);
  align-items: center;
  margin: 10px 0 12px;
}

.masthead__title-block {
  text-align: center;
}

.ai-credit,
.pixel-stamp {
  min-height: 108px;
  padding: 10px;
  border: 2px solid var(--rule, #7e6348);
  background: rgba(255, 244, 211, 0.48);
  text-align: center;
  overflow-wrap: anywhere;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pixel-stamp {
  border-radius: 50% 50% 10px 10px / 22% 22% 10px 10px;
}

.pixel-stamp:hover,
.pixel-stamp:focus-visible {
  transform: translateY(-2px);
  border-color: var(--red, #9f221d);
  background: rgba(255, 238, 195, 0.75);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  outline: none;
}

.ai-credit span,
.ai-credit em,
.pixel-stamp span {
  display: block;
  color: var(--ink-soft, #4b3a2b);
  font-family: var(--utility, "Courier New", monospace);
  font-size: 0.72rem;
}

.ai-credit strong,
.pixel-stamp strong {
  display: block;
  margin: 4px 0;
  color: var(--ink, #1e1812);
  font-family: var(--utility, "Courier New", monospace);
  font-size: 1.05rem;
  line-height: 1.1;
}

.ai-credit em {
  color: var(--red, #9f221d);
  font-style: normal;
  font-weight: 700;
}

.pixel-stamp__avatar {
  width: 52px;
  height: 52px;
  margin: 0 auto 4px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink, #1e1812);
  border-radius: 50%;
  background: var(--paper-light, #fbf0d4);
  overflow: hidden;
}

.pixel-stamp__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pixel-stamp .pixel-info-pulse,
.pixel-info-pulse {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--red, #9f221d);
  color: var(--paper-light, #fbf0d4);
  line-height: 1;
}

.member-callout {
  margin-top: clamp(18px, 3vw, 30px);
  padding: clamp(14px, 2.2vw, 24px);
  border: 3px double var(--ink, #1e1812);
  background: linear-gradient(135deg, rgba(159,34,29,0.16), rgba(255,246,218,0.64));
  color: var(--ink, #1e1812);
  text-align: center;
}
.member-callout__eyebrow { margin: 0 0 4px; color: var(--red-dark, #761712); font-family: var(--utility, "Courier New", monospace); font-size: 0.64rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.member-callout h2 { margin: 0; font-family: var(--display, Georgia, serif); font-size: clamp(1.25rem, 3vw, 1.8rem); line-height: 1; text-transform: uppercase; }
.member-callout > p:not(.member-callout__eyebrow) { max-width: 720px; margin: 8px auto 0; font-size: 0.9rem; line-height: 1.35; }
.member-callout__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 11px; }
.member-callout__actions button,
.member-callout__rss { display: inline-block; padding: 6px 12px; border: 1px solid var(--ink, #1e1812); background: var(--ink, #1e1812); color: var(--paper-light, #fbf0d4); font-family: var(--utility, "Courier New", monospace); font-size: 0.66rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.member-callout__actions button + button,
.member-callout__rss--secondary { background: transparent; color: var(--ink, #1e1812); }
.member-callout__actions button:hover, .member-callout__actions button:focus-visible,
.member-callout__rss:hover, .member-callout__rss:focus-visible { border-color: var(--red, #9f221d); background: var(--red, #9f221d); color: var(--paper-light, #fbf0d4); }
.member-callout > p.member-callout__status { min-height: 0.8em; margin: 5px 0 0; font-family: var(--utility, "Courier New", monospace); font-size: 0.62rem; text-transform: uppercase; }

.masthead-title {
  display: block !important;
  margin: 0 !important;
  color: var(--ink, #1e1812) !important;
  font-family: var(--display, "Times New Roman", Georgia, serif) !important;
  font-size: clamp(2.3rem, 6vw, 4.35rem) !important;
  font-weight: 900 !important;
  line-height: 0.76 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  text-wrap: balance !important;
  text-shadow: 1px 1px 0 rgba(255, 247, 219, 0.65) !important;
  text-align: center !important;
  text-decoration: none !important;
}
.masthead-title span { display: block !important; }
.masthead-title__small {
  margin-bottom: 0.12em !important;
  color: var(--ink, #1e1812) !important;
  font-family: var(--display, "Times New Roman", Georgia, serif) !important;
  font-size: 0.43em !important;
  font-weight: 900 !important;
  line-height: 0.85 !important;
  letter-spacing: 0.11em !important;
  text-transform: uppercase !important;
}
.masthead-title__red {
  color: var(--red, #9f221d) !important;
  font-family: var(--display, "Times New Roman", Georgia, serif) !important;
  font-weight: 900 !important;
  line-height: 0.82 !important;
  text-transform: uppercase !important;
}
.masthead-title__main {
  color: var(--ink, #1e1812) !important;
  font-family: var(--display, "Times New Roman", Georgia, serif) !important;
  font-weight: 900 !important;
  line-height: 0.82 !important;
  text-transform: uppercase !important;
}
.masthead-title:hover,
.masthead-title:focus-visible {
  text-decoration: none !important;
}
.masthead-title:hover .masthead-title__red,
.masthead-title:focus-visible .masthead-title__red {
  color: var(--red-dark, #761712) !important;
}
.masthead__title-block p,
.masthead__title-block .masthead__subtitle,
.masthead-subtitle {
  margin: 8px 0 0 !important;
  color: var(--ink, #1e1812) !important;
  font-family: var(--utility, "Courier New", monospace) !important;
  font-size: clamp(0.82rem, 1.8vw, 1.25rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-align: center !important;
}

.masthead__title-block .masthead__subtitle {
  border: 0;
  line-height: 1.2 !important;
}

.edition-archives__select { width: min(100%, 660px) !important; max-width: 660px !important; }

.pixel-stamp { cursor: pointer; }
.pixel-stamp-shell { width: 100%; min-width: 0; text-align: center; }
.pixel-stamp-shell .pixel-stamp { box-sizing: border-box; width: 100%; }
.pixel-manifesto-link {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 5px auto 0;
  color: var(--red-dark, #761712);
  font-family: var(--utility, "Courier New", monospace);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px dotted var(--red, #9f221d);
}
.pixel-manifesto-link:hover, .pixel-manifesto-link:focus-visible { color: var(--red, #9f221d); }

.shared-pixel-dialog[hidden] { display: none; }
.shared-pixel-dialog { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 18px; }
.shared-pixel-dialog__backdrop { position: absolute; inset: 0; background: rgba(23, 17, 13, 0.82); }
.shared-pixel-dialog__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  padding: clamp(20px, 4vw, 34px);
  border: 3px double var(--ink, #1e1812);
  background: var(--paper-light, #fbf0d4);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  color: var(--ink, #1e1812);
  font-family: var(--serif, Georgia, serif);
}
.shared-pixel-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-right: 36px;
}
.shared-pixel-dialog__avatar {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--ink, #1e1812);
  object-fit: cover;
}
.shared-pixel-dialog__panel h2 { margin: 0 0 6px; font-family: var(--display, Georgia, serif); text-transform: uppercase; }
.shared-pixel-dialog__section h3 { margin: 14px 0 8px; font-family: var(--display, Georgia, serif); font-size: 1.3rem; text-transform: uppercase; color: var(--ink, #1e1812); }
.shared-pixel-dialog__panel p { margin: 0 0 11px; line-height: 1.55; }
.shared-pixel-dialog__section ul { margin: 0 0 14px; padding-left: 20px; }
.shared-pixel-dialog__section li { margin-bottom: 4px; }
.shared-pixel-dialog__divider { border: 0; border-top: 1px dashed var(--rule, #7e6348); margin: 20px 0; }
.shared-pixel-dialog__footer { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--rule-soft, rgba(77, 52, 31, 0.28)); text-align: center; font-family: var(--utility, "Courier New", monospace); font-size: 0.78rem; font-weight: 700; color: var(--muted, #705c43); text-transform: uppercase; }
.shared-pixel-dialog__close {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px;
  border: 0; background: var(--ink, #1e1812); color: var(--paper-light, #fbf0d4);
  font-size: 1.3rem; cursor: pointer;
}

@media (max-width: 980px) {
  .section-ribbon {
    overflow-x: visible;
    padding: 6px 4px;
  }
  .section-ribbon__list {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 4px;
  }
  .section-ribbon li + li::before {
    padding: 0 5px;
  }
}

@media (max-width: 760px) {
  .masthead__topline {
    grid-template-columns: 1fr;
    gap: 3px;
    text-align: center;
  }
  .masthead__topline > * {
    justify-self: center !important;
  }
  .section-ribbon a,
  .section-ribbon button {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 4px 6px;
  }
  .masthead-nav__link,
  .pixel-manifesto-link,
  .member-callout__rss {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .member-strip { gap: 6px; padding-inline: 10px; font-size: 0.55rem; }
  .member-strip__promise { display: none; }
  .member-strip__status { display: none; }
  .member-strip__actions { gap: 6px; }
  .section-ribbon__list { justify-content: flex-start; }
  .masthead__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
  }
  .masthead__title-block { grid-column: 1 / -1; grid-row: 1; }
  .masthead__main > .ai-credit { grid-column: 1; grid-row: 2; }
  .masthead__main > .pixel-stamp-shell { grid-column: 2; grid-row: 2; }
  .ai-credit,
  .pixel-stamp { min-height: 0; padding: 7px; }
  .ai-credit span,
  .ai-credit em,
  .pixel-stamp span { font-size: 0.62rem; }
  .ai-credit strong,
  .pixel-stamp strong { font-size: 0.88rem; }
  .pixel-stamp__avatar { width: 38px; height: 38px; }
  .masthead-title {
    font-size: clamp(1.69rem, 9.1vw, 2.28rem) !important;
    line-height: 0.82 !important;
  }
  .pixel-stamp-shell { max-width: none; }
  .collection-brandbar { gap: 8px; margin-bottom: 10px; padding-bottom: 8px; }
  .collection-brandbar__pixel { min-width: 0; grid-template-columns: 34px auto; padding: 4px 7px; }
  .collection-brandbar__pixel .pixel-stamp__avatar { width: 34px; height: 34px; }
  .collection-brandbar__pixel > span { display: none; }
  .member-callout { margin-top: 18px; padding: 9px 10px; }
  .member-callout h2 { font-size: 1.05rem; }
  .member-callout > p:not(.member-callout__eyebrow):not(.member-callout__status) {
    margin-top: 5px;
    font-size: 0.76rem;
    line-height: 1.22;
  }
  .member-callout__actions { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 7px; }
  .member-callout__actions button { flex: 1; padding: 5px 6px; font-size: 0.58rem; }
  .shared-pixel-dialog { align-items: end; padding: 8px; }
  .shared-pixel-dialog__panel { width: 100%; max-height: 92vh; max-height: 92dvh; overflow: auto; }
  .shared-pixel-dialog__close { width: 42px; height: 42px; }
}

/* Les Unes ont leur propre têtière. Sur téléphone, on conserve le grand titre
   puis on transforme les deux cartouches en repères discrets, au lieu de les
   laisser se battre avec la grille générique des pages de collection. */
@media (max-width: 640px) {
  body[data-edition-date] .masthead__main {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
      "title title title"
      "credit pixel manifesto";
    align-items: center;
    gap: 3px 12px;
    margin: 8px 0;
  }
  body[data-edition-date] .masthead__title-block {
    grid-area: title;
    width: 100%;
  }
  body[data-edition-date] .masthead__title-block p {
    max-width: 340px;
    margin: 4px auto 0 !important;
    font-size: clamp(0.48rem, 2.2vw, 0.56rem) !important;
    line-height: 1.05 !important;
    letter-spacing: 0.035em !important;
  }
  body[data-edition-date] .masthead__main > .ai-credit {
    grid-area: credit;
  }
  body[data-edition-date] .masthead__main > .pixel-stamp-shell {
    grid-area: pixel;
  }
  body[data-edition-date] .ai-credit,
  body[data-edition-date] .pixel-stamp-shell .pixel-stamp {
    box-sizing: border-box;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 4px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    white-space: nowrap;
  }
  body[data-edition-date] .ai-credit:hover,
  body[data-edition-date] .pixel-stamp-shell .pixel-stamp:hover {
    transform: none;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }
  body[data-edition-date] .ai-credit > span,
  body[data-edition-date] .ai-credit > strong,
  body[data-edition-date] .ai-credit > em {
    display: none;
  }
  body[data-edition-date] .ai-credit::after {
    content: "Coulisses";
    display: inline;
    margin: 0;
    color: var(--red-dark, #761712);
    font-size: 0.58rem;
    letter-spacing: 0.02em;
    opacity: 1;
  }
  body[data-edition-date] .pixel-stamp-shell {
    display: contents;
  }
  body[data-edition-date] .pixel-stamp-shell .pixel-stamp {
    display: inline-flex;
    grid-area: pixel;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: 4px;
  }
  body[data-edition-date] .pixel-stamp-shell .pixel-stamp > span {
    display: none;
  }
  body[data-edition-date] .pixel-stamp-shell .pixel-stamp strong {
    display: inline;
    margin: 0;
    font-size: 0.64rem;
  }
  body[data-edition-date] .pixel-stamp-shell .pixel-stamp__avatar {
    width: 21px;
    height: 21px;
    margin: 0;
    border-width: 1px;
  }
  body[data-edition-date] .pixel-stamp-shell .pixel-manifesto-link {
    display: inline-block;
    grid-area: manifesto;
    justify-self: start;
    margin: 0;
    font-size: 0.52rem;
  }
  body[data-edition-date] .edition-meta {
    min-height: 0;
    margin-top: 2px;
    padding: 3px 0;
  }
  body[data-edition-date] .edition-meta #header-edition-title,
  body[data-edition-date] .edition-meta #header-location {
    display: none;
  }
  body[data-edition-date] .edition-meta time {
    flex-basis: auto;
    font-size: 0.52rem;
    line-height: 1;
  }
}

.print-btn {
  padding: 2px 8px;
  border: 1px solid var(--rule, #7e6348);
  background: transparent;
  color: var(--ink-soft, #4b3a2b);
  font-family: var(--utility, "Courier New", monospace);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}
.print-btn:hover, .print-btn:focus-visible {
  border-color: var(--red, #9f221d);
  color: var(--red-dark, #761712);
}

@media print {
  .member-strip, .section-ribbon, .member-callout, .shared-pixel-dialog, .pixel-manifesto-link, .pixel-info-pulse, .print-btn {
    display: none !important;
  }
}
