

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  
  --bg:         #07050f;
  --bg2:        #0d0b1a;
  --bg3:        #100d20;
  --bg4:        #18153a;
  --border:     #1e1a35;
  --border2:    #2a2040;

  
  --violet:     #7c3aed;
  --violet-rgb: 124, 58, 237;   
  --violet-d:   #5b21b6;
  --violet-l:   #a78bfa;
  --indigo:     #4f46e5;
  --gold:       #d4a83a;
  --gold-l:     #f0cc70;
  --rose:       #f43f5e;

  
  --text:       #e2d9ff;
  --text-dim:   #9b92c4;
  --text-mute:  #4a4270;

  
  --green:      #6ee7b7;
  --red:        #f87171;

  
  --font-ui:    "Inter", "Segoe UI", system-ui, Arial, sans-serif;
  --font-title: "Georgia", "Palatino", serif;
  --mono:       ui-monospace, Consolas, "Courier New", monospace;

  
  --radius:     10px;
  --radius-sm:  6px;
  --radius-lg:  16px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
}

.hidden { display: none !important; }

#screen-home {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.home-bg {
  position: fixed;
  inset: 0;
  background: url('bg.jpg') center center / cover no-repeat;
  filter: blur(4px) brightness(0.55);
  transform: scale(1.04);
  z-index: 0;
}

/* Enfants directs mis en flux (position:relative). On EXCLUT les éléments flottants
   qui doivent rester en position:fixed (sinon cette règle, prioritaire à cause du #id,
   écrase leur positionnement et les renvoie dans le flux, en haut à gauche). */
#screen-home > *:not(.home-bg):not(.modal-overlay):not(.modal-rdv-overlay):not(.notif-panel):not(.resume-banner):not(.cookie-banner),
#screen-account > *:not(.home-bg):not(.modal-overlay):not(.modal-rdv-overlay):not(.notif-panel):not(.resume-banner):not(.cookie-banner) { position: relative; z-index: 1; }

.home-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(7, 5, 15, 0.74);
  border-bottom: 1px solid rgba(var(--violet-rgb), 0.18);
}

.logo-text {
  font-family: var(--font-title);
  font-size: 22px;
  letter-spacing: 6px;
  color: var(--gold-l);
  font-weight: 400;
  text-transform: lowercase;
}

.header-tagline {
  /* Centrée en ABSOLU sur la largeur de la page (translate -50%), et non plus « au milieu
     de l'espace restant » entre le logo (étroit) et la nav (large) — sinon elle penchait à
     gauche (demande 14/07). pointer-events:none pour ne jamais gêner les boutons. */
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.25; text-align: center; max-width: 46%; pointer-events: none;
}
.ht-title {
  font-family: var(--font-title); font-size: 18px; color: var(--gold-l);
  letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.ht-sub {
  font-size: 12.5px; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
@media (max-width: 1024px) { .header-tagline { display: none; } }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark { height: 26px; width: auto; display: block; }
.brand-name {
  font-family: var(--font-title);
  font-size: 22px;
  letter-spacing: .04em;
  color: var(--gold-l);
  font-weight: 400;
  line-height: 1;
}
.brand-tld { font-size: .5em; color: var(--text-dim); font-style: italic; letter-spacing: .02em; }
.app-header .brand-mark { height: 22px; }
.app-header .brand-name { font-size: 18px; }

.home-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-glass {
  padding: 9px 22px;
  border-radius: 50px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-glass-outline {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(162, 139, 250, 0.35);
  color: var(--violet-l);
}
.btn-glass-outline:hover {
  background: rgba(162, 139, 250, 0.12);
  border-color: var(--violet-l);
}

.btn-glass-accent {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 2px 18px rgba(var(--violet-rgb), 0.35);
}
.btn-glass-accent:hover {
  background: var(--violet-d);
  box-shadow: 0 2px 24px rgba(var(--violet-rgb), 0.55);
}

.btn-sm { padding: 6px 14px; font-size: 12px; }

.hero {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 20px 18px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 0 2px 24px rgba(var(--violet-rgb), 0.5);
}

.hero-sub {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 0;
  line-height: 1.5;
}

.hero-card {
  width: 100%;
  max-width: 520px;
  background: rgba(13, 11, 26, 0.86);
  border: 1px solid rgba(var(--violet-rgb), 0.25);
  border-radius: var(--radius-lg);
  padding: 28px 28px 20px;
  text-align: left;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(162, 139, 250, 0.06);
}

.hero-theme-section {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 80px;
  text-align: center;
}
.hero-theme-inner {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.hero-theme-badge {
  display: inline-block;
  background: rgba(212, 168, 58, 0.13);
  border: 1px solid rgba(212, 168, 58, 0.5);
  color: var(--gold-l);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 20px;
  border-radius: 50px;
}
.hero-theme-title {
  font-family: var(--font-title);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 36px rgba(var(--violet-rgb), 0.55), 0 0 80px rgba(212,168,58,0.15);
}
.hero-theme-sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 440px;
  line-height: 1.65;
}
.hero-theme-cta {
  padding: 14px 40px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: .5px;
  box-shadow: 0 4px 32px rgba(var(--violet-rgb), 0.45) !important;
}
.hero-theme-login {
  font-size: 13px;
  color: var(--text-mute);
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-text-link {
  background: none;
  border: none;
  color: var(--violet-l);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}
.btn-text-link:hover { color: #fff; }
@media (max-width: 600px) {
  .hero-theme-section { padding: 40px 16px 60px; }
  .hero-theme-sub { font-size: 14px; }
  .hero-theme-cta { padding: 12px 28px !important; font-size: 14px !important; }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 5, 15, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid rgba(var(--violet-rgb), 0.3);
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(162, 139, 250, 0.08);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-mute);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color .15s;
}
.modal-close:hover { color: var(--text); }

.modal-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 400;
  color: var(--gold-l);
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-align: center;
}

.modal-switch {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-mute);
}
.modal-switch a {
  color: var(--violet-l);
  text-decoration: none;
}
.modal-switch a:hover { text-decoration: underline; }

.btn-primary {
  width: 100%;
  background: var(--violet);
  color: #fff;
  border: none;
  padding: 12px 18px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 50px;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 2px 16px rgba(var(--violet-rgb), 0.35);
  margin-top: 6px;
}
.btn-primary:hover { background: var(--violet-d); box-shadow: 0 2px 24px rgba(var(--violet-rgb), 0.5); }
.btn-primary:disabled { opacity: .6; cursor: default; }

#screen-app {
  display: flex;
  flex-direction: column;
  height: 100dvh;   
  overflow: hidden;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border2);
  flex-shrink: 0;
  gap: 12px;
}

.app-header-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.user-email, #app-user-email, #acc-user-email, #home-user-email { display: none !important; }

#home-user-email {
  font-size: 12px;
  color: var(--text-mute);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.col-left {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  overflow-y: auto;
  overflow-x: hidden;
}

.col-right {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  overflow-y: auto;
  overflow-x: hidden;
}

.section-title {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 14px;
  text-transform: uppercase;
  font-weight: 500;
}

input[type=text],
input[type=email],
input[type=password] {
  width: 100%;
  background: rgba(7, 5, 15, 0.5);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 10px 12px;
  margin-bottom: 10px;
  font-family: var(--font-ui);
  font-size: 13px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(var(--violet-rgb), 0.15);
}
input::placeholder { color: var(--text-mute); }

.pwd-wrap {
  position: relative;
  width: 100%;
}

