/* Alchimie — carnet de laboratoire éditorial */
#appRoot .lh-alchemy-page {
  --alchemy-reading: "Manrope", ui-rounded, system-ui, sans-serif;
  gap: clamp(18px, 2.6vw, 34px);
  font-family: var(--alchemy-reading);
}

#appRoot .lh-alchemy-page p,
#appRoot .lh-alchemy-page li,
#appRoot .lh-alchemy-page small,
#appRoot .lh-alchemy-page button,
#appRoot .lh-alchemy-page footer {
  font-family: var(--alchemy-reading);
}

#appRoot .lh-alchemy-page h2,
#appRoot .lh-alchemy-page h3,
#appRoot .lh-alchemy-page h4,
#appRoot .lh-alchemy-page blockquote,
#appRoot .lh-alchemy-page .lh-alchemy-formula,
#appRoot .lh-alchemy-page .lh-alchemy-chapter-heading > strong {
  font-family: var(--font-display);
  font-weight: 500;
}

#appRoot .lh-alchemy-hero {
  min-height: clamp(360px, 42vw, 560px);
  padding: 0;
  isolation: isolate;
  border-color: color-mix(in srgb, var(--lh-gold) 34%, var(--lh-border));
  background: #090806;
}

#appRoot .lh-alchemy-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 5, .97) 0%, rgba(7, 6, 5, .9) 43%, rgba(7, 6, 5, .35) 76%, rgba(7, 6, 5, .18) 100%),
    linear-gradient(180deg, transparent 58%, rgba(7, 6, 5, .7));
}

#appRoot .lh-alchemy-hero::after {
  right: 8%;
  bottom: 34px;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 209, 116, .74), transparent);
}

#appRoot .lh-alchemy-hero-visual,
#appRoot .lh-alchemy-hero-visual .lh-discipline-illustration {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#appRoot .lh-alchemy-hero-visual .lh-discipline-illustration::after { display: none; }
#appRoot .lh-alchemy-hero-visual img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center; }

#appRoot .lh-alchemy-hero-copy {
  width: min(72%, 860px);
  min-height: inherit;
  display: grid;
  align-items: center;
  padding: clamp(32px, 5vw, 76px);
}

#appRoot .lh-alchemy-hero .lh-alchemy-reading-header,
#appRoot .lh-alchemy-hero .lh-alchemy-generation { grid-template-columns: clamp(76px, 9vw, 120px) minmax(0, 1fr); }
#appRoot .lh-alchemy-hero .lh-kicker { color: #d9b866; }
#appRoot .lh-alchemy-hero h2,
#appRoot .lh-alchemy-hero h3 { max-width: 15ch; margin: 8px 0 18px; color: #f8f0e2; font-size: clamp(2.25rem, 4.8vw, 5rem); line-height: .95; }
#appRoot .lh-alchemy-hero p,
#appRoot .lh-alchemy-hero .lh-reading-lead { max-width: 64ch; color: #e4dac9; font-family: var(--alchemy-reading); font-size: clamp(.95rem, 1.2vw, 1.08rem); line-height: 1.75; }
#appRoot .lh-alchemy-hero .lh-text-link { color: #efd174; }
#appRoot .lh-alchemy-hero .lh-alchemy-revelation-copy { animation: lh-alchemy-copy-reveal 560ms ease both; }

#appRoot .lh-alchemy-chapter {
  padding: 0;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--lh-gold) 24%, var(--lh-border));
  background: color-mix(in srgb, var(--lh-surface) 96%, var(--lh-gold) 4%);
}

#appRoot .lh-alchemy-chapter > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  min-height: 132px;
  padding: clamp(22px, 3vw, 38px);
  cursor: pointer;
  list-style: none;
}

#appRoot .lh-alchemy-chapter > summary::-webkit-details-marker { display: none; }
#appRoot .lh-alchemy-chapter > summary:hover .lh-alchemy-chapter-heading > strong,
#appRoot .lh-alchemy-chapter > summary:focus-visible .lh-alchemy-chapter-heading > strong { color: var(--lh-gold); }

