/* ============================================================
   ASTRO JUDITH — feuille de style
   Palette : nuit d'encre, violet astral, or champagne, rose poudré
   ============================================================ */

:root {
  --ink: #06040f;
  --ink-2: #0c0820;
  --ink-3: #150f2e;
  --veil: rgba(255, 255, 255, .06);
  --veil-2: rgba(255, 255, 255, .11);

  --gold: #f4d79b;
  --gold-2: #e8b96a;
  --gold-deep: #b98c3e;
  --rose: #f0b6c8;
  --violet: #a68cff;
  --violet-2: #7b5cf0;
  --cyan: #8fe3e0;

  --text: #ece7f7;
  --text-soft: #b6aecd;
  --text-faint: #7d7599;

  --elem-feu: #ff9166;
  --elem-terre: #9dd68f;
  --elem-air: #93d4ef;
  --elem-eau: #a6a4ff;
  --elem-feu-soft: rgba(255, 145, 102, .10);
  --elem-terre-soft: rgba(157, 214, 143, .10);
  --elem-air-soft: rgba(147, 212, 239, .10);
  --elem-eau-soft: rgba(166, 164, 255, .10);

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Palatino, 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 20px;
  --shadow: 0 24px 70px -30px rgba(0, 0, 0, .9);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Ciel animé ---------- */
/* width/height explicites : un canvas est un élément remplacé, `inset: 0`
   ne l'étire pas et il garderait sa taille intrinsèque. */
#sky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: -30% -10% auto -10%;
  height: 90vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 40% at 22% 20%, rgba(123, 92, 240, .34), transparent 66%),
    radial-gradient(42% 38% at 78% 12%, rgba(240, 182, 200, .18), transparent 64%),
    radial-gradient(46% 44% at 55% 46%, rgba(143, 227, 224, .12), transparent 68%);
  filter: blur(28px);
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: .85; }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.06); opacity: 1; }
  100% { transform: translate3d(3%, -2%, 0) scale(1.02); opacity: .8; }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(6, 4, 15, .75) 100%);
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- Typo ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: .01em; }

h1 {
  font-size: clamp(3rem, 10vw, 6.4rem);
  line-height: .96;
  margin: 0;
}

h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 .5rem;
}

h3 { font-size: 1.42rem; margin: 0 0 .4rem; line-height: 1.25; }

p { margin: 0 0 1rem; }

.gold-text {
  background: linear-gradient(102deg, var(--gold) 6%, #fff6e2 32%, var(--gold-2) 54%, var(--rose) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 1.1rem;
  font-weight: 500;
}

.lede { font-size: 1.12rem; color: var(--text-soft); max-width: 60ch; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }

/* ---------- Accueil ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8vh 0 6vh;
}

.hero-inner { max-width: 860px; }

/* ---------- Accueil : texte + portrait ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3.5rem);
  width: 100%;
}

.hero-copy { text-align: left; }
.hero-cta { margin-top: 2.6rem; }
.hero-copy .kicker { margin-left: 0; margin-right: 0; }
.hero-copy .glyph-ring { justify-content: flex-start; }

/* Largeur dérivée de la hauteur disponible et du ratio de la photo
   (482/911 ≈ 0.5291). */
.hero-portrait-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 380px, calc(74svh * 0.5291));
}

/* Halo derrière le portrait : c'est lui qui « pose » la photo sur le fond
   au lieu de la laisser flotter. Il vit en dehors de l'élément masqué,
   sinon le masque le rognerait avec l'image. */
.hero-portrait-wrap::before {
  content: '';
  position: absolute;
  inset: 6% -12% 10%;
  border-radius: 50%;
  /* Discret et resserré : sur une image détourée, un halo large et dense
     dessine une boîte lumineuse autour du sujet au lieu de l'auréoler. */
  background:
    radial-gradient(46% 40% at 50% 30%, rgba(244, 215, 155, .17), transparent 72%),
    radial-gradient(54% 52% at 50% 60%, rgba(123, 92, 240, .19), transparent 74%);
  filter: blur(46px);
  z-index: 0;
  pointer-events: none;
  animation: haloPulse 9s ease-in-out infinite alternate;
}

.hero-portrait {
  margin: 0;
  position: relative;
  z-index: 1;
  width: 100%;
}

@keyframes haloPulse {
  from { opacity: .75; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1.03); }
}

