:root {
  --bg: #02010a;
  --bg-elevated: #070921;
  --accent: #e0e7ff;
  --accent-soft: rgba(129, 140, 248, 0.2);
  --border-subtle: rgba(148, 163, 184, 0.3);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --radius-xl: 1.5rem;
  --transition-fast: 150ms ease-out;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0b1120 0, #020016 55%, #02010a 100%);
  color: var(--text-main);
}

body {
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.zodiac-watermark {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: min(60vh, 60vw);
  color: rgba(148, 163, 184, 0.06);
  pointer-events: none;
  z-index: 0;
}

.app-header,
.app-main,

.info-pill-wrap {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
}

.info-pill {
  border: 1px solid rgba(250, 204, 21, 0.85);
  border-radius: 999px;
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #fef9c3, #facc15, #b45309);
  color: #111827;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.6), 0 10px 22px rgba(15, 23, 42, 0.9);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  animation: info-pulse 2.4s ease-in-out infinite;
}

.info-pill span {
  pointer-events: none;
}

.info-pill:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 0 0 6px rgba(234, 179, 8, 0.3), 0 14px 30px rgba(15, 23, 42, 0.95);
  filter: brightness(1.05);
}

@keyframes info-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.55), 0 10px 22px rgba(15, 23, 42, 0.9);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(234, 179, 8, 0.15), 0 16px 34px rgba(15, 23, 42, 1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.0), 0 10px 22px rgba(15, 23, 42, 0.9);
  }
}

.info-modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.info-modal-root.open {
  opacity: 1;
  pointer-events: auto;
}

.info-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.16), transparent),
              radial-gradient(circle at 80% 100%, rgba(250, 204, 21, 0.22), transparent),
              rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(10px);
}

.info-panel {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: calc(100% - 2.5rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 1.1rem 1.15rem 0.9rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(94, 234, 212, 0.26), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(250, 204, 21, 0.18), transparent 60%),
    rgba(15, 23, 42, 0.96);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.96);
}

.info-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.info-panel-header h3 {
  margin: 0;
  font-size: 1.02rem;
}

.info-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.1rem 0.2rem;
  border-radius: 999px;
}

.info-close:hover {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
}

.info-panel-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.35rem;
}

.info-panel-body p {
  margin: 0 0 0.3rem;
}

.info-panel-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.3rem;
}

.app-footer {
  position: relative;
  z-index: 1;
}

.app-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem 0.5rem;
  gap: 1rem;
}


.logo-container {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

/* Halo posœnnoïal animé autour du logo, modulé par Δτ_local + phase solaire */
.logo-container::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 248, 227, 0.5) 0, rgba(255, 248, 227, 0.18) 40%, transparent 70%);
  opacity: 0.55;
  transform: scale(1);
  z-index: 0;
  animation: halo-pulse var(--halo-speed, 4s) ease-in-out infinite;
}

/* Corps du logo vidéo */
.logo-container .logo-video {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

/* Animation du halo : amplitude contrôlée par --halo-strength */
@keyframes halo-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
  }
  40% {
    transform: scale(calc(1 + var(--halo-strength, 0.12)));
    opacity: 0.85;
  }
  70% {
    transform: scale(calc(1 + var(--halo-strength, 0.16)));
    opacity: 0.7;
  }
}


.logo {
  width: 52px;
  height: 52px;
  display: block;
}

.spinning {
  animation: spin-logo 60s linear infinite;
}

@keyframes spin-logo {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.header-text h1 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.subtitle {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.app-main {
  flex: 1;
  padding: 0.5rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 960px;
  width: 100%;
  align-self: center;
}

.card {
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 45%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 45%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.96), rgba(0, 0, 0, 0.96));
  border-radius: var(--radius-xl);
  padding: 1rem 1.1rem 0.95rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}


.card.dragging {
  opacity: 0.65;
  transform: translateY(2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.9);
  border-color: rgba(129, 140, 248, 0.9);
}
.card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.subtext {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.big-text {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0.15rem 0;
}

.epagomene-text {
  margin: 0;
  font-size: 0.85rem;
  color: #facc15;
}

.cycles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-top: 0.85rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.6);
}

.cycles h3 {
  font-size: 0.92rem;
  margin: 0 0 0.2rem;
}

.cycles p {
  margin: 0.05rem 0;
}

.modes-card .mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.mode-btn {
  padding: 0.6rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top, rgba(129, 140, 248, 0.2), transparent 55%);
  color: var(--text-main);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.mode-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.85);
  border-color: rgba(129, 140, 248, 0.95);
}

