/* ============================================================
   numero-profile.css — extrait de styles.css le 2026-05-07
   Phase 3 (extraction CSS module-par-module).
   43 règles, ~221 lignes.
   Cut & paste pur — aucune simplification ni reformat.
   ============================================================ */

#numerologyProfileView h2.astro-title {
  color: var(--gold-main) !important;
}

.num-result-header { text-align: center; margin-bottom: 32px; }

.num-result-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-main);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.num-result-tagline {
  font-size: 0.82rem;
  color: var(--tx-muted);
  letter-spacing: 0.05em;
  margin: 0;
}

.num-constellation {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.num-constellation-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(6, 10, 20, 0.85);
  border: 1px solid rgba(230, 210, 130, 0.18);
  border-radius: 16px;
  padding: 18px 16px 13px;
  min-width: 86px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.num-constellation-badge:hover {
  border-color: rgba(230, 210, 130, 0.38);
  box-shadow: 0 0 18px rgba(230, 210, 130, 0.07);
}

.num-constellation-number {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
}

.num-constellation-label {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tx-muted);
  text-align: center;
}

.num-portrait {
  margin-bottom: 32px;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--tx-body);
}

.num-portrait p { margin: 0 0 12px; }

.num-portrait-section {
  background: rgba(6, 10, 20, 0.82);
  border: 1px solid rgba(230, 210, 130, 0.14);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease;
}

.num-portrait-section:hover { border-color: rgba(230, 210, 130, 0.28); }

.num-portrait-section-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 8px;
  font-weight: 700;
}

.num-portrait-section-text {
  font-size: 0.9rem;
  color: var(--tx-body);
  line-height: 1.65;
  margin: 0;
}

.num-portrait-loading { color: var(--tx-muted); font-style: italic; }

.num-dimensions-cta { text-align: center; margin-bottom: 32px; }

.num-dimensions-hint {
  font-size: 0.8rem;
  color: var(--tx-muted);
  margin: 8px 0 0;
  letter-spacing: 0.04em;
}

.num-dimensions-wrap { margin-bottom: 32px; }

.num-dimensions-title {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-main);
  opacity: 0.8;
  margin: 0 0 18px;
}

.num-dimensions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.num-dimension-card {
  background: rgba(6, 10, 20, 0.82);
  border: 1px solid rgba(230, 210, 130, 0.14);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color 0.2s ease;
}

.num-dimension-card:hover { border-color: rgba(230, 210, 130, 0.28); }

.num-dimension-card-title {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 700;
  margin-bottom: 8px;
}

.num-dimension-card-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--tx-body);
}

.num-actions-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid rgba(230, 210, 130, 0.08);
}

#numerologyProfileView input[type="text"] {
  transition: border-color 0.2s ease;
}

#numerologyProfileView input[type="text"]:focus {
  outline: none;
  border-color: rgba(230, 210, 130, 0.45) !important;
}

#numeroProfileSavedPills .pill-x {
  opacity: 0.35;
  font-size: 1rem;
  line-height: 1;
  transition: opacity 0.15s;
  pointer-events: auto;
}

#numeroProfileSavedPills .pill-x:hover {
  opacity: 0.9;
}

.numero-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 18px;
  flex-wrap: wrap;
}

.numero-tab {
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 999px;
  padding: 6px 16px;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.25s;
}

.numero-tab:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

.numero-tab.active {
  background: linear-gradient(135deg, rgba(230, 210, 130, 0.18), rgba(234, 219, 152, 0.10));
  color: var(--gold-main);
  border-color: var(--gold-main);
  box-shadow: 0 0 12px rgba(230, 210, 130, 0.2);
}

.numero-tab-content {
  display: none;
  animation: numeroTabFadeIn 0.3s ease;
}

.numero-tab-content.active {
  display: block;
}

@media (max-width: 580px) {
  .num-dimensions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  #numerologyProfileView #numProfileFormState > img,
    #numerologyProfileView #numProfileFormState > video {
      max-height: 120px !important;
      width: auto !important;
      max-width: 100% !important;
      object-fit: contain !important;
      display: block !important;
      margin: 0 auto 6px !important;
    }
  #numerologyProfileView #numProfileFormState.astro-wrapper {
      transform: translateY(-5px) !important;
    }
  .view.active#numerologyProfileView #numProfileFormState > img:first-of-type,
    .view.active#numerologyProfileView #numProfileFormState > video:first-of-type {
      max-height: 120px !important;
      width: auto !important;
      max-width: 100% !important;
      object-fit: contain !important;
      display: block !important;
      margin-top: 0 !important;
      margin-bottom: 12px !important;
    }
  .view.active#numerologyProfileView #numProfileFormState {
      position: relative !important;
      top: 0 !important;
    }
  .view.active#numerologyProfileView #numProfileFormState > h2.astro-title {
      margin-top: 0 !important;
      margin-bottom: 4px !important;
    }
  .view.active#numerologyProfileView #numProfileFormState > p.astro-subtitle {
      margin-top: 0 !important;
      margin-bottom: 12px !important;
    }
}