.pwd-wrap input[type=password],
.pwd-wrap input[type=text] {
  width: 100%;
  margin-bottom: 10px;
  padding-right: 40px; 
  box-sizing: border-box;
}
.pwd-toggle {
  position: absolute;
  top: 0;
  right: 0;
  height: calc(100% - 10px); 
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-mute);
  cursor: pointer;
  padding: 0;
  transition: color .15s;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pwd-toggle:hover { color: var(--gold); }
.pwd-toggle svg { display: block; pointer-events: none; }
@media (max-width: 480px) {
  .pwd-toggle { width: 34px; }
}

.radio-group {
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.radio-group label { margin-left: 8px; cursor: pointer; }
.radio-group input[type=radio] { margin-right: 4px; accent-color: var(--violet-l); }

.sexe-choice {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(7, 5, 15, 0.6);
}
.sexe-choice .sexe-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mute);
  letter-spacing: normal;
  flex: 0 0 100%;
}
.theme-group-label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 12px 0 2px;
}
.theme-group-label:first-child { margin-top: 0; }

/* ── Écran d'attente « votre ciel s'assemble » (création du thème, ~2 min) ── */
.theme-wait { text-align: center; padding: 18px 6px 8px; }
.theme-wait-anim { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; }
.tw-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(212,168,58,.45);
  animation: twspin 26s linear infinite;
}
.tw-ring2 { inset: 22px; border-color: rgba(212,168,58,.25); animation-duration: 18s; animation-direction: reverse; }
.tw-orbit {
  position: absolute; inset: 0; border-radius: 50%;
  animation: twspin 9s linear infinite;
}
.tw-o2 { inset: 22px; animation-duration: 14s; animation-direction: reverse; }
.tw-o3 { inset: 44px; animation-duration: 6.5s; }
.tw-planet {
  position: absolute; top: -4px; left: 50%; margin-left: -4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-l); box-shadow: 0 0 8px rgba(240,204,112,.8);
}
.tw-o2 .tw-planet { width: 6px; height: 6px; background: #9fb6e8; box-shadow: 0 0 8px rgba(159,182,232,.8); }
.tw-o3 .tw-planet { width: 5px; height: 5px; background: #e8b7a0; box-shadow: 0 0 7px rgba(232,183,160,.8); }
.tw-core {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--gold-l); font-size: 26px;
  animation: twpulse 2.6s ease-in-out infinite;
}
@keyframes twspin { to { transform: rotate(360deg); } }
@keyframes twpulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }
.theme-wait-msg {
  min-height: 66px; display: flex; align-items: center; justify-content: center;
  color: var(--gold-l); font-size: 15px; line-height: 1.5; padding: 0 8px;
  transition: opacity .6s ease;
}
.theme-wait-msg.tw-fade { opacity: 0; }
.theme-wait-bar {
  height: 4px; border-radius: 3px; margin: 14px 10px 8px;
  background: rgba(212,168,58,.15); overflow: hidden;
}
.theme-wait-fill {
  height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-l));
}
.theme-wait-hint { font-size: 12.5px; color: var(--text-mute); }

/* ── Voile « Bienvenue sur 123venus » (première visite) ── */
#welcome-overlay {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 4, 12, 0.88);
  animation: welcomeIn .9s ease both;
}
#welcome-overlay .welcome-text {
  font-family: var(--font-title);
  font-size: clamp(26px, 5vw, 52px);
  color: var(--gold-l);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 20px;
  text-shadow: 0 0 34px rgba(240, 204, 112, .45);
  animation: welcomeText 1.4s ease both;
}
#welcome-overlay.welcome-out { animation: welcomeOut .9s ease both; }
@keyframes welcomeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes welcomeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes welcomeText { from { opacity: 0; transform: scale(.94); letter-spacing: .3em; }
                         to { opacity: 1; transform: scale(1); letter-spacing: .14em; } }

/* ── File d'attente avant mise en relation ── */
#queue-overlay {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 4, 12, 0.9);
  padding: 20px;
}
#queue-overlay .queue-card {
  max-width: 480px; width: 100%;
  background: rgba(13, 11, 26, 0.96);
  border: 1px solid rgba(212, 168, 58, .3);
  border-radius: 16px;
  padding: 34px 30px;
  text-align: center;
}
#queue-overlay .queue-dots { margin-bottom: 20px; }
#queue-overlay .queue-dots span {
  display: inline-block; width: 10px; height: 10px; margin: 0 5px;
  border-radius: 50%; background: var(--gold-l);
  animation: queueDot 1.3s ease-in-out infinite;
}
#queue-overlay .queue-dots span:nth-child(2) { animation-delay: .2s; }
#queue-overlay .queue-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes queueDot { 0%, 100% { opacity: .25; transform: translateY(0); }
                      50% { opacity: 1; transform: translateY(-6px); } }
#queue-overlay .queue-msg { font-size: 16px; color: var(--gold-l); line-height: 1.55; margin-bottom: 10px; }
#queue-overlay .queue-sub { font-size: 13px; color: var(--text-mute); margin-bottom: 8px; }
#queue-overlay .queue-warn { font-size: 12.5px; color: #d4a83a; letter-spacing: .04em; margin-bottom: 18px; }
.sexe-choice label {
  cursor: pointer;
  font-size: 14px;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  min-height: 0;
}
.sexe-choice input[type=radio] {
  width: 16px; height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

.sexe-choice.field-missing {
  border-color: #f1646c;
  background: rgba(241, 100, 108, 0.10);
  animation: sexePulse 1s ease-in-out 2;
}
@keyframes sexePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(241, 100, 108, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(241, 100, 108, 0.25); }
}

.form-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.form-row > input { flex: 1 1 140px; }
.form-row > .radio-group { flex: 0 0 auto; margin-bottom: 10px; }

#astro-start,
#app-astro-start {
  width: 100%;
  background: var(--violet);
  color: #fff;
  border: none;
  padding: 12px 18px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 50px;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 2px 16px rgba(var(--violet-rgb), 0.35);
  margin-top: 4px;
}
#astro-start:hover, #app-astro-start:hover {
  background: var(--violet-d);
  box-shadow: 0 2px 24px rgba(var(--violet-rgb), 0.5);
}
#app-astro-start:disabled { opacity: .6; cursor: default; }

.form-err {
  color: var(--red);
  font-size: 11px;
  margin-top: 6px;
  min-height: 16px;
}

#astro-conv {
  flex: 1;
  overflow-y: auto;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;   
  gap: 3px;
}

.msg {
  max-width: 74%;
  width: fit-content;
  margin: 4px 0;
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.msg-astrologue {
  align-self: flex-start;
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text);
  border-bottom-left-radius: 5px;   
}
.msg-client {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--gold), #d8b25f);
  border: none;
  color: #1c1404;
  text-align: left;
  border-bottom-right-radius: 5px;  
}

/* Accusé de lecture sur la bulle client : un trait (envoyé) → deux traits (vu). Sobre,
   en encre foncée sur le fond or, pas de code couleur WhatsApp. */
.msg-status {
  display: inline-block;
  margin-left: 7px;
  font-size: 10.5px;
  line-height: 1;
  vertical-align: baseline;
  letter-spacing: -2px;
  user-select: none;
}
.msg-status[data-status="sent"]::after { content: "✓"; color: rgba(28, 20, 4, .4); }
.msg-status[data-status="seen"]::after { content: "✓✓"; color: rgba(28, 20, 4, .78); }

#screen-account { position: relative; min-height: 100vh; overflow-y: auto; }