.mode-btn.active {
  background: radial-gradient(circle at top, rgba(129, 140, 248, 0.4), transparent 55%);
  border-color: rgba(129, 140, 248, 1);
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.85);
}

.mode-description {
  margin: 0.7rem 0 0;
  font-size: 0.84rem;
  color: var(--accent);
}

.ritual-card .field {
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ritual-card label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ritual-card select {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.4rem 0.6rem;
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  font-size: 0.9rem;
}

.ritual-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.5rem;
}

.primary-btn,
.ghost-btn {
  flex: 1;
  border-radius: 999px;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast);
}

.primary-btn {
  border: none;
  background: linear-gradient(to right, #4f46e5, #22d3ee);
  color: white;
  box-shadow: 0 14px 32px rgba(59, 130, 246, 0.85);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.95);
}

.ghost-btn {
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
}

.ghost-btn[disabled] {
  opacity: 0.45;
  cursor: default;
}

.ghost-btn:hover:not([disabled]) {
  border-color: rgba(148, 163, 184, 1);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
}

.ritual-status {
  margin-top: 0.8rem;
  min-height: 2.2rem;
}

.ritual-status p {
  margin: 0.1rem 0;
}

.timer {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.info-list {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.info-list li {
  margin-bottom: 0.25rem;
}


.info-pill-wrap {
  margin-top: 0.5rem;
  display: flex;
  jus

.vocab-list {
  list-style: none;
  padding-left: 0;
}

.vocab-list li {
  margin-bottom: 0.35rem;
}

.vocab-item {
  border: none;
  background: transparent;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-main);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.vocab-item:hover {
  background: radial-gradient(circle at 0 0, rgba(94, 234, 212, 0.14), transparent 65%);
  color: var(--accent-soft);
  transform: translateY(-0.5px);
}

tify-content: flex-end;
}

.info-pill {
  border: 1px solid rgba(250, 204, 21, 0.85);
  border-radius: 999px;
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #fef9c3, #facc15, #b45309);
  color: #111827;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.6), 0 10px 22px rgba(15, 23, 42, 0.9);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  animation: info-pulse 2.4s ease-in-out infinite;
}

.info-pill span {
  pointer-events: none;
}

.info-pill:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 0 0 6px rgba(234, 179, 8, 0.3), 0 14px 30px rgba(15, 23, 42, 0.95);
  filter: brightness(1.05);
}

@keyframes info-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.55), 0 10px 22px rgba(15, 23, 42, 0.9);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(234, 179, 8, 0.15), 0 16px 34px rgba(15, 23, 42, 1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.0), 0 10px 22px rgba(15, 23, 42, 0.9);
  }
}

.info-modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.info-modal-root.open {
  opacity: 1;
  pointer-events: auto;
}

.info-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.16), transparent),
              radial-gradient(circle at 80% 100%, rgba(250, 204, 21, 0.22), transparent),
              rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(10px);
}

.info-panel {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: calc(100% - 2.5rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 1.1rem 1.15rem 0.9rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(94, 234, 212, 0.26), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(250, 204, 21, 0.18), transparent 60%),
    rgba(15, 23, 42, 0.96);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.96);
}

.info-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.info-panel-header h3 {
  margin: 0;
  font-size: 1.02rem;
}

.info-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.1rem 0.2rem;
  border-radius: 999px;
}

.info-close:hover {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
}

.info-panel-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.35rem;
}

.info-panel-body p {
  margin: 0 0 0.3rem;
}

.info-panel-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.3rem;
}

.app-footer {
  padding: 0.4rem 1.25rem 0.8rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .app-main {
    padding-top: 0.75rem;
    padding-bottom: 1.25rem;
  }

  .app-header {
    padding-inline: 1.5rem;
  }

  
.info-pill-wrap {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
}

.info-pill {
  border: 1px solid rgba(250, 204, 21, 0.85);
  border-radius: 999px;
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #fef9c3, #facc15, #b45309);
  color: #111827;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.6), 0 10px 22px rgba(15, 23, 42, 0.9);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  animation: info-pulse 2.4s ease-in-out infinite;
}

.info-pill span {
  pointer-events: none;
}

.info-pill:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 0 0 6px rgba(234, 179, 8, 0.3), 0 14px 30px rgba(15, 23, 42, 0.95);
  filter: brightness(1.05);
}

@keyframes info-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.55), 0 10px 22px rgba(15, 23, 42, 0.9);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(234, 179, 8, 0.15), 0 16px 34px rgba(15, 23, 42, 1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.0), 0 10px 22px rgba(15, 23, 42, 0.9);
  }
}

