/* ============================================================
   tarot.css — extrait de styles.css le 2026-05-07
   Phase 3 (extraction CSS module-par-module).
   296 règles, ~1718 lignes.
   Cut & paste pur — ordre source strict (même @media wrapper si répété).
   ============================================================ */

#readingView {
  max-width: 900px;
  margin: 0 auto;
}

.reading-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

#readingHeroWrap #readingHeroImg {
  margin: 0 !important;
}

.reading-header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--gold-main);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.reading-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: #9ca3af;
  margin: 6px 0 22px;
}

.reading-ritual {
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: #c7d2fe;
  opacity: 0.9;
  margin: 6px 0 14px;
}

.tarot-theme-block {
  background: rgba(8, 13, 24, 0.84);
  border: 1px solid rgba(230, 210, 130, 0.14);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.tarot-theme-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.tarot-theme-pill {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(230, 210, 130, 0.16);
  background: rgba(11, 17, 32, 0.82);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.tarot-theme-pill:hover {
  border-color: rgba(230, 210, 130, 0.34);
  color: var(--gold-soft);
  box-shadow: 0 0 14px rgba(230, 210, 130, 0.08);
  transform: translateY(-1px);
}

.tarot-theme-pill.active {
  background: rgba(230, 210, 130, 0.10);
  border-color: rgba(230, 210, 130, 0.42);
  color: var(--gold-main);
  box-shadow:
    0 0 16px rgba(230, 210, 130, 0.10),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.tarot-theme-description {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .tarot-theme-pills {
      gap: 8px;
    }

  .tarot-theme-pill {
      font-size: 0.82rem;
      padding: 8px 12px;
    }

}

.result-box {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(20, 28, 48, 0.78);
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: left;
  max-width: 70ch;
  margin-inline: auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
  white-space: pre-line;
}

.reading {
  margin-top: 22px;
  margin-inline: auto;
  max-width: 860px;
  padding: 28px 30px;
  background: rgba(6, 10, 18, 0.92);
  border-radius: 16px;
  border: 1px solid rgba(230, 210, 130, 0.16);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  font-size: 1rem;
  line-height: 1.88;
  position: relative;
  text-align: left;
  color: var(--text-main);
}

.reading-title {
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: 14px;
  text-align: center;
}

.reading p {
  margin: 0 0 1rem;
  color: var(--text-soft);
  opacity: 0.96;
}

.reading p:last-child {
  margin-bottom: 0;
}

.reading-highlight,
.reading-key,
.reading-outcome,
.reading-phase {
  opacity: 1 !important;
}

.reading-actions {
  max-width: 860px;
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  flex-direction: row;
}

.reading-actions.threecard-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.reading-highlight {
  font-weight: 600;
  color: #facc15;
}

.reading-phase {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reading-advice { color: #d8c38d; }

.reading-ext { color: #9fb5d9; }

.reading-defi { color: #d7b0a6; }

.reading-toi { color: #f0d48a; }

.reading-key { color: #f0d48a; font-weight: 600; }

.reading-evo { color: #b8b6de; }

.reading-trend { color: #d8c38d; }

.reading-turning { color: #9fb5d9; }

.reading-opportunity { color: #cdb98a; }

.reading-risk { color: #cda8a0; }

.reading-lever { color: #b8b6de; }

.reading-outcome { color: #e8d6a1; }

.reading-synth { color: #c8bedf; }

.reading-accordion-body {
  display: none;
}

.reading-accordion-body.reading-accordion-open {
  display: block;
  animation: accordionFadeIn 0.35s ease;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .reading-accordion-btn { display: none; }

  .reading-accordion-body { display: block; }

}

@media (max-width: 767px) {
  .reading-accordion { margin-top: 0.5rem; }

  .reading-accordion-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      cursor: pointer;
      padding: 0.65rem 1.2rem;
      border-radius: 2rem;
      background: rgba(255, 215, 100, 0.10);
      border: 1px solid rgba(255, 215, 100, 0.28);
      color: #f0d48a;
      font-size: 0.92rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      width: 100%;
      transition: background 0.2s, color 0.2s;
      user-select: none;
    }

  .reading-accordion-btn[aria-expanded="true"] {
      background: rgba(255, 215, 100, 0.18);
      color: #ffe08a;
    }

}

.reading-card {
  font-weight: 600;
  color: #a5b4fc;
}

.reading-card-major {
  color: #a5b4fc;
}

.reading-card-minor {
  color: #38bdf8;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 54px;
  justify-content: center;
  margin-top: 38px;
  padding-bottom: 120px;
}

.cards-container.spread-5,
.cards-container.spread-7 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
  justify-content: center;
  justify-items: center;
  align-items: start;
}

.cards-container.spread-7 .card {
  width: 166px;
  max-width: 166px;
}

@media (min-width: 641px) and (max-width: 1024px) {
  .cards-container.spread-7 .card {
      width: 120px;
      max-width: 120px;
    }

}

.card-title {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.25;
}

.card-meaning {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 4px;
}

@media (min-width: 1025px) {
  .cards-container {
      padding-bottom: 180px;
    }

  .card-title {
      margin-top: 10px;
    }

  .card-meaning {
      margin-top: 6px;
      line-height: 1.35;
    }

}

@media (min-width: 641px) and (max-width: 1024px) {
  .cards-container {
      gap: 14px;
      padding-bottom: 36px;
      max-width: 620px;
      margin-left: auto;
      margin-right: auto;
    }

  .card-title {
      font-size: 0.8rem;
      line-height: 1.15;
    }

}

@media (max-width: 640px) {
  .cards-container {
      gap: 16px;
      padding-bottom: 48px;
    }

}

@media (max-width: 480px) {
  .cards-container {
      gap: 8px;
      justify-content: center;
      margin-bottom: 40px;
    }

  .cards-container.spread-5 .card {
      width: calc(24vw - 4px);
      max-width: 86px;
    }

  .cards-container.spread-5 {
      gap: 6px;
    }

  .card-title {
      font-size: 0.75rem;
      line-height: 1.2;
    }

}

#decisionBlock.threecard-decision-block {
  margin: 24px 0;
}

#decisionBlock .threecard-decision-shell {
  max-width: 980px;
  margin: 0 auto;
}

#decisionBlock .threecard-decision-title {
  margin: 0 0 18px 0;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d7c08a;
}

#decisionBlock .threecard-decision-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(14, 22, 44, 0.82), rgba(9, 15, 32, 0.92));
  border: 1px solid rgba(195, 166, 102, 0.14);
  border-radius: 14px;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  box-sizing: border-box;
}

#decisionBlock .threecard-decision-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

#decisionBlock .threecard-decision-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8c3dd;
}

#decisionBlock .threecard-decision-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(195, 166, 102, 0.18);
  background: rgba(8, 13, 28, 0.78);
  color: #edf2ff;
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  box-sizing: border-box;
  display: block;
}

#decisionBlock .threecard-decision-input::placeholder {
  color: rgba(190, 202, 228, 0.52);
}

#decisionBlock .threecard-decision-input:focus {
  border-color: rgba(215, 192, 138, 0.42);
  box-shadow: 0 0 0 3px rgba(215, 192, 138, 0.08);
  background: rgba(10, 17, 34, 0.92);
}

#decisionBlock .threecard-decision-count {
  font-size: 0.7rem;
  text-align: right;
  color: rgba(173, 185, 209, 0.65);
}

#decisionBlock .threecard-decision-vs {
  align-self: center;
  justify-self: center;
  width: 44px;
  padding-top: 8px;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(215, 192, 138, 0.78);
}

#decisionBlock .threecard-decision-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  color: #e6c2c2;
  background: rgba(120, 34, 34, 0.14);
  border: 1px solid rgba(198, 120, 120, 0.24);
}

#decisionBlock .threecard-decision-suggestions {
  padding: 14px 16px 16px;
  background: rgba(10, 17, 34, 0.52);
  border: 1px solid rgba(195, 166, 102, 0.1);
  border-radius: 14px;
}

#decisionBlock .threecard-decision-suggestions-label {
  margin: 0 0 12px 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(173, 185, 209, 0.72);
}

#decisionBlock .threecard-decision-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

#decisionBlock .decision-quick-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(195, 166, 102, 0.11) !important;
  background: linear-gradient(180deg, rgba(15, 24, 46, 0.88), rgba(9, 14, 28, 0.94)) !important;
  color: #cdd7ea !important;
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

#decisionBlock .decision-quick-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 183, 120, 0.32) !important;
  color: #e6d7ad !important;
  background: linear-gradient(180deg, rgba(19, 30, 55, 0.94), rgba(10, 17, 32, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(212, 183, 120, 0.05);
}

#decisionBlock .decision-quick-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(215, 192, 138, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

@media (max-width: 640px) {
  
  #decisionBlock .threecard-decision-vs {
      width: auto;
      padding-top: 0;
      justify-self: center;
    }

  #decisionBlock .threecard-decision-quick-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 520px) {
  #decisionBlock .threecard-decision-shell {
      max-width: 100%;
    }

  #decisionBlock .threecard-decision-suggestions {
      padding: 12px;
    }

  #decisionBlock .threecard-decision-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #decisionBlock .decision-quick-btn {
      white-space: normal;
      text-align: center;
      min-height: 40px;
      font-size: 0.86rem;
    }

}

