/* Shanti Astro – astrochinoise.com */
:root {
  --night: #160c26;
  --night-2: #211336;
  --night-3: #2f1a4a;
  --plum: #4a1538;
  --wine: #7a1a4d;
  --magenta: #d6336c;
  --lotus: #f28aa6;
  --lotus-soft: #f9d2db;
  --coral: #f4a38f;
  --cream: #fdf6f1;
  --paper: #f8e9e4;
  --gold: #e8c376;
  --gold-soft: #f3dfae;
  --ink: #2a1530;
  --ink-soft: #5d4560;
  --line: rgba(74, 21, 56, .14);
  --line-night: rgba(243, 223, 174, .16);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --shadow: 0 20px 50px -24px rgba(42, 21, 48, .35);
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 1.0625rem/1.75 var(--sans); color: var(--ink);
  background: var(--cream); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--magenta); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
em.accent, .accent { font-style: italic; color: var(--magenta); }
.night .accent, .section-night .accent, .hero .accent, .page-hero .accent { color: var(--lotus); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--night); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--ink-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; font: 500 .78rem/1.2 var(--sans);
  letter-spacing: .18em; text-transform: uppercase; color: var(--wine); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.hero .eyebrow, .page-hero .eyebrow, .section-night .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.65; color: var(--ink-soft); max-width: 62ch; }
.hero .lead, .page-hero .lead, .section-night .lead { color: rgba(253, 246, 241, .78); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .95rem 1.6rem; border-radius: 999px;
  font: 500 .98rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lotus { background: linear-gradient(135deg, var(--magenta), #e85d8a 55%, var(--coral)); color: #fff; box-shadow: 0 12px 30px -12px rgba(214, 51, 108, .7); }
.btn-lotus:hover { color: #fff; box-shadow: 0 18px 38px -12px rgba(214, 51, 108, .85); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { color: var(--night); background: var(--gold-soft); }
.btn-ghost { border-color: rgba(253, 246, 241, .35); color: var(--cream); background: rgba(253, 246, 241, .04); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: var(--night); background: var(--cream); }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--wine); color: var(--wine); }
.btn-sm { padding: .65rem 1.15rem; font-size: .9rem; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--cream);
  transition: background .4s, box-shadow .4s, padding .4s; padding: 1.1rem 0;
}
.site-header.scrolled { background: rgba(0, 0, 0, .9); backdrop-filter: none; box-shadow: none; padding: .6rem 0; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--cream); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--cream); }
.brand-mark { width: 44px; height: 44px; color: var(--gold); flex: none; }
.brand-yy { transform-origin: 24px 24px; transition: transform 1.2s var(--ease); }
.brand:hover .brand-yy { transform: rotate(180deg); }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font: 700 1.05rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.brand-text small { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: .25rem; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: .5rem .8rem; color: rgba(253, 246, 241, .82); text-decoration: none;
  font-size: .93rem; border-radius: 999px; position: relative; transition: color .3s, background .3s;
}
.site-nav ul a:hover { color: #fff; background: rgba(253, 246, 241, .07); }
.site-nav ul a[aria-current="page"] { color: var(--gold); }
.site-nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: .15rem; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line-night); background: rgba(253, 246, 241, .05); cursor: pointer; z-index: 2;
  }
  .nav-toggle span:not(.sr) { width: 20px; height: 1.5px; background: var(--cream); transition: transform .35s var(--ease); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2rem;
    background: #101010;
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; text-align: center; gap: .4rem; }
  .site-nav ul a { font: 600 1.05rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .7rem 1rem; }
  .site-nav ul a[aria-current="page"]::after { display: none; }
  .nav-open { overflow: hidden; }
}

/* Starfield */
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Hero (home) */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; color: var(--cream);
  background:
    radial-gradient(ellipse 60% 50% at 78% 40%, rgba(214, 51, 108, .28), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(122, 26, 77, .45), transparent 70%),
    linear-gradient(180deg, #0f0820 0%, var(--night) 55%, var(--night-2) 100%);
  padding: 8rem 0 5rem;
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 70px; background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--cream); margin-bottom: 1.4rem; }
.hero h1 .accent { display: block; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-night); font-size: .9rem; color: rgba(253, 246, 241, .7); }
.hero-meta b { display: block; font: 600 1.6rem/1 var(--serif); color: var(--gold); margin-bottom: .3rem; }
.scroll-cue { position: absolute; z-index: 1; left: 50%; bottom: 5.5rem; width: 26px; height: 42px; margin-left: -13px; border: 1px solid var(--line-night); border-radius: 20px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 2.2s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Astrolabe wheel */
.wheel { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin-inline: auto; }
.wheel svg { width: 100%; height: 100%; overflow: visible; }
.wheel .ring-outer { animation: spin 240s linear infinite; transform-origin: 300px 300px; }
.wheel .ring-mid { animation: spin 160s linear infinite reverse; transform-origin: 300px 300px; }
.wheel .yy { animation: spin 60s linear infinite; transform-origin: 300px 300px; }
.wheel .glow { animation: breathe 7s ease-in-out infinite; transform-origin: 300px 300px; }
.wheel text { font-family: var(--serif); fill: var(--cream); }
.wheel .han { font-size: 30px; fill: var(--gold); }
.wheel .vi { font: 500 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; fill: rgba(253, 246, 241, .62); }
.wheel .orbit-dot { animation: spin 30s linear infinite; transform-origin: 300px 300px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.03); } }

/* Inner page hero */
.page-hero {
  position: relative; overflow: hidden; color: var(--cream); padding: 10rem 0 5rem;
  background:
    radial-gradient(ellipse 55% 70% at 85% 20%, rgba(214, 51, 108, .25), transparent 70%),
    linear-gradient(180deg, #0f0820, var(--night) 60%, var(--night-2));
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); color: var(--cream); max-width: 18ch; }
.page-hero.short { padding-bottom: 3.5rem; }
.page-hero .chips li { background: rgba(253, 246, 241, .06); color: var(--cream); border-color: var(--line-night); }
.page-hero:has(+ .section-night:not([hidden]))::after { background: var(--night-2); }
.crumbs { font-size: .85rem; color: rgba(253, 246, 241, .6); margin-bottom: 1.6rem; }
.crumbs a { color: rgba(253, 246, 241, .8); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 .5em; opacity: .5; }
/* Sections */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section-paper { background: linear-gradient(180deg, var(--cream), var(--paper)); }
.section-night { background: linear-gradient(180deg, var(--night-2), var(--night)); color: var(--cream); overflow: hidden; }
.section-night h2, .section-night h3 { color: var(--cream); }
.section-night a:not(.btn) { color: var(--lotus); }
.section-head { max-width: 760px; margin-bottom: 3.2rem; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 900px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 7rem; }
  .wheel { width: min(88%, 420px); order: -1; }
}
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