.info-modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.info-modal-root.open {
  opacity: 1;
  pointer-events: auto;
}

.info-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.16), transparent),
              radial-gradient(circle at 80% 100%, rgba(250, 204, 21, 0.22), transparent),
              rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(10px);
}

.info-panel {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: calc(100% - 2.5rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 1.1rem 1.15rem 0.9rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(94, 234, 212, 0.26), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(250, 204, 21, 0.18), transparent 60%),
    rgba(15, 23, 42, 0.96);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.96);
}

.info-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.info-panel-header h3 {
  margin: 0;
  font-size: 1.02rem;
}

.info-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.1rem 0.2rem;
  border-radius: 999px;
}

.info-close:hover {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
}

.info-panel-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.35rem;
}

.info-panel-body p {
  margin: 0 0 0.3rem;
}

.info-panel-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.3rem;
}

.app-footer {
    padding-inline: 1.5rem;
  }
}


.ap-mode-field {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ap-mode-field label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ap-mode-field select {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.4rem 0.6rem;
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  font-size: 0.88rem;
}

#ap-mode-help {
  margin: 0;
}


.small-time {
  font-size: 0.8rem;
  opacity: 0.85;
}

.cycles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  align-items: center;
}

.cycle-scorpio {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scorpio-heart {
  max-width: 160px;
  opacity: 0.5;
  animation: heartbeat 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.4));
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
    opacity: 0.35;
  }
  15% {
    transform: scale(1.12);
    opacity: 0.85;
  }
  30% {
    transform: scale(1);
    opacity: 0.55;
  }
  45% {
    transform: scale(1.1);
    opacity: 0.85;
  }
  60% {
    transform: scale(1);
    opacity: 0.55;
  }
}

.calap-toggle-btn {
  margin-top: 0.75rem;
  width: 100%;
  justify-content: center;
}

.calap-card.hidden {
  display: none;
}

.calap-card .calap-summary {
  margin-top: 0.75rem;
}

.calap-upcoming {
  margin-top: 0.75rem;
}

.calap-upcoming h3,
.calap-convert h3,
.calap-align h3 {
  margin: 0.6rem 0 0.25rem;
  font-size: 0.92rem;
}

.calap-convert {
  margin-top: 0.75rem;
}

.convert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}

.convert-grid label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.convert-grid input,
.convert-grid select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.35rem 0.5rem;
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  font-size: 0.9rem;
}

.ap-input-row {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.ap-input-row input,
.ap-input-row select {
  flex: 1;
}

.convert-btn {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  padding-block: 0.45rem;
}

.calap-align {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}



.calap-tables {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.calap-table-block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.small-btn {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.4rem;
}

.table-wrap.small-table {
  max-height: 260px;
  overflow: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.table-wrap.small-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.table-wrap.small-table th,
.table-wrap.small-table td {
  padding: 0.25rem 0.4rem;
  border-bottom: 1px solid rgba(30, 64, 175, 0.35);
  white-space: nowrap;
}

.table-wrap.small-table th {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.98);
  font-weight: 600;
}

.table-wrap.small-table tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.88);
}

/* --- HPOS25 embedded styles --- */