.tarot-result-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.tarot-result-title-top {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1.6rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  color: var(--gold-main) !important;
  text-align: center !important;
  margin: 34px 0 12px !important;
  line-height: 1.2 !important;
}

.tarot-result-card-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--surface-soft);
  border: 1px solid var(--surface-border-strong);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.46),
    0 0 18px rgba(230, 210, 130, 0.04);
}

.tarot-result-card-wrap::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  background: radial-gradient(circle, rgba(230, 210, 130, 0.08), transparent 72%);
  filter: blur(14px);
  z-index: 0;
  pointer-events: none;
}

.tarot-result-card-img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(300px, 68vw);
  max-width: 300px;
  border-radius: 18px;
  box-shadow:
    0 0 18px rgba(230, 210, 130, 0.14),
    0 16px 40px rgba(0, 0, 0, 0.55);
}

.tarot-result-card-img.is-reversed {
  transform: rotate(180deg);
}

.tarot-result-meta {
  width: 100%;
  max-width: 760px;
  text-align: center;
  padding: 12px 18px 0;
}

.tarot-result-orientation,
.tarot-result-keywords {
  display: none !important;
}

#readingContent {
  background: rgba(0, 0, 0, 0.65) !important; /* Fond noir translucide */
  backdrop-filter: blur(8px);               /* Flou d'arrière-plan */
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 215, 0, 0.3); /* Bordure dorée fine */
  border-radius: 15px;
  padding: 20px;
  margin: 15px auto;
  color: #ffffff !important;                /* Texte blanc pur */
  text-shadow: 1px 1px 2px #000;            /* Ombre portée pour les lettres */
  line-height: 1.6;
  max-width: 90%;
  font-size: 1.05rem;
}

#readingContent strong, #readingContent h3, #readingContent b {
  color: #f3cc91 !important; /* Or clair */
  display: block;
  margin-top: 10px;
}

#dailyThemeBlock.tarot-theme-block {
  background: rgba(6, 10, 18, 0.92) !important;
  border: 1px solid rgba(230, 210, 130, 0.16) !important;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset !important;
}

#dailyThemeBlock .field-hint {
  text-align: left;
}

#tarotThemePills .tarot-theme-pill {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid rgba(230, 210, 130, 0.18) !important;
  background: rgba(11, 17, 32, 0.92) !important;
  color: var(--text-soft) !important;
  border-radius: 999px !important;
  padding: 9px 15px !important;
  min-height: 32px !important;
  font-size: 0.83rem !important;
  line-height: 1 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease !important;
}

#tarotThemePills .tarot-theme-pill:hover {
  border-color: rgba(230, 210, 130, 0.34) !important;
  color: var(--gold-soft) !important;
  background: rgba(14, 22, 40, 0.96) !important;
  box-shadow: 0 0 14px rgba(230, 210, 130, 0.08) !important;
  transform: translateY(-1px) !important;
}

#tarotThemePills .tarot-theme-pill.active {
  background: rgba(230, 210, 130, 0.11) !important;
  border-color: rgba(230, 210, 130, 0.46) !important;
  color: var(--gold-main) !important;
  box-shadow:
    0 0 14px rgba(230, 210, 130, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset !important;
}

@media (max-width: 768px) {
  #tarotThemePills .tarot-theme-pill {
      font-size: 0.8rem !important;
      padding: 8px 12px !important;
    }

}

#dailyThemeBlock .field-title {
  margin-bottom: 8px;
}

@media (max-width: 767px) {
  .tarot-result-card-img {
      width: min(200px, 72vw) !important;
      max-width: 200px !important;
    }

}

@media (min-width: 768px) {
  #readingResultView .tarot-result-title-top {
      margin-top: 36px !important;
    }

}

@media (min-width: 1025px) {
  #readingResultView .tarot-result-title-top {
      margin-top: 48px !important;
    }

}

#readingView[data-tirage="majors"] .reading-subtitle {
  margin: 6px 0 30px !important;
}

#readingView[data-tirage="majors"] #questionBlock.field-block {
  margin-top: 2px;
  padding: 14px 14px 14px;
  background:
    linear-gradient(180deg, rgba(14, 22, 44, 0.82), rgba(9, 15, 32, 0.92)) !important;
  border: 1px solid rgba(195, 166, 102, 0.14) !important;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
}

#readingView[data-tirage="majors"] #questionBlock .field-title {
  margin-bottom: 15px;
  color: var(--tx-strong) !important;
}

#readingView[data-tirage="majors"] #questionBlock textarea {
  min-height: 52px;
  height: 52px;
  padding: 10px 14px;
  border-radius: 10px;
  resize: none;
  background: rgba(8, 13, 28, 0.78) !important;
  border: 1px solid rgba(195, 166, 102, 0.18) !important;
  color: #edf2ff !important;
  box-shadow: none !important;
}

#readingView[data-tirage="majors"] #questionBlock textarea::placeholder {
  color: #8b95a7 !important;
  font-style: italic;
}

#drawBtn.btn-primary {
  position: relative;
  padding: 12px 28px !important;
  border-radius: 999px !important;
  border: 1.5px solid rgba(230, 210, 130, 0.58) !important;
  background: rgba(11, 17, 32, 0.90) !important;
  color: var(--gold-main) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 10px rgba(230, 210, 130, 0.04) !important;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease !important;
}

#drawBtn.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(230, 210, 130, 0.10) 0%,
    rgba(230, 210, 130, 0.03) 100%
  );
  opacity: 0.9;
  pointer-events: none;
}

#drawBtn.btn-primary:hover {
  transform: translateY(-1px) !important;
  background: rgba(14, 21, 38, 0.95) !important;
  color: var(--gold-soft) !important;
  border-color: rgba(230, 210, 130, 0.82) !important;
  box-shadow:
    0 0 20px rgba(230, 210, 130, 0.16),
    0 14px 30px rgba(0, 0, 0, 0.34) !important;
}

