/*
 * Komelate — directions visuelles des articles
 *
 * Cette feuille ne remplace pas la base typographique du site. Elle applique
 * quinze compositions autonomes au même balisage éditorial. Chaque section
 * commence par ses propres variables, puis décrit son héro, son corps et ses
 * modules. Tous les effets sont natifs CSS et restent lisibles sans JavaScript.
 */

/* --------------------------------------------------------------------------
   Fondation partagée : variables, lisibilité, médias et états interactifs
   -------------------------------------------------------------------------- */

body:is(
  .theme-portrait,
  .theme-journey,
  .theme-notebook,
  .theme-stage,
  .theme-signal,
  .theme-bridge,
  .theme-motion,
  .theme-digital,
  .theme-travel,
  .theme-polyglot,
  .theme-backstage,
  .theme-market,
  .theme-brand,
  .theme-classroom,
  .theme-atlas
) {
  --theme-bg: #fafafa;
  --theme-surface: #ffffff;
  --theme-ink: #111111;
  --theme-muted: #505050;
  --theme-accent: #a51d28;
  --theme-accent-ink: #ffffff;
  --theme-line: #d6d6d6;
  --theme-serif: "Iowan Old Style", "Bodoni 72", Georgia, serif;
  --theme-sans: "Public Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --theme-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --theme-radius: 0;
  --theme-shadow: none;
  color: var(--theme-ink);
  background: var(--theme-bg);
  font-family: var(--theme-sans);
}

body:is(
  .theme-portrait,
  .theme-journey,
  .theme-notebook,
  .theme-stage,
  .theme-signal,
  .theme-bridge,
  .theme-motion,
  .theme-digital,
  .theme-travel,
  .theme-polyglot,
  .theme-backstage,
  .theme-market,
  .theme-brand,
  .theme-classroom,
  .theme-atlas
) .article-page {
  min-width: 0;
  overflow: clip;
  color: var(--theme-ink);
  background: var(--theme-bg);
}

body:is(
  .theme-portrait,
  .theme-journey,
  .theme-notebook,
  .theme-stage,
  .theme-signal,
  .theme-bridge,
  .theme-motion,
  .theme-digital,
  .theme-travel,
  .theme-polyglot,
  .theme-backstage,
  .theme-market,
  .theme-brand,
  .theme-classroom,
  .theme-atlas
) :is(.article-hero__image, .article-content img) {
  display: block;
  width: 100%;
  height: auto;
}

body:is(
  .theme-portrait,
  .theme-journey,
  .theme-notebook,
  .theme-stage,
  .theme-signal,
  .theme-bridge,
  .theme-motion,
  .theme-digital,
  .theme-travel,
  .theme-polyglot,
  .theme-backstage,
  .theme-market,
  .theme-brand,
  .theme-classroom,
  .theme-atlas
) :is(.article-content, .article-sidebar, .article-toc) {
  min-width: 0;
}

body:is(
  .theme-portrait,
  .theme-journey,
  .theme-notebook,
  .theme-stage,
  .theme-signal,
  .theme-bridge,
  .theme-motion,
  .theme-digital,
  .theme-travel,
  .theme-polyglot,
  .theme-backstage,
  .theme-market,
  .theme-brand,
  .theme-classroom,
  .theme-atlas
) :is(.article-content, .article-toc, .article-sidebar, .article-end) a {
  color: var(--theme-accent);
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.2em;
}

body:is(
  .theme-portrait,
  .theme-journey,
  .theme-notebook,
  .theme-stage,
  .theme-signal,
  .theme-bridge,
  .theme-motion,
  .theme-digital,
  .theme-travel,
  .theme-polyglot,
  .theme-backstage,
  .theme-market,
  .theme-brand,
  .theme-classroom,
  .theme-atlas
) :is(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--theme-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

body:is(
  .theme-portrait,
  .theme-journey,
  .theme-notebook,
  .theme-stage,
  .theme-signal,
  .theme-bridge,
  .theme-motion,
  .theme-digital,
  .theme-travel,
  .theme-polyglot,
  .theme-backstage,
  .theme-market,
  .theme-brand,
  .theme-classroom,
  .theme-atlas
) .article-content {
  font-size: clamp(1.03rem, 0.99rem + 0.2vw, 1.18rem);
  line-height: 1.78;
}

body:is(
  .theme-portrait,
  .theme-journey,
  .theme-notebook,
  .theme-stage,
  .theme-signal,
  .theme-bridge,
  .theme-motion,
  .theme-digital,
  .theme-travel,
  .theme-polyglot,
  .theme-backstage,
  .theme-market,
  .theme-brand,
  .theme-classroom,
  .theme-atlas
) .article-content :is(p, ul, ol, blockquote, table) {
  margin-block: 1.15em;
}

body:is(
  .theme-portrait,
  .theme-journey,
  .theme-notebook,
  .theme-stage,
  .theme-signal,
  .theme-bridge,
  .theme-motion,
  .theme-digital,
  .theme-travel,
  .theme-polyglot,
  .theme-backstage,
  .theme-market,
  .theme-brand,
  .theme-classroom,
  .theme-atlas
) .article-content :is(h2, h3) {
  text-wrap: balance;
  scroll-margin-top: 7rem;
}

body:is(
  .theme-portrait,
  .theme-journey,
  .theme-notebook,
  .theme-stage,
  .theme-signal,
  .theme-bridge,
  .theme-motion,
  .theme-digital,
  .theme-travel,
  .theme-polyglot,
  .theme-backstage,
  .theme-market,
  .theme-brand,
  .theme-classroom,
  .theme-atlas
) .article-content :is(pre, table) {
  max-width: 100%;
  overflow-x: auto;
}

body:is(
  .theme-portrait,
  .theme-journey,
  .theme-notebook,
  .theme-stage,
  .theme-signal,
  .theme-bridge,
  .theme-motion,
  .theme-digital,
  .theme-travel,
  .theme-polyglot,
  .theme-backstage,
  .theme-market,
  .theme-brand,
  .theme-classroom,
  .theme-atlas
) .article-content table {
  width: 100%;
  border-collapse: collapse;
}

body:is(
  .theme-portrait,
  .theme-journey,
  .theme-notebook,
  .theme-stage,
  .theme-signal,
  .theme-bridge,
  .theme-motion,
  .theme-digital,
  .theme-travel,
  .theme-polyglot,
  .theme-backstage,
  .theme-market,
  .theme-brand,
  .theme-classroom,
  .theme-atlas
) .article-content :is(th, td) {
  padding: 0.7rem;
  border: 1px solid var(--theme-line);
  text-align: left;
  vertical-align: top;
}

body:is(
  .theme-portrait,
  .theme-journey,
  .theme-notebook,
  .theme-stage,
  .theme-signal,
  .theme-bridge,
  .theme-motion,
  .theme-digital,
  .theme-travel,
  .theme-polyglot,
  .theme-backstage,
  .theme-market,
  .theme-brand,
  .theme-classroom,
  .theme-atlas
) .article-facts {
  display: grid;
  gap: 0.75rem;
}

body:is(
  .theme-portrait,
  .theme-journey,
  .theme-notebook,
  .theme-stage,
  .theme-signal,
  .theme-bridge,
  .theme-motion,
  .theme-digital,
  .theme-travel,
  .theme-polyglot,
  .theme-backstage,
  .theme-market,
  .theme-brand,
  .theme-classroom,
  .theme-atlas
) .article-fact {
  overflow-wrap: anywhere;
}

body:is(
  .theme-portrait,
  .theme-journey,
  .theme-notebook,
  .theme-stage,
  .theme-signal,
  .theme-bridge,
  .theme-motion,
  .theme-digital,
  .theme-travel,
  .theme-polyglot,
  .theme-backstage,
  .theme-market,
  .theme-brand,
  .theme-classroom,
  .theme-atlas
) .article-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

body:is(
  .theme-portrait,
  .theme-journey,
  .theme-notebook,
  .theme-stage,
  .theme-signal,
  .theme-bridge,
  .theme-motion,
  .theme-digital,
  .theme-travel,
  .theme-polyglot,
  .theme-backstage,
  .theme-market,
  .theme-brand,
  .theme-classroom,
  .theme-atlas
) .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   01 — PORTRAIT ÉDITORIAL : contraste encre, ivoire et sceau carmin
   -------------------------------------------------------------------------- */

body.theme-portrait {
  --theme-bg: #f3efe6;
  --theme-surface: #fffdf8;
  --theme-ink: #17130f;
  --theme-muted: #61584e;
  --theme-accent: #9b1c24;
  --theme-accent-ink: #ffffff;
  --theme-line: #cfc6b8;
  background-image: linear-gradient(90deg, transparent 49.9%, rgba(23, 19, 15, 0.07) 50%, transparent 50.1%);
  background-size: 3rem 100%;
}

.theme-portrait .article-hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 8.5rem) max(1.25rem, calc((100vw - 84rem) / 2));
  border-bottom: 1px solid var(--theme-ink);
}

.theme-portrait .article-hero::before {
  position: absolute;
  inset: 1rem 1rem auto auto;
  width: clamp(4rem, 9vw, 8rem);
  aspect-ratio: 1;
  border: 1px solid var(--theme-accent);
  border-radius: 50%;
  content: "";
}

