/* ============================================================
 *  Céleste Voyance — Calculateur de thème astral
 *  Styles cohérents avec ton site existant
 * ============================================================ */

body[data-page="theme-astral"] main { padding-top: 0; }

/* ─── Hero ─── */
.ta-hero {
  text-align: center;
  padding: 48px 0 28px;
  position: relative;
  overflow: hidden;
}
.ta-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 126, 200, .22), transparent 70%);
  pointer-events: none;
}
.ta-hero::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 108, .16), transparent 72%);
  pointer-events: none;
}
.ta-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 16px;
  border-radius: 999px;
  color: #9b7ec8;
  background: rgba(155, 126, 200, .10);
  border: 1px solid rgba(155, 126, 200, .20);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.ta-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.ta-hero h1 em {
  font-style: italic;
  color: var(--lavender-deep, #6a4b96);
}
.ta-hero p.lead {
  max-width: 64ch;
  margin: 0 auto;
  color: var(--text-soft);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* ─── Formulaire ─── */
.ta-form-card {
  max-width: 580px;
  margin: 36px auto;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 32px;
  background: radial-gradient(circle at 50% 0%, rgba(155, 126, 200, .14), transparent 50%), rgba(255, 255, 255, .96);
  border: 1px solid rgba(201, 168, 108, .28);
  box-shadow: 0 22px 60px rgba(91, 67, 110, .12);
  position: relative;
  z-index: 1;
}
.ta-form-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: #3d2e4a;
  text-align: center;
}
.ta-form-card p.subtitle {
  margin: 0 0 28px;
  text-align: center;
  color: var(--text-soft);
  font-size: .94rem;
}
.ta-field {
  margin-bottom: 18px;
}
.ta-field label {
  display: block;
  margin-bottom: 6px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--lavender-deep, #6a4b96);
}
.ta-field input,
.ta-field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(155, 126, 200, .26);
  border-radius: 12px;
  background: #fff;
  color: #3d2e4a;
  font: 400 .98rem var(--font-body, 'DM Sans', sans-serif);
  transition: .2s ease;
  -webkit-appearance: none;
}
.ta-field input:focus,
.ta-field select:focus {
  outline: none;
  border-color: rgba(155, 126, 200, .55);
  box-shadow: 0 0 0 3px rgba(155, 126, 200, .14);
}
.ta-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media(max-width: 520px) {
  .ta-field-row { grid-template-columns: 1fr; }
}
.ta-field-hint {
  margin: 6px 0 0;
  font-size: .78rem;
  color: var(--text-soft);
  font-style: italic;
}

