/* ============================================================
   DESIGN SYSTEM — TEOMARCHI
   Fond Anthracite #121212 · Ivoire atténué #F2F0EA · Doré Satiné #C9A96E
   Typographie : Cormorant Garamond + DM Sans · Bordures 0.5px
============================================================ */
:root {
  /* Couleurs de fond */
  --bg:         #121212;
  --surface:    #1A1A18;
  --surface-2:  #22211E;
  --surface-3:  #2A2924;

  /* Texte */
  --ink:        #F2F0EA;
  --ink-2:      #C8C4BA;
  --muted:      #918B82;

  /* Or satiné */
  --gold:       #C9A96E;
  --gold-dim:   rgba(201, 169, 110, 0.16);
  --gold-glow:  rgba(201, 169, 110, 0.07);

  /* Matières TEOMARCHI */
  --concrete: #6F716C;
  --architectural-beige: #D7C6A3;
  --steel: #A8ADB2;
  --steel-dim: rgba(168, 173, 178, 0.16);
  --module-surface: linear-gradient(135deg, rgba(245, 245, 241, 0.035), transparent 42%), var(--surface);

  /* Accents de modules */
  --atlas-accent: #5A84A8;
  --atlas-accent-dim: rgba(90, 132, 168, 0.18);
  --chronos-accent: #B38355;
  --chronos-accent-dim: rgba(179, 131, 85, 0.18);
  --pantheon-accent: #B06455;
  --pantheon-accent-dim: rgba(176, 100, 85, 0.18);
  --journalier-accent: #D6C27B;
  --journalier-accent-dim: rgba(214, 194, 123, 0.16);
  --feed-accent: #7E9AB4;
  --feed-accent-dim: rgba(126, 154, 180, 0.17);

  /* Sémantique */
  --danger:     #C4614A;
  --ok:         #5A9A6A;
  --warn:       #D4A040;

  /* Bordures ultra-fines */
  --border:        0.5px solid rgba(245, 245, 241, 0.09);
  --border-strong: 0.5px solid rgba(245, 245, 241, 0.20);
  --border-gold:   0.5px solid rgba(201, 169, 110, 0.42);

  /* Typographie */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  "SFMono-Regular", "JetBrains Mono", Consolas, monospace;

  /* Espacement — ratio φ */
  --sp-xs:  0.382rem;
  --sp-sm:  0.618rem;
  --sp-md:  1rem;
  --sp-lg:  1.618rem;
  --sp-xl:  2.618rem;
  --sp-xxl: 4.236rem;

  /* Effets */
  --shadow:    0 28px 90px rgba(0, 0, 0, 0.70);
  --shadow-sm: 0 6px 24px  rgba(0, 0, 0, 0.52);
  --motion-soft: 220ms cubic-bezier(.2, .8, .2, 1);
  --motion-slow: 420ms cubic-bezier(.2, .8, .2, 1);

  /* Rayons */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  /* Topbar */
  --topbar-h: 66px;

  color-scheme: dark;
}

/* Mode clair */
[data-theme="light"] {
  --bg:         #EFE9DC;
  --surface:    #FFFCF4;
  --surface-2:  #F4EDDE;
  --surface-3:  #E6DAC6;

  --ink:        #19140F;
  --ink-2:      #3F3830;
  --muted:      #6F665A;

  --gold:       #805B22;
  --gold-dim:   rgba(128, 91, 34, 0.14);
  --gold-glow:  rgba(128, 91, 34, 0.075);

  --concrete: #777369;
  --architectural-beige: #C9B889;
  --steel: #7D8790;
  --steel-dim: rgba(91, 101, 109, 0.14);
  --module-surface:
    linear-gradient(135deg, rgba(128, 91, 34, 0.075), transparent 44%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.92), rgba(244, 237, 222, 0.84)),
    var(--surface);

  --atlas-accent: #446D8E;
  --atlas-accent-dim: rgba(68, 109, 142, 0.15);
  --chronos-accent: #5D744E;
  --chronos-accent-dim: rgba(93, 116, 78, 0.15);
  --pantheon-accent: #A75445;
  --pantheon-accent-dim: rgba(167, 84, 69, 0.15);
  --journalier-accent: #8E742E;
  --journalier-accent-dim: rgba(142, 116, 46, 0.15);
  --feed-accent: #446D8E;
  --feed-accent-dim: rgba(68, 109, 142, 0.14);

  --border:        0.5px solid rgba(42, 34, 23, 0.13);
  --border-strong: 0.5px solid rgba(42, 34, 23, 0.26);
  --border-gold:   0.5px solid rgba(128, 91, 34, 0.42);

  --shadow:    0 22px 70px rgba(67, 50, 27, 0.12);
  --shadow-sm: 0 5px 22px  rgba(67, 50, 27, 0.09);

  color-scheme: light;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-authenticated [data-open-login] {
  display: none !important;
}

.tm-save-status {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tm-save-status[data-save-state="saved"] { color: var(--ok); }
.tm-save-status[data-save-state="saving"] { color: var(--gold); }
.tm-save-status[data-save-state="local"] { color: var(--warn); }

.tm-demo-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 1.15rem;
  padding: 0.12rem 0.42rem;
  border: var(--border-gold);
  border-radius: var(--r-pill);
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
}

.tm-demo-preview {
  display: grid;
  gap: 0.72rem;
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: var(--border-gold);
  border-radius: var(--r-sm);
  background:
    linear-gradient(135deg, rgba(201, 169, 110, 0.08), transparent 46%),
    color-mix(in srgb, var(--surface-2) 78%, transparent);
}

.tm-demo-preview h3,
.tm-demo-preview p {
  margin: 0;
}

.tm-demo-preview h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 300;
  line-height: 1.16;
}

.tm-demo-preview p {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.58;
}

.tm-demo-preview article {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.72rem;
  border: var(--border);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.tm-demo-preview article strong,
.tm-demo-preview article span {
  overflow-wrap: anywhere;
}

.tm-demo-preview article strong {
  color: var(--ink);
  font-weight: 500;
}

.tm-demo-preview article span {
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tm-demo-progress {
  width: 100%;
  height: 0.42rem;
  overflow: hidden;
  border: var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
}

.tm-demo-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--steel));
}

.tm-demo-feed {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.tm-feed-post.tm-feed-post--demo {
  border-color: rgba(201, 169, 110, 0.28);
  background:
    linear-gradient(135deg, rgba(201, 169, 110, 0.07), transparent 38%),
    var(--surface);
}

.tm-skeleton {
  position: relative;
  overflow: hidden;
  border: var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}

.tm-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.11), transparent);
  animation: tm-skeleton-pulse 1.35s ease-in-out infinite;
}

@keyframes tm-skeleton-pulse {
  to { transform: translateX(100%); }
}

.tm-skeleton-line {
  display: block;
  height: 0.72rem;
  border-radius: var(--r-pill);
  background: rgba(201, 169, 110, 0.10);
}

.tm-feed-skeleton,
.tm-atlas-skeleton {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.tm-feed-skeleton__card,
.tm-atlas-skeleton__card {
  display: grid;
  gap: 0.72rem;
  min-height: 132px;
  padding: 1rem;
}

.tm-feed-demo-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  padding-top: 0.8rem;
  border-top: var(--border);
}

.tm-feed-demo-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.16rem 0.58rem;
  border: var(--border);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font-size: 0.60rem;
  font-weight: 400;
  letter-spacing: 0.10em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tm-feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.tm-feed-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.16rem 0.52rem;
  border: var(--border);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.64rem;
  line-height: 1.2;
}

.tm-profile-avatar-preview {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: var(--border-gold);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 0 0 0.7rem;
}

.tm-logout-actions,
.tm-acquisition-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tm-acquisition-card {
  flex: 1 1 190px;
  display: grid;
  gap: 0.38rem;
  padding: 1rem;
  border: var(--border);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface-2) 66%, transparent);
}

.tm-acquisition-card strong {
  color: var(--ink);
  font-weight: 500;
}

.tm-acquisition-card span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.tm-upgrade-gate {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 1rem;
  border: var(--border-gold);
  border-radius: var(--r-md);
  background: radial-gradient(ellipse at 0% 0%, var(--gold-glow), transparent 60%), var(--surface);
}

.tm-upgrade-gate h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 300;
}

.tm-upgrade-gate p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Grille de fond subtile */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(245, 245, 241, 0.028) 0.5px, transparent 0.5px),
    linear-gradient(90deg, rgba(245, 245, 241, 0.028) 0.5px, transparent 0.5px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 65%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 65%);
}

/* Accent radial doré — coin haut-droit */
body::after {
  content: "";
  position: fixed;
  top: -120px;
  right: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 88% -10%, rgba(128, 91, 34, 0.10), transparent 34rem),
    radial-gradient(circle at 7% 18%, rgba(68, 109, 142, 0.075), transparent 28rem),
    var(--bg);
}

[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(25, 20, 15, 0.052) 0.5px, transparent 0.5px),
    linear-gradient(90deg, rgba(25, 20, 15, 0.052) 0.5px, transparent 0.5px);
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, .78) 42%, transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, .78) 42%, transparent 82%);
}

[data-theme="light"] body::after {
  background: radial-gradient(circle, rgba(128, 91, 34, 0.09) 0%, transparent 70%);
}

/* Resets courants */
a                       { color: inherit; text-decoration: none; }
button                  { border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; border: 0; outline: 0; background: transparent; }
svg                     { display: block; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
ul, ol                  { list-style: none; margin: 0; padding: 0; }
img                     { display: block; max-width: 100%; }

/* Empilement Z */
.navbar       { position: relative; z-index: 9000; }
.sidebar      { position: relative; z-index: 500;  }
.app          { position: relative; z-index: 1;    }
footer,
.legal-strip  { position: relative; z-index: 1;    }

/* ============================================================
   UTILITAIRES
============================================================ */
.u-serif { font-family: var(--serif); }
.u-mono  { font-family: var(--mono);  }
.u-muted { color: var(--muted);       }
.u-gold  { color: var(--gold);        }

.u-label {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.60rem;
  font-weight: 500;
}

/* ============================================================
   PRIMITIVES — système architectural TEOMARCHI
============================================================ */
.tm-shell {
  position: relative;
  display: grid;
  gap: var(--sp-lg);
  min-width: 0;
}

.tm-editorial-panel,
.tm-architectural-card {
  position: relative;
  border: var(--border);
  border-radius: var(--r-lg);
  background: var(--module-surface);
  overflow: hidden;
}

.tm-editorial-panel {
  padding: var(--sp-lg);
}

.tm-architectural-card {
  padding: var(--sp-md);
  transition:
    transform var(--motion-soft),
    border-color var(--motion-soft),
    background var(--motion-soft);
}

.tm-architectural-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 169, 110, 0.34);
}

.tm-technical-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  padding: 0.12rem 0.55rem;
  border: var(--border-gold);
  border-radius: var(--r-pill);
  background: var(--gold-glow);
  color: var(--gold);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tm-reveal {
  animation: tmReveal var(--motion-slow) both;
}

@keyframes tmReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-reveal {
    animation: none;
  }
}

/* ============================================================
   IDENTITÉS — Atlas, Chronos, Panthéon
============================================================ */
.tm-atlas-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-lg);
  align-items: center;
  background:
    radial-gradient(circle at 72% 42%, rgba(201, 169, 110, 0.12), transparent 28%),
    repeating-linear-gradient(0deg, rgba(245, 245, 241, 0.028) 0 1px, transparent 1px 22px),
    var(--module-surface);
}

.tm-atlas-map h3,
.tm-pantheon-gallery h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.04;
  color: var(--ink);
}

.tm-atlas-orbit {
  aspect-ratio: 1;
  border: 0.5px solid rgba(201, 169, 110, 0.36);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 42%, rgba(201, 169, 110, 0.08) 43% 44%, transparent 45%),
    linear-gradient(90deg, transparent 49%, rgba(245, 245, 241, 0.12) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(245, 245, 241, 0.08) 50%, transparent 51%);
}

.tm-chronos-spine {
  display: grid;
  gap: var(--sp-md);
}

.tm-chronos-line {
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--steel), var(--architectural-beige));
}

.tm-pantheon-gallery {
  display: grid;
  gap: var(--sp-sm);
  background:
    linear-gradient(90deg, rgba(245, 245, 241, 0.05), transparent 28%),
    var(--module-surface);
}

.tm-module-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: var(--sp-lg);
  align-items: stretch;
  min-width: 0;
}

.tm-module-visual {
  position: relative;
  display: grid;
  min-width: 0;
  margin: 0;
  border: var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
}

.tm-module-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 245, 241, 0.035);
  pointer-events: none;
}

.tm-module-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-module-visual--banner img {
  aspect-ratio: 1200 / 520;
}

.tm-module-visual--card img {
  aspect-ratio: 1;
}

.tm-module-visual--atlas {
  box-shadow: inset 0 0 0 1px var(--atlas-accent-dim);
}

.tm-module-visual--chronos {
  box-shadow: inset 0 0 0 1px var(--chronos-accent-dim);
}

.tm-module-visual--pantheon {
  box-shadow: inset 0 0 0 1px var(--pantheon-accent-dim);
}

.tm-glyph-line,
.tm-glyph-structure,
.tm-glyph-muted {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.tm-glyph-line {
  stroke: currentColor;
  stroke-width: 2.4;
}

.tm-glyph-structure {
  stroke: currentColor;
  stroke-opacity: 0.62;
  stroke-width: 2;
}

.tm-glyph-muted {
  stroke: currentColor;
  stroke-opacity: 0.28;
  stroke-width: 1.6;
}

.tm-glyph-fill {
  fill: currentColor;
  fill-opacity: 0.18;
}

.tm-glyph-node circle {
  fill: var(--gold);
  stroke: currentColor;
  stroke-width: 1.5;
}

.tm-pantheon .tm-tech-card {
  min-height: 320px;
}

.tm-atlas-hero {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.tm-atlas-hero-copy {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.tm-atlas-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tm-atlas-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  border: var(--border);
  border-radius: var(--r-pill);
  padding: 0.32rem 0.72rem;
  background: rgba(245, 245, 241, 0.035);
  color: var(--muted);
  font-size: 0.7rem;
}

.tm-atlas-stats strong {
  color: var(--ink);
  font-weight: 500;
}

.tm-atlas-grid-systems {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.tm-atlas-system-card .tm-tech-sketch {
  background:
    repeating-linear-gradient(0deg, rgba(201, 169, 110, 0.08) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(245, 245, 241, 0.035) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, #090908, #15130e);
}

.tm-atlas-detail {
  border-color: rgba(201, 169, 110, 0.24);
}

.tm-chronos-hero h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--ink);
}

.tm-chronos-line {
  position: relative;
  height: 3px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--gold), var(--steel), var(--architectural-beige));
}