/* ============================================================
   NUMÉROLOGIE — Fond mystique sur toutes les vues numéro
   2026-05-16
   ============================================================ */

/* Portrait / mobile par défaut */
body:has(#numeroView.active, #numerologyProfileView.active, #numerologyCyclesView.active, #numerologyKarmaView.active, #numerologyNamesView.active, #karmaResultView.active) {
  background:
    radial-gradient(ellipse at center, rgba(2,6,23,0.0) 0%, rgba(2,6,23,0.55) 100%),
    linear-gradient(rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.45)),
    url("/images/back_numero_portrait.webp") center center / cover no-repeat fixed
    #020617 !important;
}

/* Desktop large : version 16:9 */
@media (min-width: 1025px) and (orientation: landscape) {
  body:has(#numeroView.active, #numerologyProfileView.active, #numerologyCyclesView.active, #numerologyKarmaView.active, #numerologyNamesView.active, #karmaResultView.active) {
    background:
      radial-gradient(ellipse at center, rgba(2,6,23,0.0) 0%, rgba(2,6,23,0.55) 100%),
      linear-gradient(rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.45)),
      url("/images/back_numero_desktop.webp") center center / cover no-repeat fixed
      #020617 !important;
  }
}

/* ============================================================
   NUMÉROLOGIE — Lifting premium "Profil de vie"
   Grammaire visuelle alignée sur tarot/astro
   2026-05-16
   ============================================================ */

/* === HERO FRAME : cadre or autour du formulaire === */
#numerologyProfileView #numProfileFormState.astro-wrapper {
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.38) !important;
  border-radius: 14px !important;
  background: rgba(2, 6, 23, 0.55) !important;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.08) inset,
    0 8px 32px rgba(0, 0, 0, 0.45) !important;
  padding: 36px 28px 28px !important;
}

/* Équerres dorées aux 4 coins du formulaire */
#numerologyProfileView #numProfileFormState.astro-wrapper::before,
#numerologyProfileView #numProfileFormState.astro-wrapper::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid #d4af37;
  pointer-events: none;
}
#numerologyProfileView #numProfileFormState.astro-wrapper::before {
  top: 10px; left: 10px;
  border-right: none;
  border-bottom: none;
}
#numerologyProfileView #numProfileFormState.astro-wrapper::after {
  bottom: 10px; right: 10px;
  border-left: none;
  border-top: none;
}

/* === TITRE PROFIL DE VIE : serif or avec ◆ === */
#numerologyProfileView h2.astro-title {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: #d4af37 !important;
  font-weight: 500 !important;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  margin: 8px 0 6px !important;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.25) !important;
}
#numerologyProfileView h2.astro-title::before,
#numerologyProfileView h2.astro-title::after {
  content: "◆";
  display: inline-block;
  color: #d4af37;
  font-size: 0.5em;
  vertical-align: middle;
  margin: 0 0.6em;
  opacity: 0.75;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
}

/* Sous-titre formulaire */
#numerologyProfileView #numProfileFormState .astro-subtitle {
  color: rgba(230, 210, 130, 0.75) !important;
  text-align: center !important;
  font-style: italic !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 22px !important;
}

/* === NOM DU PROFIL (résultat) : serif or majestueux === */
#numerologyProfileView .num-result-name,
#numerologyProfileView #numProfileResultName {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: #d4af37 !important;
  font-weight: 500 !important;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem) !important;
  letter-spacing: 0.14em !important;
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.3) !important;
  margin: 0 0 12px !important;
}
#numerologyProfileView .num-result-name::before,
#numerologyProfileView #numProfileResultName::before,
#numerologyProfileView .num-result-name::after,
#numerologyProfileView #numProfileResultName::after {
  content: "◆";
  display: inline-block;
  color: #d4af37;
  font-size: 0.45em;
  vertical-align: middle;
  margin: 0 0.7em;
  opacity: 0.75;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
}

