/* ============================================================
   ASTRAL THEME WIDGET v3
   Fond : transparent total — s'intègre à n'importe quel site sombre
   ============================================================ */

/* Reset strict pour isoler du thème WP/Elementor */
#astral-widget,
#astral-widget * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
#astral-widget button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
#astral-widget form { display: block; }

/* ---- Conteneur principal ---- */
#astral-widget {
  font-family: 'Poppins', sans-serif;

  /* Transparent : laisse voir le fond du site */
  background: transparent !important;
  background-color: transparent !important;

  /* Bordure subtile pour délimiter la zone */
  border: 1px solid rgba(205, 174, 218, 0.13);
  border-radius: 24px;
  padding: 48px 44px;
  max-width: 780px;
  margin: 0 auto;
  color: #e8d5f5;
  position: relative;
  overflow: visible;

  /* Ombre légère pour la profondeur */
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(205, 174, 218, 0.1);
}

/* ---- Steps ---- */
.astral-step          { display: none; }
.astral-step.active   { display: block; animation: aUp .42s ease both; }

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

/* ---- Header ---- */
.astral-header { text-align: center; margin-bottom: 36px; }

.astral-sparkles {
  display: block;
  font-size: 16px;
  letter-spacing: 10px;
  color: rgba(205, 174, 218, 0.4);
  margin-bottom: 14px;
}
.sp { display: inline-block; }
.sp.s2 { animation: spk 2.4s .8s infinite; }
.sp.s3 { animation: spk 2.4s 1.6s infinite; }
@keyframes spk {
  0%,100% { opacity: .3; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.25); }
}

.astral-title {
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 700;
  color: #CDAEDA;
  margin-bottom: 10px;
  letter-spacing: .4px;
  text-shadow: 0 0 50px rgba(205, 174, 218, 0.3);
}
.astral-sub {
  font-size: 14px;
  font-weight: 300;
  color: rgba(205, 174, 218, 0.58);
}

/* ---- Formulaire ---- */
#astral-form { max-width: 560px; margin: 0 auto; }

.astral-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

.astral-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.astral-field label {
  font-size: 11px;
  font-weight: 600;
  color: #CDAEDA;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.astral-field input[type="date"],
.astral-field input[type="time"],
.astral-field input[type="text"],
.astral-field input[type="email"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(205, 174, 218, 0.2);
  border-radius: 12px;
  padding: 13px 16px;
  color: #e8d5f5;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
}
.astral-field input:focus {
  border-color: rgba(205, 174, 218, 0.55);
  background: rgba(205, 174, 218, 0.07);
  box-shadow: 0 0 0 3px rgba(205, 174, 218, 0.08);
}
.astral-field input::placeholder { color: rgba(205, 174, 218, 0.28); }

.astral-hint {
  font-size: 11px;
  color: rgba(205, 174, 218, 0.35);
  font-style: italic;
}

/* Autocomplete */
.a-ac-wrap { position: relative; }
.a-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  background: #130e24;
  border: 1px solid rgba(205, 174, 218, 0.22);
  border-radius: 12px;
  z-index: 9999;
  max-height: 210px;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
}
.a-suggestions.open { display: block; }
.a-sug-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  color: #c5b0d8;
  cursor: pointer;
  transition: background .15s;
}
.a-sug-item:hover { background: rgba(205,174,218,.1); color: #CDAEDA; }

/* ---- Bouton ---- */
.astral-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .4px;
  background: linear-gradient(135deg, #CDAEDA 0%, #a87dc0 55%, #7b4fa8 100%);
  color: #08060f;
  transition: transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}
.astral-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 60%);
  opacity: 0; transition: opacity .25s;
}
.astral-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(205,174,218,.3); }
.astral-btn:hover::after { opacity: 1; }
.astral-btn:active { transform: translateY(0); }
.astral-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.astral-btn svg { flex-shrink: 0; transition: transform .25s; }
.astral-btn:hover svg { transform: translateX(4px); }

.astral-btn--ghost {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid rgba(205,174,218,.22) !important;
  color: rgba(205,174,218,.6) !important;
  font-size: 13px;
  padding: 12px 28px;
  margin-top: 20px;
  box-shadow: none !important;
}
.astral-btn--ghost:hover {
  background: rgba(205,174,218,.05) !important;
  border-color: rgba(205,174,218,.4) !important;
  color: #CDAEDA !important;
  transform: none !important;
}

.a-error {
  font-size: 13px;
  color: #ff7eb3;
  text-align: center;
  margin-top: 10px;
  min-height: 18px;
  font-family: 'Poppins', sans-serif;
}