:root {
  --bg: #050510;
  --bg-elevated: #11111f;
  --bg-elevated-soft: #151528;
  --border: #262641;
  --accent: #f5c75d;
  --accent-soft: rgba(245,199,93,0.2);
  --accent-strong: #ffd979;
  --text: #f4f3ff;
  --muted: #a0a0c0;
  --danger: #ff6a6a;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.35);
  --card-gap: 1.75rem;
  --transition-fast: 150ms ease-out;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at 0 0, #202040 0, #050510 55%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.offline-banner {
  display: none;
  text-align: center;
  padding: 0.5rem 1rem;
  background: #3b1c25;
  color: #ffdcdc;
  font-size: 0.85rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  backdrop-filter: blur(16px);
  background: linear-gradient(to right, rgba(5,5,16,0.96), rgba(5,5,16,0.86));
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-spin-wrap {
  width: 52px;
  height: 52px;
  padding: 6px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, rgba(245,199,93,0.9) 0, rgba(245,199,93,0.18) 32%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-spin {
  width: 38px;
  height: 38px;
  animation: spin 60s linear infinite;
  transform-origin: center center;
}

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

.brand-text h1 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.subtitle {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  color: var(--text);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #24190b;
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
}

.btn.secondary {
  border-color: var(--accent-soft);
  background: rgba(12,12,30,0.95);
}

.btn.ghost {
  border-color: rgba(255,255,255,0.08);
  background: rgba(4,4,15,0.7);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.5);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.layout {
  max-width: 1120px;
  margin: 1.4rem auto 2.4rem;
  padding: 0 1.2rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.card {
  background: radial-gradient(circle at 0 0, rgba(245,199,93,0.08) 0, rgba(16,16,32,1) 40%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: var(--shadow-soft);
  padding: 1.3rem 1.5rem 1.5rem;
}

.card-horloge {
  background: radial-gradient(circle at 0 0, rgba(245,199,150,0.15) 0, rgba(10,10,24,1) 40%);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.card-header h2 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  font-size: 0.72rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(4,4,18,0.8);
  color: var(--muted);
}

.k {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.horloge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 1.4rem;
  align-items: center;
}

#dial {
  width: 100%;
  max-width: 320px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 30%, #242445 0, #050510 62%);
  box-shadow: 0 16px 35px rgba(0,0,0,0.65);
}

.times {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.86rem;
}

.times div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
}

.times span:last-child {
  font-variant-numeric: tabular-nums;
}

.geo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.geo label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.geo input {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,5,18,0.9);
  color: var(--text);
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
}

.hr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 1.3rem;
}

.gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

 .gauge {
  width: 200px;
  height: 200px;
  overflow: visible;
}


 .gauge-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 20%, rgba(245,199,93,0.8) 0, rgba(245,199,93,0.1) 32%, transparent 60%),
              conic-gradient(from 180deg, #46d39a, #f5c75d, #ff8f8f, #46d39a);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}

.gauge-fill {
  position: absolute;
  inset: 0;
  transform-origin: center bottom;
  transform: rotate(0deg);
}

.gauge-cover {
  position: relative;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle at 50% 10%, #202040 0, #050510 90%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 1.15rem;
  text-shadow: 0 0 14px rgba(0,0,0,0.6);
}

.lists h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.list {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
  max-height: 152px;
  overflow-y: auto;
  font-size: 0.8rem;
}

.list li {
  margin-bottom: 0.2rem;
  color: var(--muted);
}

.muted {
  color: var(--muted);
  font-size: 0.82rem;
}

.small {
  font-size: 0.75rem;
}

.payload-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 0.7rem;
}

#payload {
  width: 100%;
  min-height: 220px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #050510;
  color: var(--accent-strong);
  padding: 0.7rem 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  resize: vertical;
}

.payload-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payload-actions input[type="url"] {
  width: 100%;
  margin-top: 0.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,5,18,0.85);
  color: var(--text);
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
}

.backend-log {
  margin-top: 0.7rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255,255,255,0.1);
  background: rgba(5,5,20,0.85);
  font-size: 0.78rem;
  max-height: 150px;
  overflow-y: auto;
}

.footer {
  max-width: 1120px;
  margin: 0 auto 1.6rem;
  padding: 0 1.2rem;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

@media (max-width: 960px) {
  .horloge-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hr-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .payload-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .card {
    padding: 1.1rem 1rem 1.1rem;
  }
  .layout {
    padding-inline: 0.8rem;
  }
  .brand-text h1 {
    font-size: 1rem;
  }
}


.card-reading {
  background: radial-gradient(circle at 100% 0, rgba(140, 255, 210, 0.12) 0, rgba(10, 10, 24, 1) 40%);
}

.reading-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 1.2rem;
  align-items: flex-start;
}

.reading-text {
  font-size: 0.86rem;
  line-height: 1.5;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 0.4rem;
  white-space: pre-wrap;
}

.reading-side {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.reading-box {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.07);
  background: radial-gradient(circle at 20% 0, rgba(245,199,93,0.14) 0, rgba(8,8,18,0.95) 60%);
  padding: 0.6rem 0.7rem;
}

.card-history {
  background: radial-gradient(circle at 0 100%, rgba(120,180,255,0.15) 0, rgba(10,10,24,1) 40%);
}

.history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 1.1rem;
}

.history-list {
  max-height: 180px;
  overflow-y: auto;
  font-size: 0.8rem;
}

.history-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.history-list button {
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
}

.small-btn {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  padding-inline: 0.7rem;
}

.questions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.q-btn {
  font-size: 0.78rem;
  padding-inline: 0.7rem;
}

.question-text {
  margin-top: 0.25rem;
  width: 100%;
  min-height: 90px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(5,5,18,0.95);
  color: var(--accent-strong);
  padding: 0.5rem 0.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  resize: vertical;
}