/* === BADGES CONSTELLATION : équerres or === */
#numerologyProfileView .num-constellation-badge {
  position: relative;
  background: rgba(2, 6, 23, 0.72) !important;
  border: 1px solid rgba(212, 175, 55, 0.32) !important;
  padding: 22px 18px 16px !important;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.06) inset,
    0 4px 16px rgba(0, 0, 0, 0.35);
}
#numerologyProfileView .num-constellation-badge::before,
#numerologyProfileView .num-constellation-badge::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(212, 175, 55, 0.7);
  pointer-events: none;
}
#numerologyProfileView .num-constellation-badge::before {
  top: 6px; left: 6px;
  border-right: none;
  border-bottom: none;
}
#numerologyProfileView .num-constellation-badge::after {
  bottom: 6px; right: 6px;
  border-left: none;
  border-top: none;
}
#numerologyProfileView .num-constellation-badge:hover {
  border-color: rgba(212, 175, 55, 0.55) !important;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.1) inset,
    0 0 24px rgba(212, 175, 55, 0.18);
}

#numerologyProfileView .num-constellation-number {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-weight: 600 !important;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.35) !important;
}
#numerologyProfileView .num-constellation-label {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: #d4af37 !important;
  letter-spacing: 0.14em !important;
  font-size: 0.7rem !important;
  opacity: 0.85;
}

/* === SECTIONS PORTRAIT : cadre or + équerres + drop-cap === */
#numerologyProfileView .num-portrait-section {
  position: relative;
  background: rgba(2, 6, 23, 0.7) !important;
  border: 1px solid rgba(212, 175, 55, 0.28) !important;
  border-radius: 14px !important;
  padding: 22px 24px !important;
  margin-bottom: 16px !important;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.06) inset,
    0 4px 16px rgba(0, 0, 0, 0.35);
}
#numerologyProfileView .num-portrait-section::before,
#numerologyProfileView .num-portrait-section::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(212, 175, 55, 0.65);
  pointer-events: none;
}
#numerologyProfileView .num-portrait-section::before {
  top: 8px; left: 8px;
  border-right: none;
  border-bottom: none;
}
#numerologyProfileView .num-portrait-section::after {
  bottom: 8px; right: 8px;
  border-left: none;
  border-top: none;
}
#numerologyProfileView .num-portrait-section:hover {
  border-color: rgba(212, 175, 55, 0.45) !important;
}

#numerologyProfileView .num-portrait-section-label {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: #d4af37 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.16em !important;
  font-weight: 500 !important;
  margin: 0 0 10px !important;
}
#numerologyProfileView .num-portrait-section-label::before {
  content: "◆";
  display: inline-block;
  margin-right: 0.5em;
  font-size: 0.7em;
  opacity: 0.7;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
  vertical-align: middle;
}

/* Drop-cap sur le texte de section (première lettre or) */
#numerologyProfileView .num-portrait-section-text::first-letter {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: 2.4em;
  font-weight: 600;
  color: #d4af37;
  float: left;
  line-height: 0.95;
  margin: 4px 8px 0 0;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

/* === TITRE "TES 6 DIMENSIONS" === */
#numerologyProfileView .num-dimensions-title {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: #d4af37 !important;
  font-size: 1rem !important;
  letter-spacing: 0.18em !important;
  opacity: 1 !important;
  margin: 8px 0 22px !important;
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
}
#numerologyProfileView .num-dimensions-title::before,
#numerologyProfileView .num-dimensions-title::after {
  content: "◆";
  display: inline-block;
  margin: 0 0.7em;
  font-size: 0.7em;
  opacity: 0.75;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
  vertical-align: middle;
}

/* === CARTES DIMENSIONS : équerres or === */
#numerologyProfileView .num-dimension-card {
  position: relative;
  background: rgba(2, 6, 23, 0.7) !important;
  border: 1px solid rgba(212, 175, 55, 0.28) !important;
  border-radius: 14px !important;
  padding: 22px 22px 20px !important;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.06) inset,
    0 4px 16px rgba(0, 0, 0, 0.35);
}
#numerologyProfileView .num-dimension-card::before,
#numerologyProfileView .num-dimension-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  pointer-events: none;
}
#numerologyProfileView .num-dimension-card::before {
  top: 7px; left: 7px;
  border-right: none;
  border-bottom: none;
}
#numerologyProfileView .num-dimension-card::after {
  bottom: 7px; right: 7px;
  border-left: none;
  border-top: none;
}
#numerologyProfileView .num-dimension-card:hover {
  border-color: rgba(212, 175, 55, 0.45) !important;
}