/* Fondu des bords en deux temps : dégradé horizontal porté par la <figure>,
   dégradé vertical porté par l'<img>. Deux masques simples sur deux éléments
   imbriqués évitent `mask-composite`, encore inégalement supporté.
   Un masque laisse voir les étoiles au travers, là où une vignette
   opaque les recouvrirait. */
/* L'image est détourée : le canal alpha suffit autour du buste. Mais le bas
   (la table et ses objets) reste un bloc rectangulaire coupé net sur trois
   côtés — d'où ces deux dégradés qui le fondent dans la nuit : latéral porté
   par la <figure>, vertical porté par l'<img>. Le fondu latéral est resserré
   (8 %) pour ne pas entamer les manches. */
.hero-portrait {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.hero-portrait picture { display: block; }

/* La drop-shadow suit la silhouette (et non la boîte) : c'est elle qui
   détache le sujet du fond. */
.hero-portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, rgba(0, 0, 0, .5) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 68%, rgba(0, 0, 0, .5) 88%, transparent 100%);
  filter:
    saturate(.94) contrast(1.03)
    drop-shadow(0 10px 26px rgba(0, 0, 0, .6));
}

.hero-portrait figcaption {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: .06em;
  color: var(--gold);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .9);
  opacity: .9;
}

@media (max-width: 900px) {
  .hero { padding: 5vh 0 5vh; }
  .hero-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hero-copy { text-align: center; order: 2; }
  .hero-copy .glyph-ring { justify-content: center; }
  .hero-portrait-wrap { order: 1; width: min(72%, 280px, calc(36svh * 0.5285)); }
  .hero-portrait figcaption { display: none; }
  .hero-cta { margin-top: 2rem; }
}

.hero .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3.2vw, 1.9rem);
  color: var(--text-soft);
  margin: 1.3rem 0 0;
}