#appRoot .lh-alchemy-chapter-index {
  align-self: start;
  color: color-mix(in srgb, var(--lh-gold) 82%, var(--lh-text));
  font: 500 clamp(2.1rem, 4vw, 4.3rem)/.9 var(--font-display);
}

#appRoot .lh-alchemy-chapter-heading { display: grid; gap: 6px; }
#appRoot .lh-alchemy-chapter-heading > small { color: var(--lh-gold); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
#appRoot .lh-alchemy-chapter-heading > strong { color: var(--lh-text); font-size: clamp(1.65rem, 2.7vw, 2.7rem); line-height: 1; transition: color 180ms ease; }
#appRoot .lh-alchemy-chapter-heading > em { color: var(--lh-muted); font-family: var(--alchemy-reading); font-size: .88rem; font-style: normal; line-height: 1.55; }

#appRoot .lh-alchemy-chapter-toggle {
  position: relative;
  width: 38px;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--lh-gold) 42%, var(--lh-border));
  border-radius: 50%;
}
#appRoot .lh-alchemy-chapter-toggle::before,
#appRoot .lh-alchemy-chapter-toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1px; background: var(--lh-gold); transform: translate(-50%, -50%); transition: transform 220ms ease; }
#appRoot .lh-alchemy-chapter-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
#appRoot .lh-alchemy-chapter[open] .lh-alchemy-chapter-toggle::after { transform: translate(-50%, -50%) rotate(0); }

#appRoot .lh-alchemy-chapter-body {
  display: grid;
  gap: clamp(30px, 4vw, 58px);
  padding: 0 clamp(22px, 4vw, 54px) clamp(28px, 5vw, 64px);
  animation: lh-alchemy-chapter-reveal 360ms ease both;
}

#appRoot .lh-alchemy-chapter-body::before { content: ""; height: 1px; background: linear-gradient(90deg, var(--lh-gold), color-mix(in srgb, var(--lh-gold) 8%, transparent) 72%, transparent); }
#appRoot .lh-alchemy-section { min-width: 0; }
#appRoot .lh-alchemy-section + .lh-alchemy-section,
#appRoot .lh-alchemy-chapter-body > .lh-panel { padding-top: clamp(26px, 3vw, 42px); border-top: 1px solid var(--lh-border); }

#appRoot .lh-alchemy-chapter-body > .lh-panel {
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#appRoot .lh-alchemy-signature-card { display: grid; gap: 18px; }
#appRoot .lh-alchemy-signature { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(12px, 2vw, 28px); }
#appRoot .lh-alchemy-signature > span { display: grid; gap: 4px; padding-block: 12px; }
#appRoot .lh-alchemy-signature small { color: var(--lh-muted); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
#appRoot .lh-alchemy-signature strong { color: var(--lh-text); font: 500 clamp(1.8rem, 3vw, 3.2rem)/1 var(--font-display); }
#appRoot .lh-alchemy-signature em { color: var(--lh-gold); font-family: var(--alchemy-reading); font-size: .75rem; font-style: normal; }
#appRoot .lh-alchemy-signature > i { color: color-mix(in srgb, var(--lh-gold) 56%, var(--lh-muted)); font: 400 1.45rem/1 var(--font-display); font-style: normal; }

#appRoot .lh-alchemy-chapter .lh-section-header h3 { margin-top: 6px; font-size: clamp(1.65rem, 2.6vw, 2.45rem); line-height: 1.05; }
#appRoot .lh-alchemy-chapter .lh-section-header > p { font-family: var(--alchemy-reading); }
#appRoot .lh-alchemy-support { border: 1px solid var(--lh-border); background: color-mix(in srgb, var(--lh-surface-2) 70%, transparent); }
#appRoot .lh-alchemy-support > .lh-alchemy-support-reading { min-width: 0; padding: clamp(20px, 3vw, 38px); }
#appRoot .lh-alchemy-support-reading h3 { font-size: clamp(1.45rem, 2.2vw, 2.1rem); }
#appRoot .lh-alchemy-support-reading p,
#appRoot .lh-alchemy-work-grid p:last-child,
#appRoot .lh-alchemy-lived-panel > p,
#appRoot .lh-alchemy-profile-reading .lh-reading-prose { font-family: var(--alchemy-reading); line-height: 1.75; }