#numerologyProfileView .num-dimension-card-title {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: #d4af37 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.16em !important;
  font-weight: 500 !important;
  margin-bottom: 10px !important;
}
#numerologyProfileView .num-dimension-card-title::before {
  content: "◆";
  display: inline-block;
  margin-right: 0.5em;
  font-size: 0.7em;
  opacity: 0.7;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
  vertical-align: middle;
}

/* Drop-cap dimensions */
#numerologyProfileView .num-dimension-card-text::first-letter {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: 2.2em;
  font-weight: 600;
  color: #d4af37;
  float: left;
  line-height: 0.95;
  margin: 4px 7px 0 0;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

/* === PILLS PROFILS SAUVEGARDÉS — habillage or === */
#numerologyProfileView #numeroProfileSavedSection > p,
#numerologyProfileView .astro-saved-label {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: #d4af37 !important;
  letter-spacing: 0.16em !important;
  font-size: 0.78rem !important;
}

#numerologyProfileView #numeroProfileSavedPills .tarot-theme-pill {
  background: rgba(2, 6, 23, 0.65) !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  color: #d4af37 !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.06em !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#numerologyProfileView #numeroProfileSavedPills .tarot-theme-pill:hover {
  border-color: rgba(212, 175, 55, 0.7) !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.2);
}

/* === BARRE D'ACTIONS BAS DE PAGE === */
#numerologyProfileView .num-actions-bar {
  border-top: 1px solid rgba(212, 175, 55, 0.22) !important;
  padding-top: 28px !important;
}

/* === VIGNETTE HAUT (arbre/icône) : cadre or subtil === */
#numerologyProfileView #numProfileFormState > img:first-of-type,
#numerologyProfileView #numProfileFormState > video:first-of-type {
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.08) inset,
    0 0 32px rgba(212, 175, 55, 0.08);
}

/* ============================================================
   NUMÉROLOGIE — Lifting v2 : hiérarchie portrait/dimensions
   2026-05-16
   ============================================================ */

/* === ALLÉGER LES 6 DIMENSIONS : retirer équerres, filet or à gauche === */
#numerologyProfileView .num-dimension-card {
  background: rgba(2, 6, 23, 0.5) !important;
  border: none !important;
  border-left: 2px solid rgba(212, 175, 55, 0.55) !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 16px 18px 14px 18px !important;
  box-shadow: none !important;
}
#numerologyProfileView .num-dimension-card::before,
#numerologyProfileView .num-dimension-card::after {
  content: none !important;
  display: none !important;
}
#numerologyProfileView .num-dimension-card:hover {
  border-left-color: rgba(212, 175, 55, 0.85) !important;
  background: rgba(2, 6, 23, 0.62) !important;
}

/* Titre dimension sans ◆ (allégé) */
#numerologyProfileView .num-dimension-card-title::before {
  content: none !important;
}

/* === SÉPARATEUR ORNEMENTAL avant "TES 6 DIMENSIONS" === */
#numerologyProfileView .num-dimensions-wrap {
  position: relative;
  padding-top: 32px;
  margin-top: 28px;
}
#numerologyProfileView .num-dimensions-wrap::before {
  content: "◆";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: #d4af37;
  font-size: 0.95rem;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
  background: transparent;
  padding: 0 16px;
  z-index: 2;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}
#numerologyProfileView .num-dimensions-wrap::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0) 10%,
    rgba(212, 175, 55, 0.45) 35%,
    rgba(212, 175, 55, 0.45) 65%,
    rgba(212, 175, 55, 0) 90%,
    transparent 100%
  );
  z-index: 1;
}

/* === BOUTONS BAS : outline gold serif === */
#numerologyProfileView .num-actions-bar #numProfileBackBtn,
#numerologyProfileView .num-actions-bar #numProfileSaveBtn {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s !important;
}

/* Nouveau profil : outline pur */
#numerologyProfileView #numProfileBackBtn {
  background: transparent !important;
  border: 1px solid rgba(212, 175, 55, 0.55) !important;
  color: #d4af37 !important;
}
#numerologyProfileView #numProfileBackBtn:hover {
  border-color: #d4af37 !important;
  background: rgba(212, 175, 55, 0.08) !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25) !important;
}

/* Sauvegarder / Déjà sauvegardé : rempli léger */
#numerologyProfileView #numProfileSaveBtn {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.10)) !important;
  border: 1px solid rgba(212, 175, 55, 0.7) !important;
  color: #f0d97a !important;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}