#drawBtn.btn-primary:active {
  transform: translateY(0) scale(0.985) !important;
}

@media (max-width: 768px) {
  #drawBtn.btn-primary {
      padding: 11px 24px !important;
      font-size: 0.9rem !important;
    }

}

.tarot-back-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(230, 210, 130, 0.18);
  background: rgba(11, 17, 32, 0.82);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.tarot-back-btn:hover {
  border-color: rgba(230, 210, 130, 0.34);
  background: rgba(14, 21, 38, 0.94);
  color: var(--gold-soft);
  box-shadow: 0 0 14px rgba(230, 210, 130, 0.08);
  transform: translateY(-1px);
}

.tarot-back-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .tarot-result-bottom-actions {
      max-width: 100%;
      margin: 16px auto 0;
      padding: 0 4px;
    }

  .tarot-back-btn {
      font-size: 0.8rem;
      padding: 9px 16px;
    }

}


.tarot-result-three-title {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1.6rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  color: var(--gold-main) !important;
  text-align: center !important;
  margin: 34px 0 64px !important;
  line-height: 1.2 !important;
}


.tarot-result-three-item {
  width: 100%;
  max-width: 220px;
  text-align: center;
}


.tarot-result-three-cardwrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--surface-soft);
  border: 1px solid var(--surface-border-strong);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.42),
    0 0 16px rgba(230, 210, 130, 0.035);
}

.tarot-result-three-img {
  display: block;
  width: min(200px, 100%);
  max-width: 200px;
  border-radius: 16px;
  box-shadow:
    0 0 16px rgba(230, 210, 130, 0.1),
    0 14px 34px rgba(0, 0, 0, 0.52);
}

.tarot-result-three-img.is-reversed {
  transform: rotate(180deg);
}


@media (max-width: 640px) {
  .tarot-result-three-grid {
      grid-template-columns: 1fr;
      gap: 18px;
    }

}

.tarot-result-three {
  width: 100%;
  max-width: 980px;
  margin: 26px auto 22px;
}

.tarot-result-three-title {
  margin: 26px 0 52px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-main);
}

.tarot-result-three-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
  justify-items: center;
}


.tarot-result-three-label {
  margin-bottom: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9c4d8;
}




.tarot-result-three-name {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #e7dcc0;
  line-height: 1.25;
}

#readingActions {
    display: flex !important;
    gap: 15px !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 30px !important;
}

.tarot-btn-fix {
    /* 1. Taille de la boîte identique au pixel près */
    height: 44px !important;
    min-width: 180px; /* Pour qu'ils aient une largeur équilibrée */
    padding: 0 20px !important;
    
    /* 2. Police strictement identique */
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important; /* Garde la casse normale si tu préfères */
    
    /* 3. Alignement du texte à l'intérieur */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;

    /* 4. Style visuel (on reprend tes codes couleurs sombres/dorés) */
    border-radius: 8px !important;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.tarot-btn-fix:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.tarot-result-majors {
  width: 100%;
  max-width: 1180px;
  margin: 22px auto 18px;
}

.tarot-result-majors-title {
  margin: 18px 0 36px;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-main);
}

.tarot-result-majors-question {
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  color: rgba(230, 210, 130, 0.75);
  margin: -20px 0 28px;
  padding: 0 20px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.tarot-result-majors-row {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 36px 22px;
  flex-wrap: wrap;
}

.tarot-result-majors-item {
  width: 100%;
  max-width: 196px;
  text-align: center;
  flex: 0 0 196px;
}

.tarot-result-majors-cardwrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--surface-soft);
  border: 1px solid var(--surface-border-strong);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.42),
    0 0 16px rgba(230, 210, 130, 0.035);
}

.tarot-result-majors-img {
  display: block;
  width: min(156px, 100%);
  max-width: 156px;
  border-radius: 14px;
  box-shadow:
    0 0 16px rgba(230, 210, 130, 0.1),
    0 14px 34px rgba(0, 0, 0, 0.52);
}

.tarot-result-majors-img.is-reversed {
  transform: rotate(180deg);
}

.tarot-result-majors-name {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e7dcc0;
  line-height: 1.22;
}

@media (max-width: 1100px) {
  .tarot-result-majors-row {
      gap: 14px;
    }

  .tarot-result-majors-item {
      max-width: 180px;
      flex-basis: 180px;
    }

  .tarot-result-majors-img {
      max-width: 144px;
      width: min(144px, 100%);
    }

}

@media (max-width: 900px) {
  .tarot-result-majors-row {
      flex-wrap: wrap;
      max-width: 760px;
    }

  .tarot-result-majors-item {
      max-width: 190px;
      flex-basis: 190px;
    }

}

@media (max-width: 640px) {
  .tarot-result-majors-title {
      margin-bottom: 22px;
    }

  
  .tarot-result-majors-item {
      max-width: 170px;
      flex-basis: 170px;
    }

  
}

.tarot-result-full {
  width: 100%;
  max-width: 1280px;
  margin: 20px auto 18px;
}

.tarot-result-full-title {
  margin: 26px 0 52px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-main);
}

.tarot-result-full-row {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px 18px;
  flex-wrap: wrap;
}

.tarot-result-full-item {
  width: 100%;
  max-width: 150px;
  text-align: center;
  flex: 0 0 150px;
}

.tarot-result-full-cardwrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--surface-soft);
  border: 1px solid var(--surface-border-strong);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.42),
    0 0 16px rgba(230, 210, 130, 0.035);
}

.tarot-result-full-img {
  display: block;
  width: min(122px, 100%);
  max-width: 122px;
  border-radius: 12px;
  box-shadow:
    0 0 14px rgba(230, 210, 130, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.5);
}

.tarot-result-full-img.is-reversed {
  transform: rotate(180deg);
}

.tarot-result-full-name {
  margin-top: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #e7dcc0;
  line-height: 1.2;
}

body:has(#tarotResultCardZone .tarot-result-full) #reading {
  margin-top: 6px;
}

@media (max-width: 1200px) {
  .tarot-result-full-row {
      gap: 12px;
    }

  .tarot-result-full-item {
      max-width: 140px;
      flex-basis: 140px;
    }

  .tarot-result-full-img {
      max-width: 114px;
      width: min(114px, 100%);
    }

}

@media (max-width: 980px) {
  .tarot-result-full-row {
      flex-wrap: wrap;
      max-width: 760px;
      gap: 16px 14px;
    }

  .tarot-result-full-item {
      max-width: 150px;
      flex-basis: 150px;
    }

}

@media (max-width: 640px) {
  .tarot-result-full-title {
      margin-bottom: 22px;
    }

  .tarot-result-full-item {
      max-width: 132px;
      flex-basis: 132px;
    }

  
  
}

@media (min-width: 1025px) {
  #readingView[data-tirage="daily"] #dailyThemeBlock.tarot-theme-block {
      max-width: 820px !important;
      margin: 0 auto 14px !important;
      padding: 14px 16px 14px !important;
    }

  #readingView[data-tirage="daily"] #tarotThemePills.tarot-theme-pills {
      display: grid !important;
      grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
      gap: 10px !important;
      width: 100% !important;
      justify-content: stretch !important;
      align-items: stretch !important;
      margin-top: 12px !important;
      margin-bottom: 12px !important;
    }

  #readingView[data-tirage="daily"] #tarotThemePills .tarot-theme-pill {
      width: 100% !important;
      min-width: 0 !important;
      min-height: 40px !important;
      padding: 10px 8px !important;
      font-size: 0.84rem !important;
      line-height: 1.1 !important;
      text-align: center !important;
      justify-content: center !important;
      white-space: nowrap !important;
    }

  #readingView[data-tirage="daily"] #themeDescription.tarot-theme-description {
      max-width: 100% !important;
      margin-top: 8px !important;
      text-align: left !important;
    }

}