.tm-chronos-spine__head {
  display: grid;
  gap: 0.55rem;
  max-width: min(100%, 960px);
}

.tm-chronos-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  padding-top: 1.25rem;
}

.tm-chronos-track::before {
  content: "";
  position: absolute;
  top: 0.42rem;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--gold), var(--steel), var(--architectural-beige));
}

.tm-chronos-era {
  position: relative;
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  padding-top: 0.75rem;
}

.tm-chronos-era::before {
  content: "";
  position: absolute;
  top: -0.03rem;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 5px var(--gold-glow);
}

.tm-chronos-era strong {
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tm-chronos-era small {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.35;
}

.tm-chronos-spine__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tm-chronos-spine__stats span {
  display: inline-flex;
  border: var(--border);
  border-radius: var(--r-pill);
  padding: 0.22rem 0.6rem;
  color: var(--muted);
  background: rgba(245,245,241,0.035);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tm-chronos-era-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-sm);
  padding-top: 0.65rem;
  border-top: var(--border);
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tm-chronos-era-scale span:last-child {
  color: var(--gold);
  text-align: right;
}

.tm-chronos-timeline {
  position: relative;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding-top: 1rem;
}

.tm-chronos-timeline::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.42), transparent);
}

.tm-chronos-period-card {
  grid-template-rows: auto 1fr;
  overflow: visible;
}

.tm-chronos-marker {
  border-bottom: var(--border);
  padding: 0.75rem 1rem 0;
}

.tm-chronos-marker span {
  display: inline-flex;
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tm-chronos-detail {
  background:
    linear-gradient(180deg, rgba(168, 173, 178, 0.08), transparent 32%),
    var(--surface);
}

.tm-pantheon-archive {
  background:
    linear-gradient(90deg, rgba(245, 245, 241, 0.055), transparent 34%),
    radial-gradient(circle at 86% 20%, rgba(201, 169, 110, 0.1), transparent 28%),
    var(--module-surface);
}

.tm-pantheon-movement-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 1rem;
}

.tm-tech-controls--pantheon {
  grid-template-columns: minmax(260px, 1.15fr) repeat(5, minmax(128px, 0.75fr));
  align-items: start;
}

.tm-tech-controls--pantheon .tm-tech-search {
  grid-column: auto;
}

.tm-tech-controls--pantheon .tm-tech-chip-row {
  max-height: 78px;
  overflow: hidden;
}

.tm-pantheon-figure-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.tm-pantheon-figure-card {
  grid-template-rows: 138px 1fr;
  background:
    linear-gradient(180deg, rgba(245, 245, 241, 0.035), transparent 44%),
    var(--surface);
}

.tm-pantheon-figure-card .tm-tech-sketch {
  background:
    linear-gradient(90deg, rgba(201, 169, 110, 0.08), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(245, 245, 241, 0.045) 38px 39px),
    #090908;
}

.tm-pantheon-detail {
  background:
    linear-gradient(90deg, rgba(245, 245, 241, 0.04), transparent 38%),
    var(--surface);
}

.tm-atlas-map {
  background:
    radial-gradient(circle at 72% 42%, var(--atlas-accent-dim), transparent 28%),
    repeating-linear-gradient(0deg, rgba(245, 245, 241, 0.028) 0 1px, transparent 1px 22px),
    var(--module-surface);
}

.tm-atlas-board-media {
  min-height: 140px;
}

.tm-atlas-card-visual {
  display: grid;
  place-items: center;
  width: 100%;
  height: 68px;
  margin-bottom: 0.15rem;
  border: var(--border);
  border-radius: var(--r-sm);
  color: var(--atlas-accent);
  background:
    linear-gradient(135deg, var(--atlas-accent-dim), transparent 62%),
    repeating-linear-gradient(90deg, rgba(245, 245, 241, 0.035) 0 1px, transparent 1px 22px),
    var(--surface-2);
  overflow: hidden;
}

.tm-atlas-card-visual svg {
  width: 100%;
  height: 100%;
  opacity: 0.78;
}

.tm-tech--atlas .tm-tech-tag,
.tm-atlas-world-card .tm-technical-badge,
.tm-tech--atlas .tm-tech-badges span:first-child {
  border-color: color-mix(in srgb, var(--atlas-accent) 52%, transparent);
  color: var(--atlas-accent);
  background: var(--atlas-accent-dim);
}

.tm-tech--chronos .tm-module-intro-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
}

.tm-chronos-hero {
  background:
    radial-gradient(circle at 82% 22%, var(--chronos-accent-dim), transparent 26%),
    linear-gradient(135deg, rgba(245, 245, 241, 0.035), transparent 42%),
    var(--surface);
}

.tm-chronos-track::before {
  background: linear-gradient(90deg, var(--chronos-accent), rgba(201, 169, 110, 0.52), var(--steel));
}

.tm-chronos-era::before {
  border-color: var(--chronos-accent);
  box-shadow: 0 0 0 5px var(--chronos-accent-dim);
}

.tm-chronos-era-scale span:last-child,
.tm-chronos-marker span,
.tm-tech--chronos .tm-tech-kicker,
.tm-tech--chronos .tm-tech-tag {
  color: var(--chronos-accent);
}

.tm-tech--chronos .tm-tech-tag,
.tm-tech--chronos .tm-tech-badges span:first-child {
  border-color: color-mix(in srgb, var(--chronos-accent) 52%, transparent);
  background: var(--chronos-accent-dim);
}

.tm-tech--chronos .tm-chronos-period-card {
  grid-template-rows: auto 96px 1fr;
}

.tm-tech--chronos .tm-tech-sketch--chronos {
  color: var(--chronos-accent);
  background:
    linear-gradient(135deg, var(--chronos-accent-dim), transparent 58%),
    repeating-linear-gradient(0deg, rgba(245, 245, 241, 0.035) 0 1px, transparent 1px 20px),
    var(--surface-2);
}

.tm-tech--chronos .tm-tech-sketch--chronos svg {
  opacity: 0.86;
}

.tm-chronos-timeline::before {
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--chronos-accent) 62%, transparent), transparent);
}

.tm-pantheon-archive {
  background:
    linear-gradient(90deg, rgba(245, 245, 241, 0.055), transparent 34%),
    radial-gradient(circle at 86% 20%, var(--pantheon-accent-dim), transparent 28%),
    var(--module-surface);
}

.tm-tech--pantheon .tm-module-intro-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
}

.tm-tech--pantheon .tm-tech-kicker,
.tm-tech--pantheon .tm-tech-tag {
  color: var(--pantheon-accent);
}

.tm-tech--pantheon .tm-tech-tag,
.tm-tech--pantheon .tm-tech-badges span:first-child,
.tm-pantheon-movement-nav .tm-tech-chip.is-active {
  border-color: color-mix(in srgb, var(--pantheon-accent) 52%, transparent);
  background: var(--pantheon-accent-dim);
}

.tm-pantheon-figure-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tm-pantheon-figure-card {
  grid-template-rows: 150px 1fr;
  background:
    linear-gradient(180deg, var(--pantheon-accent-dim), transparent 46%),
    var(--surface);
}

.tm-pantheon-figure-card .tm-tech-sketch {
  color: var(--pantheon-accent);
  background:
    linear-gradient(90deg, var(--pantheon-accent-dim), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(245, 245, 241, 0.045) 38px 39px),
    #090908;
}

.tm-pantheon-figure-card:nth-child(3n + 2) {
  grid-template-rows: 118px 1fr;
}

.tm-pantheon-figure-card:nth-child(3n) {
  grid-template-rows: 174px 1fr;
}

.tm-dim-meta {
  display: grid;
  gap: 0.18rem;
  margin: 0.55rem 0;
}

.tm-dim-meta span {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.35;
}

.tm-eco {
  min-width: 0;
}

.tm-eco-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: var(--sp-lg);
  align-items: end;
  background:
    radial-gradient(circle at 82% 22%, rgba(201, 169, 110, 0.10), transparent 26%),
    linear-gradient(135deg, rgba(168, 173, 178, 0.08), transparent 42%),
    var(--module-surface);
}

.tm-eco-hero h3,
.tm-eco-detail h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.04;
  color: var(--ink);
}

.tm-eco-hero h3 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  max-width: 780px;
}

.tm-eco-selectors {
  display: grid;
  gap: 0.7rem;
}

.tm-eco-selectors .field {
  display: grid;
  gap: 0.35rem;
}

.tm-eco-selectors span {
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tm-eco-selectors select {
  width: 100%;
  border: var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
  padding: 0.72rem 0.85rem;
}

.tm-eco-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tm-eco-detail {
  display: grid;
  gap: 0.85rem;
  border: var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--sp-lg);
}

.tm-eco-detail h3 {
  font-size: 2.1rem;
}

.tm-eco-score {
  height: 8px;
  overflow: hidden;
  border: var(--border);
  border-radius: var(--r-pill);
  background: rgba(245, 245, 241, 0.05);
}

.tm-eco-score span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(201, 169, 110, 0.62), rgba(245, 245, 241, 0.36));
}

.tm-eco-score-label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tm-eco-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.tm-eco-columns > div {
  display: grid;
  gap: 0.4rem;
  border: var(--border);
  border-radius: var(--r-md);
  padding: 0.7rem;
}

.tm-eco-columns > div > span {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .tm-atlas-map {
    grid-template-columns: 1fr;
  }

  .tm-module-intro-grid,
  .tm-tech--chronos .tm-module-intro-grid,
  .tm-tech--pantheon .tm-module-intro-grid {
    grid-template-columns: 1fr;
  }

  .tm-atlas-hero {
    min-height: 0;
    padding: 1.15rem;
  }

  .tm-chronos-timeline::before {
    display: none;
  }

  .tm-chronos-track,
  .tm-tech-controls--pantheon {
    grid-template-columns: 1fr;
  }

  .tm-chronos-track::before {
    left: 4px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .tm-chronos-era {
    padding-top: 0;
    padding-left: 1.3rem;
  }

  .tm-chronos-era::before {
    top: 0.25rem;
  }

  .tm-eco-hero,
  .tm-eco-layout,
  .tm-eco-columns {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   NAVBAR — barre fixe du haut
============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  height: var(--topbar-h);
  display: grid;
  grid-template-columns: minmax(220px, min(30vw, 360px)) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(var(--sp-sm), 1.7vw, var(--sp-lg));
  padding: 0 clamp(var(--sp-md), 3vw, var(--sp-xl));
  border-bottom: var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

/* ── Marque ── */
.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  width: auto;
  flex-shrink: 0;
  text-align: center;
  transform: translate(-50%, -50%);
}

.brand__name {
  display: grid;
  gap: 3px;
  justify-items: center;
}

.brand__title {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}

.brand__sub {
  font-family: var(--sans);
  font-size: 0.50rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

/* ============================================================
   SIDEBAR — barre latérale gauche fixe
============================================================ */
.app-body {
  display: flex;
  min-height: 100dvh;
  padding-top: var(--topbar-h);
}

.sidebar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  width: 248px;
  height: calc(100dvh - var(--topbar-h));
  overflow-y: auto;
  overflow-x: hidden;
  border-right: var(--border);
  background:
    linear-gradient(180deg, rgba(201,169,110,.035), transparent 28%),
    color-mix(in srgb, var(--surface) 72%, var(--bg));
  z-index: 700;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 0 var(--sp-xxl);
  scrollbar-width: thin;
  scrollbar-color: rgba(201,169,110,.12) transparent;
  transform: translateX(0);
}

.sidebar-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 650;
}
.sidebar-overlay.is-open { display: block; }

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}
.hamburger:hover { background: var(--surface-2); color: var(--ink); }

.sidebar__label {
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 1rem var(--sp-xs);
  opacity: 0.62;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0.82rem;
}

.tm-sidebar-group {
  display: grid;
  gap: 0.32rem;
  margin-top: 1.1rem;
}

.tm-sidebar-group:first-child {
  margin-top: 0.2rem;
}

.tm-sidebar-group__title {
  margin: 0 0 0.26rem;
  padding: 0 0.36rem;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.66;
}

.tm-sidebar-group__items {
  display: grid;
  gap: 2px;
}

.sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.64rem;
  min-height: 42px;
  padding: 12px 16px 12px 18px;
  border-radius: var(--r-sm);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  text-align: left;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.sidebar-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 3px;
  height: calc(100% - 20px);
  border-radius: 999px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.sidebar-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.58;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.sidebar-item__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.18s ease;
}

.sidebar-item:hover .sidebar-item__label {
  transform: translateX(4px);
}

.sidebar-item.is-active {
  color: var(--ink);
  background: rgba(255,255,255,0.04);
}

.sidebar-item.is-active::before {
  opacity: 1;
}
.sidebar-item.is-active svg {
  opacity: 1;
  color: var(--gold);
}

.tm-sidebar-premium-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  color: var(--gold);
  opacity: 0.72;
}

.tm-sidebar-premium-lock svg {
  width: 13px;
  height: 13px;
}

.sidebar-item.is-locked {
  cursor: pointer;
}

.sidebar-item:focus-visible {
  outline: 1px solid rgba(201,169,110,.74);
  outline-offset: 2px;
}

.sidebar-sep {
  height: 0.5px;
  background: rgba(245,245,241,.07);
  margin: var(--sp-sm) 0.60rem;
}

.main-wrap {
  flex: 1;
  min-width: 0;
  margin-left: 248px;
  display: flex;
  flex-direction: column;
}

/* ── Tabs (conservé pour compat JS syncTabs) ── */
.nav-tab.is-active {
  /* masqué — rendu par .sidebar-item.is-active */
}

/* Trick : nav-tab dans la sidebar hérite du style sidebar-item */
.sidebar-item.nav-tab.is-active::after {
  content: "";
  display: none;  /* désactive le pointeur sous les tabs */
}