.account-main {
  
  display: block;
  column-count: 2;
  column-gap: 18px;
  flex: none; overflow: visible;
  position: relative; z-index: 1;
  max-width: 1000px; margin: 0 auto; padding: 34px 24px 90px;
}
.account-title {
  column-span: all;
  color: var(--gold-l); font-family: var(--font-title); font-weight: 400;
  letter-spacing: .04em; margin: 4px 0 14px; font-size: 34px;
}
.acc-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 22px;
  margin: 0 0 18px;            
  break-inside: avoid;        
  -webkit-column-break-inside: avoid;
  display: inline-block; width: 100%;
}
@media (max-width: 760px) {
  .account-main { column-count: 1; }
}
.acc-h2 { color: var(--gold); font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  margin: 0 0 12px; }
.acc-body { color: var(--text); font-size: 14px; line-height: 1.7; }
.acc-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0;
  border-bottom: 1px solid var(--border); }
.acc-row:last-child { border-bottom: none; }
.acc-row .k { color: var(--text-dim); white-space: nowrap; }
.acc-row .v { color: var(--text); text-align: right; word-break: break-word; }
.acc-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px;
  background: rgba(201,168,106,.12); border: 1px solid rgba(201,168,106,.3); color: var(--gold-l); }
.acc-quota { font-size: 22px; color: var(--gold-l); font-weight: 600; }
.acc-empty { color: var(--text-dim); font-style: italic; }
.acc-rdv-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin: 6px 0;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.acc-rdv-item:hover { border-color: var(--gold); background: rgba(201,168,106,.06); }
.acc-rdv-item.sel { border-color: var(--gold); background: rgba(201,168,106,.12); }
.acc-rdv-txt { flex: 1; cursor: pointer; }

.acc-rdv-actions { display: none; gap: 8px; }
.acc-rdv-item.sel .acc-rdv-actions { display: flex; }
.acc-rdv-btn {
  font-family: inherit; font-size: 13px; padding: 5px 12px; border-radius: 8px;
  border: 1px solid var(--gold); background: transparent; color: var(--gold-l);
  cursor: pointer; transition: background .15s, color .15s;
}
.acc-rdv-btn:hover { background: var(--gold); color: var(--navy); }
.acc-rdv-btn.danger { border-color: #b5495b; color: #d98a98; }
.acc-rdv-btn.danger:hover { background: #b5495b; color: #fff; }

.acc-edit-btn-wrap { margin-top: 14px; }
.acc-edit-btn {
  font-family: inherit; font-size: 13px; padding: 6px 16px; border-radius: 8px;
  border: 1px solid var(--gold); background: transparent; color: var(--gold-l);
  cursor: pointer; transition: background .15s, color .15s;
}
.acc-edit-btn:hover { background: var(--gold); color: var(--navy); }

.edit-profil-form { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.edit-profil-err { color: #d98a98; font-size: 13px; min-height: 18px; }
.edit-profil-fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px; }
.edit-profil-legend { color: var(--gold-l); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; padding: 0 4px; }
.edit-profil-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px;
  color: var(--text-dim); }
.edit-profil-input {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: inherit; font-size: 14px; padding: 7px 10px;
  outline: none; transition: border-color .15s; width: 100%; box-sizing: border-box;
}
.edit-profil-input:focus { border-color: var(--gold); }
.edit-profil-sexe-wrap { display: flex; gap: 20px; align-items: center; }
.edit-profil-radio { display: flex; align-items: center; gap: 6px; font-size: 14px;
  color: var(--text); cursor: pointer; }
.edit-profil-actions { display: flex; gap: 10px; margin-top: 4px; }
.edit-profil-save {
  font-family: inherit; font-size: 14px; padding: 8px 20px; border-radius: 8px;
  border: none; background: var(--gold); color: var(--navy); font-weight: 600;
  cursor: pointer; transition: opacity .15s;
}
.edit-profil-save:disabled { opacity: .6; cursor: default; }
.edit-profil-save:not(:disabled):hover { opacity: .88; }
.edit-profil-cancel {
  font-family: inherit; font-size: 14px; padding: 8px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: transparent; color: var(--text-dim);
  cursor: pointer; transition: border-color .15s, color .15s;
}
.edit-profil-cancel:hover { border-color: var(--gold); color: var(--gold-l); }

.astrologue-fav {
  background: none; border: none; cursor: pointer; padding: 0 4px;
  font-size: 20px; line-height: 1; color: var(--text-dim);
  transition: color .15s, transform .12s;
}
.astrologue-fav:hover { color: var(--gold-l); transform: scale(1.15); }
.astrologue-fav.on { color: var(--gold); }
.astrologue-card-header .astrologue-headtext { flex: 1; min-width: 0; }

.astrologue-avatar {
  position: relative; flex: none;
  width: 56px; height: 56px; border-radius: 50%;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(201,168,106,.35), rgba(20,29,58,.9));
  border: 1px solid var(--border);
}
.astrologue-initial {
  font-family: var(--font-title); font-size: 24px; color: var(--gold-l); font-weight: 400;
}

.astro-modal-card { max-width: 480px; width: 92%; text-align: left; }
.astro-modal-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.astro-modal-avatar { width: 72px; height: 72px; }
.astro-modal-avatar .astrologue-initial { font-size: 30px; }
.astro-modal-id { flex: 1; min-width: 0; }
.astro-modal-id .modal-title { margin: 0 0 4px; }
.astro-modal-spec {
  color: var(--gold); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px;
}
.astro-modal-bio { color: var(--text); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.astro-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(var(--violet-rgb), 0.18);
  background: rgba(7, 5, 15, 0.74);
  padding: 22px 20px;
}
.footer-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px;
}
.footer-brand { font-family: var(--font-title); font-size: 18px; color: var(--gold-l); }
.footer-tld { color: var(--text-dim); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; flex: 1; }
.footer-link {
  background: none; border: none; cursor: pointer; padding: 2px 0;
  font-family: inherit; font-size: 13px; color: var(--text-dim);
  transition: color .15s;
}
.footer-link:hover { color: var(--gold-l); }
.footer-copy { color: var(--text-mute); font-size: 12px; width: 100%; }

.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200;
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: rgba(13, 11, 26, 0.96);
  border: 1px solid rgba(201, 168, 106, 0.45);
  border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.cookie-text { flex: 1; min-width: 240px; color: var(--text); font-size: 13px; line-height: 1.55; }
.cookie-actions { display: flex; gap: 10px; }

#cookie-refuse { background: rgba(255, 255, 255, 0.12); border-color: var(--violet-l); color: var(--text); }
#cookie-refuse:hover { background: rgba(162, 139, 250, 0.18); border-color: var(--violet-l); }

.app-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  z-index: 2000; max-width: 90vw; text-align: center;
  background: var(--violet); color: #fff;
  padding: 13px 24px; border-radius: 50px; font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 30px rgba(var(--violet-rgb), 0.5);
  opacity: 0; transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.app-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.legal-card { max-width: 600px; width: 92%; max-height: 80vh; overflow-y: auto; text-align: left; }
.legal-body { color: var(--text); font-size: 14px; line-height: 1.7; }
.legal-body p { margin: 0 0 12px; }
.legal-body a { color: var(--gold-l); }