@media (max-width: 960px) {
  .reading-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .history-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}



.sceau-icon {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0.25rem auto 0.4rem;
  opacity: 0.995;
  transform-origin: 50% 50%;
  filter:
    drop-shadow(0 0 18px rgba(230,204,55,0.95))
    drop-shadow(0 0 32px rgba(255,245,210,0.7))
    brightness(1.5);
}



@keyframes sceau-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


.card-threnisqun {
  background: radial-gradient(circle at 10% 0, rgba(255,90,140,0.18) 0, rgba(8,8,20,1) 45%);
}

.thren-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 1.1rem;
  align-items: center;
}

.thren-symbol-wrap {
  display: flex;
  flex-direction: column;
  .thren-icon {
  width: 72px;
  height: 72px;
  margin: 0.25rem auto 0.4rem;
  transform-origin: 50% 50%;
  opacity: 0.995;
  /* Halo plus lumineux, icône fixe */
  filter:
    drop-shadow(0 0 22px rgba(255,215,160,0.9))
    drop-shadow(0 0 40px rgba(255,240,210,0.65))
    brightness(1.5);
  animation: heartbeat 3.4s ease-in-out infinite;
}
40px rgba(255,240,210,0.65))
    brightness(1.5);
}

.thren-name {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.thren-text-wrap {
  font-size: 0.84rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

@keyframes thren-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

@media (max-width: 960px) {
  .thren-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* --- Module sonore posœnnomnèsique --- */

.card-sound {
  background: radial-gradient(circle at 0 0, rgba(245,199,150,0.14) 0, var(--bg-elevated-soft) 42%);
}

.sound-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.sound-main .sound-freq {
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

.sound-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sound-options label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.82rem;
}

.sound-options select,
.sound-options input[type="range"] {
  margin-top: 0.1rem;
}

.noons-block {
  margin-top: 0.4rem;
}

.card-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
}

.table-wrapper {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  background: radial-gradient(circle at top, rgba(12,12,32,0.96), rgba(5,5,16,1));
  overflow: hidden;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.table-wrapper th,
.table-wrapper td {
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.table-wrapper th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  background: rgba(5,5,16,0.95);
}

.table-wrapper tbody tr:nth-child(even) {
  background: rgba(12,12,32,0.9);
}

.table-wrapper tbody tr:nth-child(odd) {
  background: rgba(8,8,24,0.9);
}

.table-wrapper tbody tr:hover {
  background: rgba(20,20,48,0.95);
}

/* --- Module Thème astral posœnnoïal --- */

.card-astro {
  background: radial-gradient(circle at 100% 0, rgba(139,92,246,0.22) 0, var(--bg-elevated) 38%);
}

.astro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 1.2rem;
  margin-top: 0.8rem;
}

.astro-form label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.82rem;
  margin-bottom: 0.55rem;
}

.astro-form input,
.astro-form select {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,10,26,0.95);
  color: var(--text);
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
  font-family: inherit;
}

.astro-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.astro-output h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.astro-text {
  width: 100%;
  min-height: 180px;
  max-height: 260px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,5,16,0.95);
  color: var(--text);
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .sound-grid,
  .astro-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Boutons d'horloges alignés */
.horloges-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.horloges-actions .calap-toggle-btn {
  flex: 1 1 180px;
  justify-content: center;
}


/* Bouton d'installation PWA, discret dans le header */
.install-btn {
  margin-left: auto;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at 30% 0%, rgba(15,23,42,0.9), rgba(15,23,42,0.98));
  color: #e5e7eb;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.0;
  transform: translateY(-2px);
  pointer-events: none;
  transition: opacity 160ms ease-out, transform 160ms ease-out, box-shadow 160ms ease-out;
}

.install-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.install-btn:hover {
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.5), 0 8px 20px rgba(15, 23, 42, 0.9);
}


/* Cadran concentrique pour l'heure posœnnoïale */
.poso-dial-card {
  margin-bottom: 0.75rem;
}
.dial-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}
#pos-dial {
  max-width: 264px;
  max-height: 264px;
}

.pos-dial-digital-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
  margin-bottom: 0.15rem;
}

.pos-dial-digital-row .small-digital {
  flex: 1 1 0;
  text-align: center;
}