/* ─── Date de naissance personnalisée ─── */
.ta-birthdate-field {
  margin-bottom: 20px;
}
.ta-date-picker {
  display: grid;
  grid-template-columns: .75fr 1.15fr .9fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(155, 126, 200, .18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 18%, rgba(155,126,200,.11), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(201,168,108,.10), transparent 34%),
    rgba(255,255,255,.72);
  box-shadow: inset 0 0 26px rgba(155,126,200,.04), 0 12px 30px rgba(91,67,110,.06);
}
.ta-date-picker select {
  min-height: 50px;
  padding: 0 34px 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(155,126,200,.22);
  background:
    linear-gradient(45deg, transparent 50%, #9b7ec8 50%) calc(100% - 18px) 21px / 6px 6px no-repeat,
    linear-gradient(135deg, #9b7ec8 50%, transparent 50%) calc(100% - 14px) 21px / 6px 6px no-repeat,
    rgba(255,255,255,.92);
  color: #3d2e4a;
  font: 600 .94rem var(--font-body, 'DM Sans', sans-serif);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(91,67,110,.05);
}
.ta-date-picker select.is-placeholder {
  color: rgba(122,107,124,.72);
  font-weight: 500;
}
.ta-date-picker select:focus {
  border-color: rgba(155,126,200,.55);
  box-shadow: 0 0 0 3px rgba(155,126,200,.14), 0 8px 18px rgba(91,67,110,.05);
}
.ta-date-picker option:disabled {
  color: #b8aeba;
}
.ta-age-hint {
  margin-top: 8px;
  text-align: center;
  color: #8c7042;
  font-size: .76rem;
}
@media(max-width: 520px) {
  .ta-date-picker {
    grid-template-columns: 1fr;
    gap: 8px;
    border-radius: 20px;
  }
  .ta-date-picker select {
    width: 100%;
  }
}

/* ─── Autocomplete ville ─── */
.ta-city-wrap {
  position: relative;
}
.ta-city-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(155, 126, 200, .26);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(91, 67, 110, .14);
  max-height: 280px;
  overflow-y: auto;
  z-index: 30;
  display: none;
}
.ta-city-results.show { display: block; }
.ta-city-result {
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(155, 126, 200, .10);
  color: #3d2e4a;
  font-size: .94rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ta-city-result:last-child { border-bottom: none; }
.ta-city-result:hover,
.ta-city-result.active { background: rgba(155, 126, 200, .08); }
.ta-city-result .city-name { font-weight: 500; }
.ta-city-result .city-meta {
  font-size: .78rem;
  color: var(--text-soft);
  flex-shrink: 0;
}

/* ─── Bouton submit ─── */
.ta-submit {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  background: linear-gradient(135deg, #9b7ec8 0%, #c9a86c 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  font: 600 1rem var(--font-body, 'DM Sans', sans-serif);
  cursor: pointer;
  transition: .25s ease;
  letter-spacing: .03em;
  box-shadow: 0 12px 30px rgba(155, 126, 200, .32);
}
.ta-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(155, 126, 200, .42);
}
.ta-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* ─── Loading mystique ─── */
.ta-loading {
  text-align: center;
  padding: 60px 20px;
  display: none;
}
.ta-loading.show { display: block; }
.ta-loading-orb {
  width: 130px;
  height: 130px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .8), transparent 22%),
              radial-gradient(circle at 50% 50%, rgba(155, 126, 200, .55), transparent 60%),
              radial-gradient(circle, rgba(201, 168, 108, .25), transparent 70%);
  border: 1px solid rgba(155, 126, 200, .35);
  box-shadow: 0 0 60px rgba(155, 126, 200, .25);
  animation: ta-pulse 2.5s ease-in-out infinite;
}
@keyframes ta-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(155, 126, 200, .25); }
  50%      { transform: scale(1.06); box-shadow: 0 0 90px rgba(155, 126, 200, .42); }
}
.ta-loading h3 {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--lavender-deep, #6a4b96);
  margin: 0 0 10px;
}
.ta-loading p {
  color: var(--text-soft);
  font-size: .92rem;
  max-width: 50ch;
  margin: 0 auto;
}

/* ─── Résultat ─── */
.ta-result { display: none; }
.ta-result.show { display: block; }

/* Pillars : Soleil / Lune / Ascendant */
.ta-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px auto 28px;
  max-width: 980px;
}
@media (max-width: 780px) {
  .ta-pillars { grid-template-columns: 1fr; }
}
.ta-pillar {
  position: relative;
  text-align: center;
  padding: 36px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(201, 168, 108, .30);
  box-shadow: 0 20px 50px rgba(91, 67, 110, .10);
  overflow: hidden;
}
.ta-pillar::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 126, 200, .18), transparent 70%);
}
.ta-pillar-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(155, 126, 200, .10);
  color: var(--lavender-deep, #6a4b96);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ta-pillar-symbol {
  font-size: 3.2rem;
  color: var(--gold, #c9a86c);
  margin: 0 0 8px;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.ta-pillar-sign {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--lavender-deep, #6a4b96);
  margin: 0 0 6px;
  position: relative;
  z-index: 1;
}
.ta-pillar-deg {
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--text-soft);
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.ta-pillar-text {
  margin: 18px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: .92rem;
  position: relative;
  z-index: 1;
  text-align: left;
}

/* Mur d'inscription */
.ta-paywall {
  position: relative;
  margin: 36px auto 28px;
  max-width: 920px;
  padding: 48px 28px 40px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(155, 126, 200, .96) 0%, rgba(201, 168, 108, .92) 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 28px 70px rgba(91, 67, 110, .26);
  overflow: hidden;
}
.ta-paywall::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%);
}
.ta-paywall::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 70%);
}
.ta-paywall .lock {
  font-size: 2.4rem;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}