.theme-portrait .article-hero__inner {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.theme-portrait .article-kicker {
  width: fit-content;
  padding: 0.45rem 0.7rem;
  color: var(--theme-accent-ink);
  background: var(--theme-accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-portrait .article-title {
  max-width: 12ch;
  margin-block: 1rem;
  font-family: var(--theme-serif);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 500;
  line-height: 0.91;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.theme-portrait .article-deck {
  max-width: 42rem;
  color: var(--theme-muted);
  font-family: var(--theme-serif);
  font-size: clamp(1.2rem, 1rem + 0.75vw, 1.75rem);
  line-height: 1.45;
}

.theme-portrait .article-byline {
  padding-top: 1rem;
  border-top: 1px solid var(--theme-line);
  font-size: 0.9rem;
}

.theme-portrait .article-hero__media {
  position: relative;
  max-width: 34rem;
  margin-inline: auto;
}

.theme-portrait .article-hero__media::after {
  position: absolute;
  inset: 0.8rem -0.8rem -0.8rem 0.8rem;
  z-index: 0;
  border: 1px solid var(--theme-accent);
  content: "";
}

.theme-portrait .article-hero__image {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.06);
}

.theme-portrait .article-layout {
  display: grid;
  gap: 2rem;
  width: min(100% - 2.5rem, 78rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 7rem);
}

.theme-portrait .article-toc {
  padding-top: 1rem;
  border-top: 4px solid var(--theme-accent);
  font-size: 0.84rem;
}

.theme-portrait .article-content {
  font-family: var(--theme-serif);
}

.theme-portrait .article-content h2 {
  margin-block: 2.2em 0.7em;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
}

.theme-portrait .article-content blockquote {
  margin-inline: 0;
  padding: 1.25rem 0 1.25rem clamp(1rem, 4vw, 3rem);
  border-left: 0.45rem solid var(--theme-accent);
  color: var(--theme-accent);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.3;
}

.theme-portrait .article-sidebar {
  align-self: start;
  padding: 1.3rem;
  border: 1px solid var(--theme-ink);
  background: var(--theme-surface);
}

.theme-portrait .article-fact {
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--theme-line);
}

.theme-portrait .article-end {
  padding: clamp(2rem, 5vw, 4rem);
  color: #ffffff;
  background: #17130f;
}

@media (min-width: 58rem) {
  .theme-portrait .article-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(18rem, 5fr);
  }

  .theme-portrait .article-layout {
    grid-template-columns: minmax(9rem, 2fr) minmax(0, 7fr) minmax(13rem, 3fr);
  }

  .theme-portrait :is(.article-toc, .article-sidebar) {
    position: sticky;
    top: 7rem;
  }
}

/* --------------------------------------------------------------------------
   02 — JOURNEY : parcours vertical, jalons et profondeur forestière
   -------------------------------------------------------------------------- */

body.theme-journey {
  --theme-bg: #e8eadf;
  --theme-surface: #f8f5e9;
  --theme-ink: #10291f;
  --theme-muted: #425b50;
  --theme-accent: #9a3e13;
  --theme-accent-ink: #ffffff;
  --theme-line: #aebbaa;
  background: linear-gradient(135deg, #e8eadf 0 70%, #d4ddcf 70% 100%);
}

.theme-journey .article-hero {
  position: relative;
  min-height: min(52rem, 90svh);
  padding: clamp(4rem, 9vw, 9rem) max(1.25rem, calc((100vw - 82rem) / 2));
  color: #f8f5e9;
  background: #12372a;
  isolation: isolate;
}

.theme-journey .article-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  background-image: repeating-radial-gradient(circle at 85% 25%, transparent 0 1.35rem, #d6a75b 1.4rem 1.46rem);
  content: "";
}

.theme-journey .article-hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.theme-journey .article-kicker {
  color: #f1c575;
  font-family: var(--theme-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.theme-journey .article-title {
  max-width: 13ch;
  font-family: var(--theme-serif);
  font-size: clamp(3rem, 8vw, 7.2rem);
  font-weight: 500;
  line-height: 0.96;
}

.theme-journey .article-title::first-letter {
  color: #f1c575;
}

.theme-journey .article-deck {
  max-width: 40rem;
  color: #dce9df;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.theme-journey .article-byline {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #86a48f;
  color: #ffffff;
}

.theme-journey .article-hero__media {
  position: relative;
}

.theme-journey .article-hero__media::before {
  position: absolute;
  inset: -1.25rem auto auto -1.25rem;
  width: 4rem;
  height: 4rem;
  border-top: 0.4rem solid #f1c575;
  border-left: 0.4rem solid #f1c575;
  content: "";
}

.theme-journey .article-hero__image {
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 50% 50% 0 0;
  box-shadow: 1.25rem 1.25rem 0 #d6a75b;
}

.theme-journey .article-layout {
  display: grid;
  gap: 2rem;
  width: min(100% - 2.5rem, 74rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 7rem);
}

.theme-journey .article-toc {
  padding: 1.25rem;
  border: 1px solid var(--theme-line);
  border-radius: 999px 999px 1rem 1rem;
  background: rgba(248, 245, 233, 0.78);
}

.theme-journey .article-content {
  position: relative;
  padding-left: clamp(1.5rem, 5vw, 4.5rem);
}

.theme-journey .article-content::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.25rem;
  border-radius: 1rem;
  background: linear-gradient(#9a3e13, #d6a75b, #12372a);
  content: "";
}

.theme-journey .article-content h2 {
  position: relative;
  margin-block: 2.6em 0.7em;
  color: #12372a;
  font-family: var(--theme-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.theme-journey .article-content h2::before {
  position: absolute;
  top: 0.4em;
  left: calc(-1 * clamp(1.5rem, 5vw, 4.5rem) - 0.42rem);
  width: 0.9rem;
  height: 0.9rem;
  border: 0.2rem solid var(--theme-bg);
  border-radius: 50%;
  background: var(--theme-accent);
  content: "";
}

.theme-journey .article-sidebar {
  padding: 1.4rem;
  border-radius: 0.25rem 3rem 0.25rem 3rem;
  color: #ffffff;
  background: #12372a;
  box-shadow: 0.65rem 0.65rem 0 #d6a75b;
}

.theme-journey .article-sidebar a {
  color: #f7ce85;
}

.theme-journey .article-fact {
  padding-block: 0.85rem;
  border-bottom: 1px solid #557567;
}

.theme-journey .article-end {
  border-top: 0.4rem solid #d6a75b;
  background: var(--theme-surface);
}

@media (min-width: 60rem) {
  .theme-journey .article-hero__inner {
    grid-template-columns: minmax(0, 6.5fr) minmax(20rem, 5.5fr);
  }

  .theme-journey .article-layout {
    grid-template-columns: minmax(0, 8fr) minmax(15rem, 3fr);
  }

  .theme-journey .article-toc {
    grid-column: 1 / -1;
    columns: 2;
  }
}

/* --------------------------------------------------------------------------
   03 — NOTEBOOK : papier réglé, annotations et rigueur académique
   -------------------------------------------------------------------------- */

body.theme-notebook {
  --theme-bg: #ece9df;
  --theme-surface: #fffefa;
  --theme-ink: #152b52;
  --theme-muted: #4e5d75;
  --theme-accent: #a32127;
  --theme-accent-ink: #ffffff;
  --theme-line: #9fb1ca;
  background-color: var(--theme-bg);
  background-image: linear-gradient(rgba(21, 43, 82, 0.045) 1px, transparent 1px);
  background-size: 100% 1.8rem;
}

.theme-notebook .article-hero {
  padding: clamp(3rem, 7vw, 7rem) max(1.25rem, calc((100vw - 76rem) / 2));
}

.theme-notebook .article-hero__inner {
  display: grid;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid #b8b4a8;
  background-color: var(--theme-surface);
  background-image: linear-gradient(90deg, transparent 0 3.4rem, rgba(163, 33, 39, 0.24) 3.4rem 3.5rem, transparent 3.5rem),
    repeating-linear-gradient(transparent 0 1.75rem, rgba(40, 87, 151, 0.14) 1.75rem 1.82rem);
  box-shadow: 0.5rem 0.7rem 0 rgba(21, 43, 82, 0.12);
}

.theme-notebook .article-kicker {
  color: var(--theme-accent);
  font-family: var(--theme-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-notebook .article-title {
  max-width: 16ch;
  margin-block: 1rem;
  color: #152b52;
  font-family: var(--theme-serif);
  font-size: clamp(2.8rem, 7vw, 6.3rem);
  line-height: 1;
  text-decoration: underline;
  text-decoration-color: rgba(163, 33, 39, 0.62);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

.theme-notebook .article-deck {
  max-width: 44rem;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.7;
}

.theme-notebook .article-byline {
  width: fit-content;
  padding: 0.5rem 0.85rem;
  border: 1px dashed #152b52;
  background: #f6e59d;
  transform: rotate(-1deg);
}

.theme-notebook .article-hero__media {
  align-self: center;
  padding: 0.75rem 0.75rem 2.8rem;
  background: #ffffff;
  box-shadow: 0 0.6rem 1.5rem rgba(21, 43, 82, 0.2);
  transform: rotate(1.4deg);
}

.theme-notebook .article-hero__image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.86);
}

.theme-notebook .article-layout {
  display: grid;
  gap: 2rem;
  width: min(100% - 2.5rem, 76rem);
  margin-inline: auto;
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.theme-notebook .article-toc {
  padding: 1.25rem;
  border: 2px dashed #43648f;
  background: #f6e59d;
  box-shadow: 0.35rem 0.35rem 0 rgba(21, 43, 82, 0.18);
}

.theme-notebook .article-content {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-left: 1px solid #b8b4a8;
  background-color: var(--theme-surface);
  background-image: repeating-linear-gradient(transparent 0 2rem, rgba(40, 87, 151, 0.1) 2rem 2.06rem);
  box-shadow: 0.35rem 0.5rem 0 rgba(21, 43, 82, 0.1);
}

.theme-notebook .article-content h2 {
  margin-block: 2.4em 0.7em;
  color: #a32127;
  font-family: var(--theme-mono);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.2;
}

.theme-notebook .article-content h3 {
  color: #152b52;
  font-family: var(--theme-mono);
}

.theme-notebook .article-content blockquote {
  margin-inline: 0;
  padding: 1rem 1.25rem;
  border: 2px solid #152b52;
  background: #f6e59d;
  box-shadow: 0.35rem 0.35rem 0 #a32127;
  transform: rotate(-0.35deg);
}

.theme-notebook .article-sidebar {
  align-self: start;
  padding: 1.25rem;
  border: 1px solid #b8b4a8;
  background: #d8e7ed;
  transform: rotate(0.5deg);
}

.theme-notebook .article-fact {
  padding: 0.7rem;
  border-bottom: 1px dotted #152b52;
}

.theme-notebook .article-end {
  border-top: 2px dashed #152b52;
}

@media (min-width: 55rem) {
  .theme-notebook .article-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(17rem, 4fr);
  }

  .theme-notebook .article-layout {
    grid-template-columns: minmax(12rem, 3fr) minmax(0, 8fr);
  }

  .theme-notebook .article-toc {
    align-self: start;
    position: sticky;
    top: 7rem;
  }

  .theme-notebook .article-sidebar {
    grid-column: 1;
  }
}

/* --------------------------------------------------------------------------
   04 — STAGE : scène nocturne, lumière et cadre cinématographique
   -------------------------------------------------------------------------- */

body.theme-stage {
  --theme-bg: #09070e;
  --theme-surface: #17121e;
  --theme-ink: #f8f4ee;
  --theme-muted: #c9c0cc;
  --theme-accent: #ffd447;
  --theme-accent-ink: #17100a;
  --theme-line: #4f415d;
  background: #09070e;
}

.theme-stage .article-page {
  color: var(--theme-ink);
  background: radial-gradient(circle at 50% 18%, #3a2047 0, #140d1b 32rem, #09070e 58rem);
}

.theme-stage .article-hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  place-items: end center;
  padding: clamp(5rem, 11vw, 11rem) max(1.25rem, calc((100vw - 88rem) / 2)) 3rem;
  isolation: isolate;
}

.theme-stage .article-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: conic-gradient(from 208deg at 50% 0%, transparent 0 25deg, rgba(255, 212, 71, 0.18) 27deg 45deg, transparent 47deg 360deg);
  content: "";
}

.theme-stage .article-hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 24%;
  border-top: 1px solid #8b7393;
  background: repeating-linear-gradient(90deg, #100b15 0 3rem, #17101f 3rem 6rem);
  transform: perspective(12rem) rotateX(12deg);
  transform-origin: bottom;
  content: "";
}

.theme-stage .article-hero__inner {
  display: grid;
  gap: 2rem;
  align-items: end;
  width: 100%;
}

.theme-stage .article-kicker {
  color: #ffd447;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.theme-stage .article-title {
  max-width: 11ch;
  margin-block: 0.5rem 1rem;
  font-family: var(--theme-serif);
  font-size: clamp(3.2rem, 9vw, 9rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-shadow: 0 0.06em 0 #b72c56;
}

.theme-stage .article-deck {
  max-width: 46rem;
  color: #e2dbe4;
  font-size: clamp(1.12rem, 2vw, 1.5rem);
}

.theme-stage .article-byline {
  margin-top: 1.25rem;
  color: #ffffff;
}

.theme-stage .article-hero__media {
  position: relative;
  border: 1px solid #ffd447;
  background: #09070e;
  box-shadow: 0 0 2.5rem rgba(255, 212, 71, 0.2);
}

.theme-stage .article-hero__image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  opacity: 0.86;
  filter: contrast(1.14) saturate(0.92);
}

.theme-stage .article-layout {
  display: grid;
  gap: 2rem;
  width: min(100% - 2.5rem, 74rem);
  margin-inline: auto;
  padding-block: clamp(4rem, 10vw, 9rem);
}

.theme-stage .article-toc {
  padding: 1.4rem;
  border-left: 0.25rem solid #ffd447;
  background: #17121e;
}

.theme-stage .article-content {
  color: #eee9ef;
}

.theme-stage .article-content h2 {
  margin-block: 2.5em 0.75em;
  color: #ffd447;
  font-family: var(--theme-serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
}

.theme-stage .article-content h3 {
  color: #ff7c9c;
}

.theme-stage .article-content blockquote {
  margin-inline: 0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid #6f537b;
  color: #ffffff;
  background: linear-gradient(135deg, #25152f, #17121e);
  font-family: var(--theme-serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  box-shadow: inset 0.35rem 0 #b72c56;
}

.theme-stage .article-sidebar {
  align-self: start;
  padding: 1.4rem;
  border: 1px solid #6f537b;
  background: rgba(23, 18, 30, 0.88);
  box-shadow: 0.65rem 0.65rem 0 #b72c56;
}

.theme-stage .article-sidebar a,
.theme-stage .article-toc a,
.theme-stage .article-content a,
.theme-stage .article-end a {
  color: #ffd447;
}

.theme-stage .article-fact {
  padding-block: 0.75rem;
  border-bottom: 1px solid #4f415d;
}

.theme-stage .article-end {
  padding: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid #6f537b;
  background: #17121e;
}

@media (min-width: 62rem) {
  .theme-stage .article-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(20rem, 5fr);
  }

  .theme-stage .article-layout {
    grid-template-columns: minmax(0, 8fr) minmax(15rem, 3fr);
  }

  .theme-stage .article-toc {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   05 — SIGNAL : newsroom de données, repères cyan et modules mesurés
   -------------------------------------------------------------------------- */

body.theme-signal {
  --theme-bg: #eaf3f4;
  --theme-surface: #ffffff;
  --theme-ink: #071b25;
  --theme-muted: #415c66;
  --theme-accent: #006b78;
  --theme-accent-ink: #ffffff;
  --theme-line: #9fbcc1;
  background-image: linear-gradient(rgba(0, 107, 120, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 107, 120, 0.07) 1px, transparent 1px);
  background-size: 2rem 2rem;
}

.theme-signal .article-hero {
  padding: 1.25rem max(1.25rem, calc((100vw - 88rem) / 2)) clamp(3rem, 8vw, 8rem);
  border-bottom: 0.5rem solid #071b25;
  background: #eaf3f4;
}

.theme-signal .article-hero__inner {
  display: grid;
  gap: 1rem;
}

.theme-signal .article-hero__inner::before {
  grid-column: 1 / -1;
  height: 0.8rem;
  background: repeating-linear-gradient(90deg, #006b78 0 8%, transparent 8% 10%, #ff5b46 10% 16%, transparent 16% 18%);
  content: "";
}

.theme-signal .article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #004e59;
  font-family: var(--theme-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-signal .article-kicker::before {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #ff3d27;
  content: "";
}

.theme-signal .article-title {
  max-width: 17ch;
  margin-block: 1rem;
  font-size: clamp(2.8rem, 7vw, 7rem);
  font-weight: 850;
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.theme-signal .article-deck {
  max-width: 48rem;
  padding-left: 1rem;
  border-left: 0.3rem solid #ff3d27;
  color: #304f5a;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

.theme-signal .article-byline {
  margin-top: 1.5rem;
  font-family: var(--theme-mono);
  font-size: 0.8rem;
}

.theme-signal .article-hero__media {
  display: grid;
  min-height: 18rem;
  padding: 0.75rem;
  border: 2px solid #071b25;
  background: #071b25;
}

.theme-signal .article-hero__image {
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.13);
}

.theme-signal .article-hero__art {
  position: relative;
  min-height: 15rem;
  overflow: hidden;
  background: linear-gradient(120deg, #071b25 0 42%, #00afc3 42% 56%, #eaf3f4 56% 100%);
}

.theme-signal .article-hero__art::after {
  position: absolute;
  right: 7%;
  bottom: 12%;
  width: 42%;
  height: 54%;
  border: 0.6rem solid #ff5b46;
  content: "";
}

.theme-signal .article-layout {
  display: grid;
  gap: 1rem;
  width: min(100% - 2.5rem, 84rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 7rem);
}

.theme-signal .article-toc {
  padding: 1rem;
  border: 2px solid #071b25;
  background: #ffffff;
  font-family: var(--theme-mono);
  font-size: 0.78rem;
  box-shadow: 0.35rem 0.35rem 0 #00afc3;
}

.theme-signal .article-content {
  padding: clamp(1.2rem, 4vw, 3rem);
  border: 1px solid #9fbcc1;
  background: rgba(255, 255, 255, 0.92);
}

.theme-signal .article-content h2 {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-block: 2.6em 0.8em;
  color: #071b25;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.06;
}

.theme-signal .article-content h2::before {
  width: 0.8rem;
  height: 2.5rem;
  background: #ff3d27;
  content: "";
}

.theme-signal .article-content blockquote {
  margin-inline: 0;
  padding: 1.5rem;
  border: 2px solid #071b25;
  color: #071b25;
  background: #ccebef;
  font-family: var(--theme-mono);
  font-size: 1rem;
}

.theme-signal .article-sidebar {
  align-self: start;
  padding: 1rem;
  color: #ffffff;
  background: #071b25;
}

.theme-signal .article-sidebar a {
  color: #6ee3ee;
}

.theme-signal .article-facts {
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
}

.theme-signal .article-fact {
  padding: 1rem;
  border-top: 0.25rem solid #ff5b46;
  background: #123442;
}

.theme-signal .article-end {
  border-top: 0.5rem solid #071b25;
}

@media (min-width: 60rem) {
  .theme-signal .article-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(18rem, 5fr);
  }

  .theme-signal .article-layout {
    grid-template-columns: minmax(11rem, 2fr) minmax(0, 7fr) minmax(14rem, 3fr);
    align-items: start;
  }

  .theme-signal :is(.article-toc, .article-sidebar) {
    position: sticky;
    top: 7rem;
  }
}

/* --------------------------------------------------------------------------
   06 — BRIDGE : correspondance diasporique et arche entre deux rives
   -------------------------------------------------------------------------- */

body.theme-bridge {
  --theme-bg: #f4eadc;
  --theme-surface: #fffaf3;
  --theme-ink: #152c48;
  --theme-muted: #586679;
  --theme-accent: #a73222;
  --theme-accent-ink: #ffffff;
  --theme-line: #c9b8a5;
  background: linear-gradient(90deg, #f4eadc 0 50%, #d9e5eb 50% 100%);
}

.theme-bridge .article-hero {
  position: relative;
  padding: clamp(4rem, 10vw, 9rem) max(1.25rem, calc((100vw - 82rem) / 2));
  overflow: hidden;
}

.theme-bridge .article-hero::after {
  position: absolute;
  left: 50%;
  bottom: -13rem;
  width: min(72vw, 60rem);
  aspect-ratio: 2 / 1;
  border: clamp(0.5rem, 1vw, 1rem) solid rgba(21, 44, 72, 0.17);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
  content: "";
}

.theme-bridge .article-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.theme-bridge .article-kicker {
  width: fit-content;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--theme-accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-bridge .article-title {
  max-width: 14ch;
  margin-block: 1rem;
  font-family: var(--theme-serif);
  font-size: clamp(3rem, 7.5vw, 7.5rem);
  font-weight: 500;
  line-height: 0.94;
  color: #152c48;
}

.theme-bridge .article-deck {
  max-width: 42rem;
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  line-height: 1.6;
}

.theme-bridge .article-byline {
  width: fit-content;
  margin-top: 1.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid #152c48;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.72);
}

.theme-bridge .article-hero__media {
  position: relative;
  max-width: 34rem;
  margin-inline: auto;
  padding: 1rem;
  border-radius: 50% 50% 1rem 1rem;
  background: #152c48;
}

.theme-bridge .article-hero__image {
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 0.5rem 0.5rem;
  object-fit: cover;
}

.theme-bridge .article-layout {
  display: grid;
  gap: 2.5rem;
  width: min(100% - 2.5rem, 76rem);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 9vw, 8rem);
}

.theme-bridge .article-toc {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 2rem;
  border: 1px solid #152c48;
  background: var(--theme-surface);
}

.theme-bridge .article-toc::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.6rem;
  background: linear-gradient(#a73222 0 50%, #2b6987 50% 100%);
  content: "";
}

.theme-bridge .article-content {
  max-width: 47rem;
  margin-inline: auto;
  font-family: var(--theme-serif);
}

.theme-bridge .article-content > p:first-of-type::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  color: var(--theme-accent);
  font-size: 4.8em;
  font-weight: 700;
  line-height: 0.76;
}

.theme-bridge .article-content h2 {
  margin-block: 2.4em 0.7em;
  color: #152c48;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
  text-align: center;
}

.theme-bridge .article-content h2::after {
  display: block;
  width: 4rem;
  height: 0.25rem;
  margin: 0.65rem auto 0;
  background: var(--theme-accent);
  content: "";
}

.theme-bridge .article-content blockquote {
  margin-inline: -1rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border-radius: 5rem 5rem 0.5rem 0.5rem;
  color: #ffffff;
  background: #152c48;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  text-align: center;
}

.theme-bridge .article-sidebar {
  align-self: start;
  padding: 1.25rem;
  border-radius: 4rem 4rem 0 0;
  background: #d9e5eb;
}

.theme-bridge .article-fact {
  padding: 1rem;
  border-bottom: 1px solid #8099a6;
}

.theme-bridge .article-end {
  background: var(--theme-surface);
}

@media (min-width: 60rem) {
  .theme-bridge .article-hero__inner {
    grid-template-columns: minmax(0, 6fr) minmax(19rem, 4fr);
  }

  .theme-bridge .article-layout {
    grid-template-columns: minmax(13rem, 3fr) minmax(0, 8fr);
  }

  .theme-bridge .article-toc {
    align-self: start;
    position: sticky;
    top: 7rem;
  }

  .theme-bridge .article-sidebar {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   07 — MOTION : diagonales cinétiques et blocs chromatiques en mouvement
   -------------------------------------------------------------------------- */

body.theme-motion {
  --theme-bg: #fff4ed;
  --theme-surface: #ffffff;
  --theme-ink: #251323;
  --theme-muted: #675060;
  --theme-accent: #b70055;
  --theme-accent-ink: #ffffff;
  --theme-line: #d7b8c6;
  background: #fff4ed;
}

.theme-motion .article-hero {
  position: relative;
  padding: clamp(4rem, 10vw, 9rem) max(1.25rem, calc((100vw - 88rem) / 2));
  overflow: hidden;
  isolation: isolate;
}

.theme-motion .article-hero::before,
.theme-motion .article-hero::after {
  position: absolute;
  z-index: -1;
  width: 55vw;
  height: 135%;
  content: "";
  transform: rotate(16deg);
}

.theme-motion .article-hero::before {
  top: -30%;
  right: -22%;
  background: #ff5b32;
}

.theme-motion .article-hero::after {
  top: 48%;
  left: -31%;
  background: #b70055;
}

.theme-motion .article-hero__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.theme-motion .article-kicker {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: #ffffff;
  background: #251323;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: skewX(-8deg);
}

.theme-motion .article-title {
  max-width: 13ch;
  margin-block: 1rem;
  font-size: clamp(3.3rem, 9vw, 8.8rem);
  font-style: italic;
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.theme-motion .article-deck {
  max-width: 43rem;
  padding: 1rem 1.25rem;
  border-left: 0.65rem solid #b70055;
  background: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.theme-motion .article-byline {
  font-weight: 750;
}

.theme-motion .article-hero__media {
  padding: 0.75rem;
  background: #251323;
  box-shadow: 1.1rem 1.1rem 0 #ffc100;
  transform: rotate(-2.5deg);
}

.theme-motion .article-hero__image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.08);
}

.theme-motion .article-layout {
  display: grid;
  gap: 1.5rem;
  width: min(100% - 2.5rem, 82rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 8rem);
}

.theme-motion .article-toc {
  padding: 1.2rem;
  border: 3px solid #251323;
  background: #ffc100;
  box-shadow: 0.6rem 0.6rem 0 #b70055;
}

.theme-motion .article-content {
  padding: clamp(1.5rem, 4vw, 3.2rem);
  background: #ffffff;
}

.theme-motion .article-content h2 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-block: 2.3em 0.8em;
  padding: 0.2em 0.45em;
  color: #ffffff;
  background: #b70055;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-style: italic;
  line-height: 1;
  transform: rotate(-1deg);
}

.theme-motion .article-content h3 {
  padding-left: 0.75rem;
  border-left: 0.4rem solid #ff5b32;
}

.theme-motion .article-content blockquote {
  margin-inline: 0;
  padding: 1.5rem;
  border: 3px solid #251323;
  background: #fff2ae;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  font-weight: 750;
  box-shadow: 0.6rem 0.6rem 0 #ff5b32;
}

.theme-motion .article-sidebar {
  align-self: start;
  padding: 1.25rem;
  color: #ffffff;
  background: #251323;
  transform: rotate(1deg);
}

.theme-motion .article-sidebar a {
  color: #ffd33d;
}

.theme-motion .article-fact {
  padding: 0.9rem;
  border-bottom: 2px solid #72516b;
}

.theme-motion .article-end {
  border-top: 1rem solid #ff5b32;
  background: #ffc100;
}

@media (min-width: 59rem) {
  .theme-motion .article-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(19rem, 5fr);
  }

  .theme-motion .article-layout {
    grid-template-columns: minmax(0, 8fr) minmax(14rem, 3fr);
  }

  .theme-motion .article-toc {
    grid-column: 1 / -1;
    transform: rotate(-0.5deg);
  }
}

/* --------------------------------------------------------------------------
   08 — DIGITAL : néo-brutalisme, acidité verte et architecture modulaire
   -------------------------------------------------------------------------- */

body.theme-digital {
  --theme-bg: #d8ff45;
  --theme-surface: #f8ffe0;
  --theme-ink: #0d1510;
  --theme-muted: #344334;
  --theme-accent: #00543b;
  --theme-accent-ink: #ffffff;
  --theme-line: #0d1510;
  background: #d8ff45;
}

.theme-digital .article-hero {
  padding: 0 max(1rem, calc((100vw - 90rem) / 2));
  border-bottom: 4px solid #0d1510;
}

.theme-digital .article-hero__inner {
  display: grid;
  border-inline: 4px solid #0d1510;
  background: #d8ff45;
}

.theme-digital .article-hero__inner > * {
  min-width: 0;
}

.theme-digital .article-hero__inner > :first-child {
  padding: clamp(2rem, 6vw, 6rem);
}

.theme-digital .article-kicker {
  width: fit-content;
  padding: 0.45rem 0.7rem;
  border: 3px solid #0d1510;
  background: #ffffff;
  font-family: var(--theme-mono);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0.3rem 0.3rem 0 #0d1510;
}

.theme-digital .article-title {
  max-width: 15ch;
  margin-block: 1.25rem;
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.theme-digital .article-deck {
  max-width: 42rem;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-weight: 650;
  line-height: 1.5;
}

.theme-digital .article-byline {
  width: fit-content;
  margin-top: 1.5rem;
  padding: 0.5rem 0;
  border-block: 2px solid #0d1510;
  font-family: var(--theme-mono);
  font-size: 0.82rem;
}

.theme-digital .article-hero__media,
.theme-digital .article-hero__art {
  min-height: 23rem;
  border-top: 4px solid #0d1510;
  background: #11251b;
}

.theme-digital .article-hero__image {
  height: 100%;
  min-height: 23rem;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.9;
}

.theme-digital .article-hero__art {
  position: relative;
  background: repeating-linear-gradient(45deg, #0d1510 0 1rem, #006d4c 1rem 2rem);
}

.theme-digital .article-hero__art::after {
  position: absolute;
  inset: 18% 14%;
  border: 0.8rem solid #d8ff45;
  background: #ff5a36;
  content: "";
  box-shadow: 1rem 1rem 0 #ffffff;
}

.theme-digital .article-layout {
  display: grid;
  gap: 0;
  width: min(100% - 2rem, 90rem);
  margin-inline: auto;
  border-inline: 4px solid #0d1510;
  background: #f8ffe0;
}

.theme-digital .article-toc {
  padding: 1.3rem;
  border-bottom: 4px solid #0d1510;
  background: #ff7a55;
  font-family: var(--theme-mono);
  font-size: 0.8rem;
}

.theme-digital .article-content {
  padding: clamp(1.5rem, 5vw, 4rem);
}

.theme-digital .article-content h2 {
  margin-block: 2.5em 0.8em;
  padding-bottom: 0.35rem;
  border-bottom: 0.35rem solid #0d1510;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.theme-digital .article-content h2::before {
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  margin-right: 0.35em;
  border: 0.16em solid #0d1510;
  background: #d8ff45;
  content: "";
}

.theme-digital .article-content blockquote {
  margin-inline: 0;
  padding: 1.5rem;
  border: 4px solid #0d1510;
  background: #ffffff;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 850;
  line-height: 1.25;
  box-shadow: 0.7rem 0.7rem 0 #0d1510;
}

.theme-digital .article-sidebar {
  padding: 1.4rem;
  border-top: 4px solid #0d1510;
  background: #0d1510;
  color: #ffffff;
}

.theme-digital .article-sidebar a {
  color: #d8ff45;
}

.theme-digital .article-fact {
  padding: 1rem;
  border: 2px solid #d8ff45;
}

.theme-digital .article-end {
  border-top: 4px solid #0d1510;
  background: #ffffff;
}

@media (min-width: 61rem) {
  .theme-digital .article-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(22rem, 5fr);
  }

  .theme-digital .article-hero__media,
  .theme-digital .article-hero__art {
    border-top: 0;
    border-left: 4px solid #0d1510;
  }

  .theme-digital .article-layout {
    grid-template-columns: minmax(12rem, 2.5fr) minmax(0, 7fr) minmax(15rem, 3fr);
  }

  .theme-digital .article-toc {
    border-right: 4px solid #0d1510;
    border-bottom: 0;
  }

  .theme-digital .article-sidebar {
    border-top: 0;
    border-left: 4px solid #0d1510;
  }
}

/* --------------------------------------------------------------------------
   09 — TRAVEL : carnet de route, timbres et chaleur minérale
   -------------------------------------------------------------------------- */

body.theme-travel {
  --theme-bg: #eadcc5;
  --theme-surface: #fffaf0;
  --theme-ink: #2c261f;
  --theme-muted: #655c50;
  --theme-accent: #9c2d20;
  --theme-accent-ink: #ffffff;
  --theme-line: #c1aa89;
  background-color: #eadcc5;
  background-image: radial-gradient(rgba(69, 49, 31, 0.14) 0.7px, transparent 0.8px);
  background-size: 0.45rem 0.45rem;
}

.theme-travel .article-hero {
  position: relative;
  padding: clamp(4rem, 10vw, 9rem) max(1.25rem, calc((100vw - 80rem) / 2));
}

.theme-travel .article-hero::before {
  position: absolute;
  top: 2rem;
  right: max(1rem, calc((100vw - 80rem) / 2));
  width: clamp(4rem, 8vw, 7rem);
  aspect-ratio: 1;
  border: 0.3rem double #9c2d20;
  border-radius: 50%;
  opacity: 0.8;
  content: "";
  transform: rotate(12deg);
}

.theme-travel .article-hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.theme-travel .article-kicker {
  font-family: var(--theme-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.theme-travel .article-title {
  max-width: 14ch;
  margin-block: 1rem;
  font-family: var(--theme-serif);
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 500;
  line-height: 0.94;
}

.theme-travel .article-deck {
  max-width: 43rem;
  padding-left: 1rem;
  border-left: 1px solid #2c261f;
  font-size: clamp(1.12rem, 2vw, 1.48rem);
  line-height: 1.6;
}

.theme-travel .article-byline {
  width: fit-content;
  margin-top: 1.3rem;
  padding: 0.65rem 1rem;
  border: 1px dashed #9c2d20;
  background: rgba(255, 250, 240, 0.72);
}

.theme-travel .article-hero__media {
  padding: 0.8rem 0.8rem 3.2rem;
  border: 1px solid #bba586;
  background: #fffaf0;
  box-shadow: 0.9rem 1.2rem 2.2rem rgba(69, 49, 31, 0.24);
  transform: rotate(1.8deg);
}

.theme-travel .article-hero__image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: sepia(0.12) saturate(0.88) contrast(1.06);
}

.theme-travel .article-layout {
  display: grid;
  gap: 2rem;
  width: min(100% - 2.5rem, 76rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 7rem);
}

.theme-travel .article-toc {
  padding: 1.25rem;
  border: 1px dashed #785d41;
  background: rgba(255, 250, 240, 0.78);
}

.theme-travel .article-content {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: #fffaf0;
  box-shadow: 0 0.5rem 1.8rem rgba(69, 49, 31, 0.12);
}

.theme-travel .article-content h2 {
  margin-block: 2.4em 0.75em;
  color: #713027;
  font-family: var(--theme-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.08;
}

.theme-travel .article-content h2::before {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.55rem;
  border: 0.18rem double #9c2d20;
  border-radius: 50%;
  content: "";
}

.theme-travel .article-content blockquote {
  margin-inline: 0;
  padding: 1.5rem 1.5rem 1.5rem 2.5rem;
  border: 1px solid #bba586;
  background: #f2e3ca;
  font-family: var(--theme-serif);
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  transform: rotate(-0.4deg);
}

.theme-travel .article-sidebar {
  align-self: start;
  padding: 1.25rem;
  border: 1px solid #785d41;
  border-radius: 0 0 4rem 4rem;
  background: #e4cda8;
}

.theme-travel .article-fact {
  padding-block: 0.75rem;
  border-bottom: 1px dashed #785d41;
}

.theme-travel .article-end {
  border-top: 0.35rem double #9c2d20;
}

@media (min-width: 58rem) {
  .theme-travel .article-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(19rem, 5fr);
  }

  .theme-travel .article-layout {
    grid-template-columns: minmax(0, 8fr) minmax(14rem, 3fr);
  }

  .theme-travel .article-toc {
    grid-column: 1 / -1;
    columns: 2;
  }
}

/* --------------------------------------------------------------------------
   10 — POLYGLOT : couches typographiques, primaires franches et colonnes
   -------------------------------------------------------------------------- */

body.theme-polyglot {
  --theme-bg: #f6f0dc;
  --theme-surface: #fffdf5;
  --theme-ink: #101f3f;
  --theme-muted: #4c5870;
  --theme-accent: #b31f2b;
  --theme-accent-ink: #ffffff;
  --theme-line: #9ca8c0;
  background: linear-gradient(90deg, #f6f0dc 0 76%, #f0c929 76% 100%);
}

.theme-polyglot .article-hero {
  position: relative;
  padding: clamp(3rem, 8vw, 8rem) max(1.25rem, calc((100vw - 88rem) / 2));
  overflow: hidden;
}

.theme-polyglot .article-hero::before {
  position: absolute;
  inset: 0 auto 0 1.25rem;
  width: 0.65rem;
  background: linear-gradient(#1d4db1 0 33%, #f0c929 33% 66%, #b31f2b 66%);
  content: "";
}

.theme-polyglot .article-hero__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.theme-polyglot .article-kicker {
  color: #7e101a;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: horizontal-tb;
}

.theme-polyglot .article-title {
  position: relative;
  z-index: 1;
  max-width: 13ch;
  margin-block: 1rem;
  color: #101f3f;
  font-family: var(--theme-serif);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.theme-polyglot .article-title::after {
  position: absolute;
  right: -0.25em;
  bottom: -0.05em;
  z-index: -1;
  width: 0.85em;
  height: 0.32em;
  background: #f0c929;
  content: "";
}

.theme-polyglot .article-deck {
  max-width: 43rem;
  border-top: 0.3rem solid #1d4db1;
  padding-top: 1rem;
  font-size: clamp(1.12rem, 2vw, 1.5rem);
}

.theme-polyglot .article-byline {
  margin-top: 1.25rem;
  color: #7e101a;
  font-family: var(--theme-mono);
  font-size: 0.82rem;
}

.theme-polyglot .article-hero__media {
  position: relative;
  padding: 0 1rem 1rem 0;
}

.theme-polyglot .article-hero__media::after {
  position: absolute;
  inset: 1rem 0 0 1rem;
  z-index: -1;
  background: #1d4db1;
  content: "";
}

.theme-polyglot .article-hero__image {
  aspect-ratio: 1;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.theme-polyglot .article-layout {
  display: grid;
  gap: 2rem;
  width: min(100% - 2.5rem, 82rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 8rem);
}

.theme-polyglot .article-toc {
  padding: 1.25rem;
  border-top: 0.5rem solid #1d4db1;
  background: #fffdf5;
}

.theme-polyglot .article-content {
  font-family: var(--theme-serif);
}

.theme-polyglot .article-content h2 {
  display: grid;
  grid-template-columns: 0.5rem 1fr;
  gap: 0.8rem;
  margin-block: 2.5em 0.75em;
  color: #101f3f;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1;
}

.theme-polyglot .article-content h2::before {
  background: linear-gradient(#b31f2b 0 50%, #f0c929 50%);
  content: "";
}

.theme-polyglot .article-content h3 {
  color: #7e101a;
  font-family: var(--theme-sans);
}

.theme-polyglot .article-content blockquote {
  margin-inline: 0;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  border-block: 0.35rem solid #f0c929;
  color: #ffffff;
  background: #101f3f;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.theme-polyglot .article-sidebar {
  align-self: start;
  padding: 1.25rem;
  border: 2px solid #101f3f;
  background: #f0c929;
  box-shadow: 0.5rem 0.5rem 0 #b31f2b;
}

.theme-polyglot .article-fact {
  padding-block: 0.75rem;
  border-bottom: 1px solid #7c6a1a;
}

.theme-polyglot .article-end {
  border-left: 0.75rem solid #b31f2b;
  background: #fffdf5;
}

@media (min-width: 61rem) {
  .theme-polyglot .article-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(20rem, 5fr);
  }

  .theme-polyglot .article-layout {
    grid-template-columns: minmax(13rem, 3fr) minmax(0, 8fr);
  }

  .theme-polyglot .article-toc {
    align-self: start;
    position: sticky;
    top: 7rem;
  }

  .theme-polyglot .article-sidebar {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   11 — BACKSTAGE : affiche musicale, bordeaux profond et lumière dorée
   -------------------------------------------------------------------------- */

body.theme-backstage {
  --theme-bg: #100a0a;
  --theme-surface: #211011;
  --theme-ink: #fff4dc;
  --theme-muted: #d0bfa9;
  --theme-accent: #efc15c;
  --theme-accent-ink: #24140b;
  --theme-line: #694849;
  background-color: #100a0a;
  background-image: radial-gradient(#472426 0.7px, transparent 0.8px);
  background-size: 0.5rem 0.5rem;
}

.theme-backstage .article-hero {
  position: relative;
  min-height: 82svh;
  padding: clamp(4rem, 10vw, 9rem) max(1.25rem, calc((100vw - 82rem) / 2));
  border-bottom: 1px solid #8b6566;
  color: #fff4dc;
  isolation: isolate;
}

.theme-backstage .article-hero::before {
  position: absolute;
  inset: 1.5rem;
  z-index: -1;
  border: 1px solid #8b6566;
  box-shadow: inset 0 0 0 0.5rem #100a0a, inset 0 0 0 0.55rem #efc15c;
  content: "";
}

.theme-backstage .article-hero__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.theme-backstage .article-kicker {
  color: #efc15c;
  font-family: var(--theme-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.theme-backstage .article-title {
  max-width: 12ch;
  margin-block: 1rem;
  font-family: var(--theme-serif);
  font-size: clamp(3.2rem, 8.8vw, 8.8rem);
  font-weight: 500;
  line-height: 0.87;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.theme-backstage .article-deck {
  max-width: 41rem;
  color: #ecdcc7;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.6;
}

.theme-backstage .article-byline {
  width: fit-content;
  margin-top: 1.3rem;
  padding-block: 0.55rem;
  border-block: 1px solid #efc15c;
}

.theme-backstage .article-hero__media {
  position: relative;
  padding: 0.7rem;
  border: 1px solid #efc15c;
  background: #100a0a;
  box-shadow: 1rem 1rem 0 #5c181f;
}

.theme-backstage .article-hero__image {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: sepia(0.16) contrast(1.14) brightness(0.86);
}

.theme-backstage .article-layout {
  display: grid;
  gap: 2rem;
  width: min(100% - 2.5rem, 76rem);
  margin-inline: auto;
  padding-block: clamp(4rem, 9vw, 8rem);
}

.theme-backstage .article-toc {
  padding: 1.25rem;
  border: 1px solid #8b6566;
  color: #fff4dc;
  background: #211011;
}

.theme-backstage .article-toc a,
.theme-backstage .article-content a,
.theme-backstage .article-sidebar a,
.theme-backstage .article-end a {
  color: #f3ca73;
}

.theme-backstage .article-content {
  color: #f4e8d8;
}

.theme-backstage .article-content h2 {
  margin-block: 2.5em 0.75em;
  color: #efc15c;
  font-family: var(--theme-serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.theme-backstage .article-content h2::after {
  display: block;
  width: 100%;
  height: 0.3rem;
  margin-top: 0.45rem;
  background: repeating-linear-gradient(90deg, #efc15c 0 0.3rem, transparent 0.3rem 0.65rem);
  content: "";
}

.theme-backstage .article-content blockquote {
  margin-inline: 0;
  padding: 1.5rem;
  border: 1px solid #efc15c;
  color: #fff4dc;
  background: #3a1519;
  font-family: var(--theme-serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  text-align: center;
}

.theme-backstage .article-sidebar {
  align-self: start;
  padding: 1.25rem;
  border: 1px solid #8b6566;
  color: #fff4dc;
  background: #5c181f;
}

.theme-backstage .article-fact {
  padding-block: 0.8rem;
  border-bottom: 1px solid #a85d60;
}

.theme-backstage .article-end {
  border-top: 0.3rem double #efc15c;
  color: #fff4dc;
  background: #211011;
}

@media (min-width: 60rem) {
  .theme-backstage .article-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(18rem, 4fr);
  }

  .theme-backstage .article-layout {
    grid-template-columns: minmax(0, 8fr) minmax(14rem, 3fr);
  }

  .theme-backstage .article-toc {
    grid-column: 1 / -1;
    columns: 2;
  }
}

/* --------------------------------------------------------------------------
   12 — MARKET : mosaïque entrepreneuriale, terre cuite et vert croissance
   -------------------------------------------------------------------------- */

body.theme-market {
  --theme-bg: #f5ecda;
  --theme-surface: #fffdf8;
  --theme-ink: #18352b;
  --theme-muted: #52655e;
  --theme-accent: #a84718;
  --theme-accent-ink: #ffffff;
  --theme-line: #bdc7b5;
  background: #f5ecda;
}

.theme-market .article-hero {
  padding: clamp(2rem, 6vw, 5rem) max(1.25rem, calc((100vw - 88rem) / 2));
}

.theme-market .article-hero__inner {
  display: grid;
  gap: 1rem;
}

.theme-market .article-hero__inner > :first-child {
  padding: clamp(1.5rem, 5vw, 4rem);
  border-radius: 2rem 2rem 0 2rem;
  color: #ffffff;
  background: #18352b;
}

.theme-market .article-kicker {
  color: #ffd47c;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.theme-market .article-title {
  max-width: 15ch;
  margin-block: 1rem;
  font-family: var(--theme-serif);
  font-size: clamp(2.9rem, 7vw, 6.8rem);
  font-weight: 600;
  line-height: 0.95;
}

.theme-market .article-deck {
  max-width: 43rem;
  color: #e0eee7;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.theme-market .article-byline {
  width: fit-content;
  margin-top: 1.2rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: #18352b;
  background: #ffd47c;
}

.theme-market .article-hero__media,
.theme-market .article-hero__art {
  min-height: 22rem;
  border-radius: 2rem 0 2rem 2rem;
  overflow: hidden;
  background: #d87335;
}

.theme-market .article-hero__image {
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}

.theme-market .article-hero__art {
  position: relative;
  background: conic-gradient(from 90deg at 33% 50%, #d87335, #f3ba50, #4c765e, #d87335);
}

.theme-market .article-hero__art::before,
.theme-market .article-hero__art::after {
  position: absolute;
  border-radius: 50%;
  background: #f5ecda;
  content: "";
}

.theme-market .article-hero__art::before {
  inset: 18% auto auto 14%;
  width: 36%;
  aspect-ratio: 1;
}

.theme-market .article-hero__art::after {
  right: 9%;
  bottom: 10%;
  width: 25%;
  aspect-ratio: 1;
}

.theme-market .article-layout {
  display: grid;
  gap: 1rem;
  width: min(100% - 2.5rem, 84rem);
  margin-inline: auto;
  padding-block: clamp(2rem, 7vw, 7rem);
}

.theme-market .article-toc {
  padding: 1.3rem;
  border-radius: 1.5rem 1.5rem 0 1.5rem;
  background: #f0c872;
}

.theme-market .article-content {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: 1.75rem;
  background: #fffdf8;
}

.theme-market .article-content h2 {
  margin-block: 2.4em 0.7em;
  color: #18352b;
  font-family: var(--theme-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.theme-market .article-content h2::after {
  display: block;
  width: 3.5rem;
  height: 0.55rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: #d87335;
  content: "";
}

.theme-market .article-content blockquote {
  margin-inline: 0;
  padding: 1.5rem;
  border-radius: 0.5rem 4rem 0.5rem 4rem;
  color: #ffffff;
  background: #4c765e;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
}

.theme-market .article-sidebar {
  align-self: start;
  padding: 1.3rem;
  border-radius: 1.5rem;
  color: #ffffff;
  background: #a84718;
}

.theme-market .article-sidebar a {
  color: #fff1c2;
}

.theme-market .article-facts {
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
}

.theme-market .article-fact {
  padding: 1rem;
  border: 1px solid #d88a63;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
}

.theme-market .article-end {
  border-radius: 2rem 2rem 0 0;
  background: #dbe5d5;
}

@media (min-width: 59rem) {
  .theme-market .article-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(20rem, 5fr);
  }

  .theme-market .article-layout {
    grid-template-columns: minmax(0, 8fr) minmax(15rem, 3fr);
  }

  .theme-market .article-toc {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   13 — BRAND : grille suisse, noir optique et accent magenta discipliné
   -------------------------------------------------------------------------- */

body.theme-brand {
  --theme-bg: #f8f8f6;
  --theme-surface: #ffffff;
  --theme-ink: #0b0b0c;
  --theme-muted: #55555b;
  --theme-accent: #c00055;
  --theme-accent-ink: #ffffff;
  --theme-line: #bcbcc0;
  background: #f8f8f6;
}

.theme-brand .article-hero {
  position: relative;
  padding: 1.25rem max(1.25rem, calc((100vw - 92rem) / 2)) clamp(3rem, 8vw, 8rem);
  border-bottom: 1px solid #0b0b0c;
}

.theme-brand .article-hero::before {
  display: block;
  width: 100%;
  height: 0.45rem;
  margin-bottom: clamp(3rem, 8vw, 8rem);
  background: linear-gradient(90deg, #0b0b0c 0 62%, #c00055 62% 78%, #0b0b0c 78%);
  content: "";
}

.theme-brand .article-hero__inner {
  display: grid;
  gap: 1.5rem;
}

.theme-brand .article-kicker {
  color: #770033;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.theme-brand .article-title {
  max-width: 16ch;
  margin-block: 1rem;
  font-size: clamp(3rem, 8vw, 8.4rem);
  font-weight: 850;
  line-height: 0.85;
  letter-spacing: -0.065em;
}

.theme-brand .article-title::first-line {
  color: #c00055;
}

.theme-brand .article-deck {
  max-width: 43rem;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.theme-brand .article-byline {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.4rem;
  font-size: 0.85rem;
}

.theme-brand .article-byline::before {
  width: 2rem;
  height: 2rem;
  background: #0b0b0c;
  content: "";
}

.theme-brand .article-hero__media,
.theme-brand .article-hero__art {
  min-height: 21rem;
  border-left: clamp(0.75rem, 2vw, 2rem) solid #c00055;
  background: #0b0b0c;
}

.theme-brand .article-hero__image {
  height: 100%;
  min-height: 21rem;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2);
}

.theme-brand .article-hero__art {
  position: relative;
  background: linear-gradient(135deg, #0b0b0c 0 49.5%, #f8f8f6 49.5% 50.5%, #c00055 50.5%);
}

.theme-brand .article-hero__art::after {
  position: absolute;
  inset: 14% 12%;
  border: 1px solid #ffffff;
  content: "";
}

.theme-brand .article-layout {
  display: grid;
  gap: 0;
  width: min(100% - 2.5rem, 88rem);
  margin-inline: auto;
  border-inline: 1px solid #0b0b0c;
}

.theme-brand .article-toc {
  padding: 1.4rem;
  border-bottom: 1px solid #0b0b0c;
  font-size: 0.82rem;
}

.theme-brand .article-content {
  padding: clamp(2rem, 5vw, 5rem);
}

.theme-brand .article-content h2 {
  margin-block: 2.6em 0.8em;
  padding-top: 0.65rem;
  border-top: 0.5rem solid #0b0b0c;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.theme-brand .article-content h3 {
  color: #88003c;
  font-size: 1.25rem;
}

.theme-brand .article-content blockquote {
  margin-inline: 0;
  padding: 1.5rem;
  border-left: 1rem solid #c00055;
  color: #ffffff;
  background: #0b0b0c;
  font-size: clamp(1.25rem, 3vw, 1.95rem);
  font-weight: 700;
}

.theme-brand .article-sidebar {
  padding: 1.4rem;
  border-top: 1px solid #0b0b0c;
  color: #ffffff;
  background: #0b0b0c;
}

.theme-brand .article-sidebar a {
  color: #ff70b1;
}

.theme-brand .article-fact {
  padding: 0.85rem 0;
  border-bottom: 1px solid #636368;
}

.theme-brand .article-end {
  border-top: 1px solid #0b0b0c;
  background: #ffffff;
}

@media (min-width: 62rem) {
  .theme-brand .article-hero__inner {
    grid-template-columns: minmax(0, 8fr) minmax(19rem, 4fr);
  }

  .theme-brand .article-layout {
    grid-template-columns: minmax(12rem, 2fr) minmax(0, 8fr) minmax(14rem, 2.5fr);
  }

  .theme-brand .article-toc {
    border-right: 1px solid #0b0b0c;
    border-bottom: 0;
  }

  .theme-brand .article-sidebar {
    border-top: 0;
  }
}

/* --------------------------------------------------------------------------
   14 — CLASSROOM : pédagogie lumineuse, modules doux et papier quadrillé
   -------------------------------------------------------------------------- */

body.theme-classroom {
  --theme-bg: #edf5ff;
  --theme-surface: #ffffff;
  --theme-ink: #122b54;
  --theme-muted: #4d6381;
  --theme-accent: #005eb8;
  --theme-accent-ink: #ffffff;
  --theme-line: #aac2df;
  background-color: #edf5ff;
  background-image: linear-gradient(rgba(18, 43, 84, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 43, 84, 0.06) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
}

.theme-classroom .article-hero {
  position: relative;
  padding: clamp(3rem, 8vw, 7rem) max(1.25rem, calc((100vw - 84rem) / 2));
}

.theme-classroom .article-hero::after {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: clamp(3rem, 7vw, 6rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffd23f;
  content: "";
  box-shadow: -2.5rem 2.2rem 0 -0.8rem #ff765c;
}

.theme-classroom .article-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.theme-classroom .article-hero__inner > :first-child {
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 2px solid #122b54;
  border-radius: 1rem 4rem 1rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0.7rem 0.7rem 0 #aacbf3;
}

.theme-classroom .article-kicker {
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: #122b54;
  background: #ffd23f;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.theme-classroom .article-title {
  max-width: 16ch;
  margin-block: 1rem;
  color: #122b54;
  font-family: var(--theme-serif);
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: 0.96;
}

.theme-classroom .article-deck {
  max-width: 43rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.6;
}

.theme-classroom .article-byline {
  width: fit-content;
  margin-top: 1.25rem;
  padding-bottom: 0.3rem;
  border-bottom: 0.25rem solid #ff765c;
  font-weight: 700;
}

.theme-classroom .article-hero__media,
.theme-classroom .article-hero__art {
  min-height: 21rem;
  border: 2px solid #122b54;
  border-radius: 4rem 1rem 1rem 1rem;
  overflow: hidden;
  background: #ffd23f;
  box-shadow: 0.7rem 0.7rem 0 #ff765c;
}

.theme-classroom .article-hero__image {
  height: 100%;
  min-height: 21rem;
  object-fit: cover;
}

.theme-classroom .article-hero__art {
  position: relative;
  background: linear-gradient(135deg, #ffd23f 0 50%, #7ab8ff 50%);
}

.theme-classroom .article-hero__art::before {
  position: absolute;
  inset: 18%;
  border: 1rem solid #ffffff;
  border-radius: 50%;
  content: "";
}

.theme-classroom .article-layout {
  display: grid;
  gap: 1.5rem;
  width: min(100% - 2.5rem, 80rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 7rem);
}

.theme-classroom .article-toc {
  padding: 1.3rem;
  border: 2px solid #122b54;
  border-radius: 1rem;
  background: #ffd23f;
}

.theme-classroom .article-content {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.96);
}

.theme-classroom .article-content h2 {
  margin-block: 2.4em 0.75em;
  color: #122b54;
  font-family: var(--theme-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.theme-classroom .article-content h2::before {
  display: inline-grid;
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.35em;
  border: 0.12em solid #122b54;
  border-radius: 50%;
  place-items: center;
  background: #ffd23f;
  content: "";
  vertical-align: -0.08em;
}

.theme-classroom .article-content blockquote {
  margin-inline: 0;
  padding: 1.5rem;
  border: 2px solid #122b54;
  border-radius: 0.5rem 2.5rem 2.5rem 2.5rem;
  color: #122b54;
  background: #fff0a8;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.theme-classroom .article-sidebar {
  align-self: start;
  padding: 1.3rem;
  border-radius: 1.5rem;
  color: #ffffff;
  background: #165b9e;
  box-shadow: 0.5rem 0.5rem 0 #ffd23f;
}

.theme-classroom .article-sidebar a {
  color: #fff0a8;
}

.theme-classroom .article-fact {
  padding: 0.85rem;
  border: 1px solid #78a5d0;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
}

.theme-classroom .article-end {
  border-radius: 2rem 2rem 0 0;
  background: #dcecff;
}

@media (min-width: 59rem) {
  .theme-classroom .article-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(19rem, 5fr);
  }

  .theme-classroom .article-layout {
    grid-template-columns: minmax(0, 8fr) minmax(14rem, 3fr);
  }

  .theme-classroom .article-toc {
    grid-column: 1 / -1;
    columns: 2;
  }
}

/* --------------------------------------------------------------------------
   15 — ATLAS : cartographie de canaux, nuit profonde et lignes spectrales
   -------------------------------------------------------------------------- */

body.theme-atlas {
  --theme-bg: #071426;
  --theme-surface: #0e2038;
  --theme-ink: #f3f7ff;
  --theme-muted: #b9c7dc;
  --theme-accent: #62d5ff;
  --theme-accent-ink: #06101e;
  --theme-line: #355473;
  background: #071426;
}

.theme-atlas .article-page {
  color: #f3f7ff;
  background-color: #071426;
  background-image: linear-gradient(rgba(98, 213, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 213, 255, 0.07) 1px, transparent 1px);
  background-size: 3rem 3rem;
}

.theme-atlas .article-hero {
  position: relative;
  min-height: 86svh;
  padding: clamp(5rem, 11vw, 11rem) max(1.25rem, calc((100vw - 88rem) / 2));
  overflow: hidden;
  isolation: isolate;
}

.theme-atlas .article-hero::before {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background: radial-gradient(circle at 78% 28%, rgba(118, 72, 255, 0.44), transparent 18%),
    radial-gradient(circle at 62% 56%, rgba(0, 198, 179, 0.25), transparent 24%),
    radial-gradient(circle at 25% 70%, rgba(255, 88, 147, 0.2), transparent 20%);
  content: "";
}

.theme-atlas .article-hero::after {
  position: absolute;
  top: 12%;
  right: 6%;
  z-index: -1;
  width: min(42vw, 34rem);
  aspect-ratio: 1;
  border: 1px solid rgba(98, 213, 255, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(118, 72, 255, 0.09), 0 0 0 7rem rgba(98, 213, 255, 0.05);
  content: "";
}

.theme-atlas .article-hero__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.theme-atlas .article-kicker {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: #78ddff;
  font-family: var(--theme-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-atlas .article-kicker::before {
  width: 2.5rem;
  height: 1px;
  background: #62d5ff;
  content: "";
}

.theme-atlas .article-title {
  max-width: 14ch;
  margin-block: 1rem;
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.theme-atlas .article-deck {
  max-width: 45rem;
  color: #c8d5e8;
  font-size: clamp(1.12rem, 2vw, 1.48rem);
  line-height: 1.6;
}

.theme-atlas .article-byline {
  width: fit-content;
  margin-top: 1.4rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid #466a8b;
  border-radius: 999px;
  background: rgba(7, 20, 38, 0.7);
}

.theme-atlas .article-hero__media,
.theme-atlas .article-hero__art {
  position: relative;
  min-height: 23rem;
  border: 1px solid #466a8b;
  border-radius: 50%;
  overflow: hidden;
  background: #0e2038;
  box-shadow: 0 0 3rem rgba(98, 213, 255, 0.15);
}

.theme-atlas .article-hero__image {
  height: 100%;
  min-height: 23rem;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.1);
}

.theme-atlas .article-hero__art {
  background: radial-gradient(circle at 40% 35%, #62d5ff 0 0.5rem, transparent 0.55rem),
    radial-gradient(circle at 67% 60%, #ff5893 0 0.65rem, transparent 0.7rem),
    radial-gradient(circle at 30% 72%, #00c6b3 0 0.45rem, transparent 0.5rem),
    conic-gradient(from 40deg, #142d4d, #2d246e, #0c4351, #142d4d);
}

.theme-atlas .article-hero__art::after {
  position: absolute;
  inset: 22%;
  border: 1px solid #62d5ff;
  border-radius: 50%;
  content: "";
}

.theme-atlas .article-layout {
  display: grid;
  gap: 1.5rem;
  width: min(100% - 2.5rem, 86rem);
  margin-inline: auto;
  padding-block: clamp(4rem, 9vw, 9rem);
}

.theme-atlas .article-toc {
  padding: 1.3rem;
  border: 1px solid #466a8b;
  border-radius: 1rem;
  color: #f3f7ff;
  background: rgba(14, 32, 56, 0.9);
  font-family: var(--theme-mono);
  font-size: 0.8rem;
}

.theme-atlas .article-toc a,
.theme-atlas .article-content a,
.theme-atlas .article-sidebar a,
.theme-atlas .article-end a {
  color: #78ddff;
}

.theme-atlas .article-content {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid #355473;
  border-radius: 1.25rem;
  color: #e9f0fa;
  background: rgba(10, 26, 47, 0.88);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.24);
}

.theme-atlas .article-content h2 {
  position: relative;
  margin-block: 2.5em 0.75em;
  padding-left: 1.6rem;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.theme-atlas .article-content h2::before {
  position: absolute;
  top: 0.18em;
  left: 0;
  width: 0.75rem;
  height: 0.75rem;
  border: 0.15rem solid #071426;
  border-radius: 50%;
  background: #62d5ff;
  box-shadow: 0 0 0 1px #62d5ff, 0 0 1rem #62d5ff;
  content: "";
}

.theme-atlas .article-content h3 {
  color: #91e5ff;
}

.theme-atlas .article-content blockquote {
  margin-inline: 0;
  padding: 1.5rem;
  border: 1px solid #674fc3;
  border-radius: 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(72, 48, 147, 0.8), rgba(12, 67, 81, 0.8));
  font-size: clamp(1.25rem, 3vw, 1.9rem);
}

.theme-atlas .article-sidebar {
  align-self: start;
  padding: 1.3rem;
  border: 1px solid #4b6e8f;
  border-radius: 50% 50% 1rem 1rem;
  color: #f3f7ff;
  background: #0e2038;
}

.theme-atlas .article-fact {
  position: relative;
  padding: 0.85rem 0.85rem 0.85rem 1.4rem;
  border-bottom: 1px solid #355473;
}

.theme-atlas .article-fact::before {
  position: absolute;
  top: 1.25rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #00c6b3;
  content: "";
}

.theme-atlas .article-end {
  border-top: 1px solid #355473;
  color: #f3f7ff;
  background: #0e2038;
}

@media (min-width: 62rem) {
  .theme-atlas .article-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(20rem, 5fr);
  }

  .theme-atlas .article-layout {
    grid-template-columns: minmax(12rem, 2.5fr) minmax(0, 7fr) minmax(15rem, 3fr);
    align-items: start;
  }

  .theme-atlas :is(.article-toc, .article-sidebar) {
    position: sticky;
    top: 7rem;
  }
}

/* --------------------------------------------------------------------------
   Adaptations globales aux petits écrans et aux préférences de mouvement
   -------------------------------------------------------------------------- */

@media (max-width: 42rem) {
  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) .article-title {
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .theme-notebook .article-hero__inner {
    background-image: repeating-linear-gradient(transparent 0 1.75rem, rgba(40, 87, 151, 0.14) 1.75rem 1.82rem);
  }

  .theme-motion .article-title,
  .theme-backstage .article-title {
    font-size: clamp(2.55rem, 14vw, 4.5rem);
  }

  .theme-portrait .article-content blockquote,
  .theme-bridge .article-content blockquote {
    margin-inline: 0;
  }

  .theme-polyglot .article-hero::before {
    left: 0;
  }

  .theme-backstage .article-hero::before {
    inset: 0.75rem;
  }

  .theme-digital .article-layout,
  .theme-digital .article-hero__inner {
    border-inline-width: 2px;
  }

  .theme-brand .article-layout {
    border-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) *,
  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) *::before,
  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) {
    --theme-bg: #ffffff;
    --theme-surface: #ffffff;
    --theme-ink: #000000;
    --theme-muted: #333333;
    --theme-accent: #000000;
    color: #000000 !important;
    background: #ffffff !important;
  }

  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) :is(.article-page, .article-hero, .article-content, .article-toc, .article-sidebar, .article-end) {
    color: #000000 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    filter: none !important;
  }

  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) :is(.article-toc, .article-sidebar, .article-share, .related-grid) {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Compositions sur mesure du générateur : objets graphiques propres à chaque
   récit. Ces éléments renforcent la différence structurelle entre les pages.
   -------------------------------------------------------------------------- */

.article-hero__inner {
  position: relative;
}

.portrait-copy {
  min-width: 0;
}

.portrait-seal {
  width: 8.5rem;
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid var(--theme-accent);
  border-radius: 50%;
  color: var(--theme-accent);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .1em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.portrait-index {
  position: absolute;
  right: 0;
  bottom: -1rem;
  color: rgb(155 28 36 / .14);
  font-family: var(--theme-serif);
  font-size: clamp(8rem, 22vw, 18rem);
  line-height: .7;
  pointer-events: none;
}

.journey-route {
  display: grid;
  grid-template-columns: auto minmax(4rem, 1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: 1rem 0;
  color: var(--theme-accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.journey-route i {
  position: relative;
  height: 2px;
  background: var(--theme-accent);
}

.journey-route i::before,
.journey-route i::after {
  position: absolute;
  top: 50%;
  width: .65rem;
  height: .65rem;
  border: 2px solid var(--theme-accent);
  border-radius: 50%;
  background: var(--theme-bg);
  content: "";
  transform: translateY(-50%);
}

.journey-route i::before { left: 0; }
.journey-route i::after { right: 0; }

.notebook-margin {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-self: start;
}

.notebook-margin span,
.notebook-note {
  padding: .45rem .65rem;
  border: 1px solid #285797;
  background: #f7f1dc;
  color: #1f477d;
  font-family: var(--theme-mono);
  font-size: .7rem;
  text-transform: uppercase;
}

.notebook-note {
  max-width: 19rem;
  transform: rotate(-1.5deg);
}

.theme-stage .article-hero__inner {
  grid-template-columns: minmax(0, 7fr) minmax(20rem, 5fr);
  align-items: center;
  isolation: isolate;
}

.theme-stage .article-hero__media {
  min-height: min(48rem, 68svh);
  margin: 0;
}

.theme-stage .article-hero__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(9 7 14 / .52), transparent 55%);
  content: "";
}

.theme-stage .article-hero__image {
  height: min(48rem, 68svh);
  aspect-ratio: auto;
}

.theme-stage .article-hero__media figcaption {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  max-width: 28rem;
  background: rgb(9 7 14 / .82);
}

.stage-overlay {
  align-self: center;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 3rem) 0;
}

.stage-marquee {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #ffd447;
  color: #ffd447;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}

.stage-marquee span { padding: .8rem; }
.stage-marquee span + span { border-left: 1px solid #ffd447; }

.theme-signal .article-hero__inner {
  grid-template-columns: minmax(0, 7fr) minmax(18rem, 5fr);
  align-items: stretch;
}

.theme-signal .article-hero__text { grid-column: 1; }
.theme-signal .article-hero__media { grid-column: 2; grid-row: 1 / span 2; }

.signal-board {
  display: grid;
  grid-column: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: end;
  border: 1px solid #38bdf8;
}

.signal-board div { padding: .85rem; }
.signal-board div + div { border-left: 1px solid #38bdf8; }
.signal-board strong { display: block; color: #38bdf8; font-family: var(--theme-mono); font-size: clamp(1rem, 2vw, 1.55rem); }
.signal-board span { display: block; margin-top: .25rem; color: #dbeafe; font-size: .65rem; line-height: 1.35; }

.theme-bridge .article-hero__inner {
  grid-template-columns: minmax(14rem, 5fr) minmax(0, 7fr);
  align-items: center;
}

.bridge-map {
  display: grid;
  min-height: 24rem;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: 1.5rem;
  border: 1px solid var(--theme-accent);
  background: radial-gradient(circle, rgb(28 83 89 / .22) 1px, transparent 1px);
  background-size: 1rem 1rem;
}

.bridge-map b {
  display: grid;
  width: 5.25rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--theme-accent);
  color: var(--theme-accent-ink);
  font-size: .7rem;
  letter-spacing: .08em;
}

.bridge-map span {
  height: 3rem;
  border: solid var(--theme-accent);
  border-width: 3px 0 0;
  border-radius: 50% 50% 0 0;
}

.bridge-caption {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid var(--theme-line);
  color: var(--theme-accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-align: center;
}

.theme-motion .article-hero__inner {
  grid-template-columns: minmax(17rem, 5fr) minmax(0, 7fr);
  align-items: center;
}

.motion-art {
  position: relative;
  min-height: 31rem;
  overflow: hidden;
  background: #160f27;
}

.motion-art i {
  position: absolute;
  width: 12rem;
  aspect-ratio: 1;
  border: 1.25rem solid #ff6b35;
  border-radius: 50%;
}

.motion-art i:nth-child(1) { top: -2rem; left: -3rem; }
.motion-art i:nth-child(2) { top: 9rem; right: -3rem; border-color: #f5d547; }
.motion-art i:nth-child(3) { bottom: -4rem; left: 5rem; border-color: #a78bfa; }
.motion-art b { position: absolute; inset: auto 1rem 1rem; color: #fff; font-size: .7rem; letter-spacing: .2em; }

.motion-words {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--theme-ink);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.theme-digital .article-hero__inner {
  grid-template-columns: minmax(17rem, 5fr) minmax(0, 7fr);
  align-items: stretch;
}

.digital-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid #0f2f21;
  background: #0f2f21;
  gap: 2px;
}

.digital-grid span {
  display: grid;
  min-height: 8rem;
  place-items: end start;
  padding: 1rem;
  background: #d5ffe4;
  color: #0f2f21;
  font-family: var(--theme-mono);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.digital-grid span:first-child { background: #16a34a; color: #07150e; font-size: 3rem; }
.digital-prompt { grid-column: 1 / -1; padding: .65rem 1rem; background: #0f2f21; color: #86efac; font-family: var(--theme-mono); font-size: .72rem; letter-spacing: .12em; }

.travel-stamp {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 7rem;
  aspect-ratio: 1;
  place-items: center;
  border: .2rem double var(--theme-accent);
  border-radius: 50%;
  color: var(--theme-accent);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: center;
  transform: rotate(9deg);
}

.travel-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .25rem 1rem;
  max-width: 26rem;
  padding: 1.25rem;
  border: 1px solid var(--theme-ink);
  background: #fffaf0;
  box-shadow: .8rem .8rem 0 #d9c6a1;
  transform: rotate(-1deg);
}

.travel-card span { color: var(--theme-muted); font-size: .68rem; text-transform: uppercase; }
.travel-card strong { text-align: right; }
.travel-card i { grid-column: 1 / -1; height: 1px; margin-block: .5rem; background: var(--theme-line); }

.theme-polyglot .article-hero__inner {
  grid-template-columns: minmax(16rem, 5fr) minmax(0, 7fr);
  align-items: center;
}

.polyglot-cloud {
  display: grid;
  gap: .45rem;
  padding: 1.25rem;
  border: 1px solid #4e6cff;
  background: #101a49;
}

.polyglot-cloud span {
  color: #fff;
  font-family: var(--theme-serif);
  font-size: clamp(1.4rem, 4vw, 3.5rem);
  line-height: 1;
}

.polyglot-cloud span:nth-child(even) { color: #f8c65c; text-align: right; }
.polyglot-key { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid #4e6cff; color: #213ea8; font-size: .72rem; font-weight: 900; letter-spacing: .18em; }

.theme-backstage .article-hero__inner {
  grid-template-columns: minmax(18rem, 5fr) minmax(0, 7fr);
  align-items: stretch;
}

.backstage-poster {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  border: 1px solid #d9a441;
  background: #1c1010;
}

.backstage-ticket {
  width: fit-content;
  margin-top: 2rem;
  padding: .55rem .8rem;
  border: 1px dashed #d9a441;
  color: #f8d891;
  font-family: var(--theme-mono);
  font-size: .65rem;
  letter-spacing: .1em;
}

.theme-market .article-hero__inner {
  grid-template-columns: minmax(12rem, 3fr) minmax(0, 6fr) minmax(15rem, 3fr);
  align-items: stretch;
}

.market-ledger {
  display: grid;
  border: 1px solid #2f4f39;
  background: #f4ecd6;
}

.market-ledger span {
  display: flex;
  align-items: center;
  padding: .9rem;
  border-bottom: 1px solid #2f4f39;
  color: #213d2b;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.market-ledger span::before { width: 1.6rem; margin-right: .6rem; color: #b44321; content: "✓"; font-size: 1.1rem; }

.theme-brand .article-hero__inner {
  grid-template-columns: minmax(10rem, 2fr) minmax(0, 7fr) minmax(16rem, 3fr);
  align-items: center;
}

.brand-monogram {
  font-family: var(--theme-sans);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 950;
  letter-spacing: -.12em;
  line-height: .7;
  writing-mode: vertical-rl;
}

.brand-rule {
  grid-column: 1 / -1;
  padding: .7rem 0;
  border-block: 2px solid #111;
  color: #b41655;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-align: center;
}

.theme-classroom .article-hero__inner {
  grid-template-columns: minmax(12rem, 3fr) minmax(0, 6fr) minmax(15rem, 3fr);
  align-items: center;
}

.classroom-cards {
  display: grid;
  gap: .65rem;
}

.classroom-cards span {
  padding: 1rem;
  border: 2px solid #172554;
  background: #facc15;
  color: #172554;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: .35rem .35rem 0 #172554;
}

.classroom-cards span:nth-child(2) { background: #bfdbfe; transform: translateX(1rem); }
.classroom-cards span:nth-child(3) { background: #fff; }

.theme-atlas .article-hero__inner {
  grid-template-columns: minmax(0, 6fr) minmax(11rem, 2fr) minmax(16rem, 4fr);
  align-items: stretch;
}

.atlas-channels {
  display: grid;
  border: 1px solid #5eead4;
}

.atlas-channels span {
  display: grid;
  place-items: center;
  padding: .75rem;
  border-bottom: 1px solid #5eead4;
  color: #ccfbf1;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

@media (max-width: 61.99rem) {
  .theme-signal .article-hero__inner,
  .theme-stage .article-hero__inner,
  .theme-bridge .article-hero__inner,
  .theme-motion .article-hero__inner,
  .theme-digital .article-hero__inner,
  .theme-polyglot .article-hero__inner,
  .theme-backstage .article-hero__inner,
  .theme-market .article-hero__inner,
  .theme-brand .article-hero__inner,
  .theme-classroom .article-hero__inner,
  .theme-atlas .article-hero__inner {
    grid-template-columns: 1fr;
  }

  .theme-signal .article-hero__text,
  .theme-signal .article-hero__media,
  .signal-board,
  .bridge-caption,
  .motion-words,
  .digital-prompt,
  .polyglot-key,
  .brand-rule {
    grid-column: auto;
    grid-row: auto;
  }

  .theme-signal .article-hero__media { max-height: 34rem; }
  .theme-signal .article-hero__image { height: 34rem; object-position: top; }
  .theme-stage .article-hero__media,
  .theme-stage .article-hero__image { min-height: 28rem; height: 55svh; }
  .brand-monogram { writing-mode: horizontal-tb; }
  .atlas-channels { grid-template-columns: repeat(4, 1fr); }
  .atlas-channels span { min-height: 5rem; writing-mode: horizontal-tb; }
}

@media (max-width: 40rem) {
  .signal-board,
  .stage-marquee { grid-template-columns: 1fr; }
  .signal-board div + div,
  .stage-marquee span + span { border-left: 0; border-top: 1px solid currentColor; }
  .bridge-map { min-height: 17rem; grid-template-columns: 1fr; justify-items: center; }
  .bridge-map span { width: 3rem; height: 4rem; border-width: 0 0 0 3px; border-radius: 0; }
  .motion-art { min-height: 22rem; }
  .digital-grid { grid-template-columns: 1fr; }
  .travel-stamp { position: static; margin: 0 0 1rem auto; }
  .article-hero__media figcaption { position: static !important; max-width: none !important; }
}

/* La feuille des thèmes est chargée après la base. Ces sélecteurs volontairement
   plus spécifiques garantissent donc que les compositions desktop ne
   réactivent jamais leurs grilles sur téléphone ou petite tablette. */
@media (max-width: 48rem) {
  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) .article-layout {
    display: flex;
    width: min(calc(100% - 2rem), var(--content));
    max-width: 100%;
    flex-direction: column;
    gap: 2rem;
    margin-inline: auto;
    padding-block: 2.5rem;
  }

  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) :is(.article-content, .article-toc, .article-sidebar) {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) .article-content {
    order: 1;
    overflow-wrap: break-word;
  }

  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) .article-toc {
    position: static;
    order: 2;
    padding: 1rem;
  }

  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) .article-sidebar {
    position: static;
    order: 3;
  }

  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) :is(.article-title, .article-deck, .article-byline, .article-kicker, .article-hero__media, .article-hero__art) {
    max-width: 100%;
  }

  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) :is(.article-title, .article-deck, .article-byline, .article-kicker) {
    overflow-wrap: anywhere;
  }

  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) .article-title {
    font-size: clamp(2.25rem, 11vw, 4.25rem);
    line-height: 1;
  }

  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) .article-deck {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) :is(.article-content blockquote, .article-hero__media, .article-hero__art) {
    margin-inline: 0;
  }

  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) .article-toc a {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    padding-block: .55rem;
  }

  body:is(
    .theme-portrait,
    .theme-journey,
    .theme-notebook,
    .theme-stage,
    .theme-signal,
    .theme-bridge,
    .theme-motion,
    .theme-digital,
    .theme-travel,
    .theme-polyglot,
    .theme-backstage,
    .theme-market,
    .theme-brand,
    .theme-classroom,
    .theme-atlas
  ) :is(.article-share a, .article-share button) {
    min-height: 2.75rem;
  }
}

/* Correctif transversal des héros sur téléphone : chaque composition garde
   son identité, mais le titre et les informations utiles passent en premier. */
@media (max-width: 48rem) {
  .article-page .article-hero {
    min-height: 0;
    padding: clamp(2rem, 8vw, 3rem) 1rem;
  }

  .article-page .article-hero__inner {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(1.25rem, 5vw, 2rem);
    margin-inline: 0;
    padding-block: 0;
  }

  .article-page :is(.article-hero__inner > *, .article-layout > *) {
    min-width: 0;
    max-width: 100%;
  }

  .article-page .article-hero__media {
    min-width: 0;
    min-height: 0;
    max-height: none;
    margin: 0;
  }

  .article-page .article-hero__media picture {
    display: block;
  }

  body .article-page .article-title {
    max-width: 100%;
    margin-block: .75rem 1rem;
    font-size: clamp(2.15rem, 9.5vw, 3.5rem);
    line-height: .98;
    letter-spacing: -.04em;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
  }

  .article-page .article-deck {
    max-width: 100%;
    font-size: clamp(1rem, 4.5vw, 1.18rem);
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .article-page .article-byline {
    display: flex;
    width: 100%;
    grid-template-columns: none;
    flex-wrap: wrap;
  }

  /* Dans les compositions dont le décor précède le H1 dans le DOM,
     la copie éditoriale devient le premier élément visuel sur mobile. */
  .theme-notebook .article-hero__text,
  .theme-stage .stage-overlay,
  .theme-bridge .article-hero__text,
  .theme-motion .article-hero__text,
  .theme-digital .article-hero__text,
  .theme-travel .article-hero__text,
  .theme-polyglot .article-hero__text,
  .theme-backstage .backstage-poster,
  .theme-market .article-hero__text,
  .theme-brand .article-hero__text,
  .theme-classroom .article-hero__text {
    order: -10;
  }

  .article-page .article-hero__image {
    width: 100%;
    min-height: 0;
    max-height: none;
    height: auto;
  }

  .article-page .article-hero__media figcaption {
    position: static !important;
    max-width: none !important;
  }

  .theme-stage .article-hero__image {
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  body:is(.theme-portrait, .theme-stage, .theme-backstage) .article-page .article-hero__image {
    height: clamp(22rem, 78vw, 32rem);
    aspect-ratio: auto;
    object-fit: cover;
  }

  body.theme-stage .article-page .article-hero__media {
    min-height: 0;
    height: auto;
  }

  .theme-signal .article-hero__image,
  .theme-market .article-hero__image,
  .theme-brand .article-hero__image,
  .theme-classroom .article-hero__image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .theme-atlas .article-hero__image {
    aspect-ratio: 1;
    object-fit: cover;
  }

  .motion-art {
    min-height: clamp(14rem, 58vw, 20rem);
  }

  .motion-art i {
    width: clamp(7rem, 31vw, 10rem);
    border-width: .75rem;
  }

  .bridge-map {
    min-height: 14rem;
  }

  .digital-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .digital-grid span {
    min-height: 5.25rem;
  }

  .theme-travel .article-hero::before {
    display: none;
  }

  .travel-stamp {
    position: static;
    width: 4.75rem;
    margin: 0 0 0 auto;
  }

  .brand-monogram {
    font-size: clamp(3.5rem, 16vw, 5rem);
    line-height: 1;
    writing-mode: horizontal-tb;
  }

  .classroom-cards span:nth-child(2) {
    transform: none;
  }

  .atlas-channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlas-channels span {
    min-width: 0;
    min-height: 3.75rem;
    overflow-wrap: anywhere;
    writing-mode: horizontal-tb;
  }

  .theme-polyglot .article-title::after {
    right: 0;
  }

  .signal-board {
    background: #071b25;
  }

  .theme-notebook :is(.article-hero__media, .article-sidebar, .article-content blockquote),
  .theme-motion :is(.article-hero__media, .article-sidebar),
  .theme-travel :is(.article-hero__media, .travel-card, .article-content blockquote) {
    transform: none;
  }

  .theme-journey .article-hero__image,
  .theme-motion .article-hero__media,
  .theme-backstage .article-hero__media {
    box-shadow: .45rem .45rem 0 var(--theme-accent);
  }
}

@media print {
  :is(.portrait-seal, .portrait-index, .journey-route, .notebook-margin, .notebook-note,
      .stage-marquee, .signal-board, .bridge-map, .bridge-caption, .motion-art,
      .motion-words, .digital-grid, .digital-prompt, .travel-stamp, .travel-card,
      .polyglot-cloud, .polyglot-key, .backstage-ticket, .market-ledger,
      .brand-monogram, .brand-rule, .classroom-cards, .atlas-channels) {
    display: none !important;
  }

  .theme-stage .stage-overlay,
  .theme-stage .article-hero__media {
    grid-area: auto;
  }
}