@media (max-width: 640px) {
  #readingView[data-tirage="daily"] .reading-hero,
    #readingView[data-tirage="daily"] .reading-hero-image,
    #readingView[data-tirage="daily"] .reading-cover {
      display: none !important;
    }

  
  #readingView[data-tirage="daily"] .reading-header,
    #readingView[data-tirage="daily"] .reading-intro,
    #readingView[data-tirage="daily"] .reading-top {
      margin-top: 0 !important;
      padding-top: 0 !important;
    }

  #readingView[data-tirage="daily"] #readingTitle,
    #readingView[data-tirage="daily"] .reading-title {
      margin: 4px 0 8px !important;
      font-size: 2rem !important;
      line-height: 1.08 !important;
      text-align: center !important;
    }

  #readingView[data-tirage="daily"] #readingSubtitle,
    #readingView[data-tirage="daily"] .reading-subtitle {
      margin: 0 auto 14px !important;
      max-width: 92% !important;
      text-align: center !important;
      font-size: 0 !important;
      line-height: 0 !important;
    }

  #readingView[data-tirage="daily"] #readingSubtitle::before,
    #readingView[data-tirage="daily"] .reading-subtitle::before {
      content: "Une carte pour éclairer ton énergie du jour.";
      display: block;
      font-size: 0.95rem !important;
      line-height: 1.35 !important;
      color: inherit;
    }

  #readingView[data-tirage="daily"] #dailyThemeBlock.tarot-theme-block {
      margin-top: 8px !important;
      margin-bottom: 14px !important;
      padding: 14px 14px 16px !important;
      border-radius: 18px !important;
    }

  #readingView[data-tirage="daily"] #dailyThemeBlock .field-title {
      margin-bottom: 10px !important;
      font-size: 1rem !important;
      line-height: 1.15 !important;
    }

  #readingView[data-tirage="daily"] #tarotThemePills.tarot-theme-pills {
      gap: 8px !important;
      margin-top: 8px !important;
      margin-bottom: 12px !important;
    }

  #readingView[data-tirage="daily"] #tarotThemePills .tarot-theme-pill {
      padding: 8px 12px !important;
      font-size: 0.8rem !important;
      min-height: 30px !important;
    }

  #readingView[data-tirage="daily"] #themeDescription.tarot-theme-description {
      margin-top: 8px !important;
      font-size: 0.84rem !important;
      line-height: 1.4 !important;
    }

  #readingView[data-tirage="daily"] #drawBtn.btn-primary {
      margin-top: 4px !important;
      margin-bottom: 14px !important;
      padding: 11px 22px !important;
      font-size: 0.92rem !important;
    }

  #readingView[data-tirage="daily"] .cards-container,
    #readingView[data-tirage="daily"] .tarot-cards-container,
    #readingView[data-tirage="daily"] .draw-result,
    #readingView[data-tirage="daily"] .tirage-result {
      margin-top: 16px !important;
      padding-bottom: 34px !important;
    }

  #readingResultView .tarot-result-hero {
      gap: 10px !important;
    }

  #readingResultView .tarot-result-title-top {
      font-size: 1.15rem !important;
      line-height: 1.15 !important;
      margin: 0 0 6px !important;
    }

  #readingResultView .tarot-result-card-wrap {
      padding: 10px !important;
      border-radius: 18px !important;
    }

  #readingResultView .tarot-result-card-img {
      width: min(220px, 66vw) !important;
      max-width: 220px !important;
      border-radius: 14px !important;
    }

  #readingContent {
      max-width: 100% !important;
      margin: 12px auto !important;
      padding: 16px 14px !important;
      border-radius: 16px !important;
      font-size: 0.98rem !important;
      line-height: 1.55 !important;
    }

  #readingContent strong,
    #readingContent h3,
    #readingContent b {
      margin-top: 8px !important;
    }

  #readingActions {
      display: flex !important;
      flex-direction: column !important;
      gap: 10px !important;
      align-items: stretch !important;
      margin-top: 16px !important;
    }

}

@media (min-width: 768px) and (max-width: 1024px) {
  #readingResultView .tarot-result-hero {
      gap: 10px !important;
    }

  #readingResultView .tarot-result-title-top {
      font-size: 1.15rem !important;
      line-height: 1.15 !important;
      margin: 36px 0 6px !important;
    }

  #readingResultView .tarot-result-card-wrap {
      padding: 10px !important;
      border-radius: 18px !important;
    }

  #readingResultView .tarot-result-card-img {
      width: min(220px, 66vw) !important;
      max-width: 220px !important;
      border-radius: 14px !important;
    }

}

@media (max-width: 767px) {
  #readingView[data-tirage="daily"] #tarotThemePills.tarot-theme-pills {
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 10px !important;
      justify-content: stretch !important;
      align-items: stretch !important;
      margin-top: 8px !important;
      margin-bottom: 12px !important;
    }

  #readingView[data-tirage="daily"] #tarotThemePills .tarot-theme-pill {
      width: 100% !important;
      min-width: 0 !important;
      padding: 11px 8px !important;
      min-height: 46px !important;
      border-radius: 999px !important;
      font-size: 0.84rem !important;
      line-height: 1.1 !important;
      text-align: center !important;
      justify-content: center !important;
      white-space: normal !important;
    }

  
  
  
  
  #readingResultView .tarot-result-card-wrap {
      padding: 6px !important;
      border-radius: 14px !important;
    }

  #readingResultView .tarot-result-card-img {
      width: min(160px, 48vw) !important;
      max-width: 160px !important;
      border-radius: 10px !important;
    }

  #readingResultView .tarot-result-title-top {
      font-size: 0.98rem !important;
      line-height: 1.12 !important;
      margin: 0 0 2px !important;
    }

  #readingContent {
      margin-top: 6px !important;
      padding: 14px 12px !important;
      font-size: 0.95rem !important;
      line-height: 1.5 !important;
    }

  #readingContent {
      max-width: 92% !important;
      font-size: 0.92rem !important;
      line-height: 1.48 !important;
    }

}