/* Bloc signature de naissance */
.birth-card {
  margin-bottom: 0.75rem;
}
.birth-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.4rem 0.75rem;
  margin-top: 0.35rem;
}
.birth-fields label {
  font-size: 0.8rem;
  opacity: 0.9;
}
.birth-fields input {
  padding: 0.18rem 0.4rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.65);
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  font-size: 0.8rem;
  font-family: inherit;
}
.birth-fields input:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.95);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.5);
}


/* Cosmos Vivant – NASA */
.cosmos-card {
  margin-bottom: 0.85rem;
}
.cosmos-section + .cosmos-section {
  margin-top: 0.7rem;
}
.cosmos-btn {
  padding: 0.25rem 0.6rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148,163,184,0.6);
  background: radial-gradient(circle at 30% 0%, rgba(15,23,42,0.9), rgba(15,23,42,0.98));
  color: #e5e7eb;
  font-size: 0.8rem;
}
.cosmos-btn:hover {
  box-shadow: 0 0 0 1px rgba(129,140,248,0.5), 0 6px 18px rgba(15,23,42,0.9);
}
.cosmos-img {
  max-width: 100%;
  margin-top: 0.45rem;
  border-radius: 0.75rem;
}
.cosmos-pre {
  background: rgba(15,23,42,0.85);
  padding: 0.4rem 0.55rem;
  border-radius: 0.6rem;
  font-size: 0.7rem;
  max-height: 220px;
  overflow: auto;
  border: 1px solid rgba(30,64,175,0.65);
}
.cosmos-text {
  font-size: 0.78rem;
  margin-top: 0.25rem;
  opacity: 0.94;
}
.cosmos-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.25rem;
}
.cosmos-key-input {
  flex: 1 1 140px;
  padding: 0.18rem 0.4rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148,163,184,0.65);
  background: rgba(15,23,42,0.96);
  color: #e5e7eb;
  font-size: 0.8rem;
}
.cosmos-key-input:focus {
  outline: none;
  border-color: rgba(129,140,248,0.95);
  box-shadow: 0 0 0 1px rgba(129,140,248,0.55);
}


.cosmos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.cosmos-toggle-btn {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: transparent;
  color: #e5e7eb;
  font-size: 0.7rem;
}
.cosmos-card.collapsed .cosmos-section {
  display: none;
}


#delta-estime-label { text-align: center; }


.hpos-root.collapsed .hpos-body {
  display: none;
}



/* Posœnnoïal layout adjustments and accordions */

.small-digital {
  margin-top: 0.35rem;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.section-toggle {
  width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.8), rgba(15, 23, 42, 0.95));
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.section-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.85);
  border-color: rgba(129, 140, 248, 0.95);
}

.ritual-card.collapsed #ritual-content,
.info-card.collapsed #annual-content {
  display: none;
}

.calap-card.collapsed #calap-content {
  display: none;
}

.cosmos-card.collapsed #cosmos-content {
  display:none;
}

.local-accord-card.collapsed #local-accord-content {
  display: none;
}


#lexicon-card.collapsed #lexicon-content {
  display: none;
}


.local-accord-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.local-accord-col h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.local-accord-col .muted.small {
  line-height: 1.3;
}



/* --- Idéogramme Àṣẹxel’Or animé --- */

.ashexelor-container {
  position: relative;
  overflow: visible;
}

.ashexelor-logo {
  position: relative;
  width: 56px;
  height: 56px;
}

.ideogram-base,
.ideogram-part {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1); /* rend le noir en blanc sur fond sombre */
}

/* Les parties deviennent visibles seulement pendant le pulse, pour éviter l'effet de masse */
.ideogram-part {
  opacity: 0;
}

/* Pulse global (respiration) modulable par JS via custom properties */

.ashexelor-logo {
  --pulse-scale: 1;
  --pulse-strength: 0.06;
  --pulse-speed: 3s;
  animation: ashexelor-pulse var(--pulse-speed) ease-in-out infinite;
}

@keyframes ashexelor-pulse {
  0% {
    transform: scale(calc(var(--pulse-scale) * 1));
    opacity: 1;
  }
  35% {
    transform: scale(calc(var(--pulse-scale) * (1 + var(--pulse-strength))));
    opacity: 0.97;
  }
  60% {
    transform: scale(calc(var(--pulse-scale) * (1 + var(--pulse-strength) * 1.35)));
    opacity: 0.95;
  }
  100% {
    transform: scale(calc(var(--pulse-scale) * 1));
    opacity: 1;
  }
}

/* Déplacement subtil des trois parties, avec apparition au cœur du battement */

.part-x {
  animation: ashexelor-part-x var(--pulse-speed) ease-in-out infinite;
}