.ta-paywall h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  color: #fff;
}
.ta-paywall p {
  position: relative;
  z-index: 1;
  max-width: 60ch;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, .96);
  line-height: 1.7;
}
.ta-paywall-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 28px;
  text-align: left;
}
@media (max-width: 520px) {
  .ta-paywall-list { grid-template-columns: 1fr; }
}
.ta-paywall-list span {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: .88rem;
  border: 1px solid rgba(255, 255, 255, .18);
}
.ta-paywall-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: #fff;
  color: #6a4b96;
  border-radius: 999px;
  font: 600 1rem var(--font-body, 'DM Sans', sans-serif);
  text-decoration: none;
  transition: .25s ease;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
}
.ta-paywall-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .22);
}
.ta-paywall-secondary {
  display: block;
  margin-top: 14px;
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .8);
  font-size: .82rem;
  text-decoration: underline;
}
.ta-paywall-secondary:hover { color: #fff; }

/* Détail (caché par défaut, visible si user logué) */
.ta-detail {
  margin: 0 auto 28px;
  max-width: 920px;
  display: none;
}
.ta-detail.show { display: block; }
.ta-detail-card {
  margin-bottom: 14px;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(155, 126, 200, .18);
  box-shadow: 0 8px 22px rgba(91, 67, 110, .06);
}
.ta-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(155, 126, 200, .14);
}
.ta-detail-symbol {
  font-size: 2rem;
  color: var(--gold, #c9a86c);
  width: 50px;
  text-align: center;
  flex-shrink: 0;
}
.ta-detail-title {
  flex: 1;
}
.ta-detail-name {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.4rem;
  color: #3d2e4a;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}
.ta-detail-position {
  font-size: .82rem;
  color: var(--lavender-deep, #6a4b96);
  font-weight: 600;
  letter-spacing: .04em;
}
.ta-detail-text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
  font-size: .94rem;
}

/* Maisons */
.ta-houses {
  margin: 0 auto 28px;
  max-width: 920px;
  display: none;
}
.ta-houses.show { display: block; }
.ta-houses-title {
  text-align: center;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: #3d2e4a;
  margin: 0 0 18px;
}
.ta-houses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 780px) {
  .ta-houses-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ta-houses-grid { grid-template-columns: 1fr; }
}
.ta-house-card {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(155, 126, 200, .18);
}
.ta-house-num {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.3rem;
  color: var(--lavender-deep, #6a4b96);
  font-weight: 500;
  margin-bottom: 4px;
}
.ta-house-domain {
  font-size: .76rem;
  color: var(--gold, #c9a86c);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ta-house-cusp {
  font-size: .9rem;
  color: #3d2e4a;
  margin-bottom: 6px;
}
.ta-house-cusp strong {
  color: var(--lavender-deep, #6a4b96);
}

/* CTA voyant */
.ta-voyant-cta {
  margin: 32px auto;
  max-width: 720px;
  padding: 32px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(201, 168, 108, .30);
  text-align: center;
  box-shadow: 0 20px 50px rgba(91, 67, 110, .08);
}
.ta-voyant-cta h2 {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.5rem;
  margin: 0 0 12px;
  color: #3d2e4a;
  font-weight: 500;
}
.ta-voyant-cta p {
  margin: 0 0 20px;
  color: var(--text-soft);
  line-height: 1.7;
}
.ta-voyant-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #9b7ec8, #c9a86c);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .96rem;
  transition: .25s ease;
}
.ta-voyant-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(155, 126, 200, .35);
}

/* SEO content */
.ta-seo {
  max-width: 760px;
  margin: 36px auto;
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(155, 126, 200, .14);
}
.ta-seo h2 {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  font-weight: 500;
  color: #3d2e4a;
  margin: 0 0 14px;
}
.ta-seo h3 {
  margin: 22px 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--lavender-deep, #6a4b96);
}
.ta-seo p {
  margin: 0 0 12px;
  color: var(--text-soft);
  line-height: 1.78;
}
.ta-seo .faq-item {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(155, 126, 200, .18);
  background: rgba(255, 255, 255, .85);
  margin-bottom: 10px;
}
.ta-seo .faq-item summary {
  font-weight: 500;
  color: #3d2e4a;
  list-style: none;
  cursor: pointer;
  padding-right: 24px;
  position: relative;
}
.ta-seo .faq-item summary::-webkit-details-marker { display: none; }
.ta-seo .faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  color: var(--lavender-deep, #6a4b96);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform .25s ease;
}
.ta-seo .faq-item[open] summary::after {
  transform: rotate(45deg);
}
.ta-seo .faq-item p {
  margin: 12px 0 0;
  font-size: .94rem;
}

/* Erreurs */
.ta-error {
  display: none;
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 12px;
  background: rgba(220, 50, 60, .08);
  border: 1px solid rgba(220, 50, 60, .25);
  color: #b53037;
  font-size: .92rem;
}
.ta-error.show { display: block; }

/* Animations fade-up */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}


/* Harmonisation Céleste Voyance */
body[data-page="theme-astral"] .ta-voyant-cta {
  max-width: 980px;
  margin: 36px auto;
  padding: 34px 28px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(155,126,200,.10), rgba(201,168,108,.10));
  border: 1px solid rgba(155,126,200,.18);
  text-align: center;
  box-shadow: 0 18px 48px rgba(91,67,110,.08);
}
body[data-page="theme-astral"] .ta-voyant-cta h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}
body[data-page="theme-astral"] .ta-voyant-cta p {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}
body[data-page="theme-astral"] .ta-paywall-cta,
body[data-page="theme-astral"] .ta-submit,
body[data-page="theme-astral"] .ta-voyant-btn {
  min-height: 48px;
}
@media (max-width: 640px){
  body[data-page="theme-astral"] .ta-voyant-cta { padding: 28px 18px; border-radius: 24px; }
}