#numerologyProfileView #numProfileSaveBtn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.32), rgba(212, 175, 55, 0.16)) !important;
  border-color: #d4af37 !important;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35) !important;
}
#numerologyProfileView #numProfileSaveBtn:disabled {
  opacity: 0.7;
  cursor: default;
}

/* === Badge arcanes "Analyser mon profil" : passer en or === */
#numerologyProfileView #numeroProfileAnalyzeBtn .arcane-badge-inline {
  color: rgba(212, 175, 55, 0.85) !important;
}
#numerologyProfileView #numeroProfileAnalyzeBtn .arcane-badge-inline::before {
  color: #d4af37 !important;
}

/* ============================================================
   NUMÉROLOGIE — Onglets accordion premium (mobile)
   Aligné sur la grammaire astro profil complet / tarot
   2026-05-16
   ============================================================ */

@media (max-width: 767px) {
  /* Conteneurs : marge homogène, largeur 100% */
  #numerologyProfileView .reading-chapter {
    background: rgba(2, 6, 23, 0.55) !important;
    border: 1px solid rgba(212, 175, 55, 0.22) !important;
    border-radius: 10px !important;
    margin: 12px 0 !important;
    overflow: hidden !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  #numerologyProfileView .reading-chapter:hover {
    border-color: rgba(212, 175, 55, 0.45) !important;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.08) !important;
  }

  /* Bouton : pas de pill jaune, sobre serif or comme tarot 3 cartes */
  #numerologyProfileView .reading-chapter-btn {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    color: #d4af37 !important;
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    transition: color 0.2s ease !important;
  }
  #numerologyProfileView .reading-chapter-btn:hover {
    color: #f0d97a !important;
    background: transparent !important;
  }
  #numerologyProfileView .reading-chapter-btn[aria-expanded="true"] {
    background: transparent !important;
    color: #f0d97a !important;
  }

  #numerologyProfileView .reading-chapter-label {
    flex: 1 !important;
    text-align: left !important;
  }

  #numerologyProfileView .reading-chapter-arrow {
    color: rgba(212, 175, 55, 0.75) !important;
    font-size: 0.7rem !important;
    transition: transform 0.25s ease !important;
    margin-left: 12px !important;
    opacity: 1 !important;
  }
  #numerologyProfileView .reading-chapter-btn[aria-expanded="true"] .reading-chapter-arrow {
    transform: rotate(180deg) !important;
  }

  #numerologyProfileView .reading-chapter-body {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.35s ease, padding 0.35s ease !important;
    padding: 0 14px !important;
    display: block !important;
    animation: none !important;
  }
  #numerologyProfileView .reading-chapter-btn[aria-expanded="true"] + .reading-chapter-body,
  #numerologyProfileView .reading-chapter-body.reading-chapter-open {
    max-height: 6000px !important;
    padding: 4px 14px 18px !important;
  }

  /* Séparateur ornemental : neutraliser en mobile car le chapitre 2 gère ça */
  #numerologyProfileView .num-dimensions-wrap {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  #numerologyProfileView .num-dimensions-wrap::before,
  #numerologyProfileView .num-dimensions-wrap::after {
    content: none !important;
  }
}

/* === Constellation : grille 2x2 sur mobile, 4 colonnes égales sur desktop === */
@media (max-width: 767px) {
  #numerologyProfileView .num-constellation {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  #numerologyProfileView .num-constellation-badge {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}
@media (min-width: 768px) {
  #numerologyProfileView .num-constellation {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
  #numerologyProfileView .num-constellation-badge {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Cacher le titre redondant 'Tes 6 dimensions' sur mobile (déjà dans l\"onglet) */
@media (max-width: 767px) {
  #numerologyProfileView .num-dimensions-title {
    display: none !important;
  }
}

/* Nom + prénom sur UNE ligne sur mobile : auto-fit de la taille */
@media (max-width: 767px) {
  #numerologyProfileView .num-result-name,
  #numerologyProfileView #numProfileResultName {
    white-space: nowrap !important;
    font-size: clamp(0.9rem, 5.5vw, 1.6rem) !important;
    letter-spacing: 0.08em !important;
    overflow: visible !important;
    padding: 0 6px !important;
  }
  #numerologyProfileView .num-result-name::before,
  #numerologyProfileView #numProfileResultName::before,
  #numerologyProfileView .num-result-name::after,
  #numerologyProfileView #numProfileResultName::after {
    margin: 0 0.35em !important;
    font-size: 0.4em !important;
  }
}