.theme-card { max-width: 460px; width: 92%; text-align: left; }
.theme-intro { color: var(--text-dim); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.theme-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.theme-form input {
  width: 100%; box-sizing: border-box;
  background: rgba(7, 5, 15, 0.6); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 13px; color: var(--text); font-family: inherit; font-size: 14px;
}
.theme-form input:focus { outline: none; border-color: var(--gold); }
#theme-submit { width: 100%; }
#theme-view-btn { display: block; margin: 16px auto 0; }

.modal-rdv-card.offers-card { max-width: 1040px; width: 96%; text-align: left; padding: 18px 22px 20px; max-height: 92dvh; }
.offers-card .modal-title { margin: 0 0 6px; font-size: 19px; }
.offers-intro { color: var(--text-dim); font-size: 13px; line-height: 1.45; margin: 0 0 12px; }
.offers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: stretch; }
@media (max-width: 880px) { .offers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .offers-grid { grid-template-columns: 1fr; } }
.offer-card {
  position: relative; display: flex; flex-direction: column;
  background: rgba(7, 5, 15, 0.5); border: 1px solid var(--border);
  border-radius: 14px; padding: 15px 14px 14px;
}
.offer-card.offer-pop { border-color: var(--gold); background: linear-gradient(160deg, rgba(201,168,106,.16), rgba(7,5,15,.5)); }
.offer-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.offer-name { font-family: var(--font-title); font-size: 16px; color: var(--gold-l); margin-bottom: 6px; min-height: 2.2em; line-height: 1.2; }
.offer-price { margin-bottom: 8px; white-space: nowrap; }
.offer-amount { font-size: 23px; color: #fff; font-weight: 600; }
.offer-per { font-size: 13px; color: var(--text-dim); margin-left: 2px; }
.offer-desc { color: var(--text); font-size: 12.5px; line-height: 1.45; flex: 1; margin-bottom: 12px; }
.offer-cta { width: 100%; }

/* --- Pop-up « catch » : choix astrologue en ligne -> abonnement --- */
.catch-card { max-width: 460px; width: 94%; text-align: center; padding: 26px 26px 28px; }
.catch-title { font-family: var(--font-title); font-size: 22px; color: var(--gold-l); margin: 4px 0 4px; }
.catch-sub { color: var(--text-dim); font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.catch-astros { display: flex; flex-direction: column; gap: 10px; }
.catch-astro {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(var(--violet-rgb),0.25);
  border-radius: 12px; padding: 12px 14px; cursor: pointer; text-align: left;
  color: var(--text); font-family: inherit; transition: border-color .15s, background .15s;
}
.catch-astro:hover { border-color: var(--gold); background: rgba(212,168,58,0.08); }
.catch-astro-av {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,168,58,0.16); color: var(--gold-l); font-size: 18px; font-weight: 600;
}
.catch-astro-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.catch-astro-name { font-size: 15px; font-weight: 600; }
.catch-astro-spec { font-size: 12.5px; color: var(--text-dim); text-transform: capitalize; }
.catch-astro-dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: #43d17a; box-shadow: 0 0 0 3px rgba(67,209,122,0.18); }
.catch-back {
  background: transparent; border: 0; color: var(--text-dim); cursor: pointer;
  font-family: inherit; font-size: 13px; padding: 0; margin: 0 0 6px; align-self: flex-start;
}
.catch-back:hover { color: var(--gold-l); }
.catch-with { color: var(--text); font-size: 15px; margin: 2px 0 16px; }
.catch-offer { max-width: 320px; margin: 0 auto; text-align: left; }

.acc-fav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; margin: 6px 0;
}

.acc-consult-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; margin: 6px 0;
  font-size: 13.5px;
}
.acc-consult-txt { color: var(--text); }
.acc-paid { font-size: 12px; color: var(--gold-l); white-space: nowrap; }

.acc-consult-item.acc-consult-open { cursor: pointer; transition: border-color .15s, background .15s; }
.acc-consult-item.acc-consult-open:hover { border-color: var(--gold); background: rgba(212, 175, 110, 0.06); }
.acc-consult-hint { font-size: 11px; color: var(--violet-l); text-transform: uppercase; letter-spacing: .5px; margin-left: auto; margin-right: 10px; }

