/* =============================================================================
   Dreamolab — mangal-dosha.css
   Version : 1.2.0 (2026-09-24) — résultat enrichi : échelle d'intensité (.dmd-scale), lecture IA
     (.dmd-ia), interprétation sous chaque référence (.dmd-ref-txt), nuances (.dmd-atten .is-nuance),
     effets + puces de domaines (.dmd-effets, .dmd-chip), rappels traditionnels (.dmd-remedes).
   Version : 1.1.0 (2026-09-24) — inchangé depuis 1.0.0 (numéro aligné sur le plugin)
   Version : 1.0.0 (2026-07-12) — calculateur Mangal Dosha (verdict gradué + références + atténuations)
   Calculateur Sade Sati. Aligné Mystic (réutilise les variables du thème enfant
   avec repli), pensé pour la section sombre (.dml-dark / #calculer).
   Signature : l'arc de Saturne (montante → sommet → descendante) autour de la Lune.
   ========================================================================== */
.dmd-form,
.dmd-result {
  --dmd-gold:   var(--dml-gold, #c8a25a);
  --dmd-gold-l: #e8cd7e;
  --dmd-ink:    var(--dml-ink, #1a1d3a);
  --dmd-parch:  var(--dml-parch, #f4ead5);
  --dmd-line:   rgba(200, 162, 90, 0.30);
  --dmd-brume:  rgba(244, 234, 213, 0.62);
  --dmd-mont:   #7d78b0;
  --dmd-somm:   #e8cd7e;
  --dmd-desc:   #b98a5a;
}

.dmd-form {
  max-width: 620px;
  margin: 1.6rem auto 0;
  text-align: left;
  font-family: var(--dml-font-body, 'Inter', system-ui, sans-serif);
  color: var(--dmd-parch);
}

.dmd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
}
@media (max-width: 640px) { .dmd-grid { grid-template-columns: 1fr; } }

.dmd-field { display: flex; flex-direction: column; gap: 0.35rem; }
.dmd-col-2 { grid-column: 1 / -1; }
.dmd-field > span {
  font-family: var(--dml-font-sc, 'Cormorant SC', serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--dmd-gold);
}
.dmd-field input,
.dmd-field select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--dmd-line);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  color: var(--dmd-parch);
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
}
.dmd-field input::placeholder { color: rgba(244, 234, 213, 0.4); }
.dmd-field input:focus,
.dmd-field select:focus {
  outline: none;
  border-color: var(--dmd-gold);
  box-shadow: 0 0 0 2px rgba(200, 162, 90, 0.18);
}
.dmd-field input[type="date"]::-webkit-calendar-picker-indicator,
.dmd-field input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(0.8) sepia(1) saturate(2) hue-rotate(5deg); }
.dmd-hint { font-size: 0.72rem; color: var(--dmd-brume); font-style: normal; }




.dmd-lead {
  border: 1px solid var(--dmd-line);
  border-radius: 3px;
  padding: 0.9rem 1.1rem 1.1rem;
  margin: 1.3rem 0 0;
}
.dmd-lead > legend {
  font-family: var(--dml-font-sc, 'Cormorant SC', serif);
  letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 0.72rem; color: var(--dmd-gold); padding: 0 0.5rem;
}
.dmd-consent {
  display: flex; gap: 0.6rem; align-items: flex-start;
  margin: 0.7rem 0 0; font-size: 0.8rem; line-height: 1.45; color: var(--dmd-brume);
}
.dmd-consent input { margin-top: 0.2rem; accent-color: var(--dmd-gold); }

.dmd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.dmd-turnstile { margin: 1.1rem 0 0; }