.hero .kicker {
  margin: 2.2rem auto 0;
  max-width: 54ch;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.glyph-ring {
  display: flex;
  justify-content: center;
  gap: clamp(.5rem, 2.4vw, 1.3rem);
  margin: 2.6rem 0 0;
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  color: var(--violet);
  opacity: .55;
}

.glyph-ring span { animation: twinkle 4s ease-in-out infinite; }
.glyph-ring span:nth-child(2n) { animation-delay: .5s; color: var(--gold-2); }
.glyph-ring span:nth-child(3n) { animation-delay: 1.1s; color: var(--rose); }
.glyph-ring span:nth-child(5n) { animation-delay: 1.7s; }

@keyframes twinkle {
  0%, 100% { opacity: .35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 1.05rem 2.3rem;
  border-radius: 999px;
  color: #241a06;
  background: linear-gradient(100deg, var(--gold) 0%, #ffeec6 46%, var(--gold-2) 100%);
  box-shadow: 0 14px 40px -14px rgba(232, 185, 106, .7), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .25s cubic-bezier(.2, .8, .3, 1), box-shadow .25s, filter .25s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px -16px rgba(232, 185, 106, .85), inset 0 1px 0 rgba(255, 255, 255, .7);
}

.btn:active { transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--veil-2);
  box-shadow: none;
  font-weight: 500;
}

.btn--ghost:hover {
  background: var(--veil);
  border-color: var(--gold-deep);
  box-shadow: none;
  transform: translateY(-2px);
}

.btn--sm { padding: .68rem 1.4rem; font-size: .9rem; }

/* WhatsApp : on garde la couleur de la marque, reconnaissable au premier coup
   d'œil, mais assombrie pour tenir dans la palette nocturne du site. */
.btn--wa {
  background: linear-gradient(100deg, #1f9d55 0%, #25d366 55%, #1fae59 100%);
  color: #04240f;
  box-shadow: 0 14px 40px -16px rgba(37, 211, 102, .65), inset 0 1px 0 rgba(255, 255, 255, .4);
  text-decoration: none;
}

.btn--wa:hover {
  box-shadow: 0 22px 52px -18px rgba(37, 211, 102, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.btn--wa svg { flex: none; }

.btn:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
.chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Formulaire ---------- */
.form-section { padding: clamp(3rem, 9vw, 7rem) 0; }

.card {
  background: linear-gradient(168deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .022));
  border: 1px solid var(--veil-2);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.8rem);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow: var(--shadow);
}

.form-card { max-width: 760px; margin: 0 auto; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.3rem;
}

@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: .45rem; position: relative; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: .76rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1.02rem;
  color: var(--text);
  background: rgba(8, 6, 22, .62);
  border: 1px solid var(--veil-2);
  border-radius: 12px;
  padding: .88rem 1rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.field input::placeholder { color: #5d5678; }

.field input:focus,
.field select:focus {
  border-color: var(--gold-deep);
  background: rgba(12, 9, 30, .8);
  box-shadow: 0 0 0 4px rgba(244, 215, 155, .11);
}

.field select { appearance: none; cursor: pointer; padding-right: 2.4rem; }

.field--select::after {
  content: '';
  position: absolute;
  right: 1rem;
  bottom: 1.25rem;
  width: 7px; height: 7px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg);
  pointer-events: none;
}

.field select option { background: #120d26; color: var(--text); }

.hint { font-size: .82rem; color: var(--text-faint); line-height: 1.5; }
.hint strong { color: var(--text-soft); font-weight: 600; }

/* autocomplétion ville */
.suggest {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  z-index: 40;
  margin-top: 6px;
  background: #120d26;
  border: 1px solid var(--veil-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px #000;
  max-height: 280px;
  overflow-y: auto;
}

.suggest[hidden] { display: none; }

.suggest button {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: .96rem;
  padding: .72rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, .045);
}

.suggest button:last-child { border-bottom: 0; }
.suggest button:hover,
.suggest button[aria-selected='true'] { background: rgba(166, 140, 255, .16); }
.suggest .r { color: var(--text-faint); font-size: .84rem; }

.toggle-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  grid-column: 1 / -1;
  color: var(--text-soft);
  font-size: .94rem;
}

.toggle-row input { width: 17px; height: 17px; accent-color: var(--gold-2); cursor: pointer; }
.toggle-row label { cursor: pointer; }

.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.9rem;
}

.error-msg {
  color: #ff9d9d;
  font-size: .92rem;
  background: rgba(255, 90, 90, .1);
  border: 1px solid rgba(255, 90, 90, .28);
  border-radius: 10px;
  padding: .7rem 1rem;
  margin-top: 1rem;
}

.error-msg[hidden] { display: none; }

/* ---------- Écran de calcul ---------- */
.computing {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(6, 4, 15, .93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s;
}

.computing.on { opacity: 1; pointer-events: auto; }
.computing .txt {
  margin-top: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-soft);
  text-align: center;
  min-height: 2.2em;
  padding: 0 1.5rem;
}

.spin-wrap { width: 190px; height: 190px; position: relative; }
.spin-wrap svg { width: 100%; height: 100%; }

.spin-ring {
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 1.1;
  opacity: .55;
  stroke-dasharray: 3 7;
  transform-origin: 50% 50%;
  animation: spin 9s linear infinite;
}

.spin-ring-2 {
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.4;
  opacity: .6;
  stroke-dasharray: 44 260;
  transform-origin: 50% 50%;
  animation: spin 3.4s cubic-bezier(.5, 0, .5, 1) infinite reverse;
}

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

/* ---------- Résultats ---------- */
#results[hidden] { display: none; }

.result-hero {
  padding: clamp(3.5rem, 10vw, 7rem) 0 2.5rem;
  text-align: center;
}

.result-hero .name {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.02;
  margin: .3rem 0 .7rem;
}

.birth-line { color: var(--text-faint); font-size: .95rem; }

/* triade Soleil / Lune / Ascendant */
.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.7rem, 2vw, 1.4rem);
  margin: 3rem auto 0;
  max-width: 900px;
}

@media (max-width: 700px) { .triad { grid-template-columns: 1fr; } }

.triad-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid var(--veil-2);
  border-radius: 18px;
  padding: 1.7rem 1.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), border-color .35s;
}

.triad-card::before {
  content: '';
  position: absolute;
  inset: -60% -30% auto -30%;
  height: 150%;
  background: radial-gradient(60% 50% at 50% 0%, rgba(166, 140, 255, .3), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
}

.triad-card:hover { transform: translateY(-6px); border-color: rgba(244, 215, 155, .4); }
.triad-card:hover::before { opacity: 1; }
.triad-card > * { position: relative; }

.triad-card .role {
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.triad-card .big { font-size: 2.7rem; line-height: 1.1; margin: .5rem 0 .1rem; }
.triad-card .sign { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); }
.triad-card .deg { font-size: .84rem; color: var(--text-faint); margin-top: .2rem; }

/* sections */
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-head { margin-bottom: 2.4rem; max-width: 62ch; }
.section-head .num {
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--gold-deep);
  letter-spacing: .3em;
  display: block;
  margin-bottom: .5rem;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 215, 155, .35), transparent);
  border: 0;
  margin: 0;
}