.modal-rdv-card.transcript-card {
  max-width: 760px; width: 94%; text-align: left;
  max-height: 88dvh; display: flex; flex-direction: column;
}
.transcript-card .modal-title { margin-bottom: 14px; }
.transcript-body { overflow-y: auto; padding-right: 6px; display: flex; flex-direction: column; gap: 8px; }
.tr-bubble {
  max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
}
.tr-astro  { align-self: flex-start; background: var(--bg4); color: var(--text); border-bottom-left-radius: 4px; }
.tr-client { align-self: flex-end;  background: var(--gold); color: #1a1206; border-bottom-right-radius: 4px; }

.offers-ok {
  grid-column: 1 / -1; text-align: center; padding: 26px 16px;
  color: var(--gold-l); font-family: var(--font-title); font-size: 18px;
}
.offers-err {
  grid-column: 1 / -1; margin: 0 0 12px; padding: 10px 14px; border-radius: 8px;
  background: rgba(180, 60, 60, .14); border: 1px solid rgba(200, 90, 90, .45);
  color: #e8a0a0; font-size: 14px; line-height: 1.45; text-align: center;
}

.modal-rdv-card.pay-card { max-width: 420px; width: 92%; text-align: center; }

.modal-rdv-card.leave-card { max-width: 460px; width: 92%; text-align: center; }
.leave-card .modal-title { color: #f1c45a; }
.leave-msg { color: var(--text); font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.leave-actions { display: flex; flex-direction: column; gap: 10px; }
.leave-actions .btn-glass { width: 100%; }
.modal-rdv-card.confirm-card { max-width: 460px; width: 92%; text-align: center; }
.confirm-card .modal-title { color: #f1c45a; }
.confirm-msg { color: var(--text); font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.pay-line { color: #fff; font-size: 17px; margin: 6px 0 10px; }
.pay-note { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }
#pay-confirm { width: 100%; }
.acc-fav-remove {
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  font-size: 15px; padding: 2px 6px; border-radius: 6px; transition: color .15s, background .15s;
}
.acc-fav-remove:hover { color: #fff; background: #b5495b; }

.acc-lang { display: flex; gap: 10px; }
.acc-lang-btn {
  font-family: inherit; font-size: 14px; padding: 7px 16px; border-radius: 9px;
  border: 1px solid var(--border); background: transparent; color: var(--text-dim); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.acc-lang-btn:hover { border-color: var(--gold); color: var(--gold-l); }
.acc-lang-btn.on { border-color: var(--gold); background: rgba(201,168,106,.14); color: var(--gold-l); }
.acc-cancel-btn { font-family: inherit; font-size: 13px; padding: 8px 18px; border-radius: 8px; border: 1px solid rgba(244,63,94,.4); background: transparent; color: #f4738c; cursor: pointer; letter-spacing: .3px; transition: border-color .15s, color .15s, background .15s; }
.acc-cancel-btn:hover { border-color: #f4738c; background: rgba(244,63,94,.1); }
.acc-cancel-btn:disabled { opacity: .5; cursor: default; }
.idle-popup-card { max-width: 420px; text-align: center; }
.idle-popup-body { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin: 14px 0 22px; }
.idle-popup-btn { font-family: inherit; font-size: 15px; font-weight: bold; padding: 12px 34px; border-radius: 9px; border: 0; background: var(--gold); color: #07050f; cursor: pointer; letter-spacing: .3px; transition: filter .15s; }
.idle-popup-btn:hover { filter: brightness(1.08); }
.notif-btn { position: relative; }
.notif-badge { position: absolute; top: -6px; right: -6px; background: #f43f5e; color: #fff; font-size: 10px; font-weight: bold; min-width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 8px; padding: 0 4px; }
.notif-panel { position: fixed; top: 66px; right: 20px; width: 340px; max-width: calc(100vw - 40px); max-height: 62vh; overflow-y: auto; background: var(--bg2); border: 1px solid rgba(212,168,58,.25); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.5); z-index: 300; padding: 6px; }
.notif-empty { padding: 22px; text-align: center; color: var(--text-dim); font-size: 14px; }
.notif-item { display: block; padding: 12px 14px; border-radius: 8px; text-decoration: none; color: inherit; }
.notif-item + .notif-item { border-top: 1px solid rgba(255,255,255,.05); }
.notif-item:hover { background: rgba(212,168,58,.08); }
.notif-item.unread { background: rgba(212,168,58,.06); }
.notif-title { font-size: 14px; color: var(--gold-l); margin-bottom: 3px; }
.notif-body { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.resume-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 250; display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; padding: 11px 20px; background: linear-gradient(90deg, rgba(48,38,16,.97), rgba(34,27,12,.97)); border-bottom: 1px solid rgba(212,168,58,.4); }
.resume-banner-text { font-size: 14px; color: var(--gold-l); }
.resume-banner-close { background: transparent; border: 0; color: var(--text-dim); font-size: 15px; cursor: pointer; line-height: 1; }
.resume-banner-close:hover { color: var(--gold-l); }
/* Bandeau de confirmation d'e-mail : même gabarit que le resume, teinte violette,
   z-index légèrement inférieur pour laisser le resume passer devant si les deux
   coïncident (cas rare : séance en cours + adresse non confirmée). */
.verif-banner { z-index: 240; background: linear-gradient(90deg, rgba(38,30,60,.97), rgba(28,22,46,.97)); border-bottom: 1px solid rgba(var(--violet-rgb),.4); }
.verif-banner .resume-banner-text { color: #e7dcff; }

.format-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 10px;
}
.format-opt {
  flex: 1 1 0;
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--text);
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.format-opt:hover { border-color: var(--gold); }
.format-opt:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201, 168, 106, 0.10);
}

.fmt-txt { display: inline-flex; flex-direction: column; line-height: 1.25; }
.fmt-d { color: var(--text-mute); font-size: .85em; margin-top: 1px; }

#app-user-email { display: none; }

.sub-note {
  margin: 4px 0 10px;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 10px;
  color: #1c1404;
  background: linear-gradient(135deg, var(--gold), #d8b25f);
  border: 1px solid var(--gold);
  font-weight: 600;
}
.sub-note.exhausted {
  color: var(--text-dim);
  background: var(--bg3);
  border: 1px solid var(--border2);
  font-weight: 400;
  opacity: .9;
}

.wait-note {
  align-self: center;
  max-width: 90%;
  margin: 6px 0 2px;
  padding: 6px 14px;
  text-align: center;
  font-size: 12px;
  font-style: italic;
  color: var(--text-dim);
  background: rgba(201, 168, 106, 0.07);
  border: 1px solid rgba(201, 168, 106, 0.18);
  border-radius: 999px;
}

.typing-bubble {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  padding: 10px 14px;
  border-radius: 18px;
  border-bottom-left-radius: 5px;
  background: var(--bg3);
  border: 1px solid rgba(200, 162, 75, 0.22);
  color: var(--text-dim);
  font-size: 13px;
  font-style: italic;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: typing-pulse 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-pulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
  40%           { opacity: 1;    transform: scale(1.15); }
}

#astro-composer {
  display: none;
  margin-top: 10px;
  gap: 8px;
  flex-shrink: 0;
  position: relative;   
}

.btn-emoji {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(200, 162, 75, 0.22);
  font-size: 17px; line-height: 1;
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.btn-emoji:hover { background: rgba(200, 162, 75, 0.10); border-color: var(--gold-l); }

.emoji-pop {
  position: absolute; bottom: 48px; left: 0; z-index: 50;
  width: 264px; max-height: 184px; overflow-y: auto;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  background: rgba(13, 11, 26, 0.98);
  border: 1px solid rgba(201, 168, 106, 0.4); border-radius: 12px;
  padding: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.6);
}
.emoji-item {
  background: none; border: none; cursor: pointer; font-size: 20px; line-height: 1;
  padding: 4px; border-radius: 8px; transition: background .12s;
}
.emoji-item:hover { background: rgba(201, 168, 106, 0.18); }

#astro-input {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  border-radius: 50px;
  outline: none;
  margin-bottom: 0;
  transition: border-color .15s, box-shadow .15s;
}
#astro-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(var(--violet-rgb), 0.15);
}

#astro-send {
  background: var(--violet);
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 50px;
  white-space: nowrap;
  transition: background .15s;
}
#astro-send:hover { background: var(--violet-d); }

.btn-mute {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(200, 162, 75, 0.22);
  color: var(--gold);
  font-size: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
  padding: 0;
  line-height: 1;
}
.btn-mute:hover {
  background: rgba(200, 162, 75, 0.10);
  border-color: var(--gold-l);
}
.btn-mute.muted {
  color: var(--text-mute);
  border-color: rgba(107, 100, 80, 0.3);
}

details { margin: 12px 0; font-size: 11px; color: var(--text-dim); }
summary { cursor: pointer; color: var(--violet-l); letter-spacing: 1px; font-size: 11px; }

.rectif-hint {
  font-size: 11px;
  color: var(--text-mute);
  margin: 6px 0 10px;
}

.rectif-row { display: flex; gap: 6px; margin-bottom: 6px; }
.rectif-row select, .rectif-row input { margin-bottom: 0; }

.rectif-type {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  border-radius: var(--radius-sm);
  outline: none;
}

.rectif-row .rectif-edate { flex: 0 0 120px; }

.rectif-del {
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text-mute);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0 10px;
  font-family: var(--font-ui);
  transition: color .15s, border-color .15s;
}
.rectif-del:hover { color: var(--red); border-color: var(--red); }

#rectif-add {
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text-mute);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 6px 10px;
  font-size: 11px;
  font-family: var(--font-ui);
  margin: 2px 8px 8px 0;
  transition: color .15s, border-color .15s;
}
#rectif-add:hover { color: var(--violet-l); border-color: var(--violet-l); }

#rectif-go {
  background: var(--violet);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 9px 18px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1px;
  transition: background .15s;
}
#rectif-go:hover { background: var(--violet-d); }
#rectif-go:disabled { opacity: .6; cursor: default; }

#rectif-result { border-top: 1px solid var(--border); padding-top: 8px; }

#astro-rtheme {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.wheel-title {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 8px;
  flex-shrink: 0;
  text-transform: uppercase;
  font-weight: 500;
}
.wheel-subtitle {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: -2px 0 12px;
  max-width: 520px;
  flex-shrink: 0;
}

#astro-wheel {
  text-align: center;
  flex-shrink: 0;
}