.dmd-submit {
  margin-top: 1.4rem; width: 100%;
  background: var(--dmd-gold); color: var(--dmd-ink);
  border: none; border-radius: 2px; padding: 0.95rem 1.4rem;
  font-family: var(--dml-font-sc, 'Cormorant SC', serif);
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem;
  cursor: pointer; transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.dmd-submit:hover { background: var(--dml-gold-deep, #a07a3a); transform: translateY(-1px); }
.dmd-submit:disabled { opacity: 0.55; cursor: default; transform: none; }
.dmd-submit.is-loading { position: relative; color: transparent; }
.dmd-submit.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(26, 29, 58, 0.35); border-top-color: var(--dmd-ink);
  animation: dmd-spin .7s linear infinite;
}
@keyframes dmd-spin { to { transform: rotate(360deg); } }

.dmd-status { margin: 0.9rem 0 0; min-height: 1.2em; font-size: 0.9rem; text-align: center; }
.dmd-status.is-error   { color: #e9a17a; }
.dmd-status.is-ok      { color: var(--dmd-gold); }
.dmd-status.is-loading { color: var(--dmd-brume); }

/* ---- Résultat ---- */
.dmd-result {
  max-width: 620px; margin: 1.5rem auto 0; padding: 1.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dmd-line); border-radius: 4px;
  color: var(--dmd-parch); line-height: 1.6;
  font-family: var(--dml-font-body, 'Inter', system-ui, sans-serif);
  animation: dmd-rise .5s ease both;
}
@keyframes dmd-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.dmd-sub { color: var(--dmd-brume); font-size: 0.9rem; margin: 0 0 1.1rem; }
.dmd-sub b { color: var(--dmd-parch); font-weight: 600; }

/* Signature : l'arc de Saturne */


.dmd-seg { fill: none; stroke-width: 9; stroke-linecap: round; opacity: 0.30; }
.dmd-seg.on { opacity: 1; }
.dmd-seg-m { stroke: var(--dmd-mont); } .dmd-seg-s { stroke: var(--dmd-somm); } .dmd-seg-d { stroke: var(--dmd-desc); }
.dmd-moon-c { fill: #f3eede; } .dmd-moon-h { fill: none; stroke: var(--dmd-ink); stroke-width: 2; }
.dmd-saturn { fill: #b8863f; stroke: var(--dmd-gold-l); stroke-width: 1.5; filter: drop-shadow(0 0 8px rgba(232,205,126,.75)); }
.dmd-albl { font-family: 'Inter', sans-serif; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; fill: var(--dmd-brume); }
.dmd-albl.on { fill: var(--dmd-gold-l); font-weight: 600; }
.dmd-mlbl { font-family: var(--dml-font-display, 'Cormorant Garamond', serif); font-style: italic; font-size: 15px; fill: #f3eede; }

/* Frise des 3 phases */

.dmd-ph {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.85rem;
  padding: 0.7rem 0.9rem; border: 1px solid var(--dmd-line); border-radius: 3px;
  background: rgba(255,255,255,0.03);
}
.dmd-ph.on { border-color: var(--dmd-gold); background: rgba(200,162,90,0.10); }
.dmd-dot { width: 11px; height: 11px; border-radius: 50%; }
.dmd-dot-m { background: var(--dmd-mont); } .dmd-dot-s { background: var(--dmd-somm); } .dmd-dot-d { background: var(--dmd-desc); }
.dmd-ph .n { font-weight: 600; font-size: 0.9rem; }
.dmd-ph .sg { color: var(--dmd-brume); font-size: 0.76rem; display: block; }
.dmd-ph .dt { font-size: 0.76rem; color: var(--dmd-brume); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dmd-ph.on .dt { color: var(--dmd-gold-l); }
.dmd-badge {
  display: inline-block; font-size: 0.62rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dmd-ink); background: var(--dmd-gold-l); border-radius: 20px; padding: 1px 8px;
  font-weight: 600; margin-left: 6px; vertical-align: middle;
}
.dmd-prose { font-size: 0.92rem; margin: 0 0 0.5rem; }

.dmd-warn {
  background: rgba(217,154,108,0.10); border: 1px solid rgba(217,154,108,0.30);
  color: #e9c3a3; border-radius: 3px; padding: 0.7rem 0.9rem; font-size: 0.8rem; margin: 0.9rem 0 0;
}
.dmd-cta {
  display: block; text-align: center; margin-top: 1.2rem;
  color: var(--dmd-gold-l); text-decoration: none; font-weight: 600; font-size: 0.9rem;
}
.dmd-cta:hover { text-decoration: underline; }

/* ---- v1.1.0 : autocomplétion du lieu de naissance (portée de birth-form) ---- */
.dmd-geo { position: relative; }
.dmd-geo-list {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  right: 0;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  background: #fffdf8;
  border: 1px solid var(--dml-gold, #c8a25a);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(26, 29, 58, 0.18);
  max-height: 240px;
  overflow-y: auto;
  display: none;
}
.dmd-geo-list.is-open { display: block; }
.dmd-geo-item {
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--dml-ink, #1a1d3a);
}
.dmd-geo-item:hover { background: rgba(200, 162, 90, 0.16); }
.dmd-geo input.is-geo-ok   { border-color: #3a8a4a; box-shadow: 0 0 0 1px rgba(58,138,74,0.35); }
.dmd-geo input.is-geo-warn { border-color: #b56a2a; box-shadow: 0 0 0 1px rgba(181,106,42,0.35); }

/* ═══════════════════════════════════════════════════════════════════════
 * v1.0.0 — Rendu du résultat Mangal Dosha (verdict gradué + références)
 * Section pleine largeur (alignfull) en fond parchemin, à l'image des autres
 * résultats (thème gratuit, synastrie). Contenu centré dans .dmd-inner.
 * ═══════════════════════════════════════════════════════════════════════ */
.dmd-result--mangal {
  text-align: left;
  max-width: none;
  margin: 2rem 0 0;
  padding: 3rem 1.4rem 4.5rem;
  border: none;
  border-radius: 0;
  background: var(--dmd-parch, #f4ead5);
  color: #2e2a20;
  box-shadow: none;
  box-sizing: border-box;
}
.dmd-inner { max-width: 720px; margin: 0 auto; }

/* Verdict + pastille de niveau (couleur selon la gravité) */
.dmd-verdict {
  padding: 1.5rem 1.6rem;
  border-radius: 12px;
  margin-bottom: 1.6rem;
  border: 1px solid rgba(200, 162, 90, 0.5);
  background: #fffdf8;
}
.dmd-verdict h3 { margin: 0.5rem 0 0.4rem; font-size: 1.5rem; color: #1a1d3a; }
.dmd-verdict p  { margin: 0; font-size: 0.98rem; line-height: 1.6; color: #3a3220; }
.dmd-pill {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.dmd-verdict--ok   .dmd-pill { background: #3a8a4a; }
.dmd-verdict--low  .dmd-pill { background: #c8a25a; }
.dmd-verdict--mid  .dmd-pill { background: #c07a2a; }
.dmd-verdict--high .dmd-pill { background: #a8452a; }
.dmd-verdict--ok   { border-color: rgba(58,138,74,0.4); }
.dmd-verdict--high { border-color: rgba(168,69,42,0.4); }

/* Position de Mars */
.dmd-mars {
  font-size: 0.96rem;
  line-height: 1.6;
  padding: 0.9rem 1.1rem;
  background: rgba(26, 29, 58, 0.05);
  border-radius: 8px;
  margin-bottom: 1.4rem;
}
.dmd-mars .dmd-dign { color: #6b5d44; font-style: italic; }

/* Détail par référence : 3 lignes (ascendant / Lune / Vénus) */
.dmd-refs h4, .dmd-atten h4 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b5d44;
  margin: 0 0 0.7rem;
}
.dmd-refs { margin-bottom: 1.4rem; }
.dmd-ref {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  background: rgba(26, 29, 58, 0.06);
  font-size: 0.92rem;
}
.dmd-ref.is-afflige { background: rgba(168, 69, 42, 0.1); }
.dmd-ref-name  { flex: 1; color: #1a1d3a; font-weight: 600; }
.dmd-ref-house { color: #5a4a2a; font-family: var(--dmd-font-mono, 'JetBrains Mono', monospace); font-size: 0.85rem; }
.dmd-ref-flag  {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  color: #3a8a4a;
  background: rgba(58, 138, 74, 0.14);
}
.dmd-ref.is-afflige .dmd-ref-flag { color: #a8452a; background: rgba(168, 69, 42, 0.16); }

/* Atténuations */
.dmd-atten { margin-bottom: 1.4rem; }
.dmd-atten ul { list-style: none; margin: 0; padding: 0; }
.dmd-atten li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #3a3220;
}
.dmd-atten li::before { content: "✓"; position: absolute; left: 0; top: 0.4rem; color: #3a8a4a; font-weight: 700; }

.dmd-note {
  font-size: 0.9rem;
  line-height: 1.6;
  font-style: italic;
  color: #5a4a2a;
  border-top: 1px solid rgba(200, 162, 90, 0.35);
  padding-top: 1.1rem;
  margin: 1.4rem 0 0;
}

/* Encadré bleu nuit : ce que débloque la lecture complète */
.dmd-locked {
  margin: 2rem 0 0;
  padding: 1.6rem 1.6rem 1.8rem;
  border: 1px solid rgba(200, 162, 90, 0.55);
  border-radius: 12px;
  background: var(--dmd-ink, #1a1d3a);
  color: var(--dmd-parch, #f4ead5);
}
.dmd-locked-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dmd-gold, #c8a25a);
  text-align: center;
}
.dmd-locked h3 { margin: 0 0 1.1rem; font-size: 1.3rem; color: var(--dmd-parch, #f4ead5); text-align: center; }
.dmd-locked ul { list-style: none; margin: 0; padding: 0; }
.dmd-locked li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.7rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(244, 234, 213, 0.92);
  border-bottom: 1px solid rgba(200, 162, 90, 0.18);
}
.dmd-locked li:last-child { border-bottom: none; }
.dmd-locked li::before { content: "🔒"; position: absolute; left: 0; top: 0.5rem; font-size: 0.85rem; }
.dmd-locked li strong { color: var(--dmd-gold, #c8a25a); }
.dmd-locked-cta { margin: 1.4rem 0 0; text-align: center; }

.dmd-intro {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--dmd-parch, #e8dcc0);
  margin: 0 0 1.4rem;
  opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════════════════
 * v1.2.0 — Résultat enrichi
 * ═══════════════════════════════════════════════════════════════════════ */
/* Échelle d'intensité : trois pastilles (Asc. / Lune / Vénus) + compteur */
.dmd-scale {
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
  margin: 1.1rem 0 0; padding-top: 0.9rem;
  border-top: 1px solid rgba(200, 162, 90, 0.3);
}
.dmd-scale-lbl { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #6b5d44; }
.dmd-scale-dots { display: flex; gap: 0.7rem; }
.dmd-scale-dot { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: #6b5d44; }
.dmd-scale-dot i { width: 12px; height: 12px; border-radius: 50%; background: rgba(26, 29, 58, 0.14); border: 1px solid rgba(26, 29, 58, 0.2); }
.dmd-scale-dot.on { color: #1a1d3a; font-weight: 600; }
.dmd-verdict--low  .dmd-scale-dot.on i { background: #c8a25a; border-color: #c8a25a; }
.dmd-verdict--mid  .dmd-scale-dot.on i { background: #c07a2a; border-color: #c07a2a; }
.dmd-verdict--high .dmd-scale-dot.on i { background: #a8452a; border-color: #a8452a; }
.dmd-scale-n { margin-left: auto; font-family: var(--dmd-font-mono, 'JetBrains Mono', monospace); font-size: 0.85rem; color: #1a1d3a; }

/* Lecture rédigée par l'IA */
.dmd-ia {
  margin: 0 0 1.6rem; padding: 1.4rem 1.6rem 1.1rem;
  background: #fffdf8; border: 1px solid rgba(200, 162, 90, 0.5); border-left: 3px solid var(--dmd-gold, #c8a25a);
  border-radius: 12px;
}
.dmd-ia .dmd-eyebrow { margin: 0 0 0.6rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dmd-gold, #c8a25a); }
.dmd-ia-body p { margin: 0 0 0.8rem; font-family: var(--dml-font-serif, 'Cormorant Garamond', Georgia, serif); font-size: 1.12rem; line-height: 1.65; color: #2e2a20; }
.dmd-ia-body p:last-child { margin-bottom: 0; }
.dmd-ia-body strong { color: #1a1d3a; }
.dmd-ia-foot { margin: 0.9rem 0 0; font-size: 0.72rem; font-style: italic; color: #6b5d44; }

/* Interprétation sous chaque référence */
.dmd-ref-txt { margin: 0.1rem 0 0.9rem 0.9rem; font-size: 0.9rem; line-height: 1.55; color: #3a3220; }

/* Nuances (conjonctions) dans « Ce qui module » */
.dmd-atten li.is-nuance::before { content: "◦"; color: #c07a2a; }

/* Ce que cela signifie */
.dmd-effets { margin-bottom: 1.4rem; }
.dmd-effets h4, .dmd-remedes h4 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: #6b5d44; margin: 0 0 0.7rem; }
.dmd-effets p { margin: 0 0 0.6rem; font-size: 0.95rem; line-height: 1.6; color: #3a3220; }
.dmd-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dmd-chip {
  display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px;
  font-size: 0.74rem; letter-spacing: 0.04em; color: #1a1d3a;
  background: rgba(200, 162, 90, 0.18); border: 1px solid rgba(200, 162, 90, 0.4);
}

/* Rappels de la tradition */
.dmd-remedes { margin-bottom: 1.4rem; }
.dmd-remedes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (max-width: 640px) { .dmd-remedes-grid { grid-template-columns: 1fr; } }
.dmd-remede {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.8rem 0.95rem; border-radius: 8px;
  background: rgba(26, 29, 58, 0.05); border: 1px solid rgba(26, 29, 58, 0.08);
}
.dmd-remede strong { font-size: 0.9rem; color: #1a1d3a; }
.dmd-remede span { font-size: 0.85rem; line-height: 1.5; color: #3a3220; }