@media (max-width: 640px) {
  #readingView[data-tirage="daily"] #readingHeroVideo {
      grid-area: 1/1 !important;
      width: 100% !important;
      height: 100% !important;
      margin: 0 !important;
      max-height: none !important;
    }

  #readingView[data-tirage="daily"] {
      padding-top: calc(18px + env(safe-area-inset-top)) !important;
    }

  #readingView[data-tirage="daily"] #readingTitle {
      margin: 4px 0 6px !important;
    }

  #readingView[data-tirage="daily"] #readingSubtitle {
      margin: 0 auto 10px !important;
      max-width: 92% !important;
      text-align: center !important;
    }

  #readingView[data-tirage="daily"] #readingContent,
    #readingResultView #readingContent {
      overflow: hidden;
    }

  .daily-mobile-accordion {
      border: 1px solid rgba(230, 210, 130, 0.18);
      border-radius: 14px;
      background: rgba(10, 16, 30, 0.58);
      overflow: hidden;
    }

  .daily-mobile-accordion + .daily-mobile-accordion {
      margin-top: 2px;
    }

  .daily-mobile-accordion-btn {
      width: 100%;
      appearance: none;
      -webkit-appearance: none;
      border: 0;
      background: transparent;
      color: var(--gold-main);
      text-align: left;
      padding: 14px 14px;
      font-size: 0.95rem;
      font-weight: 600;
      line-height: 1.2;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      cursor: pointer;
    }

  .daily-mobile-accordion-btn::after {
      content: "+";
      font-size: 1.1rem;
      line-height: 1;
      opacity: 0.9;
      flex: 0 0 auto;
    }

  .daily-mobile-accordion.is-open .daily-mobile-accordion-btn::after {
      content: "–";
    }

  .daily-mobile-accordion-content {
      display: none;
      padding: 0 14px 14px;
      font-size: 0.93rem;
      line-height: 1.55;
      color: #ffffff;
    }

  .daily-mobile-accordion.is-open .daily-mobile-accordion-content {
      display: block;
    }

  .daily-mobile-accordion-content p {
      margin: 0 0 12px;
    }

  .daily-mobile-accordion-content p:last-child {
      margin-bottom: 0;
    }

  #readingView[data-tirage="three"] #readingHeroVideo3 {
      grid-area: 1/1 !important;
      width: 100% !important;
      height: 100% !important;
      margin: 0 !important;
      max-height: none !important;
    }

  #readingView[data-tirage="three"] {
    padding-top: calc(18px + env(safe-area-inset-top)) !important;
  }

  #readingView[data-tirage="three"] #readingTitle {
      margin: 4px 0 6px !important;
      font-size: 1.85rem !important;
      line-height: 1.1 !important;
      text-align: center !important;
    }

  #readingView[data-tirage="three"] #readingSubtitle {
      margin: 0 auto 12px !important;
      font-size: 0.85rem !important;
      text-align: center !important;
      max-width: 92% !important;
    }

  #decisionBlock .threecard-decision-title {
      display: none !important;
    }

  #decisionBlock.threecard-decision-block {
      margin: 8px 0 !important;
    }

  #decisionBlock .threecard-decision-shell {
      gap: 0 !important;
    }

  #decisionBlock .decision-quick-btn:nth-child(n+5) {
      display: none !important;
    }

  #readingActions #threeSpeakBtn {
      display: none !important;
    }

  #readingActions .threecard-actions-row-main {
      flex-wrap: wrap !important;
      justify-content: center !important;
      gap: 8px !important;
    }

  /* Le bouton "Retour au tirage" prend toute la ligne sur mobile pour éviter
     que les 3 boutons (Résumé / Détail / Retour) ne débordent du cadre */
  #readingActions .threecard-actions-row-main .tarot-back-btn {
      flex-basis: 100% !important;
      max-width: 320px;
    }

  #decisionBlock .threecard-decision-fields {
      grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) !important;
      padding: 12px 10px !important;
      gap: 8px !important;
    }

  #decisionBlock .threecard-decision-input {
      padding: 9px 8px !important;
      font-size: 0.9rem !important;
    }

  #decisionBlock .threecard-decision-count {
      display: none !important;
    }

  #decisionBlock .threecard-decision-vs {
      font-size: 0.88rem !important;
      padding-top: 0 !important;
      width: 34px !important;
    }

  .tarot-result-three-title {
      margin: 14px 0 20px !important;
      font-size: 1.3rem !important;
    }

  .tarot-result-three-grid {
      gap: 8px !important;
    }

  .tarot-result-three-item {
      max-width: 100% !important;
    }

  .tarot-result-three-cardwrap {
      padding: 8px !important;
      border-radius: 14px !important;
    }

  .tarot-result-three-img {
      width: min(82px, 25vw) !important;
      max-width: 82px !important;
    }

  .tarot-result-three-name {
      font-size: 0.8rem !important;
      margin-top: 8px !important;
      overflow-wrap: break-word !important;
      word-break: break-word !important;
      hyphens: auto !important;
    }

  .tarot-result-three-label {
      font-size: 0.62rem !important;
      margin-bottom: 8px !important;
    }

  #readingView[data-tirage="majors"] #readingHeroVideo5 {
      grid-area: 1/1 !important;
      width: 100% !important;
      height: 100% !important;
      margin: 0 !important;
      max-height: none !important;
    }

  #readingView[data-tirage="majors"] {
      padding-top: calc(18px + env(safe-area-inset-top)) !important;
    }

  #readingView[data-tirage="majors"] #readingTitle {
      margin: 4px 0 6px !important;
      font-size: 1.7rem !important;
      line-height: 1.2 !important;
      text-align: center !important;
    }

  #readingView[data-tirage="majors"] #readingSubtitle {
      margin: 0 auto 10px !important;
      font-size: 0.85rem !important;
      text-align: center !important;
      max-width: 92% !important;
    }

  #readingView[data-tirage="majors"] #questionBlock.field-block {
      margin-top: 4px !important;
      margin-bottom: 10px !important;
      padding: 12px 12px 14px !important;
    }

  #readingView[data-tirage="majors"] #questionBlock .field-title {
      margin-bottom: 8px !important;
      font-size: 0.95rem !important;
    }

  #readingView[data-tirage="majors"] #questionBlock textarea {
      min-height: 46px !important;
      height: 46px !important;
      font-size: 0.9rem !important;
    }

  #readingView[data-tirage="majors"] #drawBtn.btn-primary {
      margin-top: 4px !important;
      margin-bottom: 14px !important;
      padding: 11px 22px !important;
      font-size: 0.92rem !important;
    }

  .tarot-result-majors-row {
      flex-wrap: wrap !important;
      gap: 10px 8px !important;
      justify-content: center !important;
      overflow-x: visible !important;
    }

  .tarot-result-majors-item {
      flex: 0 0 calc(33.33% - 6px) !important;
      max-width: calc(33.33% - 6px) !important;
    }

  .tarot-result-majors-cardwrap {
      padding: 6px !important;
      border-radius: 14px !important;
    }

  .tarot-result-majors-img {
      width: 100% !important;
      max-width: 100% !important;
    }

  .tarot-result-majors-name {
      font-size: 0.75rem !important;
      margin-top: 6px !important;
      overflow-wrap: break-word !important;
      word-break: break-word !important;
    }

  #readingActions #majorsSpeakBtn {
      display: none !important;
    }

  
}

@media (min-width: 768px) {
  .reading-chapter-btn { display: none; }

  .reading-chapter-body { display: block; }

}

.reading-chapter-btn { box-sizing: border-box; }

@media (max-width: 767px) {
  .reading-chapter {
      margin: 0 0 6px;
    }

  .reading-chapter-btn {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      cursor: pointer;
      padding: 0.65rem 1.2rem;
      border-radius: 2rem;
      background: rgba(255, 215, 100, 0.10);
      border: 1px solid rgba(255, 215, 100, 0.28);
      color: #f0d48a;
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      width: 100%;
      transition: background 0.2s, color 0.2s;
      user-select: none;
      font-family: inherit;
    }

  .reading-chapter-btn[aria-expanded="true"] {
      background: rgba(255, 215, 100, 0.18);
      color: #ffe08a;
    }

  .reading-chapter-arrow {
      font-size: 0.7rem;
      opacity: 0.8;
      flex-shrink: 0;
      transition: transform 0.2s;
    }

  .reading-chapter-btn[aria-expanded="true"] .reading-chapter-arrow {
      transform: rotate(180deg);
    }

  .reading-chapter-body {
      display: none;
      padding: 4px 4px 8px;
    }

  .reading-chapter-body.reading-chapter-open {
      display: block;
      animation: accordionFadeIn 0.35s ease;
    }

}