.part-o {
  animation: ashexelor-part-o var(--pulse-speed) ease-in-out infinite;
}

.part-stem {
  animation: ashexelor-part-stem var(--pulse-speed) ease-in-out infinite;
}

@keyframes ashexelor-part-x {
  0%,
  100% {
    transform: translate(0, 0) scale(0.96);
    opacity: 0;
  }
  35% {
    transform: translate(-1.5px, 1.5px) scale(0.98);
    opacity: 1;
  }
  65% {
    transform: translate(-3px, 2.5px) scale(1.02);
    opacity: 1;
  }
}

@keyframes ashexelor-part-o {
  0%,
  100% {
    transform: translate(0, 0) scale(0.96) rotate(0deg);
    opacity: 0;
  }
  35% {
    transform: translate(1.5px, -1px) scale(0.98) rotate(2deg);
    opacity: 1;
  }
  65% {
    transform: translate(3px, -2px) scale(1.02) rotate(4deg);
    opacity: 1;
  }
}

@keyframes ashexelor-part-stem {
  0%,
  100% {
    transform: translate(0, 0) scale(0.96);
    opacity: 0;
  }
  35% {
    transform: translate(0.5px, -2px) scale(0.98);
    opacity: 1;
  }
  65% {
    transform: translate(1.5px, -3px) scale(1.02);
    opacity: 1;
  }
}

  40% {
    transform: translate(0.5px, -2px);
  }
  70% {
    transform: translate(1px, -3px);
  }
}



/* Logo vidéo Àṣẹxel’Or – version halo transparent */
.logo-container .logo-video {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  background-color: transparent;
}


.card-posennomnese,
.posennomnese-card {
  background: radial-gradient(circle at 100% 0, rgba(129,140,248,0.16) 0, rgba(10,10,24,1) 42%);
  border-radius: var(--radius-xl);
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-subtle);
}

.posennomnese-header h3 {
  margin: 0;
  font-size: 0.9rem;
}

.posennomnese-header .small {
  margin-top: 0.1rem;
  font-size: 0.75rem;
}

.posennomnese-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.continuum-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.continuum-col h4 {
  margin: 0 0 0.15rem 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.continuum-col p {
  margin: 0;
  font-size: 0.85rem;
}

.memo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.memo-block label.k {
  display: block;
  margin-bottom: 0.25rem;
}

.memo-block textarea {
  width: 100%;
  min-height: 3.4rem;
  resize: vertical;
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: rgba(15,23,42,0.9);
  color: var(--text-main);
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
}

.memo-piste {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  white-space: pre-line;
}

.memo-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .continuum-row,
  .memo-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.figure-row {
  margin-top: 0.35rem;
}

.figure-intime {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: pre-line;
}

.journal-row {
  margin-top: 0.4rem;
}

.journal-list {
  list-style: none;
  padding-left: 0;
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  max-height: 7.5rem;
  overflow-y: auto;
}

.journal-list li {
  margin-bottom: 0.15rem;
}

.journal-list strong {
  font-weight: 600;
}

.info-dot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.info-dot-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.info-popup {
  display: none;
  margin-top: 0.35rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 0 0, rgba(129,140,248,0.24), rgba(15,23,42,0.96));
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--text-muted);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

.info-popup.open {
  display: block;
}

/* Overrides pour les boutons info de la posœnnomnèse (v12) */
.info-dot-btn {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--accent-soft, #a5b4fc);
  color: var(--accent-soft, #a5b4fc);
  font-size: 0.8rem;
  font-weight: 700;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(129,140,248,0.32),
    rgba(15,23,42,1)
  );
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  animation: info-pulse 2.4s ease-in-out infinite;
}

.info-dot-btn:hover {
  transform: translateY(-0.5px);
  box-shadow: 0 0 0 6px rgba(165,180,252,0.3), 0 14px 30px rgba(15,23,42,0.95);
}