/* PLACEHOLDER — kept to not break old reference */
.nav-tab.is-active::after {
  content: "";
  display: none;
  background: var(--gold);
}

/* ── Outils droite ── */
.nav-tools {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.58rem;
  margin-left: auto;
  flex-shrink: 0;
}

.topbar-account {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.18rem;
  border: var(--border);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 54%, transparent);
}

.plan-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  min-width: 72px;
  height: 34px;
  padding: 0 0.74rem 0 0.52rem;
  border: var(--border);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.plan-indicator__icon {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.88;
}

.plan-indicator__icon svg {
  width: 12px;
  height: 12px;
}

.plan-indicator:hover,
.plan-indicator:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(201, 169, 110, 0.44);
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-2) 86%, transparent);
}

.plan-indicator:focus-visible {
  outline: 2px solid rgba(201, 169, 110, 0.38);
  outline-offset: 3px;
}

.plan-indicator[data-plan-state="free"] {
  color: var(--muted);
}

.plan-indicator[data-plan-state="studio"] {
  border-color: rgba(201, 169, 110, 0.42);
  color: var(--gold);
  background: color-mix(in srgb, var(--gold-dim) 58%, transparent);
}

.plan-indicator[data-plan-state="student"] {
  border-color: rgba(201, 169, 110, 0.34);
  color: var(--gold);
  background: color-mix(in srgb, var(--gold-dim) 42%, transparent);
}

.plan-indicator[data-plan-state="agency"],
.plan-indicator[data-plan-state="admin"] {
  border-color: rgba(201, 169, 110, 0.66);
  color: #050505;
  background: linear-gradient(135deg, rgba(245, 245, 241, 0.94), var(--gold));
}

/* ── Recherche ── */
.search-wrap {
  grid-column: 1;
  position: relative;
  width: 100%;
  min-width: 0;
}

.search {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  width: 100%;
  height: 32px;
  padding: 0 0.70rem;
  border: var(--border);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  transition: border-color 0.18s ease;
}

.search:focus-within { border-color: rgba(201, 169, 110, 0.34); }

.search__icon {
  width: 12px;
  height: 12px;
  color: var(--gold);
  flex-shrink: 0;
}

.search__input {
  flex: 1;
  min-width: 0;
  font-size: 0.76rem;
}
.search__input::placeholder { color: var(--muted); }

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(320px, 90vw);
  display: none;
  border: var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 9999;
}
.search-results.is-open { display: block; }

.top-modules {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  min-width: 0;
}

.top-modules button {
  height: 30px;
  padding: 0 0.78rem;
  border: var(--border);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.top-modules button:hover,
.top-modules button.is-active {
  border-color: rgba(201, 169, 110, 0.36);
  background: var(--gold-glow);
  color: var(--gold);
}

.result-item {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 0.68rem 0.88rem;
  text-align: left;
  border-bottom: var(--border);
  transition: background 0.14s ease;
}
.result-item:last-child { border-bottom: 0; }
.result-item:hover { background: var(--gold-glow); }
.result-item strong {
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
}
.result-item span { color: var(--muted); font-size: 0.66rem; }

/* ── Bouton icône ── */
.icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--border);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  color: var(--ink-2);
  flex-shrink: 0;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.icon-btn svg { width: 13px; height: 13px; }
.icon-btn--ai {
  width: auto;
  min-width: 48px;
  padding-inline: .62rem;
  gap: .32rem;
}
.icon-btn--ai svg {
  width: 16px;
  height: 16px;
}
.icon-btn--ai span {
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}
.theme-toggle-btn {
  position: relative;
}
.theme-toggle-btn .theme-toggle-icon {
  width: 14px;
  height: 14px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.theme-toggle-btn .theme-toggle-icon--moon {
  position: absolute;
  opacity: 0;
  transform: scale(0.72) rotate(-18deg);
}
.theme-toggle-btn .theme-toggle-icon--sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
[data-theme="light"] .theme-toggle-btn {
  border-color: rgba(201, 169, 110, 0.38);
  color: var(--gold);
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
}
[data-theme="light"] .theme-toggle-btn .theme-toggle-icon--sun {
  opacity: 0;
  transform: scale(0.72) rotate(18deg);
}
[data-theme="light"] .theme-toggle-btn .theme-toggle-icon--moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.icon-btn.is-active,
.topbar-carnets-launcher.is-active {
  border-color: rgba(201, 169, 110, 0.52);
  color: var(--gold);
  background:
    radial-gradient(circle at 50% 32%, rgba(201, 169, 110, 0.18), transparent 58%),
    color-mix(in srgb, var(--surface-2) 84%, transparent);
}

.tm-carnets-shell.is-focus {
  border-color: rgba(201, 169, 110, 0.58);
  box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.12), 0 18px 54px rgba(201, 169, 110, 0.10);
}

/* ── Bouton texte ── */
.text-btn {
  height: 32px;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  border: var(--border);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  color: var(--ink-2);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease,
              background 0.18s ease, transform 0.18s ease;
}
.text-btn:hover {
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}