@media (max-width: 640px) {
  .cards-container.spread-7 {
      gap: 8px;
    }

  .cards-container.spread-7 .card {
      width: calc(30vw - 6px);
      max-width: 100px;
    }

  #readingView[data-tirage="full"] #readingHeroVideo7 {
      grid-area: 1/1 !important;
      width: 100% !important;
      height: 100% !important;
      margin: 0 !important;
      max-height: none !important;
    }

  #readingView[data-tirage="full"] {
      padding-top: calc(18px + env(safe-area-inset-top)) !important;
    }

  #readingView[data-tirage="full"] #readingTitle {
      margin: 4px 0 6px !important;
      font-size: 1.7rem !important;
      line-height: 1.2 !important;
      text-align: center !important;
    }

  #readingView[data-tirage="full"] #readingSubtitle {
      margin: 0 auto 10px !important;
      font-size: 0.85rem !important;
      text-align: center !important;
      max-width: 92% !important;
    }

  .tarot-result-full-row {
      flex-wrap: wrap !important;
      gap: 8px 6px !important;
      justify-content: center !important;
      max-width: 100% !important;
    }

  .tarot-result-full-item {
      flex: 0 0 calc(25% - 6px) !important;
      max-width: calc(25% - 6px) !important;
    }

  .tarot-result-full-cardwrap {
      padding: 5px !important;
      border-radius: 10px !important;
    }

  .tarot-result-full-img {
      width: 100% !important;
      max-width: 100% !important;
    }

  .tarot-result-full-name {
      font-size: 0.7rem !important;
      margin-top: 5px !important;
      overflow-wrap: break-word !important;
      word-break: break-word !important;
      hyphens: auto !important;
    }

  .tarot-result-full-title {
      margin: 14px 0 16px !important;
      font-size: 1.05rem !important;
    }

  #readingActions #fullSpeakBtn {
      display: none !important;
    }

  #readingView[data-tirage="full"] ~ * #readingActions .threecard-actions-row-main,
    #readingActions .threecard-actions-row-main {
      flex-wrap: wrap !important;
      justify-content: center !important;
      gap: 8px !important;
    }

  #readingView[data-tirage="full"] ~ * #readingActions .threecard-actions-row-main .tarot-back-btn,
    #readingActions .threecard-actions-row-main .tarot-back-btn {
      flex-basis: 100% !important;
      max-width: 320px;
    }

  #readingView #readingHeroWrap {
      max-width: 150px !important;
    }

  #readingView[data-tirage="three"] #readingHeroWrap {
      max-width: 140px !important;
    }

}

/* === 7-CARD FAN MODE (prototype 10/05/2026) ===
   Eventail auto-déployé puis extraction au tap.
   Active uniquement quand .cards-container.spread-7.fan-mode est posé via JS. */

.cards-container.spread-7.fan-mode {
  display: block !important;
  position: relative;
  min-height: 920px;
  margin-top: -100px;
  perspective: 1400px;
  overflow: visible;
}

/* Cache le bandeau "Concentre-toi…" pendant la phase de pick fan-mode pour gagner ~80px */
body:has(.cards-container.spread-7.fan-mode .card:not(.revealed):not(.decoy-out)) #reading:not(.loading) {
  display: none !important;
}

.cards-container.spread-7.fan-mode .card {
  position: absolute;
  left: 50%;
  top: 80%;
  width: 120px;
  max-width: 120px;
  margin: -90px 0 0 -60px;
  transform: translate(0, 22vh) scale(0.55);
  opacity: 0;
  transition:
    transform 0.95s cubic-bezier(.22, 1, .36, 1),
    opacity 0.5s ease;
  cursor: pointer;
  will-change: transform, opacity;
  z-index: 2;
}

/* Decoy dos non sélectionnés : fade-out doux après les 7 picks */
.cards-container.spread-7.fan-mode .card.decoy-out {
  opacity: 0;
  transform: translate(var(--fan-tx, 0), calc(var(--fan-ty, 0) + 80px)) rotate(var(--fan-rot, 0)) scale(0.6);
  pointer-events: none;
}

.cards-container.spread-7.fan-mode .card.fanned {
  opacity: 1;
  transform:
    translate(var(--fan-tx, 0), var(--fan-ty, 0))
    rotate(var(--fan-rot, 0));
}

.cards-container.spread-7.fan-mode .card.fanned:hover {
  transform:
    translate(var(--fan-tx, 0), calc(var(--fan-ty, 0) - 16px))
    rotate(var(--fan-rot, 0));
  z-index: 6;
}

.cards-container.spread-7.fan-mode .card.revealed {
  opacity: 1;
  transform:
    translate(var(--grid-tx, 0), var(--grid-ty, 0))
    rotate(0);
  z-index: 4;
  cursor: default;
  transition:
    transform 0.85s cubic-bezier(.22, 1, .36, 1),
    opacity 0.4s ease;
}

.cards-container.spread-7.fan-mode .card.revealed:hover {
  transform:
    translate(var(--grid-tx, 0), var(--grid-ty, 0))
    rotate(0);
}

.cards-container.spread-7.fan-mode .card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}

.cards-container.spread-7.fan-mode .card-title,
.cards-container.spread-7.fan-mode .card-pos,
.cards-container.spread-7.fan-mode .card-meaning {
  opacity: 0;
  transition: opacity 0.45s ease 0.45s;
  pointer-events: none;
  text-align: center;
}

.cards-container.spread-7.fan-mode .card.revealed .card-title,
.cards-container.spread-7.fan-mode .card.revealed .card-pos,
.cards-container.spread-7.fan-mode .card.revealed .card-meaning {
  opacity: 1;
}

/* Labels compacts pour cartes révélées en fan-mode (évite le débordement vertical) */
.cards-container.spread-7.fan-mode .card.revealed .card-title {
  font-size: 0.72rem !important;
  line-height: 1.18 !important;
  margin-top: 6px !important;
}
.cards-container.spread-7.fan-mode .card.revealed .card-pos {
  font-size: 0.62rem !important;
  line-height: 1.1 !important;
  margin-top: 2px !important;
}
.cards-container.spread-7.fan-mode .card.revealed .card-meaning {
  font-size: 0.62rem !important;
  line-height: 1.18 !important;
  margin-top: 3px !important;
  max-height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media (min-width: 641px) and (max-width: 1024px) {
  .cards-container.spread-7.fan-mode {
    min-height: 820px;
    margin-top: -70px;
  }

  .cards-container.spread-7.fan-mode .card {
    width: 96px;
    max-width: 96px;
    margin: -72px 0 0 -48px;
    top: 80%;
  }
}

@media (max-width: 640px) {
  .cards-container.spread-7.fan-mode {
    min-height: 700px;
    margin-top: 20px;
  }

  .cards-container.spread-7.fan-mode .card {
    width: 78px;
    max-width: 78px;
    margin: -58px 0 0 -39px;
    top: 80%;
  }
}


/* ============================================================
   TEST 2026-05-16 v7 — Premium polish, tirage 1 carte (daily)
   ============================================================ */

/* 1. FOND + vignettage léger */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]):has(#readingView.active, #readingResultView.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/background_tarot.webp") center center / cover no-repeat fixed
    #020617 !important;
}

/* 2. SPACING + nom de carte en serif or + ornement ◆ */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #readingResultView .tarot-result-card {
  padding-top: 28px;
}
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #readingResultView .tarot-result-title-top {
  margin-top: 70px !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: #d4af37 !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  font-size: 1.7rem !important;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
  position: relative;
  padding-bottom: 28px;
}
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #readingResultView .tarot-result-title-top::after {
  content: "◆";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(212, 175, 55, 0.55);
  font-size: 0.55rem;
  letter-spacing: 0;
}
@media (max-width: 768px) {
  body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #readingResultView .tarot-result-title-top {
    margin-top: 56px !important;
  }
}