/* ============================================================
   NUM — Cadre or sur l'entête de vue (cycles + profil)
   2026-05-16
   ============================================================ */
#numerologyCyclesView .num-view-header,
#numerologyProfileView .num-view-header {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin: 0 auto 28px;
  padding: 22px 24px 18px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 14px;
  box-sizing: border-box;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.06) inset,
    0 8px 32px rgba(0, 0, 0, 0.45);
}
#numerologyCyclesView .num-view-header::before,
#numerologyCyclesView .num-view-header::after,
#numerologyProfileView .num-view-header::before,
#numerologyProfileView .num-view-header::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(212, 175, 55, 0.7);
  pointer-events: none;
}
#numerologyCyclesView .num-view-header::before,
#numerologyProfileView .num-view-header::before {
  top: 8px; left: 8px; border-right: none; border-bottom: none;
}
#numerologyCyclesView .num-view-header::after,
#numerologyProfileView .num-view-header::after {
  bottom: 8px; right: 8px; border-left: none; border-top: none;
}
#numerologyCyclesView .num-view-header h2,
#numerologyProfileView .num-view-header h2 {
  margin: 0 0 6px !important;
}
#numerologyCyclesView .num-view-header .astro-subtitle,
#numerologyProfileView .num-view-header .astro-subtitle {
  margin: 0 !important;
}

/* ============================================================
   CYCLES — Mois/Année : équerres or comme les cartes Jour
   ============================================================ */
#numerologyCyclesView .cycles-interp-block {
  position: relative !important;
  background: rgba(2, 6, 23, 0.7) !important;
  border: 1px solid rgba(212, 175, 55, 0.28) !important;
  border-left: 1px solid rgba(212, 175, 55, 0.28) !important;
  border-radius: 14px !important;
  padding: 20px 22px !important;
  margin-bottom: 12px !important;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.06) inset,
    0 4px 16px rgba(0, 0, 0, 0.35) !important;
}
#numerologyCyclesView .cycles-interp-block::before,
#numerologyCyclesView .cycles-interp-block::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  pointer-events: none;
}
#numerologyCyclesView .cycles-interp-block::before {
  top: 7px; left: 7px; border-right: none; border-bottom: none;
}
#numerologyCyclesView .cycles-interp-block::after {
  bottom: 7px; right: 7px; border-left: none; border-top: none;
}
#numerologyCyclesView .cycles-interp-block-label::before {
  content: "◆";
  display: inline-block;
  margin-right: 0.5em;
  font-size: 0.75em;
  opacity: 0.7;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
  vertical-align: middle;
  color: #d4af37;
}
#numerologyCyclesView .cycles-interp-block-text::first-letter {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: 2.2em;
  font-weight: 600;
  color: #d4af37;
  float: left;
  line-height: 0.95;
  margin: 4px 7px 0 0;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

/* Onglet "Année" : éviter conflit avec celui des dimensions */

/* === Fix 1 : sous-titre profil de vie recentré === */
#numerologyProfileView .num-view-header,
#numerologyCyclesView .num-view-header {
  text-align: center !important;
}
#numerologyProfileView .num-view-header .astro-subtitle,
#numerologyCyclesView .num-view-header .astro-subtitle {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* === Fix 2 : badge arcanes centré dans les pills Jour/Mois/Année === */
#numerologyCyclesView .numero-cycles-tab {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
}
#numerologyCyclesView .numero-cycles-tab .arcane-badge-inline {
  text-align: center !important;
  display: block !important;
  width: auto !important;
  margin: 0 auto !important;
}

/* === Fix 3 : cadre or + équerres autour du calendrier === */
#numerologyCyclesView .cycles-calendar-container {
  position: relative !important;
  background: rgba(2, 6, 23, 0.7) !important;
  border: 1px solid rgba(212, 175, 55, 0.32) !important;
  border-radius: 14px !important;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.06) inset,
    0 4px 20px rgba(0, 0, 0, 0.45) !important;
}
#numerologyCyclesView .cycles-calendar-container::before,
#numerologyCyclesView .cycles-calendar-container::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(212, 175, 55, 0.7);
  pointer-events: none;
  z-index: 2;
}
#numerologyCyclesView .cycles-calendar-container::before {
  top: 8px; left: 8px;
  border-right: none; border-bottom: none;
}
#numerologyCyclesView .cycles-calendar-container::after {
  bottom: 8px; right: 8px;
  border-left: none; border-top: none;
}