.text-btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #050505;
  font-weight: 500;
}
.text-btn--primary:hover {
  background: color-mix(in srgb, var(--gold) 86%, #fff);
  border-color: color-mix(in srgb, var(--gold) 86%, #fff);
  color: #050505;
  transform: translateY(-1px);
}

/* ============================================================
   LAYOUT PRINCIPAL
============================================================ */
.app {
  width: 100%;
  padding: var(--sp-xl) clamp(var(--sp-lg), 4vw, var(--sp-xl));
  display: grid;
  gap: var(--sp-xl);
  flex: 1;
}

/* ============================================================
   HERO — visible uniquement sur Atlas
============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: var(--sp-xl);
  align-items: stretch;
  min-height: min(calc(100svh - 150px), 620px);
  padding: var(--sp-xl);
  border: var(--border);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at 15% 85%, rgba(201, 169, 110, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(201, 169, 110, 0.04) 0%, transparent 48%),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

/* Grille interne hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 245, 241, 0.032) 0.5px, transparent 0.5px),
    linear-gradient(90deg, rgba(245, 245, 241, 0.032) 0.5px, transparent 0.5px);
  background-size: 50px 50px;
}

.hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.19em;
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: var(--sp-md);
}

.hero__main {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: var(--sp-md);
  min-width: 0;
  max-width: 720px;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.7rem, 6.8vw, 6.45rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: 0;
  color: var(--ink);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.hero__slogan {
  max-width: 20ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.62rem, 3.45vw, 3.15rem);
  line-height: 1.04;
  color: var(--ink);
}

.hero__proof {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  min-width: 0;
}

.hero__proof span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .26rem .68rem;
  border: var(--border);
  border-radius: var(--r-pill);
  color: var(--gold);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(201,169,110,.055);
}

.hero__desc {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.70;
  max-width: 50ch;
  margin: 0;
}

.hero__actions {
  order: 4;
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  align-items: center;
  padding-top: var(--sp-xs);
}

.hero__visual {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 1rem;
  min-height: clamp(180px, 26vw, 320px);
  padding: clamp(1rem, 3vw, 1.6rem);
  border: var(--border);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 74%, transparent), color-mix(in srgb, var(--surface) 86%, transparent));
}

.hero__image-frame {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.35;
  overflow: hidden;
  border: .5px solid rgba(201,169,110,.32);
  border-radius: var(--r-sm);
  background: #050505;
}

.hero__image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 42%, rgba(5,5,5,.54)),
    linear-gradient(90deg, rgba(201,169,110,.12), transparent 34%);
}

.hero__image-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.04);
}

.hero__drawing {
  position: relative;
  aspect-ratio: 1.35;
  min-width: 0;
  border: .5px solid rgba(201,169,110,.32);
  color: var(--gold);
}

.hero__drawing::before,
.hero__drawing::after {
  content: "";
  position: absolute;
  inset: 14% 10%;
  border: .5px solid rgba(245,245,241,.18);
}

.hero__drawing::after {
  inset: 35% 22% 0;
  border-bottom: 0;
}

.hero__drawing span {
  position: absolute;
  background: rgba(201,169,110,.5);
}

.hero__drawing span:nth-child(1) { left: 10%; right: 10%; top: 22%; height: 1px; }
.hero__drawing span:nth-child(2) { left: 20%; right: 20%; top: 48%; height: 1px; }
.hero__drawing span:nth-child(3) { top: 14%; bottom: 0; left: 32%; width: 1px; }
.hero__drawing span:nth-child(4) { top: 14%; bottom: 0; right: 32%; width: 1px; }

.hero__visual-caption {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}

.hero__visual-caption strong,
.hero__visual-caption span {
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__visual-caption strong { color: var(--gold); }

.landing-sections {
  display: grid;
  gap: var(--sp-xl);
  margin-top: var(--sp-xl);
  min-width: 0;
}

.landing-band {
  display: grid;
  gap: var(--sp-lg);
  min-width: 0;
}

.landing-band__head {
  display: grid;
  gap: 0.45rem;
  max-width: min(100%, 920px);
  min-width: 0;
}

.landing-band--modules .landing-band__head {
  justify-self: center;
  text-align: center;
}

.landing-band--premium .landing-band__head {
  max-width: min(100%, 1080px);
}

.landing-band--split {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.landing-kicker {
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.landing-title {
  max-width: 13ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}

.landing-title--wide {
  max-width: min(100%, 34ch);
}

.landing-copy {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 72ch;
}

.landing-modules-grid,
.landing-premium-grid,
.landing-contact-grid,
.landing-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--sp-md);
}

.landing-modules-grid--featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-premium-grid--single {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  justify-content: center;
}

.tm-student-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0.22rem 0.58rem;
  border: 0.5px solid rgba(201,169,110,0.42);
  border-radius: var(--r-pill);
  background: rgba(201,169,110,0.10);
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.landing-student-offer,
.landing-student-preview,
.tm-student-paywall {
  border-color: rgba(201,169,110,0.34);
  background:
    linear-gradient(145deg, rgba(201,169,110,0.10), transparent 38%),
    color-mix(in srgb, var(--surface) 88%, transparent);
}

.landing-student-offer__head,
.landing-student-offer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  align-items: center;
  justify-content: space-between;
}

.landing-student-offer__actions {
  justify-content: flex-start;
}

.landing-student-preview__list,
.tm-student-paywall__examples {
  display: grid;
  gap: 0.5rem;
  margin: 0.95rem 0;
}

.tm-student-paywall__examples {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-student-preview__list span,
.tm-student-paywall__examples span {
  display: block;
  padding: 0.62rem 0.72rem;
  border: var(--border);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 0.72rem;
  line-height: 1.45;
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
}

.tm-student-paywall {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  align-content: start;
  min-height: 100%;
  overflow: hidden;
  padding: 1.18rem;
  border: 1px solid rgba(201,169,110,0.62);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(201,169,110,0.18), rgba(201,169,110,0.055) 32%, transparent 68%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 76%, transparent), color-mix(in srgb, var(--surface) 94%, transparent));
  box-shadow:
    0 20px 54px rgba(0,0,0,0.28),
    inset 0 0 0 1px rgba(245,245,241,0.035);
}

.tm-student-paywall::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.92), transparent);
}

.tm-student-paywall__top,
.tm-student-paywall__bottom {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.tm-student-paywall__offer {
  display: grid;
  min-width: 154px;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(201,169,110,0.46);
  border-radius: var(--r-sm);
  background: rgba(201,169,110,0.12);
  text-align: right;
}

.tm-student-paywall__offer span,
.tm-student-paywall__offer small {
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.tm-student-paywall__offer strong {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.76rem;
  font-weight: 400;
  line-height: 1.05;
}

.tm-student-paywall h3 {
  margin: 0.62rem 0 0.35rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1;
}

.tm-student-paywall p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.6;
}

.tm-student-paywall__count {
  color: var(--gold) !important;
  font-size: 0.68rem !important;
}

.tm-student-paywall .text-btn--primary {
  min-width: 230px;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(201,169,110,0.16);
}

.tm-tech--chronos .tm-chronos-timeline > .tm-student-paywall,
.tm-tech--pantheon .tm-pantheon-figure-grid > .tm-student-paywall {
  grid-column: 1 / -1 !important;
}

.tm-tech--pantheon .tm-student-paywall {
  border-color: color-mix(in srgb, var(--pantheon-accent) 68%, transparent);
  background:
    linear-gradient(135deg, var(--pantheon-accent-dim), rgba(201,169,110,0.09) 36%, transparent 72%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 80%, transparent), color-mix(in srgb, var(--surface) 94%, transparent));
}

.tm-tech--pantheon .tm-student-paywall::before {
  background: linear-gradient(90deg, transparent, var(--pantheon-accent), transparent);
}

.tm-tech--pantheon .tm-student-paywall__offer {
  border-color: color-mix(in srgb, var(--pantheon-accent) 52%, transparent);
  background: var(--pantheon-accent-dim);
}

.tm-tech--pantheon .tm-student-paywall__offer strong {
  color: var(--pantheon-accent);
}

.tm-outils-reading {
  margin: 0.62rem 0 0;
  padding: 0.7rem 0.8rem;
  border-left: 2px solid rgba(201,169,110,0.42);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(201,169,110,0.06);
  color: var(--ink-2);
  font-size: 0.72rem;
  line-height: 1.55;
}

.tm-outils-reading--card {
  margin-top: 0.55rem;
  font-size: 0.66rem;
}

.landing-acquisition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-md);
  min-width: 0;
}

.landing-acquisition-card {
  display: grid;
  grid-template-rows: minmax(170px, 0.86fr) auto;
  min-width: 0;
  min-height: 430px;
  overflow: hidden;
  border: var(--border);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(201,169,110,.07), transparent 46%),
    color-mix(in srgb, var(--surface) 90%, transparent);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}

.landing-acquisition-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201,169,110,.34);
}

.landing-acquisition-card__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-bottom: var(--border);
  background: #050505;
}

.landing-acquisition-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 44%, rgba(5,5,5,.56)),
    radial-gradient(circle at 18% 18%, rgba(201,169,110,.16), transparent 36%);
}

.landing-acquisition-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.03);
  transition: transform .42s ease;
}

.landing-acquisition-card:hover .landing-acquisition-card__media img {
  transform: scale(1.035);
}

.landing-acquisition-card__body {
  display: grid;
  align-content: start;
  gap: var(--sp-sm);
  min-width: 0;
  padding: var(--sp-lg);
}

.landing-acquisition-card__body h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 300;
  line-height: 1;
}

.landing-acquisition-card__body p:not(.landing-kicker) {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.62;
}

.landing-acquisition-card__body .text-btn {
  justify-self: start;
  margin-top: .2rem;
}

.landing-card {
  display: grid;
  gap: var(--sp-sm);
  padding: var(--sp-lg);
  border: var(--border);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(201,169,110,0.06), transparent 46%),
    color-mix(in srgb, var(--surface) 88%, transparent);
  min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.landing-proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-feature-module {
  --module-card-accent: var(--gold);
  --module-card-accent-rgb: 201, 169, 110;
  min-height: 320px;
  grid-template-rows: auto auto auto 1fr auto;
}

.landing-feature-module--atlas {
  --module-card-accent: #5A84A8;
  --module-card-accent-rgb: 90, 132, 168;
}

.landing-feature-module--chronos {
  --module-card-accent: #6F8F63;
  --module-card-accent-rgb: 111, 143, 99;
}

.landing-feature-module--pantheon {
  --module-card-accent: #A55C45;
  --module-card-accent-rgb: 165, 92, 69;
}

.landing-feature-module--journalier {
  --module-card-accent: #C9A96E;
  --module-card-accent-rgb: 201, 169, 110;
}

.landing-feature-module--feed {
  --module-card-accent: #7E9AB4;
  --module-card-accent-rgb: 126, 154, 180;
}

.landing-feature-module__visual {
  position: relative;
  min-height: 118px;
  aspect-ratio: 1200 / 520;
  border: .5px solid rgba(var(--module-card-accent-rgb), .34);
  border-radius: var(--r-sm);
  background:
    linear-gradient(135deg, rgba(var(--module-card-accent-rgb), .12), transparent 48%),
    rgba(245,245,241,.025);
  overflow: hidden;
}

.landing-feature-module__visual::before,
.landing-feature-module__visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.landing-feature-module__visual::before {
  inset: 0;
  background:
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, .24)),
    radial-gradient(circle at 20% 18%, rgba(var(--module-card-accent-rgb), .16), transparent 36%);
}

.landing-feature-module__visual::after {
  inset: 10px;
  border: .5px solid rgba(245,245,241,.10);
  border-radius: calc(var(--r-sm) - 2px);
}

.landing-feature-module__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.04);
}

[data-theme="light"] .navbar {
  border-bottom-color: rgba(42, 34, 23, 0.16);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 10px 28px rgba(67, 50, 27, 0.055);
}

[data-theme="light"] .brand__title {
  color: #18120D;
}

[data-theme="light"] .brand__sub,
[data-theme="light"] .sidebar-item,
[data-theme="light"] .hero__desc,
[data-theme="light"] .landing-copy {
  color: var(--muted);
}

[data-theme="light"] .sidebar {
  border-right-color: rgba(42, 34, 23, 0.14);
  background:
    linear-gradient(180deg, rgba(128, 91, 34, 0.08), transparent 30%),
    color-mix(in srgb, var(--surface-2) 82%, var(--bg));
  scrollbar-color: rgba(128, 91, 34, .28) transparent;
}

[data-theme="light"] .sidebar-item:hover {
  background: rgba(128, 91, 34, 0.075);
  color: var(--ink-2);
}

[data-theme="light"] .sidebar-item.is-active {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(128, 91, 34, 0.16), rgba(255, 252, 244, 0.58));
}

[data-theme="light"] .sidebar-overlay {
  background: rgba(25, 20, 15, .34);
}

[data-theme="light"] .search,
[data-theme="light"] .icon-btn,
[data-theme="light"] .topbar-account,
[data-theme="light"] .plan-indicator,
[data-theme="light"] .text-btn {
  border-color: rgba(42, 34, 23, 0.14);
  background: rgba(255, 252, 244, 0.72);
}

[data-theme="light"] .search:focus-within,
[data-theme="light"] .text-btn:hover,
[data-theme="light"] .icon-btn:hover {
  border-color: rgba(128, 91, 34, 0.36);
  background: rgba(255, 252, 244, 0.94);
}

[data-theme="light"] .text-btn--primary {
  border-color: #805B22;
  background: #805B22;
  color: #FFFCF4;
}

[data-theme="light"] .text-btn--primary:hover {
  border-color: #6E4A16;
  background: #6E4A16;
  color: #FFFCF4;
}

[data-theme="light"] .hero,
[data-theme="light"] .landing-card,
[data-theme="light"] .landing-acquisition-card,
[data-theme="light"] .tm-editorial-panel,
[data-theme="light"] .tm-architectural-card {
  border-color: rgba(42, 34, 23, 0.13);
  background:
    linear-gradient(135deg, rgba(128, 91, 34, 0.075), transparent 46%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(244, 237, 222, 0.86));
  box-shadow: 0 16px 42px rgba(67, 50, 27, 0.075);
}

[data-theme="light"] .hero::before {
  background-image:
    linear-gradient(rgba(25, 20, 15, 0.055) 0.5px, transparent 0.5px),
    linear-gradient(90deg, rgba(25, 20, 15, 0.055) 0.5px, transparent 0.5px);
}

[data-theme="light"] .hero__visual,
[data-theme="light"] .tm-module-visual {
  border-color: rgba(42, 34, 23, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.86), rgba(230, 218, 198, 0.58));
}

[data-theme="light"] .hero__image-frame,
[data-theme="light"] .landing-acquisition-card__media {
  background: #D8CBB7;
  border-color: rgba(128, 91, 34, 0.26);
}

[data-theme="light"] .hero__image-frame::after,
[data-theme="light"] .landing-acquisition-card__media::after {
  background:
    linear-gradient(180deg, transparent 48%, rgba(25, 20, 15, .30)),
    radial-gradient(circle at 18% 18%, rgba(128, 91, 34, .16), transparent 36%);
}

[data-theme="light"] .landing-feature-module__visual {
  background:
    linear-gradient(135deg, rgba(var(--module-card-accent-rgb), .14), transparent 50%),
    rgba(255, 252, 244, .72);
}

[data-theme="light"] .landing-feature-module__visual::before {
  background:
    linear-gradient(180deg, transparent 54%, rgba(25, 20, 15, .22)),
    radial-gradient(circle at 20% 18%, rgba(var(--module-card-accent-rgb), .17), transparent 38%);
}

[data-theme="light"] .landing-feature-module__visual::after {
  border-color: rgba(25, 20, 15, .11);
}

[data-theme="light"] .landing-feature-module__visual img,
[data-theme="light"] .tm-module-visual img {
  filter: saturate(.96) contrast(1.02);
}

.landing-feature-module small {
  color: var(--ink-2);
  font-size: .68rem;
  line-height: 1.45;
}

.landing-all-modules-link {
  justify-self: center;
  margin-top: .35rem;
}

.module-directory-shell,
.module-directory-group {
  display: grid;
  gap: var(--sp-md);
}

.module-directory-toolbar {
  display: grid;
  gap: var(--sp-sm);
  min-width: 0;
}

.module-directory-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.module-directory-tabs .is-active {
  border-color: rgba(201,169,110,.45);
  color: var(--gold);
}

.module-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-md);
}

.module-directory-grid--recommended {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-directory-card span {
  color: var(--gold);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.module-directory-card button {
  justify-self: start;
  margin-top: .25rem;
}

.landing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201,169,110,0.30);
}

.landing-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.08;
  color: var(--ink);
}

.landing-card p,
.landing-card li {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.landing-proof-grid--signals {
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.35fr);
  align-items: stretch;
}

.landing-proof-grid--active {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-proof-card {
  align-content: start;
  min-height: 170px;
}

.landing-proof-card--showcase {
  border-color: rgba(201,169,110,0.34);
}

.landing-stats,
.landing-public-feed {
  display: grid;
  gap: var(--sp-sm);
  min-width: 0;
  padding: var(--sp-lg);
  border: var(--border);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(201,169,110,0.055), transparent 42%),
    color-mix(in srgb, var(--surface) 90%, transparent);
}

.landing-stats {
  align-content: stretch;
}

.landing-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: 0;
  height: 100%;
}

.landing-stat-card {
  display: grid;
  align-content: end;
  gap: 0.45rem;
  min-width: 0;
  min-height: 128px;
  padding: 1rem;
  border: 0.5px solid rgba(245,245,241,0.10);
  border-radius: var(--r-sm);
  background: rgba(245,245,241,0.025);
}

.landing-stat-card strong {
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 0.9;
}

.landing-stat-card span {
  color: var(--ink-2);
  font-size: 0.68rem;
  line-height: 1.45;
}

.landing-public-feed {
  grid-template-rows: auto minmax(0, 1fr);
}

.landing-public-feed__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-sm);
  min-width: 0;
}

.landing-public-post {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  min-height: 190px;
  padding: 1rem;
  border: 0.5px solid rgba(245,245,241,0.10);
  border-radius: var(--r-sm);
  background: rgba(5,5,5,0.32);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.landing-public-post:hover {
  transform: translateY(-2px);
  border-color: rgba(201,169,110,0.28);
}

.landing-public-post h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.05;
}

.landing-public-post p:not(.landing-kicker) {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.landing-feed-skeleton {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-sm);
}

.landing-feed-skeleton span {
  min-height: 190px;
  border: 0.5px solid rgba(245,245,241,0.08);
  border-radius: var(--r-sm);
  background:
    linear-gradient(90deg, transparent, rgba(245,245,241,0.08), transparent),
    rgba(245,245,241,0.025);
  background-size: 220% 100%;
  animation: tmSkeleton 1.45s ease-in-out infinite;
}

.landing-card ul {
  display: grid;
  gap: 0.45rem;
}

.landing-card li {
  position: relative;
  padding-left: 0.9rem;
}

.landing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
}

.landing-price {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.tm-onboarding {
  padding: var(--sp-lg);
  border: var(--border-gold);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(201,169,110,0.12), transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-2) 78%, transparent));
}

.tm-onboarding__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  align-items: center;
  min-width: 0;
}

.tm-start-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-sm);
  min-width: 0;
}

.tm-start-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  width: 100%;
  min-width: 0;
  min-height: 116px;
  padding: 0.95rem;
  border: var(--border);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tm-start-step:hover,
.tm-start-step:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(201,169,110,0.42);
  background: color-mix(in srgb, var(--surface-2) 86%, transparent);
  outline: none;
}

.tm-start-step__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: var(--border);
  border-radius: var(--r-pill);
  color: var(--gold);
  font-size: 0.78rem;
  line-height: 1;
}

.tm-start-step__body {
  min-width: 0;
}

.tm-start-step strong {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.25;
}

.tm-start-step small {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.55;
}

.tm-start-step.is-complete {
  border-color: rgba(201,169,110,0.32);
}

.tm-start-step.is-complete .tm-start-step__mark {
  border-color: rgba(201,169,110,0.50);
  background: rgba(201,169,110,0.12);
}

.landing-status {
  display: grid;
  gap: var(--sp-lg);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: var(--sp-lg);
  border: var(--border-gold);
  border-radius: var(--r-xl);
  background: radial-gradient(ellipse at 20% 0%, rgba(201,169,110,0.09), transparent 58%), var(--surface);
}

/* Métriques */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-sm);
}

.metric {
  display: grid;
  gap: 3px;
  padding: var(--sp-sm) var(--sp-md);
  border: var(--border);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
}

.metric__value {
  font-family: var(--serif);
  font-size: 1.58rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.metric__label {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   EN-TÊTE DE SECTION
============================================================ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-lg);
  padding-bottom: var(--sp-md);
  border-bottom: var(--border);
}

.section-head__kicker {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: var(--sp-xs);
}

.section-head__title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.5vw, 4.2rem);
  font-weight: 300;
  line-height: 0.93;
  color: var(--ink);
}

.section-head__desc {
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.66;
}

/* ============================================================
   CARTES
============================================================ */
.card {
  position: relative;
  display: grid;
  gap: var(--sp-sm);
  padding: var(--sp-lg);
  border: var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.20s ease, box-shadow 0.20s ease, transform 0.20s ease;
}

.card:hover {
  border-color: rgba(201, 169, 110, 0.22);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.card__tag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 0.16rem 0.50rem;
  border: var(--border-gold);
  border-radius: var(--r-pill);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.60rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--gold-glow);
}

.card__title {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
}

.card__body {
  color: var(--muted);
  font-size: 0.83rem;
}

/* ============================================================
   GRILLES
============================================================ */
.grid       { display: grid; gap: var(--sp-md); }
.grid--2    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4    { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(256px, 1fr)); }

/* ============================================================
   CHAMPS DE SAISIE
============================================================ */
.field {
  display: flex;
  align-items: center;
  gap: 0.50rem;
  min-height: 42px;
  padding: 0 0.85rem;
  border: var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field:focus-within {
  border-color: rgba(201, 169, 110, 0.38);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.07);
}

.field input,
.field select,
.field textarea { flex: 1; min-width: 0; font-size: 0.83rem; }
.field input::placeholder { color: var(--muted); }

/* ============================================================
   AVATAR / CERCLE
============================================================ */
.avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: var(--border-gold);
  border-radius: 50%;
  background: var(--gold-glow);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* ============================================================
   BADGE / GRADE
============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.50rem;
  border: var(--border-gold);
  border-radius: var(--r-pill);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.60rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--gold-glow);
}