/* ---- Loading ---- */
.astral-loading { text-align: center; padding: 64px 20px; }
.orrery { position: relative; width: 120px; height: 120px; margin: 0 auto 28px; }
.orrery-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, #CDAEDA, #7b4fa8);
  box-shadow: 0 0 22px rgba(205,174,218,.85);
}
.orbit {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  border: 1px solid rgba(205,174,218,.15);
  animation: spin linear infinite;
}
.o1 { width: 42px;  height: 42px;  animation-duration: 2s; }
.o2 { width: 72px;  height: 72px;  animation-duration: 3.6s; }
.o3 { width: 108px; height: 108px; animation-duration: 6.2s; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.dot { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); border-radius: 50%; }
.d1 { width: 7px; height: 7px; background: #FFD700; box-shadow: 0 0 8px #FFD700; }
.d2 { width: 6px; height: 6px; background: #FF6B6B; box-shadow: 0 0 8px #FF6B6B; }
.d3 { width: 5px; height: 5px; background: #6495ED; box-shadow: 0 0 8px #6495ED; }
.loading-title { font-size: 19px; font-weight: 600; color: #CDAEDA; margin-bottom: 8px; }
.loading-sub   { font-size: 13px; font-weight: 300; color: rgba(205,174,218,.5); }

/* ---- Carte du ciel ---- */
.chart-wrap { display: flex; justify-content: center; margin-bottom: 28px; }
#a-chart {
  width: 300px; height: 300px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(205,174,218,.15), 0 0 60px rgba(205,174,218,.06);
  display: block;
}

/* ---- Trinité ---- */
.a-trinity {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.t-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 22px;
  border: 1px solid rgba(205,174,218,.1);
  background: rgba(255,255,255,.02);
  flex: 1;
  max-width: 180px;
  transition: background .2s;
}
.t-item:first-child { border-radius: 14px 0 0 14px; }
.t-item:last-child  { border-radius: 0 14px 14px 0; }
.t-item + .t-item   { border-left: none; }
.t-item:hover       { background: rgba(205,174,218,.04); }
.t-sym   { font-size: 22px; margin-bottom: 4px; }
.t-label { font-size: 9px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: rgba(205,174,218,.45); margin-bottom: 4px; }
.t-sign  { font-size: 13px; font-weight: 600; color: #e8d5f5; }
.t-deg   { font-size: 11px; font-weight: 300; color: rgba(205,174,218,.4); margin-top: 2px; }

/* ---- Grille planètes ---- */
.a-section-label {
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: rgba(205,174,218,.4);
  padding: 14px 0 6px;
  border-bottom: 1px solid rgba(205,174,218,.1);
}
.a-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.a-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(205,174,218,.1);
  border-radius: 14px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, background .2s, transform .2s;
}
.a-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--pc, #CDAEDA);
  opacity: .4;
}
.a-card:hover { border-color: rgba(205,174,218,.25); background: rgba(205,174,218,.04); transform: translateY(-1px); }
.a-card.full  { grid-column: 1 / -1; }

.a-card-top  { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.a-icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
  border: 1px solid var(--pc, #CDAEDA);
  background: color-mix(in srgb, var(--pc, #CDAEDA) 10%, transparent);
}
.a-meta   { flex: 1; min-width: 0; }
.a-name   { font-size: 12px; font-weight: 600; color: #e8d5f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-pos    { font-size: 11px; font-weight: 500; color: var(--pc, #CDAEDA); margin-top: 2px; }
.a-house  { font-size: 10px; color: rgba(205,174,218,.35); flex-shrink: 0; }
.a-teaser { font-size: 11.5px; font-weight: 300; color: rgba(205,174,218,.58); line-height: 1.55; font-style: italic; }

/* ---- CTA box ---- */
.a-cta-box {
  background: rgba(205,174,218,.05);
  border: 1px solid rgba(205,174,218,.15);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  margin-bottom: 4px;
}
.cta-icon { font-size: 26px; margin-bottom: 10px; }
.a-cta-box h3 { font-size: 16px; font-weight: 600; color: #CDAEDA; margin-bottom: 8px; }
.a-cta-box p  { font-size: 13px; font-weight: 300; color: rgba(205,174,218,.55); line-height: 1.6; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  #astral-widget          { padding: 30px 18px; border-radius: 16px; }
  .astral-row             { grid-template-columns: 1fr; }
  .a-grid                 { grid-template-columns: 1fr; }
  .a-card.full            { grid-column: 1; }
  #a-chart                { width: 250px; height: 250px; }
  .t-item                 { padding: 12px 14px; }
}