/* Portrait arch */
.arch { position: relative; max-width: 460px; margin-inline: auto; }
.arch img { border-radius: 999px 999px var(--radius) var(--radius); aspect-ratio: 4/5; object-fit: cover; object-position: 22% center; width: 100%; box-shadow: var(--shadow); }
.arch::before { content: ""; position: absolute; inset: -14px -14px 24px 24px; border: 1px solid var(--lotus); border-radius: 999px 999px var(--radius) var(--radius); z-index: -1; }
.arch .badge {
  position: absolute; left: -1.5rem; bottom: 2rem; background: var(--cream); padding: .9rem 1.2rem; border-radius: 16px;
  box-shadow: var(--shadow); font-size: .85rem; line-height: 1.35; display: flex; gap: .7rem; align-items: center;
}
.arch .badge b { font: 600 1.25rem/1 var(--serif); color: var(--wine); display: block; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(214, 51, 108, .3); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 1.2rem; background: linear-gradient(135deg, var(--lotus-soft), #fff); color: var(--wine); font: 600 1.6rem/1 var(--serif); }
.section-night .card { background: rgba(253, 246, 241, .04); border-color: var(--line-night); color: rgba(253, 246, 241, .85); }
.section-night .card:hover { border-color: rgba(232, 195, 118, .45); }
.section-night .card-icon { background: rgba(232, 195, 118, .12); color: var(--gold); }
.stat b { display: block; font: 500 clamp(2.8rem, 5vw, 3.8rem)/1 var(--serif); color: var(--magenta); margin-bottom: .4rem; }
.section-night .stat b { color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.chips li { padding: .45rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }

/* Definition / answer block */
.answer {
  border-left: 3px solid var(--magenta); background: #fff; padding: 1.6rem 1.8rem; border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow); font-size: 1.1rem; margin: 2rem 0;
}
.answer strong:first-child { font-family: var(--serif); font-size: 1.3rem; color: var(--wine); display: block; margin-bottom: .3rem; }

/* Quote */
.quote { position: relative; font: italic 500 clamp(1.6rem, 3.2vw, 2.4rem)/1.35 var(--serif); max-width: 38ch; margin: 0 auto; text-align: center; }
.quote::before { content: "“"; display: block; font-size: 5rem; line-height: .6; color: var(--gold); margin-bottom: .6rem; }
.quote cite { display: block; margin-top: 1.4rem; font: 500 .85rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--wine); font-style: normal; }
.section-night .quote cite { color: var(--gold); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font: 500 3rem/1 var(--serif); color: var(--lotus); margin-bottom: 1rem; }
.steps h3 { font-size: 1.45rem; }
.section-night .steps li { background: rgba(253, 246, 241, .04); border-color: var(--line-night); }
.section-night .steps li::before { color: var(--gold); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .95rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 .78rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--wine); background: var(--paper); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 500; }
.vi { font-family: var(--serif); font-size: 1.12em; font-weight: 600; color: var(--wine); }

/* Star grid */
.star-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.star-card { padding: 1.4rem 1.5rem; border-radius: 18px; background: rgba(253, 246, 241, .04); border: 1px solid var(--line-night); transition: border-color .3s, transform .4s var(--ease); }
.star-card:hover { border-color: rgba(232, 195, 118, .5); transform: translateY(-3px); }
.star-card .vi { color: var(--gold); display: block; font-size: 1.45rem; }
.star-card .fr { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lotus); }
.star-card p { font-size: .92rem; color: rgba(253, 246, 241, .74); margin: .7rem 0 0; }

/* FAQ */
.faq { display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 1.5rem; transition: border-color .3s; }
.faq details[open] { border-color: rgba(214, 51, 108, .35); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 2rem 1.25rem 0; position: relative; font: 600 1.25rem/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 300 1.6rem/1 var(--sans); color: var(--magenta); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding-bottom: 1.3rem; color: var(--ink-soft); }
.faq details > div p:last-child { margin: 0; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 2rem; border-left: 1px solid var(--lotus); display: grid; gap: 2.2rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-2rem - 7px); top: .45rem; width: 13px; height: 13px; border-radius: 50%; background: var(--cream); border: 2px solid var(--magenta); }
.timeline .when { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--magenta); }
.timeline h3 { margin: .35rem 0 .3rem; font-size: 1.4rem; }
.timeline p { margin: 0; color: var(--ink-soft); }

/* Prose (articles) */
.prose { font-size: 1.1rem; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose img, .prose figure { border-radius: var(--radius); }
.prose figure { margin: 2.4rem 0; }
.prose figcaption { font-size: .88rem; color: var(--ink-soft); text-align: center; margin-top: .7rem; }
.prose blockquote { margin: 2rem 0; padding: 1.2rem 1.6rem; border-left: 3px solid var(--gold); background: #fff; border-radius: 0 16px 16px 0; font: italic 500 1.35rem/1.5 var(--serif); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--magenta); }
.drop::first-letter { float: left; font: 500 4.6rem/.8 var(--serif); color: var(--magenta); margin: .4rem .6rem 0 0; }
.byline { display: flex; align-items: center; gap: .9rem; margin-top: 2rem; font-size: .92rem; color: rgba(253, 246, 241, .75); }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.byline b { color: var(--cream); font-weight: 500; }

.author-box { display: grid; grid-template-columns: 96px 1fr; gap: 1.5rem; align-items: center; padding: 1.8rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); margin-top: 3.5rem; }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.author-box p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.author-box strong { font: 600 1.3rem/1.2 var(--serif); color: var(--ink); display: block; margin-bottom: .3rem; }
@media (max-width: 560px) { .author-box { grid-template-columns: 1fr; } }

/* Post cards */
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--ink); }
.post-card .thumb { overflow: hidden; aspect-ratio: 16/9; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .body { padding: 1.6rem 1.8rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.post-card time { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--magenta); }
.post-card h3 { margin: .5rem 0 .6rem; }
.post-card p { color: var(--ink-soft); font-size: .96rem; }
.post-card .more { margin-top: auto; font-weight: 500; color: var(--wine); }

/* YouTube (click to load) */
.yt { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 30% 30%, var(--night-3), var(--night)); margin: 2rem 0; }
.yt button { position: absolute; inset: 0; width: 100%; border: 0; background: none; color: var(--cream); cursor: pointer; display: grid; place-content: center; gap: 1rem; text-align: center; font: 500 1rem/1.4 var(--sans); padding: 1.5rem; }
.yt button::before { content: ""; width: 74px; height: 74px; margin: 0 auto; border-radius: 50%; background: var(--magenta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='white'/%3E%3C/svg%3E") center/34px no-repeat; box-shadow: 0 0 0 10px rgba(214, 51, 108, .2); transition: transform .3s var(--ease); }
.yt button:hover::before { transform: scale(1.08); }
.yt button small { color: rgba(253, 246, 241, .6); font-size: .8rem; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(2.5rem, 6vw, 5rem); color: var(--cream); text-align: center;
  background: radial-gradient(ellipse at 20% 0%, rgba(214, 51, 108, .45), transparent 60%), radial-gradient(ellipse at 90% 100%, rgba(232, 195, 118, .2), transparent 55%), var(--night); }
.cta-band h2 { color: var(--cream); }
.cta-band .eyebrow { color: var(--gold); }
.cta-band .accent { color: var(--lotus); }
.cta-band .lead { margin-inline: auto; color: rgba(253, 246, 241, .78); }
.cta-band .actions { justify-content: center; }
.cta-band > * { position: relative; }
.cta-band .starfield { position: absolute; }

/* Forms */
.form-card { background: rgba(253, 246, 241, .05); border: 1px solid var(--line-night); border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.6rem); backdrop-filter: blur(10px); }
.form-card.light { background: #fff; border-color: var(--line); backdrop-filter: none; box-shadow: var(--shadow); }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.2rem; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
label, .label { display: block; font-size: .86rem; font-weight: 500; margin-bottom: .45rem; letter-spacing: .02em; }
.hint { display: block; font-size: .8rem; opacity: .7; margin-top: .35rem; font-weight: 400; }
input, select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); padding: .9rem 1rem; border-radius: 14px; color: inherit;
  border: 1px solid var(--line); background: var(--cream); transition: border-color .25s, box-shadow .25s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(214, 51, 108, .15); }