/* ============================================================
   TABLEAU
============================================================ */
.table-wrap {
  overflow-x: auto;
  border: var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

table  { width: 100%; border-collapse: collapse; min-width: 580px; }

th {
  padding: 0.78rem 1rem;
  border-bottom: var(--border-strong);
  text-align: left;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

td {
  padding: 0.78rem 1rem;
  border-bottom: var(--border);
  text-align: left;
  font-size: 0.81rem;
  color: var(--muted);
  vertical-align: top;
}

tr:last-child td { border-bottom: 0; }
tr:hover td      { background: var(--gold-glow); }

/* ============================================================
   OVERLAY MODAL
============================================================ */
.modal-overlay {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 10000;
  place-items: center;
  padding: var(--sp-lg);
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.modal-overlay.is-open { display: grid; }

.modal {
  width: min(720px, 100%);
  max-height: min(740px, 92dvh);
  overflow-y: auto;
  display: grid;
  gap: var(--sp-md);
  padding: var(--sp-xl);
  border: var(--border-gold);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 0.91;
  color: var(--ink);
}

/* ============================================================
   MODULES SPA — 11 sections cachées/visibles
   Chaque .module est masqué par défaut.
   JS ajoute .is-active sur le module courant.
============================================================ */
.view {
  display: grid;
  gap: var(--sp-lg);
}

.module {
  display: none;
  gap: var(--sp-lg);
  animation: moduleIn 0.24s ease both;
}

.module.is-active { display: grid; }

@keyframes moduleIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* Placeholder vide pour les modules en attente de contenu */
.module-empty {
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--sp-xl);
  gap: var(--sp-md);
  border: 0.5px dashed rgba(201, 169, 110, 0.20);
  border-radius: var(--r-xl);
}

.module-empty__icon {
  width: 44px;
  height: 44px;
  color: rgba(201, 169, 110, 0.30);
  margin: 0 auto;
}

.module-empty__title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 300;
  color: rgba(245, 245, 241, 0.18);
}

.module-empty__sub {
  font-size: 0.76rem;
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.60;
}

.tm-empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-xl);
  border: .5px dashed rgba(201,169,110,.24);
  border-radius: var(--r-xl);
  text-align: center;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  min-width: 0;
}

.tm-empty-state--coming-soon {
  border-style: solid;
  border-color: rgba(201,169,110,.32);
  background:
    linear-gradient(180deg, rgba(201,169,110,.07), transparent 52%),
    color-mix(in srgb, var(--surface) 86%, transparent);
}

.tm-empty-state--skeleton {
  border-style: solid;
}

.tm-empty-state--empty {
  border-color: rgba(245,245,241,.12);
}

.tm-empty-state__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: .18rem .58rem;
  border: var(--border-gold);
  border-radius: var(--r-pill);
  color: var(--gold);
  font-size: .56rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(201,169,110,.08);
}

.tm-empty-state__mark {
  position: relative;
  width: 88px;
  height: 64px;
  color: var(--gold);
  opacity: .82;
}

.tm-empty-state__mark::before,
.tm-empty-state__mark::after {
  content: "";
  position: absolute;
  inset: 12px 10px;
  border: .5px solid rgba(201,169,110,.38);
}

.tm-empty-state__mark::after {
  inset: 28px 24px 0;
  border-bottom: 0;
}

.tm-empty-state__mark span {
  position: absolute;
  background: rgba(201,169,110,.52);
}

.tm-empty-state__mark span:nth-child(1) { left: 10px; right: 10px; top: 24px; height: 1px; }
.tm-empty-state__mark span:nth-child(2) { left: 20px; right: 20px; top: 40px; height: 1px; }
.tm-empty-state__mark span:nth-child(3) { top: 12px; bottom: 0; left: 44px; width: 1px; }

.tm-empty-state h3 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}

.tm-empty-state p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.65;
}

.tm-empty-state__skeleton {
  width: min(100%, 360px);
  display: grid;
  gap: .62rem;
}

.tm-empty-state__skeleton span {
  height: 14px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, rgba(245,245,241,.06), rgba(201,169,110,.13), rgba(245,245,241,.06));
  background-size: 220% 100%;
  animation: tmSkeleton 1.4s ease-in-out infinite;
}

.tm-empty-state__skeleton span:nth-child(2) { width: 76%; justify-self: center; }
.tm-empty-state__skeleton span:nth-child(3) { width: 52%; justify-self: center; }

@keyframes tmSkeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -120% 0; }
}

/* ============================================================
   LEGAL STRIP
============================================================ */
.legal-strip {
  padding: var(--sp-lg) clamp(var(--sp-lg), 4vw, var(--sp-xl));
  border-top: var(--border);
  background: color-mix(in srgb, #000 55%, var(--bg));
}

.legal-strip__inner {
  width: min(100%, 1440px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(200px, 0.65fr) 1.35fr;
  gap: var(--sp-xl);
  align-items: start;
}

.legal-strip__heading {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 400;
  color: var(--gold);
}

.legal-strip__body {
  font-size: 0.76rem;
  line-height: 1.68;
  color: rgba(245, 245, 241, 0.48);
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  padding: var(--sp-xl) clamp(var(--sp-lg), 4vw, var(--sp-xl));
  border-top: var(--border);
}

.footer__inner {
  width: min(100%, 1440px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: var(--sp-xl);
}

.footer__heading {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}

.footer__body {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.68;
}

.footer__copy {
  width: min(100%, 1440px);
  margin-inline: auto;
  margin-top: var(--sp-xl);
  padding-top: var(--sp-md);
  border-top: var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.footer__copy-text {
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.07em;
}

/* ============================================================
   CONTACT & SPONSORS
============================================================ */
.tm-contact {
  display: grid;
  gap: var(--sp-lg);
  min-width: 0;
}

.tm-contact-hero,
.tm-contact-deck,
.tm-contact-links {
  border: var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(201, 169, 110, 0.08), transparent 48%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.tm-contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: var(--sp-lg);
  align-items: end;
  padding: var(--sp-xl);
}

.tm-contact-hero h3,
.tm-contact-deck h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  font-weight: 300;
}

.tm-contact-hero p,
.tm-contact-deck p,
.tm-contact-links p {
  color: var(--muted);
}

.tm-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--sp-xs);
}

.tm-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-md);
}

.tm-contact-deck {
  padding: var(--sp-xl);
  display: grid;
  gap: var(--sp-lg);
}

.tm-contact-deck__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-sm);
}

.tm-contact-deck__card {
  min-width: 0;
  border: var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  background: var(--surface-2);
}

.tm-contact-deck__card span,
.tm-contact-links span {
  display: block;
  margin-bottom: .45rem;
  color: var(--gold);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tm-contact-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-sm);
  padding: var(--sp-lg);
}

.tm-contact-links article {
  min-width: 0;
}

.tm-contact-links a {
  color: var(--ink);
  text-decoration: none;
}

/* ============================================================
   IA TEOMARCHI
============================================================ */
.tm-ai-panel {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.tm-ai-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tm-ai-panel__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
}

.tm-ai-panel__sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, calc(100vw - 1rem));
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--surface);
  border-left: var(--border-gold);
  box-shadow: -28px 0 80px rgba(0, 0, 0, 0.34);
  transform: translateX(105%);
  transition: transform 0.28s ease;
}

.tm-ai-panel.is-open .tm-ai-panel__sheet {
  transform: translateX(0);
}

.tm-ai-panel__head,
.tm-ai-panel__form {
  padding: 1rem;
  border-bottom: var(--border);
}

.tm-ai-panel__form {
  border-top: var(--border);
  border-bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .6rem;
}

.tm-ai-panel__messages {
  min-width: 0;
  overflow-y: auto;
  padding: 1rem;
}

.tm-ai-panel__form input {
  min-width: 0;
  width: 100%;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  .sidebar  { width: 248px; }
  .main-wrap { margin-left: 248px; }
  .navbar          { grid-template-columns: minmax(190px, min(30vw, 280px)) minmax(0, 1fr) auto; }
  .top-modules     { display: none; }
  .hero            { grid-template-columns: 1fr; }
  .hero__visual    { min-height: 220px; }
  .landing-band--split,
  .landing-status  { grid-template-columns: 1fr; }
  .landing-acquisition-grid { grid-template-columns: 1fr; }
  .landing-acquisition-card {
    grid-template-columns: minmax(220px, .9fr) minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 300px;
  }
  .landing-acquisition-card__media { border-right: var(--border); border-bottom: 0; }
  .landing-modules-grid--featured { grid-template-columns: 1fr; }
  .module-directory-grid--recommended,
  .landing-proof-grid--active,
  .landing-premium-grid--single { grid-template-columns: 1fr; }
  .landing-proof-grid { grid-template-columns: 1fr; }
  .landing-public-feed__list,
  .landing-feed-skeleton { grid-template-columns: 1fr; }
  .metrics         { grid-template-columns: repeat(2, 1fr); }
  .footer__inner   { grid-template-columns: 1fr 1fr; }
  .legal-strip__inner { grid-template-columns: 1fr; gap: var(--sp-md); }
}

@media (max-width: 899px) {
  .sidebar {
    width: min(280px, 86vw);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }

  .main-wrap {
    margin-left: 0;
  }

  body.is-feed-page .main-wrap {
    margin-left: 0;
    width: 100%;
  }

  body.tm-sidebar-open {
    overflow: hidden;
  }
}

@media (max-width: 720px) {
  .navbar          { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sidebar         { transform: translateX(-100%); }
  .sidebar.is-open { transform: translateX(0); }
  .hamburger       { display: flex; }
  .main-wrap       { margin-left: 0; }
  .brand__sub      { display: none; }
  .brand           { max-width: 42vw; }
  .nav-tools       { grid-column: 3; gap: var(--sp-xs); }
  .topbar-account  { gap: .28rem; padding: .14rem; }
  .plan-indicator  { min-width: 34px; width: 34px; padding: 0; }
  .plan-indicator__label { display: none; }
  .search-wrap     { display: none; }
  .hero            { padding: var(--sp-lg); }
  .hero__title     { font-size: clamp(3rem, 17vw, 4.6rem); }
  .metrics         { grid-template-columns: repeat(2, 1fr); }
  .grid--2,
  .grid--3,
  .grid--4         { grid-template-columns: 1fr; }
  .footer__inner   { grid-template-columns: 1fr; }
  .app             { padding-inline: var(--sp-md); padding-block: var(--sp-lg); }
  .module          { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .section-head    { flex-direction: column; align-items: flex-start; gap: var(--sp-sm); }
  .text-btn        { min-height: 42px; padding-inline: .9rem; white-space: normal; }
  .tm-onboarding  { padding: var(--sp-md); }
  .tm-start-checklist { grid-template-columns: 1fr; }
  .tm-start-step  { min-height: 0; }
  .tm-contact-hero,
  .tm-contact-grid,
  .tm-contact-deck__grid,
  .tm-contact-links { grid-template-columns: 1fr; }
  .tm-contact-actions { justify-content: flex-start; }
  .landing-acquisition-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 42vw) auto;
  }
  .landing-acquisition-card__media { border-right: 0; border-bottom: var(--border); }
  .tm-student-paywall__top,
  .tm-student-paywall__bottom {
    flex-direction: column;
  }
  .tm-student-paywall__offer {
    width: 100%;
    text-align: left;
  }
  .tm-student-paywall__examples {
    grid-template-columns: 1fr;
  }
  .tm-student-paywall .text-btn--primary {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .theme-toggle-btn {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 96px);
    padding: var(--sp-md);
    gap: var(--sp-md);
  }
  .hero__main {
    gap: .72rem;
    align-content: start;
  }
  .hero__title {
    font-size: clamp(2.85rem, 17vw, 4rem);
  }
  .hero__slogan {
    font-size: clamp(1.34rem, 8vw, 2.05rem);
    max-width: 18ch;
  }
  .hero__desc {
    font-size: .78rem;
    line-height: 1.55;
  }
  .hero__visual {
    min-height: 150px;
    padding: .85rem;
  }
  .hero__actions .text-btn--primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .metrics           { grid-template-columns: 1fr 1fr; }
  .text-btn span     { display: none; }
  .brand__title      { font-size: 0.88rem; letter-spacing: 0.18em; }
}

/* ============================================================
   CUSTOM CURSOR
============================================================ */
@media (min-width: 768px) and (pointer: fine) {
  body.has-custom-cursor {
    cursor: none;
  }

  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor input,
  body.has-custom-cursor select,
  body.has-custom-cursor textarea,
  body.has-custom-cursor [data-nav],
  body.has-custom-cursor [role="tab"] {
    cursor: none;
  }
}

.cursor-dot,
.cursor-outline {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
  z-index: 99999;
  transition: opacity .3s ease, width .15s ease, height .15s ease,
              background .15s ease, border-color .15s ease;
  will-change: left, top;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--gold);
  transition: opacity .3s ease, transform .1s ease;
}

.cursor-outline {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(201, 169, 110, 0.7);
}

.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(0);
}
.cursor-hover .cursor-outline {
  width: 42px;
  height: 42px;
  background: var(--gold-glow);
  border-color: var(--gold);
}

.cursor-click .cursor-outline {
  transform: translate(-50%, -50%) scale(0.7);
}

/* ============================================================
   INTERACTION SAFETY — overlays fermés non bloquants
============================================================ */
.sidebar-overlay,
.modal-overlay,
body .tm-lb-overlay,
body .tm-auth-ov {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sidebar-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 650;
  transition: opacity .2s ease, visibility .2s ease;
}

.sidebar-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  display: grid;
  transition: opacity .2s ease, visibility .2s ease;
}

.modal-overlay.is-open,
body .tm-lb-overlay.is-open,
body .tm-auth-ov.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.has-open-panel {
  overflow: hidden;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: var(--muted);
  font-size: .75rem;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-separator {
  color: var(--muted);
  margin: 0 .4rem;
}

/* ============================================================
   VOLET LEGAL SPA
============================================================ */
.sliding-panel {
  position: fixed;
  inset: 0;
  z-index: 12000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}

.sliding-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sliding-panel__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sliding-panel__sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: min(920px, 100%);
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: var(--sp-md);
  padding: clamp(var(--sp-lg), 4vw, var(--sp-xl));
  border-left: var(--border-gold);
  background: color-mix(in srgb, var(--surface) 94%, var(--bg));
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.22, 1, .36, 1);
  outline: none;
}

.sliding-panel.is-open .sliding-panel__sheet {
  transform: translateX(0);
}

.sliding-panel__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--sp-md);
  padding-bottom: var(--sp-md);
  border-bottom: var(--border);
}

.sliding-panel__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}

.sliding-panel__close {
  flex: 0 0 auto;
}

.sliding-panel__close svg {
  width: 18px;
  height: 18px;
}

.legal-slider-nav {
  display: flex;
  gap: var(--sp-xs);
  flex-wrap: wrap;
}

.legal-slider-nav__item {
  min-height: 34px;
  padding: 0 .9rem;
  border: var(--border);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.legal-slider-nav__item:hover,
.legal-slider-nav__item.is-active {
  border-color: rgba(201, 169, 110, .42);
  background: var(--gold-glow);
  color: var(--gold);
}

.sliding-panel__content {
  overflow: auto;
  padding: var(--sp-lg) .25rem var(--sp-xxl) 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 110, .22) transparent;
}