/* Verrou conversion : on garde les positions visibles, on réserve l'interprétation */
body[data-page="theme-astral"] .ta-result.is-locked .ta-pillar {
  padding-bottom: 86px;
}

body[data-page="theme-astral"] .ta-result.is-locked .ta-pillar-text {
  filter: blur(5px);
  opacity: .46;
  user-select: none;
  pointer-events: none;
}

body[data-page="theme-astral"] .ta-result.is-locked .ta-pillar::after {
  content: "🔒 Analyse complète après inscription";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 4;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(155, 126, 200, .22);
  color: #5a3d7a;
  font: 700 .82rem var(--font-body, 'DM Sans', sans-serif);
  box-shadow: 0 12px 28px rgba(91, 67, 110, .10);
}

body[data-page="theme-astral"] .ta-result.is-locked .ta-detail,
body[data-page="theme-astral"] .ta-result.is-locked .ta-houses {
  display: none !important;
}

body[data-page="theme-astral"] .ta-result:not(.is-locked) .ta-paywall {
  display: none !important;
}

@media (max-width: 640px) {
  body[data-page="theme-astral"] .ta-result.is-locked .ta-pillar {
    padding-bottom: 78px;
  }
  body[data-page="theme-astral"] .ta-result.is-locked .ta-pillar::after {
    left: 18px;
    right: 18px;
    bottom: 18px;
    font-size: .78rem;
  }
}

/* Correction finale : verrou conversion + lock 5 minutes */
body[data-page="theme-astral"] .ta-result.is-locked .ta-paywall {
  display: block !important;
}

body[data-page="theme-astral"] .ta-result.is-locked .ta-detail,
body[data-page="theme-astral"] .ta-result.is-locked .ta-detail.show,
body[data-page="theme-astral"] .ta-result.is-locked .ta-houses,
body[data-page="theme-astral"] .ta-result.is-locked .ta-houses.show {
  display: none !important;
}

body[data-page="theme-astral"] .ta-result.is-locked .ta-pillar-text {
  filter: blur(5px) !important;
  opacity: .42 !important;
}

body[data-page="theme-astral"] .ta-submit:disabled {
  cursor: not-allowed;
  opacity: .72;
  transform: none !important;
  box-shadow: 0 10px 24px rgba(155, 126, 200, .20);
}

body[data-page="theme-astral"] .ta-error.show {
  display: block;
}