/* 3. Halo derrière la carte — pulse lent */
@keyframes tarot-card-halo-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #readingResultView .tarot-result-card-wrap {
  position: relative;
}
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #readingResultView .tarot-result-card-wrap::after {
  content: "";
  position: absolute;
  inset: -90px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.42) 0%, rgba(212, 175, 55, 0.12) 38%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  animation: tarot-card-halo-pulse 6s ease-in-out infinite;
}

/* 4. Panneau interp — cadre or, line-height calligraphique */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #reading,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading {
  background: rgba(2, 6, 23, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 14px;
  padding: 32px 26px 26px;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.6),
    0 0 36px rgba(212, 175, 55, 0.10),
    inset 0 0 0 1px rgba(212, 175, 55, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  line-height: 1.75;
}

/* 5. Titre INTERPRÉTATION DU TIRAGE — ✦ doré prefix, lettrage espacé, divider doré sous */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-title.reading-title-ornate {
  color: #d4af37;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 26px;
  padding: 0 0 16px;
  position: relative;
}
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-title.reading-title-ornate::before {
  content: "✦ ";
  color: rgba(212, 175, 55, 0.85);
  margin-right: 6px;
  font-size: 0.95em;
}
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-title.reading-title-ornate::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

/* 6. Drop-cap doré sur le 1er paragraphe */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #reading > p:first-of-type::first-letter,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading > p:first-of-type::first-letter {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: 3em;
  float: left;
  line-height: 0.85;
  padding: 0.1em 0.15em 0 0;
  color: #d4af37;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
  font-weight: 500;
}

/* 7. Équerres dorées 4 coins du panneau */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #reading::before,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading::before,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #reading::after,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  pointer-events: none;
}
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #reading::before,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #reading::after,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

/* ============================================================
   8. BOUTONS — palette or unifiée
   ============================================================ */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .share-btn {
  background: linear-gradient(180deg, #e6c66a, #c9a83f) !important;
  color: #1a0f00 !important;
  border: 1px solid rgba(212, 175, 55, 0.85) !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(212, 175, 55, 0.30),
    inset 0 1px 0 rgba(255, 240, 200, 0.45) !important;
  transition: transform 0.15s ease, box-shadow 0.2s ease !important;
}
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .share-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(212, 175, 55, 0.45),
    inset 0 1px 0 rgba(255, 240, 200, 0.55) !important;
}

body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-actions .btn-secondary,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .tarot-btn-fix,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .tarot-back-btn {
  background: rgba(2, 6, 23, 0.55) !important;
  color: #d4af37 !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  letter-spacing: 0.04em !important;
  box-shadow: none !important;
}
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-actions .btn-secondary:hover,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .tarot-btn-fix:hover,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .tarot-back-btn:hover {
  background: rgba(212, 175, 55, 0.08) !important;
  border-color: rgba(212, 175, 55, 0.75) !important;
}

body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .divinia-tts-btn {
  background: rgba(2, 6, 23, 0.50) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  color: #d4af37 !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  letter-spacing: 0.04em !important;
}
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .divinia-tts-btn:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.08) !important;
  border-color: rgba(212, 175, 55, 0.65) !important;
  color: #f0d97a !important;
  transform: translateY(-1px);
}
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .divinia-tts-btn.playing {
  background: rgba(212, 175, 55, 0.18) !important;
  border-color: rgba(212, 175, 55, 0.75) !important;
  color: #fff5d8 !important;
}

/* ============================================================
   v8 — desktop background + ✦ titre plus présent
   ============================================================ */

/* Desktop large : utiliser le fond 16:9 dédié */
@media (min-width: 1025px) and (orientation: landscape) {
  body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]):has(#readingView.active, #readingResultView.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/background_desktop_tarot.webp") center center / cover no-repeat fixed
      #020617 !important;
  }
}

/* ✦ prefix du titre INTERPRÉTATION : plus visible */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-title.reading-title-ornate::before {
  content: "✦ ";
  color: #d4af37 !important;
  opacity: 1 !important;
  font-size: 1.15em !important;
  margin-right: 10px !important;
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.55);
  letter-spacing: 0;
}

/* v8b — losange ◆ doré devant INTERPRÉTATION (✦ ne rendait pas faute de glyphe) */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-title.reading-title-ornate::before {
  content: "◆" !important;
  color: #d4af37 !important;
  opacity: 1 !important;
  font-family: "Segoe UI Symbol", "Apple Color Emoji", "Noto Sans Symbols", Georgia, serif !important;
  font-size: 0.85em !important;
  margin-right: 14px !important;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.6) !important;
  letter-spacing: 0 !important;
  vertical-align: middle;
  display: inline-block;
}

/* v9 — Cadre or fin sur le bloc "Thème du tirage" (daily uniquement) */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #dailyThemeBlock.tarot-theme-block {
  background: rgba(2, 6, 23, 0.78) !important;
  border: 1px solid rgba(212, 175, 55, 0.38) !important;
  border-radius: 14px !important;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(212, 175, 55, 0.10),
    inset 0 0 0 1px rgba(212, 175, 55, 0.08) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
}

/* Équerres dorées aux 4 coins, identiques au panneau d'interprétation */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #dailyThemeBlock.tarot-theme-block::before,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #dailyThemeBlock.tarot-theme-block::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  pointer-events: none;
}
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #dailyThemeBlock.tarot-theme-block::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #dailyThemeBlock.tarot-theme-block::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

/* Titre "Thème du tirage" en or serif espacé pour matcher le ton */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #dailyThemeBlock.tarot-theme-block .field-title {
  color: #d4af37 !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.06em !important;
}

/* v10 — Style chapitres accordéons pour tirage 3 cartes (et future 5/7) */
body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-chapter {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 10px;
  margin: 14px 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-chapter:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.08);
}

body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-chapter-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #d4af37;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-chapter-btn:hover {
  color: #f0d97a;
}

body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-chapter-label {
  flex: 1;
  text-align: left;
}

body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-chapter-arrow {
  color: rgba(212, 175, 55, 0.75);
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  margin-left: 12px;
}
body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-chapter-btn[aria-expanded="true"] .reading-chapter-arrow {
  transform: rotate(180deg);
}

body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-chapter-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 18px;
  line-height: 1.75;
}
body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-chapter-btn[aria-expanded="true"] + .reading-chapter-body {
  max-height: 4000px;
  padding: 4px 18px 18px;
}

/* Le drop-cap doré ne doit s'appliquer QUE sur le 1er paragraphe d'intro,
   pas sur les chapitres internes */
body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-chapter-body > p:first-of-type::first-letter {
  all: unset;
}

/* v10b — Titre "Lecture du tirage" en or saturé serif (3 cartes) */
body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .tarot-result-three-title {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: #d4af37 !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  font-size: 1.7rem !important;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.25) !important;
  text-align: center;
  position: relative;
  padding-bottom: 28px;
  margin-bottom: 20px !important;
}
body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .tarot-result-three-title::after {
  content: "◆";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(212, 175, 55, 0.55);
  font-size: 0.55rem;
  font-family: "Segoe UI Symbol", Georgia, serif;
}

/* v11 — Cadre or sur le bloc "Aide à la décision" (3 cartes setup) */
body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #decisionBlock.threecard-decision-block {
  background: rgba(2, 6, 23, 0.78) !important;
  border: 1px solid rgba(212, 175, 55, 0.38) !important;
  border-radius: 14px !important;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(212, 175, 55, 0.10),
    inset 0 0 0 1px rgba(212, 175, 55, 0.08) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  padding: 22px 20px !important;
}

/* Équerres dorées aux 4 coins */
body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #decisionBlock.threecard-decision-block::before,
body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #decisionBlock.threecard-decision-block::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  pointer-events: none;
}
body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #decisionBlock.threecard-decision-block::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}
body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #decisionBlock.threecard-decision-block::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