.sliding-panel .doc {
  display: grid;
  gap: 2.5rem;
  max-width: 760px;
  margin: 0 auto;
}

.sliding-panel .doc + .doc-divider + .doc {
  margin-top: 0;
}

.doc-header {
  padding-bottom: 2rem;
  border-bottom: var(--border);
}

.doc-kicker {
  margin-bottom: .4rem;
  color: var(--gold);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.doc-title {
  margin-bottom: .6rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1;
}

.doc-meta {
  color: var(--muted);
  font-size: .72rem;
}

.doc-section {
  display: grid;
  gap: 1rem;
}

.doc-section h3 {
  padding-bottom: .5rem;
  border-bottom: var(--border);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.doc-section h4 {
  margin-top: .5rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.doc-section p,
.doc-section li {
  color: var(--ink-2);
  font-size: .88rem;
  line-height: 1.78;
}

.doc-section ul {
  display: grid;
  gap: .38rem;
  padding-left: 1rem;
}

.doc-section ul li::before {
  content: "-";
  margin-right: .5rem;
  color: var(--gold);
  opacity: .6;
}

.placeholder {
  display: inline-block;
  padding: .1rem .5rem;
  border: 0.5px dashed rgba(201, 169, 110, .45);
  border-radius: 4px;
  background: rgba(201, 169, 110, .06);
  color: var(--gold);
  font-family: var(--mono);
  font-size: .80em;
  font-style: normal;
}

.info-box {
  padding: 1rem 1.2rem;
  border: var(--border-gold);
  border-radius: var(--r-md);
  background: var(--gold-glow);
  color: var(--ink-2);
  font-size: .82rem;
  line-height: 1.65;
}

.info-box strong {
  color: var(--gold);
  font-weight: 400;
}

.doc-divider {
  height: 0.5px;
  background: rgba(245, 245, 241, .06);
}

.doc-divider--spaced {
  margin: 3rem auto;
  max-width: 760px;
}

@media (max-width: 720px) {
  .sliding-panel__sheet {
    width: 100%;
    padding: var(--sp-lg) var(--sp-md);
  }

  .sliding-panel__header {
    align-items: center;
  }
}

/* ============================================================
   FEED V3 — page sociale dédiée
============================================================ */
body.is-feed-page {
  --bg: #151515;
  --surface: #1A1A1A;
  --surface-2: #222222;
  --surface-3: #2A2927;
  --ink: #F2F0EA;
  --ink-2: #C8C4BA;
  --muted: #918B82;
  --gold: #C9A96E;
  --gold-dim: rgba(201, 169, 110, 0.16);
  --gold-glow: rgba(201, 169, 110, 0.07);
  --border: 0.5px solid rgba(245, 245, 241, 0.11);
  --border-strong: 0.5px solid rgba(245, 245, 241, 0.20);
  --border-gold: 0.5px solid rgba(201, 169, 110, 0.42);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.70);
  --shadow-sm: 0 6px 24px rgba(0, 0, 0, 0.52);
  overflow-y: hidden;
  overflow-x: hidden;
  background: #151515;
  color: var(--ink);
  color-scheme: dark;
}

[data-theme="light"] body.is-feed-page {
  --bg: #EEE8DA;
  --surface: #FFFCF4;
  --surface-2: #F5EDDE;
  --surface-3: #E7DAC5;
  --ink: #19140F;
  --ink-2: #3F3830;
  --muted: #6F665A;
  --gold: #805B22;
  --gold-dim: rgba(128, 91, 34, 0.14);
  --gold-glow: rgba(128, 91, 34, 0.075);
  --feed-accent: #446D8E;
  --feed-accent-dim: rgba(68, 109, 142, 0.14);
  --border: 0.5px solid rgba(42, 34, 23, 0.13);
  --border-strong: 0.5px solid rgba(42, 34, 23, 0.26);
  --border-gold: 0.5px solid rgba(128, 91, 34, 0.42);
  --shadow: 0 22px 70px rgba(67, 50, 27, 0.12);
  --shadow-sm: 0 5px 22px rgba(67, 50, 27, 0.09);
  background:
    radial-gradient(circle at 82% -8%, rgba(68, 109, 142, 0.13), transparent 31rem),
    radial-gradient(circle at 8% 18%, rgba(128, 91, 34, 0.10), transparent 27rem),
    var(--bg);
  color: var(--ink);
  color-scheme: light;
}

body.is-feed-page .navbar {
  display: none;
}

body.is-feed-page .sidebar {
  display: none;
}

body.is-feed-page .sidebar-overlay {
  display: none;
}

body.is-feed-page .legal-strip {
  display: none;
}

body.is-feed-page footer {
  display: none;
}

body.is-feed-page .app-body {
  display: block;
  min-height: 100dvh;
  padding-top: 0;
}

body.is-feed-page .main-wrap {
  margin-left: 0;
  width: 100%;
  min-height: 100dvh;
}

body.is-feed-page .app {
  padding: 0;
  gap: 0;
}

body.is-feed-page .view {
  gap: 0;
  padding: 0;
}

body.is-feed-page #module-feed.is-active {
  display: block;
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

body.is-feed-page #module-feed[data-feed-page-shell] .section-head {
  display: none;
}

body.is-feed-page #feed-wall {
  height: 100dvh;
  min-width: 0;
}

#module-feed.is-active {
  gap: var(--sp-md);
}

#module-feed[data-feed-page-shell] .section-head {
  margin-bottom: 0;
}

.tm-feed-page {
  display: grid;
  grid-template-columns: minmax(170px, 0.46fr) minmax(0, 1.72fr) minmax(220px, 0.58fr);
  gap: 1rem;
  align-items: stretch;
  width: 100%;
  height: calc(100dvh - 74px);
  max-width: none;
  overflow: hidden;
}

.tm-feed-page .tm-feed-left,
.tm-feed-page .tm-feed-right {
  position: sticky;
  top: calc(58px + 1rem);
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 110, .32) transparent;
}

.tm-feed-page .tm-feed-left {
  grid-template-rows: max-content max-content max-content;
}

.tm-feed-page .tm-feed-right {
  overflow: visible;
}

.tm-feed-page .tm-feed-center {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 1rem;
  align-content: start;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: .35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 110, .42) transparent;
}

.tm-feed-page .tm-feed-center .tm-feed-channel-tabs {
  top: 0;
}

.tm-feed-page .tm-feed-editorial.tm-editorial-panel {
  display: grid;
  gap: .5rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  border-color: rgba(126, 154, 180, .24);
  background:
    linear-gradient(135deg, var(--feed-accent-dim), transparent 46%),
    var(--surface-2);
}

.tm-feed-page .tm-feed-editorial h3 {
  font-size: 1.28rem;
  line-height: 1.04;
}

.tm-feed-page .tm-feed-editorial p:last-child {
  font-size: .72rem;
  line-height: 1.45;
}

.tm-feed-editorial__visual {
  min-height: 126px;
  margin-top: .35rem;
  border-color: rgba(126, 154, 180, .28);
}

.tm-feed-timeline,
.tm-feed-scrollstream {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.tm-feed-infinite-loader {
  display: grid;
  place-items: center;
  min-height: 54px;
  color: var(--muted);
}

.tm-feed-infinite-loader[hidden] {
  display: none;
}

.tm-feed-infinite-loader span {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(245, 245, 241, .12);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: tm-feed-spin .8s linear infinite;
}

.tm-feed-sentinel {
  width: 100%;
  height: 1px;
}

.tm-feed-end {
  padding: .6rem 0 1rem;
  color: var(--muted);
  font-size: .72rem;
  text-align: center;
}

@keyframes tm-feed-spin {
  to {
    transform: rotate(360deg);
  }
}

.tm-feed-space-list,
.tm-feed-search-results,
.tm-feed-result-group,
.tm-feed-comments-panel,
.tm-feed-profile-view {
  display: grid;
  gap: .65rem;
}

.tm-feed-searchbar {
  position: relative;
  display: grid;
  gap: .55rem;
  align-self: start;
}

.tm-feed-searchbar__field {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: .52rem;
  border: 1px solid rgba(245, 245, 241, .1);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface-2) 76%, transparent);
  padding: 0 .78rem;
  color: var(--ink-2);
}

.tm-feed-searchbar__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--feed-accent);
  opacity: .82;
}

.tm-feed-searchbar__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tm-feed-searchbar input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .78rem;
}

.tm-feed-searchbar input::placeholder {
  color: var(--muted);
}

.tm-feed-search-results:empty {
  display: none;
}

.tm-feed-search-results--compact {
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: min(560px, calc(100dvh - 140px));
  overflow: auto;
  padding: .62rem;
  border: 1px solid rgba(126, 154, 180, .28);
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .46);
}

.tm-feed-space-btn,
.tm-feed-result-item {
  width: 100%;
  min-width: 0;
  border: var(--border);
  border-radius: var(--r-md);
  background: rgba(245, 245, 241, .018);
  color: var(--ink-2);
  padding: .72rem .82rem;
  text-align: left;
  cursor: pointer;
}

.tm-feed-space-btn.is-active {
  border-color: rgba(126, 154, 180, .48);
  background: var(--feed-accent-dim);
  color: var(--ink);
}

.tm-feed-space-btn small,
.tm-feed-result-item span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.45;
}

.tm-feed-mobile-spaces {
  display: none;
}

.tm-feed-toolbar {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  scrollbar-width: thin;
}

.tm-feed-toolbar .tm-feed-space-btn {
  width: auto;
  min-width: max-content;
}

.tm-feed-advanced {
  border: var(--border);
  border-radius: var(--r-md);
  padding: .82rem;
}

.tm-feed-advanced summary {
  color: var(--gold);
  cursor: pointer;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tm-feed-comments-panel {
  border-top: var(--border);
  padding-top: .75rem;
}

.tm-feed-comment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .55rem;
  align-items: start;
}

.tm-feed-comment__body {
  min-width: 0;
}

.tm-feed-comment__body p {
  margin: 0;
  color: var(--ink-2);
  font-size: .78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.tm-feed-profile-view {
  border: 1px solid rgba(126, 154, 180, .30);
  border-radius: var(--r-xl);
  padding: 1.15rem;
  background: var(--feed-accent-dim);
}

.tm-feed-floating-compose {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, .55);
  background: var(--gold);
  color: #090806;
  font-size: 1.35rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .34);
}

.tm-feed-topbar {
  position: sticky;
  top: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 58px;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto 1rem;
  padding: 0 .9rem;
  border-bottom: 0.5px solid #1E1E1E;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
}

.tm-feed-topbar__return,
.tm-feed-topbar__action,
.tm-feed-topbar__account {
  display: inline-flex;
  align-items: center;
  gap: .58rem;
  border: 0.5px solid rgba(201, 169, 110, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .018);
  color: var(--ink-2);
  padding: .44rem .68rem;
  font-size: .68rem;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.tm-feed-topbar__return {
  justify-self: start;
}

.tm-feed-topbar__actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .42rem;
  min-width: 0;
  max-width: 100%;
}

.tm-feed-topbar__action {
  position: relative;
  width: 36px;
  height: 36px;
  justify-content: center;
  padding: 0;
  flex: 0 0 auto;
}

.tm-feed-topbar__action svg {
  width: 15px;
  height: 15px;
}

.tm-feed-topbar__account {
  max-width: 100%;
}

.tm-feed-topbar__return:hover,
.tm-feed-topbar__action:hover,
.tm-feed-topbar__account:hover {
  border-color: rgba(201, 169, 110, .50);
  color: var(--gold);
  background: rgba(201, 169, 110, .07);
}

.tm-feed-topbar__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 1px solid rgba(5, 5, 5, .92);
  border-radius: 999px;
  background: var(--gold);
  color: #090806;
  font-size: .56rem;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  letter-spacing: 0;
}

.tm-feed-topbar__brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  min-width: 0;
  color: var(--gold);
}

.tm-feed-topbar__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(201, 169, 110, .36);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, rgba(201, 169, 110, .22), rgba(201, 169, 110, .035) 62%, transparent);
  box-shadow: 0 0 28px rgba(201, 169, 110, .10);
}

.tm-feed-topbar__mark svg {
  width: 22px;
  height: 22px;
}

.tm-feed-topbar__title {
  font-family: var(--serif);
  font-size: 1.34rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
  letter-spacing: .08em;
}

.tm-feed-topbar__avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0.5px solid rgba(201, 169, 110, .38);
  border-radius: 50%;
  background: rgba(201, 169, 110, .09);
  color: var(--gold);
  font-size: .62rem;
  letter-spacing: .06em;
}

.tm-feed-topbar__account-text {
  overflow: hidden;
  max-width: 170px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-feed-channel-tabs {
  position: sticky;
  top: 58px;
  z-index: 44;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  padding: .55rem;
  border: 0.5px solid rgba(245, 245, 241, .07);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
}

.tm-feed-channel {
  display: grid;
  gap: .16rem;
  min-width: 0;
  min-height: 58px;
  border: 0.5px solid rgba(245, 245, 241, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .018);
  color: var(--muted);
  padding: .62rem .72rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.tm-feed-channel span {
  color: var(--ink-2);
  font-size: .78rem;
  font-weight: 500;
}

.tm-feed-channel small {
  color: var(--muted);
  font-size: .62rem;
  line-height: 1.35;
}

.tm-feed-channel:hover {
  border-color: rgba(126, 154, 180, .38);
  color: var(--feed-accent);
}

.tm-feed-channel.is-active {
  border-color: rgba(126, 154, 180, .62);
  background: linear-gradient(135deg, var(--feed-accent-dim), rgba(201, 169, 110, .045));
}

.tm-feed-channel.is-active span {
  color: var(--feed-accent);
}

.tm-post-v2 {
  position: relative;
  gap: .78rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(245, 245, 241, .10);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(126, 154, 180, .055), transparent 42%),
    #222;
  box-shadow:
    inset 0 1px 0 rgba(245, 245, 241, .045),
    0 0 0 1px rgba(126, 154, 180, .045);
}

.tm-post-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-left: 2px solid var(--feed-accent);
  opacity: .32;
  pointer-events: none;
}