/* roue */
.wheel-holder {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.wheel-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  /* Sans cela, un clic sur une planète produit un rectangle bleu :
     sélection du glyphe, cadre de focus autour du <g tabindex="0">,
     ou cache de tap sur mobile. */
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.w-ring { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.w-ring--faint { stroke: rgba(255, 255, 255, .09); }
.w-sign-sector { stroke: none; }
.w-sign-sep { stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.w-sign-glyph { font-size: 25px; font-family: var(--serif); }
.w-tick { stroke: rgba(255, 255, 255, .16); stroke-width: .6; }
.w-tick-major { stroke: rgba(255, 255, 255, .3); stroke-width: .9; }

.w-house-line { stroke: rgba(255, 255, 255, .17); stroke-width: 1; stroke-dasharray: 3 4; }
.w-house-line--angular { stroke: rgba(244, 215, 155, .55); stroke-width: 1.5; stroke-dasharray: none; }
.w-house-num { font-size: 12px; fill: var(--text-faint); font-family: var(--sans); }

.w-axis { stroke: rgba(244, 215, 155, .6); stroke-width: 1.4; }
.w-axis--soft { stroke: rgba(244, 215, 155, .22); stroke-width: 1; }
.w-axis-label {
  font-size: 11px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .12em;
  fill: var(--gold);
}
.w-axis-label--soft { fill: rgba(244, 215, 155, .4); }

.w-aspect { stroke-linecap: round; }
.w-aspect--harmonie { stroke: var(--cyan); }
.w-aspect--tension { stroke: #ff8a9b; }
.w-aspect--fusion { stroke: var(--gold); }
.w-aspect--ajustement { stroke: var(--violet); stroke-dasharray: 2 4; }

.w-hub { fill: rgba(10, 7, 26, .85); stroke: rgba(244, 215, 155, .3); stroke-width: 1; }

.w-planet { cursor: pointer; }
.w-planet-halo {
  fill: rgba(12, 8, 30, .92);
  stroke: rgba(244, 215, 155, .4);
  stroke-width: 1;
  transition: stroke .25s, fill .25s;
}
.w-planet-glyph { font-size: 20px; fill: var(--gold); font-family: var(--serif); transition: fill .25s; }
.w-planet-leader { stroke: rgba(255, 255, 255, .22); stroke-width: .7; }
.w-planet-dot { fill: var(--gold); }
.w-planet-retro { font-size: 10px; fill: #ff9d9d; font-family: var(--sans); font-weight: 700; }

/* Focus au clavier signalé sur le halo plutôt que par le cadre rectangulaire
   du navigateur, qui encadrerait tout le groupe. */
.w-planet:focus { outline: none; }
.w-planet:focus-visible .w-planet-halo { stroke: var(--gold); stroke-width: 2.2; }

.w-planet:hover .w-planet-halo,
.w-planet:focus-visible .w-planet-halo { fill: rgba(244, 215, 155, .18); stroke: var(--gold); }
.w-planet:hover .w-planet-glyph,
.w-planet:focus-visible .w-planet-glyph { fill: #fff3d8; }

/* ---------- Infobulle de la roue ---------- */
.wheel-tip {
  position: absolute;
  z-index: 20;
  width: max-content;
  max-width: min(280px, 78vw);
  padding: .85rem 1rem 1rem;
  border-radius: 14px;
  background: linear-gradient(168deg, rgba(24, 18, 48, .97), rgba(12, 8, 28, .97));
  border: 1px solid rgba(244, 215, 155, .38);
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px) scale(.97);
  transition: opacity .17s ease, transform .17s cubic-bezier(.2, .8, .3, 1);
}

.wheel-tip.on { opacity: 1; transform: none; }

.wheel-tip .wt-glyph {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  margin-right: .45rem;
  vertical-align: -2px;
}

.wheel-tip .wt-name {
  font-family: var(--serif);
  font-size: 1.28rem;
  color: var(--text);
}

.wheel-tip .wt-meta {
  display: block;
  margin-top: .3rem;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--gold-2);
}

.wheel-tip .wt-role {
  display: block;
  margin-top: .55rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.wheel-tip .wt-text {
  margin: .4rem 0 0;
  font-size: .89rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.wheel-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: center;
  margin-top: 1.8rem;
  font-size: .85rem;
  color: var(--text-faint);
}

.wheel-legend i {
  display: inline-block;
  width: 22px;
  height: 2px;
  vertical-align: middle;
  margin-right: .45rem;
  border-radius: 2px;
}

/* portrait */
.portrait p { font-size: 1.08rem; }
.portrait p + p { margin-top: .2rem; }

.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  line-height: 1.35;
  color: var(--gold);
  border-left: 2px solid var(--gold-deep);
  padding-left: 1.5rem;
  margin: 2.4rem 0;
  max-width: 40ch;
}

/* cartes génériques */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.2rem;
}

.mini {
  background: linear-gradient(170deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018));
  border: 1px solid var(--veil);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  transition: border-color .3s, transform .3s;
}

.mini:hover { border-color: var(--veil-2); transform: translateY(-3px); }

.mini h3 { display: flex; align-items: baseline; gap: .6rem; }
.mini .glyph { font-size: 1.5rem; color: var(--gold); font-family: var(--serif); }
.mini .where { font-size: .8rem; color: var(--text-faint); display: block; margin-bottom: .7rem; letter-spacing: .04em; }
.mini p { font-size: .97rem; color: var(--text-soft); margin: 0; }
.mini .retro-tag {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ff9d9d;
  border: 1px solid rgba(255, 157, 157, .35);
  border-radius: 999px;
  padding: .05rem .5rem;
  margin-left: .4rem;
  vertical-align: middle;
}

/* barres d'équilibre */
.bars { display: flex; flex-direction: column; gap: 1rem; }

.bar-row { display: grid; grid-template-columns: 92px 1fr 48px; align-items: center; gap: 1rem; }

.bar-row .lbl { font-size: .9rem; color: var(--text-soft); }
.bar-row .val { font-size: .88rem; color: var(--text-faint); text-align: right; font-variant-numeric: tabular-nums; }

.bar-track {
  height: 9px;
  background: rgba(255, 255, 255, .07);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 1.3s cubic-bezier(.2, .8, .25, 1);
}

.bar-fill[data-k='feu'] { background: linear-gradient(90deg, #ff7043, var(--elem-feu)); }
.bar-fill[data-k='terre'] { background: linear-gradient(90deg, #6fae63, var(--elem-terre)); }
.bar-fill[data-k='air'] { background: linear-gradient(90deg, #5eb4d8, var(--elem-air)); }
.bar-fill[data-k='eau'] { background: linear-gradient(90deg, #7b78f0, var(--elem-eau)); }
.bar-fill[data-k='cardinal'],
.bar-fill[data-k='fixe'],
.bar-fill[data-k='mutable'] { background: linear-gradient(90deg, var(--violet-2), var(--rose)); }

/* aspects */
.aspect-list { display: flex; flex-direction: column; gap: .9rem; }

.aspect-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.1rem 1.3rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  border-left: 3px solid var(--veil-2);
}

.aspect-item[data-nature='harmonie'] { border-left-color: var(--cyan); }
.aspect-item[data-nature='tension'] { border-left-color: #ff8a9b; }
.aspect-item[data-nature='fusion'] { border-left-color: var(--gold); }
.aspect-item[data-nature='ajustement'] { border-left-color: var(--violet); }

.aspect-item .pair {
  font-family: var(--serif);
  font-size: 1.12rem;
  white-space: nowrap;
  color: var(--gold);
}

.aspect-item .sym { font-size: 1.25rem; margin: 0 .3rem; }
.aspect-item p { margin: 0; font-size: .97rem; color: var(--text-soft); }
.aspect-item .meta { font-size: .76rem; color: var(--text-faint); display: block; margin-top: .35rem; }

/* chinois */
.chinese-hero {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 760px) { .chinese-hero { grid-template-columns: 1fr; text-align: center; } }

.animal-badge {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 40% 32%, rgba(244, 215, 155, .22), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  border: 1px solid var(--veil-2);
  font-size: clamp(4.5rem, 14vw, 7.5rem);
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 280px;
}

.animal-badge::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(244, 215, 155, .3);
  animation: spin 40s linear infinite;
}

.chinese-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 0; }

.tag {
  font-size: .82rem;
  padding: .35rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--veil-2);
  color: var(--text-soft);
  background: rgba(255, 255, 255, .04);
}

.tag--gold { border-color: rgba(244, 215, 155, .45); color: var(--gold); }

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.6rem;
}

@media (max-width: 640px) { .duo { grid-template-columns: 1fr; } }

/* conseils */
/* 4 cartes : une grille auto-fit n'en tiendrait que 3 par ligne à cette
   largeur et laisserait la dernière seule. On force donc un 2×2. */
.advice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

@media (max-width: 700px) { .advice-grid { grid-template-columns: 1fr; } }

.advice {
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--veil);
}

.advice .ico { font-size: 1.6rem; display: block; margin-bottom: .6rem; color: var(--gold-2); }
.advice h3 { font-size: 1.15rem; }
.advice p { font-size: .96rem; color: var(--text-soft); margin: 0; }

.advice ul { margin: 0; padding-left: 1.1rem; color: var(--text-soft); font-size: .96rem; }
.advice li { margin-bottom: .45rem; }
.advice li::marker { color: var(--gold-deep); }

/* ---------- Présence de Judith dans les résultats ---------- */
.judith-head {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: 2.4rem;
}

.judith-medallion {
  flex: none;
  width: clamp(84px, 12vw, 132px);
  height: clamp(84px, 12vw, 132px);
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(244, 215, 155, .45);
  box-shadow:
    0 0 0 6px rgba(244, 215, 155, .06),
    0 18px 44px -18px rgba(0, 0, 0, .95);
  filter: saturate(.94) contrast(1.03);
}

@media (max-width: 640px) {
  .judith-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

.footer-portrait {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(244, 215, 155, .35);
  margin-bottom: .9rem;
  filter: saturate(.9);
}

.mantra {
  text-align: center;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.2rem, 4vw, 3rem);
  border-radius: 22px;
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(166, 140, 255, .18), transparent 70%),
    linear-gradient(170deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid rgba(244, 215, 155, .28);
}

.mantra .q {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.7rem, 4.6vw, 2.8rem);
  line-height: 1.3;
  color: var(--gold);
  margin: 0;
}

/* tableau des positions */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--veil); }

table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }

th, td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .06); }