#appRoot .lh-alchemy-phase-step { min-height: 172px; border-radius: 2px; }
#appRoot .lh-alchemy-phase-step > strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; }
#appRoot .lh-alchemy-work-grid h4 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }

#appRoot .lh-alchemy-profile-reading {
  position: relative;
  gap: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--lh-gold) 32%, var(--lh-border));
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--lh-gold) 10%, transparent), transparent 28%),
    color-mix(in srgb, var(--lh-surface) 96%, var(--lh-gold) 4%);
}

#appRoot .lh-alchemy-profile-reading::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--lh-gold), color-mix(in srgb, var(--lh-gold) 8%, transparent));
}

#appRoot .lh-alchemy-profile-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(138px, 18vw, 220px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 64px);
}

#appRoot .lh-alchemy-profile-head > div { max-width: 760px; }
#appRoot .lh-alchemy-profile-head h2 { max-width: 18ch; margin: 8px 0 14px; font-size: clamp(2.25rem, 4vw, 4.6rem); line-height: .95; }
#appRoot .lh-alchemy-profile-head > div > p:last-child { margin: 0; color: var(--lh-muted); font-size: .94rem; }

#appRoot .lh-alchemy-profile-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--lh-gold) 54%, transparent);
  border-radius: 50%;
  color: var(--lh-gold);
  background: color-mix(in srgb, var(--lh-bg) 62%, transparent);
}

#appRoot .lh-alchemy-profile-emblem::before,
#appRoot .lh-alchemy-profile-emblem::after,
#appRoot .lh-alchemy-profile-emblem > i {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid color-mix(in srgb, var(--lh-gold) 34%, transparent);
  border-radius: 50%;
}

#appRoot .lh-alchemy-profile-emblem::after { inset: 27%; border-radius: 2px; transform: rotate(45deg); }
#appRoot .lh-alchemy-profile-emblem > i { inset: 21%; border-radius: 2px; transform: rotate(45deg); opacity: .52; }
#appRoot .lh-alchemy-profile-emblem > b { z-index: 1; font: 500 clamp(2.2rem, 4.5vw, 4rem)/1 var(--font-display); }
#appRoot .lh-alchemy-profile-emblem > small { position: absolute; bottom: 14%; z-index: 1; color: var(--lh-muted); font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

#appRoot .lh-alchemy-profile-signature {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--lh-border);
}

#appRoot .lh-alchemy-profile-signature > div { display: grid; gap: 5px; min-width: 0; padding: clamp(20px, 3vw, 34px) clamp(22px, 4vw, 48px); border-left: 1px solid var(--lh-border); }
#appRoot .lh-alchemy-profile-signature > div:first-child { border-left: 0; }
#appRoot .lh-alchemy-profile-signature dt { color: var(--lh-muted); font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#appRoot .lh-alchemy-profile-signature dd { margin: 0; color: var(--lh-text); font: 500 clamp(1.55rem, 2.4vw, 2.5rem)/1 var(--font-display); }
#appRoot .lh-alchemy-profile-signature small { color: var(--lh-gold); font-size: .72rem; }

#appRoot .lh-alchemy-profile-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, .75fr); }
#appRoot .lh-alchemy-profile-narrative { padding: clamp(30px, 5vw, 64px); }
#appRoot .lh-alchemy-profile-narrative .lh-reading-prose { max-width: 70ch; margin-top: 18px; font-size: clamp(1rem, 1.3vw, 1.12rem); }
#appRoot .lh-alchemy-profile-narrative .lh-reading-prose p:first-child::first-letter { float: left; margin: .06em .12em 0 0; color: var(--lh-gold); font: 500 3.8em/.75 var(--font-display); }

#appRoot .lh-alchemy-profile-practice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(30px, 4vw, 50px);
  border-left: 1px solid var(--lh-border);
  background: color-mix(in srgb, var(--lh-surface-2) 72%, transparent);
}