.tm-post-v2:nth-child(4n + 2) {
  min-height: 230px;
}

.tm-post-v2:nth-child(4n + 3) {
  min-height: 190px;
}

.tm-post-v2__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .72rem;
}

.tm-post-v2__author {
  display: flex;
  gap: .68rem;
  align-items: center;
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.tm-post-v2__avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.tm-post-v2__author-info {
  min-width: 0;
  display: grid;
  gap: .08rem;
}

.tm-post-v2__author-name {
  color: var(--ink);
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-post-v2__author-sub {
  color: var(--muted);
  font-size: .66rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-post-v2__actions-top,
.tm-post-v2__meta {
  display: none;
}

.tm-post-v2__context {
  color: color-mix(in srgb, var(--feed-accent) 78%, var(--gold));
  font-size: .62rem;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.tm-post-v2__title {
  margin: 0;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.35;
}

.tm-post-v2__body {
  color: var(--ink-2);
  font-size: .88rem;
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tm-post-image {
  overflow: hidden;
  border: 1px solid rgba(245, 245, 241, .08);
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(245,245,241,.035) 0 1px, transparent 1px 28px),
    var(--surface);
}

.tm-post-image img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.tm-post-v2__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .34rem;
}

.tm-post-v2__tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(126, 154, 180, .28);
  border-radius: 999px;
  background: rgba(126, 154, 180, .09);
  color: var(--ink-2);
  padding: .1rem .48rem;
  font-size: .62rem;
}

.tm-post-v2__actions {
  display: flex;
  align-items: center;
  gap: .35rem;
  border-top: 0;
  padding-top: .15rem;
}

.tm-social-action {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: .34rem .56rem;
  font-size: .76rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.tm-social-action:hover {
  background: rgba(201, 169, 110, .075);
  color: var(--gold);
}

.tm-social-action__icon {
  font-size: .98rem;
  line-height: 1;
}

.tm-social-action__count,
.tm-social-action__label {
  font-size: .72rem;
  line-height: 1;
}

.tm-post-v2__menu {
  position: relative;
  flex: 0 0 auto;
}

.tm-post-v2__menu summary {
  list-style: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0.5px solid rgba(245, 245, 241, .08);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  letter-spacing: .08em;
}

.tm-post-v2__menu summary::-webkit-details-marker {
  display: none;
}

.tm-post-v2__menu[open] summary,
.tm-post-v2__menu summary:hover {
  border-color: rgba(201, 169, 110, .38);
  color: var(--gold);
  background: rgba(201, 169, 110, .06);
}

.tm-post-v2__menu-panel {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: .2rem;
  width: 210px;
  padding: .45rem;
  border: 1px solid rgba(201, 169, 110, .18);
  border-radius: 10px;
  background: #080808;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .55);
}

.tm-post-v2__menu-item,
.tm-post-v2__menu-panel .tm-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .45rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-2);
  padding: .58rem .62rem;
  text-align: left;
  font: inherit;
  font-size: .74rem;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.tm-post-v2__menu-item:hover,
.tm-post-v2__menu-panel .tm-action:hover {
  background: rgba(201, 169, 110, .08);
  color: var(--gold);
}

.tm-post-v2__menu-panel .tm-action__symbol {
  display: none;
}

.tm-post-v2__menu-item--danger {
  color: #dca09a;
}

.tm-post-v2__menu-status {
  padding: .35rem .62rem;
}

[data-theme="light"] body.is-feed-page .tm-feed-topbar {
  border-bottom-color: rgba(42, 34, 23, 0.14);
  background: rgba(255, 252, 244, 0.90);
  box-shadow: 0 10px 28px rgba(67, 50, 27, 0.07);
}

[data-theme="light"] body.is-feed-page .tm-feed-topbar__return,
[data-theme="light"] body.is-feed-page .tm-feed-topbar__action,
[data-theme="light"] body.is-feed-page .tm-feed-topbar__account {
  border-color: rgba(42, 34, 23, 0.14);
  background: rgba(255, 252, 244, 0.78);
  color: var(--ink-2);
}

[data-theme="light"] body.is-feed-page .tm-feed-topbar__return:hover,
[data-theme="light"] body.is-feed-page .tm-feed-topbar__action:hover,
[data-theme="light"] body.is-feed-page .tm-feed-topbar__account:hover {
  border-color: rgba(128, 91, 34, 0.36);
  background: rgba(128, 91, 34, 0.09);
  color: var(--gold);
}

[data-theme="light"] body.is-feed-page .tm-feed-topbar__mark,
[data-theme="light"] body.is-feed-page .tm-feed-topbar__avatar {
  border-color: rgba(128, 91, 34, 0.30);
  background: rgba(128, 91, 34, 0.09);
  box-shadow: none;
}

[data-theme="light"] body.is-feed-page .tm-feed-channel-tabs {
  border-color: rgba(42, 34, 23, 0.12);
  background: rgba(255, 252, 244, 0.82);
  box-shadow: 0 10px 30px rgba(67, 50, 27, 0.055);
}

[data-theme="light"] body.is-feed-page .tm-feed-channel,
[data-theme="light"] body.is-feed-page .tm-feed-space-btn,
[data-theme="light"] body.is-feed-page .tm-feed-result-item {
  border-color: rgba(42, 34, 23, 0.13);
  background: rgba(255, 252, 244, 0.70);
  color: var(--ink-2);
}

[data-theme="light"] body.is-feed-page .tm-feed-channel:hover,
[data-theme="light"] body.is-feed-page .tm-feed-space-btn:hover,
[data-theme="light"] body.is-feed-page .tm-feed-result-item:hover {
  border-color: rgba(68, 109, 142, 0.34);
  background: rgba(68, 109, 142, 0.075);
}

[data-theme="light"] body.is-feed-page .tm-feed-channel.is-active,
[data-theme="light"] body.is-feed-page .tm-feed-space-btn.is-active {
  border-color: rgba(68, 109, 142, 0.48);
  background:
    linear-gradient(135deg, rgba(68, 109, 142, 0.15), rgba(128, 91, 34, 0.07));
  color: var(--ink);
}

[data-theme="light"] body.is-feed-page .tm-feed-page .tm-feed-editorial.tm-editorial-panel,
[data-theme="light"] body.is-feed-page .tm-feed-panel,
[data-theme="light"] body.is-feed-page .tm-feed-profile-view {
  border-color: rgba(68, 109, 142, 0.20);
  background:
    linear-gradient(135deg, rgba(68, 109, 142, 0.10), transparent 44%),
    rgba(255, 252, 244, 0.82);
  box-shadow: 0 12px 32px rgba(67, 50, 27, 0.07);
}

[data-theme="light"] body.is-feed-page .tm-feed-searchbar__field {
  border-color: rgba(42, 34, 23, 0.14);
  background: rgba(255, 252, 244, 0.82);
  color: var(--ink-2);
}

[data-theme="light"] body.is-feed-page .tm-feed-search-results--compact {
  border-color: rgba(68, 109, 142, 0.24);
  background: #FFFCF4;
  box-shadow: 0 22px 54px rgba(67, 50, 27, 0.16);
}

[data-theme="light"] body.is-feed-page .tm-post-v2 {
  border-color: rgba(42, 34, 23, 0.14);
  background:
    linear-gradient(135deg, rgba(68, 109, 142, 0.07), transparent 42%),
    #FFFCF4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 42px rgba(67, 50, 27, 0.09);
}

[data-theme="light"] body.is-feed-page .tm-post-v2::before {
  opacity: .48;
}

[data-theme="light"] body.is-feed-page .tm-post-image {
  border-color: rgba(42, 34, 23, 0.13);
  background:
    repeating-linear-gradient(90deg, rgba(25,20,15,.045) 0 1px, transparent 1px 28px),
    var(--surface-2);
}

[data-theme="light"] body.is-feed-page .tm-post-v2__tag,
[data-theme="light"] body.is-feed-page .tm-feed-atlas-badge,
[data-theme="light"] body.is-feed-page .tm-social-action:hover {
  border-color: rgba(68, 109, 142, 0.26);
  background: rgba(68, 109, 142, 0.09);
}

[data-theme="light"] body.is-feed-page .tm-post-v2__menu summary {
  border-color: rgba(42, 34, 23, 0.14);
  background: rgba(255, 252, 244, 0.66);
}

[data-theme="light"] body.is-feed-page .tm-post-v2__menu[open] summary,
[data-theme="light"] body.is-feed-page .tm-post-v2__menu summary:hover {
  border-color: rgba(128, 91, 34, 0.36);
  background: rgba(128, 91, 34, 0.09);
}

[data-theme="light"] body.is-feed-page .tm-post-v2__menu-panel,
[data-theme="light"] body.is-feed-page .tm-post-v2__menu-dropdown {
  border-color: rgba(42, 34, 23, 0.16);
  background: #FFFCF4;
  box-shadow: 0 22px 54px rgba(67, 50, 27, 0.18);
}

[data-theme="light"] body.is-feed-page .tm-post-v2__menu-item:hover,
[data-theme="light"] body.is-feed-page .tm-post-v2__menu-panel .tm-action:hover {
  background: rgba(128, 91, 34, 0.09);
}

[data-theme="light"] body.is-feed-page .tm-feed-modal {
  background: rgba(25, 20, 15, .34);
}

[data-theme="light"] body.is-feed-page .tm-feed-modal-card,
[data-theme="light"] body.is-feed-page .tm-feed-modal-card.tm-feed-publish-modal,
[data-theme="light"] body.is-feed-page #module-feed .tm-composer-panel,
[data-theme="light"] body.is-feed-page #module-feed .tm-post-detail-panel {
  border-color: rgba(42, 34, 23, 0.16);
  background: #FFFCF4;
  box-shadow: 0 28px 80px rgba(67, 50, 27, 0.22);
}

[data-theme="light"] body.is-feed-page .tm-feed-publish-modal textarea {
  border-color: rgba(42, 34, 23, 0.14);
  background: rgba(244, 237, 222, 0.70);
  color: var(--ink);
}

[data-theme="light"] body.is-feed-page .tm-feed-publish-modal textarea::placeholder {
  color: rgba(111, 102, 90, 0.62);
}

[data-theme="light"] body.is-feed-page #module-feed .tm-composer-title,
[data-theme="light"] body.is-feed-page #module-feed .tm-composer-textarea,
[data-theme="light"] body.is-feed-page #module-feed .tm-composer-tags-input,
[data-theme="light"] body.is-feed-page #module-feed .tm-composer-visibility,
[data-theme="light"] body.is-feed-page #module-feed .tm-composer-advanced select,
[data-theme="light"] body.is-feed-page #module-feed .tm-composer-advanced input,
[data-theme="light"] body.is-feed-page #module-feed .tm-atelier-input {
  border-color: rgba(42, 34, 23, 0.14);
  background: rgba(244, 237, 222, 0.70);
  color: var(--ink);
}

[data-theme="light"] body.is-feed-page #module-feed .tm-composer-textarea::placeholder,
[data-theme="light"] body.is-feed-page #module-feed .tm-composer-tags-input::placeholder {
  color: rgba(111, 102, 90, 0.62);
}

[data-theme="light"] body.is-feed-page .tm-feed-floating-compose,
[data-theme="light"] body.is-feed-page #module-feed .tm-atelier-send {
  border-color: #805B22;
  background: #805B22;
  color: #FFFCF4;
  box-shadow: 0 18px 42px rgba(67, 50, 27, 0.22);
}

#module-feed .tm-feed-3col {
  max-width: 1480px;
  margin: 0 auto;
  border-left: 1px solid rgba(245, 245, 241, .055);
  border-right: 1px solid rgba(245, 245, 241, .055);
}

#module-feed .tm-feed-left-col,
#module-feed .tm-feed-right-col {
  min-width: 0;
  overflow-y: auto;
  background: color-mix(in srgb, var(--bg) 88%, var(--surface));
}

#module-feed .tm-feed-left-col {
  border-right: 1px solid rgba(245, 245, 241, .07);
}

#module-feed .tm-feed-right-col {
  border-left: 1px solid rgba(245, 245, 241, .07);
}

#module-feed .tm-feed-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.28rem 0.72rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  cursor: pointer;
  white-space: nowrap;
}

#module-feed .tm-feed-filter-chip:hover,
#module-feed .tm-feed-filter-chip--active {
  background: rgba(201, 169, 110, .09);
  color: var(--gold);
}

#module-feed .tm-feed-right-rail {
  display: grid;
  gap: 1.1rem;
  padding: 1.25rem 1rem;
}

#module-feed .tm-feed-right-rail__section {
  display: grid;
  gap: .68rem;
}

#module-feed .tm-feed-right-rail__title {
  margin: 0;
  color: var(--gold);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

#module-feed .tm-feed-right-search {
  width: 100%;
  min-width: 0;
  border: var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  padding: .62rem .82rem;
}

#module-feed .tm-feed-suggest {
  display: grid;
  gap: .55rem;
}

#module-feed .tm-feed-suggest__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
}

#module-feed .tm-feed-suggest__avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 169, 110, .22);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(201, 169, 110, .08);
  font-size: .68rem;
}

#module-feed .tm-feed-suggest__info {
  min-width: 0;
}

#module-feed .tm-feed-suggest__name {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#module-feed .tm-feed-right-rail__empty,
#module-feed .tm-feed-right-rail__about,
#module-feed .tm-feed-right-rail__link {
  color: var(--muted);
  font-size: .72rem;
}

#module-feed .tm-composer-panel,
#module-feed .tm-post-detail-panel {
  width: min(640px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border: 1px solid rgba(245, 245, 241, .10);
  border-radius: 12px;
  background: #101010;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .62);
}

#module-feed .tm-composer-header,
#module-feed .tm-composer-footer {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1rem;
  border-bottom: var(--border);
}

#module-feed .tm-composer-footer {
  justify-content: space-between;
  border-top: var(--border);
  border-bottom: 0;
}

#module-feed .tm-composer-body {
  display: grid;
  gap: .72rem;
  padding: .95rem 1rem;
}

#module-feed .tm-composer-type-row {
  display: flex;
  gap: .34rem;
  flex-wrap: wrap;
  flex: 1;
}

#module-feed .tm-composer-type-btn {
  border: var(--border);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  padding: .34rem .62rem;
  font-size: .74rem;
  letter-spacing: 0;
  text-transform: none;
}