.form-card:not(.light) input, .form-card:not(.light) select { background: rgba(253, 246, 241, .07); border-color: var(--line-night); color: var(--cream); color-scheme: dark; }
.form-card:not(.light) select option { background: var(--night); }
.seg { display: flex; gap: .5rem; }
.seg label { flex: 1; margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: .85rem; border-radius: 14px; border: 1px solid var(--line-night); cursor: pointer; transition: all .25s; }
.form-card.light .seg span { border-color: var(--line); }
.seg input:checked + span { background: var(--lotus); border-color: var(--lotus); color: var(--night); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.privacy { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; opacity: .75; margin: 1.2rem 0 0; }
.form-error { color: #ffb3c4; font-size: .9rem; margin-top: 1rem; min-height: 1.4em; }
.form-card.light .form-error { color: var(--magenta); }

/* Contact tiles */
.contact-tile { display: flex; gap: 1.1rem; align-items: center; padding: 1.4rem 1.6rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .4s var(--ease), box-shadow .4s; }
.contact-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.contact-tile .ico { width: 50px; height: 50px; flex: none; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, var(--magenta), var(--coral)); color: #fff; }
.contact-tile small { display: block; color: var(--ink-soft); font-size: .82rem; }
.contact-tile b { font-weight: 500; word-break: break-word; }

/* Ally cards */
.ally { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding: 2rem; border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.ally img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.ally .role { color: var(--magenta); font-size: .9rem; font-weight: 500; margin-bottom: 1rem; }
.ally .avis { margin-top: 1.4rem; padding: 1.2rem 1.4rem; border-radius: 16px; background: var(--paper); font-style: italic; }
.ally .avis b { font-style: normal; display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); margin-bottom: .4rem; }
.ally .initials { aspect-ratio: 1; border-radius: 20px; display: grid; place-items: center; font: 500 3.4rem/1 var(--serif); color: var(--gold); background: radial-gradient(circle at 30% 25%, var(--night-3), var(--night)); }
.ally h2 { font-size: 1.9rem; margin-bottom: .3rem; }
@media (max-width: 760px) { .ally { grid-template-columns: 1fr; } .ally img, .ally .initials { max-width: 160px; } }
.sources { margin-top: 3rem; padding: 1.4rem 1.6rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-size: .92rem; }
.sources ul { margin: .6rem 0 0; padding-left: 1.1rem; }

/* Ethic list */
.ethic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.ethic .card { padding: 1.8rem; }
@media (max-width: 760px) { .ethic { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: #101010; color: rgba(253, 246, 241, .78); padding: 5rem 0 2rem; font-size: .95rem; }
.lien-masque { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-footer a { color: rgba(253, 246, 241, .85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .wrap { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-night); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-title { font: 600 2rem/1 var(--serif); color: var(--cream); }
.footer-motto { font: italic 500 1.3rem/1.4 var(--serif); color: var(--gold); }
.footer-h { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.site-footer .muted { color: rgba(253, 246, 241, .6); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; font-size: .84rem; color: rgba(253, 246, 241, .55); }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1.4s; }

/* Constellation divider */
.constellation { display: block; width: 180px; height: 40px; margin: 0 auto 1.5rem; color: var(--gold); }
.constellation path { stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 2.4s var(--ease); }
.constellation.in path, .no-js .constellation path { stroke-dashoffset: 0; }
.constellation circle { opacity: 0; transition: opacity .6s; }
.constellation.in circle { opacity: 1; }
.constellation.in circle:nth-of-type(2) { transition-delay: .4s; }
.constellation.in circle:nth-of-type(3) { transition-delay: .8s; }
.constellation.in circle:nth-of-type(4) { transition-delay: 1.2s; }
.constellation.in circle:nth-of-type(5) { transition-delay: 1.6s; }

/* ====== Calculateurs ====== */
.tool-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.tool-tabs a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line-night); color: rgba(253, 246, 241, .8); text-decoration: none; font-size: .88rem; background: rgba(253, 246, 241, .04); transition: all .3s; }
.tool-tabs a:hover { border-color: var(--gold); color: #fff; }
.tool-tabs a[aria-current="page"] { background: var(--gold); border-color: var(--gold); color: var(--night); font-weight: 600; }
.tool-tabs span { font-family: var(--serif); font-size: 1.1rem; line-height: 1; }
.histo { position: relative; margin: 2rem 0 0; padding: 1.4rem 1.6rem 1.2rem; border-radius: 22px; background: linear-gradient(140deg, rgba(232, 195, 118, .12), rgba(214, 51, 108, .06)); border: 1px solid rgba(232, 195, 118, .28); color: rgba(253, 246, 241, .82); font-size: .95rem; line-height: 1.6; overflow: hidden; }
.histo::after { content: "史"; position: absolute; right: -6px; bottom: -34px; font: 600 8rem/1 var(--serif); color: rgba(232, 195, 118, .07); pointer-events: none; }
.histo p { margin: 0 0 .7rem; position: relative; z-index: 1; }
.histo strong { color: var(--gold-soft); font-weight: 600; }
.histo-title { font: 600 .74rem/1 var(--sans) !important; letter-spacing: .18em; text-transform: uppercase; color: var(--lotus); margin-bottom: .9rem !important; }

.tool-card { position: relative; display: flex; flex-direction: column; padding: 2.2rem; border-radius: 28px; text-decoration: none; color: var(--cream); overflow: hidden;
  background: radial-gradient(circle at 100% 0%, rgba(214, 51, 108, .35), transparent 55%), var(--night-2); border: 1px solid var(--line-night); transition: transform .5s var(--ease), border-color .3s, box-shadow .5s; }
.tool-card:hover { transform: translateY(-6px); border-color: rgba(232, 195, 118, .55); color: var(--cream); box-shadow: 0 30px 60px -30px rgba(214, 51, 108, .6); }
.tool-card .glyph { position: absolute; right: -10px; top: -30px; font: 600 9rem/1 var(--serif); color: rgba(232, 195, 118, .08); transition: transform 1s var(--ease); }
.tool-card:hover .glyph { transform: rotate(-8deg) scale(1.08); }
.tool-card .tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.tool-card h3 { color: var(--cream); font-size: 2rem; margin: .6rem 0 .2rem; }
.tool-card .alias { color: var(--lotus); font-size: .9rem; margin-bottom: 1.2rem; }
.tool-card p { color: rgba(253, 246, 241, .75); font-size: .95rem; }
.tool-card ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .4rem; font-size: .9rem; color: rgba(253, 246, 241, .85); }
.tool-card li::before { content: "✦ "; color: var(--gold); }
.tool-card .go { margin-top: auto; font-weight: 500; color: var(--gold); }

/* Ba Zi */
.pillar-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pillar { border-radius: 22px; padding: 1.4rem 1rem; text-align: center; background: rgba(253, 246, 241, .04); border: 1px solid var(--line-night); }
.pillar.is-day { border-color: var(--gold); background: radial-gradient(circle at 50% 0%, rgba(232, 195, 118, .18), transparent 70%), rgba(253, 246, 241, .04); }
.pillar small { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(253, 246, 241, .55); margin-bottom: .8rem; }
.pillar .han { display: block; font-size: 2.6rem; line-height: 1.1; }
.pillar .vi { display: block; color: var(--cream); font-size: 1.15rem; margin: .2rem 0 .1rem; }
.pillar .el { font-size: .8rem; }
.pillar hr { border: 0; border-top: 1px dashed var(--line-night); margin: .9rem 0; }
.el-0 { color: #8fd694; } .el-1 { color: #ff8a80; } .el-2 { color: #e8c376; } .el-3 { color: #d7dde8; } .el-4 { color: #7fb8ff; }
.bg-el-0 { background: #8fd694; } .bg-el-1 { background: #ff8a80; } .bg-el-2 { background: #e8c376; } .bg-el-3 { background: #d7dde8; } .bg-el-4 { background: #7fb8ff; }
.bars { display: grid; gap: .8rem; }
.bar { display: grid; grid-template-columns: 90px 1fr 40px; gap: .8rem; align-items: center; font-size: .9rem; }
.bar .track { height: 12px; border-radius: 99px; background: rgba(253, 246, 241, .08); overflow: hidden; }
.bar .fill { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1.2s var(--ease); }
.wuxing { width: 100%; max-width: 380px; margin: 0 auto; display: block; }
.wuxing text { font-family: var(--sans); font-size: 13px; fill: var(--cream); text-anchor: middle; }
.wuxing .node { transition: r .8s var(--ease); }
.dm-card { padding: 2rem; border-radius: 26px; background: linear-gradient(150deg, rgba(122, 26, 77, .55), rgba(22, 12, 38, .2)); border: 1px solid rgba(232, 195, 118, .35); }
.dm-card .big { font: 500 clamp(2.2rem, 4vw, 3rem)/1.1 var(--serif); color: var(--cream); }
@media (max-width: 760px) { .pillar-row { grid-template-columns: repeat(2, 1fr); } }

/* Calendrier lunaire */
.today-card { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; }
.moon { width: 120px; height: 120px; border-radius: 50%; position: relative; background: #2a1d3d; box-shadow: 0 0 60px rgba(243, 223, 174, .25); overflow: hidden; }
.moon i { position: absolute; inset: 0; border-radius: 50%; }
.lunar-big { font: 500 clamp(2rem, 4vw, 2.8rem)/1.1 var(--serif); color: var(--cream); }
.countdown { display: inline-flex; gap: .6rem; align-items: baseline; padding: .8rem 1.2rem; border-radius: 16px; background: rgba(232, 195, 118, .1); border: 1px solid rgba(232, 195, 118, .3); }
.countdown b { font: 600 2.2rem/1 var(--serif); color: var(--gold); }
.tabs { display: inline-flex; padding: .3rem; border-radius: 999px; background: rgba(253, 246, 241, .06); border: 1px solid var(--line-night); margin-bottom: 1.5rem; }
.tabs button { border: 0; background: none; color: rgba(253, 246, 241, .75); font: 500 .9rem var(--sans); padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--lotus); color: var(--night); }
.conv-result { margin-top: 1.4rem; padding: 1.4rem; border-radius: 18px; background: rgba(253, 246, 241, .05); border: 1px solid var(--line-night); }
.conv-result:empty { display: none; }
.conv-result .big { font: 500 1.8rem/1.2 var(--serif); color: var(--cream); display: block; margin-bottom: .4rem; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: 1rem; }
.cal-head h3 { margin: 0; color: var(--cream); text-transform: capitalize; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-night); background: rgba(253, 246, 241, .05); color: var(--cream); cursor: pointer; font-size: 1.1rem; }
.cal-nav:hover { border-color: var(--gold); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(253, 246, 241, .5); padding: .4rem 0; }
.cal .c { min-height: 74px; border-radius: 12px; padding: .45rem .55rem; background: rgba(253, 246, 241, .035); position: relative; font-size: .78rem; color: rgba(253, 246, 241, .6); }
.cal .c b { display: block; font: 600 1.25rem/1 var(--serif); color: var(--cream); margin-bottom: .3rem; }
.cal .c.out { opacity: .3; }
.cal .c.today { outline: 2px solid var(--gold); }
.cal .c.m1 { background: rgba(214, 51, 108, .18); }
.cal .c.full { background: rgba(232, 195, 118, .14); }
.cal .c.tet { background: linear-gradient(135deg, rgba(214, 51, 108, .55), rgba(232, 195, 118, .35)); }
.cal .c .ico { position: absolute; right: .45rem; top: .4rem; font-size: .9rem; }
@media (max-width: 640px) { .cal .c { min-height: 56px; padding: .3rem; font-size: .66rem; } .cal .c b { font-size: 1rem; } .today-card { grid-template-columns: 1fr; } }

/* ====== Carte du ciel Tử Vi ====== */
.chart-scroll { overflow-x: auto; padding-bottom: .5rem; margin: 0 -1.25rem; padding-inline: 1.25rem; }
.tuvi {
  display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); grid-template-rows: repeat(4, minmax(190px, auto));
  gap: 6px; min-width: 760px; padding: 6px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(232, 195, 118, .5), rgba(214, 51, 108, .4), rgba(232, 195, 118, .5));
}
.palace {
  position: relative; background: var(--night); color: var(--cream); border-radius: 14px; padding: .8rem .85rem 2.2rem;
  font-size: .8rem; line-height: 1.35; cursor: pointer; text-align: left; border: 1px solid transparent;
  transition: background .3s, border-color .3s, transform .3s var(--ease); font-family: var(--sans);
}
.palace:hover, .palace:focus-visible { background: var(--night-3); border-color: rgba(232, 195, 118, .5); }
.palace.is-menh { background: linear-gradient(160deg, #4a1538, var(--night) 75%); }
.palace.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.palace .p-name { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; margin-bottom: .45rem; }
.palace .p-name b { font: 600 1.05rem/1.1 var(--serif); color: var(--gold); }
.palace .p-name i { font-style: normal; font-size: .68rem; color: var(--lotus); letter-spacing: .06em; text-transform: uppercase; }
.palace .p-fr { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(253, 246, 241, .55); margin-top: -.25rem; margin-bottom: .5rem; }
.palace .major { display: block; font: 600 1.02rem/1.25 var(--serif); color: #fff; }
.palace .major small { font: 500 .66rem var(--sans); color: rgba(253, 246, 241, .55); margin-left: .25rem; }
.palace .mut { display: inline-block; font: 600 .62rem/1 var(--sans); padding: .18rem .35rem; border-radius: 5px; margin-left: .3rem; vertical-align: 2px; }
.mut-loc { background: #2f9e6e; color: #fff; } .mut-quyen { background: #d6336c; color: #fff; } .mut-khoa { background: #3b7dd8; color: #fff; } .mut-ky { background: #1a1a1a; color: #ffb3c4; border: 1px solid #ffb3c4; }
.palace .minor { margin-top: .35rem; display: flex; flex-wrap: wrap; gap: .1rem .5rem; }
.palace .minor span { font-size: .72rem; }
.palace .soft { color: #9fe0bf; } .palace .tough { color: #ff9fb6; } .palace .neutral { color: rgba(253, 246, 241, .7); }
.palace .adj { margin-top: .3rem; font-size: .66rem; color: rgba(253, 246, 241, .45); }
.palace .p-foot { position: absolute; left: .85rem; right: .85rem; bottom: .6rem; display: flex; justify-content: space-between; font-size: .68rem; color: rgba(253, 246, 241, .55); }
.palace .p-foot .branch { color: var(--cream); font-weight: 500; }
.than { display: inline-block; background: var(--lotus); color: var(--night); font-size: .6rem; font-weight: 600; padding: .1rem .4rem; border-radius: 999px; margin-left: .3rem; letter-spacing: .04em; }
.chart-center {
  grid-column: 2 / 4; grid-row: 2 / 4; position: relative; overflow: hidden; border-radius: 14px; padding: 1.4rem 1.5rem;
  background: radial-gradient(circle at 50% 0%, rgba(214, 51, 108, .35), transparent 60%), var(--night-2); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
}
.chart-center h3 { color: var(--cream); font-size: 1.8rem; margin-bottom: .2rem; }
.chart-center .sub { color: var(--gold); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.chart-center dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; font-size: .86rem; }
.chart-center dt { color: rgba(253, 246, 241, .55); }
.chart-center dd { margin: 0; }
.chart-center .yy-bg { position: absolute; right: -60px; bottom: -60px; width: 220px; opacity: .08; animation: spin 80s linear infinite; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: 1rem; text-align: center; }
.pillars div { background: rgba(253, 246, 241, .06); border-radius: 10px; padding: .45rem .2rem; font-size: .7rem; color: rgba(253, 246, 241, .6); }
.pillars b { display: block; font: 600 1rem/1.2 var(--serif); color: var(--cream); }
.chart-legend { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .82rem; margin-top: 1.2rem; color: rgba(253, 246, 241, .7); }
.chart-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.chart-tools { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }

.summary-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.summary-cards .card { padding: 1.4rem; }
.summary-cards small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.summary-cards b { font: 500 1.6rem/1.15 var(--serif); color: var(--cream); display: block; }
.summary-cards span { font-size: .85rem; color: rgba(253, 246, 241, .65); }
@media (max-width: 900px) { .summary-cards { grid-template-columns: repeat(2, 1fr); } }

.reading { display: grid; gap: 1rem; }
.reading details { border-radius: 18px; border: 1px solid var(--line-night); background: rgba(253, 246, 241, .03); padding: 0 1.4rem; }
.reading details[open] { border-color: rgba(232, 195, 118, .45); background: rgba(253, 246, 241, .05); }
.reading summary { cursor: pointer; list-style: none; padding: 1.1rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.reading summary::-webkit-details-marker { display: none; }
.reading summary b { font: 600 1.35rem/1.2 var(--serif); color: var(--gold); }
.reading summary span { font-size: .85rem; color: rgba(253, 246, 241, .6); text-align: right; }
.reading .r-body { padding-bottom: 1.3rem; color: rgba(253, 246, 241, .82); font-size: .97rem; }
.reading .r-star { margin-top: .9rem; padding-left: 1rem; border-left: 2px solid var(--lotus); }
.reading .r-star h4 { color: var(--cream); margin: 0 0 .25rem; font-size: 1.2rem; }
.reading .r-star p { margin: 0 0 .4rem; }
.reading .light { color: #9fe0bf; } .reading .shadow { color: #ffb3c4; }
.notice { padding: 1.1rem 1.4rem; border-radius: 16px; background: rgba(232, 195, 118, .1); border: 1px solid rgba(232, 195, 118, .35); color: var(--gold-soft); font-size: .92rem; }
.notice p:last-child { margin: 0; }
.results[hidden] { display: none; }
.results.in .palace { animation: pop .7s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }

/* ====== Atelier : profil partagé, cycles, outils croisés ====== */
.tool-intro { align-items: start; gap: clamp(2rem, 5vw, 4rem); }
.birth-form .form-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; font: 600 1.35rem/1.2 var(--serif); color: var(--gold); margin: 0 0 1.3rem; }
.birth-form .form-title span:last-child { font: 400 .78rem var(--sans); color: rgba(253, 246, 241, .55); letter-spacing: .04em; }
.birth-form .actions { margin-top: 1.6rem; }
.hint-inline { font-size: .78rem; color: rgba(253, 246, 241, .5); font-weight: 400; }
.place { position: relative; }
.place-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 1.6rem); margin: 0; padding: .35rem; list-style: none; border-radius: 16px; background: var(--night-2); border: 1px solid rgba(232, 195, 118, .4); box-shadow: 0 24px 50px -20px #000; max-height: 280px; overflow: auto; animation: drop .25s var(--ease); }
.place-list li { padding: .6rem .8rem; border-radius: 10px; cursor: pointer; color: var(--cream); font-size: .92rem; line-height: 1.3; }
.place-list li small { display: block; color: rgba(253, 246, 241, .55); font-size: .76rem; }
.place-list li:hover, .place-list li[aria-selected="true"] { background: rgba(214, 51, 108, .28); }
.place-list .empty { cursor: default; color: rgba(253, 246, 241, .6); }
#l-hint.ok { color: #9fe0bf; }
.advanced { margin-top: .2rem; border-top: 1px dashed var(--line-night); padding-top: .9rem; }
.advanced summary { cursor: pointer; color: var(--gold-soft); font-size: .9rem; list-style: none; }
.advanced summary::before { content: "⚙ "; }
.advanced[open] summary { margin-bottom: .9rem; }
.advanced .seg { margin: .4rem 0 .5rem; }
.advanced .seg span { padding: .6rem; font-size: .86rem; }
.advanced .hint { margin-bottom: 1rem; }
.mini { font-size: .8rem; color: rgba(253, 246, 241, .6); margin: .6rem 0 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--lotus); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.link-btn:hover { color: #fff; }
.chart-notes { margin-bottom: 1.6rem; display: grid; gap: .5rem; }
.chart-notes:empty { display: none; }
.chart-notes p { margin: 0; }
.section-tight { padding-top: 0; }
.faq-title { margin-top: 3rem; }
.reading-wrap { align-items: start; margin-top: 4.5rem; gap: 3rem; }
.palace .p-flags { display: flex; flex-wrap: wrap; gap: .25rem; position: absolute; top: -10px; right: 8px; }
.flag { font: 600 .58rem/1 var(--sans); font-style: normal; letter-spacing: .06em; text-transform: uppercase; padding: .22rem .45rem; border-radius: 999px; animation: pop .5s var(--ease) both; }
.flag-dec { background: var(--gold); color: var(--night); }
.flag-year { background: var(--lotus); color: var(--night); }
.flag-age { background: #7fb2f0; color: var(--night); }
.palace.is-decade { border-color: rgba(232, 195, 118, .55); }
.palace.is-year { box-shadow: 0 0 0 1px var(--lotus) inset, 0 0 26px -6px rgba(242, 138, 166, .7); }
.palace .p-cycle { display: block; margin-top: .35rem; font-size: .64rem; color: rgba(232, 195, 118, .65); }
.palace .major.is-empty { opacity: .45; }
.periods-box { margin-top: 2.2rem; padding: 1.6rem; border-radius: 24px; background: rgba(253, 246, 241, .04); border: 1px solid var(--line-night); }
.periods-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.periods-head h3 { margin: 0; color: var(--cream); font-size: 1.6rem; }
.year-pick { display: inline-flex; align-items: center; gap: .6rem; margin: 0; color: rgba(253, 246, 241, .7); font-size: .9rem; }
.year-pick input { width: 7.5rem; padding: .55rem .8rem; border-radius: 12px; border: 1px solid rgba(232, 195, 118, .45); background: rgba(253, 246, 241, .07); color: var(--cream); font: 600 1.05rem var(--sans); color-scheme: dark; }
.periods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.period { padding: 1.2rem; border-radius: 18px; background: rgba(22, 12, 38, .55); border: 1px solid var(--line-night); animation: rise .6s var(--ease) both; }
.period:nth-child(2) { animation-delay: .08s; } .period:nth-child(3) { animation-delay: .16s; }
.period small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .35rem; }
.period b { display: block; font: 500 1.3rem/1.2 var(--serif); color: var(--cream); }
.period > span { font-size: .84rem; color: rgba(253, 246, 241, .6); }
.muts { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .3rem; font-size: .84rem; color: rgba(253, 246, 241, .85); }
.muts .mut { margin: 0 .35rem 0 0; display: inline-block; font: 600 .62rem/1 var(--sans); padding: .2rem .38rem; border-radius: 5px; }
.period .muts small { display: inline; margin: 0; font-size: .78rem; letter-spacing: 0; text-transform: none; color: rgba(253, 246, 241, .5); }
.cross-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-top: 1.6rem; }
.cross-tools p { margin: 0; color: rgba(253, 246, 241, .6); font-size: .9rem; }
.cross { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; border-radius: 16px; text-decoration: none; color: var(--cream); background: rgba(232, 195, 118, .08); border: 1px solid rgba(232, 195, 118, .3); font-size: .9rem; transition: transform .35s var(--ease), border-color .3s, background .3s; }
.cross span { font: 600 1.4rem/1 var(--serif); color: var(--gold); transition: transform .5s var(--ease); }
.cross:hover { color: #fff; border-color: var(--gold); background: rgba(232, 195, 118, .16); transform: translateY(-2px); }
.cross:hover span { transform: rotate(-12deg) scale(1.15); }
.tool-card .tool-img { width: calc(100% + 4.4rem); max-width: none; margin: -2.2rem -2.2rem 1.6rem; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.4s var(--ease), filter .6s; filter: saturate(.9); }
.tool-card:hover .tool-img { transform: scale(1.06); filter: saturate(1.1); }
.tool-card .glyph { z-index: 1; top: auto; bottom: -40px; }
.section-night .steps li { background: rgba(253, 246, 241, .05); border-color: var(--line-night); color: rgba(253, 246, 241, .8); }
.section-night .steps h3 { color: var(--cream); }
.section-night .steps li::before { color: var(--gold); }
.link-steps { grid-template-columns: repeat(4, 1fr); }
.link-steps li { transition: transform .5s var(--ease), border-color .3s; }
.link-steps li:hover { transform: translateY(-6px); border-color: rgba(232, 195, 118, .5); }
@media (max-width: 980px) { .link-steps, .periods { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .link-steps, .periods { grid-template-columns: 1fr; } }

/* Ba Zi : compléments */
.card-night { padding: clamp(1.4rem, 3vw, 2rem); border-radius: 26px; background: rgba(253, 246, 241, .04); border: 1px solid var(--line-night); color: rgba(253, 246, 241, .85); }
.card-night h3, .card-night .h3 { color: var(--cream); font-size: 1.6rem; }
.bz-grid { margin-top: 2rem; gap: 1.5rem; align-items: stretch; }
.pillar { perspective: 800px; }
.results.in .pillar { animation: flip .9s var(--ease) both; animation-delay: calc(var(--i) * .14s); }
.pillar .god { display: block; min-height: 2.4em; font-size: .72rem; color: var(--lotus); margin: -.3rem 0 .6rem; line-height: 1.3; }
.pillar.is-day .god { color: var(--gold); font-weight: 600; }
.pillar .han { font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; text-shadow: 0 0 24px currentColor; }
.hidden-stems { list-style: none; padding: .6rem 0 0; margin: .7rem 0 0; border-top: 1px dashed var(--line-night); display: grid; gap: .15rem; font-size: .8rem; }
.pillar .hidden-stems small { display: inline; margin: 0; letter-spacing: 0; text-transform: none; color: rgba(253, 246, 241, .5); font-size: .7rem; }
.pillar .meta { display: block; font-size: .72rem; color: rgba(253, 246, 241, .55); margin-top: .35rem; }
.dm-card small.eyebrow { display: block; margin-bottom: .6rem; }
.dm-card .big .el-0, .dm-card .big .el-1, .dm-card .big .el-2, .dm-card .big .el-3, .dm-card .big .el-4 { font-family: "Noto Serif SC", "SimSun", serif; display: inline-block; animation: float 5s ease-in-out infinite; }
.dm-name { font: 500 1.5rem/1.2 var(--serif); color: var(--gold); margin: .2rem 0 .8rem; }
.dm-card p { color: rgba(253, 246, 241, .82); }
.wuxing { margin-top: 1.2rem; }
.wuxing circle[stroke] { animation: breathe 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.luck { display: grid; grid-template-columns: repeat(8, 1fr); gap: .5rem; margin-top: .8rem; }
.luck-cell { text-align: center; padding: .9rem .3rem; border-radius: 16px; background: rgba(22, 12, 38, .55); border: 1px solid var(--line-night); animation: rise .6s var(--ease) both; }
.luck-cell:nth-child(2) { animation-delay: .05s; } .luck-cell:nth-child(3) { animation-delay: .1s; } .luck-cell:nth-child(4) { animation-delay: .15s; }
.luck-cell:nth-child(5) { animation-delay: .2s; } .luck-cell:nth-child(6) { animation-delay: .25s; } .luck-cell:nth-child(7) { animation-delay: .3s; } .luck-cell:nth-child(8) { animation-delay: .35s; }
.luck-cell b { display: flex; flex-direction: column; font: 400 1.7rem/1.15 "Noto Serif SC", "SimSun", serif; margin: .3rem 0; }
.luck-cell > span { font-size: .78rem; color: var(--cream); }
.section-night .muted, .card-night .muted { color: rgba(253, 246, 241, .62); }
.luck-cell small { display: block; font-size: .68rem; color: rgba(253, 246, 241, .55); }
.luck-cell.is-now { border-color: var(--gold); background: radial-gradient(circle at 50% 0%, rgba(232, 195, 118, .25), transparent 70%), rgba(22, 12, 38, .55); box-shadow: 0 0 30px -8px rgba(232, 195, 118, .6); }
.year-line { margin: 1.2rem 0 0; color: rgba(253, 246, 241, .8); font-size: .95rem; }
.glossary { display: grid; gap: .2rem 0; margin: 2rem 0; }
.glossary dt { font: 600 1.25rem/1.2 var(--serif); color: var(--wine); margin-top: 1rem; }
.glossary dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) { .luck { grid-template-columns: repeat(4, 1fr); } }

/* Calendrier : compléments */
.today-card { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; }
.moon-wrap { display: grid; justify-items: center; gap: .6rem; font-size: .8rem; color: var(--gold-soft); text-align: center; max-width: 130px; }
.moon-svg { border-radius: 50%; animation: glow 5s ease-in-out infinite; }
.today-card .eyebrow { margin-bottom: .4rem; }
.today-card .cc { color: rgba(253, 246, 241, .75); font-size: .92rem; margin: .5rem 0; }
.today-card .cc b { color: var(--cream); font-weight: 500; }
.today-card .next { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .25rem; font-size: .9rem; color: rgba(253, 246, 241, .75); }
.today-card .next b { color: var(--cream); font-weight: 500; }
.countdown { flex-wrap: wrap; font-size: .88rem; color: rgba(253, 246, 241, .8); margin: 0; }
.countdown b { animation: shimmer 4s ease-in-out infinite; }
.cal-grid { gap: 1.5rem; align-items: start; }
.cal-head > div { text-align: center; }
.cal-head .mini { margin: 0; }
.conv-form label { color: rgba(253, 246, 241, .8); }
.conv-form .inline { display: flex; gap: .6rem; }
.conv-form .inline input { flex: 1; }
.conv-form input { background: rgba(253, 246, 241, .07); border: 1px solid var(--line-night); color: var(--cream); color-scheme: dark; }
.fields.three { grid-template-columns: repeat(3, 1fr); margin-bottom: .8rem; }
.check { display: flex; gap: .5rem; align-items: center; margin: 0 0 1rem; font-size: .9rem; }
.check input { width: auto; }
.conv-result { animation: rise .5s var(--ease) both; color: rgba(253, 246, 241, .82); }
.conv-result p { margin: .3rem 0; }
.cal .c { animation: rise .45s var(--ease) both; animation-delay: calc(var(--i) * 12ms); transition: transform .25s var(--ease), background .25s; }
.cal .c:hover { transform: translateY(-2px); background: rgba(253, 246, 241, .09); }
.cal .c.tet .ico { animation: float 2.4s ease-in-out infinite; }
.cal-grid .chart-legend { align-items: center; }

/* ====== Visite guidée ====== */
.tour-fab { position: fixed; z-index: 90; right: clamp(.8rem, 2vw, 1.6rem); bottom: clamp(.8rem, 2vw, 1.6rem); display: inline-flex; align-items: center; gap: .6rem; padding: .35rem 1.1rem .35rem .35rem; border-radius: 999px; border: 1px solid rgba(232, 195, 118, .5); background: rgba(33, 19, 54, .92); color: var(--cream); font: 500 .88rem var(--sans); cursor: pointer; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .7); backdrop-filter: blur(8px); transition: transform .35s var(--ease), border-color .3s; }
.tour-fab img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; animation: float 4s ease-in-out infinite; }
.tour-fab:hover { transform: translateY(-3px) scale(1.03); border-color: var(--gold); }
.tour-on .tour-fab { opacity: 0; pointer-events: none; }
.tour-spot { position: fixed; z-index: 95; border-radius: 18px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(10, 5, 20, .62), 0 0 0 2px var(--gold), 0 0 40px 4px rgba(232, 195, 118, .45); transition: top .45s var(--ease), left .45s var(--ease), width .45s var(--ease), height .45s var(--ease); }
.tour-tip { position: fixed; z-index: 96; width: min(360px, calc(100vw - 24px)); padding: 1.4rem 1.4rem 1.1rem; border-radius: 22px; background: linear-gradient(160deg, #2f1a4a, #1d1031); border: 1px solid rgba(232, 195, 118, .5); color: rgba(253, 246, 241, .85); font-size: .93rem; line-height: 1.55; box-shadow: 0 30px 60px -20px #000; transition: top .45s var(--ease), left .45s var(--ease); }
.tour-tip.pop { animation: tipIn .5s var(--ease) both; }
.tour-tip::before { content: ""; position: absolute; left: var(--arrow, 50%); width: 14px; height: 14px; background: #2a1744; border: 1px solid rgba(232, 195, 118, .5); transform: translateX(-50%) rotate(45deg); }
.tour-tip[data-side="below"]::before { top: -8px; border-right: 0; border-bottom: 0; }
.tour-tip[data-side="above"]::before { bottom: -8px; border-left: 0; border-top: 0; background: #1e1132; }
.tour-tip[data-side="float"]::before { display: none; }
.tour-tip h3 { color: var(--cream); font-size: 1.45rem; margin: 0 0 .4rem; padding-right: 64px; }
.tour-tip p { margin: 0 0 .8rem; }
.tour-cat { position: absolute; right: 14px; top: -26px; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; animation: float 3.5s ease-in-out infinite; box-shadow: 0 10px 24px -8px #000; }
.tour-count { font-size: .7rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--lotus); margin-bottom: .3rem !important; }
.tour-dots { display: flex; gap: .3rem; margin: .4rem 0 1rem; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(253, 246, 241, .2); transition: all .3s; }
.tour-dots i.done { background: rgba(232, 195, 118, .6); }
.tour-dots i.on { width: 22px; border-radius: 99px; background: var(--gold); }
.tour-nav { display: flex; align-items: center; gap: .5rem; }
.tour-nav .btn { padding: .6rem 1rem; font-size: .86rem; }
.tour-nav .btn-lotus { margin-left: auto; }
.tour-quit { background: none; border: 0; color: rgba(253, 246, 241, .55); cursor: pointer; font: 400 .85rem var(--sans); padding: .4rem 0; margin-right: auto; }
.tour-quit:hover { color: var(--cream); }
.tour-demo { display: block; width: 100%; margin: 0 0 .6rem; padding: .7rem; border-radius: 14px; border: 1px dashed rgba(232, 195, 118, .6); background: rgba(232, 195, 118, .08); color: var(--gold-soft); font: 500 .9rem var(--sans); cursor: pointer; transition: background .3s; }
.tour-demo:hover { background: rgba(232, 195, 118, .18); }
.tour-auto { display: flex; align-items: center; gap: .5rem; margin: .9rem 0 0; font-size: .78rem; color: rgba(253, 246, 241, .6); cursor: pointer; }
.tour-auto input { width: auto; accent-color: var(--lotus); }

/* Visuels d'ambiance */
.hero-bg, .page-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; animation: drift 40s ease-in-out infinite alternate; }
.hero-bg { opacity: .42; -webkit-mask: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent); mask: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent); }
.page-bg { opacity: .22; -webkit-mask: radial-gradient(ellipse at 75% 40%, #000 20%, transparent 75%); mask: radial-gradient(ellipse at 75% 40%, #000 20%, transparent 75%); }
.media-frame { position: relative; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.media-frame:hover img { transform: scale(1.05); }
.media-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(232, 195, 118, .35); pointer-events: none; }
.zodiac-spin { max-width: 520px; margin: 0 auto; border-radius: 50%; overflow: hidden; box-shadow: 0 0 80px -10px rgba(214, 51, 108, .45); }
.zodiac-spin img { animation: spin 240s linear infinite; }
.lanterns { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lanterns i { position: absolute; bottom: -40px; width: 14px; height: 18px; border-radius: 45% 45% 40% 40%; background: radial-gradient(circle at 50% 40%, #ffd9a0, #e8603c 60%, #a8283a); box-shadow: 0 0 18px 4px rgba(255, 160, 90, .45); animation: lantern 18s linear infinite; opacity: 0; }
.lanterns i:nth-child(1) { left: 8%; animation-delay: 0s; } .lanterns i:nth-child(2) { left: 22%; animation-delay: 5s; transform: scale(.7); }
.lanterns i:nth-child(3) { left: 61%; animation-delay: 9s; } .lanterns i:nth-child(4) { left: 78%; animation-delay: 2.5s; transform: scale(.8); }
.lanterns i:nth-child(5) { left: 91%; animation-delay: 12s; transform: scale(.6); }
@keyframes lantern { 0% { opacity: 0; transform: translate(0, 0); } 10% { opacity: .9; } 50% { transform: translate(18px, -50vh); } 90% { opacity: .6; } 100% { opacity: 0; transform: translate(-10px, -100vh); } }

/* ====== Animations ====== */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes flip { from { opacity: 0; transform: rotateY(-75deg) translateY(10px); } }
@keyframes tipIn { from { opacity: 0; transform: translateY(10px) scale(.95); } }
@keyframes glow { 50% { box-shadow: 0 0 70px 8px rgba(243, 223, 174, .35); } }
@keyframes shimmer { 50% { text-shadow: 0 0 18px rgba(232, 195, 118, .8); } }
@keyframes drift { from { transform: scale(1.08) translate3d(-1.5%, 0, 0); } to { transform: scale(1.14) translate3d(1.5%, -1%, 0); } }
.results.in .summary-cards .card { animation: rise .7s var(--ease) both; }
.results.in .summary-cards .card:nth-child(2) { animation-delay: .08s; } .results.in .summary-cards .card:nth-child(3) { animation-delay: .16s; } .results.in .summary-cards .card:nth-child(4) { animation-delay: .24s; }
.results.in .chart-center { animation: pop 1s var(--ease) .5s both; }
.tool-tabs a[aria-current="page"] { box-shadow: 0 0 24px -4px rgba(232, 195, 118, .7); }
.birth-form { position: relative; }
.birth-form::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(232, 195, 118, .8), transparent 85%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: orbit 8s linear infinite; pointer-events: none; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes orbit { to { --a: 360deg; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Print: chart only */
@media print {
  .site-header, .site-footer, .page-hero, .no-print, .starfield, .tour-fab, .tour-tip, .tour-spot, .cta-band { display: none !important; }
  .pillar, .luck-cell, .card-night, .dm-card, .period, .periods-box, .summary-cards .card { background: #fff !important; border: 1px solid #999 !important; animation: none !important; }
  .pillar *, .luck-cell *, .card-night *, .dm-card *, .period *, .periods-box *, .summary-cards * { color: #000 !important; text-shadow: none !important; }
  body { background: #fff; }
  .section-night { background: #fff !important; color: #000 !important; }
  .palace, .chart-center { background: #fff !important; color: #000 !important; border: 1px solid #999 !important; }
  .palace *, .chart-center * { color: #000 !important; }
  .tuvi { background: #999; min-width: 0; }
  .reading details { break-inside: avoid; }
}

/* Accueil — proche de l’ancien thème (photo, fond clair, boutons nets) */
.home { background: #f9fafd; }
.home .hero {
  min-height: 100svh; place-items: center; padding: 7.5rem 0 4.5rem; color: #fff;
  background: #1c1c1c;
}
.home .hero::after { content: none; }
.home .hero-bg {
  opacity: 1; animation: none;
  -webkit-mask: none; mask: none;
  object-position: center 42%;
}
.home .hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .22) 42%, rgba(0, 0, 0, .48) 100%);
}
.home .hero-center { position: relative; z-index: 2; text-align: center; max-width: 46rem; }
.home h1, .home h2, .home h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.home h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.home h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.home .hero h1 { color: #fff; margin-bottom: 1.1rem; }
.home .accent { font-style: normal; color: #0bb4aa; }
.home .hero .accent { color: #f3dfae; font-family: var(--serif); font-style: italic; font-weight: 500; }
.home .hero .eyebrow { color: #f3dfae; }
.home .hero .eyebrow::before { background: currentColor; }
.home .hero .lead { color: rgba(255, 255, 255, .92); margin-inline: auto; }
.home .hero .actions { justify-content: center; }
.home .hero-meta { justify-content: center; border-top-color: rgba(255, 255, 255, .28); }
.home .hero-meta b { font: 700 1.35rem/1 var(--sans); color: #fff; }
.home .scroll-cue { bottom: 1.8rem; border-color: rgba(255, 255, 255, .7); color: transparent; text-decoration: none; }
.site-header .btn-lotus { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .75); border-radius: 2px; box-shadow: none; font-weight: 600; }
.site-header .btn-lotus:hover { background: #fff; color: #101010; }
.home .scroll-cue::after { background: #fff; }
.home .btn-light, .home .btn-dark, .home .btn-line { border-radius: 2px; box-shadow: none; font-weight: 600; }
.home .btn-light { background: #fff; color: #101010; }
.home .btn-light:hover { background: #0bb4aa; color: #fff; }
.home .btn-dark { background: #101010; color: #fff; }
.home .btn-dark:hover { background: #0bb4aa; color: #fff; }
.home .section-lotus { background: #f6f1e8; }
.home .portrait { margin: 0; }
.home .portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 22% center; border-radius: 4px; }
.home .card, .home .steps li, .home .post-card { border-radius: 4px; box-shadow: none; }
.home .card:hover, .home .post-card:hover { transform: none; box-shadow: 0 10px 28px rgba(16, 16, 16, .08); }
.home .eyebrow { color: #d17788; }
.home .constellation { color: #c6a15a; }
.home .home-cta { text-align: center; padding: 3.2rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.home .home-cta .lead { margin-inline: auto; }
.home .home-cta .actions { justify-content: center; }
@media (max-width: 900px) {
  .home .portrait { max-width: 28rem; margin-inline: auto; }
}

/* Pages intérieures — aquarelle du lotus (rose, vert d’eau, pollen). L’accueil n’est pas concerné. */
body:not(.home) { background: #f4f7f1; }
body:not(.home) h1,
body:not(.home) h2,
body:not(.home) h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
body:not(.home) .accent { color: #c46b78; font-family: var(--serif); font-style: italic; font-weight: 500; }
body:not(.home) .eyebrow { color: #c46b78; }
body:not(.home) main a:not(.btn) { color: #2f6b45; }
body:not(.home) main a:not(.btn):hover { color: #c46b78; }
body:not(.home) .drop::first-letter { color: #c46b78; }
body:not(.home) .card-icon { background: linear-gradient(135deg, #f8d9d6, #e5f2e3); color: #2f6b45; }

body:not(.home) .site-header { color: #243028; }
body:not(.home) .brand,
body:not(.home) .brand:hover { color: #243028; }
body:not(.home) .site-nav ul a { color: #243028; }
body:not(.home) .site-nav ul a:hover { color: #2f6b45; background: rgba(47, 107, 69, .08); }
body:not(.home) .site-nav ul a[aria-current="page"] { color: #c46b78; }
body:not(.home) .site-nav ul a[aria-current="page"]::after { background: #c46b78; }
body:not(.home) .nav-toggle { border-color: rgba(36, 48, 40, .25); background: rgba(255, 255, 255, .55); }
body:not(.home) .nav-toggle span:not(.sr) { background: #243028; }
body:not(.home).nav-open .site-nav ul a,
body:not(.home).nav-open .site-nav ul a:hover { color: #fff; background: transparent; }
body:not(.home).nav-open .nav-toggle,
body:not(.home) .site-header.scrolled .nav-toggle { border-color: rgba(255, 255, 255, .35); background: transparent; }
body:not(.home).nav-open .nav-toggle span:not(.sr),
body:not(.home) .site-header.scrolled .nav-toggle span:not(.sr) { background: #fff; }
body:not(.home) .site-header.scrolled,
body:not(.home) .site-header.scrolled .brand,
body:not(.home) .site-header.scrolled .brand:hover,
body:not(.home) .site-header.scrolled .site-nav ul a { color: #fff; }
body:not(.home) .site-header.scrolled .site-nav ul a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
body:not(.home) .site-header.scrolled .site-nav ul a[aria-current="page"] { color: #f3dfae; }
body:not(.home) .site-header .btn-lotus { background: transparent; color: #243028; border-color: #243028; }
body:not(.home) .site-header .btn-lotus:hover { background: #243028; color: #fff; }
body:not(.home) .site-header.scrolled .btn-lotus { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
body:not(.home) .site-header.scrolled .btn-lotus:hover { background: #fff; color: #101010; }

body:not(.home) .page-hero {
  color: #243028;
  background:
    radial-gradient(ellipse 48% 70% at 90% 15%, rgba(224, 150, 150, .42), transparent 68%),
    radial-gradient(ellipse 42% 55% at 6% 85%, rgba(110, 176, 122, .38), transparent 70%),
    linear-gradient(180deg, #f6f8f3, #e4f0e2 58%, #f7f3ea);
}
body:not(.home) .page-hero::after,
body:not(.home) .page-hero .starfield,
body:not(.home) .page-hero .page-bg,
body:not(.home) .page-hero .lanterns,
body:not(.home) .section-night:not(.results):not(#resultats) .starfield,
body:not(.home) .cta-band .starfield { display: none; }
body:not(.home) .page-hero h1 { color: #243028; font-size: clamp(2.1rem, 4.4vw, 3.35rem); }
body:not(.home) .page-hero .lead { color: #3e4c44; }
body:not(.home) .page-hero .chips li { background: rgba(255, 255, 255, .72); color: #243028; border-color: rgba(47, 107, 69, .22); }
body:not(.home) .crumbs,
body:not(.home) .crumbs a { color: #4d5c52; }
body:not(.home) .crumbs a:hover { color: #2f6b45; }
body:not(.home) .byline,
body:not(.home) .byline b { color: #3e4c44; }
body:not(.home) .byline img { border-color: #e2b43a; }

body:not(.home) .page-hero .form-card { background: #fff; border: 1px solid rgba(47, 107, 69, .16); color: #243028; backdrop-filter: none; box-shadow: 0 16px 40px -28px rgba(36, 48, 40, .45); }
body:not(.home) .page-hero .form-card .form-title { color: #2f6b45; }
body:not(.home) .page-hero .form-card .form-title span:last-child,
body:not(.home) .page-hero .hint-inline,
body:not(.home) .page-hero .mini { color: #5c6b62; }
body:not(.home) .page-hero .form-card:not(.light) input,
body:not(.home) .page-hero .form-card:not(.light) select { background: #f7faf6; border-color: rgba(47, 107, 69, .28); color: #243028; color-scheme: light; }
body:not(.home) .page-hero .form-card .seg span { border-color: rgba(47, 107, 69, .28); color: #243028; }
body:not(.home) .page-hero .histo { background: rgba(255, 255, 255, .72); border-color: rgba(196, 107, 120, .28); color: #3e4c44; }
body:not(.home) .page-hero .histo strong { color: #2f6b45; }
body:not(.home) .page-hero .histo-title { color: #c46b78; }
body:not(.home) .page-hero .tool-tabs a { color: #243028; border-color: rgba(47, 107, 69, .25); background: rgba(255, 255, 255, .6); }
body:not(.home) .page-hero .tool-tabs a:hover { color: #2f6b45; border-color: #2f6b45; }
body:not(.home) .page-hero .tool-tabs a[aria-current="page"] { background: #2f6b45; border-color: #2f6b45; color: #fff; }

body:not(.home) .section-night:not(.results):not(#resultats) { background: linear-gradient(180deg, #e7f2e4, #f7f3ea); color: #243028; }
body:not(.home) .section-night:not(.results):not(#resultats) h2,
body:not(.home) .section-night:not(.results):not(#resultats) h3,
body:not(.home) .section-night:not(.results):not(#resultats) .steps h3 { color: #243028; }
body:not(.home) .section-night:not(.results):not(#resultats) .lead { color: #4d5c52; }
body:not(.home) .section-night:not(.results):not(#resultats) a:not(.btn) { color: #2f6b45; }
body:not(.home) .section-night:not(.results):not(#resultats) .star-card,
body:not(.home) .section-night:not(.results):not(#resultats) .steps li,
body:not(.home) .section-night:not(.results):not(#resultats) .card {
  background: #fff; border-color: rgba(47, 107, 69, .16); color: #3e4c44;
}
body:not(.home) .section-night:not(.results):not(#resultats) .star-card .vi { color: #2f6b45; }
body:not(.home) .section-night:not(.results):not(#resultats) .star-card .fr { color: #c46b78; }
body:not(.home) .section-night:not(.results):not(#resultats) .star-card p { color: #4d5c52; }
body:not(.home) .section-night:not(.results):not(#resultats) .steps li::before { color: #d9898c; }

body:not(.home) .cta-band {
  background: linear-gradient(135deg, #f8e4e2, #e5f2e3);
  color: #243028; border-radius: 4px;
}
body:not(.home) .cta-band h2,
body:not(.home) .cta-band .lead { color: #243028; }
body:not(.home) .cta-band .btn-ghost { border-color: #243028; color: #243028; background: transparent; backdrop-filter: none; }
body:not(.home) .cta-band .btn-ghost:hover { background: #243028; color: #fff; }

body:not(.home) .btn-lotus { background: #243028; color: #fff; border-radius: 2px; box-shadow: none; font-weight: 600; }
body:not(.home) .btn-lotus:hover { background: #2f6b45; color: #fff; }
body:not(.home) .tool-card {
  background: #fff; color: #243028; border: 1px solid rgba(47, 107, 69, .16); border-radius: 4px; box-shadow: none;
}
body:not(.home) .tool-card:hover { color: #243028; border-color: rgba(196, 107, 120, .45); box-shadow: 0 16px 36px -24px rgba(36, 48, 40, .45); }
body:not(.home) .tool-card h3 { color: #243028; }
body:not(.home) .tool-card p,
body:not(.home) .tool-card ul { color: #4d5c52; }
body:not(.home) .tool-card .tag,
body:not(.home) .tool-card .alias,
body:not(.home) .tool-card .go { color: #2f6b45; }
body:not(.home) .tool-card li::before { color: #c46b78; }
body:not(.home) .section-paper { background: linear-gradient(180deg, #f7f3ea, #eef5ec); }
/* Lisibilite accueil (14/10) */
.home .hero-bg { opacity: .6; }
.home .hero::before { background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.6) 100%); }
.home .hero-center { text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.home .hero .accent, .home .hero .eyebrow { color: #ffd98a; }