#appRoot .lh-alchemy-profile-practice > span { position: absolute; top: 20px; right: 24px; color: color-mix(in srgb, var(--lh-gold) 26%, transparent); font: 500 clamp(3.4rem, 6vw, 6.4rem)/1 var(--font-display); }
#appRoot .lh-alchemy-profile-practice h3 { max-width: 13ch; margin: 8px 0 18px; font-size: clamp(1.55rem, 2.2vw, 2.25rem); line-height: 1.05; }
#appRoot .lh-alchemy-profile-practice > p:not(.lh-kicker) { position: relative; max-width: 36ch; margin: 0; color: var(--lh-muted); font-size: .9rem; line-height: 1.68; }
#appRoot .lh-alchemy-profile-practice .lh-btn,
#appRoot .lh-alchemy-profile-practice .lh-text-link { position: relative; margin-top: 24px; }

#appRoot .lh-alchemy-profile-notes { padding: 0 clamp(30px, 5vw, 64px); border-top: 1px solid var(--lh-border); }
#appRoot .lh-alchemy-profile-notes footer { padding: 22px 0; color: var(--lh-muted); font-size: .76rem; line-height: 1.55; }
#appRoot .lh-alchemy-profile-notes .lh-alchemy-method { margin-top: 0; }

@keyframes lh-alchemy-chapter-reveal {
  from { transform: translateY(-8px); }
  to { transform: translateY(0); }
}