#module-feed .tm-composer-type-btn--active,
#module-feed .tm-composer-type-btn:hover {
  border-color: rgba(201, 169, 110, .42);
  color: var(--gold);
  background: rgba(201, 169, 110, .08);
}

#module-feed .tm-composer-title,
#module-feed .tm-composer-textarea,
#module-feed .tm-composer-tags-input,
#module-feed .tm-composer-visibility,
#module-feed .tm-composer-advanced select,
#module-feed .tm-composer-advanced input {
  width: 100%;
  min-width: 0;
  border: var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--ink);
  padding: .68rem .76rem;
  font: 400 .88rem/1.5 var(--sans);
}

#module-feed .tm-composer-textarea {
  min-height: 138px;
  resize: vertical;
}

#module-feed .tm-composer-title::placeholder,
#module-feed .tm-composer-textarea::placeholder,
#module-feed .tm-composer-tags-input::placeholder {
  color: rgba(232, 226, 217, .38);
}

#module-feed .tm-composer-char-count {
  margin-top: -.4rem;
  color: var(--muted);
  font-size: .7rem;
  text-align: right;
}

#module-feed .tm-composer-advanced {
  border: var(--border);
  border-radius: var(--r-md);
  padding: .68rem;
}

#module-feed .tm-composer-advanced summary {
  color: var(--muted);
  cursor: pointer;
  font-size: .76rem;
  letter-spacing: 0;
  text-transform: none;
}

#module-feed .tm-composer-advanced__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  padding-top: .75rem;
}

#module-feed .tm-composer-advanced label {
  display: grid;
  gap: .32rem;
  color: var(--muted);
  font-size: .68rem;
}

#module-feed .tm-composer-close,
#module-feed .tm-post-detail-close {
  width: 32px;
  height: 32px;
  border: var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

#module-feed .tm-composer-submit {
  border: 0;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: #080806;
  padding: .58rem .9rem;
  font: 600 .78rem/1 var(--sans);
  cursor: pointer;
}

#module-feed .tm-composer-submit:disabled {
  opacity: .42;
  cursor: not-allowed;
}

#module-feed .tm-post-detail-close {
  position: sticky;
  top: .75rem;
  float: right;
  margin: .75rem .75rem 0 0;
  z-index: 1;
}

#module-feed .tm-post-detail-post {
  clear: both;
}

#module-feed .tm-atelier {
  padding: 1rem 1.25rem 1.25rem;
  border-top: var(--border);
}

#module-feed .tm-atelier-input-row {
  display: flex;
  gap: .6rem;
  margin-bottom: 1rem;
}

#module-feed .tm-atelier-input {
  flex: 1;
  min-width: 0;
  border: var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--ink);
  padding: .62rem .72rem;
}

#module-feed .tm-atelier-send {
  width: 38px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--gold);
  color: #080806;
}

#module-feed .tm-atelier-list {
  display: grid;
  gap: .55rem;
}

#module-feed .tm-feed-composer-v2[hidden],
#module-feed .tm-post-detail-overlay[hidden] {
  display: none !important;
}

#module-feed .tm-feed-composer-v2.is-open,
#module-feed .tm-post-detail-overlay.is-open {
  display: flex;
}

@media (max-width: 1200px) {
  #module-feed .tm-feed-right-col {
    display: none;
  }
}

@media (max-width: 980px) {
  .tm-feed-page {
    grid-template-columns: 1fr;
  }

  .tm-feed-page .tm-feed-left,
  .tm-feed-page .tm-feed-right {
    position: static;
  }

  .tm-feed-mobile-spaces {
    display: block;
  }

  #module-feed .tm-feed-3col {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  #module-feed .tm-feed-right-col {
    display: none;
  }
}

@media (max-width: 720px) {
  .tm-feed-topbar {
    grid-template-columns: auto 1fr auto;
    gap: .5rem;
    min-height: 54px;
    padding: 0 .65rem;
  }

  .tm-feed-topbar__return,
  .tm-feed-topbar__account {
    padding: .4rem .52rem;
    font-size: .58rem;
  }

  .tm-feed-topbar__action {
    width: 32px;
    height: 32px;
  }

  .tm-feed-topbar__actions {
    gap: .34rem;
  }

  .tm-feed-topbar__return span:not(.tm-feed-topbar__icon),
  .tm-feed-topbar__account-text {
    display: none;
  }

  .tm-feed-topbar__title {
    font-size: 1.16rem;
  }

  .tm-feed-topbar__mark {
    width: 30px;
    height: 30px;
  }

  .tm-feed-channel-tabs {
    top: 54px;
    grid-template-columns: 1fr;
    border-radius: 0;
    margin-inline: -.2rem;
    padding: .45rem;
  }

  .tm-feed-channel {
    min-height: auto;
  }

  .tm-feed-channel small {
    display: none;
  }

  .tm-feed-page {
    gap: .82rem;
  }

  .tm-feed-page .tm-feed-left,
  .tm-feed-page .tm-feed-left .tm-feed-panel,
  .tm-feed-page .tm-feed-right {
    display: none;
  }

  .tm-feed-floating-compose {
    display: grid;
    place-items: center;
  }

  #module-feed .tm-feed-3col {
    grid-template-columns: 1fr;
  }

  #module-feed .tm-feed-left-col {
    display: none;
  }

  body.is-feed-page #module-feed.is-active {
    min-height: 100dvh;
    height: auto;
  }

  #module-feed .tm-composer-advanced__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SIGNATURE 10/10 — Panthéon, Journalier, Manifeste
============================================================ */
.tm-pantheon-share-card {
  aspect-ratio: 4 / 5;
  display: grid;
  gap: 1rem;
  align-content: space-between;
  margin-top: 1rem;
  padding: 1rem;
  border: var(--border-gold);
  border-radius: var(--r-md);
  background:
    linear-gradient(145deg, rgba(201, 169, 110, 0.10), transparent 36%),
    var(--surface);
}

.tm-pantheon-share-card__head {
  display: grid;
  gap: .25rem;
}

.tm-pantheon-share-card__head span,
.tm-pantheon-share-card__row span,
.tm-journalier-phase-grid span,
.tm-manifeste__grid span {
  color: var(--gold);
  font-family: var(--sans);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tm-pantheon-share-card__head strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 300;
  line-height: .92;
}

.tm-pantheon-share-card__head small,
.tm-pantheon-share-card__row p {
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: .78rem;
  line-height: 1.45;
}

.tm-pantheon-share-card__body {
  display: grid;
  gap: .72rem;
}

.tm-pantheon-share-card__row {
  display: grid;
  gap: .2rem;
  padding-top: .58rem;
  border-top: var(--border);
}

.tm-pantheon-share-card__row p {
  margin: 0;
}

.tm-journalier-phase-plan {
  gap: 1rem;
}

.tm-journalier-phase-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
}

.tm-journalier-phase-chip {
  appearance: none;
  border: var(--border);
  border-radius: var(--r-pill);
  background: rgba(245, 245, 241, .035);
  color: var(--muted);
  cursor: pointer;
  font: 500 .62rem/1 var(--sans);
  letter-spacing: .12em;
  padding: .52rem .72rem;
  text-transform: uppercase;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.tm-journalier-phase-chip:hover,
.tm-journalier-phase-chip.is-active {
  border-color: rgba(201, 169, 110, .48);
  background: rgba(201, 169, 110, .08);
  color: var(--gold);
}

.tm-journalier-phase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .72rem;
}

.tm-journalier-phase-grid > div {
  display: grid;
  gap: .45rem;
  min-width: 0;
  padding: .82rem;
  border: var(--border);
  border-radius: var(--r-md);
  background: rgba(245, 245, 241, .025);
}

.tm-journalier-phase-grid ul {
  display: grid;
  gap: .32rem;
  margin: 0;
  padding-left: 1rem;
  color: var(--ink-2);
  font: 300 .78rem/1.45 var(--sans);
}

.tm-journalier-phase-reminders {
  color: var(--gold) !important;
}

.tm-journalier-static {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(201, 169, 110, .06), transparent 42%),
    var(--surface);
}

.tm-journalier-static__head {
  display: grid;
  gap: .55rem;
}

.tm-journalier-static__head h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  font-weight: 300;
  line-height: .94;
}

.tm-journalier-static__head p,
.tm-journalier-static__grid p,
.tm-journalier-static__grid li {
  color: var(--ink-2);
  font: 300 .82rem/1.6 var(--sans);
}

.tm-journalier-static__phases {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
}

.tm-journalier-static__phases span {
  border: var(--border);
  border-radius: var(--r-pill);
  padding: .5rem .72rem;
  color: var(--muted);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tm-journalier-static__phases span:first-child {
  border-color: rgba(201, 169, 110, .48);
  background: rgba(201, 169, 110, .08);
  color: var(--gold);
}

.tm-journalier-static__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.tm-journalier-static__grid section {
  display: grid;
  align-content: start;
  gap: .55rem;
  padding: .9rem;
  border: var(--border);
  border-radius: var(--r-md);
  background: rgba(245, 245, 241, .025);
}

.tm-journalier-static__grid h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.05;
}

.tm-journalier-static__grid ul {
  display: grid;
  gap: .35rem;
  margin: 0;
  padding-left: 1rem;
}

.tm-journalier-static__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tm-manifeste {
  --mf-bg: #121212;
  --mf-surface: #171819;
  --mf-surface-2: #1d2023;
  --mf-band: #52606f;
  --mf-text: rgba(245, 245, 241, 0.84);
  --mf-muted: rgba(215, 212, 200, 0.68);
  --mf-border: rgba(245, 245, 241, 0.11);
  --mf-gold: #c9a96e;
  display: grid;
  gap: clamp(1.1rem, 2.4vw, 1.8rem);
  padding: clamp(1rem, 2.8vw, 1.6rem);
  border: 1px solid var(--mf-border);
  border-radius: var(--r-lg);
  background: var(--mf-bg);
  color: var(--mf-text);
}

.tm-manifeste__header {
  position: relative;
  display: grid;
  gap: 0.55rem;
  padding: clamp(1rem, 2.6vw, 1.5rem) clamp(1rem, 3vw, 1.8rem);
  overflow: hidden;
  border: 1px solid var(--mf-border);
  border-radius: var(--r-md);
  background:
    linear-gradient(90deg, rgba(82, 96, 111, 0.18), transparent 46%),
    var(--mf-surface);
}

.tm-manifeste__header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--mf-band), rgba(201, 169, 110, 0.62));
}

.tm-manifeste__eyebrow,
.tm-manifeste__theme-kicker {
  margin: 0;
  color: var(--mf-gold);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tm-manifeste__title {
  margin: 0;
  color: var(--mf-text);
  font-family: var(--serif);
  font-size: clamp(1.78rem, 2.3vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
}

.tm-manifeste__subtitle {
  margin: 0;
  color: rgba(245, 245, 241, 0.78);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.35;
}

.tm-manifeste__lead {
  max-width: 760px;
  margin: 0;
  color: var(--mf-muted);
  font-size: 0.9rem;
  line-height: 1.72;
}

.tm-manifeste__doctrine {
  display: grid;
  gap: 0.55rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border: 1px solid rgba(201, 169, 110, 0.26);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(201, 169, 110, 0.09), transparent 48%),
    var(--mf-surface);
}

.tm-manifeste__doctrine h2,
.tm-manifeste__theme h2 {
  margin: 0;
  color: var(--mf-text);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.12;
}

.tm-manifeste__doctrine p,
.tm-manifeste__theme p,
.tm-manifeste__legal p {
  margin: 0;
  color: var(--mf-muted);
  font-size: 0.86rem;
  line-height: 1.72;
}

.tm-manifeste__themes {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.1rem);
}

.tm-manifeste__theme {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
  align-items: center;
  padding: clamp(0.9rem, 2vw, 1.15rem);
  border: 1px solid var(--mf-border);
  border-radius: var(--r-md);
  background: var(--mf-surface);
}

.tm-manifeste__theme:nth-child(even) {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
}

.tm-manifeste__theme:nth-child(even) .tm-manifeste__media {
  order: -1;
}

.tm-manifeste__theme-copy {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.tm-manifeste__theme .text-btn {
  width: fit-content;
  margin-top: 0.15rem;
}

.tm-manifeste__media {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 245, 241, 0.10);
  border-radius: var(--r-md);
  background: var(--mf-surface-2);
}

.tm-manifeste__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tm-manifeste__quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: clamp(1rem, 2.6vw, 1.5rem);
  border: 1px solid rgba(201, 169, 110, 0.34);
  border-radius: var(--r-md);
  background:
    linear-gradient(90deg, rgba(201, 169, 110, 0.12), transparent 50%),
    var(--mf-surface);
}

.tm-manifeste__quote blockquote {
  margin: 0;
  color: var(--mf-text);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.12;
}

.tm-manifeste__actions,
.tm-manifeste__legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.tm-manifeste__legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--mf-border);
  border-radius: var(--r-md);
  background: #151515;
}

.tm-manifeste__legal strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--mf-text);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tm-module-page-turn {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0;
  transform-origin: left center;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, .72), rgba(201, 169, 110, .12) 42%, rgba(5, 5, 5, .02));
}

body.tm-module-turning .tm-module-page-turn {
  animation: tmPageTurn .54s ease both;
}

@keyframes tmPageTurn {
  0% {
    opacity: 0;
    transform: perspective(1200px) rotateY(0deg);
  }
  38% {
    opacity: .44;
  }
  100% {
    opacity: 0;
    transform: perspective(1200px) rotateY(-9deg);
  }
}

@media (max-width: 900px) {
  .tm-journalier-phase-grid,
  .tm-journalier-static__grid {
    grid-template-columns: 1fr;
  }

  .tm-manifeste__theme,
  .tm-manifeste__theme:nth-child(even),
  .tm-manifeste__quote,
  .tm-manifeste__legal {
    grid-template-columns: 1fr;
  }

  .tm-manifeste__theme:nth-child(even) .tm-manifeste__media {
    order: 0;
  }

  .tm-manifeste__actions,
  .tm-manifeste__legal nav {
    justify-content: flex-start;
  }

  .tm-pantheon-share-card {
    aspect-ratio: auto;
    min-height: 440px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tm-module-turning .tm-module-page-turn {
    animation: none;
  }
}