th {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  background: rgba(255, 255, 255, .03);
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .028); }
td .g { font-family: var(--serif); font-size: 1.15rem; color: var(--gold); margin-right: .5rem; }
td.retro { color: #ff9d9d; }

/* ---------- Page « La méthode » ---------- */
.page-doc { padding-top: 1px; }

.doc { max-width: 74ch; padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: 2rem; }

.doc-title { font-size: clamp(2.6rem, 8vw, 4.6rem); margin: .2rem 0 1.2rem; }
.doc-lede { font-size: 1.15rem; margin-bottom: 2.5rem; }

.doc-back {
  color: var(--gold-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 185, 106, .3);
  transition: border-color .2s, color .2s;
}

.doc-back:hover { color: var(--gold); border-color: var(--gold); }

.doc-section { padding: clamp(2.2rem, 6vw, 3.4rem) 0 .6rem; }
.doc-section .num {
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--gold-deep);
  letter-spacing: .3em;
  display: block;
  margin-bottom: .5rem;
}
.doc-section h2 { margin-bottom: 1.1rem; }
.doc-section p { color: var(--text-soft); }
.doc-section strong { color: var(--text); font-weight: 600; }

.doc-list { margin: 0; padding-left: 1.2rem; color: var(--text-soft); }
.doc-list li { margin-bottom: .8rem; }
.doc-list li::marker { color: var(--gold-deep); }

.doc-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-soft);
  border-left: 2px solid var(--gold-deep);
  padding-left: 1.5rem;
}

/* pied de page */
footer {
  padding: 4rem 0 3rem;
  text-align: center;
  color: var(--text-faint);
  font-size: .88rem;
}

footer .sig { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold-2); margin-bottom: .6rem; }

.footer-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0; }

/* apparition au défilement */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s cubic-bezier(.2, .8, .3, 1), transform .85s cubic-bezier(.2, .8, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* impression */
@media print {
  body { background: #fff; color: #111; }
  #sky, .aurora, .vignette, .footer-actions, .form-section, .hero { display: none !important; }
  .card, .mini, .advice, .triad-card, .mantra { border-color: #ddd; background: #fff; box-shadow: none; }
  .gold-text { color: #8a6a1f; -webkit-text-fill-color: #8a6a1f; }
  h1, h2, h3, .pull, .mantra .q, .triad-card .sign { color: #6b4f12; }
  p, td, .mini p, .advice p { color: #222; }
  .section { padding: 1.2rem 0; break-inside: avoid; }
}