@keyframes lh-alchemy-copy-reveal {
  from { transform: translateY(8px); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #appRoot .lh-alchemy-chapter-body { animation: none; }
}

@media (max-width: 760px) {
  #appRoot .lh-alchemy-page { gap: 16px; }
  #appRoot .lh-alchemy-hero { min-height: 510px; }
  #appRoot .lh-alchemy-hero::before { background: linear-gradient(180deg, rgba(7, 6, 5, .62), rgba(7, 6, 5, .95) 52%, #070605 100%); }
  #appRoot .lh-alchemy-hero-visual img { object-position: 62% center; }
  #appRoot .lh-alchemy-hero-copy { width: 100%; align-items: end; padding: 210px 22px 28px; }
  #appRoot .lh-alchemy-hero .lh-alchemy-reading-header,
  #appRoot .lh-alchemy-hero .lh-alchemy-generation { grid-template-columns: 58px minmax(0, 1fr); align-items: start; }
  #appRoot .lh-alchemy-hero h2,
  #appRoot .lh-alchemy-hero h3 { font-size: clamp(2.2rem, 12vw, 3.7rem); }
  #appRoot .lh-alchemy-chapter > summary { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; min-height: 112px; padding: 20px 16px; }
  #appRoot .lh-alchemy-chapter-index { font-size: 2rem; }
  #appRoot .lh-alchemy-chapter-heading > strong { font-size: 1.45rem; }
  #appRoot .lh-alchemy-chapter-heading > em { display: none; }
  #appRoot .lh-alchemy-chapter-toggle { width: 32px; }
  #appRoot .lh-alchemy-chapter-body { gap: 30px; padding: 0 18px 30px; }
  #appRoot .lh-alchemy-signature { grid-template-columns: 1fr; gap: 0; }
  #appRoot .lh-alchemy-signature > span { grid-template-columns: minmax(82px, .7fr) 1fr; align-items: baseline; gap: 4px 14px; border-bottom: 1px solid var(--lh-border); }
  #appRoot .lh-alchemy-signature > span:last-child { border-bottom: 0; }
  #appRoot .lh-alchemy-signature small { grid-row: 1 / span 2; }
  #appRoot .lh-alchemy-signature strong { font-size: 1.8rem; }
  #appRoot .lh-alchemy-signature > i { display: none; }
  #appRoot .lh-alchemy-phase-track { grid-template-columns: 1fr 1fr; }
  #appRoot .lh-alchemy-phase-step { min-height: 150px; }
  #appRoot .lh-alchemy-profile-head { grid-template-columns: 1fr; padding: 26px 20px; }
  #appRoot .lh-alchemy-profile-head h2 { max-width: 9ch; padding-right: 52px; font-size: clamp(2rem, 10vw, 3rem); }
  #appRoot .lh-alchemy-profile-emblem { position: absolute; top: 30px; right: 18px; width: 74px; }
  #appRoot .lh-alchemy-profile-emblem > small { display: none; }
  #appRoot .lh-alchemy-profile-signature { grid-template-columns: 1fr; }
  #appRoot .lh-alchemy-profile-signature > div { grid-template-columns: 78px minmax(0, 1fr); align-items: baseline; gap: 4px 12px; padding: 15px 20px; border-left: 0; border-top: 1px solid var(--lh-border); }
  #appRoot .lh-alchemy-profile-signature > div:first-child { border-top: 0; }
  #appRoot .lh-alchemy-profile-signature dt { grid-row: 1 / span 2; }
  #appRoot .lh-alchemy-profile-signature dd { font-size: 1.55rem; }
  #appRoot .lh-alchemy-profile-layout { grid-template-columns: 1fr; }
  #appRoot .lh-alchemy-profile-narrative { padding: 30px 20px; }
  #appRoot .lh-alchemy-profile-practice { padding: 30px 20px; border-top: 1px solid var(--lh-border); border-left: 0; }
  #appRoot .lh-alchemy-profile-notes { padding: 0 20px; }
}

/* Illustrated laboratory: each passage has its own material and keeps a live label. */
#appRoot .lh-alchemy-phase-track { gap: clamp(9px, 1.3vw, 18px); }
#appRoot .lh-alchemy-phase-step {
  --phase-accent: #837f74;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 0 18px;
  border-color: color-mix(in srgb, var(--phase-accent) 58%, var(--lh-border));
  background: color-mix(in srgb, var(--phase-accent) 7%, var(--lh-surface));
}
#appRoot .lh-alchemy-phase-nigredo { --phase-accent: #777774; }
#appRoot .lh-alchemy-phase-albedo { --phase-accent: #b4c4c5; }
#appRoot .lh-alchemy-phase-citrinitas { --phase-accent: #d6b35b; }
#appRoot .lh-alchemy-phase-rubedo { --phase-accent: #ba7566; }
#appRoot .lh-alchemy-phase-step.is-active { border: 2px solid var(--lh-gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lh-gold) 10%, transparent); }
#appRoot .lh-alchemy-phase-step:hover,
#appRoot .lh-alchemy-phase-step:focus-visible { border-color: var(--lh-gold); background: color-mix(in srgb, var(--phase-accent) 12%, var(--lh-surface)); }
#appRoot .lh-alchemy-phase-index { padding: 18px 18px 10px; color: var(--lh-gold); font: 700 .72rem/1 var(--alchemy-reading); letter-spacing: .12em; }
#appRoot .lh-alchemy-phase-art { position: relative; display: block; width: calc(100% - 22px); margin: 0 11px 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--phase-accent) 60%, var(--lh-border)); background: #0c0e0f; }
#appRoot .lh-alchemy-phase-art img { display: block; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
#appRoot .lh-alchemy-phase-art .lh-alchemy-phase-symbol { position: absolute; right: 9px; bottom: 9px; display: grid; place-items: center; width: 34px; height: 34px; margin: 0; border: 1px solid color-mix(in srgb, var(--phase-accent) 75%, #fff); border-radius: 50%; color: #fff5db; background: rgb(8 10 11 / 82%); font-size: 1.15rem; }
#appRoot .lh-alchemy-phase-step > strong { margin: 0 18px 6px; font-size: clamp(1.35rem, 2.25vw, 1.85rem); line-height: 1.05; }
#appRoot .lh-alchemy-phase-step > small { margin: 0 18px; color: var(--lh-muted); font-size: .84rem; line-height: 1.4; }
@media (max-width: 520px) {
  #appRoot .lh-alchemy-phase-step { padding-bottom: 15px; }
  #appRoot .lh-alchemy-phase-index { padding: 12px 12px 7px; }
  #appRoot .lh-alchemy-phase-art { width: calc(100% - 14px); margin: 0 7px 12px; }
  #appRoot .lh-alchemy-phase-step > strong { margin: 0 10px 5px; font-size: 1.24rem; }
  #appRoot .lh-alchemy-phase-step > small { margin: 0 10px; font-size: .72rem; }
}