/* Titre "Aide à la décision" en serif or espacé */
body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #decisionBlock .threecard-decision-title {
  color: #d4af37 !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  text-align: center;
  font-size: 1.05rem !important;
  margin-bottom: 22px !important;
}

/* v12 — Drop-cap doré sur la 1ère lettre de chaque chapitre (3 cartes) */
body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-chapter-body > p:first-of-type::first-letter {
  all: revert;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-size: 2.6em !important;
  float: left !important;
  line-height: 0.85 !important;
  padding: 0.1em 0.15em 0 0 !important;
  color: #d4af37 !important;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.3) !important;
  font-weight: 500 !important;
}

/* v13 — Cadre or sur #questionBlock (5 cartes setup) + titre "Lecture du tirage" */
body[data-tarot-tirage="majors"] #readingView #questionBlock.field-block {
  background: rgba(2, 6, 23, 0.78) !important;
  border: 1px solid rgba(212, 175, 55, 0.38) !important;
  border-radius: 14px !important;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(212, 175, 55, 0.10),
    inset 0 0 0 1px rgba(212, 175, 55, 0.08) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  padding: 22px 20px !important;
}
body[data-tarot-tirage="majors"] #readingView #questionBlock.field-block::before,
body[data-tarot-tirage="majors"] #readingView #questionBlock.field-block::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  pointer-events: none;
}
body[data-tarot-tirage="majors"] #readingView #questionBlock.field-block::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}
body[data-tarot-tirage="majors"] #readingView #questionBlock.field-block::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}
body[data-tarot-tirage="majors"] #readingView #questionBlock .field-title {
  color: #d4af37 !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.06em !important;
}

/* Titre "Lecture du tirage" — 5 cartes */
body[data-tarot-tirage="majors"] .tarot-result-majors-title {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: #d4af37 !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  font-size: 1.7rem !important;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.25) !important;
  text-align: center;
  position: relative;
  padding-bottom: 28px;
  margin-bottom: 20px !important;
}
body[data-tarot-tirage="majors"] .tarot-result-majors-title::after {
  content: "◆";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(212, 175, 55, 0.55);
  font-size: 0.55rem;
  font-family: "Segoe UI Symbol", Georgia, serif;
}

/* v14 — Drop-cap : force uppercase (cas "infrastructures" → "I" majuscule) */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #reading > p:first-of-type::first-letter,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading > p:first-of-type::first-letter,
body:is([data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-chapter-body > p:first-of-type::first-letter {
  text-transform: uppercase !important;
}

/* v15 — Cadre or sur #questionBlock (7 cartes) + titre "Lecture du tirage" — full */
body[data-tarot-tirage="full"] #readingView #questionBlock.field-block {
  background: rgba(2, 6, 23, 0.78) !important;
  border: 1px solid rgba(212, 175, 55, 0.38) !important;
  border-radius: 14px !important;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(212, 175, 55, 0.10),
    inset 0 0 0 1px rgba(212, 175, 55, 0.08) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  padding: 22px 20px !important;
}
body[data-tarot-tirage="full"] #readingView #questionBlock.field-block::before,
body[data-tarot-tirage="full"] #readingView #questionBlock.field-block::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  pointer-events: none;
}
body[data-tarot-tirage="full"] #readingView #questionBlock.field-block::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}
body[data-tarot-tirage="full"] #readingView #questionBlock.field-block::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}
body[data-tarot-tirage="full"] #readingView #questionBlock .field-title {
  color: #d4af37 !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.06em !important;
}

body[data-tarot-tirage="full"] .tarot-result-full-title {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: #d4af37 !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  font-size: 1.7rem !important;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.25) !important;
  text-align: center;
  position: relative;
  padding-bottom: 28px;
  margin-bottom: 20px !important;
}
body[data-tarot-tirage="full"] .tarot-result-full-title::after {
  content: "◆";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(212, 175, 55, 0.55);
  font-size: 0.55rem;
  font-family: "Segoe UI Symbol", Georgia, serif;
}

/* v16 — Fix overlap cartes / texte sur tablette (641-1024px) en mode 7 cartes fan */
@media (min-width: 641px) and (max-width: 1024px) {
  .cards-container.spread-7.fan-mode {
    margin-top: 0 !important;
    min-height: 760px !important;
  }
}

/* v16b — Affiner la respiration sur tablette 7 cartes */
@media (min-width: 641px) and (max-width: 1024px) {
  .cards-container.spread-7.fan-mode {
    margin-top: 20px !important;
    min-height: 800px !important;
  }
}

/* v29 — Hero tarot encadré or (1/3/5/7 cartes) */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #readingHeroWrap {
  border: 1px solid rgba(212, 175, 55, 0.38) !important;
  border-radius: 14px !important;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 0 36px rgba(212, 175, 55, 0.18),
    inset 0 0 0 1px rgba(212, 175, 55, 0.08) !important;
  overflow: visible !important;
  position: relative;
}

body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #readingHeroWrap::before,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #readingHeroWrap::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(212, 175, 55, 0.7);
  pointer-events: none;
  z-index: 2;
}
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #readingHeroWrap::before {
  top: -1px; left: -1px; border-right: none; border-bottom: none;
}
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #readingHeroWrap::after {
  bottom: -1px; right: -1px; border-left: none; border-top: none;
}
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #readingHeroWrap > img,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #readingHeroWrap > video {
  border-radius: 13px;
}

/* ============================================================
   TAROT — Fond mystique sur le menu (homeView)
   2026-05-16
   ============================================================ */

body:has(#homeView.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/background_tarot.webp") center center / cover no-repeat fixed
    #020617 !important;
}

@media (min-width: 1025px) and (orientation: landscape) {
  body:has(#homeView.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/background_desktop_tarot.webp") center center / cover no-repeat fixed
      #020617 !important;
  }
}

/* ============================================================
   TAROT (tous tirages) — Polish luminosité v2 (2026-05-19)
   Sélecteurs alignés sur la spécificité existante (body:is(...))
   ============================================================ */

/* Halo doré + bordure renforcée sur le panneau interp */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #reading,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading {
  border: 1px solid rgba(212, 175, 55, 0.55) !important;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 0 110px -10px rgba(212, 175, 55, 0.32),
    0 0 40px rgba(212, 175, 55, 0.22),
    inset 0 1px 0 rgba(212, 175, 55, 0.18),
    inset 0 0 0 1px rgba(212, 175, 55, 0.08) !important;
}

/* Coins ornementaux renforcés (override des règles 2303-2322) */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #reading::before,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading::before,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #reading::after,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading::after {
  width: 22px !important;
  height: 22px !important;
  border-color: rgba(240, 217, 122, 0.85) !important;
  border-width: 1.5px !important;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}

/* Titre interp plus lumineux */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-title.reading-title-ornate {
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.55) !important;
}

/* Drop-cap plus brillante */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #reading > p:first-of-type::first-letter,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading > p:first-of-type::first-letter {
  color: #f0d97a !important;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.60) !important;
}

/* Labels colorés (reading-key, reading-outcome, etc.) avec glow doux */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-phase,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-highlight,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-key,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-outcome,
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) .reading-toi {
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.35) !important;
}

/* Halo doré derrière la carte affichée en haut (sans toucher la carte elle-même) */
body:is([data-tarot-tirage="daily"],[data-tarot-tirage="three"],[data-tarot-tirage="majors"],[data-tarot-tirage="full"]) #readingResultView .tarot-result-card-wrap::after {
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.55) 0%, rgba(212, 175, 55, 0.18) 40%, transparent 72%) !important;
}