/* --- Étoiles scintillantes discrètes autour de la carte du ciel --- */
@keyframes venusTwinkle { 0%, 100% { opacity: .12; } 50% { opacity: .8; } }
.home-theme-wheel-wrap, #astro-wheel { position: relative; }
.home-theme-wheel-wrap::before, .home-theme-wheel-wrap::after,
#astro-wheel::before, #astro-wheel::after {
  content: ""; position: absolute; inset: -8px; pointer-events: none; z-index: 4;
}
.home-theme-wheel-wrap::before, #astro-wheel::before {
  background-image:
    radial-gradient(1.5px 1.5px at 7% 16%, #fff7e0 99%, transparent),
    radial-gradient(1.5px 1.5px at 93% 28%, #fff7e0 99%, transparent),
    radial-gradient(1px 1px at 18% 90%, #ffffff 99%, transparent),
    radial-gradient(2px 2px at 82% 84%, #ffe6ac 99%, transparent),
    radial-gradient(1px 1px at 50% 3%, #ffffff 99%, transparent);
  background-repeat: no-repeat;
  animation: venusTwinkle 3.2s ease-in-out infinite;
}
.home-theme-wheel-wrap::after, #astro-wheel::after {
  background-image:
    radial-gradient(1px 1px at 4% 52%, #ffffff 99%, transparent),
    radial-gradient(1.5px 1.5px at 97% 60%, #fff7e0 99%, transparent),
    radial-gradient(1px 1px at 30% 97%, #ffe6ac 99%, transparent),
    radial-gradient(1.5px 1.5px at 68% 94%, #ffffff 99%, transparent),
    radial-gradient(1px 1px at 10% 6%, #fff7e0 99%, transparent);
  background-repeat: no-repeat;
  animation: venusTwinkle 4.6s ease-in-out infinite 1.1s;
}

#astro-wheel svg .wheel-hl { transition: filter .2s ease; }
#astro-wheel svg g[data-planet].wheel-hl {
  transform-box: fill-box;
  transform-origin: center;
  animation: wheelPop 1.5s ease-out 2;
}
#astro-wheel svg g[data-planet].wheel-hl circle {
  stroke: var(--gold) !important;
  stroke-width: 3 !important;
  filter: drop-shadow(0 0 7px rgba(201, 168, 106, 0.95));
}
#astro-wheel svg g[data-planet].wheel-hl text { fill: #fff8e6 !important; }
#astro-wheel svg path.wheel-hl {
  stroke: var(--gold) !important;
  stroke-width: 2.5 !important;
  filter: drop-shadow(0 0 8px rgba(201, 168, 106, 0.8));
}
#astro-wheel svg text[data-angle].wheel-hl {
  fill: var(--gold) !important;
  font-size: 14px !important;
  filter: drop-shadow(0 0 6px rgba(201, 168, 106, 0.9));
}
#astro-wheel svg g[data-house].wheel-hl circle {
  stroke: var(--gold) !important;
  stroke-width: 2.5 !important;
  filter: drop-shadow(0 0 6px rgba(201, 168, 106, 0.85));
}
@keyframes wheelPop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

#astro-explain {
  margin-top: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  min-height: 50px;
}

textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 8px;
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  border-radius: var(--radius-sm);
  resize: vertical;
  outline: none;
}

.astrologues-section {
  position: relative;
  z-index: 1;
  padding: 38px 20px 60px;
}

.astrologues-inner {
  max-width: 960px;
  margin: 0 auto;
}

.astrologues-section-title {
  text-align: center;
  font-size: 12px;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.astrologues-sub {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 28px;
  line-height: 1.6;
}

.astrologues-loading {
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
  padding: 24px 0;
}

.astrologues-vide {
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
  padding: 24px 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-lang {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(162, 139, 250, 0.18);
  color: var(--text-mute);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 50px;
  transition: background .15s, color .15s, border-color .15s;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.btn-lang:hover {
  background: rgba(162, 139, 250, 0.12);
  color: var(--text-dim);
  border-color: rgba(162, 139, 250, 0.4);
}
.btn-lang.active {
  background: rgba(var(--violet-rgb), 0.18);
  color: var(--violet-l);
  border-color: rgba(var(--violet-rgb), 0.45);
  font-weight: 600;
}

.astrologues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.teaser-card {
  cursor: pointer;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(201,168,106,.18), rgba(13,11,26,.82));
  border: 1px solid rgba(201,168,106,.55);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.teaser-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 8px 36px rgba(0,0,0,.55); }
.teaser-badge {
  align-self: flex-start; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); background: var(--gold); font-weight: 700;
  padding: 3px 12px; border-radius: 999px; margin-bottom: 14px;
}
.teaser-title {
  font-family: var(--font-title); font-size: 22px; color: var(--gold-l);
  line-height: 1.2; margin-bottom: 10px;
}
.teaser-text { color: var(--text); font-size: 14px; line-height: 1.6; flex: 1; margin-bottom: 18px; }
.teaser-card .astrologue-card-footer { margin-top: auto; }
.teaser-cta { width: 100%; }

.astrologue-card {
  cursor: pointer;
  background: rgba(13, 11, 26, 0.86);
  border: 1px solid rgba(var(--violet-rgb), 0.22);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.astrologue-card.astrologue-present {
  border-color: rgba(201, 168, 106, 0.35);   
}

.astrologue-card.astrologue-present:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.55);
  border-color: rgba(201, 168, 106, 0.65);
}

.astrologue-card.astrologue-absent {
  opacity: 0.68;
  filter: grayscale(0.25);
  border-color: rgba(74, 66, 112, 0.35);
}

.astrologue-card.astrologue-absent:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.astrologue-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.astrologue-prenom {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--gold-l);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.astrologue-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.astrologue-status.online { color: var(--green); }
.astrologue-status.offline { color: var(--text-mute); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.green {
  background: var(--green);
  box-shadow: 0 0 6px rgba(110, 231, 183, 0.7);
  animation: pulse-green 2.2s ease-in-out infinite;
}
.status-dot.grey {
  background: var(--text-mute);
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.astrologue-specialites {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--violet-l);
  text-transform: uppercase;
  font-weight: 500;
}

.astrologue-extrait {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  flex: 1;
}

.astrologue-card-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn-consulter {
  flex: 1 1 auto;
  background: var(--violet);
  color: #fff;
  border: none;
  padding: 9px 14px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  border-radius: 50px;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 2px 12px rgba(var(--violet-rgb), 0.3);
  white-space: nowrap;
}
.btn-consulter:hover {
  background: var(--violet-d);
  box-shadow: 0 2px 18px rgba(var(--violet-rgb), 0.5);
}

.btn-rdv {
  flex: 1 1 auto;
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(212, 168, 58, 0.35);
  padding: 9px 14px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 50px;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}
.btn-rdv:hover {
  color: var(--gold-l);
  border-color: var(--gold-l);
  background: rgba(212, 168, 58, 0.07);
}

.modal-rdv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 5, 15, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-rdv-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid rgba(212, 168, 58, 0.25);
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(212, 168, 58, 0.06);
}

.modal-rdv-hint {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 16px;
  line-height: 1.5;
}

.modal-rdv-slots {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rdv-loading,
.rdv-vide {
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
  padding: 20px 0;
}

.rdv-day-group {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.rdv-day-group:last-child { border-bottom: none; }

.rdv-day-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}

.rdv-hours {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rdv-slot-btn {
  background: rgba(212, 168, 58, 0.08);
  color: var(--gold-l);
  border: 1px solid rgba(212, 168, 58, 0.28);
  padding: 7px 14px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 50px;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.rdv-slot-btn:hover {
  background: rgba(212, 168, 58, 0.18);
  border-color: var(--gold-l);
  color: #fff;
}

.modal-rdv-ack {
  background: rgba(110, 231, 183, 0.08);
  border: 1px solid rgba(110, 231, 183, 0.25);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--green);
  margin-top: 12px;
  line-height: 1.6;
  text-align: center;
}

html[data-theme="laiton"] {
  --bg:#0B0E1A; --bg2:#121626; --bg3:#161b2e; --bg4:#1d2540; --border:#1f263b; --border2:#2c3650;
  --violet:#C8A24B; --violet-rgb:200,162,75; --violet-d:#a8842f; --violet-l:#e0c074; --indigo:#6E7E8A;
  --gold:#C8A24B; --gold-l:#e8cf88; --text:#F2EBDD; --text-dim:#b9b09c; --text-mute:#6b6450;
}
html[data-theme="terracotta"] {
  --bg:#16120E; --bg2:#1e1813; --bg3:#241d16; --bg4:#2e241b; --border:#2a2018; --border2:#3a2d20;
  --violet:#C0613B; --violet-rgb:192,97,59; --violet-d:#9e4a2b; --violet-l:#d98a64; --indigo:#C8A24B;
  --gold:#C8A24B; --gold-l:#e0c074; --text:#ECE3D2; --text-dim:#b8ab92; --text-mute:#6f6450;
}
html[data-theme="emeraude"] {
  --bg:#08130E; --bg2:#0d1b14; --bg3:#102219; --bg4:#163024; --border:#173025; --border2:#234435;
  --violet:#3E8E6E; --violet-rgb:62,142,110; --violet-d:#2f6e54; --violet-l:#6bb595; --indigo:#C8A24B;
  --gold:#C8A24B; --gold-l:#e0c074; --text:#EAE7D8; --text-dim:#aeb3a0; --text-mute:#5f6857;
}

.theme-switcher {
  position: fixed; left: 16px; bottom: 16px; z-index: 500;
  display: flex; gap: 8px; align-items: center;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 8px 12px; border-radius: 40px; border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.theme-switcher .ts-label { font-size: 10px; letter-spacing: 1px; color: #d8d3c6; text-transform: uppercase; opacity: .85; }
.theme-dot {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid rgba(255,255,255,0.25); transition: transform .12s, border-color .12s;
}
.theme-dot:hover { transform: scale(1.18); }
.theme-dot.active { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,0.3); }
.theme-dot.ts-actuel     { background: linear-gradient(135deg,#0d0b1a 50%,#7c3aed 50%); }
.theme-dot.ts-laiton     { background: linear-gradient(135deg,#0B0E1A 50%,#C8A24B 50%); }
.theme-dot.ts-terracotta { background: linear-gradient(135deg,#16120E 50%,#C0613B 50%); }
.theme-dot.ts-emeraude   { background: linear-gradient(135deg,#08130E 50%,#3E8E6E 50%); }

.mes-rdv-encart {
  background: rgba(212, 168, 58, 0.06);
  border: 1px solid rgba(212, 168, 58, 0.22);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.mes-rdv-title {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}

.mes-rdv-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mes-rdv-item {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
  padding-left: 12px;
  position: relative;
}
.mes-rdv-item::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 9px;
  top: 3px;
}

.home-mes-rdv-encart {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 28px auto 4px;   
  padding: 0 20px;
  width: 100%;
}

.home-mes-rdv-inner {
  display: inline-block;   
  max-width: 100%;
  background: rgba(212, 168, 58, 0.06);
  border: 1px solid rgba(212, 168, 58, 0.22);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.astrologue-bandeau {
  background: rgba(var(--violet-rgb), 0.10);
  border: 1px solid rgba(var(--violet-rgb), 0.28);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 12px;
  color: var(--violet-l);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bandeau-avatar { width: 40px; height: 40px; flex: none; }
.bandeau-avatar .astrologue-initial { font-size: 18px; }
.bandeau-txt { display: flex; flex-direction: column; min-width: 0; }
.bandeau-name { font-size: 14px; color: var(--gold-l); font-weight: 500; }

.bandeau-star {
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
}

.bandeau-spec {
  color: var(--text-mute);
  font-size: 12px;
}

.bandeau-chrono {
  margin-left: auto;        
  align-self: center;
  padding-left: 12px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
  color: var(--text-mute);
  opacity: .75;
}
.bandeau-chrono.over {
  color: #f1646c;
  opacity: 1;
  font-weight: 600;
}

.ended-notice {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(var(--violet-rgb), 0.3);
  border-radius: 12px;
  background: rgba(var(--violet-rgb), 0.08);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
}

::-webkit-scrollbar        { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: rgba(201, 168, 106, 0.28); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201, 168, 106, 0.5); }

@media (max-width: 720px) {

  .home-header { padding: 12px 14px; flex-wrap: wrap; gap: 10px 8px; }
  .home-nav { flex-wrap: wrap; justify-content: center; width: 100%; gap: 8px; }
  .home-nav .btn-glass { padding: 8px 16px; font-size: 12px; }
  .hero { padding: 28px 16px 40px; }
  .hero-card { padding: 20px 16px 16px; }

  .astrologues-section { padding: 0 12px 40px; }
  .astrologues-grid { grid-template-columns: 1fr; }
  .modal-rdv-card { padding: 24px 16px 20px; max-height: 90vh; }


  #screen-app { height: auto; min-height: 100dvh; overflow: visible; }
  main { flex-direction: column; height: auto; overflow: visible; }
  .col-left, .col-right { flex: none; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  #astro-conv { min-height: 200px; }
  .app-header { padding: 10px 12px; gap: 8px; }
  .app-header .logo-text { font-size: 17px; }
  .user-email { display: none; }
  #home-user-email { display: none; }
  .home-mes-rdv-encart { padding: 0 12px; }

  .col-right { display: none; }
  .col-right.carte-visible { display: flex; }
  #btn-carte-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    padding: 9px 16px;
    background: rgba(var(--violet-rgb), 0.10);
    border: 1px solid rgba(var(--violet-rgb), 0.28);
    border-radius: 50px;
    color: var(--violet-l);
    font-family: var(--font-ui);
    font-size: 13px;
    cursor: pointer;
    transition: background .18s, border-color .18s;
    flex-shrink: 0;
  }
  #btn-carte-toggle:hover { background: rgba(var(--violet-rgb), 0.18); border-color: var(--violet-l); }
}

@media (min-width: 721px) {
  #btn-carte-toggle { display: none; }
}

@media (max-width: 480px) {
  .app-header { padding: 8px 10px; gap: 6px; flex-wrap: wrap; }
  .app-header .brand { display: none; }
  .app-header .btn-sm { padding: 6px 11px; font-size: 12px; }
  .app-header .lang-switcher { transform: scale(.92); }

  #theme-submit {
    white-space: normal;
    word-break: break-word;
    font-size: 12px;
    padding: 10px 14px;
  }
  .sexe-choice { gap: 10px 16px; }
}

@media (max-width: 400px) {
  .home-header { padding: 10px 10px; gap: 8px 6px; }
  .home-nav { gap: 6px; }
  .home-nav .btn-glass { padding: 7px 12px; font-size: 11px; }

  .modal-rdv-card { padding: 20px 12px 16px; }
  .modal-rdv-card .modal-title { font-size: 18px; }

  .theme-card { width: 100%; }
  .theme-form input { font-size: 13px; padding: 9px 11px; }

  .hero-theme-title { font-size: clamp(24px, 7vw, 38px); }
  .hero-theme-sub { font-size: 13px; }
  .hero-theme-cta { padding: 11px 20px !important; font-size: 13px !important; white-space: normal; }

  .astrologue-card { padding: 16px 14px 14px; }
  .astrologue-card-footer { flex-direction: column; }
  .btn-consulter, .btn-rdv { flex: none; width: 100%; }

  .app-header-left .btn-sm { font-size: 11px; padding: 5px 9px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-header-right { gap: 6px; }
  .app-header-right .btn-sm { font-size: 11px; padding: 5px 9px; }
  .app-header-right .lang-switcher { display: none; }

  .format-group { gap: 6px; }
  .format-opt { min-width: 0; padding: 8px 10px; font-size: 12px; }

  .modal-rdv-card.offers-card { padding: 14px 10px 14px; }
  .offers-grid { gap: 10px; }

  .legal-card { width: 100%; }
  .legal-body { font-size: 13px; }

  .cookie-banner { padding: 12px 14px; gap: 10px; }
  .cookie-text { font-size: 12px; }

  .acc-card { padding: 14px 14px; }
  .acc-h2 { font-size: 13px; }
  .account-main { padding: 20px 12px 60px; }
  .account-title { font-size: 26px; }

  .home-theme-banner { padding: 12px 10px 0; }
  .home-theme-inner { padding: 16px 14px; gap: 14px; }
  .home-theme-wheel-wrap { max-width: 260px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-links { gap: 6px 14px; }
  .footer-link { font-size: 12px; }

  .resume-banner { padding: 8px 12px; gap: 8px; }
  .resume-banner-text { font-size: 13px; }

  .modal-rdv-overlay { padding: 10px; }
  .astro-modal-card { width: 100%; }
}

.city-ac { position: relative; }
.city-ac-list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
  margin-top: 2px; background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); max-height: 240px; overflow-y: auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}
.city-ac-item {
  padding: 9px 12px; cursor: pointer; color: var(--text); font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.city-ac-item:last-child { border-bottom: 0; }
.city-ac-item:hover, .city-ac-item.active { background: var(--bg4); color: var(--gold-l); }

.setup-select {
  width: 100%; box-sizing: border-box; appearance: none; -webkit-appearance: none;
  background: var(--bg2); color: var(--text); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 13px 38px 13px 15px; font-size: 15px;
  font-family: var(--font-ui); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.setup-select:focus { outline: none; border-color: var(--gold); }

.home-theme-banner {
  position: relative; z-index: 1;
  padding: 28px 40px 0;
}
.home-theme-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; gap: 36px; align-items: flex-start;
  background: rgba(13,11,26,0.86);
  border: 1px solid rgba(var(--violet-rgb), 0.22);
  border-radius: 20px;
  padding: 32px 36px;
}
.home-theme-left {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.home-theme-badge-wrap { margin-bottom: -4px; }
.home-theme-title {
  font-family: var(--font-title);
  font-size: clamp(22px, 2.8vw, 34px);
  color: var(--gold-l);
  font-weight: 400;
  line-height: 1.2;
}
.home-theme-placements {
  display: flex; flex-wrap: wrap; gap: 7px; justify-content: center;
}
.home-theme-pl-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 13px;
  background: rgba(var(--violet-rgb), 0.10);
  border: 1px solid rgba(var(--violet-rgb), 0.26);
  border-radius: 50px;
  font-size: 13px; color: var(--text);
}
.home-theme-pl-chip .pl-glyph { color: var(--gold-l); font-size: 14px; }
.home-theme-summary {
  font-size: 14.5px; color: var(--text-dim);
  line-height: 1.75; max-width: 500px;
  padding-right: 6px;
}
.home-theme-summary::-webkit-scrollbar { width: 4px; }
.home-theme-summary::-webkit-scrollbar-thumb { background: rgba(var(--violet-rgb),0.4); border-radius: 4px; }
.birth-theme-para { margin: 0 0 12px; }
.birth-theme-para:last-child { margin-bottom: 0; }
.home-theme-cta-btn {
  align-self: flex-start;
  padding: 9px 22px !important;
  font-size: 13px !important;
  margin-top: 2px;
}
.home-theme-right {
  flex: 0 0 540px; max-width: 540px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.home-theme-wheel-wrap { width: 100%; }
/* La carte est la vedette : on lève le plafond inline (460px) du SVG. */
.home-theme-wheel-wrap svg { max-width: 540px !important; }
.home-theme-explain {
  min-height: 44px; width: 100%;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 10px;
  font-size: 13.5px; line-height: 1.5; color: var(--gold-l);
}
.home-interp-btn {
  align-self: flex-start;
  padding: 14px 30px !important;
  font-size: 16px !important;
  margin-top: 6px;
}
.home-theme-cta { width: 100%; }
.home-theme-cta .theme-teaser { margin: 0; padding-top: 0; border-top: 0; }
/* Teasing en tête de colonne gauche : encadré doré pour attirer l'œil (11/07). */
.home-theme-left .home-theme-cta .theme-teaser {
  background: rgba(212,168,58,.07);
  border: 1px solid rgba(212,168,58,.35);
  border-radius: 12px;
  padding: 14px 16px;
}

@media (max-width: 820px) {
  .home-theme-banner { padding: 18px 14px 0; }
  .home-theme-inner { flex-direction: column; padding: 22px 18px; gap: 20px; }
  .home-theme-right { flex: none; max-width: 100%; width: 100%; }
  .home-theme-wheel-wrap { max-width: 300px; margin: 0 auto; }
}

.my-theme-modal-card { max-width: 1020px !important; }
.modal-theme-summary {
  font-size: 14px; color: var(--text-dim); line-height: 1.75;
  margin: 8px 0 4px;
  max-height: 420px; overflow-y: auto; padding-right: 6px;
}
.modal-theme-summary::-webkit-scrollbar { width: 4px; }
.modal-theme-summary::-webkit-scrollbar-thumb { background: rgba(var(--violet-rgb),0.4); border-radius: 4px; }
.theme-teaser {
  margin: 20px 0 4px; padding-top: 16px;
  border-top: 1px solid rgba(212,168,58,0.28);
  text-align: center;
}
.theme-teaser-text {
  font-size: 14px; color: var(--text, #e8e2d4); line-height: 1.6;
  margin: 0 0 14px;
}
.theme-teaser-btn { display: inline-block; }
.modal-theme-layout {
  display: flex; gap: 28px; align-items: flex-start;
  margin-top: 18px;
}
.modal-theme-wheel {
  flex: 0 0 460px; max-width: 460px;
}
.modal-theme-placements {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.modal-theme-pl-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
}
.modal-theme-pl-row .pl-glyph { font-size: 17px; color: var(--gold-l); flex: 0 0 22px; text-align: center; }
.modal-theme-pl-row .pl-nom   { color: var(--text-dim); min-width: 90px; font-size: 13px; }
.modal-theme-pl-row .pl-signe { color: var(--text); font-weight: 500; }
.modal-theme-pl-row .pl-house { font-size: 11px; color: var(--text-mute); margin-left: auto; white-space: nowrap; }
.acc-theme-summary {
  font-size: 14px; color: var(--text-dim); line-height: 1.7;
  margin-bottom: 4px;
}
@media (max-width: 680px) {
  .modal-theme-layout { flex-direction: column; }
  .modal-theme-wheel { flex: none; max-width: 100%; width: 100%; }
  .my-theme-modal-card { max-width: 98vw !important; }
}
.setup-select option { background: var(--bg2); color: var(--text); }

.theme-preparing {
  font-style: italic;
  opacity: 0.75;
  animation: theme-prep-pulse 2.2s ease-in-out infinite;
}

@keyframes theme-prep-pulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 0.4; }
}