.info-dot-btn:focus-visible {
  outline: 2px solid var(--accent-soft, #a5b4fc);
  outline-offset: 2px;
}

.info-popup {
  max-width: 22rem;
}



/* Synthèse du jour – ligne de lecture rapide dans la continuité posœnnomnèsique */
.synthese-jour {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0.9;
}

/* Qualités du jour */
.qualities-row {
  margin-top: 0.35rem;
}

.qualities-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

.quality-chip {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  padding: 0.15rem 0.55rem;
  font-size: 0.76rem;
  min-width: 4.1rem;
  text-align: center;
  color: #e5e7eb;
  font-weight: 500;
  background: radial-gradient(circle at 0% 0%, rgba(94,234,212,0.16), transparent 55%), rgba(15,23,42,0.95);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.quality-chip:hover {
  transform: translateY(-0.5px);
  box-shadow: 0 8px 18px rgba(15,23,42,0.8);
}

.quality-chip.active {
  border-color: rgba(129,140,248,0.95);
  box-shadow: 0 0 0 1px rgba(129,140,248,0.9), 0 10px 22px rgba(15,23,42,0.95);
  background:
    radial-gradient(circle at 0% 0%, rgba(129,140,248,0.32), transparent 60%),
    rgba(15,23,42,1);
  color: #e5e7eb;
}

/* Tiny hint text inside posennomnese card */
.tiny-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  margin-top: 0.12rem;
  opacity: 0.9;


#hpos-qualities-signature {
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-top: 0.25rem;
}}

/* Journal controls & qualities display */
.journal-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.journal-controls select {
  background-color: rgba(15,23,42,0.95);
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  padding: 0.15rem 0.75rem 0.18rem;
  font-size: 0.76rem;
}

.journal-qualities {
  font-size: 0.72rem;
  opacity: 0.9;
}



/* Qualités du jour : animation renforcée pour l’état actif et signature lisible */
@keyframes qualityChipPulse {
  0% {
    box-shadow: 0 0 4px rgba(180,200,255,0.3);
  }
  50% {
    box-shadow: 0 0 12px rgba(180,200,255,0.75);
  }
  100% {
    box-shadow: 0 0 4px rgba(180,200,255,0.3);
  }
}

.quality-chip {
  min-width: 4.1rem;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 500;
  color: #e5e7eb;
}

.quality-chip.active {
  border-color: rgba(180,200,255,0.95);
  animation: qualityChipPulse 2.4s ease-in-out infinite;
}

#hpos-qualities-signature {
  margin-top: 0.18rem;
}


/* Bloc Àṣẹxel’Or : niveau de conversion du temps */
.asexelor-row {
  margin-top: 0.35rem;
}

.asexelor-block {
  width: 100%;
}

.asexelor-meter {
  position: relative;
  margin-top: 0.2rem;
  height: 0.6rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 50%, rgba(180,200,255,0.35), transparent 70%),
              rgba(15,23,42,0.95);
  box-shadow: 0 0 0 1px rgba(199,210,254,0.6), 0 0 8px rgba(129,140,248,0.45);
  overflow: hidden;
}

.asexelor-meter-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(var(--asex-level, 0.25));
  transition: transform 480ms ease-out;
  background: linear-gradient(90deg,
    rgba(244, 244, 245, 0.08),
    rgba(199, 210, 254, 0.9),
    rgba(244, 244, 245, 0.18)
  );
  box-shadow: 0 0 10px rgba(199, 210, 254, 0.75);
}

.asexelor-text {
  margin-top: 0.25rem;
}


/* V4 – Ennéagone des 9 Sceaux */
.sceaux-enneagone {
  margin-top: 1.5rem;
}

.sceaux-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.sceau-card {
  border-radius: 0.75rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
  text-align: center;
}

.sceau-card img {
  max-width: 72px;
  margin-bottom: 0.35rem;
}

.sceau-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.sceau-role {
  font-size: 0.75rem;
}


/* V4 – Carte complète du jour & or des Sceaux */
.carte-jour {
  margin-top: 0.75rem;
  border-color: rgba(230,204,55,0.45);
  background: radial-gradient(circle at 0 0, rgba(230,204,55,0.16) 0, rgba(8,8,18,0.96) 60%);
}

.carte-jour-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: center;
}

.carte-jour-col {
  text-align: center;
}

.carte-label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

/* Renforcement doré des cartes de l’Ennéagone */
.sceaux-enneagone {
  border-color: rgba(230,204,55,0.25);
}

.sceaux-grid .sceau-card {
  background: radial-gradient(circle at 50% 0, rgba(230,204,55,0.18) 0, rgba(6,6,16,0.96) 60%);
  box-shadow:
    0 0 0 1px rgba(230,204,55,0.3),
    0 0 18px rgba(230,204,55,0.25);
}



@keyframes heartbeat {
  0% { transform: scale(1); }
  20% { transform: scale(1.09); }
  40% { transform: scale(0.97); }
  60% { transform: scale(1.08); }
  80% { transform: scale(0.99); }
  100% { transform: scale(1); }
}
.sceau-icon {
  animation: heartbeat 2.4s ease-in-out infinite;
}
