/* ============================================================
   ASHRA — Astrologie Spirituelle
   Charte graphique : congres.usinformatique.com
   Couleurs : Jaune #FFD100 · Bleu marine #07111F · Bleu #1A56DB
   Police : Poppins
   ============================================================ */

:root {
  --jaune:       #FFD100;
  --jaune-fond:  rgba(255,209,0,0.12);
  --jaune-bord:  rgba(255,209,0,0.35);
  --bleu:        #0A2D6E;
  --bleu-clair:  #1A56DB;
  --bleu-fond:   rgba(26,86,219,0.12);
  --fond:        #07111F;
  --fond2:       #0C1B30;
  --carte:       rgba(255,255,255,0.04);
  --bord:        rgba(255,255,255,0.08);
  --bord2:       rgba(255,255,255,0.05);
  --texte:       #EEF0F5;
  --texte-sec:   #7B8EA8;
  --succes:      #05C46B;
  --danger-fond: rgba(239,68,68,0.12);
  --danger-bord: rgba(239,68,68,0.3);
}

* { box-sizing: border-box; }

body {
  background: var(--fond);
  color: var(--texte);
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.ashra-nav {
  background: var(--fond2) !important;
  border-bottom: 2px solid var(--jaune);
  padding: 0.6rem 0;
  backdrop-filter: blur(10px);
}
.ashra-brand {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--jaune) !important;
  letter-spacing: 2px;
  text-decoration: none;
}
.ashra-brand span { color: #fff; }
.ashra-nav .nav-link {
  color: #9BAEC8 !important;
  font-weight: 500;
  font-size: 0.82rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.4rem;
  transition: color 0.2s, border-color 0.2s;
}
.ashra-nav .nav-link:hover { color: #fff !important; border-bottom-color: var(--jaune); }
.ashra-nav .nav-link.active,
.ashra-nav .nav-link[aria-current] { color: var(--jaune) !important; border-bottom-color: var(--jaune); font-weight: 700; }
.ashra-dropdown {
  background: var(--fond2) !important;
  border: 1px solid var(--jaune-bord) !important;
}
.ashra-dropdown .dropdown-item { color: var(--texte) !important; font-size: 0.85rem; }
.ashra-dropdown .dropdown-item:hover { background: var(--jaune-fond) !important; color: var(--jaune) !important; }
.navbar-toggler { border-color: rgba(255,209,0,.4) !important; }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn-jaune, .btn-gold {
  background: var(--jaune);
  color: #07111F !important;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.4rem;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.btn-jaune:hover, .btn-gold:hover {
  background: #E8BC00;
  color: #07111F !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(255,209,0,.35);
}
.btn-jaune:disabled, .btn-gold:disabled { opacity: 0.55; transform: none; }

.btn-bleu {
  background: var(--bleu-clair);
  color: #fff !important;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.4rem;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.btn-bleu:hover { background: #0E46C0; color: #fff !important; }

.btn-outline-gold, .btn-contour {
  background: transparent;
  color: var(--jaune) !important;
  border: 1.5px solid var(--jaune);
  font-weight: 700;
  border-radius: 8px;
  padding: 0.5rem 1.4rem;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.btn-outline-gold:hover, .btn-contour:hover { background: var(--jaune); color: #07111F !important; }

.btn-outline-bleu {
  background: transparent;
  color: var(--bleu-clair) !important;
  border: 1.5px solid var(--bleu-clair);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1.4rem;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.btn-outline-bleu:hover { background: var(--bleu-clair); color: #fff !important; }

.btn-danger-soft {
  background: var(--danger-fond);
  color: #F87171 !important;
  border: 1px solid var(--danger-bord);
  font-weight: 600;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.btn-danger-soft:hover { background: rgba(239,68,68,.25); color: #FCA5A5 !important; }

.btn-quick {
  background: var(--bleu-fond);
  color: #93C5FD;
  border: 1px solid rgba(26,86,219,.35);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-quick:hover { background: rgba(26,86,219,.25); color: #fff; border-color: var(--bleu-clair); }

/* ============================================================
   BADGES
   ============================================================ */
.badge-jaune { background: var(--jaune-fond); color: var(--jaune); border: 1px solid var(--jaune-bord); border-radius: 20px; padding: 3px 10px; font-size: .7rem; font-weight: 700; }
.badge-bleu  { background: var(--bleu-fond);  color: #93C5FD;    border: 1px solid rgba(26,86,219,.35); border-radius: 20px; padding: 3px 10px; font-size: .7rem; font-weight: 700; }
.badge-ok    { background: rgba(5,196,107,.15); color: var(--succes); border-radius: 20px; padding: 3px 10px; font-size: .7rem; font-weight: 700; }
.badge-danger { background: var(--danger-fond); color: #F87171; border-radius: 20px; padding: 3px 10px; font-size: .7rem; font-weight: 700; }

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form-control, .form-select {
  background: rgba(255,255,255,0.05) !important;
  border: 1.5px solid rgba(255,255,255,0.1) !important;
  color: var(--texte) !important;
  border-radius: 8px;
  font-size: 0.88rem;
}
.form-control:focus, .form-select:focus {
  background: rgba(255,255,255,0.07) !important;
  border-color: var(--jaune) !important;
  box-shadow: 0 0 0 3px rgba(255,209,0,.18) !important;
  color: var(--texte) !important;
}
.form-control::placeholder { color: #4A5568 !important; }
.form-control:disabled { background: rgba(255,255,255,0.03) !important; color: #555 !important; }
.form-label { font-size: 0.78rem; color: var(--texte-sec); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.3rem; }
select option { background: #0C1B30; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--fond);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,209,0,.14) 0%, transparent 65%);
  pointer-events: none;
}
.stars-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 70%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 85%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 55%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(2px 2px at 40% 20%, rgba(255,209,0,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 80%, rgba(26,86,219,0.4) 0%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: var(--jaune-fond);
  color: var(--jaune);
  border: 1px solid var(--jaune-bord);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  animation: pulse-badge 3s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,209,0,0); }
  50% { box-shadow: 0 0 0 6px rgba(255,209,0,.08); }
}
.hero-title {
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.hero-title .accent { color: var(--jaune); }
.hero-subtitle {
  font-size: 1rem;
  color: var(--texte-sec);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-weight: 400;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section { background: var(--fond2); padding: 5rem 0; }
.sec-titre {
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.sec-sous-titre { color: var(--texte-sec); font-size: 0.9rem; margin-bottom: 3rem; }
.feature-card {
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: 14px;
  padding: 1.75rem;
  transition: all 0.25s;
  height: 100%;
}
.feature-card:hover {
  border-color: var(--jaune-bord);
  background: var(--jaune-fond);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255,209,0,.1);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.feature-card h5 { font-weight: 700; color: #fff; font-size: 0.95rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--texte-sec); font-size: 0.84rem; margin: 0; line-height: 1.6; }

.signs-strip {
  display: flex; justify-content: center; gap: 1.5rem;
  font-size: 1.6rem; opacity: 0.15; padding: 0.5rem 0;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-card {
  background: var(--carte);
  border: 1.5px solid var(--bord);
  border-radius: 14px;
  padding: 2.5rem;
}
.auth-header { margin-bottom: 1.5rem; }
.auth-symbol {
  font-size: 2rem;
  color: var(--jaune);
  display: block;
  margin-bottom: 0.5rem;
}
.auth-card h2 { font-weight: 800; font-size: 1.4rem; color: #fff; }
.auth-card .text-muted { color: var(--texte-sec) !important; font-size: 0.85rem; }
.divider-stars { border-color: var(--bord); }
.link-gold, .link-jaune { color: var(--jaune) !important; text-decoration: none; font-weight: 600; }
.link-gold:hover, .link-jaune:hover { color: #E8BC00 !important; }
.text-gold, .text-jaune { color: var(--jaune) !important; }
.text-bleu { color: var(--bleu-clair) !important; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-title { font-weight: 800; font-size: 1.6rem; color: #fff; }
.section-label {
  color: var(--texte-sec);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Carte planète */
.planet-card {
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.planet-card:hover { border-color: var(--jaune-bord); background: var(--jaune-fond); }
.planet-symbol { font-size: 1.6rem; color: var(--jaune); min-width: 2rem; text-align: center; }
.planet-info { display: flex; flex-direction: column; gap: 1px; }
.planet-name { color: var(--texte-sec); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.planet-sign { color: #fff; font-size: 0.92rem; font-weight: 700; }
.planet-degree { color: var(--texte-sec); font-size: 0.76rem; }
.retro { color: #F87171; font-size: 0.72rem; }

/* Section dashboard */
.dash-section {
  background: var(--carte);
  border: 1.5px solid var(--bord);
  border-radius: 14px;
  padding: 1.4rem;
  height: 100%;
}
.dash-section-title { color: var(--jaune); font-weight: 800; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }

/* Items conversation */
.conv-item {
  display: block;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--bord2);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.4rem;
  text-decoration: none;
  transition: all 0.2s;
}
.conv-item:hover { border-color: var(--jaune-bord); background: var(--jaune-fond); }
.conv-title { color: #fff; font-size: 0.84rem; font-weight: 600; }
.conv-meta { color: var(--texte-sec); font-size: 0.72rem; margin-top: 0.2rem; }

.alert-astro {
  background: var(--bleu-fond);
  border: 1px solid rgba(26,86,219,.35);
  color: #93C5FD;
  border-radius: 10px;
  font-size: 0.84rem;
}
.alert-astro a { color: var(--jaune); font-weight: 600; }

/* ============================================================
   FAMILY CARDS
   ============================================================ */
.family-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.family-card {
  background: var(--carte);
  border: 1.5px solid var(--bord);
  border-radius: 14px;
  padding: 1.25rem;
  transition: all 0.25s;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.family-card:hover { border-color: var(--jaune-bord); background: var(--jaune-fond); transform: translateY(-2px); }
.family-card.selected { border-color: var(--jaune); background: var(--jaune-fond); box-shadow: 0 0 0 3px rgba(255,209,0,.15); }
.family-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bleu), var(--bleu-clair));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
  border: 2px solid var(--jaune-bord);
}
.family-name { font-weight: 700; color: #fff; font-size: 0.92rem; margin-bottom: 0.15rem; }
.family-relation {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 10px;
  margin-bottom: 0.5rem;
}
.rel-wife { background: rgba(244,114,182,.15); color: #F472B6; border: 1px solid rgba(244,114,182,.3); }
.rel-child { background: var(--bleu-fond); color: #93C5FD; border: 1px solid rgba(26,86,219,.35); }
.rel-self { background: var(--jaune-fond); color: var(--jaune); border: 1px solid var(--jaune-bord); }
.family-meta { color: var(--texte-sec); font-size: 0.76rem; }
.family-card-actions { display: flex; gap: 0.4rem; margin-top: 0.9rem; flex-wrap: wrap; }

/* ============================================================
   CHAT
   ============================================================ */
.chat-page { overflow: hidden; }
.chat-topbar {
  background: var(--fond2);
  border-bottom: 2px solid var(--jaune);
  padding: 0.65rem 0;
  position: sticky;
  top: 56px;
  z-index: 100;
}
.btn-back {
  color: var(--texte-sec);
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  font-size: 0.84rem;
  transition: all 0.2s;
}
.btn-back:hover { color: var(--jaune); border-color: var(--jaune-bord); }
.messages-area { background: var(--fond); }
.message-row { display: flex; margin-bottom: 1.25rem; }
.msg-user { justify-content: flex-end; }
.msg-assistant { justify-content: flex-start; }
.message-bubble { display: flex; gap: 0.65rem; max-width: 82%; }
.msg-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bleu), var(--bleu-clair));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--jaune);
  flex-shrink: 0;
  border: 1.5px solid var(--jaune-bord);
}
.user-avatar { background: var(--jaune-fond); color: var(--jaune); order: 1; border-color: var(--jaune-bord); }
.msg-content {
  background: var(--fond2);
  border: 1px solid var(--bord);
  border-radius: 12px;
  padding: 0.7rem 1rem;
}
.msg-user .msg-content {
  background: var(--jaune-fond);
  border-color: var(--jaune-bord);
  border-radius: 12px 12px 4px 12px;
}
.msg-assistant .msg-content { border-radius: 12px 12px 12px 4px; }
.msg-text { color: var(--texte); font-size: 0.87rem; line-height: 1.75; }
.msg-text h5 { font-size: 0.9rem; font-weight: 800; color: var(--jaune); margin-top: 1rem; margin-bottom: 0.3rem; }
.msg-text h6 { color: #fff; font-size: 0.84rem; font-weight: 700; }
.msg-text ul { padding-left: 1.2rem; margin: 0.4rem 0; }
.msg-text li { color: var(--texte); font-size: 0.87rem; line-height: 1.7; }
.msg-text strong { color: #fff; }
.msg-time { color: var(--texte-sec); font-size: 0.68rem; margin-top: 0.3rem; text-align: right; }
.chat-textarea {
  resize: none; border-right: none !important;
  border-radius: 8px 0 0 8px !important; font-size: 0.88rem;
}
.chat-input-group .btn-jaune, .chat-input-group .btn-gold { border-radius: 0 8px 8px 0; padding: 0.5rem 1.2rem; }

/* Typing dots */
.typing-dots { display: flex; gap: 5px; align-items: center; padding: 4px 0; }
.typing-dots span {
  width: 7px; height: 7px;
  background: var(--jaune);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-7px); opacity: 1; }
}

/* ============================================================
   CARTES CONVERSATIONS / RAPPORTS
   ============================================================ */
.conv-card {
  background: var(--carte);
  border: 1.5px solid var(--bord);
  border-radius: 14px;
  padding: 1.2rem;
  transition: all 0.2s;
  height: 100%;
}
.conv-card:hover { border-color: var(--jaune-bord); background: var(--jaune-fond); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,209,0,.08); }
.conv-card-header { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.7rem; }
.conv-card-header h6 { color: #fff; font-size: 0.86rem; font-weight: 700; }
.conv-icon { font-size: 1.3rem; color: var(--jaune); flex-shrink: 0; margin-top: 2px; }
.conv-card-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* Empty state */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-symbol { font-size: 2.5rem; color: var(--jaune); opacity: 0.3; margin-bottom: 1rem; }
.empty-state h4 { color: #fff; font-weight: 700; margin-bottom: 0.4rem; }
.empty-state p { color: var(--texte-sec); font-size: 0.88rem; }

/* ============================================================
   RAPPORT DETAIL
   ============================================================ */
.report-content {
  background: var(--carte);
  border: 1.5px solid var(--bord);
  border-radius: 14px;
  padding: 2rem;
  line-height: 1.8;
  color: var(--texte);
  font-size: 0.9rem;
}
.planet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.6rem; }
.planet-card-sm {
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: 10px;
  padding: 0.65rem;
  text-align: center;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.planet-card-sm .ps { font-size: 1.2rem; color: var(--jaune); }
.planet-card-sm .pn { font-size: 0.66rem; color: var(--texte-sec); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.planet-card-sm .pg { font-size: 0.82rem; color: #fff; font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.ashra-footer { border-top: 2px solid var(--jaune); background: var(--fond2); }
.ashra-footer p { font-size: 0.78rem; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert-success { background: rgba(5,196,107,.12); border-color: rgba(5,196,107,.3); color: #34D399; }
.alert-danger  { background: var(--danger-fond); border-color: var(--danger-bord); color: #F87171; }
.alert-info    { background: var(--bleu-fond); border-color: rgba(26,86,219,.35); color: #93C5FD; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--fond); }
::-webkit-scrollbar-thumb { background: rgba(255,209,0,.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,209,0,.45); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-title { font-size: 1.9rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .message-bubble { max-width: 95%; }
  .dashboard-title { font-size: 1.3rem; }
  .family-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .family-grid { grid-template-columns: 1fr; }
}
